/* hero: loop video behind the headline, the group photo with everyone as the prominent second element,
   key numbers and the partner bar. Entrance runs in pure CSS (works without JS); js/hero.js adds the
   video, count-ups, the zoom on the group photo and a light scroll-out depth effect. */

.hero { padding: 0; overflow: hidden; overflow: clip; }
#hero, #hero * { font-feature-settings: "calt" 0; }

/* integration.css gives .hero-stage a full viewport height; the stage is sized by its content here,
   the min-height only keeps short phones filled. */
#hero .hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh - var(--chrome-h, 0px), 60rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* ---- Media layer ---- */
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); transform-origin: 50% 70%; will-change: transform; }
.hero-poster, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero-poster { animation: hero-zoom 2.4s var(--ease) both; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(var(--bg-rgb) / .82) 0%, rgb(var(--bg-rgb) / .42) 30%, rgb(var(--bg-rgb) / .55) 55%, rgb(var(--bg-rgb) / .9) 82%, var(--bg) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 35%, rgb(var(--bg-rgb) / .7) 100%);
}
.hero-glow {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(46rem 26rem at 85% 20%, rgb(var(--primary-rgb) / .12), transparent 70%);
}

/* ---- Layout ---- */
.hero-inner {
  position: relative; width: 100%; max-width: var(--wide); margin-inline: auto;
  padding: clamp(3rem, 9vw, 5rem) var(--gutter) clamp(5.5rem, 12vh, 7rem);
  display: grid; gap: clamp(2rem, 5vw, 3rem);
}
.hero-copy { min-width: 0; will-change: transform, opacity; }

.hero-eyebrow {
  display: flex; flex-direction: column; gap: .45rem;
  margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
  font: 700 clamp(.66rem, 1.6vw, .78rem)/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
  animation: hero-fade .9s var(--ease) .15s both;
}
.hero-eyebrow-hosts { color: var(--primary); }
.hero-x { color: var(--ink); padding-inline: .15em; }
.hero-eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; }
.hero-eyebrow-sep { color: rgb(var(--ink-rgb) / .45); }

.hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4.1rem, 19.5vw, 9rem); line-height: .82; letter-spacing: -.045em;
  color: var(--ink);
  text-shadow: 0 10px 60px rgba(0, 0, 0, .35);
}
.hero-line { display: flex; align-items: flex-start; overflow: hidden; padding: .02em .12em .1em 0; margin-bottom: -.1em; }
.hero-word { display: block; animation: hero-rise 1.1s var(--ease) both; }
.hero-line:nth-child(1) .hero-word { animation-delay: .25s; }
.hero-line--accent .hero-word {
  font-style: italic; font-weight: 700; letter-spacing: -.035em;
  padding-right: .06em;
  color: var(--primary);
  animation-delay: .38s;
}
.hero-tag {
  align-self: center; margin: .2em 0 0 .5em;
  font: 700 clamp(.58rem, 1.3vw, .82rem)/1.4 var(--font-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-shadow: none;
  animation: hero-fade .8s var(--ease) 1s both;
}

.hero-kicker {
  margin: clamp(1.1rem, 2.6vw, 1.6rem) 0 0;
  font: 700 clamp(1.2rem, 3.4vw, 1.9rem)/1.25 var(--font); letter-spacing: -.02em; color: var(--ink);
}
.hero-k { display: inline-block; animation: hero-word .7s var(--ease) both; }
.hero-k:nth-child(1) { animation-delay: .75s; } .hero-k:nth-child(2) { animation-delay: .82s; }
.hero-k:nth-child(3) { animation-delay: .95s; } .hero-k:nth-child(4) { animation-delay: 1.02s; }
.hero-k:nth-child(5) { animation-delay: 1.18s; } .hero-k:nth-child(6) { animation-delay: 1.26s; }
.hero-knw { white-space: nowrap; }
.hero-knw .hero-k:nth-child(1) { animation-delay: 1.18s; } .hero-knw .hero-k:nth-child(2) { animation-delay: 1.26s; }
.hero-k--accent { color: var(--primary); text-shadow: 0 0 30px rgb(var(--primary-rgb) / .3); }

/* ---- Stats ---- */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(1.5rem, 4vw, 2.2rem) 0 0; max-width: 36rem;
  border-top: 1px solid var(--line2);
  animation: hero-fade 1s var(--ease) 1.35s both;
}
.hero-stat { display: grid; grid-template-rows: auto auto; align-content: start; gap: .4rem; padding: .85rem .4rem 0 0; }
.hero-stat + .hero-stat { padding-left: clamp(.5rem, 2vw, 1.1rem); border-left: 1px solid var(--line); }
.hero-stat dd {
  grid-row: 1; margin: 0; font: 900 clamp(1.7rem, 6vw, 2.7rem)/1 var(--font-display);
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; color: var(--ink);
  white-space: nowrap;
}
.hero-stat dt {
  grid-row: 2;
  font: 700 clamp(.55rem, 1.4vw, .66rem)/1.35 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); hyphens: auto; overflow-wrap: break-word;
}

