.ph-arrow { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; flex: none; }
.ph-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 80; background: var(--paper); }
.ph-pages { display: flex; align-items: center; gap: inherit; }
.ph-header .contact-short, .menu-toggle, .back-top { display: none; }
.ph-header .button { display: inline-flex; align-items: center; gap: .4em; }
html { scroll-padding-top: 80px; }
.hero-aside a::after, .contact-page .hero-aside a[href^="https"]::after { content: none; }
.hero-aside .ph-arrow { margin-left: auto; color: var(--o); }
#site-footer .footer-logo { gap: 3px; }
#site-footer .footer-col-title, #site-footer .footer-x span { color: var(--o); }
@keyframes hound-hop {
  0%,100% { transform: none; }
  48% { transform: translate(3px,-4px) rotate(-4deg); }
}
@media (prefers-reduced-motion:no-preference) {
  #site-footer .footer-logo:is(:hover,:focus-visible,:active) .footer-animal { animation: hound-hop .38s ease-out; }
}
.contact-page .calendly-block { margin-top: 28px; }
#team { position: relative; isolation: isolate; }
#team::before {
  content: ''; position: absolute; inset: -20px 0; pointer-events: none; z-index: -1;
  background: url(contours.svg) center / 100% 100% no-repeat; opacity: .17;
  mask-image: linear-gradient(to right,#000,transparent 45%,transparent 55%,#000);
  transform: translateY(var(--contour-y,0));
}
.brand-ticker { overflow: hidden; background: var(--o); color: var(--n); padding: 14px 0; }
.ticker-belt, .ticker-copy { display: flex; align-items: center; width: max-content; }
.ticker-belt { animation: ph-ticker 36s linear infinite; }
.ticker-copy { flex-shrink: 0; min-width: 100vw; justify-content: space-around; }
.ticker-copy span { white-space: nowrap; font: italic 700 clamp(16px,1.55vw,23px)/1.15 Arial,sans-serif; text-transform: uppercase; }
.ticker-copy i { width: 1.6em; height: 1.15em; margin: 0 1.25em; background: var(--n); mask: url(ph-06bd7fe86555.png) center / contain no-repeat; }
@keyframes ph-ticker { to { transform: translateX(-50%); } }
.hero-drawer { position: sticky; top: calc(max(66px,5vh) + clamp(340px,31vw,550px)); text-align: center; }
.flight-sequence .arena { top: max(66px,5vh); }
.flight-sequence .hero-drawer .hero-scroll { position: static; margin: 0 auto; padding-top: clamp(12px,3vh,34px); }
.signature { display:block; width:clamp(205px,21vw,320px); max-width:80vw; height:auto; margin:6px auto 0; color:var(--o); }
@media (prefers-reduced-motion:no-preference) {
  .hero-drawer .ink-trace { stroke-dasharray:1; stroke-dashoffset:1; }
  .ink-visible .ink-trace { animation:ph-write var(--duration) linear var(--delay) both; }
}
@keyframes ph-write { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@media (max-width:760px) {
  .ph-header { transition: transform .2s ease; }
  .ph-header.nav-away { transform: translateY(calc(-100% - 1px)); }
  .ph-header .contact-long { display:none; }
  .ph-header .contact-short { display:inline; }
  .ph-header .button { min-height:44px; padding:8px 16px; }
  .ph-header.is-ready .menu-toggle {
    display:grid; align-content:center; justify-items:center; gap:5px; cursor:pointer;
    width:44px; height:44px; border:1px solid #11182755; border-radius:10px; background:transparent;
  }
  .menu-toggle span { height:2px; width:17px; background:var(--n); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform:translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform:translateY(-3.5px) rotate(-45deg); }
  .ph-header .ph-pages { gap:8px; }
  .ph-header.is-ready .ph-pages { display:none; position:absolute; top:100%; left:0; width:100%; padding:10px var(--pad); background:var(--paper); border-bottom:1px solid #11182740; }
  .ph-header.menu-open .ph-pages { display:grid; gap:0; }
  .ph-pages a { display:flex; align-items:center; min-height:44px; }
  .back-top:not([hidden]) {
    position:fixed; bottom:calc(14px + env(safe-area-inset-bottom)); right:calc(14px + env(safe-area-inset-right)); z-index:70;
    display:grid; place-items:center; width:48px; height:48px; border:1px solid var(--n); border-radius:12px; background:var(--o); color:var(--n); font-size:23px; cursor:pointer;
  }
  .back-top:active { transform:scale(.95); }
  .kicker { justify-content:center; flex-wrap:wrap; column-gap:7px; row-gap:3px; }
  .kicker i { flex:none; width:3px; height:3px; border-radius:50%; background:currentColor; }
  .flight-sequence .arena { top:3svh; }
  .hero-drawer { top:calc(345px + 3svh); }
  .flight-sequence .runner { right:-4%; top:3%; width:62%; height:47%; }
  #team::before {
    background: url(contours-mobile.svg) center top / 100% auto repeat-y;
    opacity: .32;
    mask-image: linear-gradient(to right,#000,rgba(0,0,0,.7) 23%,rgba(0,0,0,.28) 50%,rgba(0,0,0,.7) 77%,#000);
  }
}
@media(prefers-reduced-motion:reduce) {
  .ticker-belt { animation:none; }
  .ticker-copy { width:100vw; flex-wrap:wrap; justify-content:center; gap:.6em 1em; padding-inline:1em; }
  .ticker-copy i,.ticker-copy[aria-hidden] { display:none; }
  #team::before { transform:none; }
  .hero-drawer,.flight-sequence .arena { position:relative; top:auto; }
  .ph-header { transition:none; }
}

@media (prefers-reduced-motion:no-preference) {
  .hero-drawer .ink-complete { opacity:0; }
  .ink-visible .ink-complete { animation:ph-finish 1ms steps(1,end) var(--end) forwards; }
}
@keyframes ph-finish { to { opacity:1; } }

/* A round mask cap can paint a dot even at zero stroke length. */
@media (prefers-reduced-motion:no-preference) {
  .hero-drawer .ink-letter { opacity:0; }
  .hero-drawer.ink-visible .ink-letter {
    animation: ph-show-letter 1ms step-start var(--start) forwards;
  }
}
@keyframes ph-show-letter { from { opacity:0; } to { opacity:1; } }
