/* One original triangle and one undistorted glyph across every main page. */
body :is(.brand-hero,.menu-hero)>.hero-pennant{
 position:absolute;inset:0 4% auto auto;display:block;width:clamp(128px,12.5vw,180px);height:clamp(330px,33vw,420px);padding:0;margin:0;
 background:var(--pink,#ff9c89);clip-path:polygon(0 0,100% 0,60% 100%);z-index:4;pointer-events:none;
 transform-origin:50% 0;animation:shared-pennant-breeze 9s ease-in-out infinite;will-change:transform;
}
body :is(.brand-hero,.menu-hero)>.hero-pennant>img{
 position:absolute;left:56%;top:8%;width:auto;height:70%;max-width:none;max-height:none;aspect-ratio:166/683;
 object-fit:contain;transform:translateX(-50%);filter:brightness(0);
}
/* The pennant emerges from the same black field before crossing into photography. */
body.home-page .brand-hero>.brand-photo:before,
body .menu-hero>.menu-hero-photo:before{
 content:'';position:absolute;top:0;left:0;right:0;height:145px;background:linear-gradient(180deg,#161616 0%,#161616bd 34%,#16161600 100%);z-index:1;pointer-events:none;
}
@keyframes shared-pennant-breeze{0%,100%{transform:rotate(-.45deg)}45%{transform:rotate(.75deg)}72%{transform:rotate(-.1deg)}}
@media(max-width:760px){
 body :is(.brand-hero,.menu-hero)>.hero-pennant{right:4%;width:var(--mobile-pennant-width,clamp(70px,22vw,100px));height:clamp(230px,64vw,290px)}
 body :is(.brand-hero,.menu-hero)>.hero-pennant>img{left:56%;top:8%;height:70%;width:auto}
}
@media(prefers-reduced-motion:reduce){body :is(.brand-hero,.menu-hero)>.hero-pennant{animation:none;will-change:auto;transform:none}}

@media (max-width: 760px) {
  .menu-hero-logbook, .menu-hero-about, .menu-hero-code, .menu-hero-owners { --mobile-pennant-width: clamp(70px, 22vw, 100px); }

  /* Allow for the left inset, the pennant's right inset, and its sway. */
  .owners-page .menu-hero-owners > .menu-hero-copy,
  .code-page .menu-hero-code > .menu-hero-copy,
  .about-page .menu-hero-about > .menu-hero-copy,
  .logbook-page .menu-hero-logbook > .menu-hero-copy {
    width: calc(90% - var(--mobile-pennant-width) - 12px);
  }
  body.owners-page main .menu-hero-owners h1 { font-size: clamp(42px, 10.5vw, 64px); max-width: 100%; text-wrap: balance; }

  .logbook-page .menu-hero-logbook h1 { max-width: 100%; }
}

/* Reduce the complete triangle and glyph together on desktop only. */
@media (min-width: 1201px) and (pointer: fine), (min-width: 1401px) {
 body :is(.brand-hero,.menu-hero)>.hero-pennant { scale: .8; }
}
