:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #101114;
  --card: #151619;
  --line: #303035;
  --paper: #f4f3f1;
  --sub: #b5b3b2;
  --accent: #ffac78;
  --display: "Segoe UI", Arial, sans-serif;
  font: 100%/1.6 var(--display);
  color: var(--paper);
  background: var(--bg);
}
* { box-sizing: border-box }
body, h1, h2, h3, p, figure { margin: 0 }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; cursor: pointer }
a, button { touch-action: manipulation }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
::selection { background: #ffc59e; color: #211710 }
.shell { width: min(1152px, calc(100% - 48px)); margin-inline: auto }
.project-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto }
.skip { position: fixed; z-index: 12; top: -80px; left: 1rem; background: #fff; color: #111; padding: .8rem }
.skip:focus { top: 10px }
.masthead { position: sticky; top: 0; z-index: 5; background: #0b0b0df5; border-bottom: 1px solid var(--line) }
.topnav, .navlinks, .intro-actions, .footer, .zoom-bar { display: flex; align-items: center }
.topnav { justify-content: space-between; min-height: 60px; padding-inline: 24px }
.signature { font-weight: 700; font-size: 1.3rem; letter-spacing: -.035em }
.navlinks { gap: 2rem }
.navlinks a { font-size: .86rem; letter-spacing: .065em; text-transform: uppercase; padding-block: 12px; color: var(--sub) }
.navlinks a:hover, .navlinks a:focus-visible, .footer a:hover, .text-link:hover, .button-plain:hover { color: var(--accent) }
main > section { scroll-margin-top: 60px }
.hero { padding-block: clamp(3.25rem, 6.7vw, 6rem); }
.about-layout { display: grid; align-items: center; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .875rem; letter-spacing: .13em; margin-bottom: 13px }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em }
h1 { font-size: clamp(2.2rem, 3.5vw, 3.25rem); font-weight: 700 }
.discipline { font-size: 1.08rem; color: var(--paper); font-weight: 600; margin: 7px 0 20px }
.statement { color: var(--sub); line-height: 1.62 }
.statement p + p { margin-top: .8em }
.intro-actions { margin-top: 24px; gap: 22px; flex-wrap: wrap }
.primary { display: inline-flex; align-items: center; justify-content: center; padding: 9px 19px; min-height: 43px; background: var(--accent); color: #27180f; border-radius: 7px; font-weight: 600; transition: background .16s, transform .16s }
.primary:hover { background: #ffc198 }
.primary:active { transform: scale(.985) }
.text-link { text-decoration: underline; text-decoration-color: #917664; text-underline-offset: 4px; font-size: .95rem }
.about-figure { position: relative; padding-bottom: 25px }
.about-board { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line) }
.about-board img { display: block; width: 100%; height: auto }
.about-figure figcaption { position: absolute; left: -18px; bottom: 0; }
.about-figure figcaption a { display: grid; padding: 9px 16px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); line-height: 1.35 }
.about-figure strong { color: var(--accent); font-size: 1.5rem; line-height: 1.15 }
.about-figure span { color: var(--sub); font-size: .82rem }
.section { padding-block: clamp(48px, 5.5vw, 80px) }
.projects-section { background: var(--surface) }
.section-head { text-align: center; margin-bottom: clamp(25px, 3.2vw, 46px) }
h2 { font-size: clamp(1.85rem, 2.6vw, 2.3rem) }
.section-head p { margin: 12px 0 0; color: var(--sub) }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px }
.project { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); transition: border-color .2s, transform .2s }
.project:hover, .project:focus-visible { border-color: #a46c51; transform: translateY(-3px) }
.cover { overflow: hidden; background: #222 }
.cover img { display: block; width: 100%; height: auto; transition: transform .24s }
.project:hover .cover img, .project:focus-visible .cover img { transform: scale(1.015) }
.project-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(17px, 1.7vw, 24px) }
.project-copy h3 { font-size: 1.2rem; font-weight: 650; margin-bottom: 10px }
.project:hover h3, .project:focus-visible h3, .paper:hover h3 { color: var(--accent) }
.summary { color: var(--sub); font-size: .91rem; line-height: 1.5; margin-bottom: 16px }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto }
.tags span { display: inline-block; font-size: .77rem; line-height: 1.35; padding: 4px 10px; border-radius: 20px; background: #26262b; color: #e6e4e3 }
.project:active { transform: translateY(1px) }
.research-layout { max-width: 896px; }
.research-layout > h2 { text-align: center; margin-bottom: 32px }
.papers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px }
.paper { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--card) }
.paper > span, .detail-kicker { color: var(--accent); font-size: .87rem; font-weight: 600 }
.paper h3 { font-size: 1.15rem; margin: 8px 0 12px; line-height: 1.35 }
.paper small { color: var(--sub); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px }
.footer { justify-content: space-between; padding-block: 23px; color: var(--sub); border-top: 1px solid var(--line); font-size: .94rem }
.footer span { color: var(--paper); font-weight: 600 }
@media (max-width: 1050px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 720px) {
  .shell, .project-shell { width: calc(100% - 40px) }
  .topnav { min-height: 56px; padding-inline: 0 }
  main > section { scroll-margin-top: 56px }
  .navlinks { gap: clamp(12px, 3.3vw, 20px) }
  .navlinks a { font-size: .75rem; letter-spacing: .035em }
  .hero { padding-block: 38px 40px }
  .about-layout { grid-template-columns: 1fr; gap: 28px }
  .about-figure { width: min(100%, 520px); justify-self: center }
  .about-figure figcaption { left: 12px }
  .project-grid { gap: 16px }
  .papers { grid-template-columns: 1fr }
}
@media (max-width: 569px) {
  .project-grid { grid-template-columns: 1fr; gap: 22px }
  .project-copy { padding: 18px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important }
  .project:hover, .project:focus-visible, .project:active, .primary:active, .project:hover .cover img, .project:focus-visible .cover img { transform: none }
}
.reading{overflow:hidden}
dialog{color:var(--paper);background:var(--bg);padding:0;border:1px solid var(--line)}
dialog::backdrop{background:rgba(6,7,9,.8);backdrop-filter:blur(4px)}
#detail[open],#zoom[open]{display:flex;flex-direction:column}
#detail{width:min(900px,94vw);height:90vh;height:90dvh;max-height:none;max-width:none;border-radius:14px}
.detail-bar,.zoom-bar{flex:none;padding:8px clamp(14px,2.5vw,32px);gap:12px;border-bottom:1px solid var(--line);background:#17171b}
.detail-bar{display:grid;grid-template-columns:auto 1fr auto}
#bar-label{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:600 1rem var(--display)}
.button-plain,.inline-control{background:transparent;border:0;font-size:.95rem;font-weight:600;padding:9px 4px}
.detail-scroll,.zoom-scroll{overflow:auto;overscroll-behavior:contain;min-height:0}
.detail-scroll{flex:1}
#detail-body{padding:clamp(18px,2vw,28px)}
.project-intro{margin-bottom:30px}
.project-intro h2{font-size:clamp(1.5rem,2.3vw,1.95rem);margin-block:6px 8px}
.project-date,.film-head>span,.board figcaption{font-size:.9rem;color:var(--sub)}
.film-head,.board figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.film-head{margin-bottom:12px}
.film-head h3{font:600 1.24rem/1.25 var(--display)}
.film{margin-bottom:40px}
.player,.play{aspect-ratio:16/9;width:100%;display:block;background:#0d0c0c}
.player iframe,.play img{display:block;width:100%;height:100%;border:0}
.play{padding:0;border:0;position:relative}
.play-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #fff9;border-radius:50%;background:#1b1416cf;width:66px;height:66px;display:grid;place-items:center;transition:background .18s}
.play-mark::after{content:"";margin-left:4px;border:solid transparent;border-width:9px 0 9px 15px;border-left-color:#fff}
.play:hover .play-mark,.play:focus-visible .play-mark{background:#583521}
.board{margin-bottom:22px}
.board-button{display:block;border:0;padding:0;width:100%;background:#262020;cursor:zoom-in}
.board-button img{display:block;width:100%;height:auto}
.board figcaption{align-items:center;min-height:40px}
.inline-control{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.next-project{display:grid;gap:4px;border-top:1px solid var(--line);padding-block:20px 5px}
.next-project span{color:var(--accent);font-size:.92rem}
.next-project strong{font:600 1.4rem var(--display)}
#zoom{inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;background:#100e0f;border:0}
.zoom-bar span{margin-right:auto}
.zoom-scroll{flex:1;display:grid;place-items:center}
.zoom-scroll img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 70px)}
.magnified .zoom-scroll{display:block}
.magnified .zoom-scroll img{width:3000px;max-width:none;max-height:none}
@media(max-width:720px){#detail{width:100%;height:100%;height:100dvh;margin:0;border:0;border-radius:0}.detail-bar,.zoom-bar{padding:6px 12px;gap:7px}#bar-label{font-size:1rem}#detail-body{padding:22px 14px}.film{margin-bottom:24px}.project-intro{margin-bottom:20px}.film-head h3{font-size:1.15rem}.board{margin-bottom:15px}.play-mark{width:52px;height:52px}}

.project-intro.has-cover { display: grid; align-items: center; grid-template-columns: 145px 1fr; gap: 22px }
.detail-cover { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 9px }
.detail-summary { margin: 8px 0; color: var(--sub); font-size: .94rem; line-height: 1.5 }
@media(max-width:580px) {
  .project-intro.has-cover { display: block }
  .detail-cover { display: none }
}
