@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#0b0d0b;--panel:#111511;--blue:#000be1;--purple:#4800ab;--accent:linear-gradient(115deg,var(--blue),var(--purple));--white:#f4f5f0;--muted:#a3aaa0;--line:#30362e;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:82px}body{margin:0;background:var(--bg);color:var(--white);font-family:Inter,Arial,sans-serif;line-height:1.6}body.menu-open{overflow:hidden}a{color:inherit;text-decoration:none}button{font:inherit}.wrap{width:min(var(--max),calc(100% - 48px));margin-inline:auto}.site-header{height:76px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - var(--max))/2));background:rgba(11,13,11,.94);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:43px;height:39px;background:var(--accent);color:#fff;font-family:"Rajdhani","Barlow Condensed",sans-serif;font-size:20px;font-weight:900;letter-spacing:-2px;transform:skew(-8deg)}.brand-name{font-size:11px;letter-spacing:2px;line-height:1.35}.brand-name b{display:block;font-weight:800}.main-nav{display:flex;gap:30px}.main-nav a{font-size:11px;text-transform:uppercase;letter-spacing:1.4px;color:#c6cbc2;transition:color .2s}.main-nav a:hover,.main-nav a:focus-visible{color:#9d8cff}.menu-toggle{display:none;background:none;border:0;color:white}.hero{position:relative;min-height:650px;display:flex;align-items:center;overflow:hidden;background:#131812}.hero-image{position:absolute;inset:0;background:#101116;overflow:hidden}.hero-image::before,.hero-image::after{content:"";position:absolute;inset:-3%;background-size:cover;background-position:28% 42%;filter:saturate(.82);animation:heroKenBurns 18s ease-in-out infinite alternate}.hero-image::before{background-image:url("hero-horizontal.JPG");animation-name:heroKenBurns,heroFade;animation-duration:18s,16s;animation-timing-function:ease-in-out,linear;animation-iteration-count:infinite,infinite}.hero-image::after{background-image:url("rider-corner.JPG");background-position:32% 40%;animation:heroKenBurns 20s ease-in-out infinite alternate,heroFade 16s linear infinite;animation-delay:0s,-8s;opacity:0}@keyframes heroKenBurns{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.045) translate3d(-.5%,-.4%,0)}}@keyframes heroFade{0%,46%{opacity:0}55%,92%{opacity:1}100%{opacity:0}}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,8,5,.96) 0%,rgba(5,8,5,.76) 43%,rgba(5,8,5,.15) 100%),linear-gradient(0deg,rgba(5,8,5,.55),transparent 40%)}.hero-content{position:relative;z-index:1;padding-block:100px 86px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:4px;color:#9d8cff;margin:0 0 18px}.eyebrow span{display:inline-block;width:25px;height:2px;background:var(--blue);vertical-align:middle;margin-right:8px}.hero h1,h2{font-family:"Barlow Condensed",Impact,sans-serif;text-transform:uppercase;letter-spacing:-1px;line-height:.88;margin:0;font-weight:900}.hero h1{font-family:"Rajdhani","Barlow Condensed",sans-serif;font-size:clamp(72px,11vw,136px);font-weight:700;line-height:.83;letter-spacing:-2px;max-width:800px;text-transform:uppercase}.hero h1 em,h2 em{font-style:normal;color:transparent;background:var(--accent);background-clip:text;-webkit-background-clip:text}.hero-line{font-family:"Barlow Condensed",sans-serif;color:#9d8cff;letter-spacing:6px;font-weight:700;font-size:18px;margin:25px 0 8px}.hero-copy{max-width:520px;color:#d4d9d0;font-size:18px}.button{display:inline-flex;align-items:center;gap:24px;padding:13px 19px;border:1px solid #5140ff;border-radius:3px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1px;transition:background .2s,color .2s}.button-primary{background:var(--accent);color:#fff;margin-top:18px}.button-primary:hover{background:transparent;color:#fff;border-color:#8d7bff}.sample-note{margin-top:36px;color:#b6bdb2;font-size:9px;letter-spacing:1.7px}.hero-index{position:absolute;right:max(24px,calc((100vw - var(--max))/2));bottom:28px;color:#fff;background:var(--accent);font-family:"Rajdhani","Barlow Condensed",sans-serif;font-weight:700;font-size:18px;padding:4px 9px;letter-spacing:4px}.section{padding-block:100px}.section-kicker{font-size:10px;letter-spacing:2px;color:#727b70;margin-bottom:36px}.intro-grid{display:grid;grid-template-columns:1fr .8fr;gap:9%;align-items:center}.intro h2,.results-heading h2,.gallery-heading h2,.partners-grid h2{font-family:"Rajdhani","Barlow Condensed",sans-serif;font-size:clamp(52px,6.5vw,82px);font-weight:700;line-height:.95;text-transform:uppercase;margin-bottom:26px}.lead{font-size:19px;line-height:1.55;max-width:530px;color:#e5e9e0}.body-copy{font-size:14px;line-height:1.9;color:#aeb5aa;max-width:560px}.micro-note{font-size:10px;color:#899186;line-height:1.6}.rider-card{position:relative;min-height:390px;background:#1a2118;overflow:hidden}.rider-photo{position:absolute;inset:0;background-image:linear-gradient(0deg,rgba(8,12,7,.75),transparent 50%),url("rider-corner.JPG");background-size:cover;background-position:center;filter:saturate(.7)}.rider-caption{position:absolute;bottom:22px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:end}.rider-caption span{font-size:9px;letter-spacing:2px;color:#9d8cff}.rider-caption strong{font-family:"Barlow Condensed",sans-serif;font-size:42px;line-height:1}.rider-caption i{font-style:normal;color:#9d8cff}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:65px}.stat{padding:23px 26px;display:grid;grid-template-columns:35px 1fr;column-gap:13px;align-items:center;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat-icon{grid-row:span 2;color:#8d7bff;font-family:"Rajdhani","Barlow Condensed",sans-serif;font-size:20px}.stat-label{font-size:9px;letter-spacing:2px;color:#8b9487}.stat strong{font-size:15px}.results-section{background:#111511;border-block:1px solid #20271e}.results-inner{padding-block:92px}.results-heading,.gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:45px}.results-description{max-width:360px;color:#aab1a6;font-size:13px;line-height:1.8}.result-list{border-top:1px solid var(--line)}.result-row{display:grid;grid-template-columns:100px 1fr 130px;align-items:center;gap:22px;padding:23px 8px;border-bottom:1px solid var(--line)}.result-year{font-size:11px;color:#9d8cff;font-weight:700;letter-spacing:1px}.result-row h3{font-size:15px;margin:0 0 5px}.result-row p{font-size:11px;color:#8e978a;margin:0}.result-row>strong{text-align:right;font-family:"Barlow Condensed",sans-serif;font-size:33px;color:#9d8cff}.result-row small{display:block;font:700 8px Inter,sans-serif;letter-spacing:1px;color:#9ca597}.gallery-section{padding-block:100px}.gallery-grid{display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:230px 210px;gap:15px}.gallery-tile{position:relative;border:0;cursor:zoom-in;background-size:cover;background-position:center;overflow:hidden;min-height:190px;text-align:left}.gallery-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.65),transparent 55%);transition:background .2s}.gallery-tile:hover::after{background:linear-gradient(0deg,rgba(72,0,171,.45),rgba(0,0,0,.05))}.gallery-tile span{position:absolute;z-index:1;bottom:16px;left:18px;color:white;font-size:9px;letter-spacing:2px}.tile-large{grid-row:span 2;background-image:url("rider-action.JPG")}.tile-tall{background-image:url("rider-corner.JPG")}.tile-wide{background-image:url("rider-action.JPG");background-position:center 70%}.gallery-grid-extra{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:15px}.gallery-grid-extra .extra-shot{aspect-ratio:1/1;min-height:0;background-size:cover}.gallery-grid-extra .gallery-tile span{left:12px;bottom:12px;font-size:8px;letter-spacing:1.4px}.shot-1{background-image:url("rider-action.JPG");background-position:22% 28%}.shot-2{background-image:url("rider-corner.JPG");background-position:72% 30%}.shot-3{background-image:url("rider-action.JPG");background-position:52% 48%}.shot-4{background-image:url("rider-corner.JPG");background-position:25% 60%}.shot-5{background-image:url("rider-action.JPG");background-position:80% 72%}.shot-6{background-image:url("rider-corner.JPG");background-position:48% 78%}.shot-7{background-image:url("rider-action.JPG");background-position:38% 85%}.shot-8{background-image:url("rider-corner.JPG");background-position:88% 52%}/* Dodatkowy wiersz galerii: jeden szeroki kadr i dwa zdjęcia */
/* Ostatni wiersz galerii — wysokości dopasowane do głównej siatki */

