/* One continuous studio space. Artwork sources remain unmodified. */
:root { color-scheme:dark; --bg:#090b0b; --ink:#f0f0e9; --accent:var(--signature-green); --gutter:clamp(24px,5vw,100px); }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
a:focus-visible { outline:2px solid var(--accent); outline-offset:8px; }
::selection { background:var(--accent); color:var(--bg); }
figure,p,h1,h2 { margin:0; }
.skip-link { position:fixed; top:16px; left:16px; z-index:50; padding:12px 20px; background:var(--ink); color:var(--bg); transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.portfolio-journey { height:320vh; height:320svh; }
.design-hero { position:sticky; top:0; height:100vh; height:100svh; overflow:clip; isolation:isolate; }
.design-hero::before { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 56% 46%,#222b241f,transparent 68%); }
/* Shared vanishing point. Transform each object in world coordinates, not section offsets. */
.portfolio-world { position:absolute; inset:0; perspective:1000px; perspective-origin:50% 50%; transform-style:preserve-3d; }
.art-plane,.hero-copy,.project-entry { position:absolute; left:50%; top:50%; transform-style:preserve-3d; transform:translate3d(var(--x,0px),var(--y,0px),var(--z,0px)) translate(-50%,-50%) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) rotateZ(var(--rz,0deg)) scale(var(--scale,1)); filter:blur(var(--blur,0px)); opacity:var(--opacity,1); will-change:transform,opacity; }
.art-plane { pointer-events:none; width:var(--width,22vw); --opacity:.05; filter:blur(var(--blur,16px)) saturate(var(--saturation,.08)) contrast(var(--contrast,.25)); }
.art-plane img { width:100%; height:auto; display:block; }
.art-plane--campaign { --width:24vw; --rz:7deg; --ry:-13deg; }
.art-plane--ornament { --width:19vw; --rz:-9deg; --ry:12deg; }
.art-plane--identity { --width:26vw; --rz:-5deg; --ry:-15deg; padding:3vw; background:#d8d8c8; }
.art-plane--rear-print { --width:24vw; --rz:-11deg; --ry:18deg; }
.art-plane--distant-type { --width:30vw; --rz:8deg; padding:3vw 2vw; background:#c2c7b9; }
.art-plane--distant-symbol { --width:23vw; --rz:13deg; padding:3vw; background:#c7cfc4; }
.art-plane--foreground { --width:25vw; --rz:-13deg; --ry:-20deg; }
/* Individual translate/rotate properties compose with, never replace, the
   scroll-owned transform. Separate periods keep the small drift from synchronizing. */
@media(prefers-reduced-motion:no-preference) {
 .art-plane {
   animation:artwork-drift var(--float-duration,18s) var(--float-phase,-4s) ease-in-out infinite,
     artwork-wiggle var(--turn-duration,20s) var(--turn-phase,-9s) ease-in-out infinite;
 }
 .art-plane--foreground { --float-duration:13.7s; --float-phase:-2.8s; --turn-duration:17.3s; --turn-phase:-8.1s; }
 .art-plane--campaign { --float-duration:16.3s; --float-phase:-10.4s; --turn-duration:19.1s; --turn-phase:-3.7s; }
 .art-plane--ornament { --float-duration:15.1s; --float-phase:-6.2s; --turn-duration:18.7s; --turn-phase:-12.4s; }
 .art-plane--identity { --float-duration:18.9s; --float-phase:-14.3s; --turn-duration:20.3s; --turn-phase:-5.2s; }
 .art-plane--rear-print { --float-duration:19.7s; --float-phase:-4.9s; --turn-duration:21.1s; --turn-phase:-16.6s; }
 .art-plane--distant-type { --float-duration:21.3s; --float-phase:-17.8s; --turn-duration:19.9s; --turn-phase:-7.3s; }
 .art-plane--distant-symbol { --float-duration:22s; --float-phase:-11.6s; --turn-duration:21.7s; --turn-phase:-18.9s; }
}
@keyframes artwork-drift {
 0%,100% { translate:-6px 3px -2px; }
 23% { translate:3px -7px 1px; }
 51% { translate:8px -2px 3px; }
 78% { translate:-2px 7px -1px; }
}
@keyframes artwork-wiggle {
 0%,100% { rotate:z -.35deg; }
 38% { rotate:z .45deg; }
 72% { rotate:z .1deg; }
}
.hero-copy { width:62vw; pointer-events:none; }
#graphic-title { font-size:clamp(80px,11.4vw,218px); line-height:.83; font-weight:700; letter-spacing:-.075em; }
#graphic-title>span { display:block; width:fit-content; }
.title-design { margin: .10em 0 0 11%; color:var(--accent); }
.title-period { color:var(--ink); }
.hero-disciplines { margin:28px 0 0 12%; font-size:12px; line-height:1.9; letter-spacing:1.9px; color:#c2c9c3; }
.hero-disciplines span { padding:0 8px; color:#636e65; }
.hero-side-note { position:absolute; left:var(--gutter); bottom:16%; z-index:15; color:#8f9a92; font-size:12px; line-height:1.7; }
.hero-bottom { position:absolute; inset:auto var(--gutter) 28px; z-index:20; display:flex; justify-content:space-between; align-items:flex-end; }
.hero-edition,.hero-next { font-size:12px; letter-spacing:1.3px; color:#8f9a92; }
.hero-next>span { margin:0 10px; color:var(--accent); }
.scroll-cue { position:absolute; left:50%; bottom:0; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:7px; font-size:12px; letter-spacing:2px; color:var(--accent); }
.scroll-symbol { width:32px; height:48px; overflow:visible; }
.scroll-cue { min-width:44px; gap:8px; text-align:center; text-shadow:0 1px 8px var(--bg); }
.scroll-mouse { opacity:.65; transition:opacity .2s; }
.scroll-wheel { animation:scroll-wheel-travel 2.2s ease-in-out infinite; }
.scroll-chevron { opacity:.5; animation:scroll-chevron-travel 2.2s ease-in-out infinite; }
.scroll-cue:hover .scroll-mouse,.scroll-cue:focus-visible .scroll-mouse { opacity:1; }
.scroll-cue:focus-visible { border-radius:8px; outline-offset:5px; }
@keyframes scroll-wheel-travel { 0%,100% { transform:translateY(0); opacity:.4; } 35% { opacity:1; } 70% { transform:translateY(7px); opacity:0; } 71% { transform:translateY(0); opacity:0; } }
@keyframes scroll-chevron-travel { 0%,100% { transform:translateY(-1px); opacity:.3; } 50% { transform:translateY(2px); opacity:.85; } }
/* No cover panel, divider, section background, or box around the project. */
.project-entry { --opacity:0; width:76vw; text-align:center; outline:none; }
.design-hero [hidden] { display:none!important; }
/* STEP's renderer owns a full viewport inside its registered scene, not an overlay. */
.project-entry.graphic-scene-surface { position:absolute; inset:0; width:100%; height:100%; transform:none; translate:none; rotate:none; animation:none; filter:none; opacity:1; }
.graphic-static .portfolio-world { display:flex; flex-direction:column; min-height:0; }
.graphic-static .hero-copy,.graphic-static .project-entry { position:relative; inset:auto; top:auto!important; left:auto; width:100%; min-height:100svh; margin:auto; transform:none!important; translate:none; rotate:none; animation:none; display:flex; flex-direction:column; justify-content:center; }
.graphic-static .project-entry.graphic-scene-surface { height:auto; }
.graphic-static .brand-galaxy,.graphic-static .rgg-messages { position:relative; }
  /* Independent CSS motion keeps levitation alive when scrolling stops. Individual
     transforms compose with the camera pose; optional visuals inherit both. */
  @media(prefers-reduced-motion:no-preference) {
    .project-floating {
      animation:project-levitate var(--float-duration,22s) var(--float-phase,-5s) ease-in-out infinite,
        project-turn var(--turn-duration,26s) var(--turn-phase,-9s) ease-in-out infinite;
    }
  }
  @keyframes project-levitate {
    0%,100% { translate:calc(-10px * var(--float-weight,1)) calc(9px * var(--float-weight,1)) 0; }
    50% { translate:calc(12px * var(--float-weight,1)) calc(-16px * var(--float-weight,1)) calc(12px * var(--float-weight,1)); }
  }
  @keyframes project-turn {
    0%,100% { rotate:1 1 .25 calc(-2deg * var(--float-weight,1)); }
    50% { rotate:1 1 .25 calc(2deg * var(--float-weight,1)); }
  }
.imeri-cover { padding:0; }
.imeri-meta { display:flex; justify-content:center; gap:30px; font-size:12px; letter-spacing:2.5px; color:var(--accent); }
.imeri-meta>span[aria-hidden] { display:none; }
#imeri-title,.project-title { font-size:clamp(100px,22vw,380px); font-weight:400; letter-spacing:-.065em; line-height:1.1; margin:22px 0; }
.imeri-baseline { display:flex; justify-content:center; gap:36px; font-size:12px; letter-spacing:2px; color:#89968c; }
@media(max-width:600px) {
 .portfolio-journey { height:300svh; }
 .hero-copy { width:90vw; }
 #graphic-title { font-size:max(12px,16vw); }
 .title-design { margin-left:7%; }
 .hero-disciplines { margin:23px 0 0 15%; font-size:12px; letter-spacing:.7px; }
 .hero-disciplines span { padding:0 4px; }
 .art-plane { width:calc(var(--width) * 1.65); }
 .hero-side-note,.hero-edition { display:none; }
 .hero-bottom { bottom:24px; justify-content:flex-end; }
 .hero-next { font-size:12px; letter-spacing:.5px; }
 .scroll-cue { font-size:12px; }
 .project-entry { width:90vw; }
 #imeri-title,.project-title { font-size:max(12px,25vw); }
 .imeri-meta { font-size:12px; gap:18px; letter-spacing:1.5px; }
 .imeri-baseline { font-size:12px; gap:20px; letter-spacing:1px; }
}
/* Same uninterrupted dark environment, without camera travel for motion sensitivity. */
@media(prefers-reduced-motion:reduce) {
 .portfolio-journey { height:auto; }
 .design-hero { position:relative; height:auto; min-height:500svh; }
 .portfolio-world { position:relative; min-height:500svh; perspective:none; }
 .hero-copy { top:45svh; }
 .project-entry { top:145svh; }
 #retail-group { top:245svh; }
 #step { top:345svh; }
 #next-project { top:445svh; }
 .hero-copy,.project-entry { transform:translate(-50%,-50%); opacity:1; filter:none; will-change:auto; }
 .art-plane { display:none; }
 .scroll-wheel,.scroll-chevron { animation:none; }
 .hero-bottom { position:absolute; top:88svh; bottom:auto; }
 .hero-side-note { top:76svh; bottom:auto; }
}

#retail-title { font-size:clamp(70px,14vw,240px); }

/* Shared navigation overlays the sticky scene without changing its scroll geometry. */
.design-hero > .masthead { position:absolute; inset:0 0 auto; z-index:20; color:var(--text); }

.project-entry h2 { text-transform:none; }
.masthead a:focus-visible { outline:2px solid #fff; outline-offset:7px; }

#work-process,#ebg { overflow:clip; }

/* Native scrolling remains available; six chapter marks replace its visible rail. */
html.graphic-chapters { scrollbar-width:none; }
html.graphic-chapters::-webkit-scrollbar { display:none; }
.chapter-nav { position:fixed; z-index:120; right:4px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; }
.chapter-nav button { position:relative; display:grid; place-items:center; width:40px; height:28px; padding:0; border:0; background:transparent; color:var(--ink); cursor:pointer; }
.chapter-mark { width:14px; height:3px; border-radius:2px; background:#68736b; transition:width .2s,background .2s; }
.chapter-mark:has(svg) { width:18px; height:18px; background:none; }
.chapter-mark svg { width:18px; height:18px; }
.chapter-nav button[aria-current] .chapter-mark { width:24px; background:var(--accent); }
.chapter-nav button[aria-current] .chapter-mark:has(svg) { width:18px; background:none; color:var(--accent); }
.chapter-preview { position:absolute; right:38px; top:50%; transform:translateY(calc(-50% + var(--chapter-shift,0px))) scale(.68); transform-origin:right center; width:104px; height:64px; padding:10px; background:#111713; border:1px solid #344039; border-radius:12px; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s,transform .24s ease,visibility .2s; }
.chapter-preview img,.chapter-preview svg { width:100%; height:100%; object-fit:contain; }
.chapter-nav button[aria-current] .chapter-preview { opacity:.32; visibility:visible; pointer-events:auto; }
.chapter-nav button.is-magnified { z-index:3; }
.chapter-nav button.is-magnified .chapter-preview { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(-50%) scale(1); }
.chapter-preview::after { content:''; position:absolute; left:100%; top:0; width:18px; height:100%; }
.chapter-mark { transform:translateY(var(--chapter-shift,0px)); transition:transform .24s ease,width .2s,background .2s; }
.chapter-nav button.is-magnified .chapter-mark { width:24px; background:var(--accent); }
.chapter-nav button.is-magnified .chapter-mark:has(svg) { background:none; color:var(--accent); }
.chapter-nav button:focus-visible { outline:1px solid var(--accent); outline-offset:-4px; border-radius:8px; }
.graphic-at-closing .scroll-cue,.graphic-at-closing .hero-bottom { visibility:hidden; pointer-events:none; }
@media(max-width:600px) { .chapter-nav { right:0; } .chapter-nav button { width:32px; } }
@media(prefers-reduced-motion:reduce) { .chapter-preview,.chapter-mark { transition:none; } }

/* Reserve the chapter rail hit area beside the EBG next arrow. */
.graphic-chapters .ebg-controls .ebg-next { right:48px; }
@media(max-width:700px) { .graphic-chapters .ebg-controls .ebg-next { right:36px; } }

/* Intro layers: wordmark behind portrait, smaller discipline title in front. */
.hero-copy { width:min(88vw,1200px); height:70svh; max-height:720px; isolation:isolate; transform-style:flat; }
.graphic-wordmark { position:absolute; top:0; left:50%; transform:translateX(-50%); z-index:0; margin:0; font-size:clamp(70px,16vw,230px); line-height:.9; font-weight:700; letter-spacing:-.065em; color:var(--ink); opacity:.5; }
.graphic-portrait { position:absolute; z-index:1; top:8%; left:50%; transform:translateX(-50%); width:auto; height:78%; max-width:100%; object-fit:contain; mask-image:linear-gradient(#000 45%,transparent 100%); }
#graphic-title { position:absolute; z-index:2; left:17%; bottom:15%; font-size:clamp(44px,7.2vw,108px); text-shadow:0 2px 24px #090b0b; }
.hero-copy .hero-disciplines { position:absolute; z-index:2; left:20%; bottom:0; margin:0; }
@media(max-width:600px) { .hero-copy { height:61svh; } .graphic-wordmark { font-size:20vw; top:5%; } .graphic-portrait { top:12%; height:70%; max-width:110%; } #graphic-title { left:3%; bottom:18%; font-size:9vw; } .hero-copy .hero-disciplines { left:3%; bottom:4%; font-size:10px; } }
@media(max-height:500px) { .hero-copy { height:65svh; } .graphic-wordmark { font-size:22vh; } #graphic-title { font-size:12vh; bottom:10%; } .hero-copy .hero-disciplines { bottom:-10%; font-size:9px; } }

/* Floating project fragments belong to the intro and leave with its scene. */
.intro-fragments { position:absolute; inset:0; z-index:-1; pointer-events:none; perspective:900px; transform-style:preserve-3d; }
.intro-fragment { position:absolute; left:var(--fragment-x); top:var(--fragment-y); transform:translate(-50%,-50%) translateZ(var(--fragment-depth,0px)) rotateY(var(--fragment-tilt-y,0deg)) rotateX(var(--fragment-tilt-x,0deg)) rotate(var(--fragment-angle)) scale(var(--fragment-scale,1)); transform-style:preserve-3d; width:clamp(100px,17vw,240px); height:clamp(96px,19vw,260px); border:0; padding:0; background:none; color:var(--ink); cursor:pointer; pointer-events:auto; }
.intro-fragment-float { display:block; width:100%; height:100%; opacity:var(--fragment-opacity,.3); filter:blur(var(--fragment-blur,4px)) saturate(.7); transition:opacity .2s; animation:intro-fragment-float var(--fragment-time) ease-in-out var(--fragment-delay) infinite; }
.intro-fragment img { display:block; width:100%; height:100%; object-fit:cover; opacity:1; filter:none; mask-image:none; }
.intro-fragment--logo img { object-fit:contain; padding:10px; }
.intro-fragment-label { position:absolute; bottom:0; left:50%; transform:translateX(-50%); opacity:0; font-size:11px; letter-spacing:.1em; white-space:nowrap; transition:opacity .2s; }
.intro-fragment:hover .intro-fragment-float,.intro-fragment:focus-visible .intro-fragment-float { opacity:.5; }
.intro-fragment:hover .intro-fragment-label,.intro-fragment:focus-visible .intro-fragment-label { opacity:1; }
.intro-fragment:focus-visible { outline:1px solid var(--accent); outline-offset:6px; }
.hero-copy[hidden] .intro-fragment-float { animation-play-state:paused; }
@keyframes intro-fragment-float { 0%,100% { transform:translate3d(-4px,7px,0) rotate(-2deg); } 50% { transform:translate3d(5px,-9px,0) rotate(2deg); } }
@media(max-width:600px) { .intro-fragment { width:clamp(88px,28vw,130px); height:clamp(105px,34vw,150px); } }
@media(prefers-reduced-motion:reduce) { .intro-fragment-float { animation:none; } .intro-fragment img,.intro-fragment-label { transition:none; } }

.chapter-nav [data-chapter="graphic"] .chapter-mark svg { transition:transform .18s ease; }
.chapter-nav [data-chapter="graphic"]:hover .chapter-mark svg,.chapter-nav [data-chapter="graphic"]:focus-visible .chapter-mark svg { transform:scale(1.16); }

/* The intro is a programmatic scene focus target, not a rectangular control. */
.hero-copy { outline:none; }

/* Closing content is styled by shared contact.css; retain the scene width. */
#next-project { width:min(88vw,1200px); }
@media(max-width:600px) { #next-project { width:calc(100vw - 72px); } }
