@import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');
:root {
  color-scheme: light;
  --ink: #26382f;
  --paper: #faf7f1;
  --pink: #f3dce7;
  --mint: #e1eee3;
  --line: #54685b55;
  --pixel: Silkscreen, 'Courier New', monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Courier New', monospace;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; }
a, button { color: inherit; }
a { text-underline-offset: .25em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #814569; outline-offset: 5px; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--pixel); font-weight: 400; }
.bar { padding: 1rem clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.opening-nav { position: sticky; top: 0; z-index: 5; background: #f3dce7ed; border-bottom: 1px solid var(--line); font-family: var(--pixel); }
.bar nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem clamp(.7rem, 4vw, 4rem); }
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; }
.identity { font-size: 1.55rem; line-height: 1; }
#clock { font: .85rem 'Courier New', monospace; }
.intro {
  min-height: min(800px, calc(100svh - 54px));
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #fff8f1 0%, transparent 53%), var(--pink);
}
.intro::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .15; background-image: radial-gradient(var(--ink) .65px, transparent .8px); background-size: 6px 6px; }
.film-title { position: relative; pointer-events: none; font-size: clamp(2.45rem, 9vw, 9rem); text-align: center; line-height: 1; color: #26382f; text-shadow: 3px 3px #fef8ef, -2px -2px #fef8ef; }
.intro-foot { position: absolute; bottom: 0; inset-inline: 0; display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: 1rem 4vw; background: #f8e9ee; }
section[id] { scroll-margin-top: 4.5rem; }
#chapters { display: grid; grid-template-columns: minmax(240px, .75fr) 1.25fr; border-block: 1px solid var(--line); }
.chapter-side { background: var(--mint); padding: clamp(1rem, 4vw, 4rem); }
.chapter-side h2 { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 3vw, 3rem); }
.chapter-wall { display: grid; gap: 2.5rem; padding: clamp(1rem, 5vw, 5rem); }
.chapter { width: 83%; }
.chapter:nth-child(even) { width: 69%; justify-self: end; }
.chapter-poster { position: relative; display: grid; text-decoration: none; overflow: hidden; background: var(--pink); padding-bottom: .8rem; }
.chapter-poster img { grid-area: 1 / 1; aspect-ratio: 16 / 10; object-fit: cover; }
.chapter-cut { opacity: 0; transition: opacity .35s; }
.chapter-poster:hover .chapter-cut, .chapter-poster:focus-visible .chapter-cut { opacity: 1; }
.chapter-poster small,.chapter-poster h2 { padding: .5rem .8rem 0; }
.chapter-caption { margin-top: .65rem; line-height: 1.5; }
.catalogue, .profile { padding: clamp(1.25rem, 5vw, 5rem); }
.catalogue { background: #f2e9ee; }
.section-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.view { display: flex; flex-wrap: wrap; gap: .4rem; }
button { border: 1px solid var(--line); background: var(--paper); padding: .5rem .75rem; }
button:hover, button[aria-pressed=true] { background: var(--mint); }
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.work { padding: 0; text-align: left; align-self: start; }
.work-image { display: block; overflow: hidden; }
.work img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.work:hover img { transform: scale(1.06); }
.work-info { display: grid; gap: .35rem; padding: .65rem; }
.work-info span { font-size: .8rem; }
.still { display: none; }
.is-gallery .still { display: block; }
.is-list { grid-template-columns: 1fr; }
.is-list .work { display: grid; grid-template-columns: minmax(72px, 15%) 1fr; align-items: center; }
.is-list .still { display: none; }
.profile { display: grid; grid-template-columns: .7fr 1fr; gap: 2rem; background: var(--mint); }
.profile h2 { font-size: clamp(2rem, 5vw, 5rem); margin-top: .6rem; }
.statement { line-height: 1.65; }
.statement > * + * { margin-top: 1rem; }
.lead { font-size: 1.3rem; }
details { border-top: 1px solid var(--line); padding-top: .7rem; }
summary { cursor: pointer; }
footer { background: var(--pink); }
dialog { width: min(100%, 1100px); max-height: 94dvh; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #26382fc7; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: var(--pink); }
#project-body { display: grid; gap: 2rem; padding: clamp(1rem, 4vw, 3rem); }
.project-head { margin-bottom: 1rem; }
.project-head h2 { font-size: clamp(1.5rem, 5vw, 3.5rem); margin-bottom: .7rem; }
.film { position: relative; background: var(--mint); }
.film img, .film iframe { width: 100%; display: block; aspect-ratio: 16 / 9; border: 0; object-fit: cover; }
.film button { position: absolute; bottom: 1rem; left: 1rem; }
.film-credit,.archive-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
.archive-grid figure { flex: 1 1 180px; }
.inspect { padding: 0; width: 100%; }
.archive-head p { margin-top: .6rem; }
.project-next { display: grid; justify-items: start; gap: .4rem; }
#still-view { width: fit-content; max-width: 95vw; }
#still-view img { width: auto; max-width: 100%; max-height: 78dvh; object-fit: contain; }
#still-view form { padding: .5rem; }
@media (max-width: 700px) {
  .opening-nav { font-size: .78rem; }
  .intro { min-height: 72svh; }
  .intro-foot { font-size: .82rem; }
  #chapters, .profile { grid-template-columns: 1fr; }
  .chapter-wall { padding-block: 1.5rem; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Printed palette and moving image composition */
:root {
 --ink: #354d40;
 --pink: #f7e1ec;
 --mint: #e9f4eb;
 --paper: #fffafc;
}
.opening-nav { background: #fae7f0f4; }
.intro {
 min-height: max(530px, calc(100svh - 57px));
 background: radial-gradient(ellipse at 50% 51%, #fcf3ed, #f7e0ec 66%, #f5dce9);
}
.intro::before { opacity: .1; z-index: 1; pointer-events: none; }
.film-title {
 color: #345548;
 font-size: clamp(2.75rem, 8vw, 7rem);
 letter-spacing: -.075em;
 text-shadow: 2px 2px #faedf2, -2px -2px #faedf2, 0 0 28px #fff;
 z-index: 2;
}
.intro-foot { background: #fbecf1ed; z-index: 3; border-top: 1px solid #79576930; }
#motion { position: absolute; z-index: 3; right: 4vw; bottom: 4.65rem; background: #fbecf1ed; font-size: .8rem; }
#chapters { background: #fffafd; grid-template-columns: minmax(240px, .8fr) 1.2fr; }
.chapter-wall { gap: clamp(2rem, 8vw, 7rem); }
.chapter { width: 74%; }
.chapter:nth-child(even) { width: 63%; }
.chapter-poster { padding: 0 0 .8rem; background: #f8e8ef; }
.chapter-poster > img { transition: opacity .48s ease, transform .65s ease; }
.chapter-poster:hover > img, .chapter-poster:focus-visible > img { transform: scale(1.035); }
.chapter-poster h2 { font-size: clamp(1rem, 2.35vw, 2.25rem); line-height: 1.2; }
.catalogue { background: #f7eaf2; }
.profile { background: linear-gradient(130deg, #e7f2e7 50%, #f8eaf1); }
dialog[open] { animation: unfold .46s ease-out; }
@keyframes unfold {
 from { opacity: 0; transform: translateY(12px) scale(.985); }
 to { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
 .intro { min-height: max(440px, 76svh); }
 #chapters { grid-template-columns: 1fr; }
 #motion { bottom: 5.4rem; }
 .chapter { width: 86%; }
 .chapter:nth-child(even) { width: 76%; }
}
@media (prefers-reduced-motion: reduce) {
 dialog[open] { animation: none; }
}
.reading-room {
 position: relative;
 isolation: isolate;
 display: grid;
 justify-items: center;
 gap: 1.5rem;
 min-height: 32rem;
 padding: clamp(1.1rem, 4vw, 3.5rem);
 background: radial-gradient(ellipse at 55% 60%, #fffdf8 12%, #fbf4f7 62%, #eaf2e8);
 overflow: hidden;
}
#project-body { padding-top: 0; }
.book-heading { position: relative; text-align: center; max-width: 36rem; }
.book-heading p { font-size: .84rem; margin-bottom: .65rem; }
.book-heading h2 { font-size: clamp(1.5rem, 4vw, 3.1rem); line-height: 1.06; }
.room-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.book {
 position: relative;
 display: grid;
 grid-template-columns: 1fr 1fr;
 width: min(100%, 41rem);
 min-height: 18rem;
 border: .36rem solid #4c5746;
 border-radius: .9rem .9rem .5rem .5rem;
 background: #eee4d4;
 box-shadow: 0 7px 0 #d5c8b6, 0 18px 35px #46393738;
}
.book-plate, .book-leaf { min-width: 0; padding: clamp(.72rem, 3vw, 1.8rem); }
.book-plate { display: grid; align-content: center; background: linear-gradient(90deg, #fcf3e5 84%, #bdad98); }
.book-plate img { aspect-ratio: 4 / 5; object-fit: cover; border: .25rem solid #fff8ea; box-shadow: 1px 4px 9px #4c44373f; }
.book-leaf {
 transform-origin: left center;
 background: linear-gradient(90deg, #b5a48e55, transparent 12%), repeating-linear-gradient(#fcf6e7 0 25px, #e9decb 25px 26px);
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: start;
 gap: .7rem;
 line-height: 1.55;
 overflow-wrap: anywhere;
}
.book-leaf h3 { font-size: clamp(1rem, 2vw, 1.4rem); }
.book-ribbon { position: absolute; width: .55rem; height: 1.8rem; background: #7d4d62; bottom: -1.65rem; left: 49.5%; transform: rotate(6deg); }
.book-tabs, .book-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.book-tabs button { background: #eddae5; border: 0; clip-path: polygon(0 8%, 17% 2%, 56% 6%, 96% 0, 100% 87%, 67% 100%, 17% 94%, 2% 100%); transform: rotate(-3deg); }
.book-tabs button:nth-child(even) { transform: rotate(3deg); }
.book-tabs button:hover, .book-tabs button:focus-visible, .book-tabs button[aria-pressed=true] { background: #dcebdd; transform: translateY(-3px); }
.book-controls button:disabled { opacity: .4; cursor: default; }
#project-film, #project-outcome, #project-archive { scroll-margin-top: 4rem; }
@media (max-width: 530px) {
 .reading-room { padding-inline: .6rem; }
 .book { grid-template-columns: .7fr 1.3fr; }
 .book-leaf { font-size: .9rem; }
}
/* Artwork stays uncropped in the notebook and selection views. */
#pattern-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro { background: linear-gradient(140deg,#f8e3ed,#fff4ee 48%,#e6f1e6); }
.room-art canvas {
 position: absolute;
 width: clamp(3rem, 13%, 8.5rem);
 height: auto;
 animation: paper-float 8s ease-in-out infinite alternate;
}
.room-art canvas:nth-child(1) { left: 3%; top: 14%; --direction: -1; }
.room-art canvas:nth-child(2) { right: 3%; top: 11%; --direction: 1; animation-delay: -3s; }
.room-art canvas:nth-child(3) { left: 4%; bottom: 2%; --direction: 1; animation-delay: -4s; }
.room-art canvas:nth-child(4) { right: 5%; bottom: 3%; --direction: -1; animation-delay: -6s; }
@keyframes paper-float {
 from { transform: translateY(-5px) rotate(calc(-11deg * var(--direction))); }
 to { transform: translateY(16px) rotate(calc(14deg * var(--direction))); }
}
.book-plate img { aspect-ratio: auto; max-height: min(49vh, 28rem); object-fit: contain; background: #f8f0e3; }
.chapter-poster > img, .work img, .film img { object-fit: contain; background: #efe7eb; }
.chapter-side { background: linear-gradient(150deg,#e5f0e6,#f7e9ee); }
.chapter-side h2 { position: sticky; top: 6rem; }
@media (prefers-reduced-motion: reduce) { .room-art canvas { animation: none; } }
.film video { display:block; width:100%; aspect-ratio:16/9; background:#1e2421; object-fit:contain; } .outcome-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; } .outcome-grid button:first-child { grid-column:1/-1; } .outcome-grid img { width:100%; height:auto; } .cv-link { display:inline-block; padding:.55em .9em; border:1px solid currentColor; text-decoration:none; } @media(max-width:650px){ .bar nav { flex-wrap:wrap; gap:.5rem 1rem; } .outcome-grid { grid-template-columns:1fr; } }
.archive-grid,.outcome-grid {
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:clamp(12px,2vw,28px);
 align-items:start;
}
.archive-grid figure { min-width:0; margin:0; }
.archive-grid .inspect,.outcome-grid .inspect { display:block; width:100%; text-align:left; }
.archive-grid .inspect img,.outcome-grid .inspect img {
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:16 / 10;
 max-height:none;
 object-fit:contain;
 background:#efe8e7;
}
.outcome-grid button:first-child { grid-column:auto; }
.archive-grid figcaption,.outcome-grid .inspect span { display:block; margin-top:8px; line-height:1.35; }
.chapter-poster > img,.work img { object-fit:cover; }
.work.still img { object-fit:contain; }
@media(max-width:760px) {
 .archive-grid,.outcome-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
 .archive-grid,.outcome-grid { grid-template-columns:1fr; }
}
