/* ==========================================================================
   hero · every rule is scoped under #hero.
   --u  : fluid layout unit (1px at >=1440 wide, scales with the viewport).
   --su : unit inside the illustrated desktop (680 x 620 design px).
   Animated values are CSS custom properties written by js/hero.js; every
   fallback below is the element's FINAL (resting) state, so no-JS and
   reduced-motion visitors get the complete, finished picture.
   NO GREEN / TEAL anywhere (brand rule).
   ========================================================================== */
#hero{
  --u:clamp(.5333px,.069444vw,1px);
  --su:var(--u);
  /* scene palette */
  --hs-wall:#121110;
  --hs-win:#2e2b28;     /* back windows: clearly lifted off the wallpaper */
  --hs-win-2:#383430;
  --hs-front:#4a4540;   /* the window in front is a clear step lighter again */
  --hs-front-2:#55504a;
  --hs-wline:rgba(234,227,221,.16);
  --hs-wtext:#e6ddd5;
  --hs-wmuted:#c9bfb7;   /* >= 4.5:1 on the front window (#4a4540) */
  --hs-paper:#f4efea;   /* teammate panel */
  --hs-card:#fffdfb;
  --hs-hair:#e4dbd2;
  --hs-ink:#1a1918;
  --hs-gray:#6f6862;
  --hs-chip:#ece5de;
  position:relative;
  overflow:hidden;
  background:var(--bg-black);
  color:var(--fg);
  isolation:isolate;
}
#hero .hs-defs{position:absolute;width:0;height:0;overflow:hidden}

/* ---------------------------------------------------------------- layout */
/* Desktop: the heading spans the full width as two clean lines; lede + CTAs sit
   beside the scene beneath it. (.hero__copy dissolves so its head and sub rows
   take part in the grid; stacked layouts below 1025px use it as a normal block.) */
#hero{--su:calc(var(--u)*.92)}
#hero .hero__layout{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr) calc(680*var(--su));
  grid-template-rows:auto 1fr auto;
  column-gap:calc(48*var(--u));
  row-gap:calc(16*var(--u));
  width:100%;
  max-width:calc(1440*var(--u));
  min-height:clamp(calc(820*var(--u)),100svh,calc(980*var(--u)));
  margin:0 auto;
  padding:calc(var(--header-h) + 6*var(--u)) calc(64*var(--u)) 0;
}
#hero .hero__copy{display:contents}
#hero .hero__head{grid-column:1 / -1;grid-row:1;position:relative;z-index:3}
#hero .hero__sub{grid-column:1;grid-row:2;align-self:start;position:relative;z-index:3;padding-top:calc(10*var(--u))}
#hero .hero__media{grid-column:2;grid-row:2;position:relative;z-index:2;justify-self:end}
#hero .hero__tabs{grid-column:1 / -1;grid-row:3;position:relative;z-index:3;padding:calc(26*var(--u)) 0 calc(40*var(--u))}

/* ---------------------------------------------------------- particle field */
#hero .hero__orbit{
  position:absolute;
  z-index:0;
  top:calc(50% - 840*var(--u));
  left:calc(50% + 330*var(--u));
  width:calc(1680*var(--u));
  height:calc(1680*var(--u));
  transform:translateX(-50%);
  pointer-events:none;
  animation:hero-fade 2.4s ease-in-out both;
}
#hero .hero__orbit svg{width:100%;height:100%;overflow:visible}
#hero .hero__orbit circle{opacity:0;animation:hero-orbit-dot var(--od,20s) linear var(--odl,0s) infinite}
#hero .hero__orbit[data-paused] circle{animation-play-state:paused}
@keyframes hero-fade{from{opacity:0}to{opacity:1}}
@keyframes hero-orbit-dot{
  0%{opacity:0;transform:translate(0,0)}
  20%{opacity:var(--oo,.7)}
  72%{opacity:var(--oo,.7)}
  100%{opacity:0;transform:translate(var(--ox,0px),var(--oy,0px))}
}

/* ------------------------------------------------------------------ copy */
/* Two clean lines: taupe "Your AI teammate," / cream "right on your desktop."
   (~910px at 98px, so the head spans the whole grid and never wraps on desktop). */
#hero .hero__title{
  margin-top:calc(52*var(--u)); /* room the removed eyebrow used to take */
  font-size:calc(98*var(--u));
  line-height:.89;
  letter-spacing:-.042em;
}
#hero .hero__line{display:block;white-space:nowrap}
#hero .hero__line + .hero__line{margin-top:calc(4*var(--u))}
#hero .hero__lede{
  max-width:calc(470*var(--u));
  margin-top:calc(28*var(--u));
  color:var(--taupe);
  font-size:max(16px,calc(19*var(--u)));
  line-height:1.45;
  letter-spacing:-.005em;
}
#hero .hero__ctas{display:flex;flex-wrap:wrap;gap:calc(8*var(--u));margin-top:calc(36*var(--u))}
#hero .hero__btn{
  height:max(44px,calc(48*var(--u)));
  padding:0 max(16px,calc(18*var(--u)));
  border-radius:max(6px,calc(8*var(--u)));
  transition:background-color .35s cubic-bezier(.34,1.4,.64,1),color .35s cubic-bezier(.34,1.4,.64,1),transform .35s cubic-bezier(.34,1.4,.64,1);
}
#hero .hero__btn.btn-dark{background:#282726}
#hero .hero__btn.btn-dark:hover{background:#3b3a39}
#hero .hero__btn:hover{transform:translateY(-2px)}
#hero .hero__btn:active{transform:translateY(0)}
#hero .hero__btn .arrow{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex:0 0 16px;animation:hero-arrow-nudge 3.6s cubic-bezier(.16,1,.3,1) infinite}
#hero .hero__btn .arrow svg{width:11px;height:9px;transition:transform .45s cubic-bezier(.16,1,.3,1)}
#hero .hero__btn:hover .arrow{animation-play-state:paused}
#hero .hero__btn:hover .arrow svg{transform:translateX(3px)}
@keyframes hero-arrow-nudge{0%,38%,62%,100%{transform:translateX(0)}46%{transform:translateX(4px)}}

