/* Tillman's Files — clone study of Mosby's Files (Awwwards SOTD 2026-08-13).
   Values measured from the original (see SPEC.md). Code written from scratch. */

:root {
  --off: 3.75rem;            /* stack group offset (tab row pitch) */
  --radius: 4px;
  --sm: 15vw;                /* unfolded drop */
  --lg: 80vh;                /* group height */
  --persp: 3000px;
  --tilt: -3deg;
  --tilt-y: 1rem;
  --tag-h: 2.75rem;
  --tag-ar: 1.409;
  --light: #fdfaf7;
  --gray: #8e9095;
  --dark: #191919;
  --ease: cubic-bezier(.33, 1, .68, 1);
  --dur: .65s;
  --gutter: 34px;
  --size: calc(100vw - var(--gutter) * 2);
  --case-w: calc((var(--size) - 19rem) * 16 / 20 + 15rem);
  --focus: #ffe927;
}
@media (max-aspect-ratio: 2/1) { :root { --sm: 15vw; } }
@media (max-width: 1024px) { :root { --sm: 20vh; --case-w: calc(var(--size) - var(--tag-h)); } }
@media (max-width: 768px) { :root { --tag-h: 2.25rem; } }
@media (max-width: 480px) { :root { --sm: 15vh; } }

html { font-family: "Crimson Pro", serif; font-weight: 400; line-height: 1.25; font-size: 16px; -webkit-font-smoothing: antialiased; }
@media (min-width: 1025px) and (max-width: 1439px) { html { font-size: 15px; } :root { --gutter: 32px; } }
@media (min-width: 1920px) { html { font-size: 18px; } :root { --gutter: 48px; } }
@media (max-width: 1024px) { html { font-size: 14px; } :root { --gutter: 30px; } }
@media (max-width: 768px) { html { font-size: 13px; } :root { --gutter: 20px; } }
@media (max-width: 480px) { :root { --gutter: 18px; } }

* { -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--dark); color: var(--light); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; }
img, svg { user-select: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: 8px; z-index: 3000; background: var(--light); color: var(--dark); padding: .5rem .75rem; font: 1rem "IBM Plex Mono", monospace; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

.container { box-sizing: border-box; margin-inline: var(--gutter); width: var(--size); display: flex; }
.h1 { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; font-size: clamp(4rem, 2.25rem + 5.833vw, 7.5rem); line-height: .8; text-transform: uppercase; }
.h2 { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; font-size: clamp(2.66rem, 1.49rem + 3.9vw, 5rem); line-height: .8; text-transform: uppercase; }
.h4 { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.par-1 { font-size: clamp(1rem, .875rem + .417vw, 1.25rem); line-height: 1.4; }
.par-2 { font: 1.125rem/1.4 "IBM Plex Mono", monospace; }
.caption { font: clamp(.75rem, .833vw, 1rem)/1.4 "IBM Plex Mono", monospace; }
.logo { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; font-size: 2rem; line-height: 1; text-transform: uppercase; letter-spacing: -.005em; }

/* split text */
.line { display: block; }
.word { display: inline-block; white-space: nowrap; }
.cm { display: inline-block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.ch { display: inline-block; will-change: transform; }

/* ---------- header ---------- */
.hdr, .sub-hdr { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(25, 25, 25, .8); backdrop-filter: blur(100px); -webkit-backdrop-filter: blur(100px); border-bottom: 1px solid rgba(255, 255, 255, .1); transition: transform var(--dur) var(--ease); }
.hdr.is-hidden, .sub-hdr.is-hidden, .is-loading .hdr { transform: translateY(-100%); transition-duration: .325s; }
.hdr__in, .sub-hdr__in { height: 3.75rem; align-items: center; justify-content: flex-end; position: relative; }
.sub-hdr__in { justify-content: space-between; }
.hdr__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; }
.hdr__logo .logo { font-size: 1.95rem; white-space: nowrap; padding-top: .05em; }
.nav { display: grid; grid-auto-flow: column; gap: 2.5rem; }
.nav a { font: 1rem/2rem "IBM Plex Mono", monospace; opacity: .8; transition: opacity var(--dur); }
.nav a[aria-current="page"] { opacity: 1; }
@media (hover: hover) { .nav a:hover { opacity: 1; } }

/* ---------- home ---------- */
.page-home { display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: clip; }
.hero { height: 100vh; box-sizing: border-box; padding-block: 1.875rem calc(var(--off) * 5); }
@media (max-aspect-ratio: 2/1) { .hero { padding-block: 1.875rem calc(var(--off) * 3.5 + var(--sm)); } }
.hero__in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; width: 100%; height: 100%; text-align: center; text-wrap: balance; }
@media (max-aspect-ratio: 2/1) { .hero__in { gap: 1.25rem; } }
.hero__title { font-size: min(calc((100vw - var(--gutter) * 2) * .119), 200px); line-height: .8; text-transform: uppercase; }
@media (max-aspect-ratio: 2/1) { .hero__title { font-size: min(calc((100vw - var(--gutter) * 2) * .105), 200px); } }
@media (max-width: 1024px) { .hero__title { font-size: min(calc((100vw - var(--gutter) * 2) * .13), 200px); } }
@media (max-width: 768px) { .hero__title { font-size: min(calc((100vw - var(--gutter) * 2) * .18), 200px); } }
@media (max-width: 480px) { .hero__title { font-size: min(calc((100vw - var(--gutter) * 2) * .23), 200px); } }
.hero__desc { color: var(--gray); width: 50rem; max-width: var(--size); text-wrap: balance; font-weight: 300; }
@media (max-width: 480px) { .hero__desc { font-size: 16px; } }
.is-loading .hero__title, .is-loading .hero__desc, .is-loading .stack { opacity: 0; }

.stack-wrap { justify-content: center; }
@media (max-width: 480px) { .stack-wrap { margin: 0; width: 100%; } }
.stack { --n: 4; position: relative; display: flex; flex-direction: column; margin-inline: auto; perspective: var(--persp);
  height: calc(var(--lg) + var(--off) * (var(--n) - 1)); margin-top: calc(var(--off) * var(--n) * -1); width: calc(90% - .1rem); }
@media (max-aspect-ratio: 2/1) { .stack { margin-top: calc(var(--off) * var(--n) * -1 - var(--sm) + var(--off)); } }
@media (max-width: 1024px) { .stack { width: 100%; } }
.sg { position: absolute; left: 0; right: 0; bottom: 0; margin-top: calc(var(--radius) * -1);
  height: calc(var(--lg) + var(--off) * var(--rev)); z-index: var(--i); transform-origin: center bottom; transform-style: preserve-3d; will-change: height; }
.is-ready .sg { transition: transform var(--dur) var(--ease), height var(--dur) var(--ease); }
.sg.is-rotated { height: calc(var(--lg) + var(--off) * var(--rev) - 1rem); transform: rotateX(var(--tilt)) translateZ(calc(2px * var(--i))); }
.sg.is-unfolded { height: calc(var(--lg) - var(--sm) + var(--off) + var(--off) * var(--rev)); }
.sg__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }

