/* ==========================================================================
   ProPadel Social Club — landing page
   Editorial / private-members-club system built on padel court geometry.
   Authored mobile-first; desktop composition layered on top.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette, sampled from ProPadel's own aerial photography + logo */
  /* The court in 1.png samples to #0E4FDD, and that electric ultramarine is
     right in a photograph, where texture, shadow and variance break it up.
     Poured flat across a full-width band it vibrates against white type at
     88% saturation. So the vivid blue stays in the photography and the flat
     graphic layer uses this composed version, which also lifts every contrast
     pair: cobalt-on-paper 5.8:1 -> 8.3:1, lime-on-cobalt 5.0:1 -> 7.2:1. */
  --cobalt:      #0A3AAE;  /* flat brand surfaces: CTA band, tiles, panels */
  --azure:       #0257AD;  /* deeper court blue (2.png, 3.png) */
  --navy:        #022367;  /* logo navy: body text + dark sections */
  --navy-deep:   #01163C;
  --paper:       #F3F0E7;  /* warm off-white: editorial background */
  --paper-dim:   #E8E3D6;
  --lime:        #CFEF2A;  /* acid lime accent: CTA, indices, details only */
  --white:       #FFFFFF;

  --hair-dark:   rgba(2, 35, 103, .16);
  --hair-light:  rgba(255, 255, 255, .18);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* Display voice: heavy and narrow, echoing the condensed logotype.
     Dial these two down (700 / 88) for a softer, more corporate read. */
  --display-weight: 900;
  --display-width: 78;
  --font-text:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.2vw, 88px);
  /* Hero is sized against this so the ticker sits on the fold, not below it */
  --ticker-h: 50px;
  --max:    1680px;

  /* Vertical rhythm. Adjacent sections stack their padding, so the gap
     between two blocks of text is twice this value. */
  --sec-pad: clamp(56px, 7.6vw, 122px);

  --ease: cubic-bezier(.16, .84, .28, 1);

  color-scheme: only light; /* brand page: one committed look, never auto-inverted */
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--lime); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--paper);
  padding: 14px 22px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-pad); position: relative; }

/* Fixed header clearance for in-page anchors */
section[id], [id="top"] { scroll-margin-top: 84px; }

.rule { height: 1px; background: var(--hair-dark); border: 0; margin: 0; }
.rule--light { background: var(--hair-light); }

/* Editorial section marker: 01 / KLUB.
   Set on a lime block so the index reads as one system down the whole page,
   identical on paper and on navy. justify-self keeps it hugging its text:
   as a grid item, inline-flex would be blockified and stretch the column.
   Right padding is trimmed to absorb the trailing letter-spacing. */
.marker {
  display: flex;
  justify-self: start;
  align-self: start;
  align-items: baseline;
  gap: .5em;
  background: var(--lime);
  color: var(--navy);
  padding: 9px 11px 8px 13px;
  border-radius: 1px;
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.marker i { font-style: normal; color: rgba(2, 35, 103, .4); }
.marker--light { color: var(--navy); }

/* Skrot z ogonkiem malymi literami wewnatrz etykiety pisanej wersalikami.
   Bez tego text-transform robi z "CMOs" napis "CMOS", ktory czyta sie jak
   jedno slowo, a nie jak liczba mnoga skrotu.
   Span musi obejmowac CALY skrot, nie sam ogonek: .hero-eyebrow to flex
   z gap 12px, wiec <span> wokol samego "s" stawal sie osobnym elementem
   siatki i litera odlatywala od skrotu o pelna wartosc odstepu. */
.lc { text-transform: none; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* Display typography */
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  line-height: .9;
  letter-spacing: -.034em;
  text-wrap: balance;
}

.h-sec {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  text-wrap: balance;
  font-size: clamp(36px, 6vw, 92px);
  line-height: .9;
  letter-spacing: -.036em;
}

.lead {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
}

.body-copy p + p { margin-top: 1.15em; }
.body-copy { font-size: clamp(16px, 1.05vw, 18px); line-height: 1.68; }

br.lg { display: none; }

.caption {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: .62;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--lime);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { flex: none; transition: transform .4s var(--ease); }
/* Powierzchnia hoveru jest tokenem, bo nie ma jednego koloru dobrego wszedzie.
   Na papierze i na fotografii dziala granat. Ale na granatowym tle przycisk
   znika: tlo hoveru rowna sie tlu podkladu i zostaje sam limonkowy napis.
   Dotyczy szuflady menu (tlo --navy) i kart zapisu (tlo --navy). Tam
   podmieniamy token na kobalt: limonka na kobalcie ma 7,19:1, a sam blok
   odcina sie od granatu. */
.btn:hover { background: var(--btn-hover-bg, var(--navy)); color: var(--lime); }
.drawer .btn { --btn-hover-bg: var(--cobalt); }
.btn:hover svg { transform: translateX(6px); }

/* Hero CTA only. A periodic hard cut to the hover colours: two steps, no
   easing, no glow, no fade. It borrows the states the button already has
   instead of inventing an effect, and gets out of the way on hover, where
   `animation: none` hands control back to the real hover rule. */
.btn--pulse {
  animation: ctaFlip 3.2s var(--ease) 1.4s infinite;
}
.btn--pulse svg {
  animation: ctaNudge 3.2s var(--ease) 1.4s infinite;
}
.btn--pulse:hover,
.btn--pulse:focus-visible,
.btn--pulse:hover svg,
.btn--pulse:focus-visible svg {
  animation: none;
}

@keyframes ctaFlip {
  0%, 62%   { background: var(--lime); color: var(--navy); }
  78%, 88%  { background: var(--navy); color: var(--lime); }
  100%      { background: var(--lime); color: var(--navy); }
}
@keyframes ctaNudge {
  0%, 62%, 100% { transform: none; }
  82%           { transform: translateX(7px); }
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
}
.btn--ghost:hover { background: var(--lime); color: var(--navy); box-shadow: none; }

/* Text link with rule */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-top: 1px solid currentColor;
}
.tlink svg { transition: transform .4s var(--ease); }
.tlink:hover svg { transform: translateX(7px); }

/* Court-geometry overlay: abstract white lines, never literal sport icons.
   Constrained to the same measure as .wrap so its quarter lines land in the
   gutters of the 12-column content grid instead of grazing the type. */
.court-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}
.court-grid i { border-right: 1px solid var(--hair-light); }
.court-grid i:last-child { border-right: 0; }
.court-grid::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); top: 50%;
  border-top: 1px solid var(--hair-light);
}
.court-grid--dark i { border-color: var(--hair-dark); }
.court-grid--dark::after { border-color: var(--hair-dark); }