/* ------------------------------------------------------------------ tabs */
/* side padding keeps the centred row clear of the fixed help launcher (56px at right/bottom 24px) */
#hero .hero__tablist{display:flex;justify-content:center;gap:calc(30*var(--u));padding:0 96px}
#hero .hero__tab{
  position:relative;
  display:flex;align-items:baseline;
  padding:calc(6*var(--u)) 0 calc(14*var(--u));
  white-space:nowrap;
  font-family:var(--font-display);
  font-size:max(15px,calc(20*var(--u)));
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.02em;
  color:#7a7470;
  transition:color .25s var(--ease);
}
#hero .hero__tab:hover{color:var(--taupe)}
#hero .hero__tab[aria-selected="true"]{color:var(--cream)}
/* active marker: an accent dot that grows in ahead of the label (no layout shift for the row:
   the dot's slot is animated from 0 width, and the row is centred so neighbours glide) */
#hero .hero__dot{
  align-self:center;
  flex:0 0 auto;
  width:0;height:max(6px,calc(8*var(--u)));
  margin-right:0;
  border-radius:50%;
  background:var(--accent);
  transform:scale(0);
  transition:width .45s var(--ease-out),margin-right .45s var(--ease-out),transform .45s var(--ease-out);
}
#hero .hero__tab[aria-selected="true"] .hero__dot{width:max(6px,calc(8*var(--u)));margin-right:max(8px,calc(11*var(--u)));transform:scale(1)}
#hero .hero__tab:focus-visible{outline-offset:2px}
#hero .hero__bar{
  position:absolute;left:0;right:0;bottom:0;
  height:2px;border-radius:2px;
  background:rgba(234,227,221,.12);
  overflow:hidden;
  opacity:0;
  transition:opacity .3s var(--ease);
}
#hero .hero__bar i{display:block;height:100%;background:var(--accent);transform:scaleX(var(--p,0));transform-origin:0 50%}
#hero.is-auto .hero__tab[aria-selected="true"] .hero__bar{opacity:1}

/* ------------------------------------------------- intro (staggered reveal) */
@media (scripting:enabled) and (prefers-reduced-motion:no-preference){
  #hero [data-intro]{
    clip-path:inset(-25% 100% -25% 0);
    animation:hero-intro-copy 1.1s cubic-bezier(.215,.61,.355,1) var(--d,0s) both;
  }
  #hero [data-intro="cta"]{clip-path:inset(-60% 100% -60% -10%);animation-name:hero-intro-cta}
  #hero .hero__tabs[data-intro]{clip-path:inset(-80% 100% -80% 0);animation-name:hero-intro-tabs}
  #hero [data-intro="media"]{clip-path:none;animation:hero-intro-media 1.4s cubic-bezier(.16,1,.3,1) var(--d,0s) both}
  #hero:not([data-intro-play]) [data-intro]{animation-play-state:paused}
}
@keyframes hero-intro-copy{from{clip-path:inset(-25% 100% -25% 0)}to{clip-path:inset(-25% -2% -25% 0)}}
@keyframes hero-intro-cta{from{clip-path:inset(-60% 100% -60% -10%)}to{clip-path:inset(-60% -15% -60% -10%)}}
@keyframes hero-intro-tabs{from{clip-path:inset(-80% 100% -80% 0)}to{clip-path:inset(-80% -2% -80% 0)}}
@keyframes hero-intro-media{from{opacity:0;transform:translateY(calc(28*var(--u))) scale(.975)}to{opacity:1;transform:none}}

/* ==========================================================================
   SCENE: the illustrated desktop
   ========================================================================== */
#hero .hero__frame{position:relative;width:calc(680*var(--su));height:calc(654*var(--su));border-radius:calc(16*var(--su))}
#hero .hero__frame:focus-visible{outline-offset:6px}
#hero .hero__stage{
  position:absolute;top:0;left:0;
  width:calc(680*var(--su));height:calc(654*var(--su));
  font-family:var(--font-display);
  font-size:calc(12*var(--su));
  line-height:1.35;
}
#hero .hs-label{
  position:absolute;top:0;right:calc(2*var(--su));
  font-family:var(--font-mono);font-weight:500;text-transform:uppercase;
  font-size:max(10px,calc(11*var(--su)));line-height:1;letter-spacing:.02em;
  color:var(--taupe);
}
#hero .hs-label::before{content:"";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--taupe);vertical-align:1px;opacity:.7}
#hero .hs-paused{
  position:absolute;top:0;left:calc(2*var(--su));
  display:flex;align-items:center;gap:6px;
  font-family:var(--font-mono);font-weight:500;text-transform:uppercase;
  font-size:max(10px,calc(11*var(--su)));line-height:1;
  color:var(--taupe);
  opacity:0;transform:translateY(3px);
  transition:opacity .3s var(--ease),transform .3s var(--ease);
  pointer-events:none;
}
#hero .hs-paused::before{content:"";width:6px;height:8px;border-left:2px solid currentColor;border-right:2px solid currentColor;box-sizing:border-box}
#hero .hs-paused.is-on{opacity:1;transform:none}
#hero .hs-screen{
  position:absolute;left:0;top:calc(24*var(--su));
  width:calc(680*var(--su));height:calc(630*var(--su));
  overflow:hidden;
  border-radius:calc(16*var(--su));
  background:
    radial-gradient(90% 70% at 92% 108%,rgba(255,143,90,.28),transparent 60%),
    radial-gradient(70% 60% at 0% 0%,rgba(155,156,255,.12),transparent 62%),
    radial-gradient(60% 50% at 40% 60%,rgba(255,210,138,.05),transparent 70%),
    var(--hs-wall);
  box-shadow:0 0 0 1px rgba(234,227,221,.09),0 40px 80px -30px rgba(0,0,0,.8),0 0 120px -40px rgba(255,143,90,.25);
  transform:translateZ(0);
}
#hero .hs-desk,#hero .hs-layer{position:absolute;inset:0}