.cover { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; box-sizing: border-box; z-index: 100; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 0 2rem; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg); color: var(--fg); transform-origin: center bottom; transform-style: preserve-3d; transition: transform var(--dur) var(--ease); }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .05); box-shadow: 0 -1px 8px rgba(0, 0, 0, .15); opacity: 0; z-index: 5; transition: opacity var(--dur) var(--ease); }
.cover.is-hovered::after { opacity: 1; }
.cover.is-rotated { transform: translateY(var(--tilt-y)) rotateX(var(--tilt)); }
.cover__cat { display: inline-flex; align-items: center; gap: .5rem; line-height: var(--off); }
.cover__cat svg { width: 12px; height: 12px; transform: rotate(90deg); transition: transform var(--dur) var(--ease); }
.cover.is-unfolded .cover__cat svg { transform: rotate(0deg); }
.cover__desc { position: absolute; left: 0; top: var(--off); max-width: 85vh; box-sizing: border-box; padding-inline: calc(var(--tag-h) * var(--tag-ar)); padding-block-end: var(--gutter); text-wrap: balance; }
@media (max-width: 768px) { .cover__cat { display: none; } .cover__desc { padding-inline: calc(var(--tag-h) * var(--tag-ar) - .2rem); } }
@media (max-width: 480px) { .cover__desc { display: none; } }

.sp { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: var(--pz); border-radius: var(--radius) var(--radius) 0 0;
  transform: translateZ(0); transform-origin: center bottom; transform-style: preserve-3d; transition: transform var(--dur) var(--ease); }
.sp.is-rotated { transform: translateY(var(--tilt-y)) rotateX(var(--tilt)); }
.sp__bg { position: absolute; inset: 0; border-radius: inherit; background: var(--bg); z-index: -1; }
.sp__head { position: absolute; bottom: 100%; left: var(--radius); display: flex; align-items: center; pointer-events: none; z-index: -2; }
.sp__unfold { position: absolute; top: 0; right: 0; bottom: 0; width: 33%; z-index: 5; }
.sp:focus-visible { outline: none; }
.sp:focus-visible .tag.is-on { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px 10px 0 0; }

