/* Paper colophon, followed by a full-bleed photographic chapter. */
.journey.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-block: clamp(32px,4.2vw,64px) clamp(48px,6vw,92px);
}
.author-profile,.atlas-heading { width: min(1370px,90%); }
.author-profile {
  margin: 0 auto clamp(30px,4.5vw,66px);
  padding-bottom: clamp(19px,2.1vw,32px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: clamp(16px,3vh,32px);
}
.author-profile #profile-title { margin: 0 0 22px; font-size: clamp(27px,3vw,45px); }
.author-signature {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.15fr 1.3fr;
  gap: 15px 28px;
  align-items: baseline;
  margin: 0;
}
.author-profile dt { font: 500 12px/1.5 var(--sans); color: var(--muted); letter-spacing: .12em; }
.author-profile dd { margin: 5px 0 0; font: 700 clamp(18px,1.85vw,29px)/1.3 var(--standard-serif); color: var(--navy); }
.author-facts { display: flex; flex-wrap: wrap; gap: 12px clamp(18px,4vw,60px); margin: 20px 0 0; padding-top: 15px; border-top: 1px dotted var(--rule); }
.author-facts dd { font-size: clamp(16px,1.4vw,21px); }
.author-signature > div:first-child dd { color: var(--blue); }
.author-signature dd[lang="ja"] { font-family: "Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",var(--standard-serif); font-size: clamp(16px,1.5vw,24px); }
.author-signature dd[lang="en"] { font: 500 clamp(13px,1.35vw,21px)/1.5 Georgia,serif; letter-spacing: .07em; white-space: nowrap; }

.atlas-heading {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 24px; margin: 0 auto clamp(22px,3vw,42px);
}
.journey h2 { margin: 0; color: var(--navy); font: 800 clamp(44px,5.4vw,80px)/1.1 var(--display); letter-spacing: -.075em; }
.journey h2 span { color: var(--blue); }
.journey-route { color: var(--muted); font: 500 clamp(15px,1.26vw,19px)/1.6 var(--standard-serif); }
.journey-layout { position: relative; }
.journey-console {
  --frame-gutter: clamp(26px,5.9vw,112px);
  --frame-top: clamp(15px,3.4vh,44px);
  --footer-h: clamp(101px,13.4vh,128px);
  --frame-ivory: #fff5df;
  --frame-copper: #ffb193;
  color: var(--frame-ivory);
}
.atlas-ready .journey-console {
  position: sticky; top: 0; z-index: 2; isolation: isolate;
  width: 100%; height: 100vh; height: 100svh; overflow: hidden;
  background: #0a2337;
}
.print-window {
  --wipe: -13%; --lens-x: 50%; --lens-y: 50%; --lens-size: 67px;
  --pan-x: 0px; --pan-y: 0px; --base-zoom: 1.035; --next-zoom: 1.055;
  position: absolute; inset: 0; isolation: isolate; overflow: hidden; margin: 0;
  color: var(--frame-ivory); background: #0a2337;
}
.print-images,.print-loupe,.loupe-images,.etching-overlay,.plate-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.print-images img,.loupe-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.print-base,.loupe-base { transform: translate(var(--pan-x),var(--pan-y)) scale(var(--base-zoom)); }
.print-next,.loupe-next {
  transform: translate(var(--pan-x),var(--pan-y)) scale(var(--next-zoom));
  mask-image: linear-gradient(98deg,black calc(var(--wipe) - 7%),transparent calc(var(--wipe) + 7%));
}
.ink-aperture { position: absolute; inset: 0; }
@supports (clip-path: polygon(0 0,100% 0,100% 100%)) {
  .atlas-ready .ink-aperture { clip-path: var(--wet-edge,inset(0 100% 0 0)); }
  .atlas-ready :is(.print-next,.loupe-next) { mask-image: none; }
}
.print-images,.loupe-images { transition: filter .38s; }
.is-negative .print-images,.is-negative .loupe-images { filter: grayscale(1) invert(1) sepia(.45) saturate(.85); }
.print-loupe {
  opacity: 0; transition: opacity .18s;
  clip-path: circle(var(--lens-size) at var(--lens-x) var(--lens-y));
}
.loupe-images { transform: scale(1.58); transform-origin: var(--lens-x) var(--lens-y); }
.print-window.is-inspecting { cursor: crosshair; }
.is-inspecting .print-loupe { opacity: 1; }
.print-loupe::after {
  content: ""; position: absolute; top: var(--lens-y); left: var(--lens-x); transform: translate(-50%,-50%);
  width: calc(var(--lens-size) * 2); height: calc(var(--lens-size) * 2); border: 1px solid #faefd4c9; border-radius: 50%;
  box-shadow: inset 0 0 0 3px #152a423b;
}

.plate-shade {
  background:
    linear-gradient(0deg, #031321e8 0%, #04182ba8 18%, #061a2f2e 48%, transparent 78%),
    linear-gradient(90deg, #021426ce, #031b2ed1 17%, #061e31b8 35%, #0c263543 63%, transparent 84%),
    linear-gradient(180deg,#02111c7d,transparent 24%);
}
.plate-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#031626b0,#061a2c79 44%,transparent 80%); opacity: 0; transition: opacity .35s; }
.has-notes .plate-shade::after { opacity: 1; }
.plate-top,.plate-caption { position: absolute; pointer-events: none; }
.plate-top {
  top: calc(var(--frame-top) + env(safe-area-inset-top)); left: var(--frame-gutter); right: var(--frame-gutter);
  display: flex; align-items: center; gap: 14px; min-height: 36px;
  color: #fff7e7; font: 700 15px/1.35 var(--standard-serif);
  letter-spacing: .08em; text-shadow: 0 1px 5px #00131b;
}
.plate-counter { font: 500 12px/1.4 var(--sans); letter-spacing: .13em; }
.plate-meta { display: inline-flex; align-items: baseline; gap: 14px; }
.plate-meta strong { font: 800 clamp(16px,1.3vw,22px)/1.25 var(--display); }
.plate-meta .plate-counter { border-left: 1px solid #f7efdb78; padding-left: 13px; }
.plate-counter b { font: 600 15px Georgia,serif; }
.negative-switch {
  display: inline-flex; margin-left: auto; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 6px 13px; color: #fff7e7; pointer-events: auto;
  border: 1px solid #f9f2e08c; background: #09253ec0; font: 500 12px/1.4 var(--sans);
}
.negative-switch i { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; background: linear-gradient(90deg,currentColor 50%,transparent 50%); }
.negative-switch[aria-pressed="true"] { background: #eee5cd; color: #162d3e; border-color: #eee5cd; }
.negative-switch:is(:hover,:focus-visible) { border-color: #fff7e7; }

.plate-caption {
  left: var(--frame-gutter); width: min(53%,735px);
  top: calc(var(--frame-top) + 56px + env(safe-area-inset-top));
  bottom: calc(var(--footer-h) + clamp(22px,4.2vh,63px) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow: clip;
}
.scene-caption-inner {
  flex: none; width: 100%; margin-top: auto;
  text-shadow: 0 1px 6px #0114235c;
}
.scene-dateline { display: flex; align-items: end; gap: clamp(12px,1.9vw,30px); margin-bottom: clamp(10px,1.7vh,23px); }
#print-year {
  display: flex; color: #faeccd;
  font: normal clamp(66px,min(9.2vw,15vh),166px)/.94 Georgia,"Times New Roman",serif;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.055em;
}
.year-cell { display: inline-block; position: relative; width: .55em; height: 1.05em; overflow: hidden; }
.year-cell i { position: absolute; inset: 0; display: grid; place-items: end center; font-style: normal; }
.print-location { display: grid; gap: 4px; padding: 0 0 .36em; }
.print-location span { font: 550 12px/1.4 var(--sans); letter-spacing: .13em; }
.print-location b { font: 800 clamp(17px,1.55vw,26px)/1.3 var(--display); }
.scene-copy { position: relative; opacity: var(--caption-opacity,1); transform: translateY(var(--caption-shift,0px)); }
.scene-copy > article { display: none; }
.scene-copy > article.is-caption-current { display: block; }
.scene-copy.is-measuring > article { display: block !important; position: absolute; inset: 0 0 auto; width: 100%; visibility: hidden; transform: none; }

.life-stages,.life-events { margin: 0; padding: 0; list-style: none; }
.life-stage h3,.scene-copy h3 { margin: 4px 0 0; font: 800 clamp(27px,min(3.65vw,7.9vh),63px)/1.24 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.life-date { font: 650 clamp(13px,1.1vw,18px)/1.5 Georgia,var(--standard-serif); font-variant-numeric: lining-nums tabular-nums; }
.scene-copy .year-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.life-story,.life-lead { max-width: 39em; margin-top: clamp(9px,1.6vh,18px); font: 500 clamp(15px,1.18vw,20px)/1.77 var(--sans); }
.life-events { margin-top: 15px; border-top: 1px solid currentColor; }
.life-events li { display: grid; grid-template-columns: minmax(6em,.4fr) 1.6fr; gap: 5px 13px; padding: 7px 0; border-bottom: 1px solid currentColor; }
.life-events h4 { margin: 0; font: 700 14px/1.63 var(--standard-serif); }
.life-events p,.life-plan { font: 500 14px/1.68 var(--sans); }
.life-related { width: fit-content; margin-top: 3px; }
.life-plan { border-left: 2px dashed currentColor; padding: 0 0 0 12px; margin: 4px 0; }
.life-plan span { display: block; font-weight: 650; }
.scene-copy h3 { color: #fff5df; }
.scene-copy .life-date,.scene-copy .life-related,.scene-copy .life-plan span { color: var(--frame-copper); }
.scene-copy .life-story,.scene-copy .life-lead,.scene-copy .life-events,.scene-copy .life-plan { color: #f4f0df; }
.scene-copy .life-events,.scene-copy .life-events li { border-color: #d2dddf5e; }
.scene-copy .life-events h4 { color: #fff2d7; }
.scene-copy .life-plan { border-color: #f1a887; }
.scene-copy a,.scene-copy button { pointer-events: auto; }
.scene-copy a:focus-visible,.negative-switch:focus-visible,.print-transport :focus-visible { outline: 2px solid #ffd8a9; outline-offset: 2px; }
.atlas-ready .life-stages { position: absolute; inset: 0; pointer-events: none; }
.atlas-ready .life-stage { position: absolute; left: 0; width: 1px; height: 0; padding: 0; margin: 0; scroll-margin-top: 0; }

.print-transport {
  position: absolute; z-index: 2; inset: auto 0 0; height: calc(var(--footer-h) + env(safe-area-inset-bottom));
  display: grid; grid-template-rows: auto minmax(28px,1fr) auto; align-content: center;
  padding: 10px var(--frame-gutter) calc(8px + env(safe-area-inset-bottom));
  color: #f7efd9; background: linear-gradient(to bottom,#04162473,#031522ce);
  border-top: 1px solid #e6ede347;
}
.dial-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 500 12px/1.4 var(--sans); letter-spacing: .09em; }
.dial-label span { color: #d2d8cd; font: 500 12px/1.4 var(--standard-serif); }
.dial-label [data-reading-note] { color: var(--frame-copper); }
.timeline-exit { margin-left: auto; padding: 1px 2px; letter-spacing: .06em; }
.timeline-exit:hover { text-decoration: underline; text-underline-offset: .2em; }
.exposure-track { --dial-fill: 0%; display: flex; position: relative; align-self: center; align-items: center; margin: 0 calc(100% / 14); height: 34px; }
.exposure-track::before {
  content: ""; position: absolute; inset: 9px 0 10px;
  background: repeating-linear-gradient(to right,#e8e2ce70 0 1px,transparent 1px calc(100% / 48));
  mask-image: linear-gradient(to bottom,transparent 13%,#000 13% 52%,transparent 52%);
}
.exposure-track::after { content: ""; position: absolute; height: 1px; top: 19px; inset-inline: 0; background: linear-gradient(to right,#fa9d79 var(--dial-fill),#b2c0c066 var(--dial-fill)); pointer-events: none; }
.exposure-dial { appearance: none; -webkit-appearance: none; position: relative; z-index: 1; width: calc(100% + 18px); max-width: none; flex-shrink: 0; margin: 0 -9px; height: 34px; cursor: ew-resize; background: transparent; touch-action: pan-y; }
.exposure-dial::-webkit-slider-runnable-track { height: 2px; background: none; }
.exposure-dial::-moz-range-track { height: 2px; background: none; }
.exposure-dial::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 24px; margin-top: -10px; border: 0; background: #ff9a73; clip-path: polygon(50% 0,82% 25%,59% 25%,59% 100%,41% 100%,41% 25%,18% 25%); }
.exposure-dial::-moz-range-thumb { border: 0; border-radius: 0; width: 4px; height: 21px; background: #ff9a73; }

.stage-directory { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.stage-directory a {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 32px;
  color: #e6e9de; font: 500 clamp(12px,1.04vw,15px)/1.45 var(--sans);
}
.stage-directory a:is(:hover,:focus-visible,[aria-current="location"]) { color: #ffbb9b; text-decoration: underline; text-underline-offset: .34em; }
.stage-label-short { display: none; }

/* Semantic, fully expanded reading order when scripting is unavailable. */
.journey:not(.atlas-ready) .journey-layout { width: min(1100px,90%); margin-inline: auto; }
.journey:not(.atlas-ready) :is(.print-window,.dial-label,.exposure-track) { display: none; }
.journey:not(.atlas-ready) .print-transport { position: static; display: block; height: auto; padding: 8px 4px; background: #122b3f; }
.journey:not(.atlas-ready) .life-stage { border-left: 1px solid var(--rule); padding: 24px 0 24px clamp(16px,3vw,42px); scroll-margin-top: 22px; }
.journey:not(.atlas-ready) .life-stage h3 { font-size: clamp(23px,2.5vw,36px); }
.journey:not(.atlas-ready) .life-date,.journey:not(.atlas-ready) .life-related { color: var(--red); }
.journey:not(.atlas-ready) .life-events,.journey:not(.atlas-ready) .life-events li { border-color: var(--rule); }

@media (max-width: 760px) {
  .has-notes .plate-shade::after { background: linear-gradient(90deg,#031626a8,#03162686); }
  .author-signature { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .atlas-heading { margin-bottom: 16px; }.journey-route { font-size: 14px; }
  .journey-console { --frame-gutter: clamp(17px,5vw,38px); --frame-top: 13px; --footer-h: 130px; }
  .negative-switch { min-height: 44px; }
  .plate-caption { width: auto; right: var(--frame-gutter); bottom: calc(var(--footer-h) + 23px + env(safe-area-inset-bottom)); }
  .plate-shade { background: linear-gradient(0deg,#011322f5 0%,#031a2ae0 27%,#05203283 56%,#05152210 83%,#06152173 100%),linear-gradient(90deg,#081f3357,transparent 90%); }
  #print-year { font-size: clamp(62px,min(15.5vw,14vh),98px); }
  .scene-copy h3 { font-size: clamp(28px,6.55vw,43px); }
  .life-story,.life-lead { font-size: 15px; }
  .print-transport {
    grid-template-rows: minmax(38px,1fr) 44px 44px;
    padding: 0 clamp(0px,calc((100% - 308px)/2),3.4%) calc(4px + env(safe-area-inset-bottom));
  }
  .dial-label { font-size: 11px; padding-inline: 5px; align-items: center; }.dial-label span { font-size: 11px; }
  .timeline-exit { display: inline-flex; align-items: center; min-height: 38px; }
  .exposure-track,.exposure-dial { height: 44px; }
  .exposure-track::before { inset-block: 14px 15px; }
  .exposure-track::after { top: 24px; }
  .stage-directory a { font-size: 12px; min-height: 44px; }
}
@media (max-width: 460px) {
  .stage-label-full { display: none; }.stage-label-short { display: inline; }
  .life-events li { grid-template-columns: 1fr; gap: 1px; padding: 6px 0; }
}
@media (max-height: 540px) {
  .journey-console { --frame-top: 6px; --footer-h: 78px; }
  .plate-top { min-height: 32px; }.negative-switch { min-height: 32px; padding-block: 3px; }
  .plate-caption { top: calc(var(--frame-top) + 39px + env(safe-area-inset-top)); bottom: calc(var(--footer-h) + 10px + env(safe-area-inset-bottom)); }
  .scene-dateline { margin-bottom: 4px; }.print-location { gap: 0; }
  #print-year { font-size: clamp(36px,12vh,66px); }.scene-copy h3 { font-size: clamp(23px,6.8vh,36px); }
  .life-story,.life-lead { margin-top: 5px; font-size: 14px; }
  .print-transport { grid-template-rows: auto minmax(28px,1fr) auto; padding-top: 4px; padding-bottom: calc(2px + env(safe-area-inset-bottom)); }
  .dial-label,.dial-label span { font-size: 10px; }
  .timeline-exit { min-height: 0; }
  .exposure-track,.exposure-dial { height: 32px; }
  .exposure-track::before { inset-block: 8px 9px; }
  .exposure-track::after { top: 18px; }
  .stage-directory a { min-height: 28px; }
}
@media (min-width: 550px) and (max-height: 540px) {
  .journey-console { --footer-h: 88px; }
  .print-transport {
    grid-template-columns: minmax(96px,18%) minmax(0,1fr); grid-template-rows: 40px 44px;
    column-gap: 12px; padding-inline: max(3.5%,env(safe-area-inset-left)) max(3.5%,env(safe-area-inset-right));
  }
  .dial-label { grid-row: 1 / -1; flex-direction: column; align-items: start; justify-content: center; gap: 1px; }
  .timeline-exit { display: inline-flex; align-items: center; margin: 0; min-height: 34px; }
  .stage-directory a { min-height: 44px; }
}
@media (prefers-reduced-motion:reduce) {
  .print-loupe,.etching-overlay { display: none; }.print-window { cursor: auto; }
}