/* menu bar + dock */
#hero .hs-menubar{
  position:absolute;left:0;right:0;top:0;z-index:6;
  display:flex;align-items:center;gap:calc(16*var(--su));
  height:calc(28*var(--su));
  padding:0 calc(16*var(--su));
  background:rgba(0,0,0,.4);
  border-bottom:1px solid var(--hs-wline);
  color:var(--hs-wmuted);
  font-size:calc(11*var(--su));
}
#hero .hs-menubar__app{color:var(--hs-wtext);font-weight:600}
#hero .hs-menubar__app > span{display:none}
#hero [data-front="doc"] [data-app="doc"],#hero [data-front="cal"] [data-app="cal"],#hero [data-front="mail"] [data-app="mail"]{display:inline}
#hero .hs-menubar__r{margin-left:auto;display:flex;align-items:center;gap:calc(12*var(--su));color:var(--hs-wtext)}
#hero .hs-menubar__mk{width:calc(14*var(--su));height:calc(14*var(--su))}
#hero .hs-dock{
  position:absolute;z-index:6;left:calc(226*var(--su));bottom:calc(10*var(--su));
  display:flex;gap:calc(8*var(--su));
  padding:calc(7*var(--su)) calc(9*var(--su));
  border-radius:calc(13*var(--su));
  background:rgba(40,38,36,.62);
  box-shadow:inset 0 0 0 1px rgba(234,227,221,.1);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
#hero .hs-dock i{display:block;width:calc(26*var(--su));height:calc(26*var(--su));border-radius:calc(7*var(--su));background:linear-gradient(160deg,var(--c),color-mix(in srgb,var(--c) 55%,#000));opacity:.9}

/* windows */
#hero .hs-win{
  position:absolute;z-index:1;
  overflow:hidden;
  border-radius:calc(10*var(--su));
  background:var(--hs-win);
  box-shadow:0 0 0 1px rgba(234,227,221,.2),0 calc(24*var(--su)) calc(48*var(--su)) rgba(0,0,0,.55);
  color:var(--hs-wtext);
  filter:brightness(.93);
  transform:scale(.985);
  transition:filter .8s var(--ease-out),transform .8s var(--ease-out),box-shadow .8s var(--ease-out);
}
/* staggered so each back window shows real content: calendar top-left (today's
   review visible), inbox top-right, the document lower and in front */
#hero .hs-win--cal{left:calc(18*var(--su));top:calc(42*var(--su));width:calc(300*var(--su));height:calc(250*var(--su))}
#hero .hs-win--mail{left:calc(206*var(--su));top:calc(64*var(--su));width:calc(290*var(--su));height:calc(214*var(--su));z-index:2}
#hero .hs-win--doc{left:calc(30*var(--su));top:calc(220*var(--su));width:calc(384*var(--su));height:calc(318*var(--su));z-index:3}
#hero .hs-desk[data-front="doc"] .hs-win--doc,
#hero .hs-desk[data-front="mail"] .hs-win--mail,
#hero .hs-desk[data-front="cal"] .hs-win--cal{
  z-index:5;filter:none;transform:none;
  background:var(--hs-front);
  box-shadow:0 0 0 1px rgba(234,227,221,.3),inset 0 1px 0 rgba(255,255,255,.08),0 calc(40*var(--su)) calc(80*var(--su)) calc(-8*var(--su)) rgba(0,0,0,.9),0 calc(12*var(--su)) calc(26*var(--su)) rgba(0,0,0,.55);
}
#hero .hs-desk[data-front="doc"] .hs-win--doc .hs-win__bar,
#hero .hs-desk[data-front="mail"] .hs-win--mail .hs-win__bar,
#hero .hs-desk[data-front="cal"] .hs-win--cal .hs-win__bar{background:var(--hs-front-2)}
#hero .hs-win__bar{
  display:flex;align-items:center;gap:calc(6*var(--su));
  height:calc(30*var(--su));
  padding:0 calc(12*var(--su));
  background:var(--hs-win-2);
  border-bottom:1px solid var(--hs-wline);
}
#hero .hs-win__bar > i{display:block;width:calc(9*var(--su));height:calc(9*var(--su));border-radius:50%;background:#625b55}
#hero .hs-win__bar > i:first-child{background:#c97a55}
#hero .hs-win__t{margin-left:calc(8*var(--su));color:#e2d9d1;font-size:calc(11*var(--su));font-weight:500}
#hero .hs-win__t[hidden],#hero .hs-docv[hidden]{display:none}

/* calendar */
#hero .hs-cal{padding:calc(10*var(--su)) calc(12*var(--su))}
#hero .hs-cal__head{display:flex;justify-content:space-between;font-size:calc(12*var(--su));font-weight:600}
#hero .hs-cal__nav{color:var(--hs-wmuted)}
#hero .hs-cal__grid{display:grid;grid-template-columns:calc(18*var(--su)) repeat(5,1fr);gap:calc(4*var(--su));margin-top:calc(8*var(--su))}
#hero .hs-cal__hours{display:flex;flex-direction:column;padding-top:calc(20*var(--su));color:var(--hs-wmuted);font-family:var(--font-mono);font-size:calc(9*var(--su))}
#hero .hs-cal__hours span{height:calc(34*var(--su))}
#hero .hs-cal__col{position:relative;height:calc(190*var(--su));border-radius:calc(5*var(--su));background:rgba(255,255,255,.055);box-shadow:inset 0 0 0 1px rgba(234,227,221,.12)}
#hero .hs-cal__col b{display:block;height:calc(20*var(--su));padding-top:calc(3*var(--su));text-align:center;color:var(--hs-wmuted);font-family:var(--font-mono);font-size:calc(9*var(--su));font-weight:500;text-transform:uppercase}
#hero .hs-cal__col.is-today{background:rgba(255,143,90,.11);box-shadow:inset 0 0 0 1px rgba(255,143,90,.32)}
#hero .hs-cal__col.is-today b{color:var(--accent)}
#hero .hs-ev{
  position:absolute;left:calc(2*var(--su));right:calc(2*var(--su));
  top:calc((20 + var(--t)*34)*var(--su));height:calc((var(--l)*34 - 3)*var(--su));
  padding:calc(4*var(--su)) calc(5*var(--su));
  overflow:hidden;
  border-left:calc(2.5*var(--su)) solid var(--taupe);
  border-radius:calc(4*var(--su));
  background:rgba(168,151,140,.32);
  color:#f5eee8;
  font-size:calc(9*var(--su));font-weight:600;line-height:1.2;
}
#hero .hs-ev--v{border-left-color:var(--violet);background:rgba(155,156,255,.38);color:#f0f0ff}
#hero .hs-ev--s{border-left-color:var(--sky);background:rgba(124,184,255,.36);color:#eaf3ff}
#hero .hs-ev--hot{border-left-color:var(--accent);background:rgba(255,143,90,.5);color:#fff3ec}
/* the event the teammate is reading (driven by --hl from js/hero.js) */
#hero [data-cal-hl]{overflow:visible;box-shadow:0 0 0 calc(var(--hl,0)*2px) rgba(255,143,90,.85),0 0 calc(var(--hl,0)*18*var(--su)) rgba(255,143,90,calc(var(--hl,0)*.45))}