.tag { position: relative; display: flex; align-items: flex-start; height: var(--tag-h); margin-bottom: -1px; white-space: nowrap; opacity: 0; pointer-events: none;
  font-family: "Crimson Pro", serif; font-size: 1.625rem; color: var(--tfg); }
.tag.is-on { opacity: 1; pointer-events: auto; }
.tag * { pointer-events: none; }
.tag__mid { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--tbg); z-index: 5; padding: .375rem .5rem .3rem; margin-inline: -.5rem; box-sizing: border-box; }
.tag__side { position: relative; z-index: 6; }
.tag__side { height: 100%; aspect-ratio: var(--tag-ar); color: var(--tbg); transform-origin: center top; display: block; }
.tag__side--start { transform: scale(-1, 1.01) translateX(-1px); }
.tag__side--end { transform: scaleY(1.01) translateX(-1px); }
@media (max-width: 1024px) { .tag { font-size: 1.25rem; } }
@media (max-width: 768px) { .tag { margin-left: -.2rem; margin-right: -.75rem; } .tag__mid span { margin-inline: -.33rem; } }
@media (max-width: 480px) { .tag { font-size: 15px; margin-left: -.5rem; margin-right: -1rem; } .tag__mid span { margin-inline: -.66rem; } .tag__side { width: 3.25rem; aspect-ratio: auto; } }

.foot { position: absolute; left: 0; right: 0; bottom: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 3.75rem; padding-inline: calc(var(--tag-h) * var(--tag-ar)); padding-block-end: calc(var(--gutter) * 2);
  font: .75rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; transform: translateZ(1px); transition: transform var(--dur) var(--ease); }
@media (max-width: 768px) { .foot { padding-inline: calc(var(--tag-h) * var(--tag-ar) - .2rem); } }
@media (max-width: 480px) { .foot { padding-inline: var(--gutter); } }
.foot a { pointer-events: auto; }
.roses { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.rose { display: inline-flex; width: 100%; max-width: 5rem; }
.rose svg { width: 100%; height: auto; will-change: transform; }
@media (max-width: 480px) { .rose--wide { display: none; } }
.foot__bottom { display: flex; align-items: flex-end; justify-content: space-between; position: relative; }
.foot__scale { width: 8.75rem; height: auto; }
.foot__year { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
@media (max-width: 768px) { .foot__year { display: none; } }
.foot__sig { display: flex; align-items: flex-end; gap: 1.5rem; text-align: right; }
.foot__sig u { text-underline-offset: .2em; }
.foot__sig svg { width: 2.5rem; height: 2.5rem; }

/* ---------- case ---------- */
.page-case { display: flex; flex-direction: column; align-items: flex-start; min-height: 100vh; position: relative; }
.page-case__content { width: 100%; }
.case-hero { margin-block-start: 3.75rem; padding-block: 3.75rem; }
.case-title { transform-origin: left top; position: relative; z-index: 5; }
.case-content { flex-direction: column; position: relative; min-height: 100vh; }
.case-content__inner { width: var(--case-w); position: relative; }
.folder { --pad: var(--gutter); position: relative; width: 100%; perspective: var(--persp); transform-origin: right top; container-type: inline-size; }
.folder__in { position: relative; box-sizing: border-box; height: 100%; width: 100%; padding: var(--pad); padding-inline-start: 0; background: var(--c); border-radius: 0 var(--radius) var(--radius) 0; }
.folder__in::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 100vw; background: inherit; }
.folder.is-anim .folder__in, .folder.is-anim .sheet-wrap { overflow: clip; }
.folder__cover { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 0 var(--radius) var(--radius) 0; transform: rotateY(-180deg); transform-origin: left center; transform-style: preserve-3d; z-index: 10; pointer-events: none; }
.folder__cover-f, .folder__cover-b { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; }
.folder__cover-f { background: var(--c0); z-index: 2; }
.folder__cover-b { background: var(--c); transform: rotateX(180deg); }
.folder__cover-b::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .05)); }
.folder__cover-o, .folder__cover-s { position: absolute; inset: 0; border-radius: inherit; opacity: 0; z-index: 5; }
.folder__cover-o { background: rgba(255, 255, 255, .05); }
.folder__cover-s { box-shadow: 1px 0 8px rgba(0, 0, 0, .15); }
.folder__cover-sh { position: absolute; inset: 0; box-shadow: 0 0 250px rgba(0, 0, 0, .5); opacity: 0; }

