/* One continuous scene; only the live HTML copy enters. */
/* Full-bleed desk: the scene is anchored to the right viewport edge and the
   paper continues left under the copy, which shares the navigation grid. */
/* Up to 1600 px the scene keeps its laptop ratio (62.5vw). Wider screens grow
   with the window height, so the copy stays on the scene's empty paper. */
.hero{--hero-h:min(62.5vw,max(min(1000px,62.5vw),calc(100svh - 40px)),1400px);position:relative;min-height:0;padding:0;overflow:clip;display:grid;align-items:center;background:#fffaf3}
.hero-layout{position:relative;width:100%;height:var(--hero-h);isolation:isolate;margin-inline:auto}
.hero-copy{position:relative;z-index:3;width:calc(var(--hero-h) * .448);max-width:none;margin:0 0 0 calc((100% - min(1380px,100% - 112px)) / 2);padding:3.5vw 0 0;text-align:left;box-sizing:content-box}
.hero .audience{font-size:.75rem;font-weight:500;line-height:1.5;color:var(--copper);margin:0 0 1.25rem}
.hero h1{font-family:Manrope,Inter,sans-serif;font-size:clamp(2.5rem,calc(var(--hero-h) * .0624),5.25rem);font-weight:600;line-height:1.08;letter-spacing:-.037em;margin:0;max-width:none;text-wrap:initial}
.hero h1>span{display:block}
.hero-lead{font-size:clamp(.875rem,calc(var(--hero-h) * .0176),1.375rem);line-height:1.55;margin:1.3rem 0 0;max-width:100%;color:var(--ink-soft)}
.hero-actions{justify-content:flex-start;gap:1rem 1.25rem;margin-top:1.4rem;flex-wrap:wrap}
.hero-actions .button{min-height:48px;padding:12px 15px;font-size:.875rem}
.hero-actions .text-link{font-size:.8125rem}
.hero-assurance{font-size:.6875rem;line-height:1.4;margin:.7rem 0 0;color:var(--muted)}
.hero-practice-figure{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;perspective:none;z-index:1;mix-blend-mode:normal!important}
.hero-stage-window{position:absolute;inset:0}
.hero-desk-art,.hero-desk-art img{display:block;width:100%;height:100%}
.hero-desk-art img{object-fit:cover;object-position:right bottom;border:0;border-radius:0;mix-blend-mode:normal;filter:none;-webkit-mask-image:linear-gradient(to top,transparent,#000 5%);mask-image:linear-gradient(to top,transparent,#000 5%)}
/* 1096/992 of the scene height: phone and tablet, measured from the right edge. */
.hero-practice-figure .screen-zoom-hit{inset:0 0 0 auto;width:min(100%,calc(var(--hero-h) * 1.105));height:94%;border-radius:0}
.hero-practice-figure .figure-foot{position:absolute;bottom:1%;right:3%;padding:0;color:var(--muted);font-size:.625rem;line-height:1.4}
html[data-hero-intro="pending"] [data-hero-copy-part]{opacity:0;transform:translateY(14px)}
@media(max-width:1199px){
 .hero{display:block;min-height:0;padding:1.5rem 0 1.25rem}
 .hero-layout{width:100%;height:auto;aspect-ratio:auto;padding-bottom:0}
 .hero-copy{width:auto;margin:0;padding:0 24px;box-sizing:border-box}
 .hero .audience{font-size:.6875rem;margin-bottom:1rem}
 .hero h1{font-size:clamp(2.6rem,10.4vw,4.1rem);line-height:1.08;letter-spacing:-.035em}
 .hero h1>span{max-width:none}
 .hero-lead{font-size:.9375rem;max-width:32rem;margin-top:1.1rem;line-height:1.55}
 .hero-actions{gap:.8rem 1.1rem;margin-top:1.15rem}
 .hero-actions .button{font-size:.875rem;padding:11px 16px}
 .hero-actions .text-link{font-size:.8125rem}
 .hero-assurance{font-size:.625rem;margin:.65rem 0 0}
 .hero-practice-figure{position:relative;inset:auto;height:auto;aspect-ratio:1/1.06;margin-top:1.2rem}
 .hero-stage-window{bottom:1.4rem}
 .hero-desk-art img{object-fit:contain;object-position:bottom;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 2%,#000 96%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 2%,#000 96%,transparent)}
 .hero-practice-figure .screen-zoom-hit{inset:0;width:100%;height:100%}
 .hero-practice-figure .figure-foot{bottom:0;left:24px;right:24px;text-align:center;font-size:.5625rem}
}
@media(prefers-reduced-motion:reduce){[data-hero-copy-part]{opacity:1!important;transform:none!important}}

@media(min-width:768px) and (max-width:1199px){.hero-copy{max-width:700px;margin-inline:auto;padding-top:1rem}.hero h1{font-size:3.6rem}.hero h1>span{display:inline}.hero h1 br{display:none}.hero-practice-figure{max-width:780px;margin-inline:auto}}

/* Large text keeps the illustration below the copy. */
.hero[data-hero-stacked]{display:block;min-height:0;padding:1.5rem 0 1.25rem}
.hero[data-hero-stacked] .hero-layout{width:100%;height:auto;aspect-ratio:auto;padding-bottom:0}
.hero[data-hero-stacked] .hero-copy{width:auto;margin:0;padding:0 24px;box-sizing:border-box}
.hero[data-hero-stacked] .audience{font-size:.6875rem;margin-bottom:1rem}
.hero[data-hero-stacked] h1{font-size:clamp(2.6rem,10.4vw,4.1rem);line-height:1.08;letter-spacing:-.035em}
.hero[data-hero-stacked] h1>span{max-width:none}
.hero[data-hero-stacked] .hero-lead{font-size:.9375rem;max-width:32rem;margin-top:1.1rem;line-height:1.55}
.hero[data-hero-stacked] .hero-actions{gap:.8rem 1.1rem;margin-top:1.15rem}
.hero[data-hero-stacked] .hero-actions .button{font-size:.875rem;padding:11px 16px}
.hero[data-hero-stacked] .hero-actions .text-link{font-size:.8125rem}
.hero[data-hero-stacked] .hero-assurance{font-size:.625rem;margin:.65rem 0 0}
.hero[data-hero-stacked] .hero-practice-figure{position:relative;inset:auto;height:auto;aspect-ratio:1/1.06;margin-top:1.2rem}
.hero[data-hero-stacked] .hero-stage-window{bottom:1.4rem}
.hero[data-hero-stacked] .hero-desk-art img{object-fit:contain;object-position:bottom;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 2%,#000 96%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 2%,#000 96%,transparent)}
.hero[data-hero-stacked] .hero-practice-figure .screen-zoom-hit{inset:0;width:100%;height:100%}
.hero[data-hero-stacked] .hero-practice-figure .figure-foot{bottom:0;left:24px;right:24px;text-align:center;font-size:.5625rem}
.hero[data-hero-stacked] .hero-copy{max-width:760px;margin-inline:auto}
.hero[data-hero-stacked] .hero-practice-figure{max-width:780px;margin-inline:auto}

/* The header sits on the hero canvas; its paper surface fades in on scroll.
   Without the observer/JS, the original solid sticky header remains readable. */
.site-header.has-scroll-surface{isolation:isolate;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;margin-bottom:calc(-1 * var(--header-height));transition:border-color .3s,box-shadow .3s}
.site-header.has-scroll-surface::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;background-color:#fffaf3f5;background-image:linear-gradient(#fffaf3e8,#fffaf3e8),url('./paper-highlight.webp'),url('./paper-shadow.webp');background-size:auto,480px 480px,480px 480px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:opacity .3s ease}
.site-header.has-scroll-surface.is-scrolled::before,.site-header.has-scroll-surface:has(details[open])::before{opacity:1}
.site-header.has-scroll-surface.is-scrolled{box-shadow:0 3px 18px #3d2a1a09}
body:has(.site-header.has-scroll-surface) .hero{padding-top:0}
@media(min-width:1200px){
 body:has(.site-header.has-scroll-surface) .hero:not([data-hero-stacked]) .hero-copy{padding-top:calc(var(--header-height) + .75vw)}
 body:has(.site-header.has-scroll-surface) .hero:not([data-hero-stacked]) h1{font-size:clamp(2.5rem,calc(var(--hero-h) * .0624),5.25rem);line-height:1.02}
 body:has(.site-header.has-scroll-surface) .hero:not([data-hero-stacked]) .hero-lead{margin-top:1rem}
 body:has(.site-header.has-scroll-surface) .hero:not([data-hero-stacked]) .hero-actions{margin-top:1.1rem}
}
body:has(.site-header.has-scroll-surface) .hero[data-hero-stacked]{padding-top:calc(var(--header-height) + 1.5rem)}
@media(max-width:1199px){body:has(.site-header.has-scroll-surface) .hero{padding-top:calc(var(--header-height) + 1.5rem)}}
@media(prefers-reduced-motion:reduce){.site-header.has-scroll-surface,.site-header.has-scroll-surface::before{transition:none}}
/* The stacked composition keeps a crop of the same desk behind navigation. */
body:has(.site-header.has-scroll-surface) .hero[data-hero-stacked]::before{content:"";position:absolute;inset:0 0 auto;height:var(--header-height);background:url('./paper-highlight.webp') left top/600px auto;pointer-events:none;mask-image:linear-gradient(#000 80%,transparent)}
@media(max-width:1199px){body:has(.site-header.has-scroll-surface) .hero::before{content:"";position:absolute;inset:0 0 auto;height:var(--header-height);background:url('./paper-highlight.webp') left top/600px auto;pointer-events:none;mask-image:linear-gradient(#000 80%,transparent)}}

/* Fit laptop copy before using the large-text stacked fallback. */
@media(min-width:1200px){
 body:has(.site-header.has-scroll-surface) .hero[data-hero-compact]:not([data-hero-stacked]) h1{font-size:clamp(2.25rem,calc(var(--hero-h) * .0552),4.6rem)}
 .hero[data-hero-compact]:not([data-hero-stacked]) .audience{font-size:.6875rem;margin-bottom:.9rem}
 .hero[data-hero-compact]:not([data-hero-stacked]) .hero-lead{font-size:.9375rem;line-height:1.5}
}

/* Honest proof next to the CTA: who builds Pro, linked to the founder story. */
.hero-founder{display:inline-flex;align-items:center;gap:.75rem;margin-top:1.4rem;color:var(--ink);text-decoration:none}
.hero-founder img{width:44px;height:44px;flex:none;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fffaf3,0 0 0 3px #e7c9a4,0 4px 10px #3d2a1a24}
.hero-founder-text{display:flex;flex-direction:column;gap:.1rem;line-height:1.3}
.hero-founder-text strong{font-size:.8125rem;font-weight:600;letter-spacing:-.005em}
.hero-founder-text span{font-size:.75rem;color:var(--muted)}
.hero-founder:hover strong,.hero-founder:focus-visible strong{text-decoration:underline;text-underline-offset:3px}
.hero[data-hero-compact] .hero-founder{margin-top:.8rem;gap:.6rem}.hero[data-hero-compact] .hero-founder img{width:36px;height:36px}.hero[data-hero-compact] .hero-assurance{margin-top:.5rem}
@media(max-width:1199px){.hero-founder{margin-top:1.1rem}}

.hero[data-hero-tight]:not([data-hero-stacked]) .hero-founder{display:none}

/* Layered desk: same cover geometry as the flat image (right-bottom anchored).
   Shown only after landing-hero-layers.mjs swaps it in. */
.hero-layers{display:none}
@media(min-width:1200px){
 .hero:not([data-hero-stacked]) .hero-layers{display:block;position:absolute;right:0;bottom:0;width:max(100%,calc(var(--hero-h) * 3));aspect-ratio:3258/1086;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s .35s;-webkit-mask-image:linear-gradient(to top,transparent,#000 5%);mask-image:linear-gradient(to top,transparent,#000 5%)}
 /* The opaque plate covers the flat image, so a cross-fade hides any resampling seam. */
 .hero[data-hero-layers]:not([data-hero-stacked]) .hero-layers{opacity:1;visibility:visible;transition:opacity .35s ease}
}
.hero-layers img{position:absolute;display:block;max-width:none;user-select:none}
.hero-layer-plate{inset:0;width:100%;height:100%}
.hero-layer{will-change:transform}
