/* =====================================================================
   AE FILES — site.css
   One stylesheet for the three page types: the stack (home), a file,
   and the about sheet.

   System
     ground #18181a · paper #fcf9f4 · six folder tones (archive.mjs)
     display  Archivo extra condensed 800   titles, note heads
     text     Spectral 300                  tabs, essays, lede
     machine  IBM Plex Mono 400/700         captions, facts, notes
     one ease, one duration, 4px radius, rem scale stepped per width
   ===================================================================== */

@font-face { font-family: "Archivo XC"; src: url("../fonts/archivo-xcond.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #18181a;
  --paper: #fcf9f4;
  --ink: #18181a;
  --mute: #a6a8ae;
  --rule: rgba(255, 255, 255, .1);
  --card: #f1e9d6;
  --note-y: #f6dc6e;
  --note-p: #e59aa6;
  --note-b: #8fb2f0;

  --disp: "Archivo XC", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.33, 1, .68, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .65s;
  --rad: 4px;

  --gut: 32px;
  --hdr: 60px;
  --off: 3.75rem;
  --tab-h: 2.75rem;
  --tab-w: calc(var(--tab-h) * 1.41);
  --lg: 80vh;
  --sm: clamp(var(--off), calc(100vh - 36.5rem), 15vw);
  --reveal: 12.5rem;
  --micro: max(.75rem, 11px);
}
@supports (height: 1svh) {
  :root { --lg: 80svh; --sm: clamp(var(--off), calc(100svh - 36.5rem), 15vw); }
}

html { font-size: 15px; line-height: 1.25; -webkit-text-size-adjust: 100%; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; }
@media (min-width: 1440px) { html { font-size: 16px; } :root { --gut: 34px; } }
@media (min-width: 1920px) { html { font-size: 18px; } :root { --gut: 48px; } }
@media (max-width: 1024px) { html { font-size: 14px; } :root { --gut: 30px; --sm: 20vh; } }
@media (max-width: 768px) { html { font-size: 13px; } :root { --gut: 20px; --tab-h: 2.25rem; --tab-w: calc(var(--tab-h) * 1.2); } }
@media (max-width: 480px) { :root { --gut: 18px; --sm: 15vh; --tab-w: var(--tab-h); } }

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--paper); font-family: var(--text); font-weight: 300; font-size: 1rem; }
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
::selection { background: #ffe534; color: #060606; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gut); top: -4rem; z-index: 300; padding: .75rem 1rem; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: .875rem; }
.skip:focus { top: .5rem; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */

.hdr { position: fixed; inset: 0 0 auto; z-index: 200; height: var(--hdr); padding: 0 var(--gut); display: flex; align-items: center; justify-content: flex-end; background: rgba(24, 24, 26, .86); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); border-bottom: 1px solid var(--rule); transition: transform .45s var(--ease); }
.hdr.is-away { transform: translateY(-101%); }
.hdr.is-away:focus-within { transform: none; }
.hdr__mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--disp); font-weight: 800; font-size: 1.75rem; line-height: 1; letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; padding: 12px 10px; transition: opacity .3s var(--ease); }
.hdr__nav a { display: block; font-family: var(--mono); font-size: 1rem; padding: 14px 6px; margin-right: -6px; }
.hdr__nav a:hover, .hdr__mark:hover { opacity: .7; }
.hdr__file { position: absolute; left: var(--gut); top: 50%; max-width: calc(100% - 9rem); overflow: hidden; text-overflow: ellipsis; font-family: var(--disp); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; white-space: nowrap; transform: translateY(40%); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.hdr.is-sub .hdr__file { transform: translateY(-50%); opacity: 1; pointer-events: auto; }
@media (max-width: 768px) { .hdr__file { display: none; } }

/* ---------------------------------------------------------------------
   Type that animates: title characters rise out of a mask
   --------------------------------------------------------------------- */

.chars { display: block; }
.chars .w { display: inline-block; white-space: nowrap; }
.chars .cm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.chars .c { display: inline-block; animation: char-up .9s var(--ease) both; animation-delay: calc(var(--d, 0s) + var(--i) * 22ms); }
@keyframes char-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(var(--from, 60vh)); } to { transform: none; } }

