/* the opening: sky, the club's name, and the rider in front of it. Both frames are sized in the photograph's own
   proportions, so the three layers stay in register at any screen. */
.hx { position: relative; background: var(--espresso); }
.hv-motion .hx { block-size: 235vh; block-size: 235svh; }
.hx-pin { position: relative; block-size: 100vh; block-size: 100svh; min-block-size: 560px; overflow: hidden; background: var(--espresso); color: var(--cream); }
.hv-motion .hx-pin { position: sticky; inset-block-start: 0; }
.hx-win { position: absolute; inset: 0; overflow: hidden; }
.hx-scene { position: absolute; inset: 0; transform-origin: 66% 62%; will-change: transform; }
.hx-frame { position: absolute; left: 50%; top: 50%; container-type: inline-size; }
.hx-frame img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: fill; }
/* wide: cover the stage; extra width is cut mostly from the left so the rider stays whole */
.hx-frame--wide { --ar: calc(1376 / 768); width: max(100vw, 179.17svh, 1003px); aspect-ratio: 1376 / 768; transform: translate(-50%, -50%); }
.hx-frame--tall { display: none; }
.hx-word { position: absolute; inset-inline: 0; top: 15.5%; display: flex; justify-content: center; font: 700 17.4cqw/1 "Cinzel", Georgia, serif; color: #fbf1e3; text-shadow: 0 .02em .35em rgb(90 24 24 / .38); user-select: none; }
.hx-word span { display: inline-block; will-change: transform; background: linear-gradient(180deg, #fffaf2 8%, #f3dcc0 52%, rgb(243 214 180 / .55) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 .03em .12em rgb(90 24 24 / .35)); }
.hx-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(30 14 12 / .55) 0, rgb(30 14 12 / 0) 19%), linear-gradient(0deg, rgb(30 14 12 / .86) 0, rgb(30 14 12 / .35) 26%, rgb(30 14 12 / 0) 46%), linear-gradient(90deg, rgb(30 14 12 / .55), rgb(30 14 12 / 0) 52%); }
.hx-dust { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; mix-blend-mode: screen; }
.hx-copy { position: absolute; left: clamp(20px, 5.5vw, 96px); bottom: clamp(36px, 7svh, 84px); max-inline-size: min(560px, 46vw); z-index: 3; }
.hx-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: .86rem; font-weight: 500; color: #ecd3b4; }
.hx-eyebrow::before { content: ""; inline-size: 34px; block-size: 1px; background: currentColor; flex: none; }
.hx-copy h1 { margin: 0; font: 700 clamp(2.5rem, min(4.6vw, 7.8svh), 4.2rem)/1.28 var(--display); text-shadow: 0 2px 24px rgb(30 14 12 / .55); }
html[lang="en"] .hx-copy h1 { font-size: clamp(2rem, min(3.7vw, 6.6svh), 3.4rem); line-height: 1.2; text-transform: uppercase; }
.hx-line { display: block; overflow: hidden; padding-block: .2em .42em; margin-block: -.2em -.42em; }
.hx-line > span { display: block; }
.hx-text { margin: 12px 0 22px; font-size: 1.02rem; line-height: 1.75; max-inline-size: 42ch; color: rgb(243 230 216 / .9); }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-seal { position: absolute; right: clamp(20px, 4vw, 64px); bottom: clamp(24px, 5svh, 56px); inline-size: 112px; block-size: 112px; z-index: 3; color: var(--cream); }
.hx-seal__ring { position: absolute; inset: 0; animation: hx-spin 26s linear infinite; }
.hx-seal__ring text { font: 600 8.4px "Cinzel", serif; letter-spacing: 1.6px; fill: currentColor; }
.hx-seal .hv-mark { position: absolute; inset: 33px; inline-size: 46px; block-size: 46px; }
@keyframes hx-spin { to { rotate: 360deg; } }
.hx-cue { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 3; display: grid; justify-items: center; gap: 6px; font-size: .72rem; color: rgb(243 230 216 / .75); text-decoration: none; }
.hx-cue i { inline-size: 1px; block-size: 34px; background: linear-gradient(currentColor, currentColor) top / 100% 40% no-repeat rgb(243 230 216 / .2); animation: hx-cue 1.9s var(--ease) infinite; }
@keyframes hx-cue { 0% { background-position: 0 -80%; } 100% { background-position: 0 180%; } }
/* what the opening turns into: the scene gathers into an arch with a word on each side */
.hx-after { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden; }
.hx-after span { position: absolute; top: 50%; translate: 0 -50%; font: 700 clamp(3rem, 8.4vw, 8rem)/1.2 var(--display); color: var(--cream); }
.hx-after__a { right: 0; inline-size: 31vw; text-align: center; }
.hx-after__b { left: 0; inline-size: 31vw; text-align: center; }
html[dir="ltr"] .hx-after__a { right: auto; left: 0; }
html[dir="ltr"] .hx-after__b { left: auto; right: 0; }
html[lang="en"] .hx-after span { font-size: clamp(2rem, 5vw, 5rem); text-transform: uppercase; }
.hx-after p { position: absolute; inset-inline: 20px; bottom: 3.4svh; margin: 0; text-align: center; font: 400 1.25rem/1.6 var(--display); color: #e6c9ab; }
.hx-arch { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 2; pointer-events: none; fill: none; stroke: #c99b72; stroke-width: 1; }
.hx-arch path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html:not(.hv-motion) .hx-after, html:not(.hv-motion) .hx-arch { display: none; }

/* arrival: the name rises from behind the horse, then the words */
.hv-motion .hx-word span { animation: hx-letter 1.35s var(--ease) both; animation-delay: calc(var(--d) + .12s); }
.hx-word span:nth-child(1) { --d: .1s; } .hx-word span:nth-child(2) { --d: .17s; } .hx-word span:nth-child(3) { --d: .24s; }
.hx-word span:nth-child(4) { --d: .31s; } .hx-word span:nth-child(5) { --d: .38s; } .hx-word span:nth-child(6) { --d: .45s; }
@keyframes hx-letter { from { opacity: 0; translate: 0 .62em; } }
.hv-motion .hx-frame { animation: hx-breathe 2.6s var(--ease) both; }
@keyframes hx-breathe { from { scale: 1.09; } }
.hv-motion .hx-line > span { animation: hx-rise 1.1s var(--ease) .55s both; }
.hv-motion .hx-line + .hx-line > span { animation-delay: .68s; }
@keyframes hx-rise { from { translate: 0 150%; } }
.hv-motion :is(.hx-eyebrow, .hx-text, .hx-actions, .hx-seal) { animation: hx-in .9s var(--ease) .75s both; }
.hv-motion .hx-text { animation-delay: .92s; } .hv-motion .hx-actions { animation-delay: 1.04s; } .hv-motion .hx-seal { animation-delay: 1.2s; }
@keyframes hx-in { from { opacity: 0; translate: 0 18px; } }
.hv-intro .hx *, .hv-arriving .hx * { animation-play-state: paused !important; }

@media (max-aspect-ratio: 1/1) {
  .hx-frame--wide { display: none; }
  .hx-frame--tall { display: block; width: max(100vw, 55.82svh); aspect-ratio: 768 / 1376; top: 0; transform: translate(-50%, 0); }
  .hx-scene { transform-origin: 52% 42%; }
  .hx-word { top: 17.8%; font-size: min(21cqw, 20.2vw); }
  .hx-word span { margin-inline: -.012em; }
  .hx-shade { background: linear-gradient(180deg, rgb(30 14 12 / .6) 0, rgb(30 14 12 / 0) 17%), linear-gradient(0deg, #1e0e0c 0, rgb(30 14 12 / .86) 22%, rgb(30 14 12 / .4) 36%, rgb(30 14 12 / 0) 50%); }
  .hx-copy { inset-inline: 20px; left: 20px; right: 20px; bottom: max(26px, env(safe-area-inset-bottom)); max-inline-size: 34rem; margin-inline: auto; text-align: center; }
  .hx-eyebrow { justify-content: center; font-size: .76rem; margin-block-end: 6px; }
  .hx-eyebrow::before { display: none; }
  .hx-copy h1 { font-size: clamp(2.05rem, 10.2vw, 3.4rem); }
  html[lang="en"] .hx-copy h1 { font-size: clamp(1.5rem, 7vw, 2.6rem); }
  .hx-text { margin: 6px auto 16px; font-size: .92rem; }
  .hx-actions { justify-content: center; flex-wrap: nowrap; }
  .hx-actions .hv-btn { flex: 1; padding-inline: 12px; }
  .hx-seal { inline-size: 78px; block-size: 78px; right: auto; inset-inline-end: 10px; bottom: auto; top: 55svh; opacity: .9; }
  .hx-seal .hv-mark { inset: 24px; inline-size: 32px; block-size: 32px; }
  .hx-cue { display: none; }
  .hx-after span { top: 11.6svh; translate: 0 0; font-size: 3.6rem; inline-size: 50vw; }
  html[lang="en"] .hx-after span { font-size: 1.7rem; top: 13.6svh; }
  html[dir="rtl"] .hx-after__a { right: 0; } html[dir="rtl"] .hx-after__b { left: 0; }
  .hx-after p { bottom: 9svh; font-size: 1.15rem; }
}
@media (max-height: 640px) and (max-aspect-ratio: 1/1) { .hx-text { display: none; } }
@media (max-width: 400px) and (max-aspect-ratio: 1/1) { .hx-actions { gap: 8px; } .hx-actions .hv-btn { font-size: .85rem; gap: 6px; padding-inline: 8px; white-space: nowrap; } }
html[lang="ar"] .hx-copy h1 { word-spacing: -.07em; }
