/* Keep the opening scene within a full laptop viewport, without exposing the sky below. */
.page{padding-top:40px}
.home-section{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:24px;align-items:center;min-height:calc(100svh - 40px);padding-bottom:32px;scroll-margin-top:40px}
.home-copy{min-width:0;position:relative;z-index:1;padding-bottom:28px}
.home-section .intro{margin-top:44px}
.home-section h1{font-size:clamp(29px,3vw,37px)}
.studio-scene{width:min(100%,calc((100svh - 72px)*.87848));justify-self:center;aspect-ratio:1388/1580;overflow:hidden;isolation:isolate;pointer-events:none;user-select:none}
.studio-art{display:block;width:100%;height:100%;fill:none;stroke:none;overflow:hidden}
.studio-neon-dim{opacity:0;mix-blend-mode:multiply;animation:studio-neon-dim 5s linear infinite}
.studio-neon-glow{opacity:0;mix-blend-mode:screen;filter:blur(5px);animation:studio-neon-glow 5s linear infinite}
.studio-scene *{animation-play-state:paused}
.studio-scene[data-in-view] *{animation-play-state:running}
/* One short, gentle neon flutter per five seconds, with no full on/off flash. */
@keyframes studio-neon-dim{0%,86%,100%{opacity:0}89%{opacity:.24}91%{opacity:.04}94%{opacity:.17}97%{opacity:0}}
@keyframes studio-neon-glow{0%,86%,100%{opacity:0}91%,97%{opacity:.16}94%{opacity:0}}
@media(max-width:800px){
 .page{padding-top:28px}
 .home-section{min-height:calc(100svh - 28px);grid-template-columns:1fr;gap:8px;padding-bottom:24px;align-content:center}
 .home-copy{padding-bottom:0}
 .home-section .profile{gap:15px}
 .home-section .avatar{width:54px;height:54px;border-radius:15px}
 .home-section .intro{margin-top:25px}
 .home-section h1{font-size:clamp(25px,5.8vw,32px)}
 .home-section .contact-button{margin-top:18px}
 .studio-scene{width:min(100%,310px);max-height:none}
}
@media(max-width:800px) and (max-height:700px){.studio-scene{width:230px}}
@media(prefers-reduced-motion:reduce){.studio-scene *{animation:none!important}.studio-neon-dim,.studio-neon-glow{opacity:0}}

.home-section .reveal-line{text-wrap:balance}

