/* Tokens: see DESIGN.md (Vercel base + "library at night" adaptations) */
@property --mx { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --my { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  color-scheme: dark;
  --canvas: #0f1012;
  --surface: #16171a;
  --soft: #1d1f23;
  --ink: #ececec;
  --body: #a9a9a9;
  --mute: #808080;
  --line: #26282d;
  --line-strong: #3a3c42;
  --accent: #e0473d;
  --accent-deep: #c53a31;
  --wood: #1b1c20;
  --wood-hi: #2c2e33;
  --lamp: 255, 232, 198;

  --f: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --r-book: 3px;
  --r-box: 12px;
  --shadow-book: 0 2px 2px rgba(0,0,0,.35), 0 14px 28px -10px rgba(0,0,0,.7), 0 40px 60px -30px rgba(0,0,0,.8);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(255,255,255,.06); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--canvas); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--ink); color: var(--canvas); padding: 8px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.jp { font-family: var(--f-jp); font-weight: 500; letter-spacing: .2em; }

/* ── Type ─────────────────────────────────────── */
.h2 { margin: 0 0 12px; font: 600 clamp(28px, 3.2vw, 40px)/1.1 var(--f); letter-spacing: -.04em; text-wrap: balance; }
.h3 { margin: 40px 0 12px; font: 600 15px/1.4 var(--f); letter-spacing: -.01em; }
.section__dek { margin: 0 0 40px; max-width: 56ch; color: var(--body); font-size: 17px; }
.lede { margin: 0 0 28px; max-width: 54ch; font-size: 19px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.meta { display: flex; gap: 12px; margin: 0 0 6px; font: 500 13px/1.4 var(--f); color: var(--mute); }
.meta span { font-family: var(--f-mono); font-weight: 400; }

/* ── Buttons ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--f); text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ink { background: var(--ink); color: var(--canvas); }
.btn--ink:hover { background: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.soon { font-size: 14px; color: var(--mute); }

/* ── Masthead ─────────────────────────────────── */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(15,16,18,.82); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.masthead__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.wordmark { margin: 0; font: 600 16px/1 var(--f); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.masthead nav { margin-left: auto; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--body); text-decoration: none; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang__btn { border: 0; background: none; border-radius: 999px; padding: 4px 10px; font: 500 12px/1.4 var(--f-mono); color: var(--mute); cursor: pointer; }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }

/* ── Library (hero) ───────────────────────────── */
.library { position: relative; padding: 28px 0 72px; overflow: hidden;
  background: radial-gradient(70% 55% at 72% 0%, rgba(var(--lamp), .07), transparent 70%), var(--canvas); }
.library__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.library__title { margin: 0; font: 600 clamp(38px, 4.6vw, 64px)/.95 var(--f); letter-spacing: -.055em; }
.library__dek { margin: 14px 0 0; color: var(--body); font-size: 16px; }
.library__dek .jp { color: var(--mute); margin-right: 10px; }
.lamp { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; font-size: 14px; color: var(--body); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.lamp:hover { border-color: var(--ink); color: var(--ink); }
.lamp[aria-pressed="true"] { background: rgba(var(--lamp), .12); border-color: rgba(var(--lamp), .5); color: rgb(var(--lamp)); }

.library__room { --k: 1.2; display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr); gap: 44px; align-items: center; }

/* bookcase: back panel, side frames, planks */
.stacks { position: relative; isolation: isolate; min-width: 0; padding: 14px 14px 8px; border-radius: 6px;
  --mx: 240px; --my: 160px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 160px),
    linear-gradient(180deg, #121316, #16171b);
  box-shadow: inset 14px 0 0 var(--wood), inset -14px 0 0 var(--wood), inset 0 14px 0 var(--wood), inset 0 0 60px rgba(0,0,0,.6);
  transition: --mx .8s var(--ease), --my .8s var(--ease); }
.stacks.is-tracking { transition: none; }
.shelves { position: relative; z-index: 1; }
.shelf { position: relative; overflow-x: auto; scrollbar-width: none; padding: 40px 0 0; }
.shelf::-webkit-scrollbar { display: none; }
.shelf.is-scrollable { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.shelf.is-scrollable.at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.shelf__inner { display: inline-flex; flex-direction: column; min-width: 100%; }
.shelf__books { position: relative; display: flex; align-items: flex-end; min-height: calc(260px * var(--k)); padding-bottom: 16px; }
.shelf__books::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--wood-hi), var(--wood) 35%, #141518);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 22px 26px -14px rgba(0,0,0,.85); }
/* ruang rak: buku rata kiri, sisa ruang dibagi rata antar-ruang */
.comp { flex: 1 0 calc(var(--cw) * var(--k)); display: flex; align-items: flex-end; gap: 3px; list-style: none; margin: 0; padding: 0 12px; }
/* sekat kayu dari papan atas sampai papan rak */
.divider { flex: 0 0 10px; align-self: stretch; margin-top: -40px;
  background: linear-gradient(90deg, #2a2c31, var(--wood) 45%, #141518);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.05), 6px 0 12px -4px rgba(0,0,0,.55); }
.divider--ghost { margin: 0; background: none; box-shadow: none; }
.shelf__labels { display: flex; padding: 14px 0 6px; }
.comp__label { flex: 1 0 calc(var(--cw) * var(--k)); display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 0 12px; font-size: 12px; line-height: 1.4; color: var(--mute); }
.comp__label .mono { color: var(--body); }

.slot { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .slot { animation: shelve .8s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
  @keyframes shelve { from { opacity: 0; transform: translateY(-36px); } }
}

.spine { position: relative; display: flex; flex-direction: column; align-items: center; width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k));
  padding: 12px 0 10px; border: 0; border-radius: 2px 2px 1px 1px; cursor: pointer; color: var(--fg);
  background:
    linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.12) 28%, rgba(255,255,255,0) 55%, rgba(0,0,0,.25)),
    var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), 0 1px 0 rgba(0,0,0,.4);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease), filter .3s; }
