/* Heart of Apparel: people at the top of the home page 1.0.0 (Nov 20 2026). Only on the home page. */
#hoa-home .top.hoa-tp-on{height:auto;max-width:1120px;background:transparent;overflow:visible;border-radius:0;position:relative}
.hoa-tp-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.hoa-tp{padding:10px 12px 2px;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-tap-highlight-color:transparent}
.hoa-tp *{box-sizing:border-box}

/* stage: phone = the current look only */
.hoa-tp-stage{position:relative;display:grid;grid-template-columns:1fr;gap:12px;align-items:end}
.hoa-tp-card{position:relative;display:none;border-radius:22px;overflow:hidden;background:#2a2440;aspect-ratio:10/11;color:#fff;text-decoration:none;
  box-shadow:0 14px 30px -18px rgba(27,23,48,.6);transform:translateZ(0)}
.hoa-tp-card.is-cur{display:block}
.hoa-tp-card img.hoa-tp-po,.hoa-tp-card video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;display:block;border:0}
.hoa-tp-card video{opacity:0;transition:opacity .35s ease}
.hoa-tp-card video.is-on{opacity:1}
.hoa-tp-shade{position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(transparent,rgba(12,8,24,.62));pointer-events:none}
.hoa-tp-cap{position:absolute;left:14px;right:96px;bottom:13px;display:block;line-height:1.05;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.hoa-tp-cap small{display:block;font:800 11px/1.3 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hoa-tp-cap b{display:block;font:400 22px/1.05 "HoA Cooper",Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hoa-tp-go{position:absolute;right:12px;bottom:12px;height:34px;padding:0 14px;border-radius:99px;background:#fff;color:#1b1730;font:800 13px/34px system-ui,sans-serif;white-space:nowrap}

/* story bars on the playing look */
.hoa-tp-bars{position:absolute;z-index:3;left:12px;right:60px;top:12px;display:flex;gap:4px;pointer-events:none;grid-row:1}
.hoa-tp-bars i{flex:1;height:3px;border-radius:3px;background:rgba(255,255,255,.4);overflow:hidden;position:relative}
.hoa-tp-bars i::after{content:"";position:absolute;inset:0;width:0;background:#fff}
.hoa-tp-bars i.is-done::after{width:100%}
.hoa-tp-bars i.is-run::after{animation:hoa-tp-fill var(--d,5s) linear forwards}
.hoa-tp-bars.is-paused i.is-run::after{animation-play-state:paused}
@keyframes hoa-tp-fill{to{width:100%}}

/* the home's own rules (#hoa-home a{color:inherit}, #hoa-home button{width:auto}) outrank plain classes: pin ours to the home */
#hoa-home .hoa-tp-card,#hoa-home .hoa-tp-card:hover,#hoa-home .hoa-tp-card:visited{color:#fff;text-decoration:none}
#hoa-home .hoa-tp-card .hoa-tp-cap{color:#fff}
#hoa-home .hoa-tp-card .hoa-tp-go{color:#1b1730}
#hoa-home .hoa-tp-face{width:60px;min-width:60px;color:#1b1730}

/* round faces: jump to a look */
.hoa-tp-faces{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:10px 2px 2px;justify-content:flex-start}
.hoa-tp-faces::-webkit-scrollbar{display:none}
.hoa-tp-face{flex:none;width:60px;padding:0;border:0;background:none;color:#1b1730;font:700 10.5px/1.2 system-ui,sans-serif;text-align:center;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hoa-tp-face span{display:block;width:56px;height:56px;margin:0 auto 4px;border-radius:50%;padding:2.5px;background:conic-gradient(#ff3d7f,#ffd23f,#56b4e9,#5fd3b5,#9b6bff,#ff3d7f)}
.hoa-tp-face.is-cur span{background:#ff3d7f}
.hoa-tp-face img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 25%;border:2.5px solid #fff;display:block}

/* the home's own bag button sits over the playing look's top right */
#hoa-home .top.hoa-tp-on .hd-cart{top:16px;right:20px;left:auto;z-index:4}

/* product bubbles: always 6 (the shelf fills them in threes); one row on phones, 3 x 2 on desktops */
#hoa-home #shelf > a:nth-child(n+7){display:none!important}
#hoa-home #shelf > a:nth-child(-n+6){display:block!important}
@media (max-width:767px){
  #hoa-home #shelf{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:4px 12px 6px;gap:10px}
  #hoa-home #shelf::-webkit-scrollbar{display:none}
  #hoa-home #shelf > a{flex:0 0 auto;scroll-snap-align:start}
}
@media (min-width:768px) and (max-width:1023px){
  #hoa-home #shelf{display:flex!important;flex-wrap:nowrap;justify-content:center;gap:12px}
  .hoa-tp{max-width:720px;margin:0 auto}
}

/* tablet and desktop: three looks side by side, the playing one raised in the middle */
@media (min-width:768px){
  .hoa-tp{padding:14px 0 4px}
  .hoa-tp-stage{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .hoa-tp-card{aspect-ratio:9/16}
  .hoa-tp-card.is-prev,.hoa-tp-card.is-cur,.hoa-tp-card.is-next{display:block}
  .hoa-tp-card.is-prev{order:1}.hoa-tp-card.is-cur{order:2;transform:translateY(-14px);box-shadow:0 22px 40px -18px rgba(27,23,48,.7)}.hoa-tp-card.is-next{order:3}
  .hoa-tp-card.is-prev .hoa-tp-go,.hoa-tp-card.is-next .hoa-tp-go{display:none}
  .hoa-tp-card.is-prev .hoa-tp-cap,.hoa-tp-card.is-next .hoa-tp-cap{right:12px}
  .hoa-tp-cap b{font-size:17px}
  .hoa-tp-go{height:30px;line-height:30px;font-size:12px;padding:0 11px}
  .hoa-tp-cap{right:84px}
  .hoa-tp-bars{left:calc(33.333% + 8px + 10px);right:calc(33.333% + 4px + 10px);top:-2px}
  .hoa-tp-faces{justify-content:center}
}
/* hoa-wide desktop grid: the people take the left half, greeting and bubbles the right */
@media (min-width:1024px){
  html.hoa-wide #hoa-home > .top.hoa-tp-on{border-radius:0;overflow:visible;align-self:center}
  html.hoa-wide #hoa-home > .fam #shelf{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:440px;margin:0 auto;gap:16px 12px}
  html.hoa-wide #hoa-home > .fam #shelf > a{max-width:118px}
}

@media (prefers-reduced-motion:reduce){
  .hoa-tp-card video{display:none}
  .hoa-tp-bars{display:none}
  .hoa-tp-card.is-cur{transform:none}
}
