/* Accepted Signature composition: extra viewport height belongs to the portrait. */
html[data-direction=presence] body .site-shell .site-nav{position:relative!important;inset:auto!important}
html[data-direction=presence] #top.signature-hero{
 --signature-blue:#254ebc;--signature-ink:#25231c;--signature-paper:#faf8f3;--signature-muted:#716d63;--signature-rule:#dcd9d2;
 --signature-gutter:clamp(24px,5vw,72px);--signature-type:var(--section-title-size);
 position:relative;isolation:isolate;display:grid;grid-template-rows:minmax(120px,1fr) auto auto auto;align-items:stretch;justify-content:stretch;
 height:calc(100svh - var(--signature-chrome-height,92px));min-height:0;margin:0;padding:0 var(--signature-gutter) 24px;gap:18px;
 color:var(--signature-ink);background:var(--signature-paper);overflow:hidden;touch-action:pan-y pinch-zoom;
}
#top.signature-hero::before,#top.signature-hero::after{display:none}
#top.signature-hero .signature-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-direction=presence] #top.signature-hero .clean-portrait{
 position:relative;inset:auto;order:initial;display:block;width:100%;height:100%;min-height:0;max-height:none;flex:none;margin:0;pointer-events:none;z-index:0;overflow:hidden;container-type:size;
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 58%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 58%,transparent 100%);
}
html[data-direction=presence] #top.signature-hero .clean-portrait .hero-avatar-stage{
 --hero-vertical-mask:linear-gradient(to bottom,#000 0%,#000 42%,#0008 65%,transparent 91%);
 --hero-zoom:1.5;position:absolute;inset:0 auto auto 50%;width:calc(var(--signature-avatar-width,410px) * 1.5);width:min(calc(var(--signature-avatar-width,410px) * 1.5),165cqh);height:auto;aspect-ratio:27/32;min-height:0;max-width:none;margin:0;transform:translateX(-50%);
}
/* The mask spans the full 1.5x video width; its height and the source framing
   stay unchanged. A 27:32 stage retains the virtual 9:16 frame at two-thirds width.
   Keep its top visible; only the outer portrait window crops the lower body. */
#top.signature-hero .hero-avatar-stage > video,
#top.signature-hero .hero-avatar-stage > img{left:50%;width:calc(100% / 1.5);height:67.5%;object-position:center top;transform-origin:center top;transform:translateX(-50%) scale(var(--hero-zoom,1.5)) scaleX(var(--hero-mirror,1))}
/* The files keep rows 0..863 of the original 1280-row frame. Preserve its
   virtual stage and masks; only the media box loses the invisible lower 32.5%. */
#top.signature-hero .signature-message{position:relative;z-index:2;align-self:center;width:100%;max-width:1040px;margin:0 auto;padding:0;border:0;background:none;color:inherit}
#top.signature-hero .signature-headline{display:grid;grid-template-columns:minmax(0,1fr);margin:0;padding:0;font:500 var(--signature-type)/1.08 Archivo,sans-serif;letter-spacing:-.05em;color:inherit;text-align:center;text-wrap:balance}
#top.signature-hero .signature-copy{grid-area:1/1;display:block;align-self:center;opacity:0;pointer-events:none}
#top.signature-hero .signature-copy[aria-hidden=false]{opacity:1}
#top.signature-hero .signature-emphasis{color:inherit;font:inherit;letter-spacing:inherit}
#top.signature-hero .signature-topics{position:relative;z-index:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;width:100%;max-width:980px;margin:0 auto;align-self:center}
#top.signature-hero .signature-topic{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:64px;padding:13px 8px 16px;border:0;border-bottom:1px solid var(--signature-rule);border-radius:0;background:none;color:var(--signature-muted);font:400 13px/1.4 Archivo,sans-serif;text-align:center;cursor:pointer;-webkit-tap-highlight-color:#254ebc15;touch-action:pan-y pinch-zoom}
#top.signature-hero .signature-topic svg{width:23px;height:23px;flex:none}
#top.signature-hero .signature-label{max-width:205px;text-wrap:balance}
#top.signature-hero .signature-topic[aria-selected=true]{color:var(--signature-blue);font-weight:500}
#top.signature-hero .signature-topic:hover{color:var(--signature-blue)}
#top.signature-hero .signature-progress{position:absolute;bottom:-1px;left:0;right:0;height:2px;background:currentColor;transform-origin:left center;transform:scaleX(0);pointer-events:none}
#top.signature-hero .signature-topic[aria-selected=true] .signature-progress{transform:scaleX(1)}
#top.signature-hero .signature-topic:focus-visible,#top.signature-hero .signature-message:focus-visible{outline:2px solid var(--signature-blue);outline-offset:5px}
#top.signature-hero .signature-actions{position:relative;z-index:4;display:flex;align-items:center;justify-content:center;gap:12px;align-self:end;flex-wrap:wrap;margin:0}
#top.signature-hero .signature-cta{display:inline-flex;justify-content:center;align-items:center;min-height:48px;min-width:190px;padding:12px 24px;border:1px solid #cbd6ee;border-radius:999px;background:#faf8f3;color:#1439a6;font:500 14px/1.4 Archivo,sans-serif;text-align:center;text-decoration:none;white-space:nowrap;transition:background-color 150ms,border-color 150ms;touch-action:manipulation}
#top.signature-hero .signature-cta:hover{background:#eef2fb;border-color:#254ebc}
#top.signature-hero .signature-cta:focus-visible{outline:3px solid #254ebc;outline-offset:4px}

