/* Typecast: one family, one ink, one red. Source Serif 4 (SIL OFL 1.1), shipped in fonts/. */
@font-face { font-family: "Serif"; src: url("fonts/serif-roman.woff2?v=ca0cab6b7d") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Serif"; src: url("fonts/serif-italic.woff2?v=f3501f7300") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f5f2ea;
  --ink: #16140f;
  --ink2: rgba(22, 20, 15, .62);
  --rule: rgba(22, 20, 15, .18);
  --red: #c8321f;
  --m: clamp(16px, 3vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); font: 400 18px/1.5 "Serif", Georgia, serif; font-optical-sizing: auto;
  font-kerning: normal; font-variant-ligatures: common-ligatures; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--red); color: var(--paper); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ------------------------------------------------ running head */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--m); pointer-events: none; }
.top a { pointer-events: auto; text-decoration: none; }
.top .home { font-weight: 600; font-size: 15px; letter-spacing: .01em; background: var(--paper); padding: 4px 8px; margin-left: -8px; }
.top .links { margin-left: auto; display: flex; gap: 4px; background: var(--paper); padding: 2px 4px; margin-right: -8px; }
.top .links a { font-variant-caps: all-small-caps; font-size: 17px; letter-spacing: .09em; padding: 4px 8px; }
.top a:hover, .top a[aria-current="page"] { color: var(--red); }
body.v-page .top, body.v-contents .top, body.v-about .top { background: linear-gradient(var(--paper) 70%, rgba(245, 242, 234, 0)); }

#view { display: block; min-height: 100vh; transition: opacity .18s ease; }
#view.out { opacity: 0; }