/* ---------------------------------------------------------------------
   Home: hero
   --------------------------------------------------------------------- */

.home { --n: 4; --peek: calc(var(--off) * (var(--n) - 1) + var(--sm)); position: relative; display: flex; flex-direction: column; }
.hero { min-height: 100vh; display: flex; flex-direction: column; padding: calc(var(--hdr) + 1rem) var(--gut) calc(var(--peek) + var(--tab-h) + 1rem); }
@supports (height: 1svh) { .hero { min-height: 100svh; } }
.hero__in { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; }
.hero__title { font-family: var(--disp); font-weight: 800; font-size: clamp(1px, calc((90vw - var(--gut) * 1.8) / 8.75), 240px); line-height: .8; letter-spacing: -.005em; text-transform: uppercase; color: var(--paper); }
.hero__desc { max-width: 46rem; color: var(--mute); font-size: clamp(1rem, .875rem + .417vw, 1.25rem); line-height: 1.4; text-wrap: balance; animation: fade-up .9s var(--ease) .35s both; }
@media (max-width: 1024px) { .hero__title { font-size: calc((100vw - var(--gut) * 2) / 8.75); } }
@media (max-width: 768px) {
  .hero__title { font-size: calc((100vw - var(--gut) * 2) / 4.56); }
  .hero__title .w { display: block; }
  .hero__in { gap: 1.25rem; }
}
@media (max-width: 480px) { .hero__desc { font-size: 16px; } }

/* ---------------------------------------------------------------------
   Home: the stack
   A folder (.grp) is a cover in front of its files (.pg). File tabs
   stand up above the folder edge. Folders overlap like a drawer seen
   from the front: each one shows one strip and its row of tabs.
   --------------------------------------------------------------------- */

.well { position: relative; overflow: hidden; margin-top: calc(var(--peek) * -1 - var(--tab-h) - 2rem); padding-top: calc(var(--tab-h) + 2rem); pointer-events: none; }
.stack { position: relative; width: calc(90% - var(--gut) * 1.8); margin: 0 auto; height: calc(var(--lg) + var(--off) * (var(--n) - 1)); pointer-events: auto; }
@media (max-width: 1024px) { .stack { width: calc(100% - var(--gut) * 2); } }
@media (max-width: 480px) { .stack { width: 100%; } }

.grp { --bg: #222; --fg: #fff; position: absolute; inset: auto 0 0; z-index: var(--i); height: calc(var(--lg) + var(--off) * var(--r)); transform: translateY(calc(var(--push, 0) * var(--reveal))); transition: transform var(--dur) var(--ease); }
.grp__in { position: relative; height: 100%; transform-origin: 50% 100%; transition: transform var(--dur) var(--ease); animation: rise 1s var(--ease) backwards; animation-delay: calc(.15s + var(--i) * 80ms); }
.grp.is-tilt .grp__in { transform: perspective(3000px) translateY(.9rem) rotateX(-3deg); }
.grp.is-hot .cover { transform: perspective(3000px) translateY(.9rem) rotateX(-3deg); }

.pg { --bg: #222; --fg: #fff; position: absolute; inset: 0; z-index: var(--z); border-radius: var(--rad) var(--rad) 0 0; color: var(--fg); pointer-events: none; transition: transform var(--dur) var(--ease); }
.pg__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--bg); }
.pg__tabs { position: absolute; left: var(--rad); bottom: calc(100% - 1px); display: flex; align-items: flex-end; white-space: nowrap; }
.pg.is-up { transform: translateY(-.8rem); }
.pg:focus-visible { outline: none; }
.pg:focus-visible .tab__m span { outline: 2px solid currentColor; outline-offset: 4px; }