/* mail */
#hero .hs-mail{padding:calc(6*var(--su)) 0}
#hero .hs-mail__row{
  position:relative;
  display:flex;align-items:center;gap:calc(10*var(--su));
  height:calc(44*var(--su));
  margin:0 calc(6*var(--su));
  padding:0 calc(10*var(--su));
  border-radius:calc(6*var(--su));
}
#hero .hs-mail__row + .hs-mail__row{box-shadow:0 -1px 0 var(--hs-wline)}
#hero [data-mail-hl]{background:rgba(255,143,90,calc(var(--hl,0)*.16));box-shadow:inset 0 0 0 1px rgba(255,143,90,calc(var(--hl,0)*.5))}
#hero .hs-av{
  display:grid;place-items:center;flex:0 0 auto;
  width:calc(24*var(--su));height:calc(24*var(--su));border-radius:50%;
  background:color-mix(in srgb,var(--c) 36%,#1d1c1b);color:color-mix(in srgb,var(--c) 65%,#fff);
  font-family:var(--font-mono);font-size:calc(8.5*var(--su));font-weight:500;
}
#hero .hs-mail__m{display:flex;flex-direction:column;min-width:0;font-size:calc(11*var(--su))}
#hero .hs-mail__m b{font-weight:600}
#hero .hs-mail__m span{color:#c0b5ac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hero .hs-mail__time{margin-left:auto;color:var(--hs-wmuted);font-family:var(--font-mono);font-size:calc(9*var(--su))}
#hero .hs-mail__new{position:absolute;left:calc(1.5*var(--su));top:50%;width:calc(6*var(--su));height:calc(6*var(--su));min-width:0;min-height:0;margin-top:calc(-3*var(--su))}

/* document */
#hero .hs-doc{padding:calc(22*var(--su)) calc(28*var(--su))}
#hero .hs-doc__h{color:#fbf6f1;font-size:calc(19*var(--su));font-weight:700;letter-spacing:-.02em;line-height:1.15}
#hero .hs-doc__meta{margin:calc(6*var(--su)) 0 calc(14*var(--su));color:var(--hs-wmuted);font-family:var(--font-mono);font-size:calc(9*var(--su));text-transform:uppercase}
#hero .hs-doc p{margin-bottom:calc(8*var(--su));font-size:calc(12*var(--su));line-height:1.45}
#hero .hs-doc__li{position:relative;padding-left:calc(14*var(--su))}
#hero .hs-doc__li::before{content:"";position:absolute;left:calc(2*var(--su));top:calc(7*var(--su));width:calc(4*var(--su));height:calc(4*var(--su));border-radius:50%;background:var(--accent);opacity:.8}
#hero .hs-doc__type{color:#fbf6f1}
#hero .hs-doc__caret{display:inline-block;width:1.5px;height:calc(14*var(--su));margin-left:1px;vertical-align:calc(-2*var(--su));background:var(--accent);opacity:var(--dc,0)}
#hero .hs-sk{display:block;width:var(--w);height:calc(7*var(--su));margin-top:calc(11*var(--su));border-radius:4px;background:rgba(234,227,221,.18)}

/* ---------------------------------------------------------- example layers */
#hero .hs-layer{z-index:10;transition:opacity .5s ease}
#hero .hs-layer[hidden]{display:none}
#hero .hs-layer.is-exiting{opacity:0}

/* pointer */
#hero .hs-cursor{
  position:absolute;z-index:40;left:0;top:0;
  width:calc(16*var(--su));height:calc(20*var(--su));
  opacity:var(--o,0);
  transform:translate(calc(var(--cx,600)*var(--su)),calc(var(--cy,500)*var(--su))) scale(var(--cs,1));
  transform-origin:2px 2px;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));
  pointer-events:none;
}
#hero .hs-cursor svg{width:100%;height:100%}

