:root {
  color-scheme: light;
  --paper: #ebe7e0;
  --surface: #f4f0ea;
  --ink: #1c1a18;
  --muted: #645d55;
  --line: #d5cec3;
  --wall: #d9d4cb;
  --trim: #faf7ee;
  --shadow: #453b3030;
  --accent: #ad6f49;
  --pad: clamp(22px, 5.5vw, 92px);
  --ease: cubic-bezier(.22,.8,.21,1);
  --sans: "Segoe UI", Arial, sans-serif;
  --mono: "Consolas", "Courier New", monospace;
  font-family: var(--sans);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1a1817;
  --surface: #252220;
  --ink: #eeeae4;
  --muted: #b9afa5;
  --line: #39342f;
  --wall: #1d1b19;
  --trim: #4c4741;
  --shadow: #0008;
  --accent: #d49b6e;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--wall); color: var(--ink); transition: background .45s, color .45s; }
.theme-changing body, .theme-changing .topbar { transition: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 50; top: 8px; left: 8px; padding: 12px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }
.micro { font: 600 11px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: var(--accent); border-radius: 50%; vertical-align: .08em; }

.intro { position: fixed; z-index: 100; inset: 0; display: grid; align-content: center; gap: 18px; padding: var(--pad); background: var(--ink); color: var(--paper); }
.intro p { font-size: clamp(36px, 9vw, 145px); font-weight: 750; letter-spacing: -.085em; line-height: .9; }
.intro p span { color: #d49b6e; }
.intro .micro { display: flex; justify-content: space-between; max-width: 740px; }
.intro-meter { width: 100%; max-width: 740px; height: 2px; background: #b3a99b55; }
.intro-meter::before { display: block; content: ""; height: 100%; background: #d49b6e; transform-origin: left; animation: loading .82s var(--ease) both; }
.intro.departing { animation: curtain .65s var(--ease) both; pointer-events: none; }
@keyframes loading { from { transform: scaleX(.02); } to { transform: scaleX(1); } }
@keyframes curtain { to { transform: translateY(-105%); border-radius: 0 0 35% 35%; } }

.topbar { position: fixed; z-index: 10; top: 0; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; padding: 17px clamp(16px, 3vw, 48px); pointer-events: none; transition: background .3s; }
.topbar.scrolled { background: color-mix(in srgb, var(--paper), transparent 13%); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 45%); }
.menu-trigger, .clock { pointer-events: auto; background: color-mix(in srgb, var(--surface), transparent 40%); border: 1px solid var(--line); border-radius: 12px; }
.menu-trigger { display: flex; align-items: center; gap: 8px; padding: 13px 15px; font: 650 12px var(--mono); text-transform: uppercase; transition: background .25s, transform .25s; }
.menu-trigger:hover { background: var(--surface); transform: translateY(-2px); }
.desktop-nav { display: none; }
.clock { margin-right: 28px; padding: 6px 9px; font-size: 11px; white-space: nowrap; }
.clock span { color: var(--muted); margin-right: 3px; }
.clock time { font-weight: 650; font-variant-numeric: tabular-nums; }
.pull { position: fixed; z-index: 11; top: 0; right: clamp(7px, 4vw, 62px); width: 38px; height: 258px; border: 0; padding: 0; background: none; touch-action: none; cursor: grab; }
.pull:active { cursor: grabbing; }
.pull svg { position: absolute; left: 50%; top: 0; translate: -50%; display: block; overflow: visible; pointer-events: none; filter: drop-shadow(4px 5px 4px #0004); }
.cord-line { fill: none; stroke-linecap: round; }
.cord-braid { opacity: .72; }
.door-passage { position: fixed; z-index: 20; inset: 0; background: var(--paper); pointer-events: none; }

.hero { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse at 52% 60%,color-mix(in srgb,var(--surface),transparent 5%),transparent 75%), var(--paper); border-radius: 0 0 24px 24px; box-shadow: 0 14px 34px var(--shadow); }
.hero-stage { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; padding: 95px var(--pad) 0; }
.hero-content { align-self: center; z-index: 1; padding-block: 22px 50px; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: clamp(19px, 3.3vh, 45px); }
.hero h1 { font-size: clamp(40px, 6vw, 103px); font-weight: 720; letter-spacing: -.072em; line-height: .98; }
.hero h1 span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-lead { font-size: clamp(38px, 5.1vw, 83px); font-weight: 660; letter-spacing: -.07em; line-height: .96; color: var(--muted); opacity: .75; }
.book { position: relative; width: min(100%, 530px); height: clamp(86px, 11vw, 157px); margin: clamp(4px, .8vw, 12px) 0 clamp(22px, 3.2vw, 44px); color: #161511; perspective: 750px; transform: rotate(-1.8deg); }
.book-cover, .book-pages, .book-paper { position: absolute; inset: 0; border-radius: 7px 7px 13px 13px; }
.book-cover { background: #211f1b; transform: translate(5px, 7px); box-shadow: 0 16px 28px #261d163f; }
.book-pages { inset: 2px 1px 2px; background: repeating-linear-gradient(to bottom,#e9e4d6 0 2px,#cfc9bd 3px 4px); box-shadow: 0 2px 2px #0007; }
.book-paper { display: flex; align-items: center; justify-content: center; inset: 0 0 10px; padding: 11px 13px 14px; background: linear-gradient(174deg,#dcd7c9 0%,#f8f6ed 38%,#f6f3e8 77%,#e9e3d5); box-shadow: inset 0 0 0 1px #fff8, 0 1px 1px #0002; transform-origin: center top; backface-visibility: hidden; }
.book-role { font-size: clamp(25px, 4.18vw, 68px); font-weight: 770; line-height: 1; letter-spacing: -.075em; white-space: nowrap; }
.book-number { position: absolute; right: 10px; bottom: 6px; color: #6a6257; font-size: 9px; }
.book-rings { position: absolute; z-index: 2; top: -4px; inset-inline: 6px; height: 12px; background: radial-gradient(ellipse 3px 4px at 14px 6px,#292722 30%,#6e675b 50%,#d6ccbb 68%,transparent 77%) 0 0 / 28px 11px repeat-x; pointer-events: none; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 100px; font-size: 13px; font-weight: 650; line-height: 1.2; transition: transform .25s var(--ease), background .25s; white-space: nowrap; }
.pill:hover { transform: translateY(-3px); }
.primary { background: var(--ink); color: var(--surface); }
.secondary { background: color-mix(in srgb,var(--surface),transparent 44%); border-color: var(--line); }
.secondary:hover { background: var(--surface); }
.pill-arrow { display: grid; place-items: center; width: 25px; height: 25px; margin: -5px -9px -5px 0; border-radius: 50%; background: var(--surface); color: var(--ink); transition: rotate .25s; }
.pill:hover .pill-arrow { rotate: 12deg; }
.portrait { position: relative; justify-self: center; width: min(100%, 535px, 78svh); margin-bottom: -1px; }
.portrait-photo { position: relative; filter: drop-shadow(9px 9px 16px #30271e25); }
.portrait-photo img { display: block; width: 100%; height: auto; }
.portrait-mono { filter: grayscale(1); }
.portrait-brush { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.portrait-photo .portrait-color {
  position: absolute; inset: 0;
  mask-image: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 40%), #000 0 var(--spot-size, 0px), transparent calc(var(--spot-size, 0px) + 36px));
  opacity: var(--spot-opacity, 0);
  pointer-events: none;
}
.ability-trigger { position: absolute; left: 16%; bottom: 8%; padding: 13px 16px; border: 1px solid #f2eada50; border-radius: 60px; background: #201e1cd9; color: #fffaf0; font-size: 12px; font-weight: 650; backdrop-filter: blur(8px); transition: transform .25s, background .25s; }
.ability-trigger:hover { transform: translateY(-3px); background: #171512; }
.hero-strip { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; padding: 8px clamp(16px,3vw,48px); border-top: 1px solid var(--line); color: var(--muted); }
.hero-strip a:hover { color: var(--ink); }
.hero-strip a span { display: inline-block; animation: descend 2s ease-in-out infinite; }
@keyframes descend { 50% { transform: translateY(4px); } }

.works { --hall: color-mix(in srgb, var(--wall), var(--surface) 28%); overflow: hidden; background: radial-gradient(ellipse at 40% 5%,var(--surface),var(--hall) 72%); }
.hall-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: clamp(65px, 12vw, 170px) var(--pad) clamp(24px, 4vw, 60px); }
.hall-title { padding-left: 19px; border-left: 1px solid var(--line); }
.hall-title .micro { color: var(--muted); margin-bottom: 10px; }
.hall-title h2, .footer h2 { font-size: clamp(46px, 9vw, 130px); line-height: .88; letter-spacing: -.082em; font-weight: 720; }
#works-title { clip-path: inset(-.18em calc((100% + .36em) * var(--works-title-hidden, 0) - .18em) -.18em -.18em); }
.hall-guide { width: min(220px, 35%); font-size: 14px; line-height: 1.45; color: var(--muted); }
.hall-guide .micro { display: block; margin-top: 13px; color: var(--ink); }
.door-wall { position: relative; padding: 8px var(--pad) 0; }
.door-wall::before { content: ""; position: absolute; inset: auto 0 0; height: 19px; background: linear-gradient(var(--trim),var(--line) 17%,var(--trim) 29%,var(--trim) 82%,var(--line)); box-shadow: 0 -3px 8px var(--shadow); }
.doors { display: flex; justify-content: center; gap: clamp(16px, 4.2vw, 74px); max-width: 1160px; margin: auto; perspective: 1500px; }
.door { --door: #263851; --door-dark: #142033; --door-hi: #3b4d69; position: relative; display: block; flex: 1 1 0; max-width: 298px; min-width: 0; aspect-ratio: .51; border: 0; padding: 0; background: none; isolation: isolate; perspective: 1100px; }
.door-campus { --door: #53664d; --door-dark: #354333; --door-hi: #71826c; }
.door-film { --door: #8d4e2b; --door-dark: #602f1b; --door-hi: #aa6d46; }
.door-frame, .door-light, .door-leaf { position: absolute; inset: 0; display: block; border-radius: 50% 50% 0 0 / 25% 25% 0 0; }
.door-frame { background: var(--trim); box-shadow: inset 0 0 0 2px #fff7, inset 0 0 0 5px #80715d25, inset 0 0 0 9px #fff4, inset 0 0 0 12px #806f5a25, 0 1px 18px var(--shadow); }
[data-theme="dark"] .door-frame { box-shadow: inset 0 0 0 2px #fff2, inset 0 0 0 5px #0004, inset 0 0 0 9px #fff1, inset 0 0 0 12px #0005, 0 1px 18px var(--shadow); }
.door-light, .door-leaf { inset: 3% 7.5% 0; }
.door-light { background: radial-gradient(ellipse at 63% 49%, #ffedce 0, #c89059 55%, #4b2e1e 100%); box-shadow: inset 0 0 16px #0009; }
.door-leaf { background: linear-gradient(90deg,var(--door-dark),var(--door) 20%,var(--door-hi) 74%,var(--door-dark)); box-shadow: inset 0 0 0 2px #15100d6e, inset 0 0 11px #1b140b69; transform-origin: left center; transition: transform .55s cubic-bezier(.2,1.3,.3,1), filter .3s; }
.door-grooves { position: absolute; inset: 4% 7% 4%; border-radius: 50% 50% 0 0 / 23% 23% 0 0; box-shadow: inset 0 2px 9px #0004; background: repeating-linear-gradient(90deg,#0001 0 1px,#ffffff0d 2px 3px,transparent 4px 7px); }
.plaque { position: absolute; top: 29%; left: 50%; translate: -50%; display: grid; place-content: center; width: 72%; min-height: 11%; padding: 5px 0; background: linear-gradient(158deg,#997340,#ead097 28%,#a88148 53%,#e2c48d 75%,#8c612e); border: 1px solid #6b4a24; border-radius: 1px; box-shadow: 0 4px 5px #0005,inset 0 0 0 1px #fff4; color: #2d2115; font: 800 clamp(8px,1.3vw,16px)/1.08 var(--mono); letter-spacing: .03em; text-align: center; text-transform: uppercase; }
.plaque::before, .plaque::after { content: ""; position: absolute; top: 49%; width: 3px; height: 3px; border-radius: 50%; background: #704b25; box-shadow: 0 1px #fff7; }
.plaque::before { left: 5%; }.plaque::after { right: 5%; }
.door-knob { position: absolute; right: 10%; top: 62%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 25%,#f9df9d,#a77a37 55%,#4a341c); box-shadow: 2px 3px 5px #0008; }
.door-knob::after { content: ""; position: absolute; right: 34%; top: 28%; width: 260%; height: 47%; background: linear-gradient(#ffe6a2,#ba8e46 54%,#71502b); border-radius: 20px; transform-origin: right center; transition: rotate .35s var(--ease); }
.keyhole { position: absolute; top: 69%; right: 11.8%; width: 5.3%; aspect-ratio: .64; border-radius: 40%; background: radial-gradient(ellipse at 50% 47%,#30251a 0 19%,transparent 29%),linear-gradient(90deg,#8d672b,#edce83,#67451d); box-shadow: 2px 2px 4px #0007; }
.door-step { position: absolute; inset: auto 0 0; height: 1.6%; background: linear-gradient(0deg,#1d1a1860,transparent); }
.door.previewed .door-leaf { transform: rotateY(-17deg); filter: brightness(1.08); }
.door.previewed .door-light { background: var(--wall); }
.door.previewed .door-knob::after { rotate: -12deg; }
.door.opening .door-knob::after { rotate: -26deg; }
.door.opening { z-index: 2; }
.door.opening .door-leaf { transition: filter .55s; filter: brightness(.78); }
.door.opening .door-light { background: var(--paper); box-shadow: inset 0 0 18px var(--shadow); }
.door-cursor { position: fixed; z-index: 16; top: 0; left: 0; border-radius: 30px; padding: 8px 12px; white-space: nowrap; background: var(--ink); color: var(--paper); box-shadow: 0 4px 15px var(--shadow); font-size: 11px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.door-cursor.visible { opacity: 1; visibility: visible; }
.door-preview { position: absolute; z-index: 3; left: var(--preview-left); top: var(--preview-y); width: var(--preview-width); translate: 0 -50%; opacity: 0; visibility: hidden; pointer-events: none; }
.has-preview .door-preview { opacity: 1; visibility: visible; }
.door-preview h3 { font-size: clamp(22px, 3vw, 37px); letter-spacing: -.045em; line-height: 1.05; }
.door-preview .micro { color: var(--muted); margin-top: 7px; }
.door-preview ul { display: grid; gap: 7px; padding: 0; margin: 13px 0 0; list-style: none; font-size: clamp(12px,1.25vw,16px); }
.door-preview li { display: flex; align-items: center; gap: 8px; }
.door-preview li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .75em; }
@media (min-width: 600px) {
  .door { transition: opacity .3s var(--ease); }
  .has-preview .door:not(.previewed) { opacity: .12; }
}
@media (max-width: 599px) {
  .door-preview { display: none; position: static; width: auto; translate: none; padding: 18px 0; }
  .has-preview .door-preview { display: block; }
}

.story { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(24px, 9vw, 150px); position: relative; background: radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--accent),transparent 58%),transparent 42%), repeating-linear-gradient(133deg,transparent 0 11px,color-mix(in srgb,var(--line),transparent 75%) 12px 13px),var(--surface); padding: clamp(70px,10vw,145px) var(--pad); }
.story-header { min-width: 0; }
.story-counter { position: sticky; top: 106px; }
.story-counter > .micro:first-child { color: var(--muted); margin-bottom: 12px; }
.story h2 { font-weight: 710; font-size: clamp(21px,3vw,47px); letter-spacing: -.06em; }
.story-year { font-size: clamp(88px,15vw,216px); line-height: .9; font-weight: 750; letter-spacing: -.09em; font-variant-numeric: tabular-nums; }
.story-date { margin: 16px 0 8px; color: var(--muted); }
.story-progress { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.story-track { display: block; width: min(145px, 35%); height: 3px; border-radius: 3px; overflow: hidden; background: var(--line); }
.story-track span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.timeline { position: relative; padding: 0 0 0 25px; margin: 0; list-style: none; border-left: 1px solid var(--line); }
.milestone { position: relative; max-width: 540px; min-height: 175px; padding-bottom: 38px; }
.milestone:last-child { min-height: 0; padding-bottom: 0; }
.milestone::before { content: ""; position: absolute; top: 5px; left: -30px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .4s,box-shadow .4s; }
.milestone.current::before { background: #678451; box-shadow: 0 0 0 5px #73935533; }
@media (prefers-reduced-motion: no-preference) {
  .story-tracked .timeline::before, .story-tracked .timeline::after { content: ""; position: absolute; top: 10px; pointer-events: none; }
  .story-tracked .timeline::before { left: -1px; width: 2px; height: var(--rail-travel, 0px); background: color-mix(in srgb, var(--ink), var(--accent) 30%); }
  .story-tracked .timeline::after { z-index: 1; left: -1px; width: 10px; height: 10px; transform: translate(-50%, calc(var(--rail-travel, 0px) - 50%)); border-radius: 50%; background: #82a773; box-shadow: 0 0 0 5px #82a77335; }
  .story-tracked .milestone::before { content: none; }
  .story-tracked .milestone { transition: opacity .35s var(--ease); }
  .story-tracked .milestone:not(.current) { opacity: .83; }
}
.milestone .micro { color: var(--muted); }
.milestone h3 { font-size: clamp(20px,2.3vw,34px); line-height: 1.1; letter-spacing: -.045em; margin-top: 6px; }
.milestone .institution { margin-top: 4px; font-weight: 600; }
.milestone p:not(.micro) { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 7px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tags span { font-size: 11px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }

.footer { padding: clamp(60px,10vw,148px) var(--pad) 0; background: var(--paper); border-top: 1px solid var(--line); }
.footer-main .micro { color: var(--muted); margin-bottom: 15px; }
.footer-main > p:not(.micro) { max-width: 410px; margin: 20px 0; color: var(--muted); line-height: 1.5; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 45px 0 32px; margin-top: 30px; border-top: 1px solid var(--line); }
.footer-links h3 { color: var(--muted); margin-bottom: 10px; }
.footer-links a, .footer-links span, .text-button { display: block; width: fit-content; font-size: 13px; line-height: 1.4; margin-bottom: 7px; }
.footer-links a:hover, .text-button:hover, .email-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button { padding: 0; border: 0; background: none; text-align: left; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 20px; border-top: 1px solid var(--line); color: var(--muted); }
.to-top { position: fixed; z-index: 9; right: 20px; bottom: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--ink); color: var(--surface); }

body:has(dialog[open]) { overflow: hidden; }
body.walking-door { overflow: hidden; }
.works.walking { will-change: transform; }
dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 24px 70px #0005; overscroll-behavior: contain; }
dialog::backdrop { background: #201a1575; backdrop-filter: blur(6px); }
dialog[open] { animation: panel-in .43s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(19px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-top .micro { color: var(--muted); }
.close { flex: 0 0 auto; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 22px; line-height: 1; }
.menu-dialog { margin: 15px auto auto clamp(12px,3vw,48px); width: min(520px,calc(100% - 24px)); padding: clamp(18px,4vw,32px); }
.menu-dialog nav { margin-top: 14px; }
.menu-dialog nav a, .menu-dialog nav button { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 11px 5px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: clamp(18px,3.3vw,32px); font-weight: 680; letter-spacing: -.055em; text-align: left; transition: padding .25s,background .25s; }
.menu-dialog nav a:hover, .menu-dialog nav button:hover { padding-left: 12px; background: var(--paper); }
.menu-dialog nav span, .menu-dialog nav i { color: var(--muted); font: 500 11px var(--mono); }
.work-dialog { --room-nav-height: clamp(64px, 11dvh, 79px); position: fixed; inset: 0; margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; overflow: hidden; background: var(--paper); border-radius: clamp(35px,11vw,88px); }
.work-dialog::backdrop { background: var(--paper); backdrop-filter: none; }
.work-dialog[open] { animation: none; }
.work-scroll { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; scroll-padding-top: var(--room-nav-height); }
.work-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.work-inner { width: min(100%, 1440px); margin: 0 auto; padding: calc(var(--room-nav-height) + clamp(25px,4vw,48px)) clamp(18px,6.8vw,100px) clamp(32px,25dvh,225px); }
.work-nav { position: absolute; z-index: 4; inset: 0 0 auto; height: var(--room-nav-height); padding-inline: max(18px,calc((100% - 1260px) / 2)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); }
.work-nav .pill { background: var(--surface); font-size: 14px; }
.work-intro { padding-bottom: clamp(26px,4vw,55px); }
.work-intro h2 { font-size: clamp(38px,8.5vw,110px); font-weight: 735; line-height: .92; letter-spacing: -.075em; margin: 10px 0 13px; }
.work-intro > p:last-child { max-width: 700px; color: var(--muted); line-height: 1.5; font-size: clamp(14px,2vw,19px); }
.project-list { position: relative; padding-bottom: clamp(20px, 12dvh, 90px); }
.project { position: sticky; top: calc(var(--room-nav-height) + 9px); display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(20px,4vw,58px); margin-bottom: clamp(16px, 2.6vw, 36px); padding: clamp(18px,4vw,56px); background: var(--surface); border: 1px solid var(--line); border-radius: clamp(18px,3vw,34px); box-shadow: 0 -8px 32px var(--shadow); overflow: hidden; }
.project:last-child { margin-bottom: 0; }
.project-monitor { min-width: 0; }
.monitor-stand { display: block; width: 31%; height: clamp(16px,4vw,46px); margin: -1px auto 0; background: linear-gradient(105deg,#85817c,#e0d9ce 46%,#a59d92 79%); clip-path: polygon(34% 0,66% 0,71% 78%,100% 78%,97% 100%,3% 100%,0 78%,29% 78%); }
.project-art { min-height: 155px; aspect-ratio: 1.7; padding: clamp(10px,2vw,24px); color: #fff4e6; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 10px; overflow: hidden; position: relative; isolation: isolate; border: clamp(5px, .7vw, 10px) solid #211e1c; border-radius: clamp(12px,1.65vw,24px); box-shadow: 0 18px 27px var(--shadow), 0 0 0 1px var(--line); transform: perspective(1000px) rotateY(-6deg) rotateZ(-1.3deg); transition: transform .55s var(--ease); }
.project:hover .project-art { transform: perspective(1000px) rotateY(0) rotateZ(0); }
.project-art header { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.art-dots { width: 26px; height: 6px; background: radial-gradient(circle,#fff9 42%,transparent 53%) left center / 9px 6px repeat-x; }
.project-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(0deg,transparent 0 4px,#ffffff0c 5px 6px); }
.project-art.navy { background: radial-gradient(ellipse at 88% 85%,#4e6a93,#19273d 71%); }
.project-art.umber { background: radial-gradient(ellipse at 85% 85%,#a26643,#4c2e22 74%); }
.project-art.green { background: radial-gradient(ellipse at 90% 87%,#65836e,#293f35 70%); }
.project-art.plum { background: radial-gradient(ellipse at 90% 87%,#78596f,#352b3d 70%); }
.project-art .micro { opacity: .79; }
.project-art .art-word { align-self: center; font-size: clamp(21px,5vw,62px); line-height: .88; letter-spacing: -.06em; font-weight: 720; text-align: center; text-wrap: balance; }
.project-art .art-rule { display: block; height: 7px; border-top: 1px solid #fff6; border-bottom: 1px solid #fff4; background: repeating-linear-gradient(90deg,#fff6 0 1px,transparent 2px 16px); }
.project-art.has-media { aspect-ratio: var(--project-aspect, 16 / 9); min-height: 0; }
.project-art img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); visibility: hidden; }
.project-art.has-screenshot img { visibility: visible; }
.project-art.has-screenshot > :not(img) { visibility: hidden; }
.project-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.project-art.has-video > :not(video) { visibility: hidden; }
.project-copy h3 { font-size: clamp(25px,3.5vw,50px); line-height: 1.02; letter-spacing: -.055em; margin: 10px 0; }
.project-copy p { color: var(--muted); line-height: 1.55; font-size: clamp(14px,1.3vw,17px); }
.project-copy .micro { display: block; color: var(--muted); }
.project-link { margin-top: 16px; }
.ability-dialog, .contact-dialog { width: min(550px,calc(100% - 24px)); padding: clamp(18px,4vw,34px); }
.skill-card { display: block; width: min(300px,100%); aspect-ratio: .76; margin: 18px auto; padding: 0; border: 0; background: transparent; perspective: 1100px; }
.skill-inner { display: block; position: relative; width: 100%; height: 100%; transform: rotateX(var(--rx,0deg)) rotateY(calc(var(--ry,0deg) + var(--flip,0deg))); transform-style: preserve-3d; transition: transform .45s var(--ease); }
.skill-card[aria-pressed="true"] { --flip: 180deg; }
.skill-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 10px; padding: 18px; border: 1px solid #c2a879; border-radius: 21px; overflow: hidden; backface-visibility: hidden; text-align: left; background: linear-gradient(132deg,#f9e4a1,#b299b5 31%,#f3e5bf 49%,#90a99f 70%,#dfbd86); color: #25201b; box-shadow: 0 14px 29px var(--shadow),inset 0 0 0 6px #ffffff4d; }
.skill-face::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--glint-x,50%) var(--glint-y,50%),#ffffff8c,transparent 49%); pointer-events: none; }
.skill-face > span { z-index: 1; }
.card-image { position: absolute; z-index: 0 !important; inset: 16% 5% 17%; background: url("ishan-cutout.webp") center bottom / contain no-repeat; border-radius: 13px; filter: grayscale(1); opacity: .8; }
.card-name { margin-top: auto; font-size: clamp(36px,8vw,59px); font-weight: 760; letter-spacing: -.09em; line-height: .83; color: #fffcf4; text-shadow: 0 3px 13px #1a1715bb; }
.card-back { transform: rotateY(180deg); }
.card-back b { display: block; font-size: 16px; }
.card-back > span:not(.micro) { font-size: 13px; }
.card-hint { text-align: center; color: var(--muted); }
.contact-dialog h2 { font-size: clamp(29px,6vw,51px); line-height: .96; letter-spacing: -.065em; margin: 14px 0 20px; }
.contact-dialog form { display: grid; gap: 11px; }
.contact-dialog label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; }
.contact-dialog :is(input,select,textarea) { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 14px; }
.contact-dialog textarea { resize: vertical; }
.contact-dialog form button { justify-self: start; margin-top: 4px; }
.email-note { margin-top: 13px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

@media (min-width: 950px) {
  .topbar { padding-inline: var(--pad); }
  .topbar > .menu-trigger { display: none; }
  .desktop-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(10px, 1.6vw, 24px); pointer-events: auto; }
  .desktop-nav a, .desktop-nav button { border: 0; padding: 3px 0; background: none; font-size: 14px; }
  .desktop-nav a:hover, .desktop-nav button:hover { text-decoration: underline; text-underline-offset: 5px; }
  .hall-head { display: grid; justify-content: center; gap: 12px; text-align: center; padding-block: clamp(38px,7vh,85px) 28px; }
  .hall-title { border: 0; padding: 0; }
  .hall-title h2 { font-size: clamp(53px, 6vw, 93px); }
  .hall-title br, .hall-guide .micro { display: none; }
  .hall-guide { width: auto; min-height: 1.45em; }
  .door { max-width: min(245px, 34svh); }
}

@media (600px <= width < 950px) {
  .hall-head { display: grid; justify-content: center; gap: 10px; text-align: center; padding-block: 34px 23px; }
  .hall-title { border: 0; padding: 0; }
  .hall-title h2 { font-size: clamp(39px, 6.8vw, 66px); }
  .hall-title br, .hall-guide .micro { display: none; }
  .hall-guide { width: auto; }
}

@media (max-width: 740px) {
  .hero-stage { grid-template-columns: 1fr; justify-items: start; padding-top: 77px; }
  .hero-content { align-self: start; padding-block: 6px 4px; width: min(100%,470px); }
  .hero h1 { font-size: clamp(39px,7.4vw,60px); }
  .hero-lead { font-size: clamp(36px,6.5vw,55px); }
  .book { width: min(100%,365px); height: clamp(77px,13.8vw,105px); }
  .book-role { font-size: clamp(25px,5.9vw,45px); }
  .eyebrow { margin-bottom: 18px; }
  .portrait { align-self: end; width: min(100%,350px,49svh); }
  .pull { height: 205px; }
  .pull svg { transform: scale(.8); transform-origin: top center; }
  .story { display: block; padding: 0 var(--pad) 60px; }
  .story-header { position: sticky; top: 61px; z-index: 2; padding: 16px var(--pad) 13px; margin-inline: calc(-1 * var(--pad)); background: var(--surface); box-shadow: 0 5px 15px var(--shadow); }
  .story-counter { position: static; }
  .story-year { font-size: clamp(55px,13vw,94px); }
  .story-counter > .micro:first-child, .story-date { margin: 4px 0; }
  .timeline { margin-top: 29px; }
  .work-inner { padding-inline: 18px; }
  .project { grid-template-columns: 1fr; }
  .project-monitor { order: -1; width: min(92%, 550px); margin-inline: auto; }
  .project-art { transform: none; }
}
@media (max-width: 480px) {
  .topbar { padding-block: 12px; }
  .clock { margin-right: 23px; }
  .pull { right: 1px; }
  .hero-strip { font-size: 9px; letter-spacing: .01em; }
  .hero-strip > span:nth-child(2) { display: none; }
  .hall-head { display: grid; gap: 15px; }
  .hall-guide { width: 100%; }
  .hall-guide .micro { margin-top: 6px; }
  .doors { justify-content: start; gap: 15px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 10px 16px 0; margin-inline: -16px; }
  .door { flex: 0 0 128px; scroll-snap-align: center; }
  .plaque { font-size: 9px; }
  .work-dialog .pill { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
