/* A and B each occupy a square. All sizes here refer to that square before
   the board zoom, so the paper and its contents grow together. */
.tile { --inset: 7.3cqw; --content: 85.4%; --gap: clamp(12px,3.8cqw,36px); gap: var(--gap); }
.tile .label { --fs-label: clamp(32px,8.9cqw,80px); margin: 0 var(--inset); }
.label .cover { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em clamp(9px,1.7cqw,16px); }
.tile .ring-mark { margin-right: -.08em; }
.tile .label .ja,.tile .count { font-size: clamp(11px,2.7cqw,14px); }
.tile.b { --inset: 8.9cqw; --content: 82.2%; --gap: clamp(9px,3.8cqw,26px); }
.tile.b .label { --fs-label: clamp(23px,8cqw,52px); }
.tile a.cover:hover { text-decoration: none; }
.tile a.cover:hover .ja { text-decoration: underline; }

.brand { align-items: center; }
.lagoon {
  position: relative; width: 61.8034%; aspect-ratio: 1; flex: none; border-radius: 50%;
}
.lagoon::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: url('reel/atoll-720.webp') center / cover; box-shadow: 0 0 0 2px var(--reel-ink);
}
.disc { position: absolute; inset: 13%; border-radius: 50%; background: #fefefe; box-shadow: var(--shadow-paper); }
.disc::before {
  content: ''; position: absolute; inset: -4%; border: max(4px,1.18cqw) solid var(--mark);
  border-radius: 50%; box-shadow: 0 0 0 2px var(--reel-ink),inset 0 0 0 2px var(--reel-ink);
}
.mark { position: absolute; z-index: 2; left: -10%; top: -7%; width: 120%; overflow: visible; }
.word { position: absolute; z-index: 2; top: 68%; left: 20%; width: 60%; }
.reel-figure { position: absolute; z-index: 3; right: -5%; bottom: -5%; height: 43%; width: auto; }
.satellite { position: absolute; z-index: 1; inset: 0; transform: rotate(-55deg); pointer-events: none; }
.satellite img {
  position: absolute; left: -6%; top: 44%; width: 12%; border-radius: 24%;
  box-shadow: 0 0 0 1px var(--reel-ink), var(--shadow-paper);
  transform: rotate(55deg);
}
.satellite img + img { left: auto; right: -6%; }
@keyframes orbit { from { transform: rotate(-55deg); } to { transform: rotate(305deg); } }
@keyframes upright { from { transform: rotate(55deg); } to { transform: rotate(-305deg); } }
@media (prefers-reduced-motion: no-preference) {
  .pair[data-rank="0"] .satellite { animation: orbit 31s linear infinite; }
  .pair[data-rank="0"] .satellite img { animation: upright 31s linear infinite; }
  .intro .pair[data-rank="0"] :is(.satellite,.satellite img) { animation-play-state: paused; }
}
.brand h1 { position: absolute; inset: 0; }
.film-link { display: block; height: 100%; }
.reel-lead { margin: 0 9cqw; max-width: 28em; }
.reel-lead h2 { font-size: clamp(16px,5.1cqw,32px); line-height: 1.55; text-wrap: pretty; }
.reel-detail { margin-top: .8em; font-size: clamp(13px,3.4cqw,20px); line-height: 1.65; }

.tile :is(.finder,.sheet,.feature,.operator,.note-stack,.origin-logo) { flex: none; }
.tile :is(.finder,.sheet,.feature,.operator,.note-stack),.tile.origin > .note {
  width: var(--content); margin-inline: auto;
}
.finder { --app-icon: clamp(34px,9cqw,72px); --fs-xs: clamp(10px,2.5cqw,13px); --fs-sm: clamp(11px,2.8cqw,15px); }
.finder-bar { min-height: clamp(26px,6.2cqw,44px); }
.finder-lights { gap: clamp(4px,1cqw,8px); }
.finder-lights i { width: clamp(6px,1.7cqw,12px); height: auto; aspect-ratio: 1; }
.finder-body { padding: clamp(8px,3.6cqw,40px) clamp(6px,2.5cqw,32px); }
.finder-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(4px,2cqw,16px) .5cqw; }
.finder-icon { position: relative; z-index: 2; gap: clamp(3px,.9cqw,8px); padding: clamp(4px,1.4cqw,12px) 1px; }
.finder-name { text-wrap: balance; }
.finder-info { gap: 4px; line-height: 1.25; }
.finder-tag { width: clamp(6px,1.4cqw,10px); height: auto; aspect-ratio: 1; }
.finder-status { padding: clamp(3px,.9cqw,8px) clamp(8px,2cqw,16px); }
.feature { --tilt: -1.2deg; --stamp-size: clamp(40px,13cqw,76px); padding: clamp(14px,5.5cqw,32px); gap: clamp(6px,2cqw,16px); }
.feature .work-top { flex-wrap: wrap; gap: 1.4cqw; padding-right: var(--stamp-size); }
.feature .work-icon { width: clamp(36px,12cqw,72px); height: auto; }
.feature .work-meta { font-size: clamp(10px,2.6cqw,13px); }
.feature .desc { font-size: clamp(12px,3.2cqw,17px); line-height: 1.65; }
.feature .stamp-ink { font-size: clamp(10px,2.5cqw,14px); }
.feature .stamp-ink small { width: auto; font-size: clamp(7px,1.6cqw,10px); }
.feature .stamp::after { inset: 12%; }
.feature h3 { font-size: clamp(18px,5cqw,26px); }