.ftags { position: absolute; right: 0; top: var(--radius); width: 100%; z-index: -1; display: flex; transform: translate(100%, -100%) rotate(90deg); transform-origin: left bottom; }
.folder.is-anim .ftags { width: var(--ftw, 100%); }
.ftags__page { position: relative; display: flex; width: 100%; margin-block-end: -20px; padding-block-end: 20px; pointer-events: none; transition: transform .325s var(--ease); z-index: var(--z); }
.ftags__page:not(:first-child) { position: absolute; left: 0; bottom: 0; }
.ftags__page.is-active { z-index: 10; }
.ftags__page::before, .ftags__page::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 20px; }
.ftags__page::before { background: var(--tbg); border-radius: var(--radius) var(--radius) 0 0; }
.ftags__page::after { top: calc(100% + 20px); box-shadow: 0 -10px 20px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .325s var(--ease); z-index: 200; }
@media (hover: hover) { .ftags__page:not(.is-active):hover { transform: translateY(-10px); } .ftags__page:not(.is-active):hover::after { opacity: 1; } }
.ftags__item { pointer-events: none; }
.ftags__item .tag { margin-block-end: -20px; padding-block-end: 19px; z-index: 10; }
.ftags__item.is-own { pointer-events: auto; }
.ftags__item[aria-current="page"] { cursor: default; }
.ftags__item:focus-visible { outline: none; }
.ftags__item:focus-visible .tag__mid span { outline: 2px solid var(--focus); outline-offset: 4px; }

