/* One story, from the first message after hours to the team's morning handoff. */
.night.afterhours{padding-bottom:110px}
.afterhours .section-heading h2{font-size:clamp(36px,4.1vw,74px);line-height:1.12}
.afterhours .night-scene{height:auto;margin-top:44px;overflow:visible;perspective:none;background:none;border-radius:0}
.afterhours-stage{position:relative;isolation:isolate;overflow:hidden;border:1px solid #ffffff12;border-radius:30px;background:#101013;padding:30px 30px 24px}
.afterhours-stage:before{content:'';position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 8% 40%,#47163980,transparent 56%),linear-gradient(145deg,#0e1018,#161119 65%,#201b27)}
.afterhours-stage:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 105% 70%,#ffcbb345,transparent 64%),linear-gradient(130deg,transparent 30%,#f5d6a612);opacity:var(--night-dawn,1)}
.afterhours-sky{position:absolute;inset:0;pointer-events:none;z-index:-1;background-image:radial-gradient(1px 1px at 8% 20%,#e8c9e8 70%,transparent),radial-gradient(1px 1px at 28% 40%,#e8c9e8 70%,transparent),radial-gradient(1px 1px at 83% 20%,#e8c9e8 70%,transparent),radial-gradient(1px 1px at 94% 65%,#e8c9e8 70%,transparent);opacity:calc(1 - var(--night-dawn,1))}
.afterhours-journey{display:flex;align-items:center;justify-content:center;gap:0;list-style:none;margin:0 auto 32px;padding:0;max-width:900px}
.afterhours-journey li{position:relative;display:flex;align-items:center;gap:12px;flex:1;justify-content:center;min-width:0}
.afterhours-journey li+li:before{content:'';height:1px;width:46px;background:#ffffff24;position:absolute;left:-23px;top:50%}
.journey-dot{width:9px;height:9px;border-radius:50%;background:#92d8b5;box-shadow:0 0 0 5px #92d8b511;flex-shrink:0}
.afterhours-journey li:nth-child(2) .journey-dot{background:#efa4d4;opacity:calc(.3 + var(--night-reply,1) * .7)}
.afterhours-journey li:nth-child(3) .journey-dot{background:#f2c08d;opacity:calc(.3 + var(--night-morning,1) * .7)}
.afterhours-journey time{display:block;color:#aaa1af;font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:1px;line-height:1.8}
.afterhours-journey strong{display:block;font-size:14px;font-weight:550;color:#f0eaf2;line-height:1.6}
.afterhours-layout{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(340px,1.35fr) minmax(240px,1fr);gap:28px;align-items:center;max-width:1360px;margin:auto}
.afterhours-presence{text-align:center;min-width:0}
.afterhours-online{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#d4c6da;font-size:11px;letter-spacing:1px;line-height:1.7;white-space:nowrap}
.afterhours-online i{width:5px;height:5px;border-radius:50%;background:#8fe0b7;box-shadow:0 0 12px #8fe0b750}
.afterhours-mascot{position:relative;display:grid;place-items:center;height:340px;margin:7px -15px 15px}
.afterhours-mascot>span{position:absolute;inset:5% -15%;border:1px solid #f3b4db0d;border-radius:50%;background:radial-gradient(ellipse,#f084c51a,transparent 65%);box-shadow:0 0 0 22px #e8b6e703}
.afterhours-mascot img{position:relative;width:100%;height:100%;max-width:280px;object-fit:contain;filter:drop-shadow(0 20px 28px #f920b41a);transform:translateY(calc(var(--night-dawn,1) * -9px))}
.afterhours-presence>p{font-size:16px;line-height:1.8;color:#b9acbf;margin:0 auto 16px;max-width:250px}
.afterhours-presence>p strong{color:#f3e9f2;font-weight:550}
.afterhours-availability{display:flex;align-items:center;justify-content:center;gap:8px;color:#b9acbf;font-size:12px;line-height:1.7;max-width:230px;margin:auto}
.afterhours-availability svg{width:15px;height:15px;color:#e0b8d6;flex-shrink:0}
.afterhours-conversation{min-width:0;margin:0;position:relative;z-index:1}
.afterhours-chat{background:#eae6dd;border:1px solid #ffffff36;border-radius:22px;overflow:hidden;box-shadow:0 22px 65px #0006,0 0 0 6px #ffffff04;transform:translateY(calc((1 - var(--night-reply,1)) * 12px))}
.afterhours-chat-head{min-height:70px;background:#075e54;color:#fff;display:flex;align-items:center;gap:10px;padding:12px 16px}
.afterhours-back{font-size:28px;font-family:Arial,sans-serif;font-weight:300;line-height:1}
.afterhours-avatar{width:39px;height:39px;border-radius:50%;background:#d1e9e3;overflow:hidden;display:grid;place-items:center;flex-shrink:0}
.afterhours-avatar img{width:35px;height:45px;object-fit:contain;transform:translateY(4px)}
.afterhours-chat-head>div{flex:1;min-width:0;line-height:1.5}
.afterhours-chat-head strong{display:block;font-size:17px;font-weight:650}
.afterhours-chat-head>div>span{display:block;font-size:12px;color:#e0efeb}
.afterhours-chat-icons{display:flex;align-items:center;gap:12px;flex-shrink:0}
.afterhours-chat-icons svg{width:18px;height:18px}.afterhours-chat-icons b{font-size:21px;font-weight:400;line-height:1}
.afterhours-thread{display:flex;flex-direction:column;gap:12px;align-items:flex-start;padding:18px 17px 22px;background-color:#eae6dd;background-image:radial-gradient(#a7b5a52a 1px,transparent 1px);background-size:18px 18px;color:#172823;min-height:420px}
.afterhours-date{align-self:center;display:block;background:#fffdf4d9;box-shadow:0 1px 2px #142b1914;padding:6px 11px;border-radius:7px;margin-bottom:3px;color:#53645c;font-size:10px;font-weight:550;letter-spacing:.6px;text-align:center;line-height:1.5}
.afterhours-bubble{position:relative;max-width:88%;padding:11px 13px 7px;border-radius:10px;background:#fff;box-shadow:0 1px 1px #1b352b20;transform-origin:bottom left}
.afterhours-bubble:before{content:'';position:absolute;top:0;left:-7px;border:8px solid transparent;border-top-color:#fff;border-right-width:0}
.afterhours-bubble p{font-size:15px;line-height:1.6;color:#172823;margin:0;overflow-wrap:break-word}
.afterhours-bubble small{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#5b6d64;font-size:10px;line-height:1.5;margin-top:3px;font-variant-numeric:tabular-nums}
.afterhours-bubble small span{font-size:13px;letter-spacing:-3px;color:#087da3;margin-right:3px;font-weight:600}
.afterhours-bubble.outgoing{align-self:flex-end;background:#d9fdd3;border-top-right-radius:0;transform-origin:bottom right}
.afterhours-bubble.outgoing:before{left:auto;right:-7px;border-right-width:8px;border-left-width:0;border-top-color:#d9fdd3}
.night-reply{opacity:var(--night-reply,1);translate:0 calc((1 - var(--night-reply,1)) * 20px)}
.night-context{opacity:var(--night-context,1);translate:0 calc((1 - var(--night-context,1)) * 20px)}
.night-forward{opacity:var(--night-forward,1);translate:0 calc((1 - var(--night-forward,1)) * 20px)}
.afterhours-compose{display:flex;align-items:center;gap:12px;background:#f7f7f1;padding:11px 14px;color:#6c7d74;font-size:14px;line-height:1.5}
.afterhours-compose>span:nth-child(2){flex:1}.afterhours-compose>svg{width:20px;height:20px}.afterhours-mic{width:32px;height:32px;display:grid;place-items:center;background:#078272;color:#fff;border-radius:50%}.afterhours-mic svg{width:18px;height:18px}
.afterhours-conversation>figcaption{font-size:11px;color:#b2a9b6;text-align:center;line-height:1.7;margin:13px 0 0}
.afterhours-handoff{position:relative;background:linear-gradient(150deg,#29262b,#1d1b22);border:1px solid #e6c8aa33;border-radius:22px;padding:24px;box-shadow:0 16px 55px #0003;opacity:calc(.15 + var(--night-morning,1) * .85);transform:translateY(calc((1 - var(--night-morning,1)) * 28px));min-width:0}
.handoff-time{display:flex;align-items:center;gap:9px;color:#f4c79e;margin-bottom:23px}
.handoff-time svg{width:24px;height:24px}.handoff-time time{font-size:21px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.handoff-time>span{font-size:10px;letter-spacing:.8px;margin-left:auto}
.handoff-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#b6edcc;background:#8bd7b10d;border:1px solid #8bd7b12e;padding:7px 9px;border-radius:6px;line-height:1.5;letter-spacing:.4px}.handoff-badge svg{width:13px;height:13px;flex-shrink:0}
.afterhours-handoff h3{font-size:clamp(22px,1.8vw,29px);line-height:1.3;letter-spacing:-.8px;margin:19px 0 22px;color:#f7f0ec;font-weight:600}.afterhours-handoff h3 span{color:#f3c5a4}
.handoff-contact{display:flex;align-items:center;gap:10px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #ffffff10}.handoff-contact>span{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#f4c79e15;color:#f4c79e;font-size:14px}.handoff-contact strong{display:block;font-size:16px;color:#f1e9ef;font-weight:600}.handoff-contact small{display:block;font-size:12px;color:#c2b6c6;line-height:1.6;margin-top:3px}
.handoff-details{margin:0;display:grid;gap:15px}.handoff-details dt{font-size:10px;letter-spacing:.8px;line-height:1.8;color:#bcaabf}.handoff-details dd{margin:3px 0 0;color:#f2eaf2;font-size:14px;line-height:1.65}
.handoff-team{display:flex;align-items:center;gap:11px;border-top:1px solid #ffffff10;padding-top:18px;margin-top:20px;color:#e9d7c9}.handoff-team svg{width:22px;height:22px;flex-shrink:0}.handoff-team p{font-size:13px;line-height:1.7;margin:0}.handoff-team strong{font-weight:550;color:#f1e8ec}.handoff-example{display:block;font-size:11px;line-height:1.7;margin-top:18px;color:#b8a9bb}
.afterhours-scroll-hint{display:flex;align-items:center;justify-content:center;gap:9px;color:#b9aebf;font-size:10px;letter-spacing:1px;line-height:1.7;text-align:center;margin-top:28px}.afterhours-scroll-hint svg{width:15px;height:15px;flex-shrink:0}
.afterhours .night-footer{padding-top:30px;align-items:center;gap:24px}.afterhours-footer>p{margin:0;font-size:18px;line-height:1.8;color:#b8adbe}.afterhours-footer>p strong{font-weight:500;color:#f1e7ef}.afterhours-footer .button{font-size:16px}
@media(min-width:1101px) and (min-height:850px){
  .motion-enabled .afterhours .night-scene{height:calc(100svh + 700px)}
  .motion-enabled .afterhours-stage{position:sticky;top:110px;min-height:calc(100svh - 135px);display:flex;flex-direction:column;justify-content:center}
  .motion-enabled .afterhours-layout{width:100%;margin-top:auto;margin-bottom:auto}
}
@media(max-width:1200px){
  .afterhours-stage{padding:25px 20px}.afterhours-layout{gap:20px;grid-template-columns:minmax(120px,.65fr) minmax(320px,1.35fr) minmax(220px,1fr)}
  .afterhours-mascot{height:275px}.afterhours-online{font-size:9px;letter-spacing:.6px}.afterhours-presence>p{font-size:14px}.afterhours-availability{font-size:11px}
  .afterhours-handoff{padding:20px}.handoff-time{gap:6px}.handoff-time>span{font-size:9px}.handoff-time time{font-size:19px}.afterhours-handoff h3{font-size:23px}
  .afterhours-bubble p{font-size:14px}.afterhours-thread{gap:10px;padding:15px}.afterhours-journey strong{font-size:13px}
}
@media(max-width:1000px){
  .afterhours-layout{grid-template-columns:minmax(140px,.7fr) minmax(300px,1.3fr);gap:30px;max-width:760px}
  .afterhours-handoff{grid-column:1/-1;width:100%;max-width:600px;justify-self:center;margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:0 26px;padding:26px}
  .handoff-time,.handoff-badge,.afterhours-handoff h3,.handoff-contact{grid-column:1}.handoff-time{margin-bottom:16px}.handoff-badge{justify-self:start}.afterhours-handoff h3{font-size:26px;margin-bottom:16px}.handoff-contact{margin-bottom:0;padding-bottom:0;border:0}
  .handoff-details{grid-column:2;grid-row:1/5;align-content:center;border-left:1px solid #ffffff12;padding-left:25px}.handoff-team{grid-column:1/-1}.handoff-example{grid-column:1/-1}
  .afterhours-journey li+li:before{width:24px;left:-12px}.afterhours-journey strong{font-size:12px}.afterhours-journey{margin-bottom:28px}
  .afterhours-bubble p{font-size:16px}.afterhours-mascot{height:300px}.afterhours-presence>p{font-size:16px}.afterhours-online{font-size:10px}.afterhours-scroll-hint{display:none}
}
@media(max-width:700px){
  .night.afterhours{padding-bottom:65px}.afterhours .section-heading h2{font-size:clamp(30px,7.7vw,49px)!important;letter-spacing:-1.6px!important;line-height:1.15}.afterhours .section-heading h2 br{display:block}
  .afterhours .night-scene{margin-top:30px}.afterhours-stage{padding:23px 14px;border-radius:24px}
  .afterhours-journey{align-items:flex-start;gap:8px;margin-bottom:27px}.afterhours-journey li{flex-direction:column;gap:8px;text-align:center}.afterhours-journey li+li:before{display:none}.afterhours-journey time{font-size:11px}.afterhours-journey strong{font-size:11px;line-height:1.6;max-width:90px;margin:auto}.journey-dot{width:7px;height:7px}
  .afterhours-layout{display:flex;flex-direction:column;gap:25px}
  .afterhours-presence{display:grid;grid-template-columns:95px 1fr;gap:0 17px;align-items:center;width:100%;max-width:420px;text-align:left;padding:0 8px}
  .afterhours-online{grid-column:2;grid-row:1;justify-content:flex-start;font-size:10px;white-space:normal;line-height:1.8}.afterhours-mascot{grid-column:1;grid-row:1/4;height:160px;margin:0}.afterhours-mascot>span{inset:13% -10%}.afterhours-mascot img{max-width:105px}.afterhours-presence>p{grid-column:2;grid-row:2;font-size:15px;margin:9px 0;line-height:1.75;max-width:none}.afterhours-availability{grid-column:2;grid-row:3;font-size:11px;justify-content:flex-start;max-width:none;margin:0;align-items:flex-start}.afterhours-availability svg{margin-top:2px}
  .afterhours-conversation{width:100%;max-width:460px}.afterhours-chat{border-radius:17px;box-shadow:0 14px 40px #0005}.afterhours-chat-head{gap:8px;padding:11px 12px;min-height:68px}.afterhours-chat-head strong{font-size:16px}.afterhours-chat-head>div>span{font-size:11px}.afterhours-chat-icons{gap:10px}.afterhours-chat-icons svg{width:17px;height:17px}.afterhours-back{font-size:25px}.afterhours-thread{padding:16px 13px 20px;gap:12px}.afterhours-date{font-size:9px;letter-spacing:.3px}.afterhours-bubble{padding:10px 12px 7px;max-width:90%}.afterhours-bubble p{font-size:15px;line-height:1.7}.afterhours-bubble small{font-size:10px}.afterhours-conversation>figcaption{font-size:11px;padding:0 8px;margin-top:12px}.afterhours-compose{font-size:13px}
  .afterhours-handoff{display:block;max-width:460px;padding:23px;margin-top:4px;border-radius:18px}.handoff-time{margin-bottom:18px}.handoff-time time{font-size:21px}.handoff-time>span{font-size:10px}.handoff-badge{font-size:10px}.afterhours-handoff h3{font-size:28px;line-height:1.3}.handoff-contact{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #ffffff12}.handoff-contact small{font-size:13px}.handoff-details{border:0;padding:0;gap:15px}.handoff-details dt{font-size:11px}.handoff-details dd{font-size:15px}.handoff-team p{font-size:14px}.handoff-example{font-size:12px;line-height:1.8}
  .afterhours .night-footer{align-items:stretch;gap:20px;padding-top:25px}.afterhours-footer>p{font-size:17px;text-align:center}.afterhours-footer .button{font-size:15px;width:100%;gap:15px;padding:15px;line-height:1.6}
}
/* Pausing also removes the long sticky passage so every message is readable. */
.motion-paused .afterhours .night-scene{height:auto}.motion-paused .afterhours-stage{position:relative;top:auto;min-height:0}.motion-paused .afterhours-scroll-hint{display:none}