/* Media frames */
.frame { position: relative; overflow: hidden; background: var(--azure); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--3x2  { aspect-ratio: 3 / 2; }
.frame--3x4  { aspect-ratio: 3 / 4; }
.frame--1x1  { aspect-ratio: 1 / 1; }
.frame--16x9 { aspect-ratio: 16 / 9; }

/* Fast cut-to-cut reel: each frame holds a photo, then hard-cuts to the next.
   Frames are offset from one another so the grid never switches in unison.
   600 ms per photo is the floor, not a default: that is 1.67 changes a second
   against the 3-per-second threshold in WCAG 2.3.1. Some of these photos are
   bright and some are dark, so cutting between them is a real luminance change,
   not just a content swap. Do not shorten this further. */
.reel { --reel: 1.8s; }
.reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: var(--klatki, reel3) var(--reel) linear infinite;
  /* animation-delay musi byc po skrocie, bo skrot zeruje opoznienie */
  animation-delay: calc(var(--dly, 0s) - var(--o, 0s));
}
/* Liczba klatek jest teraz rozna w kazdej ramce. Opoznienie startu kazdej
   z nich liczymy w markupie (--dly), zamiast mnozyc reguly nth-child przy
   kazdym dolozonym zdjeciu. Procentow w @keyframes CSS sparametryzowac nie
   potrafi, wiec kazda dlugosc karuzeli ma wlasny zestaw klatek kluczowych.
   Czas pelnego cyklu to zawsze 600 ms razy liczba zdjec, zeby tempo ciecia
   zostalo takie samo niezaleznie od tego, ile ich jest. */
.reel--5 { --klatki: reel5; --reel: 3s; }
.reel--9 { --klatki: reel9; --reel: 5.4s; }

/* Okno widocznosci jest odrobine dluzsze niz krok, wiec klatki zachodza na
   siebie o kilkanascie milisekund zamiast zostawiac dziure. Przy ciecu na
   krycie nakladka jest niewidoczna, bo wygrywa obraz pozniejszy w kodzie,
   a pusta ramka mignelaby na niebiesko. */
@keyframes reel3 { 0%, 33.7% { opacity: 1; } 33.9%, 100% { opacity: 0; } }
@keyframes reel5 { 0%, 20.4% { opacity: 1; } 20.6%, 100% { opacity: 0; } }
@keyframes reel9 { 0%, 11.3% { opacity: 1; } 11.5%, 100% { opacity: 0; } }

/* Section 01 does not cycle. It holds four alternative frames and picks one
   per visit, so the page varies between visits but stays still while read.
   Without JavaScript the first frame simply stays up. */
.swap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.swap img:first-child { opacity: 1; }
.swap.js img { opacity: 0; }
.swap.js img.shown { opacity: 1; }

/* One lime ball crossing the statistics block, behind the type. Two nested
   wrappers because a single element cannot animate two transforms at once. */
/* Above the content, not behind it: the ball has to be seen crossing the
   photograph and striking the figures, otherwise the count-up has no cause. */
.bouncer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.bouncer span { position: absolute; inset: 0; animation: ballX 13s linear infinite; }
.bouncer b { position: absolute; inset: 0; animation: ballY .62s cubic-bezier(.5, 0, 1, 1) infinite alternate; }
.bouncer i {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .88;
}
@keyframes ballX { from { transform: translateX(-4%); } to { transform: translateX(100%); } }
@keyframes ballY { from { transform: translateY(11%); } to { transform: translateY(76%); } }

.zoom img { transition: transform 1.1s var(--ease); }
.zoom:hover img { transform: scale(1.045); }

/* --------------------------------------------------------------------------
   4. Reveal motion
   -------------------------------------------------------------------------- */
.r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.r.in { opacity: 1; transform: none; }

.clip { display: block; overflow: hidden; }
.clip > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--d, 0ms);
}
.in > .clip > span, .clip.in > span { transform: none; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
/* One accent token for the header, because the bar sits on two different
   grounds: lime reads on the hero photograph but is 1.15:1 on warm white,
   so the paper state switches to cobalt, which is 8.3:1. */
.head {
  --head-accent: var(--lime);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* Solid from the first frame. Transparent over the hero put white nav links
     straight on top of the white display type and both became unreadable. */
  background: var(--navy);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.head::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  border-bottom: 1px solid var(--hair-light);
  transition: border-color .5s var(--ease);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: block; flex: none; }
.brand img { height: 26px; width: auto; transition: opacity .4s var(--ease); }
.brand .on-dark { display: block; }
.brand .on-light { display: none; }

.nav { display: none; }

/* Hover fills the link with the same lime block the section markers use:
   the wipe rises from the baseline, so the nav reads as the page index. */
.nav a {
  position: relative;
  z-index: 0;
  padding: 9px 11px 8px 13px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  /* Matched to the fill below. When the colour ran faster than the wipe,
     the text went navy while the lime was still arriving, so for about
     160 ms it sat dark on the dark header. */
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  border-radius: 1px;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .18s var(--ease);
}
/* Scroll position marker: a rule in the header accent under the current
   section's link. It retracts on hover, because the filled lime chip already
   says the same thing and the two together read as clutter. */
.nav a::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--head-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease), background .3s var(--ease);
}
.nav a.is-active::before { transform: none; }
.nav a:hover::before, .nav a:focus-visible::before { transform: scaleX(0); }

.nav a:hover, .nav a:focus-visible { color: var(--navy); }
.nav a:hover::after, .nav a:focus-visible::after { transform: none; }

/* Scroll progress. Driven from JS rather than animation-timeline, which is
   still not everywhere; it is a direct mapping, so no easing on the width. */
.progress {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 5px;
  overflow: hidden;
  pointer-events: none;
}
/* Gradient od limonki do ultramaryny. Rampa jest przypieta do szerokosci
   okna (background-size: 100vw), a nie do paska, wiec pasek ja odslania w
   miare przewijania zamiast sciskac caly przebieg w kilku pikselach.
   Szerokosc zamiast scaleX z tego samego powodu. */
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background-image: linear-gradient(90deg, var(--lime) 0%, #0E4FDD 62%, var(--cobalt) 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Same marker in the mobile drawer */
.drawer a.d-link.is-active { color: var(--lime); }
.nav a:focus-visible { outline-color: var(--navy); outline-offset: 2px; }

.head-cta { display: none; }

/* Scrolled state: page flips from photo-over-dark to paper */
.head.stuck { background: var(--paper); --head-accent: var(--cobalt); }
.head.stuck::after { border-color: var(--hair-dark); }
.head.stuck .brand .on-dark { display: none; }
.head.stuck .brand .on-light { display: block; }
.head.stuck .nav a { color: var(--navy); }

/* Burger */
.burger {
  width: 44px; height: 44px;
  margin-right: -10px;
  display: grid;
  place-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform .45s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}
.head.stuck .burger span { background: var(--navy); }
.menu-open .burger span { background: var(--paper); }
.menu-open .burger span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy);
  padding: 108px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform .7s var(--ease);
  overflow-y: auto;
}
.menu-open .drawer { transform: none; }