/* ---- Group photo ---- */
.hero-group { margin: 0; min-width: 0; animation: hero-fade 1.1s var(--ease) .6s both; }
.hero-group-frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); background: var(--bg2);
  box-shadow: var(--shadow), 0 0 0 1px var(--line2), 0 0 60px -20px rgb(var(--primary-rgb) / .35);
  cursor: zoom-in;
}
.hero-group-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-group-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 68%, rgb(var(--bg-rgb) / .6) 100%);
}
.hero-group-stamp {
  position: absolute; left: .8rem; bottom: .7rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .7rem; border-radius: 999px;
  background: rgb(var(--bg-rgb) / .62); border: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 .76rem/1 var(--font); color: var(--ink);
}
.hero-group-stamp .mono { color: var(--primary); font-weight: 700; }
.hero-group-zoom {
  position: absolute; right: .7rem; top: .7rem; z-index: 1;
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: rgb(var(--bg-rgb) / .6); border: 1px solid var(--line2); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .25s, color .25s;
}
@media (hover: hover) {
  .hero-group-frame:hover .hero-group-img { transform: scale(1.03); }
  .hero-group-frame:hover .hero-group-zoom { background: var(--primary); color: var(--on-primary); }
}
.hero-group-cap { margin: .7rem 0 0; font-size: .86rem; line-height: 1.45; color: var(--text); }
.hero-credit { color: var(--dim); white-space: nowrap; }

/* ---- Scroll cue ---- */
.hero-cue {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  color: var(--muted); text-decoration: none;
  font: 700 .62rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  animation: hero-fade 1s var(--ease) 1.8s both;
}
.hero-cue:hover { color: var(--ink); }
.hero-cue-line { position: relative; width: 1px; height: 2.4rem; overflow: hidden; background: var(--line2); }
.hero-cue-line span {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--primary));
  animation: hero-drip 2s var(--ease) infinite;
}

