/* Sprocket's full-size helmet and its expressions belong to the header lockup. */
header .brand .brand-mascot { width: 112px; height: 89px; overflow: hidden; flex: 0 0 auto; }
header .brand .sprocket-head-ready { overflow: visible; }
header .brand .brand-mascot > img { position: absolute; width: 155.15%; height: auto; max-width: none; left: -30.49%; top: -9.2%; clip-path: polygon(19.65% 3.9%,84.1% 3.9%,84.1% 39.9%,73% 41.3%,68.1% 43.4%,60% 45.1%,52% 45.4%,41% 45.1%,32.7% 42.9%,25.3% 40.2%,23.3% 33.8%,21.5% 31%,19.65% 29.1%); }
header .sprocket-head-art { display: block; width: 100%; height: 100%; overflow: visible; }
header button.brand-mascot{cursor:pointer;pointer-events:auto;background:transparent;border:0;border-radius:20%;padding:0;touch-action:manipulation}
header .brand a.wordmark{color:inherit;text-decoration:none}
header .sprocket-head-face { transform-origin: 584px 535px; }
header .sprocket-head-smile, header .sprocket-lid-line { opacity: 0; }
header .sprocket-lid-left .sprocket-iris { transform-origin: 436px 386px; }
header .sprocket-lid-right .sprocket-iris { transform-origin: 667px 390px; }
@media (max-width: 720px) {
  header .brand .brand-mascot { width: clamp(76px,24vw,99px); height: auto; aspect-ratio: 738 / 587; }
  header .brand { gap: .5rem; }
}
@media (max-width: 410px) {
  body > header { padding-inline: .65rem; }
  header .brand { gap: .3rem; }
  header .brand .wordmark { font-size: 41px; }
}
@media (max-width: 350px) {
  body > header { padding-inline: .45rem; }
  header .brand .wordmark { font-size: 37px; }
  header .brand .wordmark-sub { font-size: 7px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: no-preference) {
  header [data-expression="wink"] .sprocket-lid-left,
  header [data-expression="double-blink"] .sprocket-head-lid { opacity: 1; }
  header [data-expression="wink"] .sprocket-lid-left .sprocket-iris { animation: ttc-header-close .88s ease-in-out; }
  header [data-expression="wink"] .sprocket-lid-left .sprocket-lid-line { animation: ttc-header-wink .88s ease-in-out; }
  header [data-expression="double-blink"] .sprocket-iris { animation: ttc-header-double-close 1.03s ease-in-out; }
  header [data-expression="double-blink"] .sprocket-lid-line { animation: ttc-header-double-line 1.03s ease-in-out; }
  header [data-expression="smile"] .sprocket-head-smile { animation: ttc-header-smile 1.82s ease-in-out; }
  header [data-expression="nod"] .sprocket-head-face { animation: ttc-header-nod 1.18s ease-in-out; }
  header [data-expression="tilt"] .sprocket-head-face { animation: ttc-header-tilt 1.62s ease-in-out; }
}
@keyframes ttc-header-close {
  0%,100% { transform: scaleY(1); } 30%,65% { transform: scaleY(.04); }
}
@keyframes ttc-header-wink {
  0%,15%,84%,100% { opacity: 0; } 30%,65% { opacity: 1; }
}
@keyframes ttc-header-double-close {
  0%,39%,59%,100% { transform: scaleY(1); } 16%,22%,76%,83% { transform: scaleY(.04); }
}
@keyframes ttc-header-double-line {
  0%,9%,30%,64%,92%,100% { opacity: 0; } 16%,22%,76%,83% { opacity: 1; }
}
@keyframes ttc-header-smile {
  0%,100% { opacity: 0; transform: scale(.8); } 20%,76% { opacity: 1; transform: scale(1); }
}
header .sprocket-head-smile { transform-origin: 550px 475px; }
@keyframes ttc-header-nod {
  0%,100% { transform: none; }
  18% { transform: translateY(-7px) rotate(-1.5deg); }
  50% { transform: translateY(25px) rotate(3deg) scaleY(.88); }
  78% { transform: translateY(-5px) rotate(-1deg); }
}
@keyframes ttc-header-tilt {
  0%,100% { transform: none; }
  24%,67% { transform: translate(-5px,-2px) rotate(-8deg); }
  85% { transform: rotate(1.5deg); }
}

@media(min-width:721px) {
 html { --ttc-header-height:108px; }
 body > header { height:var(--ttc-header-height); padding-inline-start:clamp(.5rem,1.1vw,1.25rem); }
 header .brand .brand-mascot { width:129px; height:103px; }
 header .brand { gap:.65rem; }
}
@media(min-width:351px) and (max-width:720px) {
 body > header { padding-inline-start:.45rem; }
 header .brand .brand-mascot { width:96px; height:77px; }
}
@media(prefers-reduced-motion:no-preference) {
 header .sprocket-head-art { animation:ttc-head-float 5.3s ease-in-out infinite; }
 @keyframes ttc-head-float { 0%,100% {transform:translateY(0) rotate(-.6deg)} 50% {transform:translateY(-1.6px) rotate(.7deg)} }
}