.drawer ul { display: grid; gap: 4px; }
.drawer a.d-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 12px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--hair-light);
}
.drawer a.d-link em {
  font-style: normal;
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--lime);
}
.drawer .btn { margin-top: 36px; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--ticker-h));
  min-height: calc(100svh - var(--ticker-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(96px, 12vh, 140px);
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.08);
  animation: heroIn 2.2s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }

/* Legibility scrims only. Flat, restrained, never decorative. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(1, 18, 52, .78) 0%, rgba(1, 18, 52, .30) 38%, rgba(1, 18, 52, 0) 68%),
    linear-gradient(to right, rgba(1, 18, 52, .52) 0%, rgba(1, 18, 52, 0) 55%);
}

.hero .court-grid { z-index: 1; }

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(28px, 4vw, 56px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 40px);
  color: rgba(255, 255, 255, .86);
}
.hero-eyebrow b { font-weight: 500; color: var(--lime); }

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  max-width: min(100%, 1240px);
  line-height: .82;
  letter-spacing: -.042em;
  text-transform: uppercase;
  margin: 0;
}
.hero-title .line { display: block; }
.hero-title .line > span {
  position: relative;
  display: block;
  white-space: nowrap;
  font-size: clamp(46px, 13.4vw, 244px);
  opacity: 0;
  transition: opacity .5s var(--ease), -webkit-text-stroke-color 1s var(--ease);
}
.hero.ready .hero-title .line > span { opacity: 1; }
.hero-title .line + .line > span { color: rgba(255, 255, 255, .9); }

/* The edge starts lime, which is what carries the letterforms while the
   photographs are running through them, then settles to white and merges into
   the glyphs. Set in em so it stays proportional from 46 px on a phone to
   244 px on a desktop; paint-order puts it behind the fill so the letters keep
   their weight. */
.hero-title .line > span,
.hero-title .line > span::before {
  -webkit-text-stroke: .008em var(--lime);
  paint-order: stroke fill;
}
/* Settled state: the edge takes each line's own fill colour, so it disappears
   into the glyph exactly. A flat white would have sat brighter than line two,
   which is set at 90% white, and left a visible halo around it. */
.hero.settled .hero-title .line > span {
  -webkit-text-stroke-color: currentColor;
}
.hero.settled .hero-title .line > span::before {
  -webkit-text-stroke-color: var(--white);
}

/* Entrance: the letterforms are cut out of photographs that swap fast, then
   the photo layer fades and leaves plain white type. The frames were picked
   inside a narrow luminance band (0.082-0.126), so cutting between them at
   160 ms is a content change, not a luminance flash across a large area.
   attr(data-final) keeps the overlay in sync with whatever fitTitle sized. */
.hero-title .line > span::before {
  content: attr(data-final);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background-image: var(--shot, none);
  background-size: cover;
  background-position: 50% 45%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s var(--ease), -webkit-text-stroke-color 1s var(--ease);
}
.hero.shot .hero-title .line > span::before { opacity: 1; transition: none; }

.hero-foot {
  margin-top: clamp(26px, 3.6vw, 52px);
  display: grid;
  gap: 26px;
}

.hero-lead { max-width: 44ch; color: rgba(255, 255, 255, .9); }

.hero-strip {
  margin-top: clamp(26px, 3.6vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--hair-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, .7);
}

/* Lime balls between the three claims, the same mark the ticker uses */
.strip-line { display: inline-flex; flex-wrap: wrap; align-items: center; }
.strip-line i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin: 0 15px;
  flex: none;
}

.scroll-cue { display: none; align-items: center; gap: 12px; }
.scroll-cue span {
  display: block;
  width: 1px; height: 34px;
  background: rgba(255, 255, 255, .45);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--lime);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   7. Ticker
   -------------------------------------------------------------------------- */
.ticker {
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  flex: none;
  width: max-content;
  animation: slide 78s linear infinite;
}
.ticker-track > div { display: flex; flex: none; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  width: 5px; height: 5px;
  background: var(--lime);
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   8. 01 / Klub
   -------------------------------------------------------------------------- */
.about-head { display: grid; gap: clamp(28px, 4vw, 52px); }
.about-head h2 { max-width: 16ch; }

.about-body { display: grid; gap: clamp(36px, 5vw, 64px); margin-top: clamp(40px, 5.5vw, 84px); }

.about-copy { display: grid; gap: clamp(24px, 2.6vw, 38px); }
.about-copy .lead { margin-bottom: 1.1em; font-weight: 500; }
.about-aside .frame { aspect-ratio: 4 / 3; }

/* Three constants on one baseline rail. Every cell carries identical
   padding, so the three numbers start at exact thirds: the previous version
   skipped the first cell's inset and the row read as misaligned. */
.about-meta {
  margin-top: clamp(52px, 7vw, 100px);
  border-top: 1.5px solid var(--navy);
  border-bottom: 1px solid var(--hair-dark);
  display: grid;
}
.about-meta div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 20px);
  padding: clamp(26px, 3.2vw, 46px) clamp(16px, 2vw, 34px);
  border-bottom: 1px solid var(--hair-dark);
}
.about-meta div:last-child { border-bottom: 0; }
.about-meta b {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(54px, 6.6vw, 108px);
  line-height: .78;
  letter-spacing: -.052em;
  color: var(--cobalt);
}
.about-meta b i { font-style: normal; color: var(--lime); }
.about-meta p {
  font-size: clamp(11px, .82vw, 13px);
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(2, 35, 103, .62);
  /* Bez nowrap. Pasek przechodzi na trzy kolumny juz przy 600 px, a etykieta
     "LIDEROW MARKETINGU" z rozstrzeleniem .2em nie miesci sie wtedy w kolumnie.
     Nie mogac sie zawinac, rozpychala cala strone do 732 px niezaleznie od
     okna. Skutek byl powazniejszy niz sam pasek: naglowek jest przyklejony
     i rozciagal sie do tej samej szerokosci, przez co przycisk menu ladowal
     poza ekranem w calym zakresie 600-700 px, a body ma overflow-x: hidden,
     wiec nie dalo sie do niego doscrollowac. */
}