/* Full-bleed first-screen color, including the top gutter. */
.home-section{position:relative;isolation:isolate;background:#FEFFFE}
.home-section::before{content:"";position:absolute;inset:-40px 0 0;z-index:-1;background:#FEFFFE;box-shadow:0 0 0 100vmax #FEFFFE;clip-path:inset(0 -100vmax);pointer-events:none}

/* Client sprites are separate controls, so new cases can be placed in the studio. */
.studio-scene{position:relative;pointer-events:auto}
.studio-art{pointer-events:none}
.studio-client{position:absolute;left:41.3%;top:21%;width:10%;aspect-ratio:875/1798;padding:0;border:0;background:none;z-index:2;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.studio-client::before{content:"";position:absolute;inset:0 -8px}
.studio-client-portrait{position:absolute;inset:0;display:block;pointer-events:none}
.studio-client img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.studio-client-shadow{position:absolute;left:25%;bottom:1%;width:65%;height:5%;border-radius:50%;background:#40241d35;filter:blur(2px);transform:rotate(-12deg)}
.studio-client:focus-visible{outline:2px solid #087bff;outline-offset:4px;border-radius:14px}
/* Floating info popup: reference dimensions, typography and motion tokens. */
.studio-client-card{--stage-fg:var(--ink,#242424);--stage-muted:#5f5a63;--stage-surface:#fff;--stage-accent:#087bff;--press-dur:150ms;--ease-smooth-out:cubic-bezier(.22,1,.36,1);position:absolute;left:50%;top:46%;transform:translateX(-50%);transform-origin:center;width:min(280px,calc(100% - 24px));z-index:4;padding:20px;border:0;border-radius:24px;background:var(--stage-surface);color:var(--stage-fg);box-shadow:0 4px 42px rgba(0,0,0,.06),0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:16px;user-select:text}
.studio-client-card[hidden]{display:none}
.studio-client-card:focus{outline:none}
.studio-client-head{display:flex;align-items:center;gap:12px}
.studio-client-head>div{flex:1;min-width:0}
.studio-client-head h2{margin:0;font-size:16px;line-height:22px;font-weight:500;letter-spacing:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-client-close{margin-left:auto;align-self:flex-start;margin-top:-4px;margin-right:-8px;width:32px;height:32px;border:0;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:none;color:var(--stage-muted);transition:transform var(--press-dur) var(--ease-smooth-out),background-color var(--press-dur) var(--ease-smooth-out)}
.studio-client-close svg{width:16px;height:16px;stroke-width:2.25}
.studio-client-close:is(:active,.is-pressed){transform:scale(.95)}
.studio-client-details{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.studio-client-project{--fill:#FDEFE2;--ink:#C56511;height:28px;padding:0 12px;border:0;border-radius:50px;font-size:13px;line-height:20px;font-weight:500;background:var(--fill);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.04),inset 0 0 0 1px color-mix(in srgb,var(--ink) 14%,transparent),inset 0 -1px 0 0 color-mix(in srgb,var(--ink) 10%,transparent);transition:transform var(--press-dur) var(--ease-smooth-out),background-color var(--press-dur) var(--ease-smooth-out),color var(--press-dur) var(--ease-smooth-out)}
.studio-client-project:is(:active,.is-pressed){transform:scale(.95);--fill:#FF7A00;--ink:#fff}
.studio-client-details p{margin:0;font-size:13px;line-height:20px;color:var(--stage-muted)}
.studio-client-card button:focus-visible{outline:none;box-shadow:0 0 0 2px var(--stage-surface),0 0 0 4px var(--stage-accent)}
@media(hover:hover){.studio-client-project:hover{--fill:#FF7A00;--ink:#fff}.studio-client-close:hover{background:rgba(0,0,0,.04)}}
@media(prefers-reduced-motion:reduce){.studio-client-card button{transition:none!important}.studio-client-card button:is(:active,.is-pressed){transform:none}}

/* Restore the foreground railing above the client; the pane remains translucent. */
.studio-railing{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:3;pointer-events:none;fill:none;stroke:none}

/* Keep the base opaque: two simultaneous fades made the whole sprite translucent. */
.studio-client .client-neutral{opacity:1;transition:none}
.studio-client-shadow{pointer-events:none}
.pointer-enabled .studio-client-close:hover{background:transparent}

/* Static scene layers share the same geometry; only the neon sign animates. */
.studio-art,.studio-railing,.studio-client,.studio-client-portrait{transform:none;animation:none;transition:none}

/* Highlight the original portrait without swapping images or shifting its position. */
@media(hover:hover){.studio-client:hover .studio-client-portrait{filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)}}
.studio-client:focus-visible .studio-client-portrait{filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)}

/* Reveal the entire studio as one layer, keeping the client and railing aligned. */
.studio-scene{animation:studio-enter .7s cubic-bezier(.16,1,.3,1) .12s backwards}
@keyframes studio-enter{from{opacity:0;transform:translateY(24px) scale(.98);filter:blur(5px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.studio-scene{animation:none}}

/* Sunset glow behind the studio: pink at rest, peach on hover.
   Pure gradients that fade out before their box edge, so there is no blur
   filter, no mask and no visible seams; hover only crossfades opacity. */
.home-section{clip-path:inset(-30px calc((100% - 100vw)/2))}
.studio-scene{overflow:visible}
.studio-art{position:relative;z-index:1;mix-blend-mode:multiply}
.studio-sunset{position:absolute;inset:-7% -30% -5% -30%;z-index:0;pointer-events:none;contain:strict}
.studio-sunset::before,.studio-sunset::after{content:"";position:absolute;inset:0;background-repeat:no-repeat;will-change:opacity;transform:translateZ(0);transition:opacity 1.1s cubic-bezier(.33,0,.2,1)}
.studio-sunset::before{
 background:
  radial-gradient(closest-side at 52% 30%,#f1c8ff80,#f6d4fb40 55%,#fff0 100%),
  radial-gradient(closest-side at 50% 47%,#ffadcdf2,#ffb8d5d9 40%,#ffc9dfa6 62%,#ffdbe952 82%,#fff0 100%),
  radial-gradient(closest-side at 54% 68%,#ffc9bc8c,#ffd9cc40 58%,#fff0 100%)}
.studio-sunset::after{opacity:0;
 background:
  radial-gradient(closest-side at 52% 30%,#ffd9c280,#ffe6d640 55%,#fff0 100%),
  radial-gradient(closest-side at 50% 47%,#ffbb96f2,#ffc4a2d9 40%,#ffd2b6a6 62%,#ffe2cf52 82%,#fff0 100%),
  radial-gradient(closest-side at 54% 68%,#ffb59a8c,#ffcdb740 58%,#fff0 100%)}
@media(hover:hover){.studio-scene:hover .studio-sunset::after{opacity:1}}
@media(max-width:800px){.studio-sunset{inset:-6% -9% -4% -9%}}
/* A white silhouette of the building sits between the glow and the art, so the
   multiply blend tints only the background; the building keeps its own colors. */
.studio-cover{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;user-select:none}
.studio-art{z-index:1}
@media(prefers-reduced-motion:reduce){.studio-sunset::before,.studio-sunset::after{transition:none}}

/* A quiet wiggle above the studio, independent of the scene's entrance. */
.studio-bird{position:absolute;right:-5.9%;top:-4.6%;width:31.8%;height:auto;z-index:3;pointer-events:none;user-select:none;transform-origin:50% 60%;animation:studio-bird-wiggle 3.6s ease-in-out infinite}
@keyframes studio-bird-wiggle{0%,100%{transform:translateY(0) rotate(-1.2deg)}50%{transform:translateY(-3px) rotate(1.2deg)}}
@media(max-width:800px){.studio-bird{right:-1.85%;top:-5.23%;width:35.7%}}
@media(prefers-reduced-motion:reduce){.studio-bird{animation:none;transform:none}}

/* Avatar hover: it straightens past level with a soft spring, lifts, and its
   shadow deepens with a hint of its own pink; the face leans in slightly. */
.home-section .avatar{transition:transform .6s cubic-bezier(.34,1.45,.5,1),box-shadow .5s cubic-bezier(.22,1,.36,1)}
.home-section .avatar img{transition:transform .8s cubic-bezier(.22,1,.36,1)}
@media(hover:hover){
 .home-section .avatar:hover{transform:translateY(-3px) rotate(4deg) scale(1.07);box-shadow:0 0 0 1px #00000006,0 6px 10px #0000000d,0 22px 30px -12px #d8467a59}
 .home-section .avatar:hover img{transform:scale(1.25) rotate(-3deg)}
}
.home-section .avatar:active{transform:translateY(-1px) rotate(2deg) scale(1.02);transition-duration:.18s}
@media(prefers-reduced-motion:reduce){.home-section .avatar,.home-section .avatar img{transition:none}}

/* ---------- Client card: Apple light glass ---------- */
.studio-client-card{width:min(292px,calc(100% - 24px));padding:16px 16px 18px;gap:14px;border-radius:28px;
 background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,.6));
 -webkit-backdrop-filter:blur(26px) saturate(1.8);backdrop-filter:blur(26px) saturate(1.8);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(255,255,255,.65),0 0 0 .5px rgba(28,25,40,.06),0 1px 2px rgba(28,25,40,.05),0 14px 32px -12px rgba(28,25,40,.2),0 44px 80px -36px rgba(28,25,40,.3)}
.studio-client-head{gap:11px;align-items:center}
.studio-client-avatar{flex:none;width:42px;height:42px;border-radius:13px;overflow:hidden;background:linear-gradient(160deg,#ffe3ec,#f6bfcf);box-shadow:0 0 0 2px #fff,0 6px 14px -6px rgba(224,86,127,.45);transform:rotate(-4deg)}
.studio-client-avatar img{display:block;width:100%;height:auto;transform:scale(1.9);transform-origin:50% 4%}
.studio-client-head h2{font-size:17px;line-height:21px;font-weight:600;letter-spacing:-.02em;color:#1f1f22}
.studio-client-role{margin:1px 0 0;font-size:12.5px;line-height:16px;color:#76767c}
.studio-client-close{align-self:center;margin:0;width:28px;height:28px;background:rgba(118,118,128,.12);color:#56565b}
.studio-client-close svg{width:12px;height:12px;stroke-width:2.6}
@media(hover:hover){.studio-client-close:hover,.pointer-enabled .studio-client-close:hover{background:rgba(118,118,128,.2)}}
.studio-client-details{gap:10px;padding:12px 12px 13px;border-radius:18px;background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 1px 2px rgba(28,25,40,.04)}
.studio-client-project{height:26px;padding:0 11px;font-size:12.5px;font-weight:500}
.studio-client-details p{font-size:13.5px;line-height:1.45;color:#55555e;letter-spacing:-.005em}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.studio-client-card{background:#fff}}
/* Phones: the first screen is clipped just below its edge, so the card sits higher
   and its soft shadow ends before that line instead of being cut off. */
@media(max-width:650px){.studio-client-card{top:27%}}
/* While a client card is open, let its shadow fall past the first screen's edge. */
.home-section:has(.studio-client-card:not([hidden])){clip-path:inset(-30px calc((100% - 100vw)/2) -140px);z-index:2}