.tab { display: flex; align-items: stretch; height: var(--tab-h); color: var(--fg); font-family: var(--text); font-size: 1.625rem; line-height: 1; pointer-events: auto; cursor: pointer; }
.tab--gap { visibility: hidden; pointer-events: none; }
.tab__s { width: var(--tab-w); height: 100%; color: var(--bg); fill: currentColor; flex: none; }
.tab__s + .tab__m { margin-left: -1px; }
.tab__m + .tab__s { margin-left: -1px; }
.tab__m { display: flex; align-items: center; background: var(--bg); padding-bottom: .1em; }
@media (max-width: 1024px) { .tab { font-size: 1.25rem; } }
@media (max-width: 768px) {
  .tab { position: relative; margin-right: -.9rem; }
  .tab:not(.tab--gap)::after { content: ""; position: absolute; inset: -.55rem calc(var(--tab-w) * .6) -.6rem; }
  .pg__tabs > .tab:first-child, .ftabs > a:first-child .tab { margin-left: -.35rem; }
}
@media (max-width: 480px) { .tab { font-size: 15px; margin-right: -1.15rem; } }
@media (max-width: 360px) { .tab { font-size: 14px; margin-right: -1.2rem; } }
@media (max-width: 340px) { .tab { font-size: 12px; margin-right: -1.3rem; } }

.cover { position: absolute; inset: 0; z-index: 10; transform-origin: 50% 100%; transition: transform var(--dur) var(--ease); border-radius: var(--rad) var(--rad) 0 0; background: var(--bg); color: var(--fg); box-shadow: 0 -1px 8px rgba(0, 0, 0, .15); overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .07); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.grp.is-hot .cover::after { opacity: 1; }
.cover__cat { position: absolute; inset: 0 0 auto; height: var(--off); padding: 0 2rem; display: flex; align-items: center; justify-content: flex-end; gap: .5rem; font-family: var(--mono); font-weight: 700; font-size: clamp(.8125rem, 1.1vw, 1rem); line-height: 1; text-align: right; text-transform: uppercase; letter-spacing: .06em; }
.cover__cat svg { width: 1em; height: 1em; transform: rotate(90deg); transition: transform var(--dur) var(--ease); }
.grp.is-open .cover__cat svg { transform: none; }
.cover__cat:focus-visible { outline-offset: -6px; }
.cover__desc { position: absolute; left: 0; top: var(--off); max-width: 50rem; padding: 0 var(--tab-w) 0 calc(var(--tab-w) + var(--rad)); font-family: var(--mono); font-size: clamp(.8125rem, 1.1vw, 1rem); line-height: 1.45; text-wrap: balance; }
.cover__desc b { display: block; margin-bottom: .5em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 768px) {
  /* the band above the next row of tabs is the one free place on a strip */
  .cover__cat { align-items: flex-start; padding: .36rem var(--gut) 0; font-size: 11px; letter-spacing: .08em; }
  .cover__desc { top: calc(var(--off) + .25rem); padding: 0 var(--gut); font-size: 12.5px; }
  .cover__desc b { display: none; }
  :root { --reveal: 14rem; }
}

/* scripts off: a folder opens while its button holds focus */
html:not(.live) .grp:focus-within ~ .grp { transform: translateY(var(--reveal)); }
html:not(.live) .grp:focus-within ~ .grp .foot { transform: translateY(calc(var(--reveal) * -1)); }
html:not(.live) .grp:focus-within .cover__cat svg { transform: none; }