/* Full-bleed diptych band — mirrors ProPadel's own aerial pairing */
.band { background: var(--navy); color: var(--paper); }
.band-pair { display: grid; grid-template-columns: 1fr 1fr; }
.band-pair .frame { aspect-ratio: 1 / 1; }

/* --------------------------------------------------------------------------
   9. 02 / Padel w liczbach
   -------------------------------------------------------------------------- */
.numbers { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; }
.numbers .court-grid { opacity: .5; }
.numbers > .wrap { position: relative; z-index: 1; }

.num-head { display: grid; gap: clamp(24px, 3vw, 44px); }
.num-head .lead { max-width: 66ch; color: rgba(243, 240, 231, .78); }

.num-grid {
  margin-top: clamp(44px, 6vw, 88px);
  display: grid;
  border-top: 1px solid var(--hair-light);
}

.stat {
  padding: clamp(26px, 3.4vw, 46px) 0 clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--hair-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.stat .idx {
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(243, 240, 231, .42);
}
.stat .val {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(52px, 9.4vw, 132px);
  line-height: .84;
  letter-spacing: -.045em;
  font-feature-settings: "tnum" 1;
}
.stat .val sup {
  font-size: .42em;
  vertical-align: super;
  letter-spacing: 0;
}
/* Przedrostek "ok." przy liczbie szacunkowej. Ten sam mechanizm co przy sup:
   maly modyfikator doczepiony do liczby, tyle ze z lewej strony. Licznik
   w main.js podmienia wylacznie ciagi cyfr w wezlach tekstowych, wiec ten
   wezel go nie dotyczy i nie zaburza odliczania. */
.stat .val i {
  font-style: normal;
  font-size: .3em;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: .95em;
  opacity: .5;
  margin-right: .16em;
}
.stat .val { transition: transform .2s var(--ease); }
.stat .val.pop { transform: scale(1.04); }
/* 34ch clears the longest caption ("kortów prognozowanych do 2028 roku") on
   one line wherever the cell is wide enough; below ~1050 px the cell itself is
   narrower than the sentence, so it wraps and that is correct. */
.stat .key { font-size: clamp(13px, 1.05vw, 16px); line-height: 1.4; max-width: 34ch; }
.stat .note { font-size: 12px; opacity: .5; }
.stat--accent .val { color: var(--lime); }
.stat--lead .idx { margin-bottom: auto; }
/* Sized so the longest value ("450–500") fills ~76% of its cell.
   Anything above ~90% wraps as soon as a scrollbar narrows the viewport. */
/* 4,5vw, nie 4,8vw. Po zmianie prognozy z "450-500" na "1000-1500" napis
   urosl o cztery znaki i przy 900-1520 px lamal sie na dwa wiersze: byl
   szerszy od komorki o 1-2 procent. Przy 900 px siatka przechodzi z dwoch
   kolumn na cztery i komorka kurczy sie z 372 do 184 px, wiec to najciasniej
   szy punkt calej sekcji. Gorny limit 74 px zostaje bez zmian, zeby na duzych
   ekranach, gdzie napis i tak sie miescil, nic nie zmalalo. */
.stat--q .val { font-size: clamp(38px, 4.5vw, 74px); }

.stat--media { padding: 0; border-bottom: 1px solid var(--hair-light); }
.stat--media .frame { aspect-ratio: 3 / 2; height: 100%; }

.num-foot {
  margin-top: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: baseline;
  justify-content: space-between;
}
.num-foot p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -.02em;
  line-height: 1.2;
  max-width: 50ch;
}
.num-foot .caption { opacity: .5; }

/* --------------------------------------------------------------------------
   10. 03 / Dlaczego padel
   -------------------------------------------------------------------------- */
.why-top {
  display: grid;
  gap: 24px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.why-top .lead { max-width: 74ch; }

.why-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--azure);
}
.why-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 82%;
}
.why-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1, 18, 52, .86) 0%, rgba(1, 18, 52, .40) 46%, rgba(1, 18, 52, .12) 100%);
}
.why-hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 6vw, 88px);
}
.why-quote {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(30px, 5vw, 82px);
  line-height: .96;
  letter-spacing: -.038em;
  max-width: 21ch;
}
.why-quote::before {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--lime);
  margin-bottom: clamp(22px, 3vw, 38px);
}

.why-support {
  display: grid;
  gap: clamp(26px, 3.4vw, 48px);
  padding-top: clamp(44px, 6vw, 88px);
}
.why-support p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.62; }

/* --------------------------------------------------------------------------
   11. 04 / Społeczność
   -------------------------------------------------------------------------- */
.comm-head { display: grid; gap: clamp(30px, 4vw, 56px); }

/* Typographic tile sitting inside the photo grid */
.cg-num {
  background: var(--cobalt);
  color: var(--white);
  padding: clamp(22px, 2.4vw, 38px);
  min-height: clamp(240px, 26vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.cg-num b {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(76px, 8.2vw, 132px);
  line-height: .78;
  letter-spacing: -.05em;
}
.cg-num b i { font-style: normal; color: var(--lime); }
.cg-num p { font-size: clamp(14px, 1vw, 16px); line-height: 1.45; color: rgba(255, 255, 255, .88); max-width: 26ch; }

.comm-grid {
  margin-top: clamp(46px, 6vw, 96px);
  display: grid;
  gap: clamp(16px, 2vw, 30px);
}
.comm-grid figcaption {
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .6;
}

.comm-tags {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--hair-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
}
.comm-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.comm-tags span::before { content: "— "; color: var(--lime); }

/* --------------------------------------------------------------------------
   12. 05 / Partnerzy
   -------------------------------------------------------------------------- */
.partners { background: var(--paper-dim); }
.part-head {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(36px, 4.5vw, 64px);
}
/* Miara 100ch jest ponad komfortem czytania, ale to jedno krotkie zdanie
   wprowadzajace, nie tekst ciagly, i ma sie miescic w jednej linii. */
.part-head p { max-width: 100ch; font-size: clamp(15px, 1.1vw, 17px); opacity: .74; }

.part-group > .caption { display: block; margin-bottom: 20px; opacity: .5; }
.part-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.part-foot .caption { opacity: .55; }

.part-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hair-dark);
  border-left: 1px solid var(--hair-dark);
}
.part-list li {
  border-right: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
  min-height: clamp(96px, 11vw, 150px);
  display: grid;
  place-items: center;
  padding: 20px 18px;
  text-align: center;
  transition: background .45s var(--ease);
}
.part-list li:hover { background: var(--paper); }
.part-list span {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "wdth" 94;
  font-size: clamp(17px, 1.75vw, 28px);
  letter-spacing: .015em;
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(2, 35, 103, .82);
  transition: color .45s var(--ease);
}
.part-list li:hover span { color: var(--navy); }
/* Logotypy przyszly w roznej jakosci, na bialym i na czarnym tle, w roznych
   proporcjach. Tla zostaly zdjete, wiec grafika lezy wprost na papierze, a nie
   w bialych prostokatach. Szerokosc kazdego znaku jest dobierana osobno
   (--w, --h), bo wpisanie ich w jedno pudelko daje falszywa rowniez: znak
   kwadratowy wyglada wtedy na dwa razy mniejszy niz szeroki logotyp slowny. */