/* teammate: launcher -> compose -> panel (one morphing surface) */
#hero .hs-panel{
  position:absolute;z-index:20;
  right:calc(18*var(--su));bottom:calc(54*var(--su));
  width:calc(var(--pw,284)*var(--su));
  height:calc(var(--ph,538)*var(--su));
  overflow:hidden;
  border-radius:calc(var(--pr,14)*var(--su));
  background:var(--hs-paper);
  color:var(--hs-ink);
  box-shadow:0 0 0 1px rgba(255,255,255,.5) inset,0 calc(30*var(--su)) calc(70*var(--su)) rgba(0,0,0,.55),0 calc(4*var(--su)) calc(14*var(--su)) rgba(0,0,0,.3);
  transform:scale(var(--ps,1));
  transform-origin:100% 100%;
}
#hero .hs-face{
  position:absolute;right:0;bottom:0;z-index:3;
  width:calc(44*var(--su));height:calc(44*var(--su));
  opacity:var(--o,0);
  pointer-events:none;
}
#hero .hs-face svg{width:100%;height:100%}
/* idle glow ring around the launcher */
#hero .hs-panel::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 0 calc(var(--ring,0)*6*var(--su)) rgba(255,143,90,calc(var(--ring,0)*.35));
}
#hero .hs-compose{
  position:absolute;left:0;right:0;bottom:0;
  height:calc(96*var(--su));
  padding:calc(12*var(--su)) calc(14*var(--su));
  opacity:var(--o,0);
}
#hero .hs-compose__lbl{display:flex;align-items:center;gap:calc(6*var(--su));color:var(--hs-gray);font-family:var(--font-mono);font-size:calc(9*var(--su));font-weight:500;text-transform:uppercase}
#hero .hs-compose__lbl svg{width:calc(14*var(--su));height:calc(14*var(--su))}
#hero .hs-compose__txt{margin-top:calc(8*var(--su));padding-right:calc(34*var(--su));font-size:calc(12.5*var(--su));line-height:1.4;min-height:calc(36*var(--su))}
#hero .hs-caret{display:inline-block;width:1.5px;height:calc(14*var(--su));margin-left:1px;vertical-align:calc(-2*var(--su));background:var(--accent);opacity:var(--o,0)}
#hero .hs-send{
  position:absolute;right:calc(12*var(--su));bottom:calc(12*var(--su));
  display:grid;place-items:center;
  width:calc(26*var(--su));height:calc(26*var(--su));border-radius:50%;
  background:var(--accent);color:var(--accent-ink);
  transform:scale(var(--s,1));
}
#hero .hs-send svg{width:calc(14*var(--su));height:calc(14*var(--su))}

#hero .hs-full{
  position:absolute;left:0;right:0;top:0;
  display:flex;flex-direction:column;
  height:calc(538*var(--su));
  opacity:var(--o,1);
}
#hero .hs-ph{
  display:flex;align-items:center;gap:calc(8*var(--su));
  flex:0 0 auto;
  height:calc(42*var(--su));
  padding:0 calc(14*var(--su));
  border-bottom:1px solid var(--hs-hair);
  font-size:calc(13*var(--su));
}
#hero .hs-ph__mk{width:calc(18*var(--su));height:calc(18*var(--su))}
#hero .hs-status{position:relative;display:grid;margin-left:auto;font-family:var(--font-mono);font-size:calc(9*var(--su));font-weight:500;text-transform:uppercase;line-height:1}
#hero .hs-status > span{
  grid-area:1/1;justify-self:end;
  display:flex;align-items:center;gap:calc(6*var(--su));
  height:calc(20*var(--su));padding:0 calc(8*var(--su));
  border-radius:calc(10*var(--su));
  white-space:nowrap;
}
#hero .hs-status__run{background:rgba(155,156,255,.18);color:#4b4cae;opacity:calc(1 - var(--st,1))}
#hero .hs-status__done{background:rgba(255,210,138,.45);color:#6b4a12;opacity:var(--st,1)}
#hero .hs-status__run .status-sq{animation:hero-pulse 1.2s ease-in-out infinite}
#hero .hs-status__done .status-sq{--status-c:color-mix(in srgb,var(--ok),#c2862a)} /* --ok deepened so the square reads on the light card */
#hero .hs-status__done--ask{background:rgba(255,143,90,.2);color:#8a3a10}
#hero .hs-status__done--ask .status-sq{--status-c:var(--accent)} /* needs approval: active, waiting on you */
@keyframes hero-pulse{50%{opacity:.35}}

#hero .hs-pb{flex:1 1 auto;display:flex;flex-direction:column;gap:calc(9*var(--su));padding:calc(12*var(--su)) calc(12*var(--su)) 0;min-height:0}
#hero .hs-pb > *{flex-shrink:0}
#hero .hs-msg{
  align-self:flex-end;
  max-width:calc(232*var(--su));
  opacity:var(--o,1);
  transform:translateY(calc(var(--y,0)*var(--su)));
}
#hero .hs-msg__who{display:block;margin:0 calc(4*var(--su)) calc(4*var(--su)) 0;text-align:right;color:var(--hs-gray);font-family:var(--font-mono);font-size:calc(8.5*var(--su));font-weight:500;text-transform:uppercase}
#hero .hs-msg p{
  padding:calc(8*var(--su)) calc(11*var(--su));
  border-radius:calc(12*var(--su)) calc(12*var(--su)) calc(4*var(--su)) calc(12*var(--su));
  background:#2a2725;color:#f1ebe5;
  font-size:calc(11.5*var(--su));line-height:1.4;
}
#hero .hs-steps{
  display:flex;flex-direction:column;gap:calc(7*var(--su));
  padding:calc(10*var(--su)) calc(11*var(--su));
  border-radius:calc(10*var(--su));
  background:var(--hs-card);
  box-shadow:inset 0 0 0 1px var(--hs-hair);
  opacity:var(--o,1);
}
#hero .hs-step{
  display:grid;grid-template-columns:calc(15*var(--su)) 1fr;column-gap:calc(8*var(--su));align-items:center;
  opacity:var(--o,1);
  transform:translateY(calc(var(--y,0)*var(--su)));
}
#hero .hs-si{position:relative;width:calc(15*var(--su));height:calc(15*var(--su))}
#hero .hs-si svg{position:absolute;inset:0;width:100%;height:100%}
#hero .hs-si__run{color:var(--violet);opacity:calc(1 - var(--d,1));animation:hero-spin .9s linear infinite}
#hero .hs-si__done{opacity:var(--d,1);transform:scale(calc(.4 + var(--d,1)*.6))}
@keyframes hero-spin{to{transform:rotate(360deg)}}
#hero .hs-step__t{font-size:calc(11.5*var(--su));font-weight:600;line-height:1.25;letter-spacing:-.005em}
#hero .hs-chips{display:flex;flex-wrap:wrap;gap:calc(4*var(--su));grid-column:2;margin-top:calc(5*var(--su))}
#hero .hs-chip{
  display:inline-flex;align-items:center;gap:calc(4*var(--su));
  height:calc(19*var(--su));padding:0 calc(7*var(--su));
  border-radius:calc(5*var(--su));
  background:var(--hs-chip);color:#4a4541;
  font-size:calc(10*var(--su));white-space:nowrap;
  opacity:var(--o,1);
  transform:scale(var(--s,1));transform-origin:0 50%;
}
#hero .hs-chip svg{width:calc(10*var(--su));height:calc(10*var(--su));flex:0 0 auto}

