:root { --name-opacity:0; --name-y:100px; --name-scale:1.12; --zoom:1; --spread:0px; --video-reveal:100%; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#000; color:#fff; font-family:Arial,Helvetica,sans-serif; }
button { font:inherit; color:inherit; cursor:pointer; }
button:focus-visible,a:focus-visible { outline:2px solid currentColor; outline-offset:6px; }
.skip-link { position:fixed; top:-70px; left:16px; z-index:10; background:white; color:black; padding:12px; }
.skip-link:focus { top:16px; }
.red { background:#ed1010; }
.blue { background:#1038f3; }
.black { background:#000; }
.yellow { background:#ffe000; }
.white { background:#eee; }
.intro { position:relative; height:340vh; height:340svh; }
.video-anchor { position:absolute; top:calc(100% - 100svh); left:0; width:1px; height:1px; pointer-events:none; }
.intro-stage { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; isolation:isolate; }
.reel { position:absolute; inset:-12% 0; display:flex; transform:scaleY(var(--zoom)); will-change:transform; }
.lane { width:25%; height:100%; flex-shrink:0; overflow:hidden; }
.lane-track { height:360%; animation:tumble 10s linear infinite; will-change:transform; }
.lane-track i { display:block; height:calc(100% / 6); }
.lane-one { transform:translateY(var(--spread)); }
.lane-three { transform:translateY(calc(var(--spread) * -1)); }
.lane-one .lane-track { animation-duration:32s; animation-delay:-7.2s; }
.lane-two .lane-track { animation-duration:23.2s; animation-direction:reverse; animation-delay:-14.2s; }
.lane-three .lane-track { animation-duration:42.6s; animation-delay:-24.8s; }
.lane-four .lane-track { animation-duration:27.8s; animation-direction:reverse; animation-delay:-3.4s; }
@keyframes tumble { from { transform:translateY(0); } to { transform:translateY(-50%); } }
.identity {
 position:absolute; z-index:2; inset:0; margin:0; padding:0 3vw;
 display:flex; align-items:center; justify-content:center;
 font-size:9.2vw; font-weight:500; line-height:.94; letter-spacing:-.065em;
 color:white; text-align:center; pointer-events:none;
 opacity:var(--name-opacity); transform:translateY(var(--name-y)) scale(var(--name-scale));
 will-change:transform,opacity;
}
.video-area { position:absolute; z-index:3; inset:0; background:#ff5800; clip-path:inset(var(--video-reveal) 0 0 0); will-change:clip-path; }
.quick-nav { position:fixed; top:20px; right:22px; z-index:20; }
.quick-nav .nav-toggle {
 display:flex; align-items:center; justify-content:center; width:46px; height:38px;
 margin-left:auto; list-style:none; cursor:pointer; border-radius:24px;
 color:#fff; background:#ffffff0d; border:1px solid #ffffff30;
 box-shadow:inset 0 1px 1px #ffffff28, 0 2px 12px #0000000a;
 backdrop-filter:blur(16px) saturate(1.3); -webkit-backdrop-filter:blur(16px) saturate(1.3);
 text-shadow:0 1px 4px #0008; transition:background .2s;
}
.quick-nav .nav-toggle::-webkit-details-marker { display:none; }
.quick-nav .nav-toggle span { font-size:24px; line-height:1; letter-spacing:1px; transform:translateY(-3px); }
.quick-nav .nav-toggle:hover,.quick-nav.is-open summary { background:#ffffff25; }
.quick-nav .nav-toggle:focus-visible { outline:2px solid #888; outline-offset:4px; }
.quick-nav nav {
 position:absolute; right:0; top:48px; width:195px; padding:8px; border-radius:18px;
 background:#24242488; border:1px solid #ffffff30; color:#fff;
 backdrop-filter:blur(24px) saturate(1.4); -webkit-backdrop-filter:blur(24px) saturate(1.4);
 box-shadow:inset 0 1px 1px #ffffff24,0 12px 35px #0002;
}
.quick-nav a { display:flex; align-items:center; justify-content:space-between; min-height:43px; padding:0 12px; color:inherit; text-decoration:none; font-size:12px; border-radius:11px; }
.quick-nav a span { font-size:9px; opacity:.55; }
.quick-nav a:hover,.quick-nav a:focus-visible { background:#ffffff18; }
.about { background:#ffffff; color:#171717; padding:110px 7vw 100px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:9vw; align-items:start; }
.portrait { aspect-ratio:4 / 5; background:#c4c4be; display:flex; align-items:center; justify-content:center; }
.portrait span { font-size:11px; color:#66665e; }
.section-label { font-size:11px; margin:0 0 24px; }
.about h2 { margin:0 0 38px; font-size:clamp(46px,5.5vw,88px); line-height:.98; letter-spacing:-.065em; font-weight:400; }
.about h3 { margin:0; font-size:13px; line-height:1.5; font-weight:400; }
.education { display:grid; grid-template-columns:1fr 1.6fr; gap:20px; border-top:1px solid #0002; padding-top:20px; margin-bottom:32px; }
.education p { margin:0; color:#82827a; font-size:12px; line-height:1.8; }
.interview > div { padding:19px 0; border-top:1px solid #0002; }
.interview p { color:#82827a; font-size:12px; line-height:1.8; margin:9px 0 0; }
.work { background:#ffffff; color:#000; padding:80px 4vw; }
.work h2 { font-size:clamp(36px,6vw,90px); font-weight:400; letter-spacing:-.06em; margin:0 0 40px; }
.projects { display:grid; grid-template-columns:1fr 1fr; gap:45px 25px; }
.project { display:block; min-width:0; padding:0; border:0; background:none; text-align:left; }
.project-large { grid-column:1 / -1; }
.project-image { aspect-ratio:1.2; }
.project-large .project-image { aspect-ratio:2; }
.project span { display:block; margin-top:12px; font-size:13px; }
 dialog { width:min(1000px,92vw); padding:0; border:0; background:#ffffff; color:black; max-height:90svh; }
dialog::backdrop { background:#000b; }
#dialog-image { height:65svh; }
dialog h2 { padding:20px; margin:0; font-size:20px; font-weight:400; }
.close-dialog { position:absolute; right:15px; top:15px; border:0; background:white; color:black; font-size:26px; width:44px; height:44px; }
@media(max-width:700px) {
 .identity { font-size:18vw; max-width:100%; padding:0 6vw; }
 .quick-nav { top:14px; right:14px; }
 .about { grid-template-columns:1fr; padding:65px 6vw 20px; gap:38px; }
 .portrait { max-width:440px; width:100%; }
 .about h2 { font-size:64px; }
 .work { padding:50px 6vw; }
 .projects { grid-template-columns:1fr; gap:32px; }
 .project-large { grid-column:auto; }
 .project-large .project-image { aspect-ratio:1.2; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 .intro { height:auto; }
 .intro-stage { position:relative; height:200svh; }
 .reel { inset:0 0 auto; height:100svh; transform:none; }
 .lane { transform:none; }
 .lane-track { animation:none; }
 .identity { height:100svh; opacity:1; transform:none; }
 .video-area { top:100svh; clip-path:none; }
 .video-anchor { top:100svh; }
 .quick-nav .nav-toggle { transition:none; }
}

/* Name travels above the film and docks beneath the portrait. */
.identity { position:fixed; z-index:8; inset:auto; left:50%; top:50%; display:block; width:max-content; max-width:none; height:auto; padding:0; font-size:9.2vw; line-height:1.1; white-space:nowrap; transform:translate(-50%,-50%); opacity:0; }
.lane-track img { display:block; width:100%; height:calc(100% / 6); object-fit:cover; }
.video-area img,.portrait img { display:block; width:100%; height:100%; object-fit:cover; }
.portrait { overflow:hidden; }
.portrait-group { min-width:0; }
.about .name-destination { margin:18px 0 0; font-size:clamp(18px,2.35vw,36px); line-height:1.1; letter-spacing:-.065em; font-weight:500; text-align:center; white-space:nowrap; }
.about-copy { padding-top:5px; }
.about-copy .section-label { font-size:clamp(30px,4vw,55px); letter-spacing:-.05em; margin-bottom:40px; }
.quick-nav .nav-toggle .menu-lines { display:flex; flex-direction:column; gap:4px; transform:none; width:16px; }
.menu-lines i { display:block; width:16px; height:1px; background:currentColor; box-shadow:0 1px 3px #0003; }
.project-desktop { position:relative; height:650px; overflow:hidden; }
.desktop-backdrop { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(18px); opacity:.24; transform:scale(1.08); pointer-events:none; }
.projects { position:relative; display:block; width:100%; height:100%; }
.project { position:absolute; left:var(--x); top:var(--y); width:90px; transform:translate(-50%,-50%); text-align:center; transition:transform .25s; }
.project img { display:block; width:90px; height:105px; object-fit:cover; box-shadow:0 3px 12px #0002; }
.project span { font-size:10px; margin-top:9px; }
.project:hover,.project:focus-visible { transform:translate(-50%,-50%) scale(1.12) rotate(-3deg); z-index:2; }
.lucky-button { display:block; margin:30px auto 0; background:#ffffff55; border:1px solid #0002; border-radius:30px; padding:14px 22px; font-size:12px; }
.lucky-button:hover { background:white; }
#dialog-image { display:block; width:100%; object-fit:contain; }
@media(max-width:700px) {
 .about .name-destination { font-size:clamp(18px,5.5vw,32px); }
 .portrait { max-width:none; }
 .project-desktop { height:600px; }
 .project { width:62px; }
 .project img { width:62px; height:76px; }
}
@media(prefers-reduced-motion:reduce) {
 .identity { position:absolute; top:150svh !important; left:50% !important; font-size:9.2vw !important; color:white !important; opacity:1 !important; height:auto; transform:translate(-50%,-50%); }
 .project { transition:none; }
 .name-destination { opacity:1 !important; }
}


/* Theme: Helvetica Bold headings, Cascadia Code supporting text. */
@font-face {
 font-family:'Cascadia Code';
 src:local('Cascadia Code'),local('CascadiaCode'),url('fonts/CascadiaCode.woff2') format('woff2');
 font-weight:200 700; font-style:normal; font-display:swap;
}
:root { --font-title:Helvetica,Arial,sans-serif; --font-text:'Cascadia Code','Cascadia Mono',Consolas,monospace; --sidebar-width:min(320px,78vw); }
body { font-family:var(--font-text); }
.identity,.work h2,.about h2,.about-copy .section-label { font-family:var(--font-title); font-weight:700; font-style:normal; }
.identity { position:absolute; z-index:4; left:50%; top:50%; inset:auto; left:50%; top:50%; width:max-content; max-width:96%; font-size:4.5vw; line-height:1.05; letter-spacing:-.055em; color:white; transform:translate(-50%,-50%); opacity:0; }
.about .name-destination { font-weight:700; opacity:1; }
.about h3,.education p,.interview p,.project span,.quick-nav a,.lucky-button { font-family:var(--font-text); }
.quick-nav .nav-toggle { position:relative; z-index:2; padding:0; transition:transform .45s cubic-bezier(.22,1,.36,1),background .2s; }
.quick-nav nav {
 position:fixed; top:0; right:0; width:var(--sidebar-width); height:100vh; height:100dvh;
 display:flex; flex-direction:column; justify-content:center; gap:0; padding:65px 28px;
 background:#000; color:#fff; border:0; border-radius:0; box-shadow:none;
 backdrop-filter:none; -webkit-backdrop-filter:none;
 transform:translateX(100%); visibility:hidden;
 transition:transform .45s cubic-bezier(.22,1,.36,1),visibility .45s;
}
.quick-nav.is-open nav { transform:translateX(0); visibility:visible; }
.quick-nav.is-open .nav-toggle { transform:translateX(calc(0px - var(--sidebar-width))); background:#0009; }
.quick-nav a { border-radius:0; border-bottom:1px solid #ffffff30; padding:25px 0; font-size:16px; min-height:72px; }
.quick-nav a:hover,.quick-nav a:focus-visible { background:transparent; color:#bdbdbd; }
.quick-nav a span { opacity:.45; font-size:10px; }
.menu-lines i { transition:transform .3s,opacity .3s; }
.quick-nav.is-open .menu-lines i:first-child { transform:translateY(5px) rotate(45deg); }
.quick-nav.is-open .menu-lines i:nth-child(2) { opacity:0; }
.quick-nav.is-open .menu-lines i:last-child { transform:translateY(-5px) rotate(-45deg); }
@media(max-width:700px) { .identity { font-size:4.5vw; } .quick-nav nav { padding-inline:22px; } }
@media(prefers-reduced-motion:reduce) {
 .identity { position:absolute; top:150svh !important; left:50% !important; font-size:4.5vw !important; opacity:1 !important; color:white !important; }
 .quick-nav nav,.quick-nav .nav-toggle,.menu-lines i { transition:none; }
}

/* One-screen film, with a longer pinned scroll interval. */
.intro { height:480vh; height:480svh; }
.video-anchor { top:230vh; top:230svh; }
.about { padding:90px 7vw; gap:9vw; align-items:center; }
.about .portrait { max-width:480px; }
.about-copy .section-label { margin:0 0 28px; }
.about-introduction { font-size:14px; line-height:1.9; max-width:440px; color:#76766f; margin:0 0 35px; }
.education { display:block; border:0; padding:0; margin:0; }
.education h3 { margin-bottom:10px; }
@media(max-width:700px) {
 .about { padding:60px 6vw; gap:35px; }
 .about .portrait { max-width:none; }
}
@media(prefers-reduced-motion:reduce) {
 .intro { height:auto; }
 .video-anchor { top:100svh; }
 .identity { top:auto !important; bottom:32px; transform:translateX(-50%); }
}






/* About: a centered, single-viewport portrait composition. */
.about {
 min-height:100vh; min-height:100svh;
 display:flex; flex-direction:column; justify-content:center; align-items:center;
 gap:22px; padding:38px 6vw; text-align:center;
}
.portrait-group { position:relative; flex:none; }
.about .portrait {
 height:clamp(140px,38svh,350px); width:auto; max-width:70vw;
 aspect-ratio:4 / 5; background:transparent; overflow:visible;
 transform:rotate(-2deg); transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
.about .portrait img { object-fit:contain; }
.portrait-group::after {
 content:'✳'; position:absolute; top:8%; right:-24px; color:#b6161d;
 font-family:Arial,sans-serif; font-size:44px; line-height:1; pointer-events:none;
 transform:rotate(12deg); transition:transform .5s;
}
@media(hover:hover) {
 .portrait-group:hover .portrait { transform:rotate(2deg) translateY(-4px); }
 .portrait-group:hover::after { transform:rotate(100deg); }
}
.about-copy { width:min(100%,580px); padding:0; text-align:center; }
.about-copy .section-label { font-size:clamp(36px,4vw,56px); margin:0 0 16px; line-height:1; }
.about-introduction { max-width:520px; margin:0 auto 22px; font-size:13px; line-height:1.7; }
.education h3 { font-size:11px; margin:0 0 8px; }
.education p { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px; font-size:11px; line-height:1.6; }
@media(max-height:650px) {
 .about { padding:24px 6vw; gap:14px; }
 .about .portrait { height:28svh; }
 .about-copy .section-label { font-size:34px; margin-bottom:12px; }
 .about-introduction { margin-bottom:14px; }
}
@media(prefers-reduced-motion:reduce) {
 .about .portrait,.portrait-group::after { transition:none; transform:none; }
 .portrait-group:hover .portrait,.portrait-group:hover::after { transform:none; }
}



/* Blur the entire composition so white separators soften with the artwork. */
:root { --strip-blur:14px; }
.lane-track { filter:none; width:100%; margin-left:0; }

/* Structured motion: equal rails, consistent pace, clean image boundaries. */
.reel {
 gap:4px; background:#fff; transform:none; filter:blur(var(--strip-blur));
 left:calc(var(--strip-blur) * -2); right:calc(var(--strip-blur) * -2);
}
.lane { flex:1 1 0; width:0; min-width:0; transform:none; }
.lane-track img { border-bottom:4px solid #fff; }
.lane-one .lane-track { animation-duration:36s; animation-delay:0s; }
.lane-two .lane-track { animation-duration:36s; animation-delay:-9s; }
.lane-three .lane-track { animation-duration:36s; animation-delay:-18s; }
.lane-four .lane-track { animation-duration:36s; animation-delay:-27s; }
.identity { transition:opacity 1.4s ease; text-shadow:0 1px 3px #0009,0 3px 18px #0005; }

/* Technical navigation: solid surface, hairline border, square geometry. */
.quick-nav .nav-toggle {
 width:44px; height:44px; border-radius:0; border:1px solid #171717;
 background:#000; color:#fff; box-shadow:none; text-shadow:none;
 backdrop-filter:none; -webkit-backdrop-filter:none;
}
.quick-nav .nav-toggle:hover,.quick-nav.is-open .nav-toggle { background:#000; color:#fff; }
.quick-nav .nav-toggle:focus-visible { outline:2px solid #171717; outline-offset:4px; }
.quick-nav .nav-toggle .menu-lines { width:18px; gap:5px; }
.menu-lines i { width:18px; height:1px; box-shadow:none; }
.quick-nav.is-open .menu-lines i:first-child { transform:translateY(6px) rotate(45deg); }
.quick-nav.is-open .menu-lines i:last-child { transform:translateY(-6px) rotate(-45deg); }
.about-introduction,.education p { color:#555; }
@media(max-width:700px) {
 .reel { gap:3px; }
 .lane-track img { border-bottom-width:3px; }
}
@media(prefers-reduced-motion:reduce) {
 .identity { transition:none; }
 .lane-track { animation:none; }
 .reel { filter:none; left:0; right:0; }
}

/* Work leads: four large, numbered previews and a continuous project reader. */
.work { padding:90px 5vw 55px; min-height:100svh; }
.work-heading { display:flex; align-items:baseline; justify-content:space-between; gap:20px; border-top:1px solid #171717; padding-top:20px; margin-bottom:38px; }
.work-heading h2 { margin:0; font-size:clamp(40px,5.2vw,80px); letter-spacing:-.06em; }
.work-heading > span { font-size:10px; white-space:nowrap; }
.project-index { display:grid; grid-template-columns:1fr 1fr; gap:35px 24px; }
.project-card { display:block; color:#171717; text-decoration:none; min-width:0; }
.project-card-image { aspect-ratio:1.85; overflow:hidden; background:#f3f3f1; }
.project-card-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.project-card-caption { display:flex; gap:18px; align-items:baseline; padding:15px 0 0; }
.card-number { font-size:10px; color:#686868; }
.project-card h3 { margin:0; font-family:var(--font-title); font-size:clamp(18px,1.7vw,28px); letter-spacing:-.04em; font-weight:700; }
.card-arrow { margin-left:auto; font-size:22px; line-height:1; transition:transform .25s; }
@media(hover:hover) { .project-card:hover img { transform:scale(1.025); } .project-card:hover .card-arrow { transform:translate(3px,3px); } }
.index-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:35px; }
.index-footer > span { color:#555; font-size:9px; letter-spacing:.05em; }
.index-footer .lucky-button { display:inline-block; margin:0; border:1px solid #aaa; border-radius:0; background:white; padding:11px 15px; font-size:10px; }
.index-footer .lucky-button:hover { background:#171717; color:white; }
.project-reader { background:#fff; color:#171717; }
.project-rail { position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; height:60px; padding:0 5vw; padding-right:90px; border:0; background:#fff; }
.project-rail a { color:inherit; text-decoration:none; }
.rail-index { font-size:11px; }
.rail-links { display:flex; height:100%; align-items:center; gap:4px; }
.project-tab { display:flex; width:40px; height:32px; justify-content:center; align-items:center; font-size:11px; border:1px solid transparent; }
.project-tab:hover { border-color:#999; }
.project-tab[aria-current] { background:#171717; color:white; }
.project-chapter { padding:65px 5vw 0; scroll-margin-top:60px; }
.chapter-heading { display:flex; align-items:baseline; gap:30px; margin-bottom:30px; }
.chapter-number { font-size:10px; color:#666; flex:none; }
.chapter-heading h2 { font-family:var(--font-title); font-size:clamp(38px,5vw,76px); letter-spacing:-.055em; font-weight:700; line-height:1.05; margin:0; }
.chapter-description { font-size:13px; line-height:1.9; max-width:650px; margin:0 0 35px; }
.project-chapter figure { margin:0; background:#f7f7f5; }
.chapter-lead { height:72svh; min-height:280px; }
.chapter-lead img { display:block; width:100%; height:100%; object-fit:contain; }
.chapter-gallery { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:24px; }
.chapter-gallery img { display:block; width:100%; height:auto; }
.chapter-next { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:30px 0; margin-top:35px; border-top:0; color:#171717; text-decoration:none; font-size:12px; }
.chapter-next:hover { color:#777; }
#about { scroll-margin-top:0; border-top:0; }
.quick-nav nav { overflow-y:auto; }
@media(max-width:700px) {
 .work { padding:65px 6vw 40px; min-height:auto; }
 .work-heading { display:block; margin-bottom:28px; }
 .work-heading > span { display:block; margin-top:16px; }
 .project-index { gap:30px 14px; }
 .project-card-image { aspect-ratio:.85; }
 .project-card-caption { gap:8px; flex-wrap:wrap; }
 .project-card h3 { font-size:19px; }
 .card-arrow { font-size:17px; }
 .index-footer { align-items:start; }
 .index-footer > span { max-width:130px; line-height:1.8; }
 .project-rail { height:68px; padding:0 6vw; padding-right:78px; }
 .rail-links { gap:0; }
 .project-tab { width:32px; }
 .project-chapter { padding:45px 6vw 0; scroll-margin-top:68px; }
 .chapter-heading { display:block; }
 .chapter-number { display:block; margin-bottom:14px; }
 .chapter-lead { height:65svh; }
 .chapter-gallery { grid-template-columns:1fr; gap:16px; margin-top:16px; }
 .chapter-next { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .project-card-image img,.card-arrow { transition:none; } }



/* A continuous abstract timeline, derived from the printed portfolio index. */
.work { --timeline-red:#982c31; padding:65px 5vw 40px; min-height:100svh; overflow:hidden; }
.work-heading { margin-bottom:0; border-top-color:var(--timeline-red); }
.work-heading h2 { font-size:clamp(38px,4.5vw,68px); }
.work-heading > span { color:var(--timeline-red); }
.timeline-window { margin-inline:-5vw; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#982c31 #f4eeee; }
.timeline-index {
 position:relative; display:block; width:100%; min-width:720px;
 height:clamp(360px,57svh,650px); margin:0; border:0; overflow:visible;
 background:#fff;
}
.timeline-baseline { position:absolute; z-index:1; left:0; right:0; bottom:calc(22% - 22px); height:22px; background:var(--timeline-red); }
.timeline-index .project-card {
 position:absolute; z-index:2; top:auto; bottom:22%; width:25%; padding:25px 10px 0;
 display:flex; justify-content:center; color:var(--timeline-red); transform:none;
}
.timeline-index .project-card:nth-of-type(1) { left:0; }
.timeline-index .project-card:nth-of-type(2) { left:25%; }
.timeline-index .project-card:nth-of-type(3) { left:50%; }
.timeline-index .project-card:nth-of-type(4) { left:75%; }
.timeline-index .project-card-caption { display:flex; align-items:flex-end; gap:7px; padding:0; flex-wrap:nowrap; }
.timeline-index .project-card h3 {
 margin:0 0 12px; padding:0; width:auto; max-width:145px;
 font-family:var(--font-text); font-weight:700; font-size:clamp(11px,1.25vw,21px);
 line-height:1.05; letter-spacing:-.04em; text-align:right; white-space:pre-line;
}
.timeline-index .project-card:nth-of-type(1) h3 { font-size:clamp(10px,.85vw,14px); letter-spacing:0; line-height:1.15; }
.timeline-index .project-card:nth-of-type(3) h3 { font-family:var(--font-title); font-size:clamp(18px,1.8vw,30px); font-weight:400; white-space:nowrap; letter-spacing:-.055em; margin-bottom:25px; }
.yaka-two { color:#171717; }
.yaka-word { color:#efc400; }
.timeline-index .project-card:nth-of-type(4) h3 { font-family:var(--font-title); font-size:clamp(15px,1.5vw,25px); font-weight:700; letter-spacing:-.05em; }
.timeline-number {
 --pixel:clamp(3px,.35vw,5px);
 display:flex; align-items:center; gap:var(--pixel); height:100px; padding:9px 5px;
 background-image:linear-gradient(#982c3144 1px,transparent 1px),linear-gradient(90deg,#982c3144 1px,transparent 1px);
 background-size:var(--pixel) var(--pixel);
}
.pixel-digit { display:grid; grid-template-columns:repeat(5,var(--pixel)); grid-template-rows:repeat(7,var(--pixel)); }
.pixel-digit i { display:block; }
.pixel-digit .filled { background:var(--timeline-red); }
.timeline-index .project-card-image {
 position:absolute; left:50%; bottom:125px; width:clamp(150px,16vw,240px); height:clamp(130px,18svh,220px);
 aspect-ratio:auto; overflow:hidden; background:#fff; border:1px solid var(--timeline-red);
 opacity:0; transform:translate(-50%,14px); pointer-events:none;
 transition:opacity .3s,transform .45s cubic-bezier(.2,.8,.2,1);
}
.timeline-index .project-card-image img { display:block; position:static; width:100%; height:100%; object-fit:contain; transform:none; transition:none; }
.timeline-index .project-card:hover,.timeline-index .project-card:focus-visible { z-index:3; transform:none; }
.timeline-index .project-card:hover .project-card-image,.timeline-index .project-card:focus-visible .project-card-image { opacity:1; transform:translate(-50%,0); }
.timeline-index .project-card:hover h3,.timeline-index .project-card:focus-visible h3 { color:#171717; }
.timeline-index .project-card:focus-visible { outline:1px dashed var(--timeline-red); outline-offset:8px; }
.index-footer { padding-top:25px; border-top:0; justify-content:flex-end; }
.index-footer > span { font-size:9px; color:var(--timeline-red); }
.index-footer .lucky-button { border-color:var(--timeline-red); color:var(--timeline-red); }
.index-footer .lucky-button:hover { background:var(--timeline-red); color:white; }
@media(max-width:700px) {
 .work { padding:55px 6vw 35px; min-height:auto; }
 .timeline-window { margin-inline:-6vw; }
 .timeline-index { height:420px; }
 .timeline-index .project-card h3 { max-width:100px; }
 .timeline-index .project-card:nth-of-type(1) h3 { font-size:10px; }
 .timeline-number { --pixel:3px; height:80px; padding-inline:4px; }
 .timeline-index .project-card-image { bottom:105px; }
 .index-footer > span { max-width:160px; }
}
@media(prefers-reduced-motion:reduce) { .timeline-index .project-card-image { transition:none; } }

/* The thin baseline draws only after the project index reaches the viewport. */
.work { --line-draw:0; --line-thickness:4px; --stations-opacity:0; padding:0; height:180svh; min-height:180svh; overflow:visible; }
.work-stage { position:sticky; top:0; height:100svh; padding:55px 5vw 30px; display:flex; flex-direction:column; overflow:hidden; }
.work-stage .timeline-window { flex:1; min-height:280px; overflow-x:auto; }
.work-stage .timeline-index { height:100%; min-height:280px; }
.timeline-baseline { height:var(--line-thickness); bottom:calc(22% - var(--line-thickness)); transform:scaleX(var(--line-draw)); transform-origin:left; }
.timeline-index .project-card { opacity:var(--stations-opacity); }
.work-stage .index-footer { flex:none; }

/* Project openings and maps share the same inset guide rails. */
.project-chapter { padding:0; width:80%; max-width:1320px; margin:0 auto; border:0; }
.chapter-intro { min-height:calc(100svh - 60px); display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:6vw; padding:55px 24px; }
.chapter-intro .chapter-lead { height:64svh; min-height:0; background:#fff; }
.chapter-intro-copy { min-width:0; }
.chapter-intro .chapter-heading { display:block; margin:0; }
.chapter-intro .chapter-number { display:block; margin-bottom:25px; }
.chapter-intro .chapter-heading h2 { font-size:clamp(32px,4.6vw,72px); }
.chapter-intro .chapter-description { margin:25px 0 0; }
.chapter-gallery { margin-top:24px; }
.map-scroll { --map-zoom:1; position:relative; height:240svh; }
.map-frame { position:sticky; top:60px; height:calc(100svh - 60px); overflow:hidden; background:#f6f6f3; }
.map-frame img { display:block; width:100%; height:100%; object-fit:contain; transform:scale(var(--map-zoom)); transform-origin:50% 50%; will-change:transform; }
.chapter-next { margin-top:50px; }
@media(max-width:700px) {
 .work-stage { padding:45px 6vw 22px; }
 .project-chapter { width:88%; }
 .chapter-intro { grid-template-columns:1fr; gap:28px; padding:35px 10px; min-height:auto; }
 .chapter-intro .chapter-lead { height:48svh; }
 .chapter-intro .chapter-number { margin-bottom:15px; }
 .chapter-intro .chapter-heading h2 { font-size:36px; }
 .chapter-intro-copy { padding-bottom:30px; }
 .map-frame { top:68px; height:calc(100svh - 68px); }
 .chapter-next { padding-inline:10px; }
}
@media(prefers-reduced-motion:reduce) {
 .work { height:auto; min-height:100svh; }
 .work-stage { position:relative; }
 .map-scroll { height:auto; }
 .map-frame { position:relative; top:0; height:75svh; }
 .map-frame img { transform:none; will-change:auto; }
}


/* Map expands edge to edge, becomes a black text interlude, then clears to white. */
.map-scroll {
 --map-inset:10%; --map-image-opacity:1; --map-black-opacity:0; --map-text-opacity:0;
 width:var(--viewport-width,100vw); margin-left:calc((100% - var(--viewport-width,100vw)) / 2);
 height:400svh;
}
.map-frame { top:0; height:100svh; background:#fff; isolation:isolate; }
.map-canvas { position:absolute; inset:0; overflow:hidden; clip-path:inset(0 var(--map-inset)); opacity:var(--map-image-opacity); }
.map-canvas img { width:100%; height:100%; object-fit:cover; }
.map-blackout { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:#000; color:#fff; opacity:var(--map-black-opacity); }
.map-statement { font-family:var(--font-text); font-size:clamp(10px,1vw,14px); line-height:1.6; font-weight:400; letter-spacing:0; margin:0; padding:0 5vw; text-align:center; opacity:var(--map-text-opacity); }
.project-rail { transition:opacity .2s; }
.map-immersive .project-rail { opacity:0; pointer-events:none; }
@media(prefers-reduced-motion:reduce) {
 .map-scroll { height:auto; }
 .map-frame { height:auto; }
 .map-canvas { position:relative; height:75svh; clip-path:none; opacity:1; }
 .map-blackout { position:relative; height:55svh; opacity:1; }
 .map-statement { opacity:1; }
 .project-rail { transition:none; }
}

/* First-project typography follows the portfolio's Consolas composition. */
.chapter-intro-copy.collapse-copy { width:min(100%,330px); margin-inline:auto; text-align:right; color:#861e23; font-family:Consolas,'Cascadia Code',monospace; }
.collapse-copy .chapter-number { display:none; }
.chapter-intro .chapter-heading .collapse-title { font-family:Consolas,'Cascadia Code',monospace; font-size:clamp(24px,2.2vw,35px); font-weight:700; line-height:1.05; letter-spacing:0; text-align:right; padding-bottom:3px; }
.collapse-line { display:block; transform-origin:right center; }
.collapse-title.is-collapsed .collapse-line-1 { animation:collapse-top .75s cubic-bezier(.2,.8,.3,1) both; }
.collapse-title.is-collapsed .collapse-line-2 { animation:collapse-has .85s cubic-bezier(.2,.8,.3,1) both; }
.collapse-title.is-collapsed .collapse-line-3 { animation:collapse-word 1s cubic-bezier(.2,.8,.3,1) both; }
.collapse-title.is-collapsed .collapse-line-4 { animation:collapse-bottom .85s cubic-bezier(.2,.8,.3,1) both; }
@keyframes collapse-top { to { transform:translate(-4px,3px) rotate(-1deg); } }
@keyframes collapse-has { to { transform:translate(0,4px) rotate(1deg); } }
@keyframes collapse-word { 65% { transform:translate(2px,9px) rotate(6deg); } to { transform:translate(0,5px) rotate(4deg); } }
@keyframes collapse-bottom { to { transform:translate(-5px,8px) rotate(-1deg); } }
.project-course { font-size:11px; margin:12px 0 25px; }
.project-instructor { font-size:11px; margin:0 0 30px; }
.collapse-copy .chapter-description { font-family:Consolas,'Cascadia Code',monospace; font-size:11px; line-height:1.12; max-width:255px; margin:0 0 0 auto; }
@media(max-width:700px) {
 .chapter-intro-copy.collapse-copy { width:min(100%,290px); }
 .chapter-intro .chapter-heading .collapse-title { font-size:30px; }
}
@media(prefers-reduced-motion:reduce) {
 .collapse-title.is-collapsed .collapse-line { animation:none; }
 .collapse-title.is-collapsed .collapse-line-3 { transform:translateY(5px) rotate(4deg); }
}

/* Light drawing sheets frame the openings without adding visual weight. */
.chapter-intro {
 background:#fdfdfb; border:1px dashed #b5b5ae;
 margin-block:32px; padding:clamp(24px,4vw,64px);
 min-height:calc(100svh - 124px);
}
.chapter-intro .chapter-lead { background:transparent; height:62svh; }
.chapter-description,.collapse-copy .chapter-description { color:#000; }

/* Scale the map sheet, including its dashed outline, as one object. */
.map-canvas { clip-path:none; overflow:visible; }
.map-sheet {
 position:absolute; inset:4svh 10%; padding:12px;
 background:#fdfdfb; border:1px dashed #b5b5ae;
 transform:scale(var(--map-zoom)); transform-origin:50% 50%; will-change:transform;
}
.map-sheet img { display:block; width:100%; height:100%; object-fit:cover; transform:none; will-change:auto; }

/* A little breathing room keeps every hover image inside its frame. */
.timeline-index .project-card-image { width:clamp(140px,14vw,210px); height:clamp(125px,17svh,195px); padding:14px; background:#fdfdfb; border:1px dashed #b5b5ae; }
.timeline-index .project-card-image img { object-fit:contain; border:0; }
@media(max-width:700px) {
 .chapter-intro { margin-block:22px; padding:24px 18px; }
 .chapter-intro .chapter-lead { height:45svh; }
 .map-sheet { inset:4svh 6%; padding:8px; }
 .timeline-index .project-card-image { width:150px; height:155px; padding:14px; }
}
@media(prefers-reduced-motion:reduce) {
 .map-sheet { inset:0; height:75svh; transform:none; position:relative; will-change:auto; }
}

/* Opening and map use identical white drawing-sheet dimensions. */
:root { --drawing-width:min(80vw,1320px); --drawing-height:max(600px,calc(100svh - 124px)); }
.chapter-intro {
 position:relative; width:100%; height:var(--drawing-height); min-height:0;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px;
 padding:40px clamp(28px,5vw,78px); background:#fff; border:0;
}
.chapter-intro .chapter-lead { width:100%; max-width:420px; height:calc(var(--drawing-height) - 100px); justify-self:end; background:#fff; }
.chapter-intro-copy,.chapter-intro-copy.collapse-copy { width:min(100%,300px); justify-self:start; margin:0; }
.chapter-intro .chapter-lead img { object-fit:contain; }
.drawing-outline { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index:3; }
.drawing-outline rect { fill:none; stroke:#aaa9a2; stroke-width:1.5px; stroke-dasharray:12 7; vector-effect:non-scaling-stroke; }
.map-sheet {
 inset:auto; top:50%; left:50%; width:var(--drawing-width); height:var(--drawing-height);
 padding:12px; background:#fff; border:0;
 transform:translate(-50%,-50%) scale(var(--map-zoom));
}
.timeline-index .project-card-image { background:#fff; }

/* Two narrow ribbons roll through the center gutter. */
.chapter-intro.has-vertical-text { grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); gap:24px; }
.has-vertical-text .chapter-lead { grid-column:1; }
.has-vertical-text .chapter-intro-copy { grid-column:3; }
.vertical-marquee { position:absolute; left:calc(50% - 12px); top:12px; bottom:12px; width:24px; overflow:hidden; display:flex; color:#861e23; pointer-events:none; }
.vertical-text-lane { width:12px; flex:none; overflow:hidden; }
.vertical-text-track { display:flex; flex-direction:column; width:12px; animation:vertical-type var(--text-duration,28s) linear infinite; }
.vertical-text-group { display:block; flex:none; min-height:var(--drawing-height); writing-mode:vertical-rl; text-orientation:mixed; white-space:pre; font-family:Consolas,'Cascadia Code',monospace; font-size:10px; line-height:12px; font-weight:700; }
.vertical-text-lane:nth-child(2) { transform:rotate(180deg); }
.vertical-text-lane:nth-child(2) .vertical-text-track { animation-direction:reverse; }
@keyframes vertical-type { to { transform:translateY(-50%); } }
@media(max-width:700px) {
 :root { --drawing-width:88vw; --drawing-height:max(760px,calc(100svh - 112px)); }
 .chapter-intro,.chapter-intro.has-vertical-text { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px 28px 28px 20px; gap:24px; }
 .chapter-intro .chapter-lead { height:30svh; max-height:300px; flex:none; max-width:290px; }
 .chapter-intro-copy,.chapter-intro-copy.collapse-copy { width:min(100%,290px); padding:0; }
 .vertical-marquee { left:auto; right:4px; width:12px; }
 .vertical-text-lane:nth-child(2) { display:none; }
 .map-sheet { inset:auto; top:50%; left:50%; padding:8px; }
}
@media(prefers-reduced-motion:reduce) {
 .vertical-text-track { animation:none; }
 .map-canvas { height:var(--drawing-height); }
 .map-sheet { position:relative; top:auto; left:auto; margin-inline:auto; transform:none; height:var(--drawing-height); }
}

/* Balanced openings: two equal columns centered around the rolling text gutter. */
.project-chapter { padding-top:clamp(72px,10svh,120px); }
.chapter-intro { margin-top:0; margin-bottom:64px; place-items:center; gap:48px; padding:48px clamp(32px,4vw,64px); }
.chapter-intro.has-vertical-text { grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); gap:36px; }
.chapter-intro .chapter-lead { justify-self:center; align-self:center; width:100%; max-width:400px; height:calc(var(--drawing-height) - 160px); }
.chapter-intro-copy,.chapter-intro-copy.collapse-copy {
 display:flex; flex-direction:column; align-items:center; justify-content:center;
 justify-self:center; align-self:center; width:min(100%,300px); margin:0;
 gap:28px; text-align:center;
}
.chapter-intro .chapter-heading { width:100%; margin:0; text-align:center; }
.chapter-intro .chapter-heading .collapse-title { text-align:center; }
.chapter-metadata { display:flex; flex-direction:column; align-items:center; gap:8px; color:#000; }
.chapter-metadata .project-course,.chapter-metadata .project-instructor { margin:0; color:#000; }
.chapter-intro .chapter-description,.collapse-copy .chapter-description { margin:0; max-width:280px; text-align:center; color:#000; }
@media(max-width:700px) {
 .project-chapter { padding-top:64px; }
 .chapter-intro,.chapter-intro.has-vertical-text { gap:28px; padding:32px 26px; margin-bottom:48px; }
 .chapter-intro .chapter-lead { height:30svh; max-width:290px; }
 .chapter-intro-copy,.chapter-intro-copy.collapse-copy { gap:24px; }
}

/* Keep the random project shortcut beside its timeline rather than at screen bottom. */
.timeline-index .index-footer { position:absolute; z-index:4; top:calc(78% + 22px); right:5vw; left:5vw; margin:0; padding:0; border:0; justify-content:flex-end; }

/* Restore the right-aligned portfolio typography inside the centered text column. */
.chapter-intro-copy.collapse-copy { align-items:flex-end; text-align:right; }
.collapse-copy .chapter-heading,.chapter-intro .collapse-copy .chapter-heading .collapse-title { text-align:right; }
.collapse-copy .chapter-metadata { align-items:flex-end; text-align:right; }
.collapse-copy .chapter-description { text-align:right; }
.collapse-copy .chapter-heading .collapse-title { padding-bottom:3px; }

/* Opposite reading directions; rotation reverses the second lane's physical travel. */
.vertical-marquee { width:40px; left:calc(50% - 20px); gap:16px; }
.vertical-text-lane:nth-child(2) .vertical-text-track { animation-direction:normal; }

/* An editable, two-panel drawing sheet between the opening and the map. */
.chapter-insert {
 position:relative; height:var(--drawing-height); margin-bottom:64px;
 display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px;
 padding:48px; background:#fff;
}
.chapter-insert figure { height:100%; min-width:0; margin:0; background:#000; overflow:hidden; }
.chapter-insert img { display:block; width:100%; height:100%; object-fit:contain; }
@media(max-width:700px) {
 .timeline-index .index-footer { right:6vw; left:6vw; }
 .vertical-marquee { left:auto; right:4px; width:32px; gap:8px; }
 .vertical-text-lane:nth-child(2) { display:block; }
 .chapter-intro.has-vertical-text { padding-right:42px; }
 .chapter-insert { padding:24px; gap:16px; height:var(--drawing-height); margin-bottom:48px; }
}

/* Closer paired text, with speed set to half through the project config. */
.vertical-marquee { width:28px; left:calc(50% - 14px); gap:4px; }
.chapter-insert {
 height:clamp(340px,54svh,560px); padding:44px clamp(36px,4vw,64px);
 gap:clamp(28px,4vw,60px); align-items:stretch; grid-template-rows:minmax(0,1fr);
}
.chapter-insert figure { position:relative; background:#fff; height:auto; min-height:0; display:block; }
.chapter-insert img { position:absolute; inset:0; width:100%; height:100%; max-height:none; object-fit:contain; }

/* Interactive spatial strip: custom cutouts beneath small movable reveal masks. */
.interactive-diagram { margin:85px 0 45px; }
.diagram-hint { margin:0 0 15px; font-size:10px; line-height:1.6; color:#666; }
.diagram-scroll { overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#982c31 #f3f3f1; }
.diagram-stage { position:relative; width:100%; min-width:1000px; aspect-ratio:1700 / 360; isolation:isolate; }
.diagram-background { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:fill; }
.diagram-window {
 --reveal-x:50%; --reveal-y:50%; position:absolute; margin:0; padding:0;
 background:transparent; border:2px solid #171717; border-radius:0;
 cursor:crosshair; overflow:hidden; box-shadow:2px 0 0 #171717;
}
.diagram-window-cover { position:absolute; inset:0; display:block; background:#fffffff2; }
.diagram-window-cover::before { content:''; position:absolute; top:50%; left:20%; right:20%; border-top:1px solid #982c3144; }
.diagram-window-cover::after { content:''; position:absolute; left:50%; top:38%; bottom:38%; border-left:1px solid #982c3144; }
.diagram-window-cover > span { position:absolute; left:7px; top:7px; font:9px var(--font-text); color:#982c31; }
.diagram-window-image { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; background:#fff; clip-path:circle(0 at var(--reveal-x) var(--reveal-y)); transition:clip-path .25s ease; }
@media(hover:hover) { .diagram-window:hover .diagram-window-image { clip-path:circle(65px at var(--reveal-x) var(--reveal-y)); } }
.diagram-window.is-revealed .diagram-window-image,.diagram-window:focus-visible .diagram-window-image { clip-path:circle(160% at 50% 50%); }
.diagram-window:focus-visible { outline:2px solid #982c31; outline-offset:5px; }
.diagram-window:hover,.diagram-window.is-revealed { border-color:#982c31; box-shadow:2px 0 0 #982c31; }
@media(max-width:700px) {
 .vertical-marquee { left:auto; right:4px; width:28px; gap:4px; }
 .chapter-insert { height:clamp(320px,48svh,440px); padding:26px 20px; gap:20px; }
 .interactive-diagram { margin-top:55px; }
}
@media(prefers-reduced-motion:reduce) {
 .diagram-window-image { transition:none; }
 .diagram-window:hover .diagram-window-image { clip-path:circle(160% at 50% 50%); }
}

/* Full-size additional sheet: artwork, captions, then the spatial diagram. */
.chapter-insert {
 height:var(--drawing-height); padding:32px clamp(24px,3vw,48px) 24px;
 grid-template-rows:minmax(0,1fr) auto; gap:18px 40px;
}
.chapter-insert > figure { display:grid; grid-template-rows:minmax(0,1fr) 44px; gap:12px; overflow:hidden; }
.chapter-insert > figure > img { position:static; width:100%; height:100%; min-height:0; object-fit:contain; }
.insert-caption { margin:0 auto; width:min(100%,320px); font:11px/1.5 var(--font-text); color:#000; text-align:left; }
.chapter-insert .interactive-diagram { grid-column:1 / -1; min-width:0; margin:0; }
.chapter-insert .diagram-hint { margin:0 0 6px; }
.chapter-insert .diagram-stage { min-width:800px; }
.chapter-insert .diagram-background { object-fit:fill; }
.diagram-frame { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; }
.chapter-insert .diagram-frame { object-fit:fill; }
.diagram-window,.diagram-window:hover,.diagram-window.is-revealed { border:1.5px solid #171717; box-shadow:none; }
.diagram-window-cover::before,.diagram-window-cover::after { display:none; }
@media(max-width:700px) {
 .chapter-insert { height:var(--drawing-height); padding:24px 18px; gap:16px; }
 .insert-caption { font-size:10px; }
}

/* Fixed portrait proportions and a quiet lower-right interaction hint. */
.diagram-window { height:auto; aspect-ratio:1 / 2; }
.interactive-diagram { display:flex; flex-direction:column; }
.interactive-diagram .diagram-scroll { order:0; }
.interactive-diagram .diagram-hint { order:1; text-align:right; margin:8px 0 0; }
.chapter-insert .diagram-hint { margin:8px 0 0; }
.timeline-index .index-footer { right:0; left:auto; }
.mapping-strip { display:flex; width:var(--viewport-width,100vw); aspect-ratio:10527 / 1865; margin:64px 0; margin-left:calc((100% - var(--viewport-width,100vw)) / 2); overflow:hidden; background:#fff; }
.mapping-strip img { display:block; width:calc(100% / 3); height:100%; object-fit:contain; flex:0 0 calc(100% / 3); animation:none; transition:none; }
.mapping-strip img[hidden] { display:none; }
.mapping-scene { min-height:100svh; display:flex; align-items:center; padding-block:100px; box-sizing:border-box; }
.mapping-scene .mapping-strip { flex-shrink:0; margin-block:0; }
.mapping-scene + .chapter-gallery { margin-top:0; }
.mapping-reading { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(32px,6vw,100px); padding:80px 0 0; }
.matrix-scroll { overflow-x:auto; }
.reading-matrix { border-collapse:collapse; width:100%; min-width:440px; font:10px/1.4 Consolas,monospace; color:#861e23; }
.reading-matrix th { font-weight:400; padding:8px 2px; }
.reading-matrix tbody th { text-align:right; padding-right:10px; }
.reading-matrix td { height:52px; text-align:center; border:1px dotted #a95659; border-left:0; position:relative; }
.reading-matrix td:last-child { border-right:0; }
.reading-matrix tbody tr:last-child td { border-bottom:0; }
.matrix-mark { display:inline-block; width:34px; height:16px; background:#171717; vertical-align:middle; }
.mapping-reading-copy { text-align:right; font-family:Consolas,monospace; }
.mapping-reading-copy h3 { font-size:clamp(21px,2.2vw,32px); font-weight:400; color:#861e23; margin:0 0 22px; }
.mapping-reading-copy p { max-width:340px; margin:0 0 0 auto; font-size:13px; line-height:1.55; color:#171717; }
@media(max-width:700px) {
 .mapping-reading { grid-template-columns:1fr; gap:32px; padding-top:48px; }
 .mapping-reading-copy { grid-row:1; }
 .mapping-scene { padding-block:80px; }
}

/* Matrix lines cross at each marker, matching the printed analytical grid. */
.reading-matrix { table-layout:fixed; border-collapse:separate; border-spacing:0; min-width:540px; font-size:11px; }
.reading-matrix th:first-child { width:52px; }
.reading-matrix thead th { padding-bottom:8px; }
.reading-matrix tbody td,.reading-matrix tbody tr:last-child td { border:0; height:66px; padding:0; }
.reading-matrix td::before { content:''; position:absolute; left:50%; top:0; bottom:0; border-left:2px dotted #861e23; }
.reading-matrix td::after { content:''; position:absolute; top:50%; left:0; right:0; border-top:2px dotted #861e23; }
.matrix-mark { position:relative; z-index:1; width:66%; max-width:60px; height:27px; background-color:#8888; background-image:repeating-linear-gradient(0deg,transparent 0 2px,#fff9 2px 3px),repeating-linear-gradient(90deg,transparent 0 2px,#fff9 2px 3px); }
/* Each caption travels with its own image; all four share the same cut timer. */
.mapping-scene .mapping-strip { aspect-ratio:auto; align-items:stretch; }
.mapping-tile { margin:0; width:calc(100% / 3); flex:0 0 calc(100% / 3); min-width:0; }
.mapping-tile[hidden] { display:none; }
.mapping-strip .mapping-tile img { width:100%; height:auto; aspect-ratio:3509 / 1865; object-fit:contain; }
.mapping-caption { position:relative; height:52px; padding:5px 10px 19px; box-sizing:border-box; color:#fff; background:linear-gradient(#761d1c 0 34px,#fff 34px 46px,#761d1c 46px); font:clamp(8px,1vw,15px)/1.15 Consolas,monospace; display:flex; align-items:center; }
.mapping-caption::after { content:''; position:absolute; bottom:5px; left:22%; width:5px; height:14px; background:#761d1c; }
@media(max-width:700px) { .mapping-caption { height:65px; background:linear-gradient(#761d1c 0 47px,#fff 47px 59px,#761d1c 59px); padding-inline:5px; } }

.mapping-reading-copy h3 { font-weight:700; }
.mapping-caption { height:52px; padding:0 10px 18px; background:linear-gradient(#761d1c 0 34px,#fff 34px 46px,#761d1c 46px); overflow:hidden; }
.mapping-caption-text { display:block; flex:none; white-space:nowrap; font:28px/34px Consolas,monospace; transform-origin:left center; }
.mapping-scene + .chapter-gallery { margin-top:clamp(140px,20svh,260px); }
.mapping-strip[role="button"] { cursor:pointer; }
.mapping-strip[role="button"]:focus-visible { outline:2px dashed #861e23; outline-offset:6px; }

.mapping-group { position:relative; width:var(--viewport-width,100vw); flex:none; margin-left:calc((100% - var(--viewport-width,100vw)) / 2); }
.mapping-scene .mapping-group .mapping-strip { width:100%; margin:0; }
.mapping-playback { position:absolute; right:20px; bottom:-44px; width:30px; height:30px; padding:7px; border:1px solid #171717; background:#fff; color:#171717; cursor:pointer; display:grid; place-items:center; }
.playback-icon { width:10px; height:12px; border-left:3px solid currentColor; border-right:3px solid currentColor; box-sizing:border-box; }
.is-paused .playback-icon { width:0; height:0; border:0; border-left:10px solid currentColor; border-top:6px solid transparent; border-bottom:6px solid transparent; }
.mapping-playback:focus-visible { outline:2px solid #861e23; outline-offset:3px; }
.diagram-stage.is-hinting .diagram-window:not(:hover):not(.is-revealed) .diagram-window-image { animation:diagram-peek 1.6s ease-in-out both; }
@keyframes diagram-peek { 0%,100% { clip-path:circle(0 at 50% 50%); } 35%,65% { clip-path:circle(24px at 50% 50%); } }

/* Shared palette: paper, ink, studio red, construction blue, quiet guides. */
:root { --paper:#ffffff; --ink:#171717; --studio:#982c31; --construction:#426979; --guide:#aaa9a2; --highlight:#efc400; }
body { background:var(--paper); color:var(--ink); }
.work { --timeline-red:var(--studio); }
.timeline-baseline { background:linear-gradient(90deg,var(--studio) 0 50%,var(--construction) 50% 100%); }
.timeline-index .project-card[data-category="construction"] { --timeline-red:var(--construction); }
.timeline-number { background-image:linear-gradient(color-mix(in srgb,var(--timeline-red) 27%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--timeline-red) 27%,transparent) 1px,transparent 1px); }
.project-category { position:absolute; left:22px; bottom:-26px; font:9px/1 Consolas,monospace; letter-spacing:.08em; color:var(--timeline-red); }
.timeline-index .index-footer { right:22px; }
.chapter-insert > figure > img { width:88%; height:88%; align-self:center; justify-self:center; }
.diagram-stage.is-hinting .diagram-window:not(:hover):not(.is-revealed) .diagram-window-image { animation-duration:4.2s; }
@keyframes diagram-peek { 0%,100% { clip-path:circle(0 at 50% 50%); } 15%,85% { clip-path:circle(24px at 50% 50%); } }

:root { --studio:#982c31; --construction:#171717; }
.timeline-index .project-card[data-category="construction"] .project-category { left:auto; right:22px; bottom:12px; }
.index-footer .lucky-button { color:#171717; border-color:#171717; background:#fff; }
.index-footer .lucky-button:hover { background:#171717; color:#fff; }

/* A personal closing chapter: big greeting, small discoveries. */
.about { display:block; min-height:100svh; padding:100px max(6vw,24px) 64px; text-align:left; }
.designer-heading,.designer-body,.designer-downloads { max-width:1320px; margin-inline:auto; }
.designer-eyebrow { font:10px/1.5 var(--font-text); letter-spacing:.1em; margin:0 0 24px; }
.designer-heading h2 { font-family:var(--font-title); font-size:clamp(72px,12vw,176px); line-height:.87; letter-spacing:-.075em; margin:0 0 64px; font-weight:700; }
.designer-heading h2 span { color:var(--studio); }
.designer-body { display:grid; grid-template-columns:1fr 1.3fr; align-items:center; gap:clamp(40px,8vw,120px); }
.about .portrait-group { justify-self:center; }
.about .portrait { width:clamp(200px,24vw,330px); height:auto; max-width:100%; }
.portrait-note { font:10px/1.5 var(--font-text); margin:24px 0 0; }
.designer-intro { font:clamp(20px,2.2vw,30px)/1.35 var(--font-title); max-width:540px; margin:0 0 30px; }
.designer-prompt { font:10px/1.5 var(--font-text); margin:0 0 12px; }
.designer-topics { display:flex; flex-wrap:wrap; gap:10px; }
.designer-topic { border:1px solid var(--ink); padding:15px 18px; background:#fff; color:var(--ink); font:12px var(--font-text); cursor:pointer; }
.designer-topic:hover { transform:translateY(-3px); }
.designer-topic[aria-pressed="true"] { background:var(--ink); color:#fff; }
.designer-topic:focus-visible,.designer-download:focus-visible { outline:2px solid var(--studio); outline-offset:4px; }
.designer-reveal { min-height:190px; padding:28px 0; max-width:550px; }
.designer-reveal h3 { font:700 18px/1.3 var(--font-text); color:var(--studio); margin:0 0 16px; }
.designer-reveal p { font:13px/1.75 var(--font-text); margin:0; }
.about .education p { justify-content:flex-start; margin-bottom:0; }
.designer-downloads { margin-top:80px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.designer-downloads .designer-eyebrow { margin-bottom:8px; }
.designer-downloads p { font-family:var(--font-text); font-size:11px; }
.download-links { display:flex; flex-wrap:wrap; gap:12px; }
.designer-download { min-width:205px; padding:20px; display:flex; align-items:center; justify-content:space-between; gap:28px; border:1px solid var(--ink); background:white; color:var(--ink); text-decoration:none; font:12px var(--font-text); }
.designer-download:disabled { border-style:dashed; color:#666; cursor:default; }
.download-mark { font-size:10px; }
.designer-download[href]:hover { background:var(--studio); color:white; border-color:var(--studio); }
@media(max-width:700px) { .about { padding:72px 6vw 48px; } .designer-heading h2 { margin-bottom:44px; } .designer-body { grid-template-columns:1fr; gap:44px; } .designer-downloads { align-items:stretch; flex-direction:column; margin-top:48px; } .download-links { flex-direction:column; } .designer-reveal { min-height:210px; } }

/* PDF actions align with the practice column above. */
.designer-downloads { display:grid; grid-template-columns:1fr 1.3fr; column-gap:clamp(40px,8vw,120px); margin-top:48px; }
.download-links { grid-column:2; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.designer-download { min-width:0; padding:0; display:flex; flex-direction:column; align-items:stretch; gap:0; border:1px solid var(--ink); }
.pdf-view { padding:20px 16px 14px; font:700 clamp(18px,1.7vw,25px)/1.2 var(--font-title); color:var(--ink); text-decoration:none; }
.pdf-download { padding:0 16px 18px; font:11px/1.4 var(--font-text); color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.pdf-view:hover,.pdf-download:hover { color:var(--studio); }
.pdf-view:focus-visible,.pdf-download:focus-visible { outline:2px solid var(--studio); outline-offset:3px; }
@media(max-width:700px) { .designer-downloads { display:block; } .download-links { grid-template-columns:1fr 1fr; } }