.plogo {
  width: auto;
  height: auto;
  max-width: var(--w, 150px);
  max-height: var(--h, clamp(38px, 4vw, 54px));
  /* Lekkie stlumienie wyrownuje sciane optycznie: bez niego jeden nasycony
     czerwony znak przejmuje cala uwage. Na hoverze kafel wraca do pelni. */
  opacity: .84;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.part-list li:hover .plogo { opacity: 1; transform: scale(1.04); }

/* --------------------------------------------------------------------------
   13. Karty edycji z rysunkiem kortu

   NIEUZYWANE od scalenia sekcji 06 z pasem zapisow. Zostawione swiadomie,
   bo rysunek kortu i animacja odbijajacej sie pilki to element systemu
   graficznego opisany w README, a projekt nie jest pod kontrola wersji.
   Dotyczy .ed-*, .court, .ln*, .ball i .tlink. Do skasowania, jesli karty
   edycji nie wroca.
   -------------------------------------------------------------------------- */
.ed-head {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.ed-head .lead { max-width: 66ch; }

.ed-grid { display: grid; gap: clamp(24px, 3vw, 40px); }

/* Hover flips the whole card body to navy and turns the CTA lime: the same
   two colours the nav and the section markers already trade, so the gesture
   reads as one system rather than a new effect. Captions, notes and the date
   inherit colour and opacity, so a single pair of tokens drives all of them. */
.ed-card {
  --card-hot: var(--cobalt);
  --card-bg: var(--paper);
  --card-ink: var(--navy);
  --card-rule: var(--hair-dark);
  --card-cta: var(--navy);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-rule);
  background: var(--card-bg);
  color: var(--card-ink);
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease);
}
.ed-card--b { --card-hot: var(--navy); }
.ed-card:hover,
.ed-card:focus-within {
  --card-bg: var(--card-hot);
  --card-ink: var(--paper);
  --card-rule: var(--card-hot);
  --card-cta: var(--lime);
}

/* No photograph on these cards: a padel court drawn to its real 10 × 20 m
   proportions, on flat brand colour. Reads as an invitation, and avoids
   passing off generic tennis aerials as ProPadel's own courts. */
.ed-visual {
  --panel-bg: var(--cobalt);
  --panel-ink: rgba(255, 255, 255, .78);
  --panel-note: rgba(255, 255, 255, .5);
  position: relative;
  /* Flatter than the photo cards were: the drawing is vector, so it scales
     rather than crops, but it still has to clear the tag above and the caption
     below, which is what caps how flat this can go. */
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--panel-bg);
  transition: background .28s var(--ease);
}
.ed-visual--b { --panel-bg: var(--navy); }

/* On hover the two zones trade grounds: the panel goes to paper and the body
   takes that card's own blue, so the card inverts instead of flattening into
   one block (which is what happened on edition 02, navy panel over navy body). */
.ed-card:hover .ed-visual,
.ed-card:focus-within .ed-visual {
  --panel-bg: var(--paper);
  --panel-ink: rgba(2, 35, 103, .62);
  --panel-note: rgba(2, 35, 103, .45);
}
.ed-visual .court {
  /* Sized off the panel height, not its width, because the tag and the caption
     are a fixed pixel height while the panel scales. The percentage lets the
     drawing grow on wide panels; the calc caps it on narrow ones, where those
     two fixed labels are what actually limits how big the court can get. */
  height: 68%;
  max-height: calc(100% - 104px);
  width: auto;
  color: var(--panel-ink);
  transition: transform 1.1s var(--ease), color .28s var(--ease);
}
.ed-card:hover .ed-visual .court { transform: scale(1.04); }
.ed-card:hover .ed-tag { background: var(--navy); color: var(--lime); }

/* The court draws itself when the card enters the viewport: pathLength="1"
   normalises every stroke, so one dash value staggers all five of them.
   The ball lands last, and rallies only while the card is hovered. */
.court .ln {
  transition: transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.court .lnx { transform: scaleX(0); }
.court .lny { transform: scaleY(0); }
.court .lnc { transform: scaleX(0); }
.ed-card.in .court .ln { transform: none; }

.court .ball {
  transform: scale(0);
  transform-origin: 100px 50px;
  transition: transform .5s var(--ease) 1.45s;
}
.ed-card.in .court .ball { transform: scale(1); }
.ed-card:hover .court .ball { animation: rally 3.6s var(--ease) infinite; }

@keyframes rally {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(-69.5px); }
  70%  { transform: translateX(69.5px); }
  100% { transform: translateX(0); }
}
.ed-visual-note {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 1.6vw, 22px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--panel-note);
  transition: color .28s var(--ease);
}

.ed-tag {
  position: absolute;
  z-index: 2;
  top: 0; left: 0;
  background: var(--lime);
  color: var(--navy);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ed-body {
  padding: clamp(24px, 2.6vw, 42px);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: clamp(18px, 2vw, 28px);
}
.ed-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-rule);
  transition: border-color .28s var(--ease);
}
.ed-card:hover .ed-meta { border-bottom-color: rgba(255, 255, 255, .26); }
.ed-date {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: .94;
  letter-spacing: -.038em;
}
.ed-date em { font-style: normal; display: block; font-weight: 600; opacity: .5; }
.ed-note { font-size: 15px; line-height: 1.55; max-width: 34ch; opacity: .78; }
.ed-body .tlink {
  margin-top: auto;
  align-self: flex-start;
  color: var(--card-cta);
  transition: color .28s var(--ease);
}

/* --------------------------------------------------------------------------
   14. Join
   -------------------------------------------------------------------------- */
