/* End of a case page: one full screen (purple, like the homepage testimonials) with the hiring-manager contact on top
   and the "more work/" marquee under it. It slides up over the story; the footer then slides up over it. */
:root{--end-bg:#30266C}
:root[data-theme="dark"]{--end-bg:#1E1842}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--end-bg:#1E1842}}
#main{position:relative;z-index:1}
.endx{position:relative;z-index:28;background:var(--end-bg);color:#FBFBFB;box-shadow:0 -24px 48px -24px rgba(15,15,15,.35)}
.endx-in{height:100vh;height:100svh;overflow:hidden;display:flex;flex-direction:column;justify-content:center;transform-origin:50% 50%}
.hire{flex:0 1 auto;display:flex;padding:56px 0 0}
/* left: the ask; right: the contact itself, framed like a Figma selection so it's the thing your eye lands on */
.hire-grid{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px clamp(40px,6vw,112px);align-items:center}
.endx .eyebrow{display:block;margin:0 0 16px;color:#A394F9}
.hire h2{margin:0;font-size:45px;line-height:56px;font-weight:500;letter-spacing:-.04em;color:#FBFBFB;max-width:20ch}   /* Heading L */
.hire-lead{margin:16px 0 0;max-width:30rem;font-size:16px;line-height:24px;font-weight:400;letter-spacing:0;color:#CCCCCC}   /* Body 16/24 */
.hire-box{position:relative;display:grid;gap:24px;justify-items:start;padding:40px;border:1px solid #A394F9;background:rgba(15,15,15,.14)}
.hire-box .hd{position:absolute;width:8px;height:8px;background:#30266C;border:1px solid #A394F9}
.hire-box .hd.tl{left:-4.5px;top:-4.5px}.hire-box .hd.tr{right:-4.5px;top:-4.5px}.hire-box .hd.bl{left:-4.5px;bottom:-4.5px}.hire-box .hd.br{right:-4.5px;bottom:-4.5px}
.hire-tag{position:absolute;left:-1px;bottom:calc(100% + 4px);padding:3px 8px;background:var(--accent-fill);color:#FBFBFB;font:400 11px/1.3 var(--mono)}
.hire-addr{font-size:clamp(28px,3.1vw,45px);line-height:1.25;font-weight:500;letter-spacing:-.04em;color:#FBFBFB;text-decoration:none;background:linear-gradient(#A394F9,#A394F9) 0 100%/0 2px no-repeat;transition:background-size .35s cubic-bezier(.2,.7,.2,1);overflow-wrap:anywhere}
.hire-addr:hover,.hire-addr:focus-visible{background-size:100% 2px}
.hire-act{display:flex;flex-wrap:wrap;gap:8px}
.hire .btn:not(.btn-2):not(.btn-3):hover,.hire .btn:not(.btn-2):not(.btn-3):focus-visible{background:#6455C9}   /* the usual #30266C hover is the block's own colour, so it would vanish */
/* tertiary buttons, recoloured for the purple */
.hire .btn-3{color:#FBFBFB;box-shadow:inset 0 0 0 1px rgba(251,251,251,.32)}
.hire .btn-3:hover,.hire .btn-3:focus-visible{box-shadow:inset 0 0 0 1px #A394F9}
.hire-mail.done{box-shadow:inset 0 0 0 1px #A394F9;color:#A394F9}
.hire .btn .ext{width:11px;height:11px;margin-left:-2px;transition:transform .25s ease}.hire .btn:hover .ext{transform:translate(2px,-2px)}
.hire-avail{margin-bottom:-12px;display:flex;align-items:center;gap:calc(.5rem + 8px);margin:0;padding-left:8px;color:#CCCCCC;letter-spacing:0;text-transform:none}
.hire-avail i{width:8px;height:8px;border-radius:50%;background:#A394F9;animation:ping-l 2.4s ease-out infinite}
@keyframes ping-l{0%{box-shadow:0 0 0 0 rgba(163,148,249,.5)}70%,100%{box-shadow:0 0 0 8px rgba(163,148,249,0)}}
@media (prefers-reduced-motion:reduce){.hire-avail i{animation:none}}
/* the marquee, recoloured for the purple */
.endx .more{padding:calc(136px + 3rem) 0 48px;border-top:0}   /* the earlier 136px of breathing room under the contact block + 3rem, no divider */
.endx .more .eyebrow{margin-bottom:calc(48px + 2rem)}   /* the earlier 48px + 2rem */
.endx .more-mq a,.endx .more-mq span.cur,.endx .more-mq .sl{font-size:clamp(56px,7vw,112px)}
.endx .more-mq a{color:#FBFBFB}
.endx .more-mq span.cur,.endx .more-mq .sl{color:rgba(251,251,251,.16)}
.endx .more-mq a sup{color:#CCCCCC}
.endx .more-mq a:hover,.endx .more-mq a:focus-visible{color:#A394F9}
.endx .more-hint{color:#CCCCCC}
@media (max-width:900px){
  html:has(.endx){scroll-snap-type:y proximity}
  .endx{scroll-snap-align:start}   /* phones: the scroll comes to rest with the purple block filling the screen */
  /* phones: CSS does the hand-offs (no per-frame script): the story holds at its last screen while the purple block slides
     over it, then the purple block holds while the footer slides over */
  #main{position:sticky;top:var(--stick)}   /* set by hire.js; without it the story just scrolls */
  .endx{position:sticky;top:0}
  .endx-in{will-change:transform,opacity}
  .hire{padding:clamp(16px,4svh,40px) 0 8px}
  .hire-grid{grid-template-columns:none;gap:clamp(28px,5svh,48px)}
  .hire h2{font-size:31px;line-height:41px}
  .hire-lead{display:none}   /* phones: the heading and the contact box say enough */
  .hire-box{padding:clamp(18px,2.8svh,24px) 20px;gap:clamp(14px,2.4svh,20px);justify-items:stretch}
  .hire-addr{font-size:24px;display:block;padding:10px 0}   /* 44px+ tall tap target */
  .hire-act .btn{flex:1;justify-content:center}
  .hire-act .hire-book{flex-basis:100%}   /* Book a call gets its own row; email + LinkedIn share the next */
  .hire{padding-bottom:0}
  .endx .more{padding:calc(80px + 3rem) 0 clamp(16px,3svh,32px)}
  .endx .more .eyebrow{margin-bottom:calc(40px + 2rem)}
  .endx .more-mq a,.endx .more-mq span.cur,.endx .more-mq .sl{font-size:48px}
}
/* short phones: tighten so the whole end block still fits one screen */
@media (max-width:900px) and (max-height:700px){
  .hire h2{font-size:24px;line-height:31px}
  .hire-lead{font-size:14px;line-height:22px;margin-top:8px}
  .hire-addr{font-size:22px}
  .endx .more-mq a,.endx .more-mq span.cur,.endx .more-mq .sl{font-size:40px}
  .endx .more-mq .mq-card{width:136px}
  .endx .more{padding-top:52px}
  .endx .more .eyebrow{margin-bottom:56px}
}
/* short laptop screens: take the room from above the contact block, not from between the two parts */
@media (min-width:901px) and (max-height:780px){.hire{padding-top:16px}}
/* hover a project name: its box's tag turns into the call to action */
.more-mq a:hover .mq-card .sel b,.more-mq a:focus-visible .mq-card .sel b{font-size:0}
.more-mq a:hover .mq-card .sel b::after,.more-mq a:focus-visible .mq-card .sel b::after{content:"See case study";font-size:11px}