#hero .hs-result{
  position:relative;
  display:flex;flex-direction:column;
  padding:calc(12*var(--su));
  border-radius:calc(10*var(--su));
  background:var(--hs-card);
  box-shadow:inset 0 0 0 1px var(--hs-hair),0 calc(10*var(--su)) calc(24*var(--su)) -12px rgba(60,40,20,.25);
  opacity:var(--o,1);
  transform:translateY(calc(var(--y,0)*var(--su)));
}
#hero .hs-result::before{content:"";position:absolute;left:calc(12*var(--su));right:calc(12*var(--su));top:0;height:2px;border-radius:0 0 2px 2px;background:var(--accent)}
#hero .hs-result__body{display:flex;flex-direction:column}
#hero .hs-result__eb{color:#b4501f;font-family:var(--font-mono);font-size:calc(8.5*var(--su));font-weight:500;text-transform:uppercase}
#hero .hs-result__t{margin-top:calc(4*var(--su));font-size:calc(13.5*var(--su));font-weight:700;letter-spacing:-.01em;line-height:1.2}
#hero .hs-result__m{display:flex;align-items:center;gap:calc(5*var(--su));margin-top:calc(3*var(--su));color:var(--hs-gray);font-size:calc(10.5*var(--su))}
#hero .hs-result__m svg{width:calc(11*var(--su));height:calc(11*var(--su))}
#hero .hs-result__lb{display:block;margin-top:calc(8*var(--su));color:var(--hs-gray);font-family:var(--font-mono);font-size:calc(8.5*var(--su));font-weight:500;text-transform:uppercase}
#hero .hs-ul li{position:relative;margin-top:calc(3*var(--su));padding-left:calc(11*var(--su));font-size:calc(11*var(--su));line-height:1.35}
#hero .hs-ul li::before{content:"";position:absolute;left:calc(1*var(--su));top:calc(6*var(--su));width:calc(4*var(--su));height:calc(4*var(--su));border-radius:50%;background:var(--accent)}
#hero .hs-quote{margin-top:calc(8*var(--su));padding:calc(7*var(--su)) calc(9*var(--su));border-left:2px solid var(--hs-hair);border-radius:0 calc(6*var(--su)) calc(6*var(--su)) 0;background:#f7f2ed;font-size:calc(11*var(--su));line-height:1.4;color:#3c3734}
#hero .hs-slots{display:flex;flex-wrap:wrap;gap:calc(5*var(--su));margin-top:calc(5*var(--su))}
#hero .hs-slots span{height:calc(22*var(--su));padding:0 calc(8*var(--su));display:inline-flex;align-items:center;border-radius:calc(6*var(--su));box-shadow:inset 0 0 0 1px var(--hs-hair);font-size:calc(10.5*var(--su));white-space:nowrap}
#hero .hs-slots .is-on{background:var(--accent-soft);box-shadow:inset 0 0 0 1.5px var(--accent);font-weight:600}
#hero .hs-todo{margin-top:calc(8*var(--su))}
#hero .hs-todo li{display:grid;grid-template-columns:calc(12*var(--su)) 1fr auto;gap:calc(8*var(--su));align-items:center;padding:calc(5*var(--su)) 0;border-top:1px solid var(--hs-hair);font-size:calc(11*var(--su))}
#hero .hs-todo li:first-child{border-top:0}
#hero .hs-todo i{width:calc(11*var(--su));height:calc(11*var(--su));border-radius:calc(3*var(--su));box-shadow:inset 0 0 0 1.2px #b9aea5}
#hero .hs-todo em{color:var(--hs-gray);font-style:normal;font-family:var(--font-mono);font-size:calc(8.5*var(--su));text-transform:uppercase}
#hero .hs-result__foot{display:flex;align-items:center;gap:calc(10*var(--su));margin-top:calc(12*var(--su))}
#hero .hs-open{
  position:relative;
  display:inline-flex;align-items:center;
  height:calc(28*var(--su));min-height:22px;
  padding:0 calc(12*var(--su));
  border-radius:calc(6*var(--su));
  background:var(--accent);color:var(--accent-ink);
  font-family:var(--font-mono);font-weight:500;text-transform:uppercase;
  font-size:max(8px,calc(10*var(--su)));
  transition:background-color .2s var(--ease),transform .25s var(--ease);
  box-shadow:0 0 0 calc(var(--ring,0)*5*var(--su)) rgba(255,143,90,calc(var(--ring,0)*.3));
}
#hero .hs-open:hover{background:var(--accent-hover);transform:translateY(-1px)}
#hero .hs-open:focus-visible{outline-offset:2px}
#hero .hs-note{color:var(--hs-gray);font-family:var(--font-mono);font-size:calc(8.5*var(--su));font-weight:500;text-transform:uppercase}
#hero .hs-pf{
  display:flex;align-items:center;flex:0 0 auto;
  height:calc(34*var(--su));
  margin:calc(10*var(--su)) calc(12*var(--su)) calc(12*var(--su));
  padding:0 calc(6*var(--su)) 0 calc(11*var(--su));
  border-radius:calc(9*var(--su));
  box-shadow:inset 0 0 0 1px var(--hs-hair);
  background:var(--hs-card);
  color:#6f6862;font-size:calc(11*var(--su));
}
#hero .hs-pf svg{width:calc(22*var(--su));height:calc(22*var(--su));margin-left:auto;padding:calc(4*var(--su));border-radius:50%;background:var(--hs-chip);color:#9d948c}