.join {
  background: var(--cobalt);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* Everything on this band was running at full strength at once: white
   headline, white copy, a lime block, a bright outline and court lines.
   Nothing receded, so the whole field pushed forward. These are the
   second-plane layers, pulled back to give the eye somewhere to rest. */
.join .court-grid i { border-color: rgba(255, 255, 255, .3); }
.join .court-grid::after { border-color: rgba(255, 255, 255, .3); }
/* Rysuja sie jasniej, niz potem stoja. Przy 12% krycia sama animacja byla
   niewidoczna: linia rosla, ale nie bylo czego zobaczyc. */
.join > .wrap { position: relative; z-index: 1; }

/* The court gets marked out when the band scrolls in: verticals grow down,
   then the service line runs across. Same gesture as the drawing on the
   edition cards, so the graphic system closes where the page does.
   The grid borrows .r purely to get the observer's `in` class; .r's own
   fade-and-lift is cancelled here, because it would drag the lines with it. */
/* transform: none tu NIE moze byc: .court-grid centruje sie przez
   left:50% + translateX(-50%), wiec skasowanie transformacji wypycha cala
   siatke o pol szerokosci okna w prawo i dwie z trzech linii wychodza poza
   kadr. Powtarzamy wiec centrowanie zamiast je zerowac. */

.join .court-grid i {
  border-color: rgba(255, 255, 255, .5);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform var(--dur, .8s) var(--ease) var(--d, 0ms),
              border-color 1s var(--ease) 1.5s;
}
/* Co druga linia rosnie od dolu, zeby nie bylo wrazenia jednego mechanizmu */
.join .court-grid i:nth-child(2n) { transform-origin: 50% 100%; }
.join .court-grid.in i { transform: none; border-color: rgba(255, 255, 255, .3); }
.join .court-grid::after {
  border-color: rgba(255, 255, 255, .5);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease) .82s,
              border-color 1s var(--ease) 1.6s;
}
.join .court-grid.in::after { transform: none; border-color: rgba(255, 255, 255, .3); }

/* Naglowek sekcji 06 przeniesiony na pas CTA. Ten sam uklad co pozostale
   naglowki sekcji: kafel z indeksem po lewej, zdanie wprowadzajace po prawej.
   Zdanie jest mniejsze niz lead pod naglowkiem glownym, zeby dwa teksty
   wprowadzajace nie konkurowaly ze soba wielkoscia. */
.join-head {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(30px, 3.6vw, 52px);
}
.join-head p:last-child {
  max-width: 76ch;
  font-size: clamp(15px, 1.1vw, 17px);
  color: rgba(255, 255, 255, .7);
}

.join-in { display: grid; gap: clamp(30px, 4vw, 56px); }
.join h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(40px, 7.4vw, 122px);
  line-height: .86;
  letter-spacing: -.044em;
  max-width: 12ch;
}
.join .lead { max-width: 40ch; color: rgba(255, 255, 255, .74); }
/* Formularz GetResponse wstrzykuje wlasny markup i style. Ograniczamy mu tylko
   miare i rezerwujemy wysokosc, zeby uklad nie skakal, zanim skrypt sie zaladuje.
   Reszte wygladu ustawia sie po stronie GetResponse. */
.join-form { margin-top: 0; }
/* Bez min-height. Rezerwacja wysokosci miala chronic przed skokiem ukladu przy
   ladowaniu formularza, ale dopoki formularz sie nie renderuje, zostawia w
   kolumnie pusta dziure i rozjezdza caly pas. Pusty slot ma sie zwijac. */
.join-form:empty { display: none; }
.join-form getresponse-form { display: block; }
.join-fallback { font-size: 15px; color: rgba(255, 255, 255, .8); margin-top: 20px; }
.join-fallback a { text-decoration: underline; }

/* Dwie sciezki zapisu, po jednej na edycje, zeby zgloszenie od razu nioslo
   informacje, o ktora date chodzi. Ramka jest wlosowa, bo formularz
   GetResponse wnosi wlasne biale tlo i dwa pelne panele zaczelyby ze soba
   konkurowac. */
.join-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(34px, 4vw, 56px);
}
.join-card {
  /* Karta jest wlasna kotwica (#zapis-05 / #zapis-06), a globalna regula
     odstepu pod przyklejonym naglowkiem lapie tylko section z id. */
  scroll-margin-top: 84px;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.6vw, 36px);
  padding: clamp(28px, 3vw, 44px);
  /* Wypelnienie granatem, zeby karta odkleila sie od kobaltowego pasa. Sama
     wlosowa ramka dawala 1,21:1 wzgledem tla, czyli praktycznie nic.
     Granat daje 1,55:1, a jednoczesnie zostaje ciemny, wiec formularz
     GetResponse ze swoja biala typografia dalej jest czytelny: biel 14,6:1,
     limonka 11,1:1. Cieplej bieli tu nie ma wlasnie dlatego, ze formularz
     trzeba by przestawic na ciemny tekst po stronie GetResponse.
     Nie uzywamy tez --navy-deep: to kolor stopki, ktora zaczyna sie zaraz
     pod tym pasem, wiec karty zlewalyby sie z nia. */
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .16);
}
.join-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.3vw, 20px); }
.join-tag {
  background: var(--lime);
  color: var(--navy);
  padding: 9px 15px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.join-date {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" var(--display-width);
  font-size: clamp(26px, 2.9vw, 44px);
  line-height: .94;
  letter-spacing: -.038em;
  /* Miejsce na dwa wiersze jest zarezerwowane zawsze, nawet gdy data mieści sie
     w jednym. Bez tego karta z dluzsza data byla wyzsza w glowie i jej przycisk
     schodzil nizej niz w sasiedniej. Ktora data sie zlamie, zalezy od szerokosci
     okna, powiekszenia strony i tego, czy krój zdazyl sie wczytac, wiec pilnowanie
     tego stopniem pisma bylo grą w kotka i myszke. Rezerwacja rozwiazuje to raz. */
  min-height: 1.88em;
}
/* Druga czesc daty na wlasnym wierszu. Wczesniej byla w jednej linii, ale
   glowa karty i tak rezerwuje miejsce na dwa wiersze, zeby przyciski obu kart
   staly rowno, wiec przy jednym wierszu ten zapas stal pusty. Teraz wypelnia
   go tresc, a nie powietrze, i obie karty maja identyczna budowe. */
.join-date em { font-style: normal; display: block; font-weight: 600; opacity: .55; }
/* Trzecia karta niesie zdanie, nie date. Ten sam krój i ta sama rola
   w ukladzie, ale mniejszy stopien, bo 53 znaki w rozmiarze daty
   przykrylyby obie sasiednie karty. */
.join-date--haslo {
  /* Bez rezerwacji dwoch wierszy. Ta jest po to, zeby przyciski dwoch kart
     edycji staly rowno; trzecia karta nie ma przycisku, wiec zostawialaby
     tylko dziure pod haslem. */
  min-height: 0;
  font-size: clamp(21px, 1.9vw, 29px);
  line-height: 1.12;
  letter-spacing: -.018em;
  text-wrap: balance;
}
/* Pelna biel, bez przygaszenia z .caption: na granatowej karcie podpis
   przy 60% krycia schodzil do szarosci i gubil sie pod data. */
.join-when { opacity: 1; color: var(--white); }
.join-when b { font-weight: 500; color: var(--lime); padding-inline: 6px; }
.join-note { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .72); }