/* footer, carried by the front cover */
.foot { position: absolute; inset: auto 0 0; padding: 0 var(--tab-w) calc(var(--gut) * 2) calc(var(--tab-w) + var(--rad)); display: flex; flex-direction: column; gap: 3.75rem; font-family: var(--mono); font-size: var(--micro); text-transform: uppercase; transform: translateY(calc(var(--push, 0) * var(--reveal) * -1)); transition: transform var(--dur) var(--ease); }
.foot__marks { display: flex; justify-content: center; align-items: center; gap: .75rem; }
.foot__marks span { width: 5rem; flex: none; transform: rotate(calc(var(--spin, 0) * var(--k, 1) * 1deg)); will-change: transform; }
.foot__marks svg { width: 100%; height: auto; overflow: visible; }
.foot__marks .s { fill: none; stroke: currentColor; stroke-width: 1.4; }
.foot__marks .f { fill: currentColor; }
.foot__row { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.foot__scale { width: max(9.5rem, 150px); }
.foot__scale svg { width: 100%; height: auto; overflow: visible; }
.foot__scale text { font-family: var(--mono); font-size: 10.5px; fill: currentColor; }
.foot__year { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.foot__sig { display: flex; align-items: flex-end; gap: 1.5rem; text-align: right; }
.foot__sig svg { width: 2.5rem; height: 2.5rem; flex: none; }
@media (max-width: 768px) {
  .foot { padding: 0 var(--gut) calc(var(--gut) * 2); }
  .foot__year { display: none; }
  .foot__marks span:nth-child(1), .foot__marks span:nth-child(4) { display: none; }
  .foot__marks { justify-content: space-between; }
  .foot__marks span { width: 3.6rem; }
  .foot__sig { gap: .9rem; }
}

/* leaving the stack: everything but the picked file clears the screen */
.is-leaving .hero__in { opacity: 0; transform: translateY(-1.5rem); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.is-leaving .cover, .is-leaving .pg:not(.is-picked) { transform: translateY(115vh); transition: transform .5s var(--ease-io); transition-delay: calc(var(--i, 0) * 25ms); }
.is-leaving .grp__in { transform: none; animation: none; }
.is-leaving .pg.is-picked { transform: none; z-index: 20; }

/* ---------------------------------------------------------------------
   File
   --------------------------------------------------------------------- */

.file { --bg: #222; --fg: #fff; --folder-w: calc(var(--gut) + (100vw - var(--gut) * 2) * .797); position: relative; padding-bottom: 0; }
.fhero { padding: calc(var(--hdr) + 3.75rem) var(--gut) 3.75rem; }
.fhero__title { font-family: var(--disp); font-weight: 800; font-size: clamp(4rem, 2.25rem + 5.833vw, 7.5rem); line-height: .8; text-transform: uppercase; }
.fhero__title .c { animation-delay: calc(.2s + var(--i) * 22ms); }
@media (max-width: 768px) { .fhero__title { font-size: clamp(2.6rem, 13.3vw, 4rem); } }

.folder { position: relative; width: var(--folder-w); padding: var(--gut) var(--gut) calc(var(--gut) * 3) calc(var(--gut) * 2); background: var(--bg); color: var(--fg); border-radius: 0 var(--rad) var(--rad) 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.folder__anim { animation: rise .9s var(--ease) backwards; --from: 70vh; }

.ftabs { position: absolute; left: 100%; top: var(--rad); z-index: 2; display: flex; align-items: flex-end; transform-origin: 0 0; transform: rotate(90deg) translate(0, calc(-100% + 1px)); white-space: nowrap; }
.ftabs a { display: block; transition: transform .35s var(--ease); }
.ftabs a:hover { transform: translateY(-.4rem); }
.ftabs a[aria-current] { transform: none; }
.ftabs .tab { cursor: pointer; }
.ftabs a:focus-visible { outline: none; }
.ftabs a:focus-visible .tab__m span { outline: 2px solid currentColor; outline-offset: 4px; }

.sheet { position: relative; z-index: 1; border-radius: var(--rad); background: var(--paper); color: var(--ink); padding: 5.625rem 5.625rem 20rem 6rem; }
.sheet::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5rem; border-right: 1px solid #b8b3ae; background: radial-gradient(circle at 50% 50%, var(--bg) 0 .56rem, transparent .62rem) 0 3.4rem / 5rem 10.4rem repeat-y; }
.sheet::after, .note::after, .plate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: multiply; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sheet__in { position: relative; z-index: 1; display: flex; gap: 10%; align-items: flex-start; }
.sheet__l { flex: 0 0 30%; min-width: 0; }
.sheet__r { flex: 1 1 0; min-width: 0; font-size: 1.25rem; line-height: 1.5; }
.sheet__r p + p { margin-top: 1.5rem; }
.sheet__r p:first-child::first-letter { float: left; font-size: 4.6em; line-height: .8; padding: .06em .1em 0 0; }
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .sheet__r p:first-child::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; margin-right: .1em; -webkit-initial-letter: 3; initial-letter: 3; }
}

.plate { position: relative; margin: -1rem 0 0 -.5rem; width: calc(100% + 1rem); background: var(--card); color: #17233f; transform: rotate(-1.4deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .1), 0 1.2rem 1.6rem -1.2rem rgba(0, 0, 0, .45); }
.plate { container-type: inline-size; }
.plate .fig { width: 100%; height: auto; }
@container (max-width: 250px) { .plate .fig text.x { display: none; } }
.clip { position: absolute; z-index: 3; width: 1.4rem; height: auto; color: #3a3a3c; pointer-events: none; }
.plate .clip { right: 1.1rem; top: -1.5rem; }

.facts { margin-top: 5.5rem; font-family: var(--mono); font-size: 1rem; line-height: 1.45; }
.facts dt { font-weight: 700; }
.facts dd, .note p, .sheet__r p, .about__r p, .cover__desc { text-wrap: pretty; }
.facts dd { margin-bottom: 1.5rem; }

/* exhibits: figure and note, pinned on top of the folder */
.scrap { position: relative; z-index: 2; margin-top: -16rem; display: flex; flex-direction: column; gap: 5rem; }
.ex { position: relative; min-height: 34rem; }
.shot { position: absolute; margin: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)); box-shadow: 0 1.6rem 2.2rem -1.4rem rgba(0, 0, 0, .55); }
.shot .fig { width: 100%; height: auto; }
.shot--dark { border: .45rem solid #050505; background: #050505; }
.shot--paper { background: var(--card); }
.note { position: absolute; padding: 4rem 3rem 4.5rem; color: #101012; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)); box-shadow: 0 1.6rem 2.2rem -1.6rem rgba(0, 0, 0, .5); border-radius: 2px; }
.note--y { background: var(--note-y); }
.note--p { background: var(--note-p); }
.note--b { background: var(--note-b); }
.note--torn { clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 97.4%, 91% 96.2%, 86% 98%, 80% 96.8%, 74% 98.4%, 67% 97%, 60% 98.8%, 52% 97.2%, 45% 99%, 38% 97.4%, 30% 99.2%, 23% 97.6%, 15% 99.4%, 8% 98%, 0 100%); box-shadow: none; }
.note h2 { position: relative; z-index: 1; font-family: var(--disp); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; margin-bottom: 2rem; }
.note p { position: relative; z-index: 1; font-family: var(--mono); font-size: 1rem; line-height: 1.5; }
.note .clip { right: 1.6rem; top: -1.3rem; transform: rotate(28deg); color: #101012; }

.ex--a .note { left: -2%; top: 2rem; width: 38%; --rot: -1.2deg; z-index: 2; }
.ex--a .shot { left: 34%; top: 0; width: 62%; --rot: 1.4deg; }
.ex--b .shot { left: 0; top: 3rem; width: 62%; --rot: -1.6deg; }
.ex--b .note { left: 60%; top: 0; width: 38%; --rot: 1deg; z-index: 2; }
.ex--c .note { left: 2%; top: 5rem; width: 38%; --rot: 1.3deg; z-index: 2; }
.ex--c .shot { left: 38%; top: 0; width: 62%; --rot: -1deg; }
.ex--a { min-height: 31rem; }
.ex--b { min-height: 33rem; }
.ex--c { min-height: 33rem; }

.live .ex .shot, .live .ex .note { opacity: 0; translate: 0 3rem; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.live .ex.in .shot, .live .ex.in .note { opacity: 1; translate: 0 0; }
.live .ex.in .note { transition-delay: .12s; }
@media (hover: hover) and (pointer: fine) {
  .drag { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
  .drag.is-held { cursor: grabbing; transition: none !important; }
}

/* the next folder waits under the current one */
.nextf { --bg: #222; --fg: #fff; display: block; width: var(--folder-w); margin-top: 5.625rem; padding: 1.9rem var(--gut) 0; height: 55vh; min-height: 18rem; background: var(--bg); color: var(--fg); border-radius: 0 var(--rad) 0 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: transform var(--dur) var(--ease); }
.nextf h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(2.66rem, 1.49rem + 3.9vw, 5rem); line-height: .85; text-transform: uppercase; }
.nextf small { display: block; margin-top: 1rem; font-family: var(--mono); font-size: var(--micro); }
.nextf:hover { transform: translateY(-.6rem); }
.nextf:focus-visible { outline: 2px solid var(--fg); outline-offset: -.6rem; }

.nextw { position: fixed; right: var(--gut); bottom: var(--gut); z-index: 150; width: 13.75rem; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; font-family: var(--mono); font-size: 1rem; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.live .nextw:not(.is-on):not(:focus-visible) { opacity: 0; transform: translateY(1.5rem); pointer-events: none; }
.nextw:focus-visible { outline: none; }
.nextw:focus-visible .nextw__go { outline: 2px solid #060606; outline-offset: -5px; }
.nextw__card { --bg: #222; --fg: #fff; width: 100%; height: 11.25rem; padding: 1.25rem; border-radius: 1.25rem; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; justify-content: space-between; transition: opacity .45s var(--ease), transform .45s var(--ease); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.nextw__card b { font-family: var(--text); font-weight: 300; font-size: 1.25rem; line-height: 1.15; }
.nextw__card span { font-size: var(--micro); }
.nextw__go { position: relative; overflow: hidden; width: 10rem; height: 3.5rem; border-radius: 1.25rem; background: #ffe534; color: #060606; box-shadow: 0 0 0 2px var(--ground); display: flex; align-items: center; justify-content: center; gap: .5rem; transition: width .45s var(--ease); }
.nextw__go svg { width: 1em; height: 1em; }
.nextw__go i { position: absolute; inset: 0; background: var(--paper); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.nextw__go span { position: relative; text-align: center; line-height: 1.25; }
.nextw__go .more { display: none; }
.nextw.is-end .nextw__card { opacity: 0; transform: translateY(1rem); pointer-events: none; }
.nextw.is-end .nextw__go { width: 100%; }
.nextw.is-end .nextw__go .more { display: block; padding: 0 1rem; font-size: .875rem; }
.nextw.is-end .nextw__go .less, .nextw.is-end .nextw__go svg { display: none; }

/* arriving and leaving a file */
.ghost { position: fixed; left: 0; top: 0; z-index: 120; transform-origin: 0 0; border-radius: var(--rad) var(--rad) 0 0; background: var(--bg); color: var(--fg); pointer-events: none; will-change: transform, height; }
.ghost .pg__tabs { left: var(--rad); }
@keyframes unhide { to { visibility: visible; opacity: 1; } }
.arrive-ghost .folder__anim { animation: none; }
.arrive-ghost:not(.landed) .folder, .arrive-ghost:not(.landed) .nextf { visibility: hidden; animation: unhide 0s linear 3s forwards; }
.arrive-ghost:not(.landed) .sheet, .arrive-ghost:not(.landed) .ftabs a:not([aria-current]), .arrive-ghost:not(.landed) .scrap { opacity: 0; animation: unhide .01s linear 3s forwards; }
.arrive-ghost.landed .sheet, .arrive-ghost.landed .ftabs a:not([aria-current]), .arrive-ghost.landed .scrap { opacity: 1; transition: opacity .7s var(--ease); }
.is-leaving .fhero__title { opacity: 0; transition: opacity .3s var(--ease); }
.is-leaving .folder, .is-leaving .nextf { transform: translateY(115vh); transition: transform .5s var(--ease-io); }
.is-leaving .nextw { opacity: 0; }
.is-leaving .about__in { transform: translateY(115vh); transition: transform .5s var(--ease-io); }
.is-leaving .about__close { opacity: 0; }
.is-leaving .lost { opacity: 0; transition: opacity .3s var(--ease); }

@media (max-width: 1024px) {
  /* no room to lay a note beside its figure: the note hangs under it */
  .scrap { margin-top: -12rem; gap: 5rem; }
  .ex, .ex--a, .ex--b, .ex--c { min-height: 0; display: flex; flex-direction: column; }
  .ex .shot, .ex .note { position: relative; left: auto; top: auto; }
  .ex .shot { width: 100%; order: -1; }
  .ex .note { width: 62%; margin: .6rem 0 0 38%; }
  .ex--b .note { margin-left: 0; }
  .ex--c .note { margin-left: 19%; }
}
@media (max-width: 1100px) {
  .file { --folder-w: calc(100vw - var(--tab-h) - .75rem); }
  .folder { padding: var(--gut) var(--gut) calc(var(--gut) * 3); }
  .sheet { padding: 4.5rem 3rem 18rem 7rem; }
  .nextw { width: auto; }
  .nextw__card { display: none; }
  .nextw.is-end .nextw__go { width: 13.75rem; }
}
@media (max-width: 768px) {
  /* on a phone the sibling tabs stand on the folder's top edge, as in the
     drawer, and the folder takes the whole width */
  .file { --folder-w: 100vw; }
  .fhero { padding: calc(var(--hdr) + 2.5rem) var(--gut) calc(var(--tab-h) + 2.25rem); }
  .folder { padding: .5rem .5rem 3rem; border-radius: 0; }
  .ftabs { left: var(--rad); top: auto; bottom: calc(100% - 1px); transform: none; }
  .ftabs a:hover { transform: none; }
  .sheet { padding: 2.75rem 1.25rem 3.25rem 3.1rem; }
  .sheet::before { width: 2.2rem; background-size: 2.2rem 8.5rem; background-position: 0 2.6rem; background-image: radial-gradient(circle at 50% 50%, var(--bg) 0 .42rem, transparent .48rem); }
  .sheet__in { flex-direction: column; gap: 3rem; }
  .sheet__l { order: 2; flex: none; width: 100%; display: flex; gap: 1.5rem; align-items: flex-start; }
  .plate { flex: 0 0 46%; width: 46%; margin: 0; }
  .plate .clip { right: .3rem; top: -1.15rem; width: 1rem; }
  .facts { margin-top: 0; font-size: 1rem; }
  .facts dd { margin-bottom: 1rem; }
  .sheet__r { font-size: 1.3rem; }
  .sheet__r p + p { margin-top: 1.25rem; }
  .sheet__r p:first-child::first-letter { font-size: 3.1em; line-height: .8; padding: .04em .08em 0 0; }
  @supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
    .sheet__r p:first-child::first-letter { font-size: inherit; line-height: inherit; padding: 0; -webkit-initial-letter: 2; initial-letter: 2; }
  }
  .plate .fig text.x { display: none; }
  .scrap { margin-top: 2.5rem; gap: 3.5rem; }
  .ex .shot { width: calc(100% + 1rem); margin-left: -.5rem; }
  .ex .note { width: 92%; margin-left: 8%; padding: 2.75rem 1.75rem 3rem; }
  .ex--b .note { margin-left: 0; }
  .ex--c .note { margin-left: 4%; }
  .note h2 { margin-bottom: 1.25rem; }
  .nextf { margin-top: 3.5rem; height: 42vh; border-radius: 0; }
  .nextw { display: none; }
}
@media (max-width: 480px) {
  /* no room for the binder margin: the width goes to the text */
  .sheet { padding: 2.5rem 1.35rem 3rem; }
  .sheet::before { display: none; }
}

/* ---------------------------------------------------------------------
   Figures (drawn in content/figures.mjs)
   --------------------------------------------------------------------- */

.fig { display: block; font-family: var(--mono); }
.fig--dark { color: #f4f0e8; --g: #0b0b0c; }
.fig--paper { color: #17233f; --g: #f1e9d6; }
.fig .g { fill: var(--g); }
.fig .s, .fig .t, .fig .b { stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fig .s:not(.hx):not(.k), .fig .t:not(.hx):not(.k), .fig .b:not(.hx):not(.k) { fill: none; }
.fig .s { stroke-width: 1.6px; }
.fig .t { stroke-width: .8px; }
.fig .b { stroke-width: 3px; }
.fig .d { stroke-dasharray: 5 5; }
.fig .f { fill: currentColor; }
.fig .k { fill: var(--g); }
.fig text { fill: currentColor; font-family: var(--mono); font-size: 20px; letter-spacing: .03em; }
@media (max-width: 768px) { .fig text { font-size: 22px; } }
@media (max-width: 480px) { .fig text { font-size: 26px; } }
@media (max-width: 370px) { .fig text { font-size: 28px; } }
.fig text.mb { font-weight: 700; }
.fig text.h { font-family: var(--disp); font-weight: 800; letter-spacing: 0; }
.fig text.r { font-family: var(--text); font-weight: 300; letter-spacing: 0; }
.fig text[data-k] { fill: var(--g); }
.fig text.halo { paint-order: stroke; stroke: var(--g); stroke-width: 14px; stroke-linejoin: round; }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */

.about { padding: 4.25rem var(--gut); }
.about__in { position: relative; width: calc(90% - .1rem); margin: 0 auto; padding: 4.25rem; background: var(--paper); color: var(--ink); border-radius: var(--rad); animation: rise .9s var(--ease) backwards; --from: 40vh; }
.about__cols { display: flex; gap: 9.7rem; align-items: flex-start; max-width: 68.4rem; margin: 0 auto; }
.about__l { flex: 0 0 25rem; position: sticky; top: 4.25rem; }
.about__l h1 { font-family: var(--disp); font-weight: 800; font-size: 2.75rem; line-height: .95; text-transform: uppercase; text-wrap: balance; }
.about__by { margin-top: 1rem; font-family: var(--mono); font-size: var(--micro); line-height: 1.3; color: #686a6f; }
.about__r { flex: 1 1 0; min-width: 0; font-size: 1.25rem; line-height: 1.5; }
.about__r p + p { margin-top: 1.25rem; }
.about__sig { margin-top: 5rem; font-family: var(--mono); font-size: var(--micro); color: #686a6f; text-align: center; }
.gal { margin-top: 4rem; }
.gal__frames { position: relative; aspect-ratio: 10 / 7; border-radius: var(--rad); overflow: hidden; background: #0b0b0c; }
.gal__frames .fig { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.gal__frames .fig.on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.gal__caps { position: relative; margin-top: 1rem; min-height: 2.6em; font-family: var(--mono); font-size: var(--micro); line-height: 1.3; color: #686a6f; }
.gal__caps p { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.gal__caps p.on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.about__close { position: fixed; right: calc(var(--gut) + 2.6rem); top: 2.56rem; z-index: 50; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #303032; color: var(--paper); display: grid; place-items: center; transition: transform .35s var(--ease), background .35s var(--ease); }
.about__close:hover { transform: rotate(90deg); background: #46464a; }
.about__close svg { width: 1.5rem; height: 1.5rem; }
.about__close:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
@media (max-width: 1024px) {
  .about { padding: 3rem var(--gut); }
  .about__in { width: 100%; padding: 3.5rem 2.5rem; }
  .about__cols { gap: 4rem; }
  .about__l { flex-basis: 38%; }
  .about__close { right: var(--gut); top: 1rem; }
}
@media (max-width: 768px) {
  .about { padding: 4.75rem 0 0; }
  .about__in { padding: 3rem var(--gut) 4rem; border-radius: var(--rad) var(--rad) 0 0; }
  .about__cols { flex-direction: column; gap: 3rem; }
  .about__l { position: static; flex: none; width: 100%; }
  .about__l h1 { font-size: 3rem; }
  .gal { margin-top: 2.5rem; }
  .about__r { font-size: 1.3rem; }
}

/* ---------------------------------------------------------------------
   Not found
   --------------------------------------------------------------------- */

.lost { min-height: 100vh; padding: calc(var(--hdr) + 4rem) var(--gut) 4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; }
.lost h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(4rem, 14vw, 12rem); line-height: .8; text-transform: uppercase; }
.lost p { color: var(--mute); font-size: 1.25rem; }
.lost a { font-family: var(--mono); border-bottom: 1px solid currentColor; padding-bottom: .15em; }

/* ---------------------------------------------------------------------
   Reduced motion: no travel, no spin, no tilt. State changes still show.
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .grp.is-tilt .grp__in, .grp.is-hot .cover, .pg.is-up, .ftabs a:hover, .nextf:hover, .about__close:hover { transform: none; }
  .foot__marks span { transform: none; }
  .live .ex .shot, .live .ex .note { opacity: 1; translate: 0 0; }
}

@media print {
  .hdr, .nextw, .about__close, .ghost { display: none; }
  body { background: #fff; color: #000; }
}