/* ------------------------------------------------ the wall */
.wall { position: relative; margin: 0 auto; }
.cell { position: absolute; margin: 0; }
.plate { display: block; position: relative; overflow: hidden; text-decoration: none; background: var(--paper); }
.plate canvas { position: absolute; left: 0; top: 0; display: block; }
.plate img.fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
a.plate { cursor: pointer; }
.cell figcaption { display: flex; align-items: baseline; gap: .5em; padding-top: 6px; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; }
.cell figcaption .t { font-weight: 600; }
.cell figcaption .c { font-variant-caps: all-small-caps; letter-spacing: .07em; color: var(--ink2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.cell.on figcaption .t { color: var(--red); }
.cell a.plate:focus-visible { outline-offset: 4px; }
.caret { position: absolute; left: 0; top: 0; width: 2px; background: var(--red); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
body:not(.booting) .caret { display: none; }
.namep { display: block; }
.wall-foot { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink2); border-top: 1px solid var(--rule); padding-top: 10px; }
.wall-foot a { text-decoration: none; }
.wall-foot a:hover { color: var(--red); }

/* the loupe: a linen tester's lens over the type */
.loupe { position: fixed; z-index: 15; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: var(--paper); box-shadow: 0 0 0 1px var(--ink), 0 10px 30px rgba(22, 20, 15, .18); overflow: hidden; }
.loupe.on { opacity: 1; }
.loupe canvas { display: block; }

/* ------------------------------------------------ a project */
.proj { max-width: 1240px; margin: 0 auto; padding: 72px var(--m) 80px; }
.proj .top-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.proj.tall .top-grid { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 40px; }
.hero { position: relative; margin: 0; }
.hero .plate { background: var(--paper); }
.head { max-width: 760px; }
.proj:not(.tall) .head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px 48px; max-width: none; }
.head .client { font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 19px; color: var(--ink2); margin: 0 0 2px; }
.head h1 { font-size: clamp(40px, 6vw, 76px); line-height: .98; font-weight: 700; letter-spacing: -.012em; margin: 0 0 14px; font-variation-settings: "opsz" 60; }
.head .desc { font-size: 20px; line-height: 1.45; margin: 0 0 18px; max-width: 34em; }
.credits { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; color: var(--ink); }
.credits li { margin: 0 0 2px; }
.credits b { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--ink2); margin-right: .45em; }
.proj:not(.tall) .head .credits { padding-top: 34px; }
.said { margin: 44px 0 8px; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.42; text-align: justify; hyphens: auto; -webkit-hyphens: auto; max-width: 46em; }
.said .pil { color: var(--red); font-weight: 600; padding: 0 .3em; }
.said q { quotes: none; }
.sec { margin-top: 56px; }
.sec h2 { font-size: 15px; font-weight: 600; letter-spacing: .1em; font-variant-caps: all-small-caps; font-size: 19px; color: var(--ink2); margin: 0 0 4px; border-top: 1px solid var(--rule); padding-top: 10px; }
.sec .txt { font-size: 18px; max-width: 40em; margin: 0 0 18px; color: var(--ink); }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px 20px; margin-top: 14px; }
.films.one { grid-template-columns: 1fr; }
.films.vertical { grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.film { margin: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.films.vertical .frame { aspect-ratio: 9 / 16; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.frame .play span { display: inline-flex; align-items: center; gap: .45em; background: var(--paper); color: var(--ink); padding: 7px 16px 8px 14px; font-size: 17px; font-weight: 600; }
.frame .play span::before { content: ""; width: 0; height: 0; border-left: 11px solid var(--red); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.frame .play:hover span, .frame .play:focus-visible span { background: var(--red); color: var(--paper); }
.frame .play:hover span::before, .frame .play:focus-visible span::before { border-left-color: var(--paper); }
.film figcaption { font-size: 15px; padding-top: 6px; }
.group { display: grid; gap: 16px; margin-top: 16px; }
.group.row-2 { grid-template-columns: 1fr 1fr; }
.group.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; background: rgba(22, 20, 15, .06); }
.radio { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--rule); }
.spot { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.spot .pp { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; }
.spot .pp::before { content: ""; position: absolute; left: 12px; top: 9px; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.spot.on .pp { background: var(--red); border-color: var(--red); }
.spot.on .pp::before { left: 10px; top: 10px; width: 4px; height: 12px; border: 0; border-left: 4px solid var(--paper); border-right: 4px solid var(--paper); width: 12px; box-sizing: border-box; }
.spot .t { font-size: 18px; }
.spot .time { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink2); }
.spot .bar { grid-column: 2 / 4; height: 14px; position: relative; cursor: pointer; }
.spot .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--rule); }
.spot .bar i { position: absolute; left: 0; top: 6px; height: 2px; background: var(--red); width: 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; border-top: 1px solid var(--ink); padding-top: 14px; }
.pn a { text-decoration: none; display: block; }
.pn a:last-child { text-align: right; }
.pn small { display: block; font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 16px; color: var(--ink2); }
.pn span { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; }
.pn a:hover span { color: var(--red); }

/* ------------------------------------------------ contents */
.book { max-width: 980px; margin: 0 auto; padding: 96px var(--m) 96px; }
.book h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 700; line-height: .95; margin: 0 0 36px; letter-spacing: -.015em; font-variation-settings: "opsz" 60; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { border-top: 1px solid var(--rule); }
.toc a { display: block; text-decoration: none; padding: 11px 0 12px; }
.toc .row { display: flex; align-items: baseline; gap: .4em; }
.toc .t { font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; line-height: 1.15; }
.toc .dots { flex: 1; min-width: 2em; height: 1em; background-image: radial-gradient(circle, var(--ink2) .9px, transparent 1.2px); background-size: 7px 4px; background-repeat: repeat-x; background-position: 0 bottom; opacity: .8; }
.toc .c { font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 18px; color: var(--ink2); white-space: nowrap; }
.toc .l { display: block; font-style: italic; font-size: 17px; color: var(--ink2); margin-top: 2px; }
.toc a:hover .t, .toc a:focus-visible .t { color: var(--red); }

/* ------------------------------------------------ about, and the colophon */
.about .role { font-size: 22px; margin: 0 0 6px; }
.about .bio { font-size: 22px; line-height: 1.45; max-width: 32em; margin: 0 0 22px; }
.about .contact { font-size: 19px; margin: 0 0 40px; }
.about .contact a { text-decoration-color: var(--red); text-underline-offset: 3px; }
.xp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.xp li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.xp .d { font-variant-numeric: oldstyle-nums tabular-nums; color: var(--ink2); }
.xp .r { font-weight: 600; }
.xp .r em { font-weight: 400; font-style: italic; margin-left: .4em; color: var(--ink2); }
.xp .x { grid-column: 2; font-size: 16px; color: var(--ink2); }
.colophon { margin-top: 56px; font-size: 15px; line-height: 1.55; color: var(--ink2); max-width: 36em; }
.colophon h2 { font-variant-caps: all-small-caps; letter-spacing: .12em; font-size: 18px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: .3s; background: var(--ink); color: var(--paper);
  font-style: italic; font-size: 20px; padding: 10px 18px; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast small { font-style: normal; font-variant-caps: all-small-caps; letter-spacing: .08em; margin-left: .6em; opacity: .7; font-size: 16px; }
#reels { position: fixed; left: -10px; top: -10px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
#reels video { width: 1px; height: 1px; }

@media (max-width: 699px) {
  body { font-size: 17px; }
  .top { height: 46px; }
  .top .links a { font-size: 16px; padding: 4px 6px; }
  .cell figcaption { font-size: 12.5px; padding-top: 4px; gap: .35em; }
  .cell figcaption .c { font-size: 13px; }
  .proj { padding-top: 60px; }
  .proj.tall .top-grid { grid-template-columns: 1fr; }
  .proj:not(.tall) .head { grid-template-columns: 1fr; }
  .proj:not(.tall) .head .credits { padding-top: 0; }
  .group.row-3 { grid-template-columns: 1fr 1fr; }
  .xp li { grid-template-columns: 1fr; }
  .xp .x { grid-column: 1; }
  .said { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { #view { transition: none; } .loupe { transition: none; } .caret { animation: none; } }
.group.full .shot img { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.group.full .shot { text-align: center; }
@media (max-width: 699px) { .head .desc { font-size: 18px; } .said { font-size: 19px; } .head h1 { font-size: 44px; } }
