/* =========================================================
   HYROX page (hyrox.html). Rebuilt 2026-11-16 (Valeria): replaces the 2026-11-12 ad landing page
   (that version is backed up outside the repo in "Level Site Backups/2026-11-16 HYROX page (Nick's version)").
   All-navy page: looping video hero with the HYROX | LEVEL FITNESS lockup (both logos go to outline
   together every 4 s), then two coach panels (photo/video + copy). Copy is about the HYROX race itself,
   not how Level's classes are run.
   ========================================================= */
html { scroll-behavior: smooth; }
#learn { scroll-margin-top: calc(var(--nav-h) + 24px); }
.hx { padding-top: var(--nav-h); }
.hx-wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.hx-vhero { position: relative; height: 780px; margin-top: calc(-1 * var(--nav-h)); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--ink-900); }
.hx-vhero__bg { position: absolute; inset: -2px; }
.hx-vhero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,14,26,0.35) 0%, rgba(10,14,26,0.6) 60%, #0A0E1A 100%); }
.hx-vhero__bg { background: var(--ink-900); filter: saturate(0.55) contrast(1.05); }
.hx-vhero__bg video { width: 100%; height: 100%; object-fit: cover; }
.hx-vhero__bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: 0.07; mix-blend-mode: overlay; }
.hx-vhero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: var(--nav-h); }
.hx-lock { display: flex; align-items: center; justify-content: center; gap: 52px; }
.hx-lock__hyrox { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hx-lock__hyrox .hx-emblem { width: 104px; height: 55px; }
.hx-lock__hyrox img { width: 262px; height: 36px; max-width: none; }
.hx-lock__rule { width: 1px; height: 136px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.38) 30%, rgba(255,255,255,.38) 70%, rgba(255,255,255,0) 100%); }
.hx-lock__level { height: 112px; width: 304px; max-width: none; }
.hx-logo { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.hx-logo > :not(.hx-logo-outline) { animation: hxSolid 4s infinite, hxGlow 4s infinite; }
.hx-logo-outline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: inherit; filter: url(#hx-outline); pointer-events: none; animation: hxLine 4s infinite; }
@keyframes hxSolid { 0%, 55% { opacity: 1; } 62%, 88% { opacity: 0; } 96%, 100% { opacity: 1; } }
/* Quick soft glow at the start of every loop, right as the page opens (Valeria, 2026-11-16): glow, hold solid, outline, repeat. */
@keyframes hxGlow  { 0% { filter: none; } 5% { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) drop-shadow(0 0 16px rgba(183,218,249,.45)); } 14%, 100% { filter: none; } }
@keyframes hxLine  { 0%, 55% { opacity: 0; } 62%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.hx-lock__level-wrap { line-height: 0; }
.hx-vhero__content .hero__pills { margin-top: 48px; }
.hx-share { display: flex; gap: 12px; margin-top: 32px; }
.hx-share .pill { height: 42px; min-height: 42px; padding: 0 24px; font-size: 11px; }
body { background: var(--ink-900); color: var(--paper); }
.hx { background: var(--ink-900); color: var(--paper); }
.pill--ink { background: var(--paper); color: var(--ink-900); }
.hx-about { padding: 80px 0 120px; }
.hx-about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 88px; align-items: center; max-width: 1200px; }
.hx-about__photo { position: relative; margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 799 / 1200; }
.hx-about__photo img { width: 100%; height: 100%; object-fit: cover; }
.hx-about__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 26px 24px; background: linear-gradient(180deg, rgba(10,14,26,0) 0%, rgba(10,14,26,.7) 45%, rgba(10,14,26,.95) 100%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); }
.hx-about__photo figcaption b { color: var(--paper); font-weight: 600; }
.hx-about__photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-about--flip .hx-about__photo video { filter: saturate(0.6) contrast(1.05); }
.hx-about--flip .hx-about__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(30, 52, 110, .22); mix-blend-mode: multiply; }
.hx-about--flip .hx-about__photo figcaption { z-index: 1; }
.hx-about--flip { padding-top: 0; }
.hx-about--flip .hx-about__grid { grid-template-columns: 1.15fr 0.85fr; }
.hx-about--flip .hx-about__photo { order: 2; }
@media (max-width: 820px) {
  .hx-about--flip .hx-about__grid { grid-template-columns: 1fr; }
  .hx-about--flip .hx-about__photo { order: 0; }
}
.hx-about__note { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 14px 2px 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.hx-about__photo figcaption { padding-top: 90px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.hx-about__photo figcaption i { font-style: normal; }
.g-head { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.45; letter-spacing: .14em; text-transform: uppercase; color: var(--lf-blue); margin: 0 0 24px; max-width: 30ch; }
.g-body { font-size: 18px; line-height: 1.6; color: rgba(251,250,247,.82); margin: 0 0 36px; }
.g-body strong { color: var(--lf-blue); font-weight: 600; }
@media (max-width: 820px) {
  .hx-about { padding: 56px 0 80px; }
  .hx-about__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .hx-wrap { padding: 0 20px; }
  .hx-share { flex-wrap: wrap; }
  .hx-vhero { height: 640px; }
  .hx-lock { gap: 18px; }
  .hx-lock__rule { height: 62px; }
  .hx-lock__hyrox .hx-emblem { width: 48px; height: 26px; }
  .hx-lock__hyrox img { width: 120px; height: 17px; }
  .hx-lock__hyrox { gap: 9px; }
  .hx-lock__level { height: 52px; width: 141px; }
}

/* 4. Inside a HYROX class (Jade's two formats): thin-ruled boxes with an inset label, like Level's graphics. */
.g-box { position: relative; border: 1px solid rgba(255,255,255,.28); padding: 34px 0 22px; margin: 0; }
.g-box__label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 0 18px; background: var(--ink-900); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(251,250,247,.85); white-space: nowrap; }
.g-box__cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; }
.g-box__cols > div { text-align: center; padding: 4px 12px; border-left: 1px solid rgba(255,255,255,.18); }
.g-box__cols > div:first-child { border-left: 0; }
.g-box__cols dt { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.g-box__cols dd { margin: 0; font-family: 'Libre Caslon Display', Georgia, serif; font-size: 30px; line-height: 1.1; color: var(--paper); }
.g-box__cols .g-box__note { margin-top: 10px; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lf-blue); line-height: 1.5; }
.hx-way { padding: 40px 34px 34px; text-align: center; }
.hx-way__title { font-family: 'Libre Caslon Display', Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 14px; color: var(--paper); }
.hx-way__text { font-size: 17px; line-height: 1.65; color: rgba(251,250,247,.8); margin: 0 auto; max-width: 40ch; }
.hx-way--one { max-width: 1000px; margin: 0 auto; padding: 44px 48px 38px; }
.hx-way--one .g-box__label { margin: 0; font-family: 'Inter', sans-serif; font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--lf-blue); padding: 0 18px; line-height: 1; }
.hx-way--one .hx-way__text { max-width: 820px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; line-height: 2; color: rgba(251,250,247,.88); }
.hx-moves { list-style: none; margin: 22px auto 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; max-width: 760px; }
.hx-moves li { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lf-blue); }
.hx-way--one .hx-way__small { font-size: 13px; letter-spacing: .2em; color: rgba(251,250,247,.6); }
.hx-way--one .hx-way__end { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); max-width: 860px; }
.hx-way--one .hx-way__text strong { font-style: normal; font-weight: 500; color: var(--lf-blue); }
.hx-way__text strong { color: var(--lf-blue); font-weight: 600; }
.hx-formats { padding: 30px 0 130px; }
.hx-formats__head { text-align: center; margin: 0 auto 18px; }
.hx-formats__intro { text-align: center; max-width: 62ch; margin: 0 auto 64px; }
.hx-formats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 820px) {
  .hx-formats { padding-bottom: 90px; }
  .hx-formats__grid { grid-template-columns: 1fr; gap: 44px; }
  .g-box__cols dd { font-size: 22px; }
  .g-box__cols > div { padding: 4px 6px; }
  .g-box__label { font-size: 10.5px; letter-spacing: .22em; }
  .hx-way { padding: 34px 20px 26px; }
  .hx-way__title { font-size: 26px; }
  .hx-moves { gap: 10px 20px; }
  .hx-moves li { font-size: 14px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-logo > *, .hx-logo-outline { animation: none !important; }
  .hx-logo-outline { opacity: 0; }
}
