
/* ASCENDHQ EDITORIAL V2 — visual system refinements; other pages retain original rules */
:root{--bg:#fbfbfa;--ink:#111314;--mute:#797b7e;--faint:#d8d8da;--line:#e3e4e3;--soft:#f1f1ee;--accent:#3048fe}
body{background:var(--bg)}
.top .wrap{height:76px}
.dock{background:#131618;box-shadow:0 16px 45px rgba(18,20,22,.16);bottom:calc(22px + env(safe-area-inset-bottom,0px))}
.dock button{transition:color .22s ease,transform .18s ease}
.dock .key{display:none}
.page#home{overflow:hidden;position:relative}
#home .home{
  min-height:calc(100svh - 76px - 88px);
  padding-top:clamp(47px,6.4vh,92px);
  display:flex;flex-direction:column;justify-content:space-between;
  gap:clamp(25px,3.5vh,60px);
  position:relative;isolation:isolate;
}
#home .home-visual{position:absolute;inset:-22px calc(-1 * var(--gr)) auto auto;width:min(43.5vw,630px);height:clamp(565px,69vh,815px);pointer-events:none;z-index:1;overflow:visible;}
#home .home-visual::after{content:'';position:absolute;inset:auto 0 0 0;height:7%;background:linear-gradient(0deg,var(--bg),transparent);pointer-events:none}
#home .hero-portrait{display:block;width:100%;height:100%;object-fit:contain;object-position:right bottom;opacity:1;transform-origin:55% 72%;will-change:transform,opacity,clip-path;filter:contrast(1.045);}
#home .hero-topline{position:relative;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:36px;padding-right:clamp(0px,2vw,16px)}
#home .quote{display:flex;align-items:center;gap:15px;color:#717579;font-size:clamp(14px,1.26vw,18px);font-weight:450;letter-spacing:-.01em;max-width:60%;}
#home .quote:before{content:'';display:block;flex:none;width:35px;height:1.5px;background:var(--ink)}
#home .quote .blink{color:var(--accent);margin-left:2px;animation:blink .68s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
#home .hero-edition{color:#8b8e91;font-size:10px;letter-spacing:1.6px;font-weight:650;white-space:nowrap;}
#home .hero-middle{position:relative;z-index:5;flex:1;min-height:clamp(270px,37vh,480px);display:flex;align-items:flex-end;padding-bottom:clamp(12px,2.7vh,30px)}
#home .hero{font-family:var(--font);font-weight:660;letter-spacing:-.09em;line-height:.93;font-size:clamp(80px,10.65vw,166px);display:flex;align-items:center;gap:clamp(5px,.5vw,10px);flex-wrap:nowrap;margin:0 0 0 -.06em;white-space:nowrap;position:relative;max-width:100%;}
#home .hero .im-part,#home .hero .tosin-part{display:inline-block;transform-origin:bottom left;will-change:transform,opacity,filter}
#home .hero .tosin-part{margin-left:-.015em}
#home .cap{position:relative;width:clamp(0px,0vw,0px);height:.77em;border-radius:999px;background:#efefeb;display:inline-block;flex:none;overflow:hidden;vertical-align:middle;margin:0 .065em 0 .06em;box-shadow:inset 0 0 0 1px rgba(21,23,23,.035);will-change:width,transform}
#home .cap img{position:absolute;width:100%;height:100%;left:0;top:0;object-fit:cover;object-position:center;max-width:none;transform:scale(1);filter:grayscale(1) contrast(1.07);transition:transform .55s cubic-bezier(.15,.8,.2,1)}
#home .cap:hover img{transform:scale(1.075)}
#home .cap::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;border:1px solid rgba(22,27,24,.07)}
#home .home-bottom{z-index:6;position:relative;gap:clamp(16px,3vw,50px);padding-top:clamp(25px,3vh,34px);grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.13fr);padding-bottom:clamp(30px,4vh,55px)}
#home .home-bottom .identity{max-width:17ch;font-size:clamp(23px,2.6vw,38px);letter-spacing:-.058em;line-height:1.09;font-weight:550}
#home .home-bottom .domains{max-width:28ch;font-size:clamp(17px,1.55vw,22px);color:#73777a;line-height:1.42}
#home .home-bottom .domains .k{color:#25282c}
#home .home-bottom .col3{gap:18px}
#home .home-bottom .value{max-width:36ch;font-size:clamp(15px,1.33vw,18px);line-height:1.56}
#home .home-bottom .actions{gap:8px}
#home .home-bottom .btn{font-size:clamp(12px,1.03vw,15px);padding-inline:clamp(13px,1.5vw,23px);min-height:46px}
#home .home-bottom .rule{background:#cecfcc}
#home .hero-portrait.ready{clip-path:inset(0 0 0 0)}
/* On desktop image lives behind the headline; a clean text zone remains on the left. */
@media(min-width:1400px){#home .hero-middle{min-height:clamp(335px,39vh,505px)}#home .hero{font-size:clamp(105px,10.5vw,166px)}}
@media(max-width:1140px){#home .home-visual{right:calc(-1 * var(--gr));width:min(51vw,600px);height:clamp(520px,65vh,720px)}#home .hero{font-size:clamp(72px,10.35vw,118px)}#home .home-bottom{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}#home .col3{grid-column:1/-1;display:flex;flex-direction:row;justify-content:space-between;align-items:center}#home .col3 .value{max-width:39ch}#home .col3 .actions{flex:none}}
@media(max-width:700px){
 .top .wrap{height:64px}
 #home .home{min-height:calc(100svh - 64px - 92px);padding-top:28px;gap:24px}
 #home .home-visual{top:12px;right:-18px;width:min(77vw,385px);height:clamp(325px,48vh,520px);z-index:1}
 #home .hero-topline{align-items:flex-start;gap:8px}
 #home .hero-edition{display:none}
 #home .quote{max-width:168px;font-size:11px;line-height:1.4;align-items:flex-start;gap:9px}
 #home .quote:before{width:20px;margin-top:8px}
 #home .hero-middle{min-height:clamp(350px,46vh,540px);align-items:flex-end;padding-bottom:16px}
 #home .hero{font-size:clamp(67px,14.5vw,100px);display:block;line-height:1.04;letter-spacing:-.075em;white-space:normal;margin:0;}
 #home .hero .im-part{display:inline-block}
 #home .hero .tosin-part{display:block;margin-top:-.10em}
 #home .cap{height:.72em;margin-left:.12em;margin-right:0;vertical-align:-.09em}
 #home .home-bottom{grid-template-columns:1fr;gap:17px;padding-top:22px;padding-bottom:82px}
 #home .home-bottom .identity{max-width:22ch;font-size:clamp(24px,6.2vw,36px)}
 #home .home-bottom .domains{max-width:42ch;font-size:clamp(16px,4vw,20px)}
 #home .home-bottom .col3{grid-column:1;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
 #home .home-bottom .value{font-size:15px;max-width:38ch}
 #home .home-bottom .actions{width:100%}
 #home .home-bottom .btn{font-size:13px;min-height:45px}
 .dock{bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:420px){#home .home-visual{right:-35px;width:82vw;height:370px;top:0}#home .hero-middle{min-height:300px}#home .hero{font-size:clamp(61px,15vw,77px)}#home .home-bottom .identity{font-size:25px}#home .quote{font-size:11px}#home .home-bottom .actions .btn{font-size:12px;padding-inline:10px}}
@media(prefers-reduced-motion:reduce){#home .hero .im-part,#home .hero .tosin-part,#home .hero-portrait{opacity:1!important;transform:none!important;clip-path:none!important}#home .cap{width:1.72em!important}#home .quote .blink{display:none}}

/* V2.1: readable introduction; portrait cannot compete with the third column.
   Decorative portrait stays in hero. The introduction occupies a separate paper surface,
   fading in gently at the section boundary rather than letting black clothing sit behind text. */
#home .home-bottom{isolation:isolate;background:var(--bg)}
#home .home-bottom::before{
 content:"";position:absolute;left:calc(-1 * var(--gl));right:calc(-1 * var(--gr));
 top:-105px;bottom:-100px;z-index:-1;pointer-events:none;
 background:linear-gradient(to bottom,rgba(251,251,250,0) 0px,rgba(251,251,250,.82) 65px,var(--bg) 105px,var(--bg) 100%);
}
/* At narrow sizes, retain a clean white background behind every introduction line. */
@media (max-width:700px){
 #home .home-bottom::before{top:-66px;background:linear-gradient(to bottom,rgba(251,251,250,0),var(--bg) 66px,var(--bg) 100%)}
}

/* Prepare the homepage words for the one-time, in-view blur reveal. */
#home.blur-await .hero .im-part,#home.blur-await .hero .tosin-part{filter:blur(10px)}
@media(prefers-reduced-motion:no-preference){
 #home.blur-await .hero .im-part,#home.blur-await .hero .tosin-part{opacity:0;transform:translateY(-50px)}
}

/* The mascot video sits behind the homepage text and never blocks controls. */
#home .home{background:var(--bg)}
#home .mascot-stage{position:absolute;z-index:2;right:clamp(15px,3vw,48px);top:0;width:clamp(180px,22vw,310px);aspect-ratio:9/16;pointer-events:none;overflow:hidden}
#home .mascot-stage[hidden]{display:none!important}
#home .mascot-stage img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:700px){#home .mascot-stage{width:clamp(135px,43vw,185px);right:0;top:0}}
/* Keep the mascot behind the text, but in front of its background as he exits. */
#home .home-bottom{z-index:auto;isolation:auto;background:transparent}
#home .home-bottom>*{position:relative;z-index:8}
#home .home-bottom>.rule{position:absolute}
#home .mascot-stage{z-index:7}
#home .mascot-stage video{display:block;width:100%;height:100%;object-fit:contain}
#home .mascot-stage video[hidden],#home .mascot-stage img[hidden]{display:none!important}

#home .mascot-stage{opacity:1;transition:opacity .22s ease}
#home .mascot-stage.is-finishing{opacity:0}