.profiles .label .ja { color: var(--ink); }
.feed-stage { position: relative; width: 100%; height: min(77cqw,425px); pointer-events: none; z-index: 2; }
.feed-ring { position: absolute; inset: 0; }
.feed-item {
  --card-w: min(52cqw,305px); --card-h: min(73cqw,392px);
  position: absolute; width: var(--card-w); height: var(--card-h);
  left: calc(50% - var(--card-w) / 2); top: calc(50% - var(--card-h) / 2);
}
.feed-card {
  pointer-events: auto; --fs-xs: clamp(10px,2.3cqw,13px); --fs-sm: clamp(11px,2.6cqw,16px);
  --feed-mark: clamp(16px,4.5cqw,34px); gap: clamp(4px,1cqw,9px); padding: clamp(6px,1.7cqw,14px);
}
.feed-item.is-back .feed-card { pointer-events: none; }
.feed-card .feed-excerpt { min-height: 0; }
.feed-x { min-height: 22%; }
.feed-x svg { width: 27%; max-height: 100%; }
.tile .tree { --tree-mark: clamp(17px,5cqw,30px); --tree-indent: clamp(12px,3.5cqw,28px); padding: clamp(4px,1.8cqw,12px); }
.tile .tree-row { min-height: 0; }
.tile .tree-folder { gap: 1.3cqw; padding: .8cqw 1.5cqw; }
.tile .tree-file {
  position: relative; z-index: 2; grid-template-columns: var(--tree-mark) 1fr auto;
  grid-template-areas: "mark name go" "mark dest go" "mark note go";
  padding: clamp(4px,1.3cqw,10px) 1.5cqw; gap: 0 clamp(6px,2cqw,16px);
}
.tile .tree-list::before { left: 1.9cqw; }
.tile .tree-name { font-size: clamp(12px,3cqw,16px); }
.tile .tree-dest { font-size: clamp(10px,2.6cqw,14px); }
.tile .tree-note { font-size: clamp(10px,2.3cqw,13px); }
@container (max-width: 325px) {
  .tile .tree-note,.tile .tree-go { display: none; }
  .tile .tree-file { grid-template-columns: var(--tree-mark) 1fr; grid-template-areas: "mark name" "mark dest"; }
  .tile .tree-dest { line-height: 1.2; }
  .reel-detail { font-size: clamp(11px,5.5cqw,15px); }
}