/* Formularz rejestracji ma 1225 px wysokosci, wiec rozwiniety na starcie
   rozbijalby caly pas. Chowamy go za <details>, bez JavaScriptu: element
   natywnie obsluguje klawiature i czytniki ekranu, a sprawdzone jest, ze
   GetResponse renderuje formularz takze w ukrytym kontenerze i po otwarciu
   pojawia sie on w okolo 20 ms, wiec nie widac ladowania. */
.join-toggle { margin-top: auto; }
.join-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--lime);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 1px;
  cursor: pointer;
  list-style: none;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.join-trigger::-webkit-details-marker { display: none; }
.join-trigger:hover { background: var(--cobalt); color: var(--lime); }
.join-trigger svg { flex: none; transition: transform .35s var(--ease); }
/* Przycisk wyglada tak samo w obu stanach, zmienia sie tylko strzalka.
   Wczesniej stan otwarty zdejmowal tlo i wewnetrzny margines: napis skakal
   w bok o 22 px natychmiast, a tlo wygaszalo sie przez 350 ms, wiec po
   kliknieciu zostawal na chwile polprzezroczysty granatowy prostokat.
   Zmierzone: padding 22px -> 0px w jednej klatce, tlo rgba(2,35,103,.247)
   jeszcze 120 ms po kliknieciu. Staly wyglad usuwa oba problemy naraz. */
.join-toggle[open] .join-trigger svg { transform: rotate(180deg); }
.join-toggle .join-form { margin-top: clamp(18px, 2vw, 26px); }

/* Zdanie i przycisk w jednej linii, z zawijaniem na waskich ekranach.
   Przycisk jest obwodkowy, nie limonkowy: dwa limonkowe przyciski zapisu
   stoja tuz nad nim i trzeci odbieralby im pierwszenstwo. */
.join-other {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(18px, 2vw, 28px);
  margin-top: clamp(26px, 3vw, 40px);
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
}
.join-other .btn { min-height: 48px; padding-inline: 22px; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.foot { background: var(--navy-deep); color: rgba(243, 240, 231, .8); padding-block: clamp(56px, 7vw, 96px) 32px; }
.foot a:hover { color: var(--lime); }

.foot-top { display: grid; gap: clamp(36px, 4.5vw, 64px); }
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin-top: 20px; max-width: 34ch; font-size: 15px; line-height: 1.6; opacity: .72; }

.foot-cols { display: grid; gap: 32px; }
.foot-col h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.foot-col li + li { margin-top: 9px; }
/* The lime ball rolls in ahead of the link and nudges the text aside.
   text-indent moves only the text, so the absolutely positioned dot stays put. */
.foot-col a {
  position: relative;
  display: inline-block;
  text-indent: 0;
  transition: text-indent .34s var(--ease), color .34s var(--ease);
}
.foot-col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  transform: scale(0);
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
}
.foot-col a:hover,
.foot-col a:focus-visible { text-indent: 18px; }
.foot-col a:hover::before,
.foot-col a:focus-visible::before { transform: scale(1); }

.foot-col a, .foot-col p { font-size: 15px; }

.foot-bot {
  margin-top: clamp(44px, 5vw, 76px);
  padding-top: 22px;
  border-top: 1px solid var(--hair-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 12px;
  /* Colour rather than a blanket opacity, so the credit link can sit a shade
     brighter than the line around it and still go full lime on hover. */
  color: rgba(243, 240, 231, .55);
}
.foot-credit a,
.foot-legal a {
  color: rgba(243, 240, 231, .8);
  transition: color .3s var(--ease);
}
.foot-credit a:hover,
.foot-credit a:focus-visible,
.foot-legal a:hover,
.foot-legal a:focus-visible { color: var(--lime); }

.foot-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 26px; }

