/* AI chapter: warm yellow, distant stars, and gently suspended film frames. */
html{scroll-behavior:smooth;scroll-padding-top:100px}
.web-page{background:#07090f;color:#edf3f7;overflow-x:hidden}
.web-page a{color:inherit;text-decoration:none}.web-page button{cursor:pointer}
.web-page :focus-visible{outline:2px solid #61aaff;outline-offset:6px}
.web-skip{position:fixed;left:20px;top:-100px;z-index:20;background:#302815;padding:15px}.web-skip:focus{top:12px}
 .web-hero{max-width:1500px;margin:auto;padding:20px 4vw 55px;position:relative;isolation:isolate;overflow:clip}
.web-composition{position:relative;width:min(100%,1200px);height:690px;max-height:80svh;min-height:540px;margin:auto;isolation:isolate}
.web-wordmark{position:absolute;z-index:0;top:0;left:50%;transform:translateX(-50%);margin:0;color:#edeee1;opacity:.46;font-size:clamp(90px,18vw,230px);line-height:1;font-weight:700;letter-spacing:-.075em}
.web-portrait{position:absolute;z-index:1;top:9%;left:50%;transform:translateX(-50%);width:580px;max-width:90%;height:79%;object-fit:contain;mask-image:linear-gradient(#000 38%,#000b 65%,transparent 95%)}
#web-title{position:absolute;z-index:2;top:49%;left:0;width:100%;margin:0;text-align:center;line-height:1;font-weight:700;letter-spacing:-.04em;text-shadow:0 4px 30px #07090f}
#web-title>span:first-child{display:block;font-size:clamp(100px,13vw,176px);color:#61aaff}
#web-title .web-subtitle{display:block;margin:15px auto 0;font-size:clamp(22px,3.1vw,46px);line-height:1.25;letter-spacing:-.02em;color:#f2f1e9;text-transform:none}
.web-stats{position:absolute;z-index:2;bottom:0;left:0;width:100%;display:flex;justify-content:center;gap:50px;margin:0}
.web-stats>span{display:flex;align-items:center;gap:12px}.web-stats strong{font-size:30px;font-weight:400;color:#61aaff}.web-stats span span{font-size:11px;letter-spacing:.1em;max-width:140px;line-height:1.7;color:#acb5bf}
.web-eyebrow{color:#9baebf;font-size:11px;letter-spacing:.22em;margin:0 0 28px}
.web-collection{max-width:1600px;margin:0 auto;padding:60px 5vw 100px}.web-section-heading{display:flex;align-items:end;justify-content:space-between;border-top:1px solid #35414c;padding-top:35px;margin-bottom:58px;gap:20px}.web-section-heading .web-eyebrow{margin-bottom:16px}h2{font-weight:400;font-size:clamp(24px,3vw,42px);letter-spacing:-.035em;margin:0}.web-total{font-size:12px;color:#869ba9;white-space:nowrap}
.web-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:58px 28px}.web-card{min-width:0;animation:levitate 7s ease-in-out infinite;animation-delay:var(--delay)}.web-card:nth-child(3n+2){margin-top:35px}.web-card:hover,.web-card:focus-within{animation-play-state:paused}
.web-thumbnail{display:block;width:100%;padding:0;border:1px solid #53687355;border-radius:8px;background:#101b27;aspect-ratio:16/9;position:relative;overflow:hidden;color:white;box-shadow:0 18px 40px #0005;text-align:left}.web-thumbnail img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .6s,filter .6s;filter:saturate(.85)}.web-thumbnail:hover img{transform:scale(1.035);filter:saturate(1.1)}
.web-play{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(transparent 50%,#0008)}.web-play span{display:grid;place-items:center;width:48px;height:48px;border:1px solid #ffffff80;border-radius:50%;background:#071722b3;backdrop-filter:blur(8px);font-size:16px;padding-left:3px}.web-duration{position:absolute;bottom:12px;right:12px;font-size:11px;background:#0009;padding:4px 7px;border-radius:3px}.web-card-meta{display:flex;gap:13px;margin-top:17px;align-items:baseline}.web-card-meta>span{color:#c3ac72;font-size:10px}.web-card h3{font-size:14px;line-height:1.6;font-weight:400;margin:0;overflow-wrap:anywhere}.web-card>a{display:inline-block;margin:7px 0 0 28px;font-size:10px;color:#869ca9}
.web-footer{border-top:1px solid #2b3842;margin:0 5vw;padding:28px 0 40px;display:flex;justify-content:space-between;gap:25px;font-size:12px;color:#a3b6c3}
.web-viewer{padding:24px;background:#0b111b;color:#edf3f7;border:1px solid #506878;border-radius:12px;width:min(1000px,94vw);max-height:92dvh;overflow:auto;box-shadow:0 30px 140px #000c}.web-viewer::backdrop{background:#02060de8;backdrop-filter:blur(12px)}.web-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.web-viewer h2{font-size:18px;line-height:1.5;letter-spacing:0}.web-viewer button{padding:10px 14px;color:#61aaff;background:#292313;border:1px solid #65532b;border-radius:5px;white-space:nowrap}.web-player-stage{aspect-ratio:16/9;min-height:200px;background:#000;border-radius:6px;overflow:hidden}.web-player-stage iframe{width:100%;height:100%;min-height:200px;border:0;display:block}.web-viewer button:disabled{opacity:.4}.web-viewer p{font-size:12px;color:#afbfcb;min-height:18px}body:has(.web-viewer[open]){overflow:hidden}body:has(.web-viewer[open]) .web-card,.web-page.is-hidden .web-card{animation-play-state:paused}
@keyframes levitate{0%,100%{transform:translateY(0) rotate(-.25deg)}50%{transform:translateY(-9px) rotate(.25deg)}}
@media(max-width:1000px){.web-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.web-card:nth-child(3n+2){margin-top:0}.web-card:nth-child(even){margin-top:28px}}
@media(max-width:600px){.web-hero{padding:25px 4vw 35px}.web-composition{height:590px;max-height:76svh;min-height:480px}.web-wordmark{font-size:23vw;top:5%}.web-portrait{top:13%;width:100%;max-width:110%;height:70%}#web-title{top:52%}#web-title>span:first-child{font-size:105px}#web-title .web-subtitle{font-size:clamp(19px,5.5vw,28px);max-width:95%;line-height:1.35;margin-top:12px}.web-stats{gap:26px;bottom:0}.web-stats strong{font-size:26px}.web-stats span span{font-size:9px;max-width:95px}.web-grid{grid-template-columns:1fr;gap:38px}.web-card:nth-child(even){margin-top:0}.web-collection{padding-top:10px}.web-section-heading{margin-bottom:36px}.web-viewer{padding:12px}.web-viewer h2{font-size:13px}.web-footer{font-size:10px}.web-section-heading h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.web-card{animation:none}.web-thumbnail img{transition:none}}
.web-player-stage{width:100%;max-width:100%}
.web-hero{overflow:clip}

/* The portfolio header is shared verbatim across chapters. */
.web-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.web-viewer{padding:44px 14px 14px}.web-viewer-top{position:absolute;top:4px;right:8px;margin:0}.web-viewer-top button{border:0;background:transparent;font-size:27px;line-height:1;padding:6px 12px}.web-viewer p[hidden]{display:none}.web-footer{justify-content:flex-end}

#youtube-fallback{display:inline-block;margin-top:12px;font-size:12px;color:#61aaff}#youtube-fallback[hidden]{display:none}


#web-title>span:first-child{font-size:clamp(65px,10vw,140px)}@media(max-width:600px){#web-title>span:first-child{font-size:clamp(48px,13vw,78px)}#web-title .web-subtitle{font-size:clamp(16px,4.5vw,24px)}}

.web-collection{max-width:1440px;margin:auto;padding:30px 5vw 100px}.web-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;padding-top:32px;margin:0 0 32px;border-top:1px solid #ffffff20}.web-section-heading>span{font-size:10px;letter-spacing:.16em;color:#91a6be}.web-featured,.web-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-bottom:75px}.web-project{min-width:0;display:block;border:1px solid #ffffff16;border-radius:20px;overflow:hidden;background:linear-gradient(145deg,#142235aa,#090e17);transition:transform .35s,border-color .35s}.web-project:hover{transform:translateY(-7px);border-color:#61aaff88}.browser-bar{height:36px;display:flex;align-items:center;gap:5px;padding:0 16px;background:#141d29;color:#8c9aab}.browser-bar i{width:5px;height:5px;border-radius:50%;background:#61748b}.browser-bar span{font-size:9px;letter-spacing:.1em;margin:auto}.project-image{aspect-ratio:16/10;overflow:hidden;background:#202832;padding:25px}.project-image img{width:100%;height:100%;object-fit:contain;transition:transform .7s}.web-project:hover img{transform:scale(1.045)}.project-info{padding:24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.project-info h3{font-size:27px;margin:0 0 8px;font-weight:500}.project-info p{margin:0;color:#a9b5c3;font-size:13px;line-height:1.6}.project-arrow{border:1px solid #ffffff30;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;color:#61aaff}.project-type{display:block;font-size:10px;color:#61aaff;margin-top:12px;letter-spacing:.05em}.web-featured .project-image{aspect-ratio:5/4;padding:35px;background:radial-gradient(ellipse at 50% 35%,#284264,#101925)}.web-featured .web-project:nth-child(2) .project-image{background:radial-gradient(ellipse at 50% 35%,#403a31,#141514)}.web-featured h3{font-size:38px}.web-group{border:1px solid #ffffff25;border-radius:20px;background:#0e1521}.web-group summary{display:flex;align-items:center;gap:24px;cursor:pointer;padding:32px;list-style:none}.web-group summary::-webkit-details-marker{display:none}.web-group small{display:block;color:#90a7c1;letter-spacing:.15em;font-size:10px;margin-bottom:12px}.web-group strong{font-size:48px;font-weight:500}.group-count{margin-left:auto;color:#a9b5c3;font-size:13px}.group-plus{font-size:40px;color:#61aaff;transition:transform .3s}.web-group[open] .group-plus{transform:rotate(45deg)}.web-group .web-grid{padding:0 28px 28px;margin:0}#web-title>span:first-child{font-size:clamp(65px,10vw,140px)}
@media(max-width:650px){.web-featured,.web-grid{grid-template-columns:1fr;gap:22px;margin-bottom:45px}.web-section-heading{align-items:start;flex-direction:column}.project-image,.web-featured .project-image{padding:18px;aspect-ratio:4/3}.web-group summary{padding:22px;gap:14px}.web-group .web-grid{padding:0 15px 15px}.project-info{padding:20px}.web-featured h3{font-size:32px}#web-title>span:first-child{font-size:clamp(48px,13vw,78px)}}
@media(prefers-reduced-motion:reduce){.web-project,.project-image img,.group-plus{transition:none}.web-project:hover,.web-project:hover img{transform:none}}


.site-preview{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:calc(100vw - 40px);height:calc(100dvh - 40px);max-width:none;max-height:none;padding:20px;border:1px solid #ffffff30;border-radius:14px;background:#111720;color:#edf3f7;box-shadow:0 24px 100px #000b;overflow:hidden}
.site-preview::backdrop{background:rgba(0,0,0,.85)}
.site-preview[open]{display:flex;flex-direction:column;gap:12px}
.site-preview-toolbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;font-size:13px;color:#b5c1d0}
.site-preview-close{font:28px/1 sans-serif;border:0;background:transparent;color:white;width:36px;height:32px;cursor:pointer}
.site-preview-content{flex:1;min-height:0;background:white;border-radius:6px;overflow:hidden}
.site-preview-content iframe{display:block;width:100%;height:100%;border:0;background:white}
@media(max-width:650px){.site-preview{width:calc(100vw - 20px);height:calc(100dvh - 20px);padding:10px;border-radius:10px;gap:8px}}

/* Unified portfolio covers — actual 1600 × 1000 compositions. */
.web-project .browser-bar{display:none}
.web-project .project-image{aspect-ratio:16/10;padding:0;background:#e7eaeb}
.web-project .project-image img{display:block;width:100%;height:100%;object-fit:contain}
.web-project:hover .project-image img{transform:none}