.spine--ms { background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(255,255,255,.2) 35%, rgba(0,0,0,.1)), var(--bg); }
.spine__band { width: 100%; height: 3px; background: var(--fg); opacity: .55; }
.spine__jp { flex: 1; min-height: 0; overflow: hidden; margin-top: 12px; writing-mode: vertical-rl; text-orientation: upright;
  font: 500 clamp(11px, calc(var(--w) * var(--k) * .42), 19px)/1 var(--f-jp); letter-spacing: .08em; white-space: nowrap; }
.spine__yr { font-size: 10px; opacity: .8; margin-top: 8px; }
.spine[aria-pressed="true"] { transform: translateY(-14px); }
.spine[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 70%; height: 2px; translate: -50% 0; background: var(--accent); border-radius: 2px; }
@media (hover: hover) {
  .slot:hover .spine { transform: translateY(-24px); filter: brightness(1.08); }
  .slot:hover + .slot .spine { transform: rotate(3deg); transform-origin: 100% 100%; }
  .slot:has(+ .slot:hover) .spine { transform: rotate(-3deg); transform-origin: 0 100%; }
}
.spine:focus-visible { outline-offset: 4px; }

/* spotlight: dims the room, follows the cursor (or rests on the selected book) */
.spot { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle 230px at var(--mx) var(--my),
    rgba(var(--lamp), .10) 0%, rgba(10,10,12,0) 42%, rgba(8,8,10,.5) 70%, rgba(6,6,8,.72) 100%);
  transition: opacity .7s var(--ease); }
.library.is-lit .spot { opacity: 0; }

/* reading desk: the spotlighted artwork */
.desk { position: relative; display: grid; justify-items: center; gap: 24px; min-height: 0; align-content: center; text-align: center; }
.desk::before { content: ""; position: absolute; inset: -60px -20px auto; height: 440px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(var(--lamp), .14), transparent 75%); }
.desk__tilt { perspective: 1100px; width: min(250px, 72%); }
.desk__art { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.desk__art::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-book); pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.22), transparent 55%); mix-blend-mode: soft-light; }
.desk__img { position: relative; width: 100%; border-radius: var(--r-book); box-shadow: var(--shadow-book); }
.desk__img--back { position: absolute; inset: 0; transform: translate(16%, -5%) rotate(7deg) translateZ(-40px); filter: brightness(.7); }
.desk__art--ms { aspect-ratio: 764 / 1200; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14%; border-radius: var(--r-book); text-align: left;
  background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(0,0,0,.07) 27px 28px), var(--bg); color: var(--fg); box-shadow: var(--shadow-book); }
