/* Shared controls use drawn forms, independent of emoji fonts and browser chrome. */
:where(button, a, select, input, textarea) {
  -webkit-tap-highlight-color: #a51c3022;
}

:where(a, button, select, input, textarea):focus-visible {
  outline: 2px solid #a51c30;
  outline-offset: 4px;
}

.site-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--icon-size, 1.09rem);
  height: var(--icon-size, 1.09rem);
  color: inherit;
  pointer-events: none;
}

.site-icon::before {
  content: '';
  width: 80%;
  height: 80%;
  background: currentColor;
  clip-path: polygon(0 46%, 72% 46%, 50% 20%, 58% 14%, 100% 51%, 58% 88%, 50% 81%, 72% 56%, 0 56%);
}

.site-icon--out::before { transform: rotate(-45deg); }
.site-icon--down::before { transform: rotate(90deg); }
.site-icon--download::before {
  clip-path: polygon(45% 0, 55% 0, 55% 60%, 76% 40%, 83% 47%, 50% 78%, 17% 47%, 24% 40%, 45% 60%);
}
.site-icon--download::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 1.5px;
  bottom: 1px;
  background: currentColor;
}

.icon-link { display: inline-flex; align-items: center; gap: .45em; }
.icon-link .site-icon { --icon-size: .95em; }
.art-next-arrow { --icon-size: clamp(2rem, 4vw, 3.3rem); }
.primary-button:hover .button-arrow { transform: translateX(3px); }
.art-link:hover > .site-icon, .art-next:hover .art-next-arrow { transform: translateX(4px); }

.menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  color: #7b1429;
  cursor: pointer;
  font: 600 14px/1.25 var(--sans, sans-serif);
}

.menu-toggle > .menu-label { font: inherit; color: inherit; }
.menu-toggle:active .menu-seal { filter: brightness(.86); }
.art-link:active, .home-company a:active, .home-explore:active { color: #691025; }

.menu-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 46% 44% 43% 48%;
  background: linear-gradient(145deg, #ad263b, #781128);
  box-shadow: inset 0 0 0 1px #fff4e83d;
}

.menu-seal::before, .menu-seal::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 1.5px;
  border-radius: 1px;
  background: #fff8ef;
  transition: transform .22s ease;
}

.menu-seal::before { transform: translateY(-3px); }
.menu-seal::after { transform: translate(1px, 3px) scaleX(.78); }
.menu-toggle[aria-expanded='true'] .menu-seal::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-seal::after { transform: rotate(-45deg); }

.motion-toggle, .page-motion {
  appearance: none;
  -webkit-appearance: none;
  color: #87172f;
  background: #fffaf5f5;
  border-color: #92203835;
  cursor: pointer;
}

.motion-mark { --icon-size: 1.05rem; }
.motion-mark::before {
  clip-path: none;
  background: linear-gradient(90deg, transparent 20%, currentColor 20% 38%, transparent 38% 62%, currentColor 62% 80%, transparent 80%);
}

[aria-pressed='false'] .motion-mark::before {
  background: currentColor;
  clip-path: polygon(24% 5%, 90% 50%, 24% 95%);
}

.field-select { position: relative; }
.field-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  padding-inline-end: 46px;
  cursor: pointer;
}

.field-select .site-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  color: #8b1930;
  transform: translateY(-50%);
}

.touch-art-ready { touch-action: pan-y pinch-zoom; }
.touch-art-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 130px 94px at var(--touch-x, 50%) var(--touch-y, 50%), #fff2cda6, #ffb8743d 44%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .36s ease-out;
}

.touch-art-active::before { opacity: .94; transition-duration: .13s; }
.motion-off .touch-art-visual::before { opacity: 0; transition: none; }
.touch-art-visual:is(.art-next, .contact) > div { position: relative; z-index: 2; }
.touch-art-visual.art-next > .site-icon { z-index: 2; }
.touch-art-visual.hero-stage :is(.hero-copy, .hero-cue) { z-index: 2; }

@media (max-width: 960px) {
  .header .menu-toggle { gap: 9px; min-height: 48px; padding: 0 1px 0 10px; }
  .header #navigation.open {
    background: #fffaf5;
    border-bottom: 1px solid #94223837;
    box-shadow: 0 18px 28px #3f11231b;
  }

  .header #navigation a { min-height: 48px; }
  .header #navigation a[aria-current] { color: #8b1930; }
  .header #navigation .nav-contact { color: #fff8ef; background: #911a32; }
}

@media (max-width: 760px) {
  .motion-toggle, .page-motion {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    min-height: 44px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .art-frame.touch-art-visual > img {
    transform: translate3d(var(--touch-dx, 0px), var(--touch-dy, 0px), 0) scale(1.025);
    transition: transform .36s ease-out;
  }

  .art-frame.touch-art-active > img { transition-duration: .12s; }
  .home-company a, .home-explore, .sports-cta { min-height: 44px; }
  .field input, .field textarea, .field select { font-size: 16px; }
}

@media (max-width: 355px) {
  .header { gap: 12px; }
  .header .menu-toggle { padding-inline-start: 4px; }
}