/* ---- Partner bar ---- */
.hero-partners {
  padding: clamp(1.4rem, 3vw, 2rem) var(--gutter) clamp(1.2rem, 2.5vw, 1.6rem);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.hero-partners-inner {
  max-width: var(--wide); margin-inline: auto;
  display: grid; gap: 1.2rem;
}
.hero-pgroup { min-width: 0; }
.hero-plabel {
  margin: 0 0 .6rem;
  font: 700 .64rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: .5rem;
}
.hero-pgroup--venue .hero-logos { --cols: 1; max-width: 10rem; }
.hero-logo {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  height: 3.8rem; padding: .55rem .75rem; border-radius: .7rem;
  background: #f4f1ec; color: #14171f; overflow: hidden;
}
.hero-logo img { width: auto; height: auto; max-width: 100%; max-height: 2rem; object-fit: contain; }
.hero-logo--padelup img { max-height: 2.7rem; }
.hero-logo--padelup { gap: .4rem; color: #fff; }
.hero-logo--padelup .hero-wordmark { font-size: .9rem; letter-spacing: .06em; }
.hero-logo--padelian img { max-height: 1.5rem; }
.hero-logo--linis img { max-height: 2.1rem; }
.hero-logo--tucan img { max-height: 2.2rem; }
.hero-logo--spodeco img { max-height: 1.55rem; }
.hero-logo--tpch img { max-height: 2.4rem; }
.hero-logo--dark { background: #171717; box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); }
.hero-wordmark { font: 800 .98rem/1 var(--font); letter-spacing: -.01em; white-space: nowrap; }
.hero-logo--text .hero-wordmark { font-size: 1.05rem; }
.hero-logo--titanix { color: #1a2e5c; }
.hero-logo--titanix img { max-height: 1.45rem; }
.hero-logo--titanix .hero-wordmark { font-size: .9rem; letter-spacing: .06em; }
.hero-logo--pc img { max-height: 1.9rem; border-radius: .35rem; }
.hero-logo--pc .hero-wordmark { font-size: .86rem; }
.hero-logo--elevation { padding: 0; background: #f8f5ff; }
.hero-logo--elevation img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; transform: scale(.94); }
@media (max-width: 420px) {
  .hero-logo { height: 3.2rem; padding: .45rem .5rem; }
  .hero-logo img { max-height: 1.7rem; }
  .hero-logo--padelup img { max-height: 2.3rem; }
  .hero-logo--padelian img, .hero-logo--spodeco img { max-height: 1.2rem; }
  .hero-logo--pc img { display: none; }
  .hero-wordmark { font-size: .82rem; }
  .hero-logo--pc .hero-wordmark { font-size: .74rem; letter-spacing: -.02em; }
  .hero-logo--titanix .hero-wordmark { font-size: .72rem; }
  .hero-logo--titanix img { max-height: 1.1rem; }
}
.hero-partners-more { max-width: var(--wide); margin: 1rem auto 0; font-size: .86rem; }
.hero-partners-more a { color: var(--primary); font-weight: 600; }

@media (min-width: 760px) and (max-width: 999px) {
  .hero-logo--titanix { gap: .3rem; padding-inline: .45rem; }
  .hero-logo--titanix img { max-height: 1.2rem; }
  .hero-logo--titanix .hero-wordmark { font-size: .76rem; letter-spacing: .03em; }
}
@media (min-width: 760px) {
  .hero-partners-inner { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); column-gap: 1.2rem; }
  .hero-pgroup--partners { grid-column: 1 / -1; grid-row: 2; }
  .hero-pgroup--partners .hero-logos { --cols: 6; }
  .hero-pgroup--venue .hero-logos { max-width: none; }
}
@media (min-width: 1240px) {
  .hero-partners-inner { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 1fr); }
  .hero-pgroup--partners { grid-column: 2; grid-row: 1; }
}
/* One-row partner bar: the host tiles get narrow, the PadelCompass tile keeps only its wordmark. */
@media (min-width: 1240px) {
  .hero-logo { padding-inline: .5rem; }
  .hero-logo--pc img { display: none; }
  .hero-logo--pc .hero-wordmark { font-size: clamp(.74rem, .62vw, .9rem); }
  .hero-logo--titanix { gap: .35rem; }
  .hero-logo--titanix img { max-height: 1.25rem; }
  .hero-logo--titanix .hero-wordmark { font-size: clamp(.7rem, .6vw, .88rem); letter-spacing: .04em; }
}

/* ---- Desktop: copy left, group photo right ---- */
@media (min-width: 1000px) {
  .hero-inner {
    max-width: 96rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: end;
    padding-top: clamp(3rem, 8vh, 6rem);
  }
  .hero-title { font-size: min(8.8rem, 7vw); }
  .hero-kicker { font-size: clamp(1.25rem, 1.9vw, 1.9rem); }
  .hero-stat dd { font-size: clamp(1.8rem, 2.6vw, 2.7rem); }
  .hero-group { align-self: end; }
  .hero-partners-inner { max-width: 96rem; }
  .hero-partners-more { max-width: 96rem; }
}

/* Laptops with little height (1280×720, iPad landscape): the copy must not push the photo off-screen. */
@media (min-width: 1000px) and (max-height: 820px) {
  .hero-inner { padding-top: 2.2rem; padding-bottom: 5rem; }
  .hero-title { font-size: min(8rem, 6.8vw, 14vh); }
  .hero-eyebrow { margin-bottom: .9rem; }
  .hero-stats { margin-top: 1.2rem; }
  .hero-cue { display: none; }
}

@media (max-width: 600px) {
  .hero-stat dt { letter-spacing: .06em; }
  .hero-eyebrow-row { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .hero-eyebrow-sep { display: none; }
}
@media (max-width: 380px) {
  .hero-stat { padding-right: .1rem; }
  .hero-stat + .hero-stat { padding-left: .4rem; }
}

/* ---- Keyframes ---- */
@keyframes hero-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hero-word { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes hero-drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-cue-line span { animation: none; }
  .hero-video { display: none; }
}
