/* Painter treatment: a single editorial illustration keeps the real photo and the character in separate visual layers.
   The only explicit action is the short paint reveal of the final e. */
.bb-e{ display: inline-block; }
/* placed by the brush (ladder 4% longer so the feet reach the pavement): the bristle tip sits on the final e, the ladder feet land on the pavement */
.pt-hero{ position: absolute; left: 529.8px; top: 405.8px; z-index: 2; width: 312px; pointer-events: none; transform-origin: 18% 1.3%; rotate: 4deg; }
.pt-hero{ filter: drop-shadow(8px 13px 8px rgba(37,25,16,.18)); }
.pt-hero img{ display: block; width: 100%; height: auto; }
/* raised arm + brush: its own layer, hinged at the cuff so it can nod up and down */
.pt-hero .pt-arm{ position: absolute; left: 11.72%; top: 0; width: 27.34%; transform-origin: 87.9% 84.1%; }
.pt-man .p-arm, .pt-man .p-fore{ transform: rotate(0deg); }

html.pt-anim .bb-e{ animation: pt-e 8s linear 3 forwards; }  /* three cycles, then rests on the last frame */
html.pt-anim .pt-hero{ animation: pt-painter-breathe 8s ease-in-out 3 forwards; }
/* One calm loop: the painted letter appears in three brush-length passes, then holds long enough to read. */
@keyframes pt-e{
  0%, 11%{ clip-path: inset(0 100% 0 0); opacity: 1; }
  30%, 34%{ clip-path: inset(0 66% 0 0); }
  50%, 54%{ clip-path: inset(0 33% 0 0); }
  70%, 88%{ clip-path: inset(0 0 0 0); opacity: 1; }
  99%{ clip-path: inset(0 0 0 0); opacity: 0; }
  100%{ clip-path: inset(0 100% 0 0); opacity: 0; }
  /* ponytail: slow fade out, the e is invisible again before the clip resets, so no flash at the loop seam */
}
html.pt-anim .pt-arm{ animation: pt-stroke 8s ease-in-out 3 forwards; }
/* two up-and-down strokes inside each of the three paint passes, resting between them */
@keyframes pt-stroke{
  0%, 11%{ rotate: 0deg; }
  15%{ rotate: 6deg; } 19%{ rotate: -6deg; } 23%{ rotate: 6deg; } 27%{ rotate: -6deg; } 30%, 34%{ rotate: 0deg; }
  38%{ rotate: 6deg; } 42%{ rotate: -6deg; } 46%{ rotate: 6deg; } 50%{ rotate: -6deg; } 52%, 54%{ rotate: 0deg; }
  58%{ rotate: 6deg; } 62%{ rotate: -6deg; } 66%{ rotate: 6deg; } 70%{ rotate: -6deg; } 74%, 100%{ rotate: 0deg; }
}
@keyframes pt-painter-breathe{ 0%,100%{ translate: 0 0; } 48%{ translate: 0 -2px; } }
.pt-off .bb-e, .pt-off .pt-hero, .pt-off .pt-arm{ animation-play-state: paused !important; }
/* paused = the finished picture, not a half-painted E */


