/* Hero: independently rotating SVG circles; the character stays still. */
main{overflow-x:clip}
.hero-art{width:clamp(580px,50vw,880px);right:-6%;top:15px}
.hero-ring{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:100%;pointer-events:none}
.hero-ring img{width:100%;animation:ring-turn 90s linear infinite;transform-origin:center}
.ring-yellow{width:81.91%}
.ring-yellow img{animation-duration:72s;animation-direction:reverse}
.ring-blue{width:65.91%}
.ring-blue img{animation-duration:60s}
.ring-inner{width:49.15%}
.ring-inner img{animation-duration:105s;animation-direction:reverse}
@keyframes ring-turn{to{transform:rotate(360deg)}}

/* Two continuous penlights pass behind white-backed title lines. */
.hero-penlights{position:absolute;left:calc(max(0px,(var(--viewport-width,100vw) - var(--page))/2) - 100px);top:0;width:850px;height:720px;z-index:0;pointer-events:none}
.hero-penlights span{position:absolute;left:0;top:560px;width:960px;height:6px;border-radius:6px;background:var(--pink);transform:rotate(-39deg);transform-origin:left center}
.hero-penlights span+span{top:610px;background:var(--yellow)}
.hero-title-line{background:#fff;padding:2px 12px;margin-left:-12px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.hero-logo{background:#fff;box-shadow:0 0 0 12px #fff}

/* Split outlines begin as two short diagonal bars, then extend downwards. */
.pillar,.card-panel{--frame-color:var(--pink);border-color:transparent;border-radius:3px}
.pillar:nth-child(2),.features .card-panel{--frame-color:var(--yellow);border-color:transparent}
.services .card-panel{border-color:transparent}
.frame-outline{position:absolute;inset:-2px;pointer-events:none;z-index:3}
.frame-outline:before,.frame-outline:after{content:"";box-sizing:border-box;position:absolute;top:0;bottom:0;width:50%;border:2px solid var(--frame-color);transform-origin:left top}
.frame-outline:before{left:0;border-right:0;border-radius:3px 0 0 3px}
.frame-outline:after{right:0;border-left:0;border-radius:0 3px 3px 0;transform-origin:right top}
/* The offset background is a penlight body and a separate grip. */
.features .card-panel:before{left:-68px;right:70px;border-radius:3px;background:linear-gradient(to right,var(--pink) 0 15%,transparent 15% calc(15% + 24px),var(--pink) calc(15% + 24px) 100%)}
.services .card-panel:before{left:50px;right:-70px;border-radius:3px;background:linear-gradient(to right,var(--yellow) 0 calc(100% - 150px),transparent calc(100% - 150px) calc(100% - 126px),var(--yellow) calc(100% - 126px) 100%)}
.card-panel:after{border-radius:3px}
.motion-ready .about-picture:before{transform:translateX(-105%);transition:transform .65s cubic-bezier(.25,.1,.25,1)}
.motion-ready .about-picture.is-visible:before{transform:translateX(0)}
.motion-ready .card-panel:before{transform:translateX(-110%);transition:transform .65s cubic-bezier(.25,.1,.25,1)}
.motion-ready .services .card-panel:before{transform:translateX(110%)}
.motion-ready .card-panel.is-visible:before{transform:translateX(0)}
.motion-ready .frame-outline:before,.motion-ready .frame-outline:after{clip-path:inset(0 0 calc(100% - 3px) 0);transform:rotate(-18deg) scaleX(.55)}
.motion-ready .is-visible>.frame-outline:before,.motion-ready .is-visible>.frame-outline:after{animation:frame-unfold .65s cubic-bezier(.25,.1,.25,1) both;animation-delay:var(--reveal-delay,.05s)}
.motion-ready .pillar:after{transform:scaleY(0);transform-origin:top;transition:transform .25s ease .5s}
.motion-ready .pillar.is-visible:after{transform:scaleY(1)}
.motion-ready .card-panel .info-card,.motion-ready .pillar>strong,.motion-ready .pillar>span:not(.frame-outline),.motion-ready .panel-rail{opacity:0;transform:translateY(8px);transition:opacity .6s ease 1.6s,transform .6s ease 1.6s}
.motion-ready .card-panel.is-visible .info-card,.motion-ready .pillar.is-visible>strong,.motion-ready .pillar.is-visible>span:not(.frame-outline),.motion-ready .is-visible>.panel-rail{opacity:1;transform:translateY(0)}
@keyframes frame-unfold{
  0%{clip-path:inset(0 0 calc(100% - 3px) 0);transform:rotate(-18deg) scaleX(.55)}
  25%{clip-path:inset(0 0 calc(100% - 3px) 0);transform:rotate(0) scaleX(1)}
  100%{clip-path:inset(0);transform:rotate(0) scaleX(1)}
}
/* FEATURES points left (grip on the right); SERVICES mirrors it. */
.card-panel>.frame-outline:before{left:0;right:0;bottom:auto;width:100%;height:100%;border:2px solid var(--frame-color);border-radius:3px}
.card-panel>.frame-outline:after{display:none}
.motion-ready .card-panel>.frame-outline:before{height:30px;clip-path:none;transform:none;background:var(--frame-color);animation:none}
.motion-ready .card-panel.is-visible>.frame-outline:before{animation:penlight-unfold .7s cubic-bezier(.25,.1,.25,1) .05s both}
.motion-ready .card-panel>.panel-rail{bottom:auto;height:30px;opacity:1;transform:none;color:transparent;border-radius:3px;transition:none;overflow:hidden}
.motion-ready .card-panel.is-visible>.panel-rail{animation:penlight-grip-unfold .7s cubic-bezier(.25,.1,.25,1) .05s both}
.motion-ready .card-panel .info-card{transition-delay:1.7s}
@keyframes penlight-unfold{
  0%,25%{height:30px;background:var(--frame-color)}
  50%{background:transparent}
  100%{height:100%;background:transparent}
}
@keyframes penlight-grip-unfold{
  0%,25%{height:30px;color:transparent}
  75%{color:transparent}
  100%{height:calc(100% + 4px);color:#fff}
}
@media(max-width:1200px){
  .features .card-panel:before{left:-60px;right:55px}
  .services .card-panel:before{right:-35px}
  .hero-art{width:590px;right:-90px;top:15px}
  .hero-penlights{left:-130px;width:750px}
  .hero-penlights span{top:500px;width:850px}
  .hero-penlights span+span{top:545px}
}
@media(max-width:900px){
  .features .card-panel:before{left:-35px;right:35px}
  .services .card-panel:before{right:-35px}
  .hero-art{width:490px;right:-100px;top:20px}
  .hero-penlights{left:-100px;width:650px}
  .hero-penlights span{top:425px;width:730px;height:5px}
  .hero-penlights span+span{top:465px}
}
@media(max-width:600px){
  .features .card-panel:before{left:-15px;right:20px;background:linear-gradient(to right,var(--pink) 0 15%,transparent 15% calc(15% + 12px),var(--pink) calc(15% + 12px) 100%)}
  .services .card-panel:before{left:20px;right:-15px;background:linear-gradient(to right,var(--yellow) 0 78%,transparent 78% calc(78% + 12px),var(--yellow) calc(78% + 12px) 100%)}
  .hero-art{width:100%;right:auto;top:auto;margin-top:35px}
  .hero-penlights{left:-80px;top:0;width:calc(100% + 120px);height:330px}
  .hero-penlights span{top:300px;width:600px;height:4px}
  .hero-penlights span+span{top:332px}
  .hero-title-line{padding:2px 7px;margin-left:-7px}
}
@media(prefers-reduced-motion:reduce){
  .hero-ring img{animation:none}
  .motion-ready .about-picture:before,.motion-ready .card-panel:before{transform:none;transition:none}
  .motion-ready .frame-outline:before,.motion-ready .frame-outline:after{clip-path:none;transform:none;animation:none}
  .motion-ready .card-panel>.frame-outline:before,.motion-ready .card-panel.is-visible>.frame-outline:before{height:100%;background:transparent;animation:none}
  .motion-ready .card-panel>.panel-rail,.motion-ready .card-panel.is-visible>.panel-rail{height:calc(100% + 4px);color:white;animation:none}
  .motion-ready .pillar:after{transform:none}
  .motion-ready .card-panel .info-card,.motion-ready .pillar>strong,.motion-ready .pillar>span,.motion-ready .panel-rail{opacity:1;transform:none}
}