/* --------------------------------------------------------------------------
   16. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .comm-grid { grid-template-columns: repeat(2, 1fr); }
  /* 8 kafli: 2 albo 4 kolumny wypelniaja siatke bez sieroty w ostatnim
     rzedzie, co przy wlosowych liniach byloby widoczne jako urwana ramka. */
  .part-list { grid-template-columns: repeat(4, 1fr); }
  .about-meta { grid-template-columns: repeat(3, 1fr); }
  .about-meta div { border-bottom: 0; }
  .about-meta div + div { border-left: 1px solid var(--hair-dark); }
  .num-grid { grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 3vw, 48px); }
  .stat--media { grid-column: span 2; }
  .why-support { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 17px; }

  .head-in { height: 84px; }
  .brand img { height: 30px; }
  .nav { display: flex; gap: clamp(2px, 1vw, 18px); margin-inline: -13px; }
  .head-cta { display: inline-flex; min-height: 44px; padding-inline: 22px; }
  .burger, .drawer { display: none; }

  .hero-in { padding-bottom: clamp(36px, 4vw, 64px); }
  .hero-foot {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: clamp(30px, 4vw, 70px);
  }
  .hero-lead { max-width: 56ch; }
  .is-bold { font-weight: 600; }
  .scroll-cue { display: flex; }

  .about-head { grid-template-columns: 220px 1fr; align-items: start; }
  .about-body { grid-template-columns: 1.5fr 1fr; align-items: start; }

  .band-pair .frame { aspect-ratio: 4 / 3; }

  .num-head { grid-template-columns: 220px 1fr; align-items: start; }
  .num-grid { grid-template-columns: repeat(12, 1fr); column-gap: clamp(24px, 2.6vw, 48px); }
  .stat--lead { grid-column: span 6; }
  .stat--media { grid-column: span 6; }
  .num-grid .stat--q { grid-column: span 3; }

  .why-top { grid-template-columns: 220px 1fr; align-items: start; }
  .why-support { grid-template-columns: 220px 1fr 1fr; gap: clamp(28px, 3vw, 56px); }

  .comm-head { grid-template-columns: 220px 1fr; align-items: start; }
  br.lg { display: block; }

  .comm-grid { grid-template-columns: repeat(12, 1fr); }
  .cg-1   { grid-column: 1 / span 6; align-self: end; }
  .cg-2   { grid-column: 7 / span 3; }
  .cg-3   { grid-column: 10 / span 3; }
  .cg-num { grid-column: 1 / span 4; }
  /* No caption on this one, so the frame is the whole figure: it and the
     lime-number tile beside it now resolve to the same row height. */
  .cg-4   { grid-column: 5 / span 8; }
  .cg-4, .cg-4 .frame { height: 100%; }

  .part-head { grid-template-columns: 220px 1fr; align-items: start; }


  .ed-head { grid-template-columns: 220px 1fr; align-items: start; }
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-visual { aspect-ratio: 2 / 1; }

  .join-head { grid-template-columns: 220px 1fr; align-items: start; }
  /* Akapit siada linia bazowa ostatniego wiersza na linii bazowej naglowka.
     Wczesniej po prawej stal przycisk i wtedy wyrownanie do linii bazowej nie
     mialo sensu, bo przycisk zadnej nie ma; zostalo wiec srodkowanie. Teraz
     po prawej jest tekst i pomiar jest jednoznaczny: srodkowanie stawia
     akapit 67 px za wysoko, `end` myli sie o 3,3 px, `last baseline` trafia
     w zero. Deklaracja jest podwojna celowo: przegladarka, ktora nie zna
     wartosci `last baseline`, zignoruje druga linie i zostanie przy `end`,
     czyli przy 3 px bledu. Bez tego wrocilaby do `normal`, czyli do 137 px. */
  .join-in {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    align-items: last baseline;
  }
  /* start, nie stretch: rozwiniecie jednej karty nie ma rozdymac drugiej,
     ktora zostalaby z ogromnym pustym polem pod trescia. */
  /* minmax(0, 1fr), nie samo 1fr. Zwykle 1fr to minmax(auto, 1fr), wiec
     dluga, niepodzielna tresc rozpycha swoja kolumne kosztem sasiednich
     i karty przestaja byc rowne. Zerowe minimum trzyma je w ryzach. */
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  /* Przy dwoch kolumnach trzecia karta lezy w poprzek, zamiast stac
     jako sierota w drugim rzedzie z pusta polowa obok. */
  .join-card--extra { grid-column: 1 / -1; }

  /* Karty maja rowna wysokosc, ale tylko dopoki zaden formularz nie jest
     rozwiniety. Karta networkingowa ma mniej tresci od kart edycji, wiec przy
     zwyklym `start` konczyla sie wyzej niz sasiadki. Samo `stretch` tez nie
     wchodzi w gre: po otwarciu formularza jedna karta rosnie do 1647 px
     i pociagnelaby za soba dwie puste. `:has()` pozwala rozroznic te dwa stany
     i wlaczyc wyrownanie tylko wtedy, gdy ma sens. Starsza przegladarka, ktora
     nie zna `:has()`, po prostu zostaje przy `start`, czyli przy zachowaniu
     sprzed tej reguly. */
  .join-grid:not(:has(.join-toggle[open])) { align-items: stretch; }

  .foot-top { grid-template-columns: 1fr 1.5fr; }
}

@media (min-width: 1200px) {
  .about-head, .num-head, .why-top, .comm-head, .part-head, .ed-head, .join-head { grid-template-columns: 280px 1fr; }
  /* Bez trzeciej kolumny, swiadomie. Trzy rowne kolumny wymuszaly zmniejszenie
     daty z 44 do 34 px, a po otwarciu zwezaly formularz z 631 do 387 px, przez
     co ten sam zestaw pol rosl z 1210 do 1364 px. Karta networkingowa lezy wiec
     w poprzek pod edycjami na kazdej szerokosci. Przy okazji obie karty edycji
     maja identyczna budowe, wiec ich przyciski zawsze stoja rowno. */
  .why-support { grid-template-columns: 280px 1fr 1fr; }
  .hero-title .line > span { font-size: clamp(120px, 12.6vw, 244px); }
}

/* --------------------------------------------------------------------------
   Trzy karty zapisu w jednym rzedzie, ale nie po rowno.
   Zmierzone na prawdziwym formularzu GetResponse, przy trzech szerokosciach:

     proporcja      karta edycji   data      formularz
     1 : 1 : 1        389 px       2 wiersze   387 x 1364
     1 : 1 : 0,8      421 px       2 wiersze   419 x 1345
     1 : 1 : 0,65     449 px       1 wiersz    447 x 1306
     1 : 1 : 0,5      469 px       1 wiersz    467 x 1287

   Zwezenie karty zawsze wydluza formularz, bo to ta sama liczba pol ulozona
   waskо. Dwie kolumny daja 631 x 1210, czyli najkrotszy formularz. 0,65 to
   punkt, w ktorym data jeszcze miesci sie w jednej linii przy pelnych 44 px,
   a formularz rosnie tylko o 96 px.

   Prog 1600 px nie jest okragly dla ozdoby: przy 1440 px zadna proporcja nie
   utrzymuje daty w jednej linii, wiec nizej zostaja dwie kolumny, a karta
   networkingowa lezy w poprzek pod nimi.
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  /* 0,8, nie 0,65. Wezsza trzecia kolumna byla dobrana wtedy, gdy data
     musiala zmiescic sie w jednej linii. Odkad lamie sie na dwa wiersze,
     ten warunek nie obowiazuje, a trzecia karta dostala wlasny formularz
     i przy 0,65 mial tylko 263 px szerokosci, czyli mniej niz telefon.
     Przy 0,8 ma 321 px, a karty edycji traca 29 px z 453. */
  .join-grid { grid-template-columns: 1fr 1fr .8fr; }
  .join-card--extra { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   17. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .r { opacity: 1; transform: none; }
  .clip > span { transform: none; }
  .hero-title .line > span { opacity: 1; }
  .hero-title .line > span::before { opacity: 0 !important; }
  .court .ln { transform: none; }
  .court .ball { transform: none; }
  .join .court-grid i, .join .court-grid::after { transform: none; }
  .bouncer { display: none; }
  .reel img { animation: none; opacity: 0; }
  .reel img:first-child { opacity: 1; }
  .hero-media img { transform: none; }
  .ticker-track { animation: none; }
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  .head, .drawer, .ticker, .scroll-cue { display: none !important; }
  body { background: #fff; }
  .r { opacity: 1; transform: none; }
}