.tile .about-lead { margin: 0 var(--inset); font-size: clamp(17px,4.1cqw,36px); font-weight: 700; line-height: 1.45; }
.note-stack { display: grid; gap: clamp(12px,4.5cqw,42px); }
.tile .note { padding: clamp(12px,3cqw,30px); font-size: clamp(12px,2.5cqw,16px); }
.tile .note h3 { font-size: clamp(14px,3cqw,20px); }
.note--a { --tilt: -1.4deg; }
.note--b { --tilt: 1deg; }
.note--c { --tilt: -.8deg; }
.tile .doing div { gap: 2cqw; padding: clamp(4px,1cqw,12px) 0; grid-template-columns: minmax(56px,16%) 1fr; }
.tile .doing small { font-size: clamp(9px,2cqw,12px); }
.tile .note h3 + .doing { margin-top: .65em; }
.tile .next-head { gap: 8px; margin-bottom: .3em; }
.tile .mark-later { flex: none; font-size: clamp(10px,2cqw,12px); height: auto; padding: 0 .7em; }
.origin-logo { display: grid; justify-items: center; gap: 6px; margin: 0 auto 1em; }
.origin-logo img:first-child { width: 66%; max-width: 200px; height: auto; }
.origin-logo img + img { width: 38%; max-width: 115px; height: auto; }
.tile.origin .note { padding: clamp(14px,4cqw,32px); }
.origin .note h3 { margin-bottom: .55em; }
.operator { position: relative; padding: clamp(18px,5.3cqw,48px); gap: clamp(8px,1.7cqw,16px); }
.operator .figure { position: absolute; right: 5%; top: 9%; height: 63%; max-width: 28%; object-fit: contain; }
.operator .operator-name { font-size: clamp(36px,8.8cqw,76px); }
.operator :is(.school,.bio) { width: 68%; font-size: clamp(13px,2.9cqw,18px); line-height: 1.65; }
.school span { white-space: nowrap; }
.operator-more { font-size: clamp(12px,2.7cqw,16px); }
.timeline { padding: clamp(10px,4cqw,28px); }
.timeline .tl-year-label { display: block; }
.timeline .tl-event { grid-template-columns: clamp(48px,14cqw,80px) 1fr; align-items: baseline; gap: 6px; }
.timeline .what { font-size: clamp(12px,2.9cqw,16px); }
@container (max-width: 460px) {
  .timeline .tl-year:last-child { display: none; }
  .tile .tl-event { grid-template-columns: 1fr; gap: 0; }
  .tile .about-lead { margin-bottom: -.25em; }
  .tile .note-stack { gap: 15px; }
  .tile .note-stack .doing div:nth-child(2) { display: none; }
}
@container (max-width: 330px) {
  .timeline .tl-year:not(:first-child),.timeline .tl-event:nth-child(n+3) { display: none; }
  .tile .tl--short { --tl-rail: 19px; --tl-ring-now: 13px; --tl-ring: 9px; --tl-dot-y: 10px; }
  .tile .tl--short .tl-event { padding-bottom: 3px; }
  .tile .tl--short .tl-year-label { padding-bottom: 4px; }
  .tile.origin .note p { display: none; }
  .tile .feature .work-meta { display: none; }
  .feature .stamp-ink { z-index: 1; filter: none; }
  .feature .stamp-ink small { background: var(--paper-white); }
}

/* C/D show the recognizable parts at their next reading size. Small type
   returns as the same tile grows. Keep the Finder targets in order. */