.desk__ms-title { font: 600 26px/1.1 var(--f); letter-spacing: -.03em; }
.desk__ms-jp { font: 500 14px/1.4 var(--f-jp); opacity: .8; }
.desk__ms-yr { margin-top: auto; font-size: 13px; opacity: .7; }
.desk__info { position: relative; max-width: 380px; min-width: 0; }
.desk__info .meta { justify-content: center; }
.desk__title { margin: 0 0 8px; font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--f); letter-spacing: -.035em; text-wrap: balance; }
.desk__tag { margin: 0; color: var(--body); font-size: 15px; text-wrap: pretty; }
.desk__note { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.desk__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 20px; }
.desk.is-swap .desk__art { animation: art-in .5s var(--ease) both; }
.desk.is-swap .desk__info { animation: info-in .4s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes info-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Scroll reveal ────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Profile ──────────────────────────────────── */
.profile { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding-top: 72px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.profile__bio { margin: 0; font: 400 clamp(20px, 2vw, 25px)/1.45 var(--f); letter-spacing: -.015em; text-wrap: pretty; }
.profile__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin: 0; align-content: start; }
.profile__facts dt { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.profile__facts dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }

/* ── Sections ─────────────────────────────────── */
.section { padding-top: 96px; padding-bottom: 104px; }
.cover { width: 100%; border-radius: var(--r-book); box-shadow: var(--shadow-book); background: var(--soft); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair .cover:last-child { transform: translateY(18px); }

/* ── One-shot index ───────────────────────────── */
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.vol__head { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.vol__cover { width: 64px; border-radius: 2px; box-shadow: var(--shadow-book); transition: transform .4s var(--ease); }
.vol__head a:hover .vol__cover { transform: translateY(-4px) rotate(-2deg); }
.vol__title { margin: 0; font: 600 20px/1.2 var(--f); letter-spacing: -.02em; }
.vol__list { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 40px 44px 1fr; gap: 2px 14px; padding: 14px 4px; text-decoration: none; border-radius: 8px; transition: background-color .2s; }
.entry:hover { background: var(--surface); }
.entry__year { grid-row: span 2; font-size: 13px; color: var(--mute); padding-top: 2px; }
.entry__thumb { grid-row: span 2; width: 44px; height: auto; aspect-ratio: 764 / 1200; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.7); background: var(--soft); transition: transform .35s var(--ease); }
.entry__thumb--ms { display: block; background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(0,0,0,.08) 5px 6px), var(--bg); }
.entry:hover .entry__thumb { transform: translateY(-3px) rotate(-2deg); }
.entry__title { font-weight: 500; font-size: 15px; line-height: 1.35; transition: color .2s; }
.entry__title small { display: block; margin-top: 2px; font: 500 12px/1.4 var(--f-jp); color: var(--mute); }
.entry__venue { font-size: 13px; color: var(--mute); }
.entry:hover .entry__title { color: var(--accent); }

/* ── Timeline band ────────────────────────────── */
#timeline { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#timeline .h2 { margin-bottom: 36px; }
.band { overflow-x: auto; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 12px; scrollbar-width: thin; }
.band__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(64px, 1fr)); row-gap: 8px; min-width: calc(var(--cols) * 64px); }
.band__year { grid-row: 1; padding: 0 0 12px 8px; font-size: 12px; color: var(--mute); border-left: 1px solid var(--line); }
.band__item { position: relative; margin-right: 4px; padding: 6px 8px; border-radius: 6px; background: var(--soft);
  font-size: 12px; line-height: 1.3; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; transition: background-color .2s, color .2s; }