/* --------------------------------------------- result preview (in scene) */
#hero .hs-preview{
  position:absolute;z-index:30;
  left:calc(190*var(--su));top:calc(40*var(--su));
  width:calc(472*var(--su));max-height:calc(536*var(--su));
  display:flex;flex-direction:column;
  overflow:hidden;
  border-radius:calc(14*var(--su));
  background:var(--hs-paper);color:var(--hs-ink);
  box-shadow:0 0 0 1px rgba(255,255,255,.5) inset,0 calc(40*var(--su)) calc(90*var(--su)) rgba(0,0,0,.65);
  opacity:0;
  transform:translateY(calc(14*var(--su))) scale(.97);
  transform-origin:80% 90%;
  transition:opacity .35s var(--ease),transform .5s var(--ease-out);
}
#hero .hs-preview[hidden]{display:none}
#hero .hs-preview.is-in{opacity:1;transform:none}
#hero .hs-pv__bar{display:flex;align-items:center;flex:0 0 auto;height:calc(42*var(--su));padding:0 calc(10*var(--su)) 0 calc(18*var(--su));border-bottom:1px solid var(--hs-hair)}
#hero .hs-pv__eb{color:var(--hs-gray);font-family:var(--font-mono);font-size:max(8px,calc(9.5*var(--su)));font-weight:500;text-transform:uppercase}
#hero .hs-pv__x{display:grid;place-items:center;margin-left:auto;width:max(28px,calc(28*var(--su)));height:max(28px,calc(28*var(--su)));border-radius:8px;color:var(--hs-ink);transition:background-color .2s var(--ease)}
#hero .hs-pv__x:hover{background:var(--hs-chip)}
#hero .hs-pv__x svg{width:max(14px,calc(14*var(--su)));height:max(14px,calc(14*var(--su)))}
#hero .hs-pv__body{flex:1 1 auto;overflow:auto;padding:calc(18*var(--su)) calc(20*var(--su));scrollbar-width:thin}
#hero .hs-pv__t{font-size:calc(20*var(--su));font-weight:700;letter-spacing:-.02em;line-height:1.15}
#hero .hs-pv__dl{display:grid;grid-template-columns:auto 1fr;gap:calc(4*var(--su)) calc(14*var(--su));margin-top:calc(12*var(--su));font-size:calc(11.5*var(--su))}
#hero .hs-pv__dl dt{color:var(--hs-gray);font-family:var(--font-mono);font-size:calc(9*var(--su));font-weight:500;text-transform:uppercase;line-height:calc(15*var(--su))}
#hero .hs-pv__sec{margin-top:calc(8*var(--su));padding-top:calc(4*var(--su))}
#hero .hs-pv__sec .hs-chips{margin-top:calc(6*var(--su))}
#hero .hs-pv__sec .hs-ul li,#hero .hs-pv__mail{font-size:calc(12*var(--su))}
#hero .hs-pv__p{margin-top:calc(5*var(--su));font-size:calc(12*var(--su));line-height:1.45}
#hero .hs-pv__mail{margin-top:calc(14*var(--su));padding:calc(12*var(--su)) calc(14*var(--su));border-radius:calc(8*var(--su));background:var(--hs-card);box-shadow:inset 0 0 0 1px var(--hs-hair);line-height:1.5}
#hero .hs-pv__mail p + p,#hero .hs-pv__mail .hs-ul{margin-top:calc(6*var(--su))}
#hero .hs-pv__mail p + p:last-child{margin-top:calc(8*var(--su))}
#hero .hs-tbl{width:100%;margin-top:calc(14*var(--su));border-collapse:collapse;font-size:calc(11*var(--su))}
#hero .hs-tbl th,#hero .hs-tbl td{padding:calc(6*var(--su)) calc(6*var(--su));border-bottom:1px solid var(--hs-hair);text-align:left;font-weight:400}
#hero .hs-tbl thead th{color:var(--hs-ink);font-weight:700}
#hero .hs-tbl tbody th{color:var(--hs-gray);font-family:var(--font-mono);font-size:calc(9*var(--su));font-weight:500;text-transform:uppercase}
#hero .hs-todo--lg li{padding:calc(8*var(--su)) 0;font-size:calc(12*var(--su))}
#hero .hs-pv__foot{
  display:flex;align-items:center;gap:calc(8*var(--su));flex:0 0 auto;
  padding:calc(12*var(--su)) calc(14*var(--su)) calc(12*var(--su)) calc(18*var(--su));
  border-top:1px solid var(--hs-hair);
  background:#efe8e1;
}
#hero .hs-pv__state{margin-right:auto;color:var(--hs-gray);font-family:var(--font-mono);font-size:max(8px,calc(9*var(--su)));font-weight:500;text-transform:uppercase;line-height:1.3}
#hero .hs-pv__state.is-ok{color:#8a5d10}
#hero .hs-pv__state.is-ok::before{content:"";display:inline-block;width:.62em;height:.62em;min-width:7px;min-height:7px;margin-right:calc(6*var(--su));border-radius:22%;background:color-mix(in srgb,var(--ok),#c2862a);vertical-align:-.06em} /* status symbol: done */
#hero .hs-pv__btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:max(28px,calc(30*var(--su)));padding:0 max(10px,calc(12*var(--su)));
  border-radius:calc(7*var(--su));
  box-shadow:inset 0 0 0 1px #cfc4ba;
  font-family:var(--font-mono);font-weight:500;text-transform:uppercase;
  font-size:max(9px,calc(10*var(--su)));
  white-space:nowrap;
  transition:background-color .2s var(--ease),box-shadow .2s var(--ease);
}
#hero .hs-pv__btn:hover{background:#e4dbd2}
#hero .hs-pv__btn--go{background:var(--accent);color:var(--accent-ink);box-shadow:none}
#hero .hs-pv__btn--go:hover{background:var(--accent-hover)}
#hero .hs-pv__btn.is-done{background:var(--ok);color:#3a2706;cursor:default}