[data-compact] .tile { --gap: 4cqw; }
[data-compact] .label { --fs-label: max(43px,11cqw); }
[data-compact] .label :is(.ja,.count),[data-compact] :is(.reel-detail,.finder-info,.finder-status,.finder-name,.feature .desc,.feature .stamp,.feature .work-meta,.feed-excerpt,.feed-title,.feed-date,.tree-dest,.tree-note,.tree-go,.timeline,.note-stack,.note--c p,.about-lead,.operator .school,.operator .bio,.operator-more,.operator-kicker,.operator .figure,.reel-figure,.satellite) { display: none; }
[data-compact] .finder { --app-icon: 11cqw; }
[data-compact] .finder-path { font-size: 3.4cqw; }
[data-compact] .finder-body { padding: 2cqw; }
[data-compact] .finder-icon { min-height: 13cqw; }
[data-compact] .feed-mark { width: 6cqw; height: 6cqw; }
[data-compact] .feed-head { font-size: 3cqw; }
[data-compact] .tree-row { padding: 2.5cqw; }
[data-compact] .tree-name { font-size: 4.5cqw; }
[data-compact] .operator { padding: 5cqw; }
[data-compact] .operator-name { font-size: 11cqw; }
[data-compact] .reel-lead h2 { font-size: 5.5cqw; }
[data-compact] .feature { padding: 4cqw; }
[data-compact] .feature .work-icon { width: 16cqw; }
[data-compact] .feature h3 { font-size: 5.5cqw; }
[data-compact] .note--c h3 { font-size: 6cqw; }
.tile[data-miniature] > :is(.tree,.feature,.note,.feed-stage,.note-stack,.operator) { display: none; }
[data-miniature] .label { --fs-label: 15cqw; }
[data-miniature] .label .cover { gap: 1cqw; }
/* Keep the film landing and its cover in separate paint layers. */
.lagoon { pointer-events: none; }
.brand h1 { z-index: 4; }
.preview-name,.short-name { display: none; }
[data-compact] .reel-lead .intro-line { display: none; }
[data-compact] .reel-lead .preview-name { display: block; font: 700 12cqw/1.2 var(--font-display); }
[data-compact] .tile.b .label { --fs-label: 13cqw; }
.tile[data-miniature] .label { --fs-label: 17cqw; }
.tile[data-miniature] .label .en,.tile[data-miniature] .ring-mark { display: none; }
.tile[data-miniature] .label .ja { display: block; font-size: 12cqw; line-height: 1.25; }
.tile[data-miniature] .full-name { display: none; }
.tile[data-miniature] .short-name { display: inline; }
.tile[data-miniature].profiles .ja { font-size: 8.7cqw; }

.feed-card .feed-head,.feed-card .feed-title,.feed-card .feed-date { flex: none; }
.feed-card .feed-excerpt { line-height: 1.45; }
.feed-card .feed-date { line-height: 1.25; }
.timeline .tl-year-label { line-height: 1; }
.timeline .tl-event { padding-block: 3px 7px; }
.timeline .tl-year:not(:first-child) .tl-year-label { padding-top: 10px; }
.timeline .tl-when { white-space: nowrap; }
@container (min-width: 460px) {
  .timeline { --tl-ring: 12px; --tl-ring-now: 18px; }
  .timeline .tl-event { grid-template-columns: minmax(83px,16%) 1fr; }
}
@container (min-width: 300px) and (max-width: 460px) {
  .timeline .tl-event { grid-template-columns: 5.7em 1fr; }
  .timeline .tl-event .what { text-wrap: pretty; }
}
@container (max-width: 320px) {
  .tile .label .cover { gap: 4px 8px; }
  .tile .label .ja { font-size: 10px; }
  .tile .short-name { display: inline; }
  .tile .full-name { display: none; }
  .tile .tree-file { padding-block: 3px; }
  .reel-lead { margin-inline: 7cqw; }
  .reel-lead h2 { font-size: clamp(13px,6.7cqw,19px); }
}
@container (max-width: 200px) {
  .reel-lead .reel-detail { font-size: 11px; line-height: 1.48; }
  .reel-lead h2 { line-height: 1.42; }
  .tile .label .ja { display: none; }
  .tile .tree-folder { font-size: 12px; }
  .tile .tree-file { padding-block: 2px; }
  .timeline { --sp-4: 8px; }
  .timeline .what { font-size: 11px; }
}
@container (max-width: 330px) {
  .tile .finder { --app-icon: 30px; }
  .tile .finder-icon { padding-block: 3px; }
  .tile .feature { gap: 5px; }
  .tile .feature .desc { font-size: 11px; }
  .tile .note-stack .note { padding-block: 10px; }
  .tile .note-stack .note--b p { display: none; }
  .tile .note-stack .note--a .doing { margin-top: 3px; }
  .tile .operator-more { min-height: 32px; }
}
@container (max-width: 200px) {
  .tile .tree-file { grid-template-areas: "mark name"; padding-block: 4px; }
  .tile .tree-file .tree-dest { display: none; }
  .tile .tl-event:nth-child(n+2) { display: none; }
}
@container (min-width: 330px) and (max-width: 400px) {
  .timeline .tl-year:nth-child(n+2) { display: none; }
}
@container (min-width: 331px) and (max-width: 360px) {
  .tile .note-stack { gap: 12px; }
}