/* Scroll moments */
.pt-slot{ display: flex; justify-content: flex-end; margin-top: 18px; pointer-events: none; }
.pt-slot svg{ width: 220px; height: auto; overflow: visible; }
.pt-sys{ justify-content: flex-start; margin-top: 22px; } .pt-sys svg{ width: 150px; }
.pt-stp svg{ width: 210px; }
.pt-tick{ stroke-dasharray: 1; stroke-dashoffset: 0; }
.pt-armed .p-arm{ transform: rotate(-70deg); }
.pt-armed .pt-tick{ stroke-dashoffset: 1; }
.pt-svc .p-arm{ transform: rotate(-5deg); } .pt-sys .p-arm{ transform: rotate(6deg); } .pt-stp .p-arm{ transform: rotate(-4deg); }
.pt-armed.pt-play.pt-svc .p-arm{ animation: pt-ticks 5s ease-in-out forwards; }
.pt-armed.pt-play.pt-sys .p-arm{ animation: pt-point 3.6s ease-in-out forwards; }
.pt-armed.pt-play.pt-stp .p-arm{ animation: pt-sign 3s ease-in-out forwards; }
.pt-armed.pt-play .pt-t1{ animation: pt-draw .5s ease 1.1s forwards; }
.pt-armed.pt-play .pt-t2{ animation: pt-draw .5s ease 2.4s forwards; }
.pt-armed.pt-play .pt-t3{ animation: pt-draw .5s ease 3.6s forwards; }
@keyframes pt-draw{ to{ stroke-dashoffset: 0; } }
@keyframes pt-ticks{ 0%{ transform: rotate(-70deg); } 14%, 30%{ transform: rotate(-5deg); } 38%, 56%{ transform: rotate(-22deg); } 64%, 80%{ transform: rotate(-35deg); } 100%{ transform: rotate(-5deg); } }
@keyframes pt-point{ 0%{ transform: rotate(-70deg); } 22%{ transform: rotate(6deg); } 34%{ transform: rotate(0deg); } 46%{ transform: rotate(8deg); } 58%{ transform: rotate(0deg); } 70%, 100%{ transform: rotate(6deg); } }
@keyframes pt-sign{ 0%{ transform: rotate(-70deg); } 30%, 100%{ transform: rotate(-4deg); } }

@media (prefers-reduced-motion: reduce){
  .pt-armed .p-arm{ transform: none; } .pt-armed .pt-tick{ stroke-dashoffset: 0; }
  .pt-svc .p-arm{ transform: rotate(-5deg); } .pt-sys .p-arm{ transform: rotate(6deg); } .pt-stp .p-arm{ transform: rotate(-4deg); }
}
@media (max-width: 860px){
  .pt-sys{ justify-content: center; } .pt-armed.pt-play.pt-sys .p-arm{ animation-name: pt-point-down; } .pt-sys .p-arm{ transform: rotate(-40deg); }
  .pt-slot{ justify-content: center; }
}
@keyframes pt-point-down{ 0%{ transform: rotate(-70deg); } 22%{ transform: rotate(-40deg); } 34%{ transform: rotate(-46deg); } 46%{ transform: rotate(-38deg); } 58%{ transform: rotate(-46deg); } 70%, 100%{ transform: rotate(-40deg); } }

/* Phone and tablet: the hero billboard becomes a cropped strip (billboard + painter) after the hero form */
@media (max-width: 1100px){
  .hero-vb > .container{ display: flex; flex-direction: column; }
  .hero-vb .hx-gallery, .hero-vb .hx-tools{ order: 2; }
  .bb-scene{ display: block; order: 1; position: relative; width: 100vw; margin: 24px 0 0 calc(50% - 50vw); aspect-ratio: 600 / 811; overflow: hidden; background: #e9e4da; }
  .bb-stage{ position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform: none; /* home.css also scales by --s; without this the crop is shrunk twice */ transform-origin: 0 0; scale: var(--ms, .7); translate: calc(-250px * var(--ms, .7)) calc(-130px * var(--ms, .7)); }
  .bb-stage > img{ position: absolute; inset: 0; width: 100%; height: 100%; }
  .bb-face{ position: absolute; left: 0; top: 0; width: 367px; height: 450px; transform-origin: 0 0; transform: matrix3d(1.45515,.440382,0,.000700227,0,1,0,0,0,0,1,0,283,130,0,1); display: flex; flex-direction: column; justify-content: center; padding: 0 28px; color: #fff; }
  .bb-h{ font-family: "Anton", Impact, sans-serif; font-size: 68px; line-height: 1; text-transform: uppercase; }
  .bb-h small{ display: block; font-size: 30px; margin-bottom: 8px; color: #cfe0ff; }
  .bb-h em{ font-style: normal; background: #fff; color: #0d47c9; padding: 0 6px; display: inline-block; }
  .bb-face p{ font-size: 17px; line-height: 1.4; margin: 16px 0 0; color: #e6eeff; }
  .bb-mon, .bb-neck, .bb-foot, .bb-face .bb-btn{ display: none; }
}

/* Wide-screen fix: the monitor deck inherited the billboard's zoom (--s) and was scaled twice, so it spilled out of the monitor above ~1700px */
.bb-deckview .hx-stage{ scale: 1; }
