﻿/* Hero layout, matched to the branded workspace reference. */
#ca-home .cn-hero{background:#fcf6eb;overflow:hidden}
html.cn-pin #ca-home .cn-hero{height:auto;min-height:100svh}
#ca-home .cn-hero__s,html.cn-pin #ca-home .cn-hero__s{position:relative;top:auto;min-height:100svh;height:auto;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);align-items:center;gap:clamp(20px,3vw,58px);padding:135px clamp(32px,5vw,86px) 65px;text-align:left;overflow:hidden}
#ca-home .cn-hero__bg{display:none}
#ca-home .cn-hero__t,html.cn-pin #ca-home .cn-hero__t{position:relative;left:auto;top:auto;translate:none;transform:none;opacity:1;filter:none;pointer-events:auto;max-width:none;width:auto;padding:0;display:grid;justify-items:start;gap:24px;z-index:2}
#ca-home .cn-hero .cn-h1{font-size:clamp(44px,4.5vw,78px)!important;line-height:1.07!important;max-width:800px}
#ca-home .cn-hero .cn-ln{display:block}
#ca-home .cn-hero .cn-gr{text-decoration-thickness:.09em;text-underline-offset:.1em}
#ca-home .cn-hero .cn-lead {
  width: 100%;
  max-width: 34ch;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  text-wrap: balance;
  text-align: justify;
  text-align-last: justify;
}
#ca-home .cn-hero .cn-btns{justify-content:flex-start}
#ca-home .cn-hero .cn-btn{border-radius:999px;min-height:58px}
#ca-home .cn-hero :is(.cn-dev,.cn-chip,.cn-tick,.cn-cue){display:none!important}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 620px;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.hero-highlights li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .7vw, 12px);
  padding-inline: clamp(5px, .7vw, 12px);
  font: 600 clamp(12px, 1.15vw, 16px)/1.25 Helvetica, Arial, sans-serif;
  animation: heroItemIn .75s both;
  animation-delay: calc(.6s + var(--order, 0)*.18s);
}
.hero-highlights li + li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  height: min(75%, 36px);
  border-inline-start: 1px solid #aaa39b;
  transform: translate(-50%, -50%);
}
.hero-highlights li:nth-child(2){--order:1}.hero-highlights li:nth-child(3){--order:2}.hero-highlights svg{width:clamp(30px,3vw,44px);height:auto;flex:none;animation:heroIconFloat 5s ease-in-out infinite}.hero-highlights li:nth-child(2) svg{animation-delay:.5s}.hero-highlights li:nth-child(3) svg{animation-delay:1s}
.hero-scene{position:relative;min-width:0;align-self:center;z-index:1;display:flex;flex-direction:column;align-items:stretch;animation:heroItemIn 1s .15s both}
.hero-photo{position:relative;line-height:0;border-radius:22px;overflow:hidden;box-shadow:0 28px 65px #79522122}.hero-photo__image{display:block;width:100%;height:auto}.hero-photo__screen,.hero-photo__mug{position:absolute;display:block;height:auto;transform:translate(-50%,-50%)}.hero-photo__screen{left:49.8%;top:42%;width:23%;filter:drop-shadow(0 1px 2px #0008)}.hero-photo__mug{left:85.1%;top:61%;width:7%;opacity:.85;filter:drop-shadow(0 1px 1px #7775)}
.hero-steps {
  --hero-step-rise: clamp(15px, 2vh, 22px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  width: min(100%, 440px);
  margin: 8px 0 18px auto;
  padding: 0;
  list-style: none;
  color: #17171a;
}
.hero-steps li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-inline: 4px;
  font: 400 clamp(17px, 1.75vw, 31px)/1.2 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
  animation: heroItemIn .55s calc(.4s + var(--step, 0)*.18s) both;
}
.hero-steps li:nth-child(2) {
  --step: 1;
  margin-bottom: var(--hero-step-rise);
}
.hero-steps li:nth-child(3) {
  --step: 2;
  margin-bottom: calc(2 * var(--hero-step-rise));
}
.hero-steps svg {
  width: clamp(38px, 4vw, 72px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}
@keyframes heroItemIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes heroIconFloat{50%{transform:translateY(-5px)}}
@media(max-width:1024px){#ca-home .cn-hero__s,html.cn-pin #ca-home .cn-hero__s{grid-template-columns:minmax(0,1fr);min-height:0;padding:130px 28px 60px;gap:15px}#ca-home .cn-hero__t,html.cn-pin #ca-home .cn-hero__t{min-width:0;max-width:760px}.hero-scene{width:min(100%,760px);margin:0 auto}}
@media(max-width:600px){#ca-home .cn-hero__s,html.cn-pin #ca-home .cn-hero__s{padding:118px 22px 45px}#ca-home .cn-hero .cn-h1{font-size:clamp(38px,10vw,54px)!important}#ca-home .cn-hero__t,html.cn-pin #ca-home .cn-hero__t{gap:19px}#ca-home .cn-hero .cn-btns{display:flex;width:auto;gap:10px;flex-wrap:wrap}#ca-home .cn-hero .cn-btns .cn-btn{width:auto;min-height:50px;padding:0 18px;font-size:13px}.hero-highlights{margin-top:8px!important}.hero-highlights svg{width:25px}.hero-photo{border-radius:14px}}
@media (max-width: 600px) {
  .hero-highlights li {
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    padding-inline: 3px;
    font-size: clamp(10px, 2.8vw, 13px);
    text-align: center;
  }
}
@media (max-width: 360px) {
  #ca-home .cn-hero__s { padding-inline: 18px; }
}
@media(prefers-reduced-motion:reduce){.hero-scene,.hero-highlights li,.hero-highlights svg,.hero-steps li{animation:none!important;opacity:1!important;transform:none}}
/* Blend the desk scene into the desktop hero. */
@media(min-width:1025px){
 #ca-home .cn-hero__s,html.cn-pin #ca-home .cn-hero__s{display:block;min-height:calc(100svh - 0px);padding:0;position:relative}
 #ca-home .cn-hero__t,html.cn-pin #ca-home .cn-hero__t{position:relative;z-index:3;width:57%;min-height:100svh;padding:clamp(135px,14vh,170px) 0 70px clamp(42px,5vw,98px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:clamp(20px,2.7vh,30px)}
 #ca-home .cn-hero .cn-h1{font-size:clamp(41px,4.1vw,79px)!important;letter-spacing:-.05em!important;line-height:1.07!important;max-width:none;white-space:nowrap}
 #ca-home .cn-hero .cn-ln{white-space:nowrap}
 #ca-home .cn-hero .cn-lead{font-size:clamp(17px,1.4vw,23px)}
 .hero-highlights{margin-top:clamp(18px,3vh,34px)!important}
 .hero-highlights li{font-size:clamp(11px,1vw,17px)}
 .hero-scene{position:absolute;right:0;bottom:0;width:48%;height:calc(100% - 88px);display:block;animation:heroItemIn 1s .15s both}
 .hero-photo{position:absolute;right:0;bottom:0;width:100%;border-radius:0;box-shadow:none;-webkit-mask-image:linear-gradient(105deg,transparent 0%,#000 12%,#000 100%);mask-image:linear-gradient(105deg,transparent 0%,#000 12%,#000 100%)}
}
@media(min-width:1025px) and (max-width:1280px){
 #ca-home .cn-hero__t,html.cn-pin #ca-home .cn-hero__t{width:58%;padding-left:35px}
 #ca-home .cn-hero .cn-h1{font-size:clamp(39px,4vw,51px)!important}
 .hero-scene{width:47%}
}
@media(min-width:1025px){.hero-photo{-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 18%),linear-gradient(to right,transparent 0%,#000 16%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent 0%,#000 18%),linear-gradient(to right,transparent 0%,#000 16%);mask-composite:intersect}}
/* Reference-matched workspace: the photo blends into the full hero background. */
.hero-photo__screen{left:70.5%;top:56.5%;width:15%;transform:translate(-50%,-50%) rotate(-4deg) skewX(-9deg)}
.hero-photo__mug{left:89%;top:74.5%;width:5%;transform:translate(-50%,-50%)}
@media(min-width:1025px){
 #ca-home .cn-hero{background:#fbf3e7}
 .hero-scene{width:100%;height:calc(100% - 88px);pointer-events:none}
 .hero-photo{width:min(88%,1550px);right:0;bottom:0;-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 18%),linear-gradient(to right,transparent 0%,#000 20%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent 0%,#000 18%),linear-gradient(to right,transparent 0%,#000 20%);mask-composite:intersect}
 #ca-home .cn-hero__t,html.cn-pin #ca-home .cn-hero__t{width:58%;padding-left:clamp(42px,5vw,98px);justify-content:center}
 #ca-home .cn-hero .cn-h1{font-size:clamp(42px,4.15vw,80px)!important}
}
@media(max-width:1024px){.hero-photo__screen{left:70.5%;top:56.5%;width:15%}.hero-photo__mug{left:89%;top:74.5%;width:5%}}
@media(max-width:600px){.hero-photo__image{width:150%;max-width:none;margin-left:-50%}.hero-photo__screen{left:55.75%;top:56.5%;width:22.5%}.hero-photo__mug{left:83.5%;top:74.5%;width:7.5%}}
@media (min-width: 1025px) {
  #ca-home .cn-hero {
    background: radial-gradient(circle at 78% 37%, #ffedc8 0, #fff2db 22%, #fbf3e7 51%);
  }
  .hero-steps {
    position: absolute;
    z-index: 2;
    top: 2px;
    right: clamp(28px, 3.6vw, 72px);
    width: min(28%, 540px);
    margin: 0;
  }
}
@media (min-width: 1025px) and (max-height: 850px) {
  .hero-steps { --hero-step-rise: 12px; }
  .hero-steps li { font-size: clamp(15px, 1.3vw, 21px); }
  .hero-steps svg { width: clamp(30px, 3vw, 46px); }
}
@media (min-width: 1025px) and (max-width: 1640px) and (max-height: 850px) {
  #ca-home .cn-hero__t,
  html.cn-pin #ca-home .cn-hero__t { padding-top: 159px; padding-bottom: 46px; }
}
@media (min-width: 1025px) and (max-height: 680px) {
  .hero-steps { width: 23%; }
  .hero-steps svg { width: clamp(28px, 2.6vw, 42px); }
}
@media (min-width: 1025px) and (max-width: 1640px) and (max-height: 680px) {
  #ca-home .cn-hero__t,
  html.cn-pin #ca-home .cn-hero__t { padding-top: 181px; padding-bottom: 24px; }
}
@media (min-width: 1641px) and (min-height: 741px) {
  .hero-steps {
    --hero-step-rise: clamp(20px, 3.25vh, 34px);
    top: clamp(28px, calc(50svh - 370px), 160px);
    max-width: calc(72vw - 815px);
  }
}
/* Restore the desktop scroll sequence after the new hero introduction. */
@media(min-width:1025px){
 html.cn-pin #ca-home .cn-hero{height:310vh;min-height:0}
 html.cn-pin #ca-home .cn-hero__s{position:sticky;top:0;height:100vh;height:100svh;min-height:0;overflow:hidden}
 html.cn-pin #ca-home .cn-hero__t{opacity:clamp(0,calc(1 - var(--t1)*1.15),1);transform:translateY(calc(var(--t1)*-12vh));filter:blur(calc(var(--t1)*6px));will-change:transform,opacity}
 html.cn-pin #ca-home .cn-hero__t[data-off]{pointer-events:none}
 html.cn-pin #ca-home .hero-scene{opacity:clamp(0,calc(1 - var(--t1)*1.2),1);transform:translateY(calc(var(--t1)*-7vh));will-change:transform,opacity}
 html.cn-pin #ca-home .cn-hero .cn-dev{display:block!important;z-index:3}
 html.cn-pin #ca-home .cn-hero .cn-chip{display:flex!important}
}
@media(min-width:1025px){html.cn-pin #ca-home .cn-hero{overflow:clip}}
@media(min-width:1025px){html.cn-pin #ca-home .hero-scene{animation:none!important}}

@media (min-width: 1025px) {
  #ca-home .cn-hero__t,
  html.cn-pin #ca-home .cn-hero__t { width: min(84%, 1280px); }
  #ca-home .cn-hero :is(.cn-h1, .cn-ln) { white-space: normal; }
}

@media (max-width: 600px) {
  #ca-home .cn-hero .cn-ln { text-wrap: balance; }
}
