.infographic {
  --bg: #414563;
  --title: #fff8e8;
  --accent: #ffdd8c;
  --rule: rgb(255 248 232 / 32%);
  color: var(--title);
  background-color: var(--bg);
}
.folio-layout {
  max-width: 1360px;
  min-height: 100svh;
  margin: auto;
  padding: 80px clamp(28px, 6vw, 86px) 46px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: center;
}
.project-column { min-width: 0; }
.return { display: inline-block; font-size: 14px; border-bottom: 1px solid var(--rule); }
.project-column h1 { margin: 30px 0 35px; font-size: clamp(48px, 5.9vw, 87px); }
.project-index { display: grid; border-top: 1px solid var(--rule); }
.project-index a {
  display: flex;
  align-items: center;
  gap: .5em;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
  font: 400 clamp(19px, 1.65vw, 26px)/1.3 var(--face);
  text-transform: uppercase;
}
.index-name { flex: 1; }
.index-count { font: 400 14px var(--body); font-variant-numeric: tabular-nums; }
.project-index a[aria-current] { color: var(--accent); }
.project-index a[aria-current]::before { content: '→'; }
.project-index a:hover .index-name { text-decoration: underline; text-underline-offset: .17em; }
.compact-index, .viewer-footer { display: none; }
.viewer { min-width: 0; width: min(100%, 52svh, 525px); justify-self: center; }
.sheet, .sheet img { display: block; width: 100%; }
.sheet img { height: auto; }
.series + .series { margin-top: 20px; }
.is-ready .series + .series { margin: 0; }
.is-ready .artboard { aspect-ratio: 3 / 4; touch-action: pan-y pinch-zoom; }
.is-ready .series, .is-ready .sheet, .is-ready .sheet img { height: 100%; }
.is-ready .sheet { cursor: zoom-in; }
.is-ready .sheet img { object-fit: contain; }
.infographic [hidden] { display: none; }
.is-ready .viewer-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}
.series-title { margin: 0; font: 500 clamp(18px, 2vw, 26px)/1.25 var(--face); }
.word, .glyph { display: inline-block; }
.word { white-space: nowrap; }
.position { font-size: 13px; font-variant-numeric: tabular-nums; }
.turn { display: flex; gap: 6px; }
.turn button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  font: 400 23px/1 var(--body);
  cursor: pointer;
}
.turn button:enabled:hover { color: var(--bg); background: var(--accent); }
.turn button:disabled { opacity: .35; cursor: default; }
.foil-glyph {
  position: relative;
  --paint: var(--title);
  color: transparent;
  background: repeating-linear-gradient(45deg,var(--paint) 0 .033em,transparent .033em .105em);
  background-clip: text;
  -webkit-text-stroke: .009em var(--paint);
}
.foil-glyph:nth-child(3n + 2) { background-image: repeating-linear-gradient(-45deg,var(--paint) 0 .033em,transparent .033em .105em); }
.foil-glyph::after {
  position: absolute; inset: 0;
  content: attr(data-letter); color: var(--paint);
  clip-path: inset(0); transition: clip-path .24s cubic-bezier(.3,.7,.3,1);
  pointer-events: none;
}
.foil-glyph.hatched::after { clip-path: inset(0 0 100% 0); }
.motion-toggle {
  position: fixed; bottom: 10px; right: 12px; width: 36px; height: 36px;
  border: 1px solid currentColor; background: var(--bg); color: inherit;
  border-radius: 50%; font-size: 14px; cursor: pointer;
}
.print-collection {
  --bg: #d999aa; --title: #452a37; --accent: #4f1830; --rule: rgb(69 42 55 / 35%);
}
.print-collection .turn button { border-color: currentColor; min-width: 46px; }
.print-collection .turn button:active { background: var(--title); color: var(--bg); }
.poster-collection {
  --bg: #663544; --title: #fff5de; --accent: #ffda8b; --rule: rgb(255 245 222 / 35%);
}
[data-collection="works"] .folio-layout {
  grid-template-columns: minmax(0,.73fr) minmax(0,1.27fr);
  gap: clamp(26px,5vw,72px);
}
[data-collection="works"] .project-index a { min-height: 41px; }
[data-collection="works"] .project-column h1 { margin: 22px 0 27px; font-size: clamp(44px,5.4vw,80px); }
[data-collection="works"] .viewer { width: 100%; }
[data-collection="works"].is-ready .artboard { height: min(64svh,710px); aspect-ratio: auto; }
.enlarge { margin-inline-start: 10px; font-size: 13px; border-bottom: 1px solid var(--rule); }
@media (prefers-reduced-motion: reduce) {
  .foil-glyph::after { transition: none; }
}
@media (max-width: 760px) {
  .folio-layout { display: block; min-height: auto; padding: 70px 24px 26px; }
  .project-column h1 { margin: 17px 0 16px; font-size: clamp(43px, 9.8vw, 69px); }
  .is-ready .project-index { display: none; }
  .is-ready .compact-index {
    display: flex; align-items: center; gap: 12px; border-block: 1px solid var(--rule);
    font-size: 13px;
  }
  .compact-index select {
    min-width: 0; flex: 1; padding: 8px 0; min-height: 44px; border: 0;
    color: var(--title); background: var(--bg); font: 400 17px var(--face);
  }
  .viewer { margin: 20px auto 0; width: min(100%, 48svh, 480px); }
  .infographic .da { position: static; display: inline-block; margin: 0 0 10px 15px; }
  .infographic .motion-toggle { position: static; float: right; margin: 0 15px 10px 0; }
  [data-collection="works"] .project-column h1 { margin: 17px 0 16px; font-size: clamp(43px,9.8vw,69px); }
  [data-collection="works"].is-ready .viewer { display: flex; flex-direction: column; gap: 12px; }
  [data-collection="works"].is-ready .viewer-footer { order: -1; border: 0; margin: 0; padding: 0; }
  [data-collection="works"].is-ready .artboard {
    position: relative; width: 100%; height: auto; max-height: 54svh; aspect-ratio: var(--art-ratio);
  }
  [data-collection="works"].is-ready .series { position: absolute; inset: 0; }
}
