/* The original site owns the hero layout; this file only positions the animated portrait. */
#anton-canvas{position:absolute;z-index:2;pointer-events:none;opacity:0;object-fit:contain;transform-origin:50% 65%;will-change:transform}
#anton-canvas.is-ready{opacity:1}
.anton-aura{position:absolute;z-index:0;pointer-events:none;opacity:0;filter:blur(var(--aura-blur,72px))}
.anton-aura::before{content:'';position:absolute;inset:0;background:#2463f5;clip-path:var(--aura-crop,none);
  -webkit-mask:var(--aura-image) center/100% 100% no-repeat;
  mask:var(--aura-image) center/100% 100% no-repeat}
#anton-canvas,#anton-fullbody{filter:drop-shadow(0 0 4px rgba(90,165,255,.72)) drop-shadow(0 0 18px rgba(27,91,255,.46))}
/* Preserve the complete character on desktop and mobile. */
.hero-cut::after{display:none!important}
#anton-image,#anton-canvas{-webkit-mask-image:none!important;mask-image:none!important}
@media(prefers-reduced-motion:reduce){#anton-canvas{will-change:auto}}

/* The old portrait is an invisible anchor: the approved head keeps its scale and position. */
.hero-figure-scene{position:relative;isolation:isolate;background:#dceefb}
.hero-figure-scene .hero-cut{background:#dceefb!important;overflow:hidden!important}
#anton-fullbody{position:absolute;z-index:2;pointer-events:none;display:block;max-width:none;max-height:none;opacity:0;object-fit:contain}

/* A fine ivory edge follows the artwork itself. */
.hero-figure-scene{overflow:clip}
.halo-logo[data-logo]{--logo-size:clamp(110px,12vw,184px);width:calc(var(--logo-size) / 1.5)!important;
  filter:drop-shadow(.8px 0 0 #f7f5ee) drop-shadow(-.8px 0 0 #f7f5ee)
    drop-shadow(0 .8px 0 #f7f5ee) drop-shadow(0 -.8px 0 #f7f5ee)
    drop-shadow(0 3px 3px rgba(38,25,17,.22))}
.halo-logo[data-logo="synapt"],.halo-logo[data-logo="drive"],.halo-logo[data-logo="automy"],.halo-logo[data-logo="medialab"]{--logo-size:clamp(78px,7vw,108px)}
.halo-logo[data-logo="coffee"]{--logo-size:clamp(120px,13vw,204px)}
.halo-logo__art{display:block;position:relative;width:100%;aspect-ratio:var(--art-aspect);overflow:hidden}
.halo-logo__art img{position:absolute;display:block;width:var(--image-width);max-width:none;height:auto;
  left:var(--image-left);top:var(--image-top)}

/* The next section owns its heading and has no overlap with the hero. */
#help.help-wrap{padding-top:48px}
#help .help-title{margin:0 0 32px;color:#111;font-size:clamp(28px,5.8vw,100px);line-height:1.04;letter-spacing:-.045em}
/* The front edge follows the deck's rounded silhouette. */
#help .lp-deck::after{display:none}
#help .lp-deck{box-shadow:inset 0 -3px 0 #aaaab0,0 30px 40px -18px rgba(20,18,12,.35)}
@media(max-width:640px){#help .help-title{font-size:clamp(28px,7vw,36px)}}

/* Local comparison controls for the requested face variants. */
.face-picker{position:fixed;z-index:100;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;
  padding:6px;border:1px solid #dfddd6;border-radius:100px;background:rgba(255,255,255,.96);box-shadow:0 4px 24px #00000012;
  font:500 13px/1.2 Arial,sans-serif;white-space:nowrap}
.face-picker>span{padding:0 10px;color:#757570}
.face-picker[hidden]{display:none}
.face-picker a{padding:10px 14px;border-radius:100px;text-decoration:none;color:#252723}
.face-picker a:hover{background:#f1f0eb}.face-picker a[aria-current]{background:#242722;color:#fff}
.face-picker a:focus-visible{outline:2px solid #588d3c;outline-offset:2px}
@media(max-width:640px){.face-picker{bottom:10px;max-width:calc(100% - 16px);gap:0;padding:4px}.face-picker>span{display:none}.face-picker a{padding:10px 12px;font-size:12px}}
@media print{.face-picker{display:none}}


/* Synapt uses the same lime mark in the hero, laptop and project map. */
img.synapt-lime{filter:none}

/* Laptop proportions do not collapse when the window labels become shorter. */
@media(min-width:901px){
  #help .lp{width:calc(100% - 96px);max-width:1040px}
  #help .lp-screen{aspect-ratio:16/10;display:flex;flex-direction:column;padding-bottom:0}
  #help .lp-menubar{flex-shrink:0}
  #help .lp-wins{flex:1;align-content:center;gap:18px 14px;padding:28px 30px}
  #help .lp-win{min-height:clamp(140px,12vw,176px)}
  #help .lp-body{flex:1;justify-content:space-between}
  #help .lp-deck{height:175px}
}
@media(min-width:901px){
  #help .lp{width:calc(100% - 160px)}
  #help .lp-menubar{font-size:12px;padding:7px 14px}
  #help .lp-body{justify-content:center;gap:18px;padding:18px}
  #help .lp-body .rc-task{font-size:clamp(18px,1.5vw,22px);line-height:1.2}
  #help .lp-body .rc-more{font-size:12px}
  #help .lp-bar{padding:9px 12px}
}

/* A separate, static background transition between the hero and the white content. */
.hero-background-transition{display:block;position:relative;height:32px;flex:none;pointer-events:none;
  background:linear-gradient(180deg,#dceefb 0%,#e8f3fb 36%,#f4f8fb 72%,#fafafa 100%)}

/* Fit the complete desktop laptop and heading into one available viewport. */
@media(min-width:901px){
  #help.help-wrap{height:calc(100svh - var(--help-nav-height,54px));padding:18px 24px 20px;display:flex;flex-direction:column;scroll-margin-top:max(0px,calc(var(--help-nav-height,54px) - var(--help-scroll-padding,0px)))}
  #help .help-title{font-size:clamp(32px,6.5svh,64px);line-height:1.04;margin:0 0 16px;flex:none}
  #help .lp-fit{position:relative;flex:1;min-height:0;width:100%}
  #help .lp{position:absolute;top:0;left:50%;margin:0;width:var(--laptop-base-width,1040px);max-width:none;transform:translateX(-50%) scale(var(--laptop-fit-scale,.7));transform-origin:50% 0}
}
@media(max-width:900px){#help .lp-fit{display:contents}}

/* The actual photograph appears under a soft cursor brush, in the same crop. */
#anton-photo-reveal{position:absolute;z-index:3;pointer-events:none;display:block;max-width:none;max-height:none;filter:none}

/* Keep the mobile hero height stable when browser bars appear or disappear.
   hero-mobfix measures it on load and width/orientation changes only. */
@media(max-width:900px){
  .hero-home .hero-scroll{height:auto!important}
  .hero-home .hero-figure-scene .hero-cut{position:relative!important;top:auto!important;height:var(--hero-height,100svh)!important;min-height:0!important;box-sizing:border-box;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;padding:28px 20px max(24px,env(safe-area-inset-bottom))!important}
  .hero-home .hero-cut__name{position:relative!important;inset:auto!important;transform:none!important;white-space:normal!important;width:100%;text-align:center!important;font-size:clamp(32px,10.4vw,58px)!important;line-height:1.05!important;order:1;z-index:4}
  .hero-home .hero-badge{position:static!important;display:flex!important;left:auto!important;width:fit-content!important;max-width:100%!important;box-sizing:border-box;justify-content:center;flex-wrap:wrap;gap:10px!important;padding:10px 14px!important;margin:14px auto 0!important;font-size:clamp(12px,3.4vw,15px)!important}
  .hero-home .hero-badge .hb-label{font-size:10px!important;letter-spacing:.1em}
  .hero-home .hero-badge .hb-item{gap:6px!important}
  .hero-home .hero-badge .hb-item img{width:24px!important;height:24px!important}
  .hero-home .hero-cut__name,.hero-home .hero-social,.hero-home .hero-cut__rightcol{flex:0 0 auto}
  .hero-home #anton-image{position:static!important;transform:none!important;width:70%!important;max-width:360px!important;height:0!important;min-height:0!important;max-height:none!important;flex:1 1 0;object-fit:contain;margin:44px auto 0!important;order:3}
  .hero-home .halo-logo{display:none!important}
  .hero-home .hero-social{position:relative!important;inset:auto!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:center!important;width:100%;gap:clamp(10px,4vw,24px)!important;margin:12px auto 0!important;order:4}
  .hero-home .hero-social a{width:auto!important;min-height:40px;font-size:18px!important;gap:6px!important;justify-content:center!important}
  .hero-home .hero-social svg{width:22px!important;height:22px!important}
  .hero-home .hero-cut__rightcol{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:420px!important;margin:12px auto 0!important;gap:10px;order:5}
  .hero-home .hero-cut__rightcol a{min-height:50px;font-size:clamp(14px,3.8vw,16px)!important;padding:14px 18px!important;gap:10px!important;white-space:normal}
  .hero-home .hero-cut__rightcol a svg{width:18px!important;height:18px!important}
  .hero-home .hero-cut__rightcol .d span.s{gap:8px}
  .hero-home .face-picker{display:none!important}
  .hero-home .hero-background-transition{height:24px}
  .hero-home #help.help-wrap{height:auto;padding:24px 16px 32px}
  .hero-home #help .help-title{font-size:clamp(26px,6.8vw,36px);margin-bottom:24px}
  .hero-home #help .lp{width:100%;max-width:360px}
  .hero-home header.fixed{display:block!important}
  .hero-home header.fixed>div{padding:4px 12px!important;height:54px!important}
  .hero-home header.fixed nav{display:flex!important;justify-content:center;width:100%;gap:0}
  .hero-home header.fixed nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 6px!important;font-size:13px!important;white-space:nowrap}
  .hero-home header.fixed nav a:last-child,.hero-home header.fixed button{display:none!important}
  .hero-home section[id]{scroll-margin-top:70px}
}
@media(min-width:600px) and (max-width:900px) and (max-height:540px){
  .hero-home .hero-figure-scene .hero-cut{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:12px 20px;padding:16px 20px!important}
  .hero-home .hero-cut__name{grid-column:1/-1;grid-row:1;font-size:34px!important}
  .hero-home .hero-badge{margin-top:8px!important;padding:8px 12px!important}
  .hero-home .hero-badge .hb-item img{width:20px!important;height:20px!important}
  .hero-home #anton-image{grid-column:1;grid-row:2/4;align-self:stretch;width:100%!important;max-width:none!important;height:100%!important;margin:0!important}
  .hero-home .hero-social{grid-column:2;grid-row:2;margin:0!important;gap:10px!important}
  .hero-home .hero-social a{min-height:36px;font-size:15px!important}
  .hero-home .hero-social svg{width:18px!important;height:18px!important}
  .hero-home .hero-cut__rightcol{grid-column:2;grid-row:3;align-self:start;max-width:none!important;margin:0!important;gap:8px}
  .hero-home .hero-cut__rightcol a{min-height:46px;font-size:14px!important;padding:12px 14px!important}
}
@media(max-width:640px){
  .hero-home #about,.hero-home #media,.hero-home #contact{padding:36px 16px}
  .hero-home #about{padding-bottom:0!important}
  .hero-home #social{padding-block:36px}
  .hero-home #social>div{padding-inline:16px}
  .hero-home #contact>div{padding:24px;border-radius:30px}
  .hero-home #contact h2{font-size:clamp(27px,7.2vw,32px)!important;line-height:1.08!important}
  .hero-home #contact a{padding-inline:16px;min-height:52px}
  .hero-home .fz-block{justify-content:center}
  .hero-home .fz-links{width:100%;align-items:center}
  .hero-home .fz-links a{min-height:44px;justify-content:center}
  .hero-home footer a{overflow-wrap:anywhere}
}

/* Keep the biography close to the hero, with its photo aligned to the heading. */
.hero-home #about{padding-top:32px}
@media(min-width:1024px){.hero-home #about[data-kbg] .kbg-photo{top:32px;transform:none}}

/* Separate the biography footnote from the next section without shrinking the laptop. */
.hero-home #help.help-wrap{margin-top:64px}
@media(max-width:900px){.hero-home #help.help-wrap{margin-top:48px}}

/* Brand marks sit directly on the cards, without white icon tiles. */
.hero-home #help .lp-ico{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;object-fit:contain}
.hero-home #help .lp-ico.lp-ico--drive{object-fit:cover}

/* Mobile biography continues directly from the heading to the facts. */
@media(max-width:900px){
  .hero-home #about .about-route-desktop{display:none!important}
  .hero-home #about #about-head{margin-bottom:0!important}
  .hero-home #about #about-facts{margin-top:24px!important}
}