/* MX #474 — animowana ikona e-mail */
.menu-email .email-icon {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  animation: mail-pulse 2s ease-in-out infinite;
  transition: transform .25s ease, filter .25s ease;
}

.menu-email:hover .email-icon,
.menu-email:focus-visible .email-icon {
  transform: translateY(-3px) scale(1.2);
  filter: drop-shadow(0 0 5px #000be1)
          drop-shadow(0 0 8px #4800ab);
}

@keyframes mail-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-email .email-icon {
    animation: none;
  }
}

.gallery-grid-row-two {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: 210px;
  gap: 15px;
  margin-top: 15px;
}
.gallery-grid-row-two .gallery-tile {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  background-size: cover;
  background-position: center;
}
.gallery-grid-row-two .gallery-row-two-wide { background-position: center 45%; }
.gallery-grid-row-two .gallery-row-two-photo { background-position: center; }
@media (max-width: 900px) {
  .gallery-grid-row-two { grid-template-rows: 170px; gap: 12px; }
}
@media (max-width: 760px) {
  .gallery-grid-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 200px 170px;
    gap: 9px;
    margin-top: 9px;
  }
  .gallery-grid-row-two .gallery-row-two-wide { grid-column: 1 / -1; }
}
.gallery-section>.micro-note{margin-top:18px}.partners-section{background:#111511;border-top:1px solid #20271e}.partners-grid{display:grid;grid-template-columns:1fr 1fr;gap:10%;align-items:center}.partners-grid h2{margin-bottom:22px}.partner-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.partner-card{min-height:220px;padding:22px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #343b30;background:#0c100b;gap:8px}.partner-card p{margin:5px 0 0;color:#aeb5aa;font-size:11px;line-height:1.65;max-width:260px}.season-block+.season-block{margin-top:34px}.season-title{display:flex;align-items:baseline;gap:12px;margin:0 0 12px;font-family:"Rajdhani","Barlow Condensed",sans-serif;font-size:30px;line-height:1;color:#fff;letter-spacing:1px}.season-title span{font:800 9px Inter,sans-serif;letter-spacing:2px;color:#9d8cff}.partner-symbol{display:grid;place-items:center;width:43px;height:43px;background:var(--accent);color:#fff;font-family:"Rajdhani","Barlow Condensed",sans-serif;font-weight:700;font-size:25px;transform:skew(-8deg)}.partner-card strong{font-family:"Barlow Condensed",sans-serif;font-size:20px;letter-spacing:1px}.partner-card small{font-size:8px;color:#899186;letter-spacing:1.4px}.partners-section .micro-note{margin-top:28px}.site-footer{border-top:1px solid var(--line)}.footer-top,.footer-bottom{display:flex;align-items:center;justify-content:space-between}.footer-top{padding-block:25px}.back-top{font-size:9px;letter-spacing:1.5px;color:#9d8cff}.footer-bottom{padding-block:15px;border-top:1px solid #252b23;color:#777f73;font-size:9px;letter-spacing:1px}.lightbox{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.94);display:grid;place-items:center;padding:40px}.lightbox[hidden]{display:none}.lightbox img{max-width:min(1100px,100%);max-height:80vh;object-fit:contain}.lightbox-close{position:absolute;top:18px;right:28px;background:none;border:0;color:white;font-size:42px;cursor:pointer}
@media(max-width:900px){.gallery-grid-extra{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.wrap{width:calc(100% - 36px)}.site-header{height:66px;padding-inline:18px}.menu-toggle{display:flex;flex-direction:column;gap:5px;padding:10px}.menu-toggle span{width:23px;height:2px;background:var(--accent)}.main-nav{display:none;position:absolute;top:66px;left:0;right:0;background:#0b0d0b;border-bottom:1px solid var(--line);padding:20px 22px 25px;flex-direction:column;gap:0}.main-nav.is-open{display:flex}.main-nav a{padding:14px 0;border-bottom:1px solid #242a22}.main-nav a:last-child{border:0}.hero{min-height:620px}.hero-image::before,.hero-image::after{background-position:34% 40%}.hero-shade{background:linear-gradient(90deg,rgba(5,8,5,.88),rgba(5,8,5,.28)),linear-gradient(0deg,rgba(5,8,5,.7),transparent 60%)}.hero-content{padding-block:100px 80px}.hero h1{font-size:clamp(60px,16vw,95px)}.hero-line{font-size:14px;letter-spacing:4px}.hero-copy{max-width:310px;font-size:13px}.hero-index{right:18px;font-size:13px}.section{padding-block:70px}.section-kicker{margin-bottom:26px}
  .intro-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 9%;
  align-items: stretch;
}
.partners-grid{grid-template-columns:1fr;gap:32px}.intro h2,.results-heading h2,.gallery-heading h2,.partners-grid h2{font-size:58px}.lead{font-size:17px}
.rider-card {
  position: relative;
  min-height: 0;
  height: 100%;
  background: #1a2118;
  overflow: hidden;
}
.stats{grid-template-columns:1fr;margin-top:38px}.stat{border-right:0;border-bottom:1px solid var(--line);padding:17px 5px}.stat:last-child{border-bottom:0}.results-inner{padding-block:70px}.results-heading,.gallery-heading{display:block}.results-description{margin-top:20px}.result-row{grid-template-columns:55px 1fr 65px;gap:10px;padding:18px 0}.result-row h3{font-size:13px}.result-row p{font-size:10px}.result-row>strong{font-size:27px}.result-row small{font-size:7px}.gallery-section{padding-block:70px}.gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:200px 170px;gap:9px}.tile-large{grid-column:span 2;grid-row:auto}.tile-tall,.tile-wide{min-height:170px}.partner-cards{gap:9px}.partner-card{min-height:220px;padding:18px 12px}.partner-card p{font-size:10px}.footer-top{gap:15px}.footer-bottom{gap:15px;align-items:flex-start;flex-direction:column}.sample-note{max-width:240px;line-height:1.7}.lightbox{padding:18px}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *:not(.hero-end-image), *:not(.hero-end-image)::before, *:not(.hero-end-image)::after {
    transition:none!important;
    animation:none!important;
  }
}

@media(prefers-reduced-motion:reduce){.hero-image::before,.hero-image::after{animation:none!important}.hero-image::before{opacity:1}.hero-image::after{opacity:0}}

.season-description {
  width: 100%;
  max-width: none;
}
/* HERO RACE FX — dynamic light, motion streaks, dust and film texture */
.hero-image::before,.hero-image::after{filter:saturate(1.08) contrast(1.08);will-change:transform,opacity}
.hero-image::before{animation-duration:9s,12s!important}
.hero-image::after{animation-duration:10s,12s!important;animation-delay:0s,-6s!important}
@keyframes heroKenBurns{0%{transform:scale(1.02) translate3d(1.5%,0,0)}35%{transform:scale(1.10) translate3d(-1%, -1.2%,0)}70%{transform:scale(1.16) translate3d(-2.4%,.4%,0)}100%{transform:scale(1.08) translate3d(1%, -1%,0)}}
@keyframes heroFade{0%,39%{opacity:0}44%{opacity:.12}49%,84%{opacity:1}91%,100%{opacity:0}}
.hero-shade{z-index:1;background:linear-gradient(105deg,rgba(4,5,13,.94) 0%,rgba(5,6,18,.73) 38%,rgba(5,5,16,.12) 78%,rgba(4,5,12,.24) 100%),linear-gradient(0deg,rgba(4,5,13,.65),transparent 48%)}
.hero-effects{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;mix-blend-mode:screen}
.hero-flash{position:absolute;inset:-20%;opacity:0;background:linear-gradient(112deg,transparent 38%,rgba(0,11,225,.06) 43%,rgba(110,91,255,.5) 49%,rgba(255,255,255,.72) 50%,rgba(72,0,171,.34) 52%,transparent 59%);transform:translateX(-120%) skewX(-12deg);animation:raceFlash 7.8s cubic-bezier(.2,.7,.2,1) infinite}
.hero-streak{position:absolute;display:block;height:2px;width:45vw;max-width:720px;background:linear-gradient(90deg,transparent,rgba(0,11,225,.08),rgba(105,119,255,.95),rgba(255,255,255,.8),transparent);filter:drop-shadow(0 0 8px rgba(0,11,225,.8));transform:rotate(-17deg) translateX(-140%);opacity:0}
.hero-streak-one{top:29%;left:10%;animation:streakRush 5.6s ease-in-out 1.2s infinite}
.hero-streak-two{top:70%;left:35%;height:1px;width:34vw;animation:streakRush 7.2s ease-in-out 3.8s infinite}
.hero-dust{position:absolute;inset:0;opacity:.24;background-image:radial-gradient(circle,rgba(220,224,255,.9) 0 1px,transparent 1.7px),radial-gradient(circle,rgba(106,117,255,.85) 0 1px,transparent 1.8px);background-size:83px 71px,127px 113px;background-position:0 0,42px 31px;mask-image:linear-gradient(90deg,transparent 0%,#000 40%,#000 100%);animation:dustDrift 11s linear infinite}
.hero-grain{position:absolute;inset:0;opacity:.12;background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.08) 0,rgba(255,255,255,.08) 1px,transparent 1px,transparent 3px),repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0,rgba(255,255,255,.035) 1px,transparent 1px,transparent 4px);mix-blend-mode:overlay}
.hero-content{z-index:3;animation:heroTextEnter .9s cubic-bezier(.2,.75,.2,1) both}
@keyframes raceFlash{0%,56%,100%{opacity:0;transform:translateX(-120%) skewX(-12deg)}59%{opacity:.95}65%{opacity:.3;transform:translateX(120%) skewX(-12deg)}68%{opacity:0}}
@keyframes streakRush{0%,8%{opacity:0;transform:rotate(-17deg) translateX(-140%)}14%{opacity:.9}34%{opacity:0;transform:rotate(-17deg) translateX(160%)}100%{opacity:0;transform:rotate(-17deg) translateX(160%)}}
@keyframes dustDrift{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(-18px,-10px,0)}100%{transform:translate3d(-36px,0,0)}}
@keyframes heroTextEnter{from{opacity:0;transform:translate3d(0,22px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@media(max-width:900px){.gallery-grid-extra{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.hero-flash{animation-duration:10s}.hero-streak{width:75vw}.hero-streak-one{top:23%}.hero-streak-two{top:77%}.hero-dust{opacity:.16;background-size:101px 89px,151px 131px}.hero-content{animation:none}}
@media(prefers-reduced-motion:reduce){.hero-image::before,.hero-image::after,.hero-flash,.hero-streak,.hero-dust,.hero-content{animation:none!important}.hero-image::before{opacity:1}.hero-image::after{opacity:0}.hero-flash{display:block!important}.hero-streak{display:block!important}.hero-dust{display:block!important}.hero-content{transform:none!important}}



/* JS pointer parallax for the main hero photograph */
.hero-image::before,.hero-image::after{translate:var(--pointer-x,0px) var(--pointer-y,0px);transition:translate .18s ease-out;}
@media(max-width:760px),(prefers-reduced-motion:reduce){.hero-image::before,.hero-image::after{translate:0 0!important;}}


/* HERO VIDEO + fine OVW-style perforated film texture */
.hero-image::before,.hero-image::after{display:none!important}
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero video,
.hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-wrap-texture{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.24;background-image:radial-gradient(ellipse at center,rgba(235,240,255,.35) 0 1px,transparent 1.65px),linear-gradient(110deg,rgba(0,11,225,.12),transparent 40%,rgba(72,0,171,.10));background-size:7px 7px,100% 100%;mix-blend-mode:overlay;mask-image:linear-gradient(90deg,rgba(0,0,0,.3),#000 28%,#000 82%,rgba(0,0,0,.4));}
.hero-shade{z-index:1;background:linear-gradient(105deg,rgba(4,5,13,.94) 0%,rgba(5,6,18,.73) 38%,rgba(5,5,16,.22) 78%,rgba(4,5,12,.32) 100%),linear-gradient(0deg,rgba(4,5,13,.7),transparent 55%)}
.hero-effects{z-index:3}.hero-content{z-index:4}.hero-index{z-index:4}
.nav-socials{display:flex;align-items:center;gap:13px;margin-left:4px;padding-left:22px;border-left:1px solid rgba(255,255,255,.16)}
.social-link{display:grid;place-items:center;width:21px;height:24px;color:#fff;transition:color .2s,transform .2s}
.social-link:hover,.social-link:focus-visible{color:#5b74ff;transform:translateY(-2px)}
.social-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.social-link:nth-child(2) svg path{fill:currentColor;stroke:none}.social-link:nth-child(3) svg path:first-child{fill:currentColor;stroke:none}.social-link .social-play{fill:#0b0d0b;stroke:none}.social-link .social-dot{fill:currentColor;stroke:none}
@media(max-width:760px){.nav-socials{margin:12px 0 0;padding:18px 0 0;border-left:0;border-top:1px solid #242a22;gap:20px}.main-nav a:last-of-type{border-bottom:1px solid #242a22}.hero-video{object-position:38% center}.hero-wrap-texture{opacity:.19}}
@media(prefers-reduced-motion:reduce){.hero-video{transform:none}.social-link{transition:none}}

/* Kad końcowy filmu: proste pojawianie się zdjęcia z czerni. */
.hero-image { background: #000; }
.hero-image > .hero-video,
.hero-image > .hero-end-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}
.hero-image > .hero-end-image[hidden] { display: none; }
.hero-image > .hero-end-image {
  opacity: 1;
}
.hero-image > .hero-end-image.is-revealing {
  animation: heroSimpleFade 1.5s ease-out both;
}
@keyframes heroSimpleFade {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* Accessibility preference: keep subtle hero lighting moving, without enabling other page animations. */
@media (prefers-reduced-motion: reduce) {
  .hero-flash { animation: raceFlash 7.8s cubic-bezier(.2,.7,.2,1) infinite !important; }
  .hero-streak-one { animation: streakRush 5.6s ease-in-out 1.2s infinite !important; }
  .hero-streak-two { animation: streakRush 7.2s ease-in-out 3.8s infinite !important; }
  .hero-dust { animation: dustDrift 11s linear infinite !important; }
}

/* FINAL OVERRIDE: hero lighting animations must win over the global reduced-motion reset. */
@media (prefers-reduced-motion: reduce) {
  html body .hero-effects .hero-flash {
    animation: raceFlash 7.8s cubic-bezier(.2,.7,.2,1) infinite !important;
    will-change: transform, opacity;
  }
  html body .hero-effects .hero-streak-one {
    animation: streakRush 5.6s ease-in-out 1.2s infinite !important;
    will-change: transform, opacity;
  }
  html body .hero-effects .hero-streak-two {
    animation: streakRush 7.2s ease-in-out 3.8s infinite !important;
    will-change: transform, opacity;
  }
  html body .hero-effects .hero-dust {
    animation: dustDrift 11s linear infinite !important;
    will-change: transform;
  }
}


/* FIX v3: keep the dedicated race-light animations active even when the OS requests reduced motion.
   Other page animations remain disabled for accessibility. */
@media (prefers-reduced-motion: reduce) {
  .hero-effects .hero-flash {
    animation: raceFlash 7.8s cubic-bezier(.2,.7,.2,1) infinite !important;
    opacity: 0;
  }
  .hero-effects .hero-streak-one {
    animation: streakRush 5.6s ease-in-out 1.2s infinite !important;
  }
  .hero-effects .hero-streak-two {
    animation: streakRush 7.2s ease-in-out 3.8s infinite !important;
  }
  .hero-effects .hero-dust {
    animation: dustDrift 11s linear infinite !important;
  }
}


/* v4: allow keyframes to control opacity and transform; do not freeze the lighting layers. */
@media (prefers-reduced-motion: reduce) {
  html body .hero-effects .hero-flash { display:block !important; animation: raceFlash 7.8s cubic-bezier(.2,.7,.2,1) infinite !important; }
  html body .hero-effects .hero-streak-one { display:block !important; animation: streakRush 5.6s ease-in-out 1.2s infinite !important; }
  html body .hero-effects .hero-streak-two { display:block !important; animation: streakRush 7.2s ease-in-out 3.8s infinite !important; }
  html body .hero-effects .hero-dust { display:block !important; animation: dustDrift 11s linear infinite !important; }
}


/* 02 / NA TORZE — subtelne, kompletne tło z grafiki TM-1 */
.results-section{position:relative;isolation:isolate;overflow:hidden}
.results-section::before{content:"";position:absolute;z-index:-1;inset:0;background-image:url("TM-1-subtle.png");background-repeat:no-repeat;background-position:center bottom;background-size:800px;opacity:.9;pointer-events:none}
.results-section .results-inner{position:relative;z-index:1}
@media(max-width:760px){.results-section::before{background-position:center center;background-size:contain;opacity:.72}}

/* Race position: label above, prefix and placement number on one line */
.result-row>strong.result-place{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:inherit;line-height:1.05}
.result-row .result-place>small{display:block;font:700 8px Inter,sans-serif;letter-spacing:1px;color:#9ca597}
.result-place-line{display:flex;align-items:baseline;justify-content:flex-end;gap:3px;white-space:nowrap;line-height:1}
.result-place-prefix{font:700 19px/1 Inter,Arial,sans-serif;color:#fff;letter-spacing:0}
.result-place-number{font:700 33px/1 "Barlow Condensed",Impact,sans-serif;color:#9d8cff}
@media(max-width:760px){.result-row .result-place>small{font-size:7px}.result-place-prefix{font-size:15px}.result-place-number{font-size:27px}}

.menu-email {
  color: #000be1;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-email:hover {
  color: #4800ab;
}
/* Miniatura filmu w galerii */
.gallery-video-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gallery-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  pointer-events: none;
}

.gallery-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 11, 225, .75);
  font-size: 18px;
  transition: background .25s ease, transform .25s ease;
  pointer-events: none;
}

.gallery-video-tile:hover .gallery-video-play {
  background: #4800ab;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Poprawka: miniatura filmu i przycisk PLAY */
.gallery-video-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Film jako tło kafelka */
.gallery-video-tile .gallery-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Podpis na miniaturce */
.gallery-video-tile > span:not(.gallery-video-play) {
  position: relative;
  z-index: 2;
}

/* Przycisk PLAY zawsze na środku */
.gallery-video-tile .gallery-video-play {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  padding: 0;
  box-sizing: border-box;

  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 11, 225, 0.85);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  z-index: 10;
  pointer-events: none;
  transition: background 0.25s ease;
}

.gallery-video-tile:hover .gallery-video-play {
  background: #4800ab;
}

/* Podpis filmu — pozycja jak na pozostałych kafelkach */
.gallery-video-tile > span:not(.gallery-video-play) {
  position: absolute !important;
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
  top: auto !important;
  width: auto !important;
  z-index: 2;
  box-sizing: border-box;
}

/* Lightbox video for gallery tile 02 / MACHINE */
.lightbox-video{display:block;width:min(1100px,100%);max-height:80vh;object-fit:contain;background:#000}.lightbox-video[hidden]{display:none}

/* Galeria: czarno-białe zdjęcia i filmy */
.gallery-tile {
  filter: grayscale(100%);
  transition: filter 0.45s ease;
}

/* Powrót kolorów po najechaniu */
.gallery-tile:hover {
  filter: grayscale(0%);
}

/* Miniatura filmu również odzyskuje kolory */
.gallery-video-preview {
  filter: grayscale(100%);
  transition: filter 0.45s ease;
}

.gallery-video-tile:hover .gallery-video-preview {
  filter: grayscale(0%);
}

/* Telefony i tablety bez kursora: zdjęcia pozostają kolorowe */
@media (hover: none) {
  .gallery-tile,
  .gallery-video-preview {
    filter: grayscale(0%);
  }
}
/* Wyłączenie tekstury i ziarnistych kropek w pierwszej planszy */
.hero-wrap-texture,
.hero-grain,
.hero-dust {
  display: none !important;
  opacity: 0 !important;
  background-image: none !important;
  animation: none !important;
}
.hero-video {
  filter: grayscale(100%);
}

/* GALERIA — wspólny wygląd podpisów we wszystkich kafelkach */
.gallery-section .gallery-tile > span:not(.gallery-video-play) {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 16px !important;
  left: 18px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 2px !important;
  text-align: left !important;
  z-index: 2;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .gallery-section .gallery-tile > span:not(.gallery-video-play) {
    left: 12px !important;
    bottom: 12px !important;
    font-size: 8px !important;
    letter-spacing: 1.4px !important;
  }
}
/* FIX Chrome desktop: force the final gallery row to match the second row */
.gallery-grid-row-two {
  grid-template-rows: 210px !important;
  grid-auto-rows: 210px;
  align-items: stretch;
}
.gallery-grid-row-two > .gallery-tile {
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch;
}
@media (min-width: 901px) {
  .gallery-grid-row-two {
    grid-template-rows: 210px !important;
  }
}


/* RWD corrections from the user's review — 25.10.2026 */
@media (max-width: 760px) {
  /* Center the hero copy and keep the MX/65 marker visible without scrolling. */
  .hero {
    min-height: calc(100svh - 66px);
    min-height: calc(100dvh - 66px);
    align-items: center;
  }
  .hero-content {
    width: calc(100% - 36px);
    margin-inline: auto;
    padding-block: 30px 76px;
    text-align: left;
  }
  .hero h1 {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
    font-size: clamp(54px, 14.5vw, 88px);
    line-height: .9;
  }
  .hero-line { letter-spacing: 2.5px; }
  .hero-copy { margin-left: 0; margin-right: auto; }
  .hero-content .button { justify-content: flex-start; }
  .hero-index { right: 18px; bottom: 16px; z-index: 5; }

  /* White hamburger bars, independent of the blue/purple accent gradient. */
  .menu-toggle { color: #fff !important; }
  .menu-toggle span { background: #fff !important; }

  /* Classification sits after the season description and before the start list. */
  .results-classification {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 3px 7px;
    margin: 16px 0 20px !important;
    max-width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .results-classification small { flex-basis: 100%; }

  /* Date column can wrap instead of forcing the event title out of its column. */
  .result-row {
    grid-template-columns: minmax(66px, .62fr) minmax(0, 1.7fr) minmax(56px, .58fr);
    gap: 8px;
    align-items: start;
  }
  .result-year {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
    letter-spacing: .2px;
    font-size: 10px;
  }
  .result-row > div { min-width: 0; overflow-wrap: anywhere; }
  .result-row h3, .result-row p { overflow-wrap: anywhere; }
}

/* Gallery: grayscale by default; color on hover/focus. Remove the old fixed 210px override. */
.gallery-section .gallery-tile,
.gallery-section .gallery-video-preview {
  filter: grayscale(100%) !important;
  transition: filter .45s ease;
}
.gallery-section .gallery-tile:hover,
.gallery-section .gallery-tile:focus-visible,
.gallery-section .gallery-tile:hover .gallery-video-preview,
.gallery-section .gallery-tile:focus-visible .gallery-video-preview {
  filter: grayscale(0%) !important;
}
@media (hover: none) {
  .gallery-section .gallery-tile:active,
  .gallery-section .gallery-tile:active .gallery-video-preview {
    filter: grayscale(0%) !important;
  }
}

/* The four tiles above are square; match the final row to their rendered height. */
@media (min-width: 901px) {
  .gallery-grid-row-two {
    grid-template-rows: min(284px, calc((100vw - 93px) / 4)) !important;
    grid-auto-rows: min(284px, calc((100vw - 93px) / 4)) !important;
    align-items: stretch;
  }
  .gallery-grid-row-two > .gallery-tile {
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch;
    aspect-ratio: auto;
  }
}
@media (max-width: 900px) {
  .gallery-grid-row-two { grid-template-rows: 170px !important; }
}
@media (max-width: 760px) {
  .gallery-grid-row-two {
    grid-template-rows: 200px 170px !important;
  }
}


/* Final RWD refinements: keep hero text left-aligned and match gallery row heights. */
@media (max-width: 760px) {
  .hero-content { text-align: left !important; }
  .hero h1 { margin-left: 0 !important; margin-right: auto !important; }
  .hero-copy { margin-left: 0 !important; margin-right: auto !important; }
  .hero-content .button { justify-content: flex-start !important; }
}
@media (min-width: 761px) {
  .gallery-grid-row-two {
    grid-template-rows: min(284px, calc((100vw - 93px) / 4)) !important;
    grid-auto-rows: min(284px, calc((100vw - 93px) / 4)) !important;
    align-items: stretch;
  }
  .gallery-grid-row-two > .gallery-tile {
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    align-self: stretch;
  }
}

/* Desktop: align the classification line to the left edge and add space below it. */
@media (min-width: 761px) {
  .results-classification {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px 8px;
    margin: 22px 0 32px !important;
    max-width: 100%;
    text-align: left;
  }
}

/* About section: make the rider photo match the full text column on desktop/tablet. */
@media (min-width: 761px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    align-items: stretch;
    column-gap: clamp(28px, 5vw, 9%);
  }
  .intro-grid > :first-child { min-width: 0; }
  .intro-grid > .rider-card {
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .intro-grid > .rider-card .rider-photo { inset: 0; }
}

/* Responsive layout: stack copy and photo on narrow screens without fixed-height overflow. */
@media (min-width: 761px) and (max-width: 900px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, .8fr);
    column-gap: 28px;
  }
  .intro .lead { font-size: 17px; }
  .intro .body-copy { font-size: 13px; }
}
@media (max-width: 760px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start;
  }
  .intro-grid > :first-child { min-width: 0; }
  .intro-grid > .rider-card {
    width: 100%;
    height: clamp(280px, 88vw, 420px);
    min-height: 0;
  }
  .intro-grid > .rider-card .rider-photo { inset: 0; }
  .intro-grid > .rider-card .rider-caption { left: 18px; right: 18px; bottom: 18px; }
}

/* Desktop — podniesienie MX / 65; mobile pozostaje bez zmian */
@media (min-width: 761px) {
  .hero-index {
    bottom: 103px !important;
  }
}