/* A. Large type and open topic navigation share the same quiet paper. */
html[data-direction=presence] #top.signature-hero{gap:18px}
#top.signature-hero .signature-message{max-width:1040px}
#top.signature-hero .signature-actions{margin-top:4px}

#top.signature-hero .signature-label{display:block;text-transform:lowercase}
#top.signature-hero .signature-label::first-letter{text-transform:uppercase}
/* dvh follows mobile browser chrome; svh remains the fallback. Only the first
   grid row flexes, so text, navigation and actions retain their proportions. */
@supports(height:100dvh){html[data-direction=presence] #top.signature-hero{height:calc(100dvh - var(--signature-chrome-height,92px))}}
@media(min-width:901px) and (max-height:680px){
 html[data-direction=presence] #top.signature-hero{--signature-type:clamp(26px,4.3svh,34px);grid-template-rows:minmax(40px,1fr) auto auto auto;gap:10px;padding-bottom:16px}
 html[data-direction=presence] #top.signature-hero .clean-portrait .hero-avatar-stage{--signature-avatar-width:320px}
 #top.signature-hero .signature-topic{min-height:52px;padding-block:8px 12px;font-size:11px;gap:8px}
 #top.signature-hero .signature-topic svg{width:20px;height:20px}
 #top.signature-hero .signature-cta{min-height:44px;padding-block:10px;font-size:13px}
}
@media(max-width:900px){
 html[data-direction=presence] #top.signature-hero{--signature-gutter:28px;min-height:540px;grid-template-rows:minmax(100px,1fr) auto auto auto;gap:20px;padding-bottom:max(28px,env(safe-area-inset-bottom))}
 html[data-direction=presence] #top.signature-hero .clean-portrait .hero-avatar-stage{--signature-avatar-width:350px}
 #top.signature-hero .signature-headline{max-width:700px;margin:auto}
 #top.signature-hero .signature-topics{gap:18px}
 #top.signature-hero .signature-topic{min-height:74px;font-size:12px;gap:9px}
}
@media(max-width:600px){
 html[data-direction=presence] #top.signature-hero{--signature-gutter:22px;min-height:460px;grid-template-rows:minmax(70px,1fr) auto auto auto;gap:18px;padding-bottom:max(26px,env(safe-area-inset-bottom))}
 html[data-direction=presence] #top.signature-hero .clean-portrait .hero-avatar-stage{--signature-avatar-width:305px;--hero-edge-fade:24px;--hero-vertical-mask:linear-gradient(to bottom,#000 0%,#000 46%,#0008 67%,transparent 100%)}
 #top.signature-hero .signature-headline{line-height:1.11;letter-spacing:-.045em;text-wrap:balance}
 #top.signature-hero .signature-topics{gap:12px}
 #top.signature-hero .signature-topic{flex-direction:column;justify-content:flex-start;gap:10px;min-height:106px;padding:10px 0 13px;font-size:12px;line-height:1.3;text-align:center}
 #top.signature-hero .signature-topic svg{width:22px;height:22px}
 #top.signature-hero .signature-label{max-width:130px;text-wrap:balance}
 #top.signature-hero .signature-actions{gap:10px;flex-wrap:nowrap;width:100%;margin:0}
 #top.signature-hero .signature-cta{flex:1;min-width:0;min-height:46px;padding:12px 8px;font-size:12px;letter-spacing:-.02em}
}
@media(max-width:360px){
 html[data-direction=presence] #top.signature-hero{--signature-gutter:18px}
 #top.signature-hero .signature-topic{font-size:10px;gap:8px}
 #top.signature-hero .signature-cta{font-size:11px;padding-inline:6px}
}
@media(min-width:901px) and (max-height:520px){
 html[data-direction=presence] body .site-shell .site-nav{padding-block:10px!important}
 html[data-direction=presence] #top.signature-hero{--signature-type:25px;padding-bottom:12px;gap:8px;grid-template-rows:minmax(25px,1fr) auto auto auto}
 html[data-direction=presence] #top.signature-hero .clean-portrait .hero-avatar-stage{--signature-avatar-width:230px}
 #top.signature-hero .signature-topic{min-height:44px;font-size:11px;padding-block:5px 9px}
 #top.signature-hero .signature-topic svg{width:18px;height:18px}
 #top.signature-hero .signature-cta{min-height:40px;padding-block:8px}
}
/* In short portrait windows, reserve the top of the source for the whole face.
   Container sizing caps the video before it could leave only a forehead; the
   later outer fade keeps the chin clear while the inner mask fades the torso. */
@media(max-height:750px){
 html[data-direction=presence] #top.signature-hero .clean-portrait{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 100%)}
}
@media(prefers-reduced-motion:reduce){#top.signature-hero .signature-cta{transition:none}}
@media(forced-colors:active){#top.signature-hero .signature-topic[aria-selected=true]{outline:2px solid Highlight}#top.signature-hero .signature-progress{background:Highlight}}
