/* HOME — when to call (12-02 redesign). One lit object: the weeks between today and the client's date.
   Rail runs 14 weeks → 0. x(w) = 6% + (14 − w)/14 × 88%.  Today 6% · 12 wk 18.57% · 6 wk 56.29% · first look ends 62.57% · film ends 87.71% · date 94%.
   The date pill and the list below cycle together (12 s, 3 s each) while on screen; hovering a moment shows its date. */
.hm-board{padding:clamp(14px,1.4vw,20px);display:grid;gap:0}
.hm-stage{height:clamp(210px,16.5vw,240px);background:radial-gradient(70% 120% at 50% 110%,rgb(var(--L) / .07),transparent 60%),#090909}
.hm-scene{position:absolute;inset:0;
  -webkit-mask:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.hm-rail{position:absolute;left:0;right:0;top:60%;height:2px;
  background:linear-gradient(90deg,transparent 4%,rgb(var(--L) / .22) 8%,rgb(var(--L) / .22) 92%,transparent 97%)}
.hm-rail em,.hm-rail b{font-style:normal;white-space:nowrap}

/* the ruler: one tick a week */
.hm-ruler{position:absolute;left:6%;width:88%;top:-9px;height:20px;
  background:repeating-linear-gradient(90deg,rgb(var(--L) / .2) 0 1px,transparent 1px calc(100% / 14)) 0 0 / calc(100% + 1px) 100% no-repeat;
  -webkit-mask:linear-gradient(180deg,transparent,#000 35%,#000 65%,transparent);mask:linear-gradient(180deg,transparent,#000 35%,#000 65%,transparent)}

/* today: the flame playhead */
.hm-today{position:absolute;left:6%;top:0;translate:-50% 0}
.hm-today i{position:absolute;left:50%;bottom:-1px;width:2px;height:64px;translate:-50% 0;border-radius:2px;
  background:linear-gradient(180deg,transparent,var(--flame) 40%,var(--flame));box-shadow:0 0 10px rgb(var(--F) / .8),0 0 26px rgb(var(--F) / .4)}
.hm-today i::after{content:"";position:absolute;left:50%;bottom:-4px;width:9px;height:9px;translate:-50% 0;border-radius:50%;background:var(--flame);
  box-shadow:0 0 8px rgb(var(--F) / .95),0 0 22px rgb(var(--F) / .55)}
.hm-today em{position:absolute;top:18px;left:50%;translate:-50% 0;font-size:12.5px;line-height:18px;font-weight:500;color:var(--text)}

/* the window: where the call belongs */
.hm-win{position:absolute;left:18.57%;width:37.72%;top:-34px;height:68px;border-radius:10px;
  background:linear-gradient(180deg,rgb(var(--L) / .1),rgb(var(--L) / .03) 70%,rgb(var(--L) / .06));
  box-shadow:inset 0 1px 0 rgb(var(--L) / .38),inset 0 0 0 1px rgb(var(--L) / .1),0 0 40px rgb(var(--L) / .06);
  transition:box-shadow .6s var(--ease-out),background .6s var(--ease-out)}
.hm-win b{position:absolute;left:50%;top:-30px;translate:-50% 0;font-size:15px;line-height:20px;font-weight:500;color:var(--text);
  text-shadow:0 0 14px rgb(var(--L) / .6),0 0 34px rgb(var(--L) / .3)}
.hm-win em{position:absolute;top:calc(100% + 12px);font-size:12.5px;line-height:18px;color:var(--dim);translate:-50% 0}
.hm-w12{left:0}.hm-w6{left:100%}

/* the work after the call */
.hm-blk{position:absolute;top:-7px;height:14px;border-radius:5px;
  background:linear-gradient(180deg,rgb(var(--L) / .34),rgb(var(--L) / .14));box-shadow:inset 0 1px 0 rgb(var(--L) / .6),0 0 18px rgb(var(--L) / .12)}
.hm-b1{left:56.29%;width:6.28%}
.hm-b2{left:62.57%;width:25.14%;margin-left:3px;width:calc(25.14% - 3px)}
.hm-blk b{position:absolute;bottom:calc(100% + 10px);left:50%;translate:-50% 0;font-size:12.5px;line-height:18px;font-weight:500;color:oklch(0.82 0.005 75)}
.hm-b1 b{left:0;translate:0 0}

/* your date: a lit line and a glass pill that names it */
.hm-date{position:absolute;left:94%;top:0}
.hm-date::before{content:"";position:absolute;left:-1px;bottom:-30px;width:2px;height:96px;border-radius:2px;
  background:linear-gradient(180deg,transparent,rgb(var(--L) / .95) 30%,rgb(var(--L) / .95) 70%,transparent);box-shadow:0 0 12px rgb(var(--L) / .7),0 0 30px rgb(var(--L) / .35)}
.hm-pill{position:absolute;right:12px;bottom:34px;display:grid;padding:9px 16px;border-radius:99px;
  background:linear-gradient(180deg,oklch(1 0 0 / .16),oklch(1 0 0 / .06));box-shadow:inset 0 1px 0 oklch(1 0 0 / .4),inset 0 0 0 1px oklch(1 0 0 / .1),0 18px 40px -12px #000,0 0 40px rgb(var(--L) / .08);
  font-size:15px;line-height:20px;font-weight:500;color:var(--text);text-align:center}
.hm-pill b{grid-area:1/1;opacity:0;filter:blur(4px);translate:0 .35em;font-weight:inherit}
.hm-pill b:first-child{opacity:1;filter:none;translate:0 0}

/* the four moments: two-tone, separated by hairlines, each with a short lit line on top */
.hm-list{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.hm-m{position:relative;padding:40px clamp(18px,2vw,30px) 36px;display:grid;align-content:start;gap:10px}
.hm-m+.hm-m{box-shadow:inset 1px 0 0 var(--hair)}
.hm-m::before{content:"";position:absolute;left:clamp(18px,2vw,30px);top:14px;width:34px;height:1px;background:rgb(var(--L) / .55);
  box-shadow:0 0 8px rgb(var(--L) / .6);transition:width .6s var(--ease-out),background .4s,box-shadow .4s}
.hm-m .h3{font-size:20px;line-height:26px;color:oklch(0.86 0.005 75);transition:color .4s var(--ease-out)}
.hm-m .body{font-size:15.5px;line-height:24px}

/* the cycle: label i and moment i light together */
@keyframes hm-say{0%{opacity:0;filter:blur(4px);translate:0 .35em}4%,23%{opacity:1;filter:none;translate:0 0}27%,100%{opacity:0;filter:blur(4px);translate:0 -.35em}}
@keyframes hm-line{0%{width:34px;background:rgb(var(--L) / .55);box-shadow:0 0 8px rgb(var(--L) / .6)}4%,23%{width:72px;background:var(--flame);box-shadow:0 0 8px rgb(var(--F) / .9),0 0 22px rgb(var(--F) / .45)}27%,100%{width:34px;background:rgb(var(--L) / .55);box-shadow:0 0 8px rgb(var(--L) / .6)}}
@keyframes hm-head{0%,27%,100%{color:oklch(0.86 0.005 75)}4%,23%{color:var(--text)}}
.hm-pill b,.hm-m::before,.hm-m .h3{animation:12s linear infinite both paused}
.hm-pill b{animation-name:hm-say}
.hm-m::before{animation-name:hm-line}
.hm-m .h3{animation-name:hm-head}
.hm-pill b:nth-child(2),.hm-m:nth-child(2)::before,.hm-m:nth-child(2) .h3{animation-delay:3s}
.hm-pill b:nth-child(3),.hm-m:nth-child(3)::before,.hm-m:nth-child(3) .h3{animation-delay:6s}
.hm-pill b:nth-child(4),.hm-m:nth-child(4)::before,.hm-m:nth-child(4) .h3{animation-delay:9s}
.hm-board.is-live .hm-m::before,.hm-board.is-live .hm-m .h3{animation-play-state:running}

/* hover a moment: the cycle stops on it and the window brightens */
.hm-board:has(.hm-m:hover) .hm-pill b,.hm-board:has(.hm-m:hover) .hm-m::before,.hm-board:has(.hm-m:hover) .hm-m .h3{animation:none}
.hm-board:has(.hm-m:hover) .hm-pill b{opacity:0;filter:blur(4px);transition:opacity .35s var(--ease-out),filter .35s var(--ease-out),translate .35s var(--ease-out)}
.hm-board:has(.hm-m:nth-child(1):hover) .hm-pill b:nth-child(1),
.hm-board:has(.hm-m:nth-child(2):hover) .hm-pill b:nth-child(2),
.hm-board:has(.hm-m:nth-child(3):hover) .hm-pill b:nth-child(3),
.hm-board:has(.hm-m:nth-child(4):hover) .hm-pill b:nth-child(4){opacity:1;filter:none;translate:0 0}
.hm-board .hm-m:hover::before{width:72px;background:var(--flame);box-shadow:0 0 8px rgb(var(--F) / .9),0 0 22px rgb(var(--F) / .45)}
.hm-board .hm-m:hover .h3{color:var(--text)}
.hm-board:has(.hm-m:hover) .hm-win{background:linear-gradient(180deg,rgb(var(--L) / .16),rgb(var(--L) / .05) 70%,rgb(var(--L) / .09));
  box-shadow:inset 0 1px 0 rgb(var(--L) / .55),inset 0 0 0 1px rgb(var(--L) / .14),0 0 60px rgb(var(--L) / .1)}

@media (max-width:1100px){
  .hm-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-m:nth-child(3){box-shadow:inset 0 1px 0 var(--hair)}
  .hm-m:nth-child(4){box-shadow:inset 1px 0 0 var(--hair),inset 0 1px 0 var(--hair)}
}
@media (max-width:640px){
  .hm-stage{height:230px}
  .hm-blk b,.hm-win em{display:none}
  .hm-win b{font-size:14px}
  .hm-rail{top:46%}
  .hm-pill{font-size:14px;padding:8px 13px;bottom:auto;top:44px}
  .hm-date::before{bottom:-60px}
  .hm-list{grid-template-columns:1fr}
  .hm-m,.hm-m:nth-child(n){box-shadow:none;padding:24px 8px 20px}
  .hm-m+.hm-m{box-shadow:inset 0 1px 0 var(--hair)}
  .hm-m::before{left:8px}
}
@media (prefers-reduced-motion:reduce){
  .hm-pill b,.hm-m::before,.hm-m .h3{animation:none!important}
}