/* ==========================================================================
   Stacked layout (tablet + mobile): copy, then scene, then scrolling tabs
   ========================================================================== */
@media (max-width:1024px){
  #hero{--su:min(calc((100vw - 2*var(--gutter))/680),1px)}
  #hero .hero__layout{
    display:flex;flex-direction:column;align-items:stretch;
    min-height:0;max-width:none;
    padding:calc(var(--header-h) + 40px) var(--gutter) 0;
  }
  #hero .hero__copy{display:block;padding-bottom:0}
  #hero .hero__sub{padding-top:0}
  #hero .hero__line{white-space:nowrap}
  #hero .hero__title{margin-top:28px;font-size:min(69px,calc((100vw - 2*var(--gutter))/11)); /* capped at the desktop size at 1025px so the title never grows as the viewport shrinks */line-height:.92;letter-spacing:-.04em}
  #hero .hero__lede{max-width:520px;margin-top:20px;font-size:18px}
  #hero .hero__ctas{gap:10px;margin-top:28px}
  #hero .hero__btn{height:48px;padding:0 18px;font-size:13px;border-radius:8px}
  #hero .hero__media{justify-self:auto;align-self:center;margin-top:48px}
  #hero .hero__tabs{margin:0 calc(-1*var(--gutter));padding:24px 0 36px}
  /* left-aligned with the copy; the right padding keeps the row's end clear of the
     fixed help launcher (56px, 16-24px from the right edge) */
  #hero .hero__tablist{justify-content:flex-start;gap:24px;overflow-x:auto;padding:0 calc(var(--gutter) + 88px) 0 var(--gutter);scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-inline:var(--gutter)}
  #hero .hero__tablist::-webkit-scrollbar{display:none}
  #hero .hero__tab{flex:0 0 auto;padding:6px 0 12px;font-size:17px;scroll-snap-align:start}
  #hero .hero__orbit{top:auto;bottom:calc(-50vw + 300px);left:50%;width:120vw;height:120vw}
}
@media (max-width:640px){
  /* Phone: the same desktop recomposed as a portrait screen (356 design px wide,
     nothing cropped). One unit for the whole scene keeps the teammate panel at
     a readable size (step text ~11px at 375 wide); the document sits above
     the panel, the calendar and inbox peek out behind it, the dock runs down
     the left edge. Pointer coordinates for this layout live in js/hero.js. */
  #hero{--su:min(calc((100vw - 2*var(--gutter))/356),1.2px)}
  #hero .hero__layout{padding-top:calc(var(--header-h) + 28px)}
  #hero .hero__lede{font-size:17px}
  #hero .hero__ctas .hero__btn{flex:1 1 auto}
  #hero .hero__media{align-self:center;margin-top:40px}
  #hero .hero__frame,#hero .hero__stage{width:calc(356*var(--su));height:calc(736*var(--su))}
  #hero .hs-screen{width:calc(356*var(--su));height:calc(712*var(--su))}
  #hero .hs-menubar{gap:calc(12*var(--su));padding:0 calc(12*var(--su))}
  #hero .hs-menubar > span:nth-child(n+4):not(.hs-menubar__r){display:none}
  #hero .hs-win--cal{left:calc(10*var(--su));top:calc(36*var(--su));width:calc(246*var(--su));height:calc(200*var(--su))}
  #hero .hs-win--mail{left:calc(146*var(--su));top:calc(56*var(--su));width:calc(200*var(--su));height:calc(180*var(--su))}
  #hero .hs-win--doc{left:calc(10*var(--su));top:calc(92*var(--su));width:calc(300*var(--su));height:calc(292*var(--su))}
  #hero .hs-doc{padding:calc(18*var(--su)) calc(20*var(--su))}
  #hero .hs-dock{left:calc(10*var(--su));bottom:calc(12*var(--su));flex-direction:column;padding:calc(9*var(--su)) calc(7*var(--su))}
  #hero .hs-panel{right:calc(10*var(--su));bottom:calc(12*var(--su));height:calc(min(var(--ph,538),510)*var(--su))}
  #hero .hs-full{height:calc(510*var(--su))}
  #hero .hs-pb{padding-bottom:calc(10*var(--su))}
  #hero .hs-pf{display:none}
  #hero .hs-preview{left:calc(8*var(--su));top:calc(36*var(--su));width:calc(340*var(--su));max-height:calc(662*var(--su))}
  #hero .hs-chip,#hero .hs-ul li,#hero .hs-todo li,#hero .hs-result__m{font-size:calc(11*var(--su))}
  #hero .hs-msg__who,#hero .hs-result__eb,#hero .hs-result__lb,#hero .hs-note,#hero .hs-status,#hero .hs-compose__lbl,#hero .hs-todo em{font-size:max(9px,calc(9*var(--su)))}
  #hero .hs-label{font-size:10px}
  #hero .hero__tablist{justify-content:flex-start}
  #hero .hero__tab{font-size:16px}
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion:reduce){
  #hero .hero__orbit,#hero .hero__orbit circle{animation:none}
  #hero .hero__orbit circle{opacity:var(--oo,.7)}
  #hero .hs-layer,#hero .hs-win,#hero .hs-preview{transition:none}
  #hero .hero__btn,#hero .hero__btn:hover,#hero .hs-open:hover{transform:none}
  #hero .hero__btn .arrow,#hero .hs-si__run,#hero .hs-status__run .status-sq{animation:none}
  #hero .hero__bar{display:none}
}

/* Montserrat is wider than the original face: on phones let the two title lines wrap
   instead of clipping "desktop." past the screen edge. */
@media (max-width:640px){
  #hero .hero__line{white-space:normal}
  #hero .hero__title{font-size:min(46px,calc((100vw - 2*var(--gutter))/7.4))}
}

/* touch targets on phones: >= 44px tall without changing the visual design */
@media (max-width:767px){
  #hero .hero__tab{min-height:44px}
  #hero .hs-open::after{content:"";position:absolute;inset:-9px -4px}
}