[data-compact] .finder-icon { min-height: 18cqw; }
.tile[data-miniature].kamo { --gap: 1.2cqw; }
.tile[data-miniature].kamo .label .cover { display: block; }
.tile[data-miniature].kamo .label .ja { font-size: 0; }
.tile[data-miniature].kamo .feature {
  display: grid; justify-items: center; gap: 3cqw; width: auto; padding: 0;
  background: none; box-shadow: none; transform: none;
}
.tile[data-miniature].kamo .feature::after { display: none; }
.tile[data-miniature].kamo .work-top { padding: 0; }
.tile[data-miniature].kamo .work-icon { width: 38cqw; }
.tile[data-miniature].kamo .feature h3 { font-size: 13cqw; line-height: 1.2; }
.tile[data-miniature].profiles .ja { font-size: 13cqw; }

.feature-link { align-self: start; }
.feature :is(.chips,.feature-link) { font-size: 14px; }
@container (max-width: 440px) {
  .feature :is(.chips,.feature-link) { display: none; }
}
[data-compact] .feature :is(.chips,.feature-link),.tile[data-miniature] .feature::before { display: none; }
.tile .operator { margin-left: var(--inset); }
.tile.origin:not([data-miniature]) .label .ja { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
[data-compact] .tile.about .note-stack { display: block; }
[data-compact] .tile.about .note-stack :is(.doing,.note--b) { display: none; }
[data-compact] .tile.about .note--a { padding: 5cqw; }
[data-compact] .tile.about .note--a h3 { font-size: 5.6cqw; line-height: 1.25; }

.reel-lead { margin-inline: var(--inset); }
.reel-lead p { text-wrap: pretty; }

/* Divide the unused space around each group. A opens higher; B sits
   nearer the nested pair. Both weights travel with the paper on zoom. */
.tile:not(.brand)::before, .tile:not(.brand)::after {
  content: ""; flex: var(--lead-space, .382) 0 0; margin-bottom: calc(-1 * var(--gap));
  pointer-events: none;
}
.tile:not(.brand)::after { flex-grow: var(--trail-space, .618); margin: calc(-1 * var(--gap)) 0 0; }
.tile.b { --lead-space: .618; --trail-space: .382; }
[data-compact] .tile.a { --lead-space: .3; --trail-space: .7; }

/* Set the smallest headings directly on the paper. Their covers still fill the tile. */
[data-compact] .b.person .preview-name,
[data-compact] .b.career .label .ja {
  display: block; font: 700 clamp(35px,11cqw,56px)/1.25 var(--font-display);
}
[data-compact] .b.career .label :is(.en,.ring-mark,.full-name) { display: none; }
[data-compact] .b.career .short-name { display: inline; }
[data-compact] .b .tree-name { font-size: max(29px,5cqw); }
[data-compact] .b .tree-row { padding-block: 1.2cqw; }
[data-compact] .b .feature h3 { font-size: max(30px,6cqw); }
.b[data-miniature]:is(.profiles,.origin) .label .ja {
  font: 700 max(35px,12cqw)/1.28 var(--font-display);
}
.tile[data-miniature].origin .label .ja { text-wrap: balance; }
.tile[data-miniature].kamo .feature h3 { font-size: max(34px,12cqw); }

.peek > span {
  font: 700 clamp(13px,14cqmin,23px)/1.15 var(--font-display);
  letter-spacing: .035em; margin: 15cqmin 0 0 18cqmin;
}
.peek-brand > span { font-family: var(--font-heavy); font-weight: 400; font-size: clamp(11px,16cqw,19px); letter-spacing: -.04em; }
.peek:focus-visible { outline: 3px solid var(--mark); outline-offset: -4px; }
@container (max-width: 90px) {
  .peek-brand > span { font: 700 13px/1.15 "Avenir Next Condensed","Arial Narrow",sans-serif; letter-spacing: -.035em; }
}
@media (max-aspect-ratio: 1/1) {
  .peek > span { align-self: end; margin: 0 0 16cqh; }
}

/* The three links share the operator's printed cover. The actual reel mark
   and word move into their full-size positions as the photo mount returns. */
.cover-credit { display: contents; }
.cover-credit > :is(small,.cover-school) { display: none; }
[data-cover-preview] .brand .lagoon {
  transform: rotate(calc(-3deg * var(--cover-ink)));
}
[data-cover-preview] .brand .lagoon::before,
[data-cover-preview] .brand :is(.disc,.reel-figure,.satellite) { opacity: var(--hero-ink); }
[data-cover-preview] .brand .mark {
  left: calc(-10% + 8.22% * var(--cover-ink)); top: calc(-7% + 19.3% * var(--cover-ink));
  width: calc(120% - 16.45% * var(--cover-ink));
}
[data-cover-preview] .brand .word {
  left: calc(20% + 2.55% * var(--cover-ink)); top: calc(68% + 8.1% * var(--cover-ink));
  width: calc(60% - 5.1% * var(--cover-ink));
}
[data-cover-preview] #logo-edge feFlood { flood-opacity: var(--hero-ink); }
[data-cover-preview] .b.person .cover { position: absolute; inset: 0; display: block; }
[data-cover-preview] .cover-credit {
  display: flex; position: absolute; inset: 0 4% 0 calc(2% + 7% * var(--hero-ink));
  flex-direction: column; justify-content: center; align-items: flex-start; color: var(--reel-ink);
  font-family: var(--font-display); line-height: 1.25; pointer-events: none;
}
[data-cover-credit] .cover-credit { color: #142b47; }
[data-cover-preview] .b.person .cover-credit .preview-name {
  display: block; font-size: max(calc(11cqw + 9.4cqw * var(--cover-ink)),calc(16 * var(--credit-pixel)));
  line-height: 1.23; letter-spacing: .04em;
}
[data-cover-credit] .b.person .cover-credit .preview-name { font-family: var(--cover-type); }
[data-cover-credit] .cover-credit > :is(small,.cover-school) {
  display: block; font-weight: 500;
  font-size: max(4.65cqw,calc(10 * var(--credit-pixel))); margin-block: 1.9cqw;
}
.cover-credit small { color: #314c65; letter-spacing: .07em; }
.cover-school span { white-space: nowrap; }
[data-short-credit][data-cover-credit] .cover-credit .cover-school { display: none; }
.peek-works > .works-cover {
  width: 98%; margin: 0; justify-self: end; align-self: center; opacity: var(--works-cover-ink,1);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2.7cqw; color: #142b47;
  font: 700 max(8.9cqw,calc(12 * var(--works-pixel,1px)))/1.16 var(--font-display);
}
.cover-icons { display: flex; padding: 2% 0 1% 1%; }
.cover-icons img {
  width: max(16.8cqw,calc(12 * var(--works-pixel,1px))); aspect-ratio: 1; border-radius: 24%;
  outline: max(.4cqw,.65px) solid #fbf7ef; box-shadow: 0 .6cqw 1.3cqw #1233;
}
.cover-icons img + img { margin-left: -2.6cqw; }
.cover-icons img:first-child { z-index: 2; transform: rotate(-8deg); }
.cover-icons img:nth-child(2) { z-index: 1; }
.cover-icons img:last-child { transform: rotate(8deg); }
.cover-title { word-break: keep-all; letter-spacing: .025em; }
@media (max-aspect-ratio: 1/1) {
  [data-cover-preview] .cover-credit { inset-inline: 9% 2%; }
  .peek-works > .works-cover { width: 95%; gap: 6cqw; }
}
@media (min-aspect-ratio: 1/1) {
  .peek-works::before {
    content: ""; position: absolute; inset: 12% 8% auto 2%; height: 1px;
    background: linear-gradient(90deg,transparent,#8b97976b 12%,#8b97976b 84%,transparent);
    opacity: var(--works-cover-ink,1); pointer-events: none;
  }
}