.sheet-wrap { --clip: 5rem; --pl: 5.625rem; display: flex; justify-content: flex-end; width: 100%; }
@media (max-width: 1439px) { .sheet-wrap { --pl: 3rem; } }
@media (max-width: 768px) { .sheet-wrap { --clip: 4rem; } }
@media (max-width: 480px) { .sheet-wrap { --pl: 1.5rem; --clip: 2.5rem; } }
.sheet { position: relative; box-sizing: border-box; flex: 0 0 auto; width: calc(100% - var(--pad)); min-height: calc((100cqw - var(--pad) * 2) * 1.462);
  padding: var(--pl) var(--pl) var(--pl) calc(var(--clip) + 1rem); background: #fffcf9; color: var(--dark); border-radius: 4px; z-index: 0; }
.sheet__in { display: flex; justify-content: space-between; width: 100%; min-height: calc((100cqw - var(--pad) * 2) * 1.462 - var(--pl) * 2); border-bottom: 1px solid #100f0a; box-sizing: border-box; }
.sheet__l { display: flex; flex-direction: column; gap: 1.5rem; width: 30%; }
.sheet__r { width: 60%; }
.sheet__photo { position: relative; width: 100%; min-width: 140px; aspect-ratio: .875; margin-top: calc(var(--pl) * -1 + 1rem); margin-bottom: calc(var(--pl) * .66); transform: rotate(-1.5deg); transform-origin: left bottom; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 5px #fff, 0 1px 4px rgba(0, 0, 0, .2); }
.sheet__photo .clip { right: 2rem; top: -1rem; transform: rotate(-4deg); }
.sheet__info { display: flex; flex-direction: column; font: 1rem/1.4 "IBM Plex Mono", monospace; text-wrap: balance; }
.sheet__info-w { display: flex; flex-direction: column; gap: 1.5rem; }
.sheet__info dt { font-weight: 700; }
.sheet__info dd { margin: 0; }
.sheet__desc { display: flex; flex-direction: column; gap: 2.75rem; font-size: 24px; line-height: 1.4; font-weight: 300; text-shadow: 1px 1px 1px #fff; }
@media (min-width: 1025px) and (max-width: 1439px) { .sheet__desc { font-size: 1.75vw; } }
@media (min-width: 1920px) { .sheet__desc { font-size: 30px; } }
@media (max-width: 1024px) { .sheet__desc { font-size: 18px; } }
@media (max-width: 768px) { .sheet__desc { font-size: 16px; } }
.sheet__desc p:not(:first-child) { text-indent: 2.5rem; }
.sheet__desc p:first-child::first-letter { float: left; font-size: 5em; line-height: .425; margin-right: 1rem; margin-top: .21em; }
.sheet__holes { position: absolute; left: 0; top: 0; bottom: 0; width: var(--clip); display: flex; flex-direction: column; align-items: center; justify-content: space-around; border-right: 1px solid #b8b3ae; pointer-events: none; z-index: 5; }
.sheet__holes span { width: clamp(10px, 1.33vw, 20px); height: clamp(10px, 1.33vw, 20px); border-radius: 50%; background: var(--c); }
.grain { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: url("img/grain.svg"); background-size: 320px; mix-blend-mode: multiply; opacity: .55; }
@media (max-width: 1024px) {
  .sheet { min-height: 0; }
  .sheet__in { min-height: 0; padding-bottom: 4rem; }
}
@media (max-width: 768px) {
  .sheet__in { flex-direction: column; gap: 3rem; justify-content: flex-start; }
  .sheet__l, .sheet__r { width: 100%; }
  .sheet__l { flex-direction: row; align-items: flex-start; }
  .sheet__photo { flex: 1 0 auto; width: 33%; }
}
@media (max-width: 480px) { .sheet__l { flex-direction: column; } .sheet__photo { width: 90%; } .sheet__holes { border: 0; width: 3rem; } }

/* scrapbook */
@media (min-width: 1025px) { .folder__in { min-height: calc(var(--fh) * 100cqw); } .scrap { margin: 0 !important; } }
.scrap { position: static; }
.bounds { position: absolute; left: 0; top: 0; bottom: -3rem; width: calc(var(--case-w) * 1.1); pointer-events: none; }
.grp { position: static; }
@media (max-width: 1024px) {
  .scrap { display: flex; flex-direction: column; gap: 9rem; margin: -2rem 0 4rem 5%; width: 90%; padding-block: 3rem; }
  .grp { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 1 / var(--gh); }
  .grp .pc { left: calc(var(--mx) * 100cqw); top: calc(var(--my) * 100cqw); width: calc(var(--mw) * 100cqw); }
  .grp .note { min-height: calc(var(--mh) * var(--s) * 100cqw); }
}
.pc { position: absolute; left: calc(var(--x) * 100cqw); top: calc(var(--y) * 100cqw); width: calc(var(--w) * 100cqw); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); z-index: var(--z, auto); touch-action: none; cursor: grab; user-select: none; }
.pc.is-dragging { cursor: grabbing; }
.pc--photo, .pc--stack, .pc--video, .pc--pdf, .pc--reel { cursor: pointer; }
.pc--photo.is-dragging, .pc--stack.is-dragging { cursor: grabbing; }
.pc--deco { pointer-events: none; }
.pc--deco > * { pointer-events: auto; }
.pc:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ph { display: block; width: 100%; aspect-ratio: var(--ar); position: relative; background: #d8d4cf; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.ph--print { box-shadow: 0 0 0 clamp(4px, .55cqw, 7px) #fcfbf8, 0 2px 8px rgba(0, 0, 0, .28); }
.ph--film { box-shadow: 0 0 0 clamp(5px, .7cqw, 9px) #0d0d0d, 0 2px 8px rgba(0, 0, 0, .3); }
.ph--plain { box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.ph--sepia img { filter: grayscale(1) sepia(.35) contrast(1.05); }
.drw { display: block; box-sizing: border-box; padding: 6px; color: #2b2a26; width: 100%; aspect-ratio: var(--ar); background: #f3eee2; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); position: relative; }
.drw svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.clip { position: absolute; width: 1.25rem; height: auto; color: #111; z-index: 3; pointer-events: none; }
.clip svg { display: block; width: 1.25rem; height: auto; overflow: visible; }

.note { --pm: 1; position: relative; box-sizing: border-box; display: flex; flex-direction: column; gap: calc(3.125rem * var(--pm)); min-height: calc(var(--mh) * 100cqw);
  padding: calc(5rem * var(--pm)) calc(3.5rem * var(--pm)) calc(7rem * var(--pm)); background: var(--nc); color: #000; border-radius: 4px; opacity: .97; overflow: clip; text-wrap: balance; }
@media (min-width: 1025px) and (max-width: 1439px) { .note { --pm: .7; } }
.note--torn-r { mask: url("img/torn-r.svg") center / 100% 100% no-repeat; }
.note--torn-b { mask: url("img/torn-b.svg") center / 100% 100% no-repeat; }
.note--torn-l { mask: url("img/torn-l.svg") center / 100% 100% no-repeat; }
.note__t { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; }
.note .par-2 { font-size: 1.125rem; }
.note .grain { mix-blend-mode: multiply; opacity: .6; }
.stain { position: absolute; width: 38%; aspect-ratio: 1; right: 6%; bottom: 5%; border-radius: 50%; border: 3px solid rgba(90, 60, 30, .18); background: radial-gradient(closest-side, transparent 82%, rgba(90, 60, 30, .1)); pointer-events: none; }
@media (max-width: 480px) { .note { gap: 1.5rem; padding: 40px 25px 40px 30px; } .note .h4 { font-size: 1.875rem; } .note .par-2 { font-size: 1rem; } }

.video { display: flex; flex-direction: column; width: 100%; }
.video__thumb { display: flex; position: relative; transform-origin: right bottom; }
.video__play { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.875rem; background: #db0505; color: #fff; border-radius: 4px; font-size: 1.05rem; line-height: 1.2; text-align: left; }
.video__play svg { width: 3rem; height: 3rem; flex-shrink: 0; }
.video__play .grain { opacity: .35; }
.video__info { display: flex; flex-direction: column; }
.video__info small { font: .875rem/1.4 "IBM Plex Mono", monospace; }

.audio { position: relative; box-sizing: border-box; background: var(--nc); color: #000; border-radius: 4px; padding: 2.5rem 2.5rem 2rem; display: flex; flex-direction: column; gap: 2rem; cursor: grab; }
.audio__t { font-size: 2rem; line-height: 1; font-weight: 400; font-family: "Crimson Pro", serif; }
.audio__c { font: 700 .875rem/1.4 "IBM Plex Mono", monospace; margin-top: .75rem; }
.audio__d { font: .8rem/1.45 "IBM Plex Mono", monospace; margin-top: 1rem; }
.player { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 2; }
.player__btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid #000; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.player__btn svg { width: 12px; height: 12px; }
.player__waves { flex: 1; height: 1.5rem; position: relative; background-image: url("img/wave.svg"); background-size: auto 100%; background-repeat: repeat-x; opacity: .45; }
.player__waves i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background-image: url("img/wave.svg"); background-size: auto 100%; background-repeat: repeat-x; opacity: 1; filter: brightness(0); }
.player__time { font: .8rem "IBM Plex Mono", monospace; }

.pdf { position: relative; display: block; width: 100%; aspect-ratio: .663; background: #f6f0e4; box-shadow: 4px 4px 0 -1px #efe8da, 4px 4px 0 0 rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .25); color: #1a1a1a; box-sizing: border-box; padding: 1.75rem 1.5rem; overflow: hidden; text-align: left; }
.pdf__tag { font: 900 clamp(1rem, 2.4cqw, 2rem)/1 "Sofia Sans Extra Condensed", sans-serif; }
.pdf__title { font: 300 clamp(1.1rem, 2.6cqw, 2.3rem)/1.05 "Crimson Pro", serif; margin-top: 12%; }
.pdf__lines { margin-top: 10%; display: grid; gap: 5px; }
.pdf__lines span { height: 3px; background: #b9b2a5; }
.pdf__lines span:nth-child(3n) { width: 70%; }

.reel { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: pointer; }
.reel svg { width: 100%; height: 100%; display: block; filter: drop-shadow(8px 14px 18px rgba(0, 0, 0, .45)); }
.reel__label { position: absolute; left: 66%; top: 36%; width: 20%; transform: rotate(8deg); background: #db0505; color: #fff; padding: 4% 2%; font: clamp(.6rem, 1.1cqw, .95rem)/1.35 "IBM Plex Mono", monospace; text-align: center; border-radius: 3px; }
.ruler svg, .deco svg { display: block; width: 100%; height: auto; }

/* next folder + widget */
.next-folder { margin-top: 10vh; margin-bottom: -30vh; }
@media (max-width: 1024px) { .next-folder { display: none; } }
.next-folder__in { position: relative; box-sizing: border-box; width: calc(80% - .2rem + var(--gutter)); margin-left: calc(var(--gutter) * -1); height: 55vh; padding: var(--gutter) var(--gutter) 0; background: var(--nbg); color: var(--nfg); border-radius: 0 var(--radius) 0 0; }
.next-folder__in::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 100%; background: inherit; }

.nw { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; order: 100; }
@media (min-width: 1025px) { .nw { position: fixed; bottom: var(--gutter); left: calc(var(--gutter) + var(--size)); transform: translateX(-100%); z-index: 55; transition: transform .429s var(--ease); } }
@media (max-width: 1024px) { .nw { position: relative; box-sizing: border-box; padding-block: 3rem; padding-inline-start: var(--gutter); width: calc(100% - var(--tag-h) - var(--gutter)); } }
.nw__info { position: relative; width: 13.75rem; height: 11.25rem; border-radius: 1.25rem; overflow: clip; background: var(--nbg); color: var(--nfg); transition: all var(--dur) var(--ease); }
.nw__info-in { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: 13.75rem; height: 11.25rem; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; border-radius: inherit; }
.nw__name { font-size: 1.25rem; }
.nw__cat { font: .875rem/1.4 "IBM Plex Mono", monospace; }
.nw__act { position: relative; box-sizing: border-box; width: 10rem; border-radius: 1.25rem; overflow: clip; color: var(--dark); transition: width var(--dur) var(--ease); }
.nw__act-in { position: relative; z-index: 5; display: flex; align-items: center; width: 23.75rem; transform: translateX(-13.75rem); transition: transform var(--dur) var(--ease); }
.nw__act::before { content: ""; position: absolute; inset: 0; background: #ffe927; border-radius: inherit; }
.nw__prog { position: absolute; inset: 0; width: 100%; background: var(--light); transform: translateX(var(--prog, -100%)); transition: transform .5s; z-index: 1; }
.nw__btn, .nw__txt { font: 1rem "IBM Plex Mono", monospace; height: 3.5rem; display: flex; align-items: center; justify-content: center; }
.nw__btn { width: 10rem; gap: .33em; }
.nw__btn svg { width: 14px; height: 14px; }
.nw__txt { width: 13.75rem; text-align: center; text-wrap: balance; line-height: 1.25; }
.nw.is-over .nw__info { height: 3.5rem; transform: translateY(4.5rem); }
.nw.is-over .nw__act { width: 13.75rem; }
.nw.is-over .nw__act-in { transform: translateX(0); }
@media (min-width: 1025px) {
  .nw.is-off { pointer-events: none; transform: translateX(-100%) translateY(calc(var(--gutter) + 3.5rem)); }
  .nw.is-off .nw__info { height: 3.5rem; transform: translateY(4.5rem); }
}
@media (max-width: 1024px) { .nw.is-off { display: none; } .nw__info { width: 100%; } }
.nw a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* popup */
.popup { position: fixed; inset: 0; z-index: 1005; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding-block: 8rem; --pi: 2.5rem; --sb: 14rem; }
@media (min-width: 1025px) { .popup { padding-inline: calc(var(--sb) + var(--pi)) calc(var(--sb) + var(--pi) * 2); } }
@media (max-width: 1024px) { .popup { padding-inline: var(--gutter); } }
.popup__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .85); z-index: -10; }
.popup__main { position: relative; display: flex; align-items: center; pointer-events: none; max-width: 100%; max-height: 100%; }
@media (max-width: 1024px) { .popup__main { flex-direction: column; gap: 1.5rem; justify-content: center; } }
.popup__view { position: relative; pointer-events: auto; }
.popup__view .ph, .popup__view .drw { box-shadow: 0 0 0 12px #fcfbf8; }
.popup__view .ph img { object-fit: cover; }
.popup--video .popup__main { width: 100%; aspect-ratio: 16/9; }
.popup--video .popup__view { width: 100%; height: 100%; }
.vp { width: 100%; height: 100%; background: #000; position: relative; display: grid; place-items: center; overflow: hidden; }
.vp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(1); }
.vp p { position: relative; font: 1rem/1.5 "IBM Plex Mono", monospace; color: var(--light); text-align: center; padding: 1rem; }
.popup--pdf { padding-block: var(--gutter); }
.popup--pdf .popup__main { width: 40rem; height: 100%; }
.popup--pdf .popup__view { width: 100%; height: 100%; overflow: hidden auto; background: #f6f0e4; color: #1a1a1a; overscroll-behavior: contain; }
.doc-page { padding: 3.5rem 3.25rem; border-bottom: 1px solid #000; font-size: 1.05rem; line-height: 1.5; }
.doc-page h2 { font-size: 2.2rem; line-height: .9; text-transform: uppercase; margin-bottom: 1.5rem; }
.doc-page h3 { font: 300 2rem/1.05 "Crimson Pro", serif; margin-bottom: 1.5rem; }
.doc-page p + p { margin-top: .9em; text-indent: 2em; }
.doc-page .ph { margin: 1.5rem 0; }
.popup__side { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; width: var(--sb); height: 100%; pointer-events: none; }
@media (min-width: 1025px) { .popup__side { position: absolute; left: calc(100% + var(--pi)); bottom: 0; z-index: 50; } }
@media (max-width: 1024px) { .popup__side { width: 100%; height: auto; } }
.popup__side > * { pointer-events: auto; }
.xbtn { width: 3.375rem; height: 3.375rem; border-radius: 50%; background: #e00000; color: #fff; display: grid; place-items: center; transition: transform .325s var(--ease); will-change: transform; }
.xbtn svg { width: 1.25rem; height: 1.25rem; transition: transform .325s var(--ease); }
.xbtn:hover { transform: scale(.97); }
.xbtn:hover svg { transform: scale(1.03); }
.xbtn:active svg { transform: scale(1.2); }
@media (max-width: 1024px) { .popup .xbtn { position: fixed; right: var(--gutter); top: var(--gutter); z-index: 50; } }
.info { position: relative; margin-top: auto; width: 100%; border-radius: 1.25rem; }
.info__in { background: #1e4bd7; color: #fff; border-radius: inherit; display: flex; flex-direction: column; gap: 5rem; padding: 1.25rem; }
.info__d { font-size: 1rem; line-height: 1.4; }
.info__s { font: .875rem/1.4 "IBM Plex Mono", monospace; opacity: .8; }
.info::before { content: ""; position: absolute; }
@media (min-width: 1025px) { .info::before { left: 0; top: 1.25rem; transform: translateX(-100%); border-top: .6875rem solid transparent; border-bottom: .6875rem solid transparent; border-right: .55rem solid #1e4bd7; } }
@media (max-width: 1024px) { .info::before { left: 50%; top: 0; transform: translate(-50%, -100%); border-left: .6875rem solid transparent; border-right: .6875rem solid transparent; border-bottom: .55rem solid #1e4bd7; } }

/* ---------- about ---------- */
.page-about { --bs: 3.375rem; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; width: 100%; padding: calc(var(--gutter) * 2) var(--gutter); }
.about { position: relative; z-index: 5; background: var(--light); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; width: calc(90% - .1rem); padding: 4.25rem; color: var(--dark); }

.about__content { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
@media (min-width: 1025px) { .about__content { gap: 1rem; } }
@media (max-width: 1024px) { .about__content { flex-direction: column; gap: 3.75rem; } }
.about__l, .about__r { display: flex; flex-direction: column; gap: 5rem; }
@media (min-width: 1025px) { .about__l { position: sticky; top: var(--gutter); width: calc(37.5% - .625rem); } .about__r { width: calc(50% - .5rem); } }
@media (max-width: 1024px) { .about__l { max-width: 480px; } }
.about__title { font-size: 3.25rem; line-height: .8; text-transform: uppercase; text-wrap: balance; }
.about__desc { font-size: 1rem; line-height: 1.4; }
@media (max-width: 1024px) { .about__desc { font-size: 16px; } }
.about__desc p:not(:first-child) { margin-top: 1em; text-indent: 2.5em; }
.about__desc ul { margin: 1em 0 0 1.25em; }
.gal { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.gal__in { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.gal__imgs { position: relative; width: 100%; height: 100%; overflow: hidden; }
.gal__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0; transition: opacity 1.2s var(--ease); }
.gal__imgs img.is-active { opacity: 1; }
.gal__caps { position: relative; width: 100%; font: 14px/1.4 "IBM Plex Mono", monospace; color: #555; text-wrap: balance; min-height: 2.8em; }
.gal__caps p { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity var(--dur) var(--ease); }
.gal__caps p.is-active { opacity: 1; }
.sig { display: flex; flex-direction: column; align-items: center; gap: 1rem; font: 14px/1.4 "IBM Plex Mono", monospace; color: #6b6b6b; text-align: center; margin-top: 5rem; }
.sig svg { width: 9rem; height: auto; color: #000; }
.sig a { text-decoration: underline; text-underline-offset: .25em; }
.about-close { position: fixed; top: 0; left: 0; z-index: 5; box-sizing: border-box; display: flex; justify-content: flex-end; width: var(--size); padding: calc(var(--gutter) * 2) var(--gutter); pointer-events: none; transform: translate(calc(var(--bs) * .5), calc(var(--bs) * -.5)); }
.about-close .xbtn { background: #303030; color: #b6b6b6; margin-right: calc(5% + .05rem); pointer-events: all; }
.is-loading .page-about { opacity: 0; }

/* 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.nf a { font: 1rem "IBM Plex Mono", monospace; text-decoration: underline; text-underline-offset: .25em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
.drw-box { display: block; position: relative; width: 100%; aspect-ratio: var(--ar); }
.drw-box .drw { position: absolute; }
.pc--masked { pointer-events: none; }
.pc--masked .drw { pointer-events: auto; cursor: pointer; }
.pc--masked .drw:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.page-case { overflow: clip; }
.pc--ruler { height: calc(var(--h) * 100cqw); }
.pc--ruler svg { width: 100%; height: 100%; }
@media (max-width: 1024px) { .grp .pc--ruler { height: calc(var(--h) * var(--s) * 100cqw); } }
@media (max-width: 1024px) { .grp .pc--video { width: max(calc(var(--mw) * 100cqw), 15rem); } }
@media (max-width: 768px) { .about { padding: 3rem 1.5rem; width: 100%; } .page-about { padding-inline: var(--gutter); } }
