:root {
  --editorial-width: min(86vw, 1180px);
  --editorial-paper: #fbfaf7;
  --editorial-ink: #212329;
  --editorial-muted: #565960;
  --editorial-line: #d6d4ce;
  --editorial-serif: 'Iowan Portfolio', 'Iowan Old Style', 'Songti SC', 'Noto Serif CJK SC', Georgia, serif;
  --portfolio-name-font: 'Nimbus Sans', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: auto; }
body { background: var(--editorial-paper); color: var(--editorial-ink); }
.site-header { background: #fbfaf7f2; border-color: var(--editorial-line); }
.header-inner { width: var(--editorial-width); min-height: 60px; }
.wordmark { font: 600 17px/1 var(--portfolio-name-font); text-transform: none; letter-spacing: -.035em; white-space: nowrap; }
.site-header nav { gap: clamp(12px, 2vw, 23px); }
.site-header nav a, .language-switch { font-size: 13px; letter-spacing: .035em; }
.language-switch a.active { text-decoration: underline; text-underline-offset: 4px; }
.editorial-label { font: 400 .83rem/1.5 'Nimbus Sans', Arial, sans-serif; color: var(--editorial-muted); }
a:focus-visible, summary:focus-visible, video:focus-visible, .art-dialog button:focus-visible { outline: 2px solid #69617e; outline-offset: 5px; }

.five-worlds-index, .five-worlds-stories, .art-gallery { width: var(--editorial-width); margin-inline: auto; }
.portfolio-directory {
  padding: clamp(60px, 8vw, 124px) calc((100% - var(--editorial-width)) / 2) clamp(66px, 8vw, 112px);
  scroll-margin-top: 62px;
  background: var(--editorial-paper);
}
.directory-masthead {
  padding-bottom: clamp(27px, 4.3vw, 55px);
  border-bottom: 1px solid var(--editorial-line);
}
.directory-identity h1 {
  margin: 0 0 clamp(14px, 2vw, 26px);
  font: 400 clamp(2.35rem, 8.6vw, 8.3rem)/1 var(--portfolio-name-font);
  letter-spacing: -.043em;
  white-space: nowrap;
}
.opening-role, .opening-education { margin: 0; color: var(--editorial-muted); line-height: 1.5; }
.opening-role { font-size: 1rem; }
.opening-education { margin-top: 5px; font-size: .88rem; }
.portfolio-directory h2 { margin: 0 0 19px; font: 400 clamp(1.6rem, 3.1vw, 2.85rem)/1.15 var(--editorial-serif); letter-spacing: -.035em; scroll-margin-top: 84px; }
.master-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(17px, 3.6vw, 43px) clamp(12px, 2vw, 25px); padding: 0; margin: 0; list-style: none; }
.master-index li { display: flex; min-width: 0; }
.master-index a { min-width: 0; width: 100%; display: flex; flex-direction: column; }
.directory-art { display: grid; place-items: center; aspect-ratio: 16 / 8.7; overflow: hidden; background: #efeeea; }
.directory-art img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.directory-details { flex: 1; padding: 11px 0 10px; border-bottom: 1px solid var(--editorial-line); }
.directory-title { display: block; font: 400 clamp(1.12rem, 1.8vw, 1.5rem)/1.21 var(--editorial-serif); }
.directory-details small { display: block; margin-top: 4px; color: var(--editorial-muted); font-size: .84rem; line-height: 1.4; }
.directory-details small span { display: block; }
.master-index a:hover .directory-title { text-decoration: underline; text-underline-offset: .18em; }
.art-grid figcaption { margin-top: 10px; font: 400 .84rem/1.5 'Nimbus Sans', Arial, sans-serif; color: var(--editorial-muted); letter-spacing: 0; text-transform: none; }

.five-worlds { background: #f0efec; color: var(--editorial-ink); --world-muted: var(--editorial-muted); --world-serif: var(--editorial-serif); scroll-margin-top: 60px; }
.five-worlds-index { max-width: none; padding: clamp(44px, 5.5vw, 80px) 0 28px; background: transparent; color: inherit; }
.five-worlds-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: end;
  gap: clamp(18px, 4.3vw, 58px);
  max-width: none;
  margin: 0 0 clamp(26px, 4vw, 50px);
}
.five-worlds-heading h2 { margin: 8px 0 0; font: 400 clamp(2.5rem, 4.65vw, 4.9rem)/1.07 var(--editorial-serif); letter-spacing: -.046em; }
.five-worlds-index .five-worlds-kicker, .five-worlds-kicker { color: var(--editorial-muted); letter-spacing: .04em; }
.pico-intro-copy { max-width: 46ch; font-size: .96rem; line-height: 1.65; }
.pico-intro-copy p { margin: 0; }
.pico-intro-copy p + p { margin-top: 11px; }
.pico-intro-copy strong { margin-inline-end: .35em; }
.five-worlds-credit { font-size: .9rem; color: var(--editorial-ink); text-align: right; padding-bottom: 1px; }
.five-worlds-credit a, .five-worlds-back { color: var(--editorial-muted); text-decoration: underline; text-underline-offset: 4px; border: 0; }
.five-worlds-credit a { display: inline-block; margin-top: 6px; }
.five-worlds-grid { max-width: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 13px; }
.five-worlds-card { min-width: 0; display: flex; flex-direction: column; }
.five-worlds-card img { aspect-ratio: 5 / 4; object-fit: cover; border: 0; background: #211e27; }
.film-card-label { flex: 1; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--editorial-line); padding: 10px 0 9px; }
.five-worlds-card[aria-current="true"] .film-card-label { border-color: #333039; }
.five-worlds-card[aria-current="true"] .five-worlds-card-title { color: #201d27; }
.five-worlds-card-title { margin: 0; min-height: 0; font: 400 clamp(1rem, 1.24vw, 1.14rem)/1.2 var(--editorial-serif); }
.five-worlds-time { flex: none; color: var(--editorial-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.five-worlds-stories { padding: 0 0 clamp(54px, 7vw, 94px); max-width: none; }
.five-worlds-story { grid-template-columns: minmax(0, 1fr) minmax(0, 2.08fr); gap: clamp(18px, 3vw, 45px); padding: clamp(32px, 4vw, 54px) 0 0; border-top: 1px solid var(--editorial-line); scroll-margin-top: 82px; }
.five-worlds-story[hidden] { display: none; }
.five-worlds-story:focus { outline: none; }
.five-worlds-copy h3 { margin: .35em 0 .1em; font-size: clamp(2rem, 3.3vw, 3.65rem); letter-spacing: -.035em; }
.five-worlds-copy .five-worlds-english { color: var(--editorial-muted); font-size: 1.17rem; }
.five-worlds-copy p { font-size: .96rem; line-height: 1.7; }
.five-worlds-copy h4 { margin: 1.45em 0 .5em; padding-top: 1em; border-top: 1px solid var(--editorial-line); font-size: 1.09rem; }
.five-worlds-back { margin-top: 1.1rem; }
.five-worlds-view { grid-template-columns: minmax(0, 2.24fr) minmax(0, 1fr); gap: 16px; }
.five-worlds-view figcaption { font-size: .81rem; }
.five-worlds-player figcaption { display: flex; justify-content: space-between; gap: 12px; }
.five-worlds-stills { gap: 12px; }

.art-gallery { padding-block: clamp(51px, 7.5vw, 100px); background: transparent; color: var(--editorial-ink); scroll-margin-top: 60px; }
.art-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--editorial-line); padding-bottom: 20px; }
.art-intro h2 { margin: 4px 0 0; font: 400 clamp(2.45rem, 4.9vw, 4.7rem)/1.1 var(--editorial-serif); letter-spacing: -.048em; }
.art-intro nav { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .9rem; }
.art-intro nav a { text-decoration: underline; text-underline-offset: 4px; }
.art-group { margin-top: clamp(34px, 4.7vw, 68px); scroll-margin-top: 82px; }
.art-group h3 { margin: 0 0 16px; font: 400 clamp(1.45rem, 2.5vw, 2.2rem)/1.2 var(--editorial-serif); }
.art-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.art-grid a { display: block; background: #ebebe7; cursor: zoom-in; }
.art-grid img { width: 100%; height: auto; }
.art-grid figcaption { margin-top: 7px; }
.art-more { margin-top: 14px; }
.art-more summary { cursor: pointer; padding-block: 6px; width: fit-content; font-size: .86rem; color: var(--editorial-muted); }
.art-more .art-grid { margin-top: 12px; }
.art-dialog { width: min(94vw, 1260px); max-height: 92dvh; margin: auto; border: 0; padding: 12px 18px 15px; background: #1a1a20; color: #faf9f6; }
.art-dialog::backdrop { background: #0e1014d9; }
.art-dialog form { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.art-dialog button { min-height: 38px; color: inherit; border: 1px solid #8c939a; background: transparent; padding: 5px 12px; font: inherit; cursor: pointer; }
.art-dialog img { max-height: calc(92dvh - 120px); max-width: 100%; margin: auto; object-fit: contain; }
.art-dialog figcaption { text-align: center; margin-top: 9px; color: inherit; text-transform: none; letter-spacing: 0; }
.cargo-development { width: var(--editorial-width); }
.production-project.production-light { background: var(--editorial-paper); padding-inline: max(7vw, calc((100vw - 1180px) / 2)); }

@media (max-width: 1120px) {
  .five-worlds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .five-worlds-story { grid-template-columns: minmax(155px, .95fr) minmax(0, 2.4fr); }
}
@media (max-width: 680px) {
  :root { --editorial-width: calc(100% - 38px); }
  .site-header nav a, .language-switch { font-size: 12px; }
  .header-inner { min-height: 52px; }
  .five-worlds-story { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .master-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-identity h1 { font-size: clamp(2rem, 10.3vw, 4.6rem); }
  .five-worlds-heading { grid-template-columns: minmax(0, 1fr); }
  .five-worlds-credit { margin: 0; }
  .five-worlds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .five-worlds-view { grid-template-columns: minmax(0, 1fr); }
  .five-worlds-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-intro { align-items: start; flex-direction: column; gap: 9px; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 11px; }
}
@media (max-width: 380px) {
  .site-header nav { gap: 9px; }
  .site-header .edition-link { font-size: 10px; }
  .film-card-label { gap: 5px; }
}

/* Portfolio hierarchy and case studies. */
.project-contents {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px 21px;
  margin-block: 19px 27px;
  padding-block: 12px;
  border-block: 1px solid var(--editorial-line);
  color: var(--editorial-ink);
  text-align: left;
}
.contents-label { color: var(--editorial-muted); font-size: .78rem; white-space: nowrap; }
.contents-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; list-style: none; }
.contents-links a, .contents-back { font-size: .88rem; }
.contents-links a:hover, .contents-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.contents-back { white-space: nowrap; color: var(--editorial-muted); }
.five-worlds-index > .project-contents { margin-block: 0 19px; }
.project-panel > .project-contents { grid-column: 1 / -1; }
[data-chapter] { scroll-margin-top: 88px; }
.portfolio-case {
  width: var(--editorial-width);
  margin-inline: auto;
  padding-block: clamp(56px, 7vw, 112px);
  color: var(--editorial-ink);
  scroll-margin-top: 60px;
  border-top: 1px solid var(--editorial-line);
}
.case-header { display: grid; grid-template-columns: 1fr 1.12fr; gap: 5px 32px; align-items: end; }
.case-header .editorial-label { grid-column: 1 / -1; }
.case-header h2 { margin: 0; font: 400 clamp(3.15rem, 6vw, 6rem)/1.02 var(--editorial-serif); letter-spacing: -.056em; }
.case-synopsis { max-width: 47ch; font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.65; padding-bottom: 3px; }
.case-image a { display: block; cursor: zoom-in; }
.case-image img { width: 100%; height: auto; }
.case-image figcaption { margin-top: 7px; color: var(--editorial-muted); font: 400 .82rem/1.45 'Nimbus Sans', Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.case-chapter-art > .case-image + .case-image { margin-top: 20px; }
.case-chapter { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.7fr); gap: clamp(20px, 4vw, 58px); margin-top: clamp(28px, 4vw, 57px); padding-top: clamp(23px, 3vw, 44px); border-top: 1px solid var(--editorial-line); }
.case-chapter-heading h3 { margin: 0 0 10px; font: 400 clamp(1.45rem, 2.6vw, 2.4rem)/1.15 var(--editorial-serif); letter-spacing: -.023em; }
.case-chapter-heading p { font-size: .97rem; line-height: 1.75; max-width: 44ch; }
.case-chapter-art.two-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 680px) {
  .project-contents { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
  .contents-links { grid-column: 1 / -1; grid-row: 2; }
  .contents-back { grid-column: 2; grid-row: 1; }
  .case-header, .case-chapter { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 440px) {
  .case-chapter-art.two-images { grid-template-columns: 1fr; }
}

/* Project index and shared palette. */
:root { --selection: #c4dced; --selection-line: #86aec9; --selection-text: #244e67; }
html { scroll-behavior: smooth; accent-color: var(--selection-line); }
.site-header a:focus-visible, a:focus-visible, summary:focus-visible, video:focus-visible, .art-reel:focus-visible, .art-dialog button:focus-visible { outline: 2px solid var(--selection-line); outline-offset: 4px; }
.language-switch a.active { text-decoration-color: var(--selection-line); text-decoration-thickness: 3px; }
.directory-masthead { margin-bottom: clamp(24px, 4vw, 54px); }
.portfolio-directory h2 { margin-bottom: 3px; font: 600 clamp(1.55rem, 2.52vw, 2.55rem)/1.14 'Nimbus Sans', Arial, sans-serif; letter-spacing: -.023em; }
.directory-overline { margin: 0 0 clamp(25px, 5vw, 64px); font-size: .88rem; color: var(--editorial-muted); }
.master-index { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 13px; }
.directory-number { display: block; font-size: .72rem; color: var(--editorial-muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.directory-details { padding: 0 0 12px; margin-top: clamp(13px, 2.8vw, 32px); border-bottom: 1px solid var(--editorial-line); }
.directory-title { font: 500 clamp(1rem, 1.32vw, 1.2rem)/1.23 'Nimbus Sans', Arial, sans-serif; }
.directory-details small { font-size: .8rem; line-height: 1.47; }
.master-index a[aria-current="location"] .directory-details,
.five-worlds-card[aria-current="true"] .film-card-label { border-bottom-color: var(--selection-line); box-shadow: inset 0 -2px var(--selection); }
.master-index a[aria-current="location"] .directory-title,
.five-worlds-card[aria-current="true"] .five-worlds-card-title { color: var(--selection-text); }
.project-contents a[aria-current="location"] { color: var(--selection-text); border-bottom: 2px solid var(--selection-line); }
.five-worlds-card:focus-visible, .five-worlds-back:focus-visible { outline-color: var(--selection-line); }

/* Images sit behind the projects with a translucent page layer above them. */
:root { --blue-project-art: url("work/backgrounds/blue-texture.jpg"); }
#pico-five-worlds { --project-art: url("work/pico-art/project-background-silver.jpg"); }
#snapsort { --project-art: url("design/assets/snapsort/house-background.webp"); }
#lets-roll { --project-art: url("design/assets/lets-roll/star-background.webp"); --art-opacity: .17; }
#reconnect { --project-art: url("work/reconnect/project-background.jpg"); }
#equal-access { --project-art: var(--blue-project-art); }
#nearness { background-image: var(--blue-project-art); }
#pico-five-worlds, #snapsort, #lets-roll, #reconnect, #equal-access { position: relative; isolation: isolate; }
#pico-five-worlds::before, #snapsort::before, #lets-roll::before, #reconnect::before, #equal-access::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--project-art) center / cover no-repeat fixed;
  opacity: var(--art-opacity);
}

.cargo-artwork { min-width: 0; margin: 0; }
.cargo-artwork a { display: block; cursor: zoom-in; }
.cargo-artwork img { display: block; width: 100%; height: auto; }
.cargo-artwork figcaption, .art-reel figcaption { margin-top: 9px; text-transform: none; font: .84rem/1.45 'Nimbus Sans', Arial, sans-serif; color: var(--editorial-muted); letter-spacing: 0; }
.cargo-development-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .66fr);
  align-items: end;
  width: min(100%, 46rem);
  gap: clamp(12px, 2.5vw, 28px);
  margin: clamp(24px, 3.5vw, 46px) auto clamp(26px, 4vw, 52px);
}

.art-intro { align-items: end; }
.gallery-direction { color: var(--editorial-muted); font-size: .88rem; }
.art-reel {
  display: flex; align-items: start; gap: clamp(14px, 2.2vw, 28px);
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity;
  padding: 0 0 20px; margin: 0; list-style: none;
  scrollbar-color: var(--chapter-accent, #696664) var(--chapter-track, #dedad5);
  cursor: grab;
}
.art-reel:focus-visible { outline-color: var(--chapter-accent, var(--selection-line)); }
.art-reel.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.art-reel > li { flex: 0 0 clamp(8.25rem, 14.5vw, 12rem); min-width: 0; scroll-snap-align: start; }
.art-reel:not(.city-reel) > li { flex-basis: clamp(6.5rem, 12vw, 9.5rem); }
.art-reel figure { margin: 0; }
.art-reel img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.media-crop { position: relative; display: block; width: 100%; aspect-ratio: var(--ratio); overflow: hidden; }
.media-crop img { position: absolute; display: block; max-width: none; max-height: none; top: var(--image-y); left: var(--image-x); width: var(--image-w); height: var(--image-h); margin: 0; }

@media (max-width: 1120px) { .master-index { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 680px) {
  .master-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-details { margin-top: 11px; }
  #snapsort::before, #lets-roll::before, #reconnect::before, #equal-access::before {
    background-position: center top; background-attachment: scroll; background-size: auto 100svh; background-repeat: repeat-y;
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* A single background plate carries each project, with content in front. */
#pico-five-worlds.framed-project, #snapsort.framed-project, #lets-roll.framed-project,
#reconnect.framed-project, #equal-access.framed-project {
  width: 100%; margin: 0; padding: clamp(56px, 8vw, 126px) 0;
  background: #eeece8; border: 0;
}
.framed-project::before {
  background: var(--project-art) center / cover no-repeat fixed;
}
#pico-five-worlds.framed-project { --art-opacity: 1; background: #d7d7d6; }
#snapsort.framed-project { --art-opacity: .72; background: #efebe1; }
#lets-roll.framed-project { --art-opacity: .68; }
#reconnect.framed-project { --art-opacity: 1; background: #101116; }
#equal-access.framed-project { --art-opacity: 1; background: #e0eef0; }
.framed-project > .project-glass {
  width: var(--editorial-width); max-width: none; margin: 0 auto;
  padding: clamp(22px, 4vw, 60px);
  background: rgb(250 249 246 / .72);
  border: 1px solid rgb(255 255 255 / .49);
  box-shadow: 0 18px 60px rgb(18 22 22 / .06);
}
#snapsort > .project-glass { background: rgb(250 249 246 / .65); }
#pico-five-worlds > .project-glass {
  --editorial-width: min(86vw, 1180px);
  background: rgb(250 250 248 / .42);
}
#pico-five-worlds::before {
  background:
    linear-gradient(to top, rgb(34 35 38 / .17), transparent 32%, rgb(249 249 247 / .44) 63%, rgb(249 249 247 / .68)),
    var(--project-art) center bottom / max(100%, 640px) auto repeat-y;
  transform: scaleY(-1);
}
#pico-five-worlds::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: clamp(610px, 65vw, 875px);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--editorial-paper), transparent clamp(72px, 12vw, 165px)),
    url("work/index/cover-silver-light.jpg") 68% 59% / cover no-repeat;
  mask-image: linear-gradient(to bottom, #000 49%, transparent);
}
#reconnect > .project-glass { background: rgb(250 249 246 / .60); }
#equal-access > .project-glass,
#nearness > .project-panel { background: rgb(248 249 246 / .45); }
#reconnect::before { background-position: center 45%; }
.reconnect-background-credit {
  margin: clamp(20px, 4vw, 45px) 0 0;
  font-size: .78rem;
  color: var(--editorial-muted);
}
#pico-five-worlds .five-worlds-index, #pico-five-worlds .five-worlds-stories,
#pico-five-worlds .art-gallery, #pico-five-worlds .cargo-development { width: 100%; }
#pico-five-worlds .five-worlds-index { padding-top: 0; }
#pico-five-worlds .five-worlds-stories { padding-bottom: 0; }
#pico-five-worlds .art-gallery { padding-block: clamp(40px, 6vw, 78px); }
#pico-five-worlds .cargo-development {
  background: transparent;
  border-top: 1px solid var(--editorial-line);
  color: var(--editorial-ink);
}
#pico-five-worlds .cargo-development > summary { padding: 1rem 0; }
#cargo-development {
  background: transparent;
  color: inherit;
  padding: clamp(22px, 3.5vw, 50px) 0 0;
}
#cargo-development .production-note { color: var(--editorial-muted); }
@media (max-width: 680px) {
  #pico-five-worlds > .project-glass { --editorial-width: calc(100% - 38px); }
  #pico-five-worlds.framed-project, #snapsort.framed-project, #lets-roll.framed-project,
  #reconnect.framed-project, #equal-access.framed-project { padding-block: 35px; }
  #snapsort::before, #lets-roll::before, #reconnect::before, #equal-access::before {
    background-position: center top; background-attachment: scroll;
  }
}

/* Align all eight projects, including the PICO strip. */
.master-index .directory-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eeeee8;
}
.master-index .directory-art:not(.directory-film-strip) img {
  object-fit: cover;
}
.master-index .directory-art.directory-film-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto;
  align-content: center;
  gap: 2px;
  background: transparent;
}
.master-index .directory-film-strip img {
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  min-width: 0;
}
.master-index .directory-art img { align-self: stretch; }
.master-index a:is([href="#snapsort"], [href="#who-am-i"], [href="#reconnect"]) .directory-art img { object-fit: contain; }
.master-index a[href="#snapsort"] .directory-art {
  background: linear-gradient(#d1c1a5 0%, #d4c4a8 26%, #e1d2bc 54%, #e0d2bf 89%, #ded3c0 100%);
}
.master-index a[href="#snapsort"] .directory-art img { padding: clamp(2px, .35vw, 6px); }
.master-index a[href="#who-am-i"] .directory-art {
  background: linear-gradient(#d7d7d7 5%, #dfdfdf 27%, #ebebeb 50%, #f6f6f6 72%, #fefefe 95%);
}

#pico-five-worlds .five-worlds-grid { gap: 10px; }
#pico-five-worlds .five-worlds-card img { aspect-ratio: 16 / 10; }
.film-card-label { display: block; }
.five-worlds-time { display: block; margin-top: 4px; }

#pico-five-worlds .five-worlds-stories {
  display: grid;
  gap: clamp(30px, 5vw, 66px);
  margin-top: clamp(22px, 4vw, 50px);
}
.five-worlds-stories > .featured-film {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
}
.five-worlds-stories > .featured-film {
  margin-top: 0;
  padding: clamp(18px, 4.2vw, 40px);
  background: var(--chapter-tint);
  gap: clamp(17px, 2.9vw, 38px);
}
#cargo-rush {
  --chapter-tint: linear-gradient(140deg, #101321 15%, #18152a 72%, #0e1019);
  --editorial-ink: #f5f6ff;
  --editorial-muted: #c7cce4;
  --editorial-line: #494c68;
  --world-muted: var(--editorial-muted);
  --selection-line: #b5baff;
  color: var(--editorial-ink);
  grid-template-columns: minmax(0, .73fr) minmax(0, 1.16fr);
  align-items: start;
}
#cargo-rush h3 { margin-top: .15em; }
#cargo-rush .five-worlds-copy .five-worlds-english { color: #bec4ff; }
.cargo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-top: 25px;
  font-size: .9rem;
}
.cargo-watch { background: #dfe1ff; color: #171a31; padding: 8px 13px; font-weight: 600; }
.cargo-watch:hover { background: #f0f1ff; }
.cargo-process-link { color: var(--editorial-muted); text-decoration: underline; text-underline-offset: 4px; }
#cargo-rush .cargo-screening {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(12px, 2.6vw, 32px);
  padding-top: clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--editorial-line);
}
#cargo-rush-film { scroll-margin-top: 82px; }
#cargo-rush .five-worlds-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#city {
  --chapter-accent: #5158aa;
  --chapter-track: rgb(93 101 187 / .16);
}
#wonderland {
  --chapter-tint: #e9c7c4;
  --chapter-accent: #94546e;
  --chapter-track: #fae4ed;
}
#liaozhai {
  --chapter-tint: linear-gradient(140deg, #17201e, #26201d);
  --editorial-ink: #f3f0e9;
  --editorial-muted: #d6cdc2;
  --editorial-line: #5b544e;
  --world-muted: var(--editorial-muted);
  --selection-line: #d8a992;
  color: var(--editorial-ink);
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  align-items: start;
}
#liaozhai h3 { margin: .16em 0 .13em; overflow-wrap: anywhere; }
.liaozhai-studies {
  grid-column: 1 / -1;
  border-top: 1px solid var(--editorial-line);
  padding-top: clamp(15px, 2.4vw, 30px);
}
.liaozhai-studies h4 { margin: 0 0 14px; font: 400 1.25rem/1.35 var(--editorial-serif); }
.liaozhai-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
}
.liaozhai-images img { aspect-ratio: 16 / 10; object-fit: contain; background: #120f0e; }
#wonderland-art {
  --chapter-accent: #aa5e88;
  --chapter-track: rgb(209 126 171 / .2);
}
#cargo-rush .five-worlds-player video { object-fit: cover; }
#pico-five-worlds .five-worlds-story + .five-worlds-story {
  margin-top: 0;
}
.five-worlds-back { display: block; width: fit-content; }
.art-backdrop {
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid rgb(255 255 255 / .65);
  background: rgb(248 246 242 / .25);
}
#city { margin-top: clamp(22px, 3.5vw, 50px); }
#pico-five-worlds .art-group .art-reel img { background: transparent; }
.art-group + .art-group { margin-top: 24px; }

.snap-opening, .roll-film-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 65px);
}
.snap-opening > figure { max-width: 410px; margin-inline: auto; }
.snap-opening > figure img { height: auto; }
.snap-opening h3, .snap-chapter h3, .roll-film-layout h3, .roll-chapter h3 {
  margin: 0 0 .48em;
  color: var(--editorial-ink);
  font: 400 clamp(1.55rem, 3vw, 2.65rem)/1.15 var(--editorial-serif);
}
.snap-opening p, .snap-chapter > p, .roll-film-layout p {
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.68;
}
.snap-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 34px;
  padding: clamp(12px, 2.4vw, 27px) 0 0 1.4em;
}
.snap-steps li {
  border-top: 1px solid var(--editorial-line);
  padding-block: 8px 0;
  line-height: 1.4;
  font-size: .9rem;
}
.snap-chapter, .roll-chapter {
  border-top: 1px solid var(--editorial-line);
  margin-top: clamp(36px, 6vw, 76px);
  padding-block-start: clamp(23px, 4vw, 46px);
}
.snap-character-grid, .snap-button-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  text-align: center;
  align-items: start;
  margin-block: 25px;
}
.snap-button-row { align-items: center; }
.snap-button-row img { width: 100%; max-height: 74px; object-fit: contain; }
.snap-character-card {
  display: block;
  width: 100%;
  height: auto;
  max-width: 245px;
  margin: auto;
}
.snap-action { padding-top: 14px; }
.snap-action img { display: block; margin: auto; height: clamp(55px, 9vw, 118px); width: auto; mix-blend-mode: multiply; }
.snap-character-grid figcaption span { display: block; margin-top: 4px; }
.snap-chapter > figure img { width: 100%; height: auto; }

