/* Isolated opening: the rest of the portfolio keeps its existing styles. */
.scg-hero{--scg-bg:#b0b0b0;--scg-ink:#111;--scg-ease:cubic-bezier(.22,1,.36,1);--scg-header:88px;--story-one:0;--story-two:0;--story-one-y:40px;--story-two-y:40px;--scene-shift:0%;--scene-scale:1;--reveal:0%;--progress:0;--px:0px;--py:0px;background:var(--scg-bg);color:var(--scg-ink);position:relative;padding:0;isolation:isolate}
.scg-hero *{letter-spacing:0}
.scg-pin{position:relative;min-height:600px;height:calc(100svh - var(--scg-header));padding:22px 48px 16px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:0;overflow:clip}
.scg-hero.is-ready{height:calc(200svh - var(--scg-header))}
.scg-hero.is-ready .scg-pin{position:sticky;top:0}
.scg-heading{display:flex;justify-content:space-between;align-items:start;gap:28px;position:relative;z-index:3;pointer-events:none}
.scg-index{font:12px/1.5 var(--mono);text-transform:uppercase}
.scg-heading h2{font-size:44px;line-height:1.05;font-weight:500;margin:8px 0}
.scg-heading>div>p:last-child{font-size:16px;line-height:1.5}
.scg-author{text-align:right;padding-top:4px}
.scg-author h1{font-size:24px;line-height:1.25;font-weight:500;white-space:normal}
.scg-author>p{font:12px/1.5 var(--mono)!important;margin-top:7px}
.scg-scene{position:relative;min-height:0;isolation:isolate}
.scg-media{position:absolute;inset:0;transform:translateX(var(--scene-shift)) scale(var(--scene-scale));transform-origin:50% 50%;touch-action:pan-y;cursor:ew-resize}
.scg-parallax{height:100%;width:100%;display:grid;place-items:center;transform:translate(var(--px),var(--py));transition:transform 180ms var(--scg-ease)}
.scg-image-frame{position:relative;width:min(100%,var(--image-width,1100px));aspect-ratio:2048/1143;max-height:100%;filter:grayscale(1)}
.scg-main-image,.scg-interior>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none;user-select:none}
.scg-main-image{clip-path:inset(0 0 0 var(--reveal))}
.scg-interior{position:absolute;inset:0;background:var(--scg-bg);clip-path:inset(0 calc(100% - var(--reveal)) 0 0);pointer-events:none}
.scg-scene[data-view=inside] .scg-main-image{clip-path:none}
.scg-scene[data-view=inside] .scg-interior,.scg-scene[data-view=prototype] .scg-interior{display:none}
.scg-scene[data-view=prototype] .scg-main-image{inset:auto;left:50%;top:50%;width:var(--prototype-width,220px);height:auto;max-height:none;transform:translate(-50%,-50%) rotate(90deg);clip-path:none}
.scg-narrative{position:absolute;inset:0;z-index:2;pointer-events:none}
.scg-story{position:absolute;left:0;top:50%;width:30%;transform:translateY(-50%);overflow:clip}
.scg-story h3{font-size:48px;font-weight:500;line-height:1.08;margin-top:22px}
.scg-story h3>span{display:block}
.scg-story-note{font:14px/1.5 var(--mono);margin-top:24px}
.scg-hero.is-ready .scg-story-one{opacity:var(--story-one);clip-path:inset(0 0 calc((1 - var(--story-one)) * 100%) 0)}
.scg-hero.is-ready .scg-story-two{opacity:var(--story-two);clip-path:inset(0 0 calc((1 - var(--story-two)) * 100%) 0)}
.scg-story-one>*{transform:translateY(var(--story-one-y))}
.scg-story-two>*{transform:translateY(var(--story-two-y))}
.scg-hero:not(.is-ready) .scg-narrative{display:none}
.scg-dock{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #717171;padding-top:10px;min-height:58px}
.scg-views,.scg-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.scg-dock button,.scg-dock a{font-size:14px;line-height:1.4;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:10px 14px;transition:background 160ms,color 160ms;border-radius:0}
.scg-dock button[aria-pressed=true]{background:var(--scg-ink);color:#F4F2EE}
.scg-dock button:hover,.scg-dock a:hover{background:#F4F2EE;color:var(--scg-ink)}
.scg-hero [hidden]{display:none!important}
.scg-dock .scg-work-link{padding-right:0}
.scg-tools button[title]{font-size:24px;width:44px;padding:0}
.scg-scroll-caption{display:flex;align-items:center;gap:22px;font:12px/1.4 var(--mono);padding-top:10px}
.scg-scroll-caption>span:last-child{margin-left:auto}
.scg-progress{width:100px;height:1px;background:#888;overflow:hidden}
.scg-progress>i{display:block;height:100%;background:#111;transform:scaleX(var(--progress));transform-origin:left}
.scg-shutters{display:grid;grid-template-columns:22% 36% 42%;position:absolute;inset:0;z-index:6;pointer-events:none}
.scg-shutters>span{background:var(--scg-bg);transform:scaleY(0);transform-origin:top}
.scg-hero.is-entering .scg-shutters>span{animation:scg-uncover 540ms var(--scg-ease) 280ms both}
.scg-hero.is-entering .scg-shutters>span:nth-child(2){animation-delay:370ms;transform-origin:bottom}
.scg-hero.is-entering .scg-shutters>span:nth-child(3){animation-delay:460ms}
.scg-hero.is-entering .scg-image-frame{animation:scg-settle 550ms var(--scg-ease) 700ms both}
.scg-hero.is-entering .scg-author{animation:scg-title 450ms var(--scg-ease) 1050ms both}
.scg-hero.is-entering .scg-scroll-caption{animation:scg-title 300ms var(--scg-ease) 1350ms both}
.scg-heading:after{content:'';position:absolute;left:0;right:0;bottom:-12px;height:1px;background:#858585;transform-origin:left}
.scg-hero.is-entering .scg-heading:after{animation:scg-rule 280ms linear 120ms both}
.scg-wipe-line{position:absolute;top:0;bottom:0;left:var(--reveal);width:1px;background:#111;opacity:0;pointer-events:none}
.scg-scene.is-revealing .scg-wipe-line{opacity:.5}
.scg-markers{position:absolute;inset:0;z-index:3;pointer-events:none}
.scg-marker{position:absolute;width:44px;height:44px;display:grid;place-items:center;transform:translate(-50%,-50%);pointer-events:auto;padding:0}
.scg-marker>span{width:25px;height:25px;display:grid;place-items:center;font:11px var(--mono);background:#F4F2EE;border:1px solid #111;border-radius:50%}
.scg-marker>i{position:absolute;width:1px;height:20px;background:#111;bottom:-10px;left:50%}
.scg-marker:hover>span,.scg-marker[aria-pressed=true]>span{background:#111;color:#F4F2EE}
.scg-inspector{position:absolute;left:0;bottom:16px;z-index:5;width:285px;max-width:100%;padding:18px;background:#F4F2EE;border-top:2px solid #111}
.scg-inspector #part-copy{font-size:15px;line-height:1.45;margin:10px 0 18px;min-height:65px}
.scg-inspector label{display:flex;justify-content:space-between;font:12px var(--mono)}
.scg-inspector input{accent-color:#111}
.scg-detail{position:absolute;right:8px;top:8px;z-index:5;width:190px;height:150px;background:var(--scg-bg);border:1px solid #111;overflow:hidden;pointer-events:none;filter:grayscale(1)}
.scg-detail>img{position:absolute;max-width:none;object-fit:fill}
.scg-detail>span{position:absolute;bottom:0;left:0;right:0;padding:5px 10px;background:#111;color:#F4F2EE;font:12px var(--mono)}
.scg-image-error{position:absolute;inset:0;display:grid;place-content:center;gap:20px;text-align:center;font-size:18px}
.scg-image-error a{text-decoration:underline}
.scg-hero.is-manual .scg-narrative{visibility:hidden}
.scg-hero.is-inspecting .scg-media{cursor:crosshair}
.scg-hero :focus-visible{outline:2px solid #111;outline-offset:4px}
@keyframes scg-uncover{from{transform:scaleY(1)}to{transform:scaleY(0)}}
@keyframes scg-settle{from{transform:translateY(24px) scale(1.04)}to{transform:none}}
@keyframes scg-title{from{clip-path:inset(100% 0 0 0);transform:translateY(12px)}to{clip-path:inset(0);transform:none}}
@keyframes scg-rule{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:1100px){.scg-story h3{font-size:36px}.scg-pin{padding-left:28px;padding-right:28px}.scg-inspector{width:240px}.scg-dock{gap:10px}.scg-dock button,.scg-dock a{padding:10px;font-size:13px}}
@media(max-width:767px){
 .scg-hero{--scg-header:72px}
 .scg-pin{padding:18px 20px 12px;min-height:590px}
 .scg-heading h2{font-size:32px;margin:6px 0}
 .scg-author h1{font-size:17px}.scg-author>p{max-width:130px;font-size:11px!important}
 .scg-heading>div>p:last-child{font-size:14px}.scg-index{font-size:11px}
 .scg-heading{gap:16px}.scg-heading:after{bottom:-10px}
 .scg-media{inset:0;transform:translateY(var(--mobile-shift,0px))}
 .scg-story{top:24px;left:0;width:100%;transform:none}
 .scg-story h3{font-size:32px;line-height:1.1;margin-top:8px}
 .scg-story h3>span{display:inline}.scg-story h3>span+span:before{content:' '}
 .scg-story-note{font-size:12px;margin-top:8px}.scg-story-note br{display:none}.scg-story-note br:after{content:' '}
 .scg-dock{display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding-top:8px}
 .scg-views{grid-column:1/-1}.scg-dock button,.scg-dock a{font-size:13px;padding:8px 10px}
 .scg-tools{gap:0}.scg-tools button[title]{width:38px;font-size:22px}.scg-scroll-caption{gap:12px;font-size:11px}
 .scg-progress{width:50px}.scg-dock .scg-work-link{gap:6px}
 .scg-shutters{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.scg-shutters>span:nth-child(3){display:none}
 .scg-inspector{top:14px;bottom:auto;width:100%;padding:10px 12px}
 .scg-inspector #part-copy{min-height:0;font-size:13px;line-height:1.4;margin:6px 0}
 .scg-detail{width:110px;height:85px;top:120px;right:0}
}
@media(max-width:400px){.scg-author>p{max-width:100px}.scg-author h1{font-size:15px}.scg-heading h2{font-size:29px}.scg-story h3{font-size:28px}}
@media(max-height:650px) and (min-width:768px){.scg-pin{min-height:500px}.scg-heading h2{font-size:32px}.scg-story h3{font-size:32px}}
.scg-hero.scg-reduced,.scg-hero.scg-compact{height:auto}
.scg-reduced .scg-pin,.scg-compact .scg-pin{position:relative}
.scg-reduced .scg-narrative,.scg-compact .scg-narrative{display:none}
.scg-reduced .scg-media,.scg-compact .scg-media{transform:none}
.scg-reduced .scg-parallax{transform:none;transition:none}
.scg-reduced .scg-shutters{display:none}.scg-reduced.is-entering *{animation:none!important}
@media(prefers-reduced-motion:reduce){.scg-hero.is-ready{height:auto}.scg-hero .scg-pin{position:relative}.scg-hero .scg-media,.scg-hero .scg-parallax{transform:none}.scg-hero .scg-narrative,.scg-hero .scg-shutters{display:none}.scg-hero.is-entering *{animation:none!important}}
@media print{.scg-hero.is-ready{height:auto}.scg-pin{position:relative!important;height:650px}.scg-dock,.scg-scroll-caption,.scg-shutters,.scg-narrative{display:none}.scg-media{transform:none}}
