/* V3: lower sections and contact control. Gallery and player styles stay in styles.css. */
.profile-workflow{--profile-height:clamp(420px,34.18vw,560px);position:relative;isolation:isolate;font-family:Manrope,Arial,sans-serif}
.profile{position:relative;height:var(--profile-height);background:#cecdca;overflow:hidden}
.profile-copy{position:relative;z-index:1;width:37%;padding:clamp(45px,5vw,82px) 0 30px var(--gutter)}
.profile-copy .eyebrow{font-size:11px;letter-spacing:.02em}
.profile h2{font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif;font-weight:700;font-size:clamp(56px,6.3vw,98px);letter-spacing:-.055em;line-height:.99;margin:20px 0 22px;color:#080808}
.profile-description{font-size:clamp(14px,1.3vw,19px);line-height:1.5;max-width:420px;letter-spacing:-.025em}
.profile-photo,.profile-foreground{position:absolute;right:0;top:0;width:calc(var(--profile-height)*976/525)}
.profile-photo{height:var(--profile-height);overflow:hidden}
.profile-photo svg,.profile-foreground svg{display:block;width:100%;height:auto;aspect-ratio:976/674}
.profile-photo{mask-image:linear-gradient(to right,transparent,#000 4%);-webkit-mask-image:linear-gradient(to right,transparent,#000 4%)}
.profile-foreground{z-index:3;pointer-events:none;mask:url('assets/masks/about-forearm.svg') center/100% 100% no-repeat;-webkit-mask:url('assets/masks/about-forearm.svg') center/100% 100% no-repeat}
.workflow{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.85fr);gap:50px;background:#fff;padding:calc(var(--profile-height)*.28 + 16px) var(--gutter) 82px}
.workflow-heading .eyebrow{font-size:10px;letter-spacing:.01em;line-height:1.5}
.workflow h2{font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif;font-weight:700;font-size:clamp(34px,3.65vw,57px);letter-spacing:-.045em;line-height:1.06;margin-top:28px;color:#080808}
.workflow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;list-style:none;margin:0;padding:0}
.workflow-number{display:block;border-bottom:1px solid #777;padding-bottom:9px;font-size:12px;line-height:1}
.workflow-icon{display:block;width:78px;height:73px;margin:17px 0 15px;color:#080808}
.workflow-grid h3{font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;letter-spacing:-.025em}
.workflow-grid p{font-size:13px;line-height:1.6;margin-top:13px;letter-spacing:-.02em;max-width:200px}
.contact-scene{position:relative;isolation:isolate;overflow:hidden;background:#080808;color:#e6e5e2;min-height:clamp(540px,43vw,700px);font-family:Manrope,Arial,sans-serif;display:flex;align-items:center}
.contact-portrait{position:absolute;z-index:-1;left:0;top:0;width:44%;height:100%;filter:grayscale(1);mask-image:linear-gradient(to right,#000 60%,transparent 100%);-webkit-mask-image:linear-gradient(to right,#000 60%,transparent 100%)}
.contact-scene-copy{width:62%;margin-left:38%;padding:85px var(--gutter) 100px 0;text-align:center}
.contact-signature{font-size:13px;font-weight:400;letter-spacing:.12em}
.contact-scene h2{font-size:clamp(60px,8.2vw,136px);line-height:1.15;font-weight:200;letter-spacing:-.075em;margin:30px 0 48px;white-space:nowrap}
.contact-scene .contact-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,4vw,64px);margin:0}
.contact-scene .contact-link{font-size:15px;letter-spacing:.04em;font-weight:400;color:#e6e5e2;border-color:#777;padding:14px 0 18px;text-align:left;gap:12px;transition:color .25s,border-color .25s}
.contact-scene .contact-link-arrow{font-size:23px;transition:transform .25s}
.contact-scene .contact-link:hover{color:#fff;border-color:#fff}
.contact-scene .contact-link:hover .contact-link-arrow{transform:translate(3px,-3px)}
.contact-scene footer{display:flex;justify-content:center;gap:5px;border:0;padding:0;margin-top:85px;font-size:10px;letter-spacing:.1em;color:#c8c8c8}
.contact-widget{left:50%;right:auto;transform:translateX(-50%);bottom:max(18px,env(safe-area-inset-bottom));align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px)}
.contact-toggle{background:#080808;padding:14px 22px;min-height:48px;gap:24px;font-size:10px;transition:background .25s,box-shadow .25s}
.contact-toggle:hover,.contact-toggle[aria-expanded=true]{background:#252525;box-shadow:0 4px 15px #0002}
.contact-panel{width:300px;max-width:calc(100vw - 32px);max-height:calc(100svh - 100px - env(safe-area-inset-bottom));overflow:auto;padding:14px 20px 10px;border:1px solid #d5d5d5;box-shadow:0 6px 24px #0002;animation:contact-reveal .25s ease both}
.contact-panel h2{font-size:10px;letter-spacing:.02em;line-height:1.4}
.contact-panel .contact-link{font-size:14px;min-height:54px;padding:17px 0;letter-spacing:.03em}
.contact-panel .contact-link:last-child{border-bottom:0}
.contact-panel .contact-link-arrow{transition:transform .25s}
.contact-panel .contact-link:hover .contact-link-arrow{transform:translate(2px,-2px)}
@keyframes contact-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.profile{height:auto;display:flex;flex-direction:column}.profile-copy{width:100%;padding:38px 24px 24px}.profile-copy .eyebrow{font-size:10px}.profile h2{font-size:clamp(53px,14vw,80px);margin:16px 0 20px;line-height:1}.profile-description{font-size:15px;line-height:1.6;max-width:420px}.profile-photo{position:relative;width:100%;height:auto;right:auto;clip-path:inset(0 0 0 3px);mask:none;-webkit-mask:none}.profile-foreground{display:none}.workflow{display:block;padding:36px 24px 48px}.workflow h2{font-size:38px;margin-top:16px}.workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 22px;margin-top:32px}.workflow-icon{width:66px;height:62px;margin:15px 0 12px}.workflow-grid h3{font-size:11px}.workflow-grid p{font-size:12px;line-height:1.6;margin-top:10px}.contact-scene{display:block;min-height:610px}.contact-portrait{width:100%;height:310px;opacity:.7;mask-image:linear-gradient(to bottom,#000 28%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 28%,transparent 100%)}.contact-scene-copy{position:relative;width:100%;margin-left:0;padding:270px 24px 100px}.contact-signature{font-size:10px;letter-spacing:.14em}.contact-scene h2{font-size:clamp(48px,13.8vw,90px);margin:20px 0 28px;letter-spacing:-.065em}.contact-scene .contact-links{gap:20px}.contact-scene .contact-link{font-size:10px;gap:5px;padding:13px 0 16px;min-height:48px}.contact-scene .contact-link-arrow{font-size:19px}.contact-scene footer{margin-top:45px;font-size:8px}.contact-widget{bottom:max(14px,env(safe-area-inset-bottom));left:50%;right:auto}.contact-toggle{padding:12px 19px;min-height:46px;font-size:9px;gap:20px}}
@media(prefers-reduced-motion:reduce){.contact-panel{animation:none}}

/* Prepared assets v3.1: matched canvas coordinates, no independent cover crops. */
.profile-workflow{--profile-height:calc(100vw * 607 / 1774)}
.profile{background:#bcbcbc}
.profile-copy{width:30%;padding-top:clamp(35px,4vw,70px)}
.profile h2{font-size:clamp(48px,5.1vw,88px)}
.profile-description{font-size:clamp(14px,1.15vw,18px)}
.profile-photo,.profile-foreground{width:100%;right:0;top:0;mask:none;-webkit-mask:none;filter:grayscale(1)}
.profile-photo{height:var(--profile-height)}
.profile-photo img,.profile-foreground img{width:100%;height:auto;display:block}
.profile-photo{z-index:0}.profile-copy{z-index:1}
.profile-photo .mobile-arm{display:none}
.workflow{padding-top:calc(100vw * 186 / 1774 + 26px)}
.contact-scene{min-height:0;height:clamp(400px,38.89vw,560px)}
.contact-portrait{width:100%;height:100%;object-fit:cover;object-position:left center;mask:none;-webkit-mask:none}
.contact-scene-copy{width:62%;margin-left:38%;padding:44px var(--gutter) 65px 0}
.contact-scene h2{font-size:clamp(60px,7.8vw,120px);margin:24px 0 25px}
.contact-scene footer{margin-top:46px}
@media(max-width:1100px){
.profile{height:auto}.profile-copy{width:100%;padding:38px 24px 24px}
.profile h2{font-size:clamp(53px,10vw,80px)}.profile-description{font-size:15px}
.profile-photo{position:relative;height:auto;aspect-ratio:1774/793;clip-path:none;overflow:hidden}
.profile-photo .mobile-arm{display:block;position:absolute;inset:0;width:100%;height:auto}
.profile-foreground{display:none}.profile-photo{background:#f7f7f7}
.workflow{padding-top:36px;background:#f7f7f7}
.contact-scene{height:auto;min-height:460px}
.contact-portrait{width:100%;height:100%;object-fit:cover;object-position:23% center;opacity:.45}
.contact-scene-copy{width:100%;margin:0;padding:90px 24px 95px}
.contact-scene h2{font-size:clamp(48px,13.8vw,90px);margin:24px 0 26px}
.contact-scene footer{margin-top:48px}
}

@media(min-width:1101px){.hero-bottom{bottom:100px}.contact-scene{height:clamp(360px,34vw,490px)}.contact-scene-copy{width:56%;margin-left:44%}.contact-scene h2{font-size:7vw}.contact-scene .contact-links{gap:36px}}

/* Supplied registered PNG layers; no approximate silhouette masks. */
@media(max-width:1100px){.profile-photo{aspect-ratio:1774/887}}
/* Keep the prepared elbow clear of the process text. */
@media(min-width:1101px){.workflow{padding-top:calc(100vw * 280 / 1774 + 26px)}}
@media(max-width:1100px){
.profile-photo{background:#f7f7f7}
.profile-photo:before{content:"";position:absolute;left:0;right:0;top:0;height:68.433%;background:#bcbcbc}
.profile-photo>img:first-child{position:relative;clip-path:inset(0 0 31.567% 0)}
}

/* Both supplied canvases share one scale and origin; silhouette alpha is untouched. */
@media(min-width:1101px){
.profile-workflow{--portrait-width:73vw;--portrait-top:calc(var(--profile-height) + 50px - var(--portrait-width) * 874 / 1774)}
.profile-photo,.profile-foreground{width:var(--portrait-width);top:var(--portrait-top);right:0}
.workflow{padding-top:86px}
}
@media(max-width:1100px){
.profile-photo{aspect-ratio:auto;height:36.5vw}
.profile-photo>img:first-child{width:73%;margin-left:auto}
.profile-photo .mobile-arm{width:73%;left:auto;right:0}
}

/* Contact shadow is isolated below the section boundary, never over the grey wall. */
.profile-arm-shadow{display:none;pointer-events:none}
@media(min-width:1101px){
.profile-workflow{--portrait-drop:80px;--portrait-top:calc(var(--profile-height) + 50px - var(--portrait-width) * 874 / 1774 + var(--portrait-drop))}
.profile-arm-shadow{display:block;position:absolute;inset:0;z-index:3;overflow:hidden;clip-path:inset(var(--profile-height) 0 0 0)}
.profile-arm-shadow img{position:absolute;right:0;top:calc(var(--portrait-top) + 7px);width:var(--portrait-width);height:auto;filter:brightness(0) blur(9px);opacity:.2}
.profile-foreground{z-index:4}
}

@media(max-width:1100px){
.profile{overflow:visible}
.profile-photo{overflow:visible}
.profile-photo>img:first-child{transform:translateY(0);clip-path:inset(0 0 31.567% 0)}
.profile-photo .mobile-arm{transform:translateY(0);z-index:4}
.mobile-arm-shadow{position:absolute;inset:0 0 -45px;overflow:hidden;clip-path:inset(calc(36.5vw * .68433) 0 0 0);z-index:3;pointer-events:none}
.mobile-arm-shadow img{position:absolute;top:5px;right:0;width:73%;height:auto;filter:brightness(0) blur(5px);opacity:.18}
}
@media(min-width:1101px){.mobile-arm-shadow{display:none}}

@media(max-width:1100px){.profile-photo{z-index:auto;filter:none}.profile-photo>img{filter:grayscale(1)}}

/* Two independent alpha-derived shadows, inside the existing white-only clip. */
@media(min-width:1101px){
.profile-arm-shadow .arm-shadow-cast{top:calc(var(--portrait-top) + 12px);right:-9px;filter:brightness(0) blur(12px);opacity:.32}
.profile-arm-shadow .arm-shadow-contact{top:calc(var(--portrait-top) + 3px);right:-2px;filter:brightness(0) blur(3px);opacity:.34}
}
@media(max-width:1100px){
.mobile-arm-shadow .arm-shadow-cast{top:8px;right:-5px;filter:brightness(0) blur(7px);opacity:.32}
.mobile-arm-shadow .arm-shadow-contact{top:2px;right:-1px;filter:brightness(0) blur(2px);opacity:.34}
}

/* Shared origin for the registered portrait canvases and both shadows. */
@media(min-width:1101px){
.profile-workflow{--portrait-left-shift:0px}
.profile-photo,.profile-foreground{right:var(--portrait-left-shift)}
.profile-arm-shadow .arm-shadow-cast{right:calc(var(--portrait-left-shift) - 9px)}
.profile-arm-shadow .arm-shadow-contact{right:calc(var(--portrait-left-shift) - 2px)}
/* Reserve room above the steps for the approved elbow overlap. */
.workflow{padding-top:166px;padding-bottom:82px}
.workflow-grid{margin-top:60px}
}

/* Let process copy pass the floating contact control without being obscured. */
.contact-widget.is-over-process-copy{visibility:hidden;pointer-events:none}

/* Bring the intact text block closer to the portrait; ease the shift on narrow desktops. */
@media(min-width:1101px){
.profile-copy{transform:translateX(clamp(0px,calc((100vw - 1100px) * .7),175px))}
}

/* Reframe the uncropped original portrait, preserving its natural proportions. */
.contact-portrait{
 width:clamp(440px,40vw,640px);height:auto;max-width:none;
 left:clamp(-180px,-10vw,-110px);top:50%;transform:translateY(-50%);
 object-fit:contain;object-position:center;opacity:1;filter:grayscale(1);
 mask-image:linear-gradient(to right,#000 0%,#000 60%,transparent 100%);
 -webkit-mask-image:linear-gradient(to right,#000 0%,#000 60%,transparent 100%);
}
@media(max-width:1100px){
 .contact-portrait{
  width:270px;left:-110px;top:-30px;transform:none;opacity:.4;
  mask-image:linear-gradient(to right,#000 35%,transparent 100%),linear-gradient(to bottom,#000 20%,transparent 75%);
  -webkit-mask-image:linear-gradient(to right,#000 35%,transparent 100%),linear-gradient(to bottom,#000 20%,transparent 75%);
  mask-composite:intersect;-webkit-mask-composite:source-in;
 }
}

/* Center the unchanged contact composition within the black area after the portrait. */
@media(min-width:1101px){
 .contact-scene{--contact-photo-edge:calc(clamp(440px,40vw,640px) + clamp(-180px,-10vw,-110px))}
 .contact-scene-copy{margin-left:calc((100% + var(--contact-photo-edge) - 56vw + var(--gutter)) / 2)}
 .contact-widget.is-over-contacts{left:var(--contact-center)}
}

/* Original transparent wordmark: centered independently of the photo and title. */
.hero-logo{position:absolute;z-index:2;left:50%;top:36.5%;width:220px;height:auto;transform:translate(-50%,-50%);pointer-events:none}
/* V4.1: keep the original desktop composition; fit the mobile wordmark on one line. */
@media(max-width:699px){
 .hero h1{top:43%;left:12px;width:calc(100% - 24px);font-size:13vw;line-height:1;letter-spacing:-.065em;white-space:nowrap}
 .hero h1 span,.hero h1 span:first-child{display:inline;font-size:inherit;margin:0}
 .hero-logo{top:36.5%;width:clamp(100px,34vw,150px)}
}
/* Short landscape screens: keep the composition above the fixed contact control. */
@media(max-width:999px) and (orientation:landscape) and (max-height:500px){
 .hero{height:100svh;min-height:320px;max-height:none}
}

/* V4.8: quieter portrait scale; keep the established contact text coordinates. */
@media(min-width:1101px){
 .contact-portrait{width:clamp(360.8px,32.8vw,524.8px);left:calc(clamp(-180px,-10vw,-110px) + clamp(440px,40vw,640px)*.09)}
}
@media(max-width:1100px){
 .contact-portrait{width:222px;left:-86px;top:-10px}
}
