* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f7f7fb;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}
.container { width: min(1100px, 92vw); margin-inline: auto; }

/* Header */
:root{
  --bg: #0b0b10;
  --text: #0f1020;
  --muted: #616176;
  --brand: #b996ff;
  --paper: #fff6f8;
  --ink: #0b1220;
}

.site-header{
  position: relative;       /* change to sticky if you want it pinned */
  z-index: 1000;
  background: #ffffff;
  overflow: visible;
  min-height: 60px;
}
.header-inner{ padding: 1rem 0 0; }

.nav{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.nav__brand{
  font-weight: 800;
  text-decoration: none;
  color: #1a1039;
  letter-spacing: .4px;
}
.nav__toggle{
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  position: relative; z-index: 1100;
}
.nav__links{
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  z-index: 1100;
}
.nav__links a{
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: #1a1039;
  font-weight: 600;
}
.nav__links a:hover{ background: #d3bfff; }

/* Mobile menu */
@media (max-width: 640px){
  .nav{ grid-template-columns: 1fr auto; }
  .nav__toggle{ display: inline-block; }
  .nav__links{
    position: absolute;
    inset: 56px 0 auto 0;
    z-index: 1100;
    padding: .75rem .75rem 1rem;
    background: var(--brand);
    display: grid;
    gap: .5rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .nav__links.open{
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
}


/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: min(52vh, 420px);
  background: #050711; /* star sky */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cyclistCanvas { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
#bikeImage {
  position: relative;
  z-index: 1;           /* above the canvas */
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  animation: bikeBob 2.5s ease-in-out infinite;
}
@keyframes bikeBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}


@keyframes bikeBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}


.hero-cta {
  position: absolute;
  bottom: 1rem;
  z-index: 2;
  text-align: center;
  color: white;
}

h1 {
  margin: .3rem 0 0;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  text-align: center;
}
.btn.small {
  padding: .45rem .8rem;
  border-radius: 10px;
  border: 0;
  background: #12121a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn.small:hover { opacity: .92; }
.btn:hover{ opacity: .9; }
.btn--ghost{
  background: transparent;
  border: 2px solid #1a1039;
  color: #1a1039;
  padding: .4rem .8rem;
}

/* Quote */
.section {
  background: #fff;
  padding: 0 0 2.2rem;
}
.quote {
  width: min(760px, 92%);
  margin: 1rem auto 1.4rem;
  background: #e9e9f2;
  border-radius: 6px;
  padding: .9rem 1rem;
  position: relative;
}
.quote::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -12px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
}

/* Lede + grid */
.lede {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 70ch;
  margin: 0 auto 1.2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  background: #e7e7ee;
  box-shadow: 0 8px 22px rgba(0,0,0,.07);
}

/* Footer */
.site-footer { background: #fff; }
.footer-inner { padding: 1rem 0 2rem; }
.divider { height: 1px; background: #e9e9f2; margin: .5rem 0 1.2rem; }
.socials { display: flex; gap: 18px; justify-content: center; }
.icon { color: #0f1020; opacity: .85; }
.icon:hover { opacity: 1; }

/* Responsive nav */
@media (max-width: 620px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute;
    inset: 56px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid #ececf4;
    display: grid;
    gap: .25rem;
    padding: .5rem .75rem 1rem;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
  }
  .nav__links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .grid { grid-template-columns: 1fr; }
}

/* Cycling gallery */
.cycling-gallery {
  padding: 2rem 0;
  background: #fff;
}
.cycling-gallery h2 {
  text-align: center;
  margin: 0 0 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
  gap: 1rem;
}

.gallery-grid img {
  width: 85%;
  aspect-ratio: 1 / 1; /* square images */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.heatmap-slider {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.slider {
  width: 100%;
  height: 500px;
  position: relative;
}

.slides {
  width: 500%;
  height: 100%;
  display: flex;
}

.slides input {
  display: none;
}

.slide {
  width: 20%;
  transition: 0.6s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Manual navigation */
.navigation-manual {
  position: absolute;
  width: 100%;
  margin-top: -40px;
  display: flex;
  justify-content: center;
}

.manual-btn {
  border: 2px solid #fff;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.4s;
  margin: 0 5px;
}

.manual-btn:hover {
  background: #fff;
}

/* Slide positioning logic */
#img-1:checked ~ .first {
  margin-left: 0;
}
#img-2:checked ~ .first {
  margin-left: -20%;
}
#img-3:checked ~ .first {
  margin-left: -40%;
}
#img-4:checked ~ .first {
  margin-left: -60%;
}
#img-5:checked ~ .first {
  margin-left: -80%;
}
