/* Content is projected inside the screen. The surrounding room stays dark. */
:root, body.shadow-room-dark {
  --room: #11110f;
  --room-light: #211e17;
  --room-text: #d5c8aa;
  --room-muted: #a69a80;
}
html { background: #11110f; color-scheme: dark; }
.research-topbar, .topbar { height: 82px; min-height: 82px; }
.research-topbar-note { color: #887b61; }
.research-shell .research-paper {
  padding: 32px max(3.5%, calc((100% - 1420px) / 2)) 70px;
  background: radial-gradient(ellipse at 50% 42%, #4e3e211b, transparent 72%), #11110f;
}
.research-shell .research-page { animation: screen-rise .85s ease both; }
.shadow-room-dark .shadow-reading-stage {
  --room-text: #30230f;
  --room-muted: #5b4524;
  --line: #6b4c2940;
  color-scheme: light;
  color: var(--room-text);
  border-width: clamp(10px, 1.5vw, 22px);
  border-color: #26231b #302b20 #544731 #343024;
  background: #c8ad66;
  box-shadow: 0 0 0 1px #070807, 0 0 0 3px #38302440,
    0 24px 55px #0009, 0 0 90px #c0983e10;
}
.shadow-reading-stage::before {
  z-index: 3;
  box-shadow: inset 0 8px 18px #1c110a75, inset 0 -3px 10px #23170844;
}
.shadow-room-dark .shadow-reading-stage::after {
  inset: calc(clamp(10px, 1.5vw, 22px) * -1 - 4px);
  border-color: #71604033;
  box-shadow: inset 0 1px 0 #a4926820;
}
.shadow-reading-stage > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  pointer-events: none;
}
.shadow-reading-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .5fr);
  column-gap: 34px;
  row-gap: 26px;
  padding: 70px 9% 82px;
  min-height: 650px;
}
.shadow-reading-content > * { min-width: 0; }
.shadow-reading-content > .research-heading {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
}
.shadow-reading-content > .reading-scene-anchor {
  grid-column: 2;
  grid-row: 1;
}
.shadow-reading-content > :not(.research-heading, .reading-scene-anchor) { grid-column: 1 / -1; }
.shadow-reading-content .research-heading h1 {
  color: #2e2110;
  font-size: clamp(29px, 3vw, 44px);
  letter-spacing: 3px;
  line-height: 1.6;
  text-shadow: 1px 2px 2px #805d2826;
}
.shadow-reading-content .research-kicker { color: #624a28; margin-bottom: 20px; }
.shadow-reading-content .research-kicker > span { color: #67451f; }
.shadow-reading-content .research-hint { color: #5b4524; font-size: 12px; }
.reading-scene-anchor {
  position: relative;
  min-height: 208px;
  margin: 0;
  pointer-events: none;
}
.reading-scene-anchor figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: #5c4324;
  font: 9px/1.8 var(--serif);
  letter-spacing: 1px;
}
.reading-scene-anchor figcaption > span:first-child { font-size: 13px; letter-spacing: 3px; }
.research-opening .shadow-reading-content {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .49fr);
  column-gap: 42px;
  row-gap: 30px;
}
.research-opening .research-heading { align-self: end; }
.research-opening .reading-scene-anchor {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 370px;
  align-self: stretch;
}
.research-opening .research-introduction { grid-column: 1; grid-row: 2; }
.research-introduction { padding: 0; border: 0; }
.shadow-reading-content .research-introduction p,
.shadow-reading-content .research-introduction p:first-child {
  color: #382a15;
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: .45px;
}
.shadow-reading-content .research-colophon {
  margin: 3px 0 0;
  color: #6b4b26;
  font-size: 10px;
  letter-spacing: 3px;
}
.shadow-reading-content .small-seal { color: #6d3422; border-color: #7b3e2955; }
.shadow-reading-content .research-grid { gap: 14px; }
.research-shell .shadow-reading-stage .research-card {
  background: linear-gradient(145deg, #fff3c424, #9d763318);
  border: 1px solid #5f422961;
  padding: 19px 18px;
  min-height: 211px;
  box-shadow: inset 0 0 0 4px #ffecb510, 1px 2px 3px #6043160a;
  border-radius: 1px;
  overflow: visible;
}
.research-shell .shadow-reading-stage .research-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border: 1px solid #82613626;
}
.research-shell .shadow-reading-stage .research-card:hover,
.research-shell .shadow-reading-stage .research-card:focus-visible {
  transform: translateY(-3px);
  background: #fff0b954;
  border-color: #4c311a;
  box-shadow: 0 8px 17px #5138111f, inset 0 0 0 4px #ffefbb26;
  outline-offset: 4px;
}
.shadow-reading-stage .research-card strong { color: #402b15; font-size: 24px; }
.shadow-reading-stage .research-card-title { color: #503a1d; font-size: 12px; }
.shadow-reading-stage .research-card-era { color: #624622; }
.shadow-reading-stage .research-card-ornament { color: #4b311b; opacity: .38; width: 40px; }
.shadow-reading-stage .research-card-action { color: #624622; }
.shadow-reading-stage .research-card-top { color: #674b2a; }
.research-shell .shadow-reading-stage .card-technology { border-top: 2px solid #71532f; }
.research-shell .shadow-reading-stage .card-concept { border-top: 2px solid #817448; }
.shadow-reading-stage .research-grid-six .research-card { min-height: 184px; }
.shadow-reading-stage .research-grid-six .research-card-title { font-size: 14px; }
.research-shell .shadow-reading-stage .research-feature {
  min-height: 282px;
  padding: 30px;
  background: linear-gradient(135deg, #fff1bc22, #bd985926);
}
.shadow-reading-stage .research-feature strong { font-size: 29px; }
.shadow-reading-stage .research-feature .research-card-top { margin-bottom: 26px; }
.shadow-reading-stage .research-feature-copy { color: #51391f; margin: 15px 0 25px; }
.shadow-reading-stage .research-feature .research-card-ornament { width: 62px; height: 53px; top: 27px; right: 29px; }
.shadow-reading-stage .research-feature .research-line-motif { display: flex; order: 4; width: 140px; margin: -12px 0 18px; }
.shadow-reading-stage .research-line-motif i { background: #d6b76d; }
.shadow-reading-stage .research-explanation { column-gap: 40px; }
.shadow-reading-stage .research-explanation p { color: #382a15; font-size: 15px; }
.shadow-reading-stage .research-explanation p:last-child { background: #fff0b62e; border-color: #76522b; }
.shadow-reading-stage .research-references { column-gap: 38px; }
.shadow-reading-stage .research-references li { color: #3c2c17; font-size: 13px; }
.shadow-reading-stage .research-references li::before { color: #6a4a26; }
.shadow-reading-stage .research-visual-sources { margin-top: 0; }
.shadow-reading-stage .research-visual-sources h2 { color: #402c15; }
.shadow-reading-stage .research-visual-sources p,
.shadow-reading-stage .research-visual-sources a span { color: #5b4021; }
.research-pagination { min-height: 90px; }
.research-next { background: #a08651; color: #191710 !important; border-color: #b39759; }
.research-next:hover { background: #bfa46a; }
.shadow-atmosphere { opacity: .18; }
.shadow-atmosphere-controls { bottom: 16px; right: 4%; }
.shadow-motion-toggle { border-color: #bca36d33; }
.shadow-motion-toggle:hover { background: #b39a5e16; }
.shadow-room-toggle:hover { color: #edd49a; }
.shadow-lamp-cursor {
  width: 22px;
  height: 22px;
  border-color: #fff0cbb3;
  background: radial-gradient(circle, #fff9e5bd, #ffe9b32b 45%, transparent 72%);
  box-shadow: 0 0 35px 12px #ffe3a850;
}
.research-shell .shadow-reading-stage .research-card,
.research-shell .shadow-reading-stage .research-card:hover,
.research-shell .shadow-reading-stage .research-card:focus-visible {
  box-shadow: var(--cast-x, 0px) var(--cast-y, 0px) 16px rgba(37, 21, 6, var(--cast-alpha, 0)),
    inset 0 0 0 4px #ffecb510;
}
.theatre.is-lamp-lit .stage-lamp-wash { background: none; }
.theatre .status-chip, .theatre .light-button, .theatre .icon-button,
.theatre .finger-dock { color: #49351f; }
.drawer.is-lamp-lit {
  background: radial-gradient(circle var(--flashlight-radius, 600px) at var(--lamp-x) var(--lamp-y),
    #fff5d3c9, #ffe7a55c 58%, transparent), #e3dfd2;
}
.shadow-screen-bright #stage { filter: brightness(1.13); }
.text-projection-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.theatre > .text-projection-canvas { z-index: 0; }
.theatre .live-ui { z-index: 1; }
.research-dialog > :not(canvas, .shadow-lamp-cursor),
.drawer > :not(canvas, .shadow-lamp-cursor) { position: relative; z-index: 2; }
.shadow-room-dark .research-dialog {
  --line: #6b4c2930;
  color-scheme: light;
  background: #dbbd75;
  border: 12px solid;
  border-color: #272319 #383020 #59492f #383020;
  box-shadow: 0 0 0 1px #87724455, 0 35px 90px #000b;
  isolation: isolate;
}
.dialog-shadow-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.research-dialog-header, .research-dialog-body, .research-dialog-footer { padding-inline: 44px; }
.research-dialog-header { padding-top: 34px; background: #f3d89320; }
.research-dialog-footer { background: #9c773b12; }
.shadow-room-dark .research-dialog h2 { color: #322310; }
.shadow-room-dark .research-dialog .research-prose,
.shadow-room-dark .research-dialog .research-kicker,
.shadow-room-dark .research-detail-article h3 { color: #4a341c; }
.research-dialog-close { background: #f8e5ab55; color: #3e2a16; }
.research-dialog .research-lineage li { background: #f6df9b45; border-color: #8a643966; }
.research-dialog .research-lineage strong, .research-dialog .research-lineage li > span { color: #52391d; }
.research-dialog::backdrop { background: #060704cf; backdrop-filter: blur(9px); }
@keyframes screen-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.research-shell[data-motion="still"] .research-page { animation: none; }
@media (max-width: 1100px) {
  .shadow-reading-content { padding: 54px 8.8% 67px; column-gap: 25px; grid-template-columns: minmax(0, 1fr) minmax(205px, .65fr); }
  .research-opening .shadow-reading-content { grid-template-columns: minmax(0, 1fr) minmax(200px, .52fr); column-gap: 28px; }
  .shadow-reading-content .research-heading h1 { font-size: 33px; letter-spacing: 2px; }
  .research-shell .shadow-reading-stage .research-card { padding: 15px 13px; }
  .shadow-reading-content .research-grid { gap: 11px; }
  .shadow-reading-stage .research-card strong { font-size: 22px; }
  .shadow-reading-stage .research-card-title { font-size: 11px; }
  .shadow-reading-stage .research-feature strong { font-size: 26px; }
}
@media (max-width: 850px) {
  .research-grid-ten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-opening .shadow-reading-content { grid-template-columns: minmax(0, 1fr); }
  .research-opening .reading-scene-anchor { grid-column: 1; grid-row: 2; min-height: 235px; }
  .research-opening .research-introduction { grid-row: 3; }
  .research-opening .research-heading h1 .research-title-phrase { display: inline; white-space: normal; }
  .research-opening .research-heading h1 { max-width: 560px; }
  .shadow-reading-content .research-introduction p { font-size: 16px; }
}
@media (max-width: 650px) {
  .research-topbar, .topbar { height: 76px; min-height: 76px; padding-inline: 20px; }
  .research-shell .research-paper { padding: 19px 13px 65px; }
  .shadow-reading-content,
  .research-opening .shadow-reading-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 40px 8.8% 45px;
    min-height: 0;
  }
  .shadow-reading-content > .research-heading { align-self: stretch; }
  .shadow-reading-content .research-heading h1 { font-size: 28px; line-height: 1.6; letter-spacing: 1px; text-wrap: pretty; }
  .shadow-reading-content .research-kicker { font-size: 8px; gap: 8px; letter-spacing: .8px; margin-bottom: 13px; }
  .shadow-reading-content .research-kicker i { width: 20px; }
  .shadow-reading-content .research-hint { font-size: 11px; line-height: 1.9; }
  .reading-scene-anchor, .research-opening .reading-scene-anchor { min-height: 190px; }
  .reading-scene-anchor figcaption { gap: 5px 8px; font-size: 8px; letter-spacing: .5px; }
  .reading-scene-anchor figcaption > span:first-child { font-size: 12px; letter-spacing: 2px; }
  .shadow-reading-content .research-introduction p,
  .shadow-reading-content .research-introduction p:first-child { font-size: 15px; line-height: 2.15; letter-spacing: .3px; }
  .shadow-reading-content .research-colophon { font-size: 9px; letter-spacing: 1px; gap: 9px; }
  .shadow-reading-content .research-grid { gap: 12px; }
  .research-shell .shadow-reading-stage .research-card { min-height: 208px; padding: 15px 12px; }
  .shadow-reading-stage .research-card strong { font-size: 22px; letter-spacing: 1px; }
  .shadow-reading-stage .research-card-ornament { width: 29px; right: 10px; top: 13px; }
  .shadow-reading-stage .research-card-title { font-size: 12px; margin-block: 8px 20px; }
  .shadow-reading-stage .research-card-action { font-size: 9px; gap: 4px; letter-spacing: 0; }
  .shadow-reading-stage .research-grid-six .research-card { min-height: 170px; padding: 20px; }
  .research-shell .shadow-reading-stage .research-feature { min-height: 260px; padding: 23px; }
  .shadow-reading-stage .research-feature strong { font-size: 25px; }
  .shadow-reading-stage .research-feature .research-card-ornament { width: 40px; right: 21px; top: 20px; }
  .shadow-reading-stage .research-references { columns: 1; }
  .shadow-reading-stage .research-references li { padding-left: 27px; font-size: 13px; }
  .shadow-reading-stage .research-explanation { columns: 1; }
  .shadow-reading-stage .research-visual-sources h2 { font-size: 16px; }
  .research-dialog-header, .research-dialog-body, .research-dialog-footer { padding-inline: 20px; }
  .research-dialog-header { padding-top: 24px; }
  .shadow-room-dark .research-dialog { border-width: 8px; }
  .shadow-atmosphere-controls { right: 20px; }
}
@media (max-width: 370px) {
  .research-topbar, .topbar { padding-inline: 15px; }
  .research-topbar .brand-name { font-size: 18px; }
  .research-topbar .brand { gap: 9px; }
  .research-topbar .brand-name small { font-size: 5px; letter-spacing: 1.4px; }
  .research-shell .research-paper { padding-inline: 10px; }
  .shadow-reading-content, .research-opening .shadow-reading-content { padding-top: 35px; gap: 20px; }
  .shadow-reading-content .research-heading h1 { font-size: 25px; }
  .shadow-reading-stage .research-grid-ten { grid-template-columns: 1fr; }
  .research-shell .shadow-reading-stage .research-grid-ten .research-card { min-height: 182px; padding: 20px; }
  .shadow-reading-stage .research-card-title { font-size: 13px; }
  .research-dialog-header { padding: 20px 14px 15px; }
  .research-dialog-body { padding: 20px 16px; }
  .research-dialog h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .research-shell .research-page { animation: none; }
  .shadow-reading-stage .research-card { transition: none; }
}
/* A complete chapter fits the available desktop viewport in a 16:9 frame.
   Narrow screens retain readable native text and their normal document flow. */
@media (min-width: 900px) and (min-height: 640px) {
  .research-shell { height: 100svh; min-height: 0; }
  .research-topbar, .topbar { height: 60px; min-height: 60px; padding: 10px max(4%, calc((100% - 1200px) / 2)); flex-shrink: 0; }
  .research-topbar .brand-seal, .topbar .brand-seal { width: 33px; height: 35px; font-size: 27px; }
  .research-topbar .brand-name, .topbar .brand-name { font-size: 20px; }
  .research-topbar .brand-name small, .topbar .brand-name small { font-size: 6px; }
  .research-shell .research-paper {
    min-height: 0;
    padding: 12px 28px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .research-shell .research-page {
    width: min(1200px, calc((100svh - 174px) * 16 / 9), 100%);
    aspect-ratio: 16 / 9;
    flex: none;
  }
  .shadow-room-dark .shadow-reading-stage { width: 100%; height: 100%; border-width: 13px; }
  .shadow-room-dark .shadow-reading-stage::after { inset: -16px; }
  .shadow-reading-content, .research-opening .shadow-reading-content {
    height: 100%;
    min-height: 0;
    padding: 32px 8.6% 37px;
    grid-template-columns: minmax(0, 1fr) minmax(165px, .34fr);
    grid-template-rows: minmax(78px, .27fr) minmax(0, 1fr);
    gap: 13px 26px;
  }
  .shadow-reading-content .research-heading h1 { font-size: clamp(25px, 2.35vw, 34px); line-height: 1.4; letter-spacing: 2px; }
  .shadow-reading-content .research-kicker { font-size: 8px; gap: 10px; margin-bottom: 8px; letter-spacing: 1.5px; }
  .shadow-reading-content .research-kicker > span { font-size: 13px; }
  .shadow-reading-content .research-hint { font-size: 11px; line-height: 1.6; margin-top: 7px; }
  .shadow-reading-content .reading-scene-anchor { min-height: 0; height: 100%; }
  .reading-scene-anchor figcaption { font-size: 8px; gap: 4px 8px; letter-spacing: .5px; line-height: 1.4; }
  .reading-scene-anchor figcaption > span:first-child { font-size: 11px; letter-spacing: 2px; }
  .research-opening .shadow-reading-content {
    grid-template-columns: minmax(0, 1fr) minmax(190px, .45fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: center;
    row-gap: 19px;
    padding-block: 44px;
  }
  .research-opening .reading-scene-anchor { grid-row: 1 / 3; min-height: 0; }
  .research-opening .research-introduction { align-self: center; }
  .shadow-reading-content .research-introduction p,
  .shadow-reading-content .research-introduction p:first-child { font-size: clamp(12px, 1.02vw, 15px); line-height: 1.95; margin-bottom: 16px; letter-spacing: .35px; }
  .shadow-reading-content .research-introduction p:last-child { margin-bottom: 0; }
  .shadow-reading-content .research-colophon { margin: 0; gap: 9px; font-size: 9px; }
  .shadow-reading-content .research-colophon .small-seal { font-size: 11px; padding: 3px; }
  .shadow-reading-content .research-grid { gap: 10px; grid-auto-rows: minmax(0, 1fr); min-height: 0; }
  .shadow-reading-content .research-grid-ten { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shadow-reading-content .research-grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .research-shell .shadow-reading-stage .research-card { min-height: 0; padding: 12px 13px; }
  .shadow-reading-stage .research-card-top { font-size: 9px; margin-bottom: 6px; line-height: 1.2; }
  .shadow-reading-stage .research-card-era { font-size: 9px; margin-bottom: 3px; }
  .shadow-reading-stage .research-card strong { font-size: 20px; line-height: 1.25; letter-spacing: 1px; }
  .shadow-reading-stage .research-card-title { font-size: 11px; line-height: 1.6; margin-block: 6px 9px; }
  .shadow-reading-stage .research-card-action { font-size: 8px; line-height: 1.4; letter-spacing: .5px; }
  .shadow-reading-stage .research-card-ornament { width: 30px; height: 27px; top: 10px; right: 12px; }
  .shadow-reading-stage .research-grid-six .research-card-title { font-size: 12px; }
  .research-shell .shadow-reading-stage .research-feature { min-height: 0; padding: 22px 25px; }
  .shadow-reading-stage .research-feature strong { font-size: 27px; }
  .shadow-reading-stage .research-feature .research-card-top { margin-bottom: 22px; }
  .shadow-reading-stage .research-feature-copy { font-size: 13px; margin: 12px 0 19px; min-height: 0; }
  .shadow-reading-stage .research-feature .research-card-action { padding-top: 11px; }
  .shadow-reading-stage .research-feature .research-card-ornament { width: 44px; height: 40px; top: 22px; right: 23px; }
  .shadow-reading-stage .research-explanation { columns: 2; column-gap: 30px; }
  .shadow-reading-stage .research-explanation p { font-size: clamp(12px, .96vw, 14px); line-height: 1.85; letter-spacing: .2px; margin-bottom: 12px; }
  .shadow-reading-stage .research-explanation p:last-child { padding: 12px 14px; }
  [data-research-page="6"] .shadow-reading-content { grid-template-rows: 78px minmax(0, 1fr) auto; gap: 10px 24px; }
  .shadow-reading-stage .research-references { columns: 2; column-gap: 30px; }
  .shadow-reading-stage .research-references li { padding: 7px 0 7px 28px; font-size: clamp(10px, .84vw, 12px); line-height: 1.65; }
  .shadow-reading-stage .research-references li::before { top: 7px; font-size: 10px; }
  .shadow-reading-stage .research-visual-sources { padding-top: 12px; }
  .shadow-reading-stage .research-visual-sources h2 { font-size: 14px; margin-bottom: 5px; }
  .shadow-reading-stage .research-visual-sources p { font-size: 9px; line-height: 1.6; margin-bottom: 8px; }
  .shadow-reading-stage .research-visual-sources > div { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
  .shadow-reading-stage .research-visual-sources a { font-size: 10px; line-height: 1.5; gap: 2px; padding-left: 9px; }
  .shadow-reading-stage .research-visual-sources a span { font-size: 9px; line-height: 1.5; }
  .research-pagination { min-height: 70px; height: 70px; flex-shrink: 0; padding: 9px max(4%, calc((100% - 1200px) / 2)); }
  .research-chapters { gap: 23px; }
  .research-chapters a { font-size: 9px; }
  .research-chapters a span { font-size: 13px; margin-bottom: 3px; }
  .research-next { min-width: 120px; padding: 11px 15px; font-size: 11px; }
  .research-previous { font-size: 11px; }
  .shadow-atmosphere-controls { bottom: 3px; right: max(4%, calc((100% - 1200px) / 2)); gap: 16px; }
  .shadow-motion-toggle { min-height: 25px; padding: 3px 9px; font-size: 9px; }
  .shadow-light-note { font-size: 9px; letter-spacing: 1px; }
  .app-shell { min-height: 100svh; height: 100svh; }
  .theatre {
    flex: 1;
    min-height: 0;
    width: min(1200px, calc(100% - 64px));
    margin: 16px auto;
    border-width: 16px;
  }
  .app-shell .footer { min-height: 60px; height: 60px; padding-block: 10px; flex-shrink: 0; }
  .welcome { padding-top: 45px; padding-bottom: 75px; }
  .welcome h1 { font-size: 56px; }
  .welcome-caption { bottom: 24px; }
}
@media (min-width: 900px) and (min-height: 640px) and (max-height: 740px) {
  .shadow-reading-content, .research-opening .shadow-reading-content { padding-block: 26px 31px; row-gap: 10px; }
  .shadow-reading-content .research-heading h1 { font-size: 26px; }
  .research-opening .shadow-reading-content { row-gap: 13px; }
  .shadow-reading-content .research-introduction p,
  .shadow-reading-content .research-introduction p:first-child { font-size: 12px; line-height: 1.85; margin-bottom: 12px; }
  .research-shell .shadow-reading-stage .research-card { padding: 9px 10px; }
  .shadow-reading-stage .research-card-top { margin-bottom: 4px; font-size: 8px; }
  .shadow-reading-stage .research-card strong { font-size: 18px; }
  .shadow-reading-stage .research-card-title { margin-block: 4px 7px; font-size: 10px; }
  .shadow-reading-stage .research-card-era { font-size: 8px; }
  .shadow-reading-stage .research-explanation p { font-size: 11.5px; line-height: 1.7; margin-bottom: 8px; }
  .shadow-reading-stage .research-explanation p:last-child { padding: 8px 11px; }
  [data-research-page="6"] .shadow-reading-content { grid-template-rows: 62px minmax(0, 1fr) auto; row-gap: 8px; }
  .shadow-reading-stage .research-references li { font-size: 10px; padding-block: 5px; line-height: 1.5; }
  .shadow-reading-stage .research-references li::before { top: 5px; }
  .shadow-reading-stage .research-visual-sources { padding-top: 8px; }
  .shadow-reading-stage .research-visual-sources h2 { font-size: 12px; }
  .shadow-reading-stage .research-visual-sources p { font-size: 8px; }
  .shadow-reading-stage .research-feature strong { font-size: 23px; }
  .research-shell .shadow-reading-stage .research-feature { padding: 17px 20px; }
  .shadow-reading-stage .research-feature .research-card-top { margin-bottom: 15px; }
  .shadow-reading-stage .research-feature-copy { margin-block: 10px 15px; }
  .welcome { padding-top: 33px; }
  .welcome h1 { font-size: 49px; }
}

/* The figure itself is the reading entrance, with its caption on the screen. */
.research-shell .shadow-reading-stage .research-card.research-puppet {
  display: grid;
  grid-template-rows: 168px auto;
  justify-items: center;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
  transform: none;
  outline: none;
}
.research-shell .shadow-reading-stage .research-puppet::after { content: none; }
.research-puppet-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: transform .35s ease;
}
.research-puppet-image {
  display: block;
  width: 92%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 88%;
  filter: drop-shadow(var(--cast-x, 0px) var(--cast-y, 0px) 3px rgba(39, 22, 7, var(--cast-alpha, 0)));
  animation: puppet-breathe var(--puppet-duration, 5s) ease-in-out var(--puppet-delay, 0s) infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.research-puppet-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  align-self: start;
}
.shadow-reading-stage .research-puppet .research-card-top {
  width: auto;
  align-self: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 5px;
  line-height: 1.5;
}
.shadow-reading-stage .research-puppet .research-card-top strong {
  color: #753b26;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1px;
}
.shadow-reading-stage .research-puppet .research-card-top > span:last-child {
  visibility: visible;
  color: #753b26;
  font-size: 11px;
  line-height: 1;
}
.shadow-reading-stage .research-puppet .research-card-era {
  margin: 0;
  color: #624622;
  font-size: 9px;
  letter-spacing: .3px;
}
.shadow-reading-stage .research-puppet .research-card-title {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #402b16;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .3px;
  text-wrap: pretty;
}
.research-puppet:is(:hover, :focus-visible) .research-puppet-stage { transform: translateY(-4px) scale(1.045); }
.research-puppet:active .research-puppet-stage { transform: translateY(-1px) scale(.98); }
.research-puppet:focus-visible .research-puppet-caption {
  outline: 1px dashed #79452d;
  outline-offset: 4px;
}
.research-puppet:is(:hover, :focus-visible) .research-card-title { color: #783a25; }
.research-shell .shadow-reading-stage .research-feature.research-puppet { grid-template-rows: 235px auto; gap: 16px; }
.shadow-reading-stage .research-feature.research-puppet .research-card-top { margin: 0 0 5px; font-size: 10px; }
.shadow-reading-stage .research-feature.research-puppet strong { font-size: 24px; line-height: 1.45; letter-spacing: 2px; }
.shadow-reading-stage .research-feature.research-puppet .research-feature-copy {
  display: block;
  min-height: 0;
  margin: 7px 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .5px;
}
.shadow-reading-stage .research-feature.research-puppet .research-card-action {
  justify-content: center;
  gap: 10px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 9px;
}
@keyframes puppet-breathe {
  0%, 100% { transform: rotate(-1.1deg) translateY(0); }
  50% { transform: rotate(1.1deg) translateY(-2px); }
}
.research-shell[data-motion="still"] .research-puppet-image { animation-play-state: paused; }
.research-shell[data-motion="still"] .research-puppet-stage { transition: none; }
@media (min-width: 900px) and (min-height: 640px) {
  .shadow-reading-content .research-grid:has(.research-puppet) { gap: 13px 17px; }
  .research-shell .shadow-reading-stage .research-card.research-puppet,
  .research-shell .shadow-reading-stage .research-feature.research-puppet {
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 3px 2px 0;
    gap: 7px;
  }
  .research-puppet-caption { min-height: 64px; }
  .research-grid-six .research-puppet-caption { min-height: 58px; }
  .shadow-reading-stage .research-puppet .research-card-top { gap: 5px; margin-bottom: 3px; }
  .shadow-reading-stage .research-puppet .research-card-top strong { font-size: 12px; }
  .shadow-reading-stage .research-puppet .research-card-title { font-size: 11px; line-height: 1.5; letter-spacing: .15px; }
  .shadow-reading-stage .research-grid-six .research-card-title { font-size: 12px; }
  .research-feature.research-puppet .research-puppet-stage { max-height: 240px; }
  .research-feature.research-puppet .research-puppet-caption { min-height: 0; }
}
@media (min-width: 900px) and (min-height: 640px) and (max-height: 740px) {
  .shadow-reading-stage .research-puppet .research-card-title { font-size: 10px; line-height: 1.5; }
  .shadow-reading-stage .research-grid-six .research-card-title { font-size: 11px; }
  .research-puppet-caption { min-height: 61px; }
  .research-grid-six .research-puppet-caption { min-height: 52px; }
  .shadow-reading-stage .research-feature.research-puppet strong { font-size: 21px; }
  .shadow-reading-stage .research-feature.research-puppet .research-feature-copy { font-size: 11px; }
}
@media (max-width: 650px) {
  .research-shell .shadow-reading-stage .research-card.research-puppet { grid-template-rows: 145px auto; gap: 12px; padding: 8px 0; }
  .shadow-reading-content .research-grid:has(.research-puppet) { gap: 24px 14px; }
  .shadow-reading-stage .research-puppet .research-card-top { flex-wrap: wrap; gap: 3px 6px; }
  .shadow-reading-stage .research-puppet .research-card-top strong { font-size: 12px; }
  .shadow-reading-stage .research-puppet .research-card-title { font-size: 12px; }
  .research-shell .shadow-reading-stage .research-grid-six .research-puppet { grid-template-rows: 178px auto; }
  .research-shell .shadow-reading-stage .research-feature.research-puppet { grid-template-rows: 200px auto; }
}
@media (max-width: 370px) {
  .research-shell .shadow-reading-stage .research-grid-ten .research-puppet { grid-template-rows: 176px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .research-shell:not([data-motion="running"]) .research-puppet-image { animation: none; }
  .research-shell[data-motion="running"] .research-puppet-image { animation-duration: var(--puppet-duration, 5s) !important; }
  .research-puppet-stage { transition: none; }
}