.band__item:hover { background: var(--ink); color: var(--canvas); }
.band__item--run { background: var(--ink); color: var(--canvas); font-weight: 500; box-shadow: inset 3px 0 0 var(--accent); }
.band__item--run:hover { background: var(--accent); color: #fff; }

/* ── On screen ────────────────────────────────── */
.screen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.screen__feat { margin: 0; }
.screen__feat img { width: 100%; border-radius: var(--r-box); box-shadow: var(--shadow-book); }
.screen__feat figcaption { margin-top: 12px; font-size: 14px; color: var(--body); }
.screen__feat .mono { color: var(--mute); margin-right: 8px; }
.screen__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.screen__list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.screen__list .mono { font-size: 14px; color: var(--mute); padding-top: 3px; }
.screen__list a { font: 600 20px/1.25 var(--f); letter-spacing: -.02em; text-decoration: none; transition: color .2s; }
.screen__list a:hover { color: var(--accent); }
.screen__list p { margin: 4px 0 0; color: var(--body); font-size: 15px; max-width: 52ch; }

/* ── Awards ───────────────────────────────────── */
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.award { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.award:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.award__n { font: 600 56px/1 var(--f); letter-spacing: -.05em; margin-bottom: 16px; }
.award__t { font-weight: 600; font-size: 16px; line-height: 1.35; }
.award__s { font-size: 14px; color: var(--mute); }
.awards__rest { margin: 28px 0 0; max-width: 70ch; color: var(--body); }

/* ── Detail ───────────────────────────────────── */
.hero__jp { margin: 14px 0 0; font: 500 18px/1.3 var(--f-jp); letter-spacing: .3em; color: var(--mute); }
.detail__grid { display: grid; grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 112px; align-items: start; }
.detail__grid--solo { grid-template-columns: minmax(0, 760px); }
.detail__cover { position: sticky; top: 96px; }
.detail__note { margin: 20px 0 0; font-size: 14px; color: var(--mute); }
.detail__body { max-width: 680px; }
.detail__title { margin: 0; font: 600 clamp(40px, 5.4vw, 68px)/1 var(--f); letter-spacing: -.05em; text-wrap: balance; }
.detail .hero__jp { margin-bottom: 24px; }
.blogbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin-bottom: 32px; border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); }
.blogbox p { margin: 0; max-width: 40ch; font-size: 15px; color: var(--body); }
.prose { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 62ch; }
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 8px 0; font-size: 15px; color: var(--body); }
.facts-list .mono { font-size: 13px; color: var(--mute); padding-top: 2px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 500; transition: color .2s; }
.pager a:hover { color: var(--accent); }
.pager small { display: block; font-size: 13px; color: var(--mute); font-weight: 400; }
.pager__next { text-align: right; }

/* ── Footer ───────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 14px; color: var(--mute); }
.footer__inner p { margin: 0 0 8px; max-width: 72ch; }
.footer .wordmark { color: var(--ink); margin-bottom: 16px; }
.footer a { color: var(--ink); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1080px) {
  .library__room { --k: 1.1; grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .desk { order: -1; min-height: 0; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .desk::before { inset: -40px auto auto -40px; width: 420px; height: 300px; }
  .desk__tilt { width: 100%; }
  .desk__info .meta, .desk__actions { justify-content: flex-start; }
  .index { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .screen { grid-template-columns: 1fr; gap: 40px; }
  .screen__feat { max-width: 420px; }
  .awards { grid-template-columns: 1fr; }
  .detail__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .detail__cover { position: static; max-width: 260px; }
}
@media (max-width: 640px) {
  .masthead__inner { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .masthead nav { order: 3; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; }
  .nav { padding: 4px calc(var(--gutter) - 12px) 8px; }
  .nav a { white-space: nowrap; }
  .lang { margin-left: auto; }
  .library { padding-top: 28px; }
  .library__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .library__room { --k: 1; }
  .desk { grid-template-columns: 116px minmax(0, 1fr); gap: 20px; }
  .desk__actions { gap: 8px 12px; }
  .desk__title { font-size: 22px; }
  .desk__tag { font-size: 14px; }

  .index { grid-template-columns: 1fr; }
  .profile__facts { grid-template-columns: 1fr; gap: 16px; }
  .facts-list li { grid-template-columns: 1fr; gap: 0; }
  .section { padding-top: 72px; padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