.snap-ui-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 31px);
  align-items: start;
}
.snap-ui-grid figure > img { width: 100%; height: auto; }
.snap-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(15px, 3vw, 38px);
  margin-block: clamp(20px, 3vw, 34px);
  padding: clamp(15px, 2.4vw, 26px);
  border: 1px solid rgb(120 113 86 / .25);
  background: rgb(255 253 245 / .58);
}
.snap-rules h4 {
  margin: 0 0 14px;
  color: #234536;
  font: 400 clamp(1.2rem, 2.2vw, 1.7rem)/1.25 var(--editorial-serif);
}
.snap-rules ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px clamp(14px, 2vw, 25px);
  margin: 0;
  padding-inline-start: 1.3em;
}
.snap-rules li {
  border-top: 1px solid var(--editorial-line);
  padding-top: 9px;
  line-height: 1.45;
}
.snap-rules li::marker { color: #35684e; }
.snap-rules strong { color: #234536; }
.snap-rules li p { margin: 6px 0 0; font-size: .94rem; }
.snap-rule-art { width: clamp(74px, 8.5vw, 108px); }
.snap-rule-art img { width: 100%; height: auto; mix-blend-mode: multiply; }
.snap-hearts > div { display: flex; align-items: center; justify-content: center; gap: 12%; }
.snap-hearts img { width: 36%; height: auto; }
.snap-roro-grid, .snap-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 34px);
  margin-top: 25px;
}
.snap-roro-grid { width: min(100%, 760px); margin-inline: auto; text-align: center; }
.snap-roro-grid img, .snap-model-grid img { display: block; width: 100%; height: auto; margin-inline: auto; }
.snap-roro-grid img { max-width: 400px; }
.snap-scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 36px);
  margin-top: 25px;
}
.snap-scene-grid figure { min-width: 0; text-align: center; }
.snap-scene-grid img {
  display: block;
  width: 100%;
  height: clamp(140px, 22vw, 300px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.snap-model-process {
  margin-top: clamp(24px, 3vw, 42px);
  padding-top: 12px;
  border-top: 1px solid var(--editorial-line);
}
.snap-model-process summary { color: var(--editorial-muted); cursor: pointer; }
@media (max-width: 600px) {
  .snap-scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-scene-grid > :first-child { grid-column: 1 / -1; }
  .snap-scene-grid > :first-child img { height: clamp(170px, 52vw, 275px); }
}
.snap-demo { display: block; width: 100%; aspect-ratio: 2290 / 1056; }
#snapsort .snap-chapter figcaption, #lets-roll .roll-chapter figcaption {
  margin-top: 7px;
  color: var(--editorial-muted);
  font-size: .85rem;
  letter-spacing: 0;
  text-transform: none;
}

#lets-roll .roll-portrait-film {
  display: block;
  margin: 0 auto;
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: none;
  object-fit: cover;
  background: transparent;
}
.roll-contribution { color: var(--editorial-muted); }
.roll-still-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
}
.roll-still-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
@media (max-width: 680px) {
  #cargo-rush, #cargo-rush .cargo-screening, #liaozhai, .snap-ui-grid { grid-template-columns: minmax(0, 1fr); }
  .liaozhai-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-opening, .roll-film-layout { grid-template-columns: minmax(0, 1fr); }
  .snap-opening > figure { width: min(82%, 320px); }
  .snap-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-rules { grid-template-columns: minmax(0, 1fr); }
  .snap-rules ol { grid-template-columns: minmax(0, 1fr); }
  .snap-hearts { max-width: 270px; }
}
@media (max-width: 480px) {
  #pico-five-worlds .five-worlds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #pico-five-worlds .five-worlds-card-title { font-size: .9rem; }
}
