* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #0a0a0a;
  --dark: #141414;
  --gray: #2a2a2a;
  --mid-gray: #555;
  --light-gray: #999;
  --off-white: #f5f5f5;
  --white: #ffffff;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--white);
}
.nav-container {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--white); font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 2px; text-decoration: none;
}
.nav-logo svg { height: 40px; width: 40px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-family: 'Oswald', sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
  font-size: 0.95rem; transition: color 0.3s;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--light-gray); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--white); }
.nav-cta {
  background: var(--white); color: var(--black);
  padding: 0.6rem 1.4rem; border-radius: 2px;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; text-decoration: none;
  letter-spacing: 1px; transition: all 0.3s;
  border: 2px solid var(--white);
}
.nav-cta:hover { background: transparent; color: var(--white); }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; }

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.95) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 Q 25 30, 50 50 T 100 50' stroke='%23222' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { text-align: center; z-index: 2; max-width: 1000px; }
.hero-logo {
  width: min(460px, 75vw); height: min(460px, 75vw); margin: 0 auto 2.5rem;
  display: flex; align-items: center; justify-content: center;
  filter:
    drop-shadow(0 0 40px rgba(255,255,255,0.18))
    drop-shadow(0 10px 20px rgba(0,0,0,0.55));
}
.hero-logo img, .hero-logo svg { max-width: 100%; max-height: 100%; }
.hero-logo img { filter: invert(1); }
.nav-logo img { height: 42px; width: auto; filter: invert(1); }
.footer-logo img { height: 38px; width: auto; filter: invert(1); }
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white); letter-spacing: 4px;
  line-height: 1.1; margin-bottom: 1rem;
}
.hero h1 span { color: var(--white); -webkit-text-stroke: 2px var(--white); -webkit-text-fill-color: transparent; }
.hero-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--light-gray); letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 1rem 2.5rem;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none; border-radius: 2px;
  transition: all 0.3s; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: transparent; color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: transparent; color: var(--black); }

/* SECTIONS */
section { padding: 6rem 2rem; }
.page section { padding-top: 8rem; } /* extra top space for fixed nav on subpages */
.container { max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  color: var(--mid-gray); font-family: 'Oswald', sans-serif;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 4px; font-size: 0.9rem; margin-bottom: 1rem;
}
.services .section-eyebrow, .gallery .section-eyebrow { color: var(--light-gray); }
.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 3px; line-height: 1.1;
}
.section-divider {
  width: 60px; height: 3px; background: var(--black);
  margin: 1.5rem auto 0;
}
.services .section-divider, .gallery .section-divider { background: var(--white); }

/* HOME TESTIMONIALS */
.home-testimonials { background: var(--white); padding: 5rem 2rem; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--off-white);
  border-left: 4px solid var(--black);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
}
.testimonial-quote-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem; line-height: 0.6;
  color: var(--black); opacity: 0.25;
  margin-bottom: 0.5rem;
}
.testimonial-quote {
  flex: 1; color: var(--black);
  font-size: 1rem; line-height: 1.7;
  margin-bottom: 1.25rem; font-style: italic;
}
.testimonial-attribution {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--mid-gray);
  padding-top: 1rem; border-top: 1px solid #ddd;
}
.testimonial-attribution strong { color: var(--black); }
.testimonial-boat {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; letter-spacing: 1px;
  color: var(--mid-gray); margin-top: 0.25rem;
  text-transform: none; font-weight: 500;
}
@media (max-width: 600px) { .home-testimonials { padding: 3rem 1.25rem; } }

/* HOME PREVIEW CARDS (multi-page navigation tiles) */
.home-preview { background: var(--off-white); }
.preview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.preview-card {
  background: var(--white); border: 2px solid #e5e5e5;
  padding: 2.5rem 2rem; text-decoration: none; color: var(--black);
  transition: all 0.3s; display: flex; flex-direction: column;
  gap: 0.75rem;
}
.preview-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.preview-card svg { width: 44px; height: 44px; color: var(--black); margin-bottom: 0.5rem; }
.preview-card h3 { font-size: 1.3rem; letter-spacing: 1.5px; }
.preview-card p { color: var(--mid-gray); font-size: 0.95rem; flex: 1; }
.preview-card .preview-cta {
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.8rem; margin-top: 0.5rem;
}

/* ABOUT */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-text p { font-size: 1.1rem; margin-bottom: 1.5rem; color: #333; }
.about-text p:first-of-type { font-size: 1.3rem; font-weight: 500; color: var(--black); }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2rem;
}
.stat-card {
  background: var(--black); color: var(--white);
  padding: 2rem; border-left: 4px solid var(--white);
  text-align: center;
}
.stat-number { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); line-height: 1; letter-spacing: 1px; }
.stat-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-top: 0.5rem; }
.about-visual {
  background: var(--black); padding: 3rem; border-radius: 4px;
  position: relative; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.about-visual img { width: 100%; max-width: 380px; z-index: 2; position: relative; filter: invert(1); }
.about-visual.about-photo {
  padding: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.about-visual.about-photo::before { display: none; }
.about-visual.about-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  filter: none;
}

/* SERVICES */
.services { background: var(--black); color: var(--white); }
.services .section-header h2 { color: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--dark); padding: 2.5rem 2rem;
  border: 1px solid var(--gray);
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--white);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s;
}
.service-card:hover { border-color: var(--white); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleY(1); transform-origin: top; }
.service-icon { width: 50px; height: 50px; margin-bottom: 1.5rem; color: var(--white); }
.service-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.75rem; letter-spacing: 1px; }
.service-card p { color: var(--light-gray); font-size: 0.95rem; }
.service-card { cursor: pointer; }
.service-card .service-card-cta {
  display: inline-block; margin-top: 1rem;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.75rem; color: var(--white); opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}
.service-card:hover .service-card-cta,
.service-card:focus .service-card-cta { opacity: 1; transform: translateX(4px); }
.service-card:focus { outline: 2px solid var(--white); outline-offset: 2px; }

/* Service detail modal */
.service-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 2000;
  align-items: center; justify-content: center;
  padding: 2rem 1rem; overflow-y: auto;
  animation: fadeIn 0.2s ease;
}
.service-modal.open { display: flex; }
.service-modal-inner {
  background: var(--dark); color: var(--white);
  border: 1px solid var(--gray);
  width: 100%; max-width: 640px;
  padding: 3rem 2.5rem;
  position: relative;
  text-align: center;
}
.service-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 1.4rem;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.service-modal-close:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.service-modal-icon {
  width: 60px; height: 60px;
  color: var(--white); margin: 0 auto 1.5rem;
  display: block;
}
.service-modal-inner h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: 3px;
  color: var(--white); margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.service-modal-inner p {
  color: var(--light-gray); font-size: 1rem;
  line-height: 1.7; margin-bottom: 2rem;
  text-align: left;
}
.service-modal-cta {
  display: inline-block; margin-top: 0.5rem;
  background: var(--white); color: var(--black);
  border: 2px solid var(--white);
  padding: 1rem 2.5rem;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none; transition: all 0.3s;
  font-size: 0.95rem;
}
.service-modal-cta:hover { background: transparent; color: var(--white); }
@media (max-width: 600px) {
  .service-modal-inner { padding: 2.5rem 1.5rem; }
  .service-modal-inner h3 { font-size: 1.5rem; }
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid #ddd; background: var(--white);
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--black); }
.faq-item summary {
  cursor: pointer; padding: 1.25rem 1.5rem;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  letter-spacing: 1px; font-size: 1.05rem;
  list-style: none; position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.5rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; line-height: 1;
  font-weight: 300; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: #fafafa; }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--mid-gray); line-height: 1.7;
}
.faq-item p a { color: var(--black); }

/* BUILDS */
.builds { background: var(--white); }
.builds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.build-card {
  background: var(--white); border: 2px solid #eee;
  overflow: hidden; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.build-card:hover { border-color: var(--black); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.build-image {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray) 100%);
  height: 220px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.build-image::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--white); }
.build-image svg { width: 70%; opacity: 0.95; }
.build-coming-soon {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--white); letter-spacing: 4px;
  font-size: 1.4rem; text-transform: uppercase;
  text-align: center; padding: 0 1rem;
  opacity: 0.8;
}

/* Build image carousel (Mold Three) */
.build-carousel {
  padding: 0; position: relative;
  height: 320px; /* taller than the 220px placeholder cards so landscape photos fit */
  background: #000;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%; height: 100%;
  scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: contain; /* show the whole boat, no cropping */
  scroll-snap-align: start;
  display: block;
  background: #000;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(10,10,10,0.6); color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 3; padding: 0;
}
.carousel-btn:hover { background: rgba(10,10,10,0.9); border-color: var(--white); }
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }
@media (hover: none) {
  /* Hide arrow buttons on touch devices since users will swipe */
  .carousel-btn { opacity: 0.7; }
}
.carousel-track img { cursor: zoom-in; }

/* Lightbox / fullscreen photo viewer */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}
.lightbox.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 95vw; max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2001;
  line-height: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2); border-color: var(--white);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.8rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: var(--light-gray); font-family: 'Oswald', sans-serif;
  letter-spacing: 2px; font-size: 0.85rem;
  z-index: 2001;
}
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.2rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}
.build-info { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.build-number { font-family: 'Bebas Neue', sans-serif; color: var(--mid-gray); font-size: 1rem; letter-spacing: 4px; margin-bottom: 0.5rem; }
.build-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.build-info p { color: #555; flex: 1; }

/* FOR SALE */
.forsale { background: var(--white); }
.forsale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.listing-card {
  background: var(--white); border: 2px solid #e5e5e5;
  display: flex; flex-direction: column;
  transition: all 0.3s; overflow: hidden;
}
.listing-card:hover { border-color: var(--black); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.listing-image {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--black) 0%, var(--gray) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.listing-image svg { width: 30%; height: auto; color: var(--white); opacity: 0.6; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; }

/* Listing carousel (multi-photo for-sale items) */
.listing-carousel { padding: 0; }
.listing-carousel .carousel-track img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.listing-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--white); color: var(--black);
  font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 0.4rem 0.8rem; z-index: 2;
}
.listing-status {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--black); color: var(--white);
  font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 0.4rem 0.8rem; z-index: 2;
  border: 1px solid var(--white);
}
.listing-status.sold { background: #555; }
.listing-info { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.listing-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.listing-info h3 { font-size: 1.4rem; letter-spacing: 1px; flex: 1; min-width: 0; }
.listing-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 1px; white-space: nowrap; }
.listing-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.listing-meta-item {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mid-gray);
  padding: 0.25rem 0.6rem; border: 1px solid #ddd;
}
.listing-info p { color: var(--mid-gray); font-size: 0.95rem; flex: 1; margin-bottom: 1.25rem; }
.listing-cta {
  display: inline-block; padding: 0.7rem 1.5rem;
  background: var(--black); color: var(--white);
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none; font-size: 0.85rem;
  border: 2px solid var(--black); transition: all 0.3s;
  text-align: center; align-self: flex-start;
}
.listing-cta:hover { background: transparent; color: var(--black); }
.forsale-note { text-align: center; margin-top: 2.5rem; color: var(--mid-gray); font-style: italic; font-size: 0.95rem; }

/* MERCH */
.merch { background: var(--off-white); }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.merch-card {
  background: var(--white); border: 2px solid #e5e5e5;
  transition: all 0.3s; cursor: pointer;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.merch-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.merch-image {
  aspect-ratio: 1 / 1; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.merch-image::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 70%); }
.merch-image svg { width: 55%; height: auto; color: var(--white); position: relative; z-index: 2; }
.merch-image img { max-width: 60%; max-height: 60%; filter: invert(1); opacity: 0.9; position: relative; z-index: 2; }
.merch-image img.merch-photo {
  /* Real product photos: show the whole product on the black backdrop */
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: none; opacity: 1;
  padding: 0.5rem;
}
.merch-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.merch-info h3 { font-size: 1.15rem; letter-spacing: 1px; margin-bottom: 0.5rem; }
.merch-info p { color: var(--mid-gray); font-size: 0.9rem; flex: 1; margin-bottom: 1rem; }
.merch-price { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #eee; }
.merch-price-tag { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 1px; }
.merch-status {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
  padding: 0.3rem 0.7rem; border: 1px solid var(--black);
  color: var(--black);
}
.merch-buy {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none;
  padding: 0.55rem 1rem;
  background: var(--black); color: var(--white);
  border: 2px solid var(--black);
  transition: all 0.25s;
}
.merch-buy:hover { background: transparent; color: var(--black); }

/* GALLERY */
.gallery { background: var(--dark); color: var(--white); }
.gallery .section-header h2 { color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px solid var(--gray);
  transition: all 0.3s; cursor: pointer;
  position: relative; overflow: hidden;
}
.gallery-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.12)); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover { border-color: var(--white); transform: scale(1.02); }
.gallery-item:hover::before { opacity: 1; }
.gallery-icon { width: 60px; height: 60px; color: var(--white); opacity: 0.5; margin-bottom: 0.75rem; }
.gallery-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--light-gray); font-size: 0.85rem; }
.gallery-item.has-photo { padding: 0; cursor: zoom-in; }
.gallery-item.has-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; /* show the whole photo (letterbox bars on dark bg) */
  background: #0a0a0a;
  display: block;
}
.gallery-item.has-photo .gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--white); padding: 1.5rem 1rem 0.85rem;
  z-index: 2; font-size: 0.85rem;
  text-align: center; letter-spacing: 2px;
}
.gallery-note { text-align: center; margin-top: 2rem; color: var(--light-gray); font-style: italic; font-size: 0.95rem; }

/* CONTACT */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { background: var(--black); color: var(--white); padding: 3rem; }
.contact-info h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 3px; margin-bottom: 2rem; color: var(--white); }
.contact-item { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }
.contact-icon { width: 24px; height: 24px; color: var(--white); flex-shrink: 0; margin-top: 4px; }
.contact-item-content { flex: 1; }
.contact-item-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; color: var(--light-gray); margin-bottom: 0.25rem; }
.contact-item-value { color: var(--white); font-size: 1.05rem; text-decoration: none; word-break: break-word; }
a.contact-item-value:hover { color: var(--light-gray); text-decoration: underline; }
.contact-form { padding: 0; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.9rem 1rem;
  border: 2px solid #ddd; background: var(--white);
  font-family: 'Inter', sans-serif; font-size: 1rem;
  transition: border-color 0.3s; border-radius: 2px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--black); }
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-form button { width: 100%; }

/* SOCIAL */
.social-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid var(--white); color: var(--white);
  text-decoration: none; transition: all 0.3s; border-radius: 2px;
}
.social-link:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }
.footer-social { display: flex; gap: 0.75rem; justify-content: center; margin: 1.25rem 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--light-gray); color: var(--light-gray);
  text-decoration: none; transition: all 0.3s; border-radius: 2px;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); }
.footer-social svg { width: 18px; height: 18px; }

/* FOOTER */
footer {
  background: var(--black); color: var(--light-gray);
  padding: 3rem 2rem 1.5rem; text-align: center;
  border-top: 1px solid var(--white);
}
.footer-logo { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; font-family: 'Bebas Neue', sans-serif; color: var(--white); font-size: 1.5rem; letter-spacing: 3px; text-decoration: none; }
.footer-logo svg { height: 36px; width: 36px; }
footer p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray); font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black); padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--white);
    gap: 1.25rem;
  }
  .nav-links.open a { padding: 0.5rem 0; font-size: 1.05rem; border-bottom: none; }
  .nav-links.open a.active { border-left: 3px solid var(--white); padding-left: 0.75rem; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-logo { font-size: 1.25rem; letter-spacing: 1.5px; }
  .nav-logo svg { height: 32px; width: 32px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { padding: 2rem; min-height: auto; }
  section { padding: 4rem 1.25rem; }
  .page section { padding-top: 6rem; }
  .hero { padding: 5rem 1.25rem 3rem; }
  .hero-logo { width: min(380px, 80vw); height: min(380px, 80vw); margin-bottom: 1.5rem; }
  .contact-info { padding: 2rem 1.5rem; }
  .build-info, .merch-info { padding: 1.5rem; }
}
@media (max-width: 500px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { letter-spacing: 2px; }
  .stat-card { padding: 1.5rem; }
  .stat-number { font-size: 2.75rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .merch-grid { grid-template-columns: 1fr; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; }
}

/* Sound toggle button (events page only) */
.sound-toggle {
  display: none; /* hidden by default - shown on events page */
  background: transparent;
  color: var(--white);
  border: 2px solid currentColor;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 4px;
  margin-right: 0.5rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sound-toggle .sound-icon-off { display: none; }
.sound-toggle .sound-icon-on { display: inline; }
.sound-toggle.muted .sound-icon-on { display: none; }
.sound-toggle.muted .sound-icon-off { display: inline; opacity: 0.7; }
.page-events .sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd60a;
  border-color: #ffd60a;
}
.page-events .sound-toggle:hover {
  background: #ffd60a;
  color: #131319;
}
.page-events .sound-toggle.muted {
  color: rgba(247,243,232,0.55);
  border-color: rgba(247,243,232,0.4);
}

/* EVENTS PAGE - Themed nav and footer overrides (scoped to .page-events) */
.page-events nav {
  background: rgba(10,10,16,0.95);
  border-bottom: 4px solid #ffd60a;
  box-shadow: 0 4px 0 #e63946, 0 6px 20px rgba(0,0,0,0.6);
}
.page-events .nav-logo { color: #f7f3e8; }
.page-events .nav-logo svg polygon { fill: #ffd60a !important; }
.page-events .nav-links a { color: #f7f3e8; }
.page-events .nav-links a:hover { color: #ffd60a; }
.page-events .nav-links a.active {
  color: #ffd60a;
  border-bottom-color: #e63946;
}
.page-events .nav-cta {
  background: #e63946;
  color: #f7f3e8;
  border: 2px solid #ffd60a;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 3px 3px 0 #ffd60a;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.page-events .nav-cta:hover {
  background: #ff6b35;
  color: #f7f3e8;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #ffd60a;
}
.page-events .menu-toggle { color: #ffd60a; }

.page-events footer {
  background: var(--rally-darker);
  color: var(--rally-cream);
  border-top: none;
  position: relative;
  padding-top: 4rem;
}
.page-events footer::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--rally-red) 0 40px,
    var(--rally-yellow) 40px 80px,
    var(--rally-cyan) 80px 120px,
    var(--rally-darker) 120px 160px
  );
  opacity: 0.95;
}
.page-events .footer-logo {
  color: var(--rally-yellow);
  font-style: italic;
  text-shadow: 2px 2px 0 var(--rally-red);
}
.page-events .footer-logo svg polygon { fill: var(--rally-yellow) !important; }
.page-events footer p { color: rgba(247,243,232,0.85); }
.page-events .footer-social a {
  border: 2px solid var(--rally-yellow);
  color: var(--rally-yellow);
  border-radius: 0;
  transition: all 0.2s;
}
.page-events .footer-social a:hover {
  background: var(--rally-red);
  border-color: var(--rally-red);
  color: var(--rally-cream);
  transform: translateY(-2px);
}
.page-events .footer-bottom {
  border-top: 2px dashed var(--rally-cyan);
  color: rgba(247,243,232,0.7);
}
.page-events .footer-bottom a {
  color: var(--rally-yellow);
}

/* EVENTS PAGE - Rally poster theme (red / cyan / yellow on near-black) */
.page-events {
  --rally-red: #e63946;
  --rally-cyan: #29c5ce;
  --rally-yellow: #ffd60a;
  --rally-orange: #ff6b35;
  --rally-dark: #131319;
  --rally-darker: #0a0a10;
  --rally-cream: #f7f3e8;
  background: var(--rally-darker);
}
.page-events .page { background: var(--rally-darker); }
/* Halftone dot pattern - subtle overlay used on hero/dividers */
.page-events .events-hero,
.page-events .event-row {
  position: relative;
  isolation: isolate;
}
.page-events .events-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(230,57,70,0.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(41,197,206,0.22), transparent 45%),
    var(--rally-dark);
  color: var(--rally-cream);
  padding: 5rem 2rem 5rem;
  border-bottom: 6px solid var(--rally-yellow);
  overflow: hidden;
}

/* Scrolling marquee under the nav */
.rally-marquee {
  background: var(--rally-yellow);
  color: var(--rally-darker);
  border-top: 4px solid var(--rally-darker);
  border-bottom: 4px solid var(--rally-darker);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 0.85rem 0;
}
.rally-marquee::before, .rally-marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 60px;
  z-index: 2; pointer-events: none;
}
.rally-marquee::before { left: 0; background: linear-gradient(to right, var(--rally-yellow), transparent); }
.rally-marquee::after { right: 0; background: linear-gradient(to left, var(--rally-yellow), transparent); }
.rally-marquee-track {
  display: inline-flex; gap: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 4px;
  font-weight: 400;
  animation: rally-scroll 35s linear infinite;
}
.rally-marquee-track span { display: inline-block; }
.rally-marquee-track .rally-dot { color: var(--rally-red); font-size: 1.5rem; }
@keyframes rally-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* "Undefeated Champ" rotated circular stamp */
.rally-stamp {
  position: absolute;
  top: 4rem; right: -1rem;
  width: clamp(150px, 16vw, 220px);
  height: clamp(150px, 16vw, 220px);
  border: 4px solid var(--rally-red);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: rotate(-12deg);
  background: radial-gradient(circle at 30% 30%, rgba(230,57,70,0.18), rgba(230,57,70,0.06) 70%);
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  color: var(--rally-red);
  text-align: center;
  letter-spacing: 2px;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  /* Default resting state - stamp sits here once it lands */
  transform: rotate(-12deg);
  text-shadow: 1px 1px 0 var(--rally-darker);
  padding: 0.5rem;
  box-shadow: 0 0 0 4px var(--rally-darker), 0 0 0 7px var(--rally-yellow);
}
/* Slam-in animation triggered by JS on page load */
.rally-stamp.slam-in {
  animation:
    rally-stamp-slam 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    rally-pulse 2.5s ease-in-out 0.9s infinite;
}
@keyframes rally-stamp-slam {
  0% {
    transform: rotate(-45deg) scale(4);
    opacity: 0;
    filter: blur(12px);
  }
  10% {
    opacity: 0.5;
    filter: blur(8px);
  }
  55% {
    transform: rotate(-12deg) scale(0.82);
    opacity: 1;
    filter: blur(0);
  }
  72% {
    transform: rotate(-12deg) scale(1.12);
  }
  85% {
    transform: rotate(-12deg) scale(0.95);
  }
  100% {
    transform: rotate(-12deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}
.rally-stamp-line { font-size: clamp(0.85rem, 1.3vw, 1.15rem); padding: 0.12rem 0; }
.rally-stamp-line-big {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--rally-yellow);
  text-shadow: 2px 2px 0 var(--rally-darker);
  font-style: italic;
  letter-spacing: 4px;
  padding: 0.15rem 0;
}
.rally-stamp-star {
  color: var(--rally-yellow);
  font-size: 1rem;
  text-shadow: 1px 1px 0 var(--rally-darker);
  display: block;
  animation: rally-star-spin 4s linear infinite;
}
.rally-stamp-star:last-child {
  animation-direction: reverse;
}
@keyframes rally-pulse {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(-12deg) scale(1.06); }
}

/* "Undefeated Champ" tagline banner */
.rally-champ-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 0;
  max-width: max-content;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--rally-red) 0%, var(--rally-orange) 100%);
  color: var(--rally-yellow);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-style: italic;
  text-shadow: 2px 2px 0 var(--rally-darker);
  border-top: 3px solid var(--rally-yellow);
  border-bottom: 3px solid var(--rally-yellow);
  box-shadow:
    0 0 0 4px var(--rally-darker),
    0 0 0 7px var(--rally-yellow),
    0 8px 20px rgba(230,57,70,0.4);
  transform: skewX(-5deg);
  position: relative;
  z-index: 2;
}
.rally-champ-banner .rally-champ-text {
  white-space: nowrap;
  display: inline-block;
}
.rally-champ-star {
  color: var(--rally-yellow);
  font-size: 1.2em;
  text-shadow: 2px 2px 0 var(--rally-darker);
  animation: rally-star-spin 4s linear infinite;
  display: inline-block;
}
.rally-champ-star:last-child {
  animation-direction: reverse;
}
@keyframes rally-star-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 600px) {
  .rally-champ-banner {
    padding: 0.7rem 1rem;
    gap: 0.6rem;
    letter-spacing: 2px;
  }
  .rally-champ-banner .rally-champ-text {
    white-space: normal;
    text-align: center;
  }
}

/* Stats banner under hero */
.rally-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  position: relative;
}
.rally-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--rally-cyan);
  position: relative;
  transition: transform 0.2s, background 0.2s;
}
.rally-stat:nth-child(1) { border-color: var(--rally-yellow); }
.rally-stat:nth-child(2) { border-color: var(--rally-red); }
.rally-stat:nth-child(3) { border-color: var(--rally-cyan); }
.rally-stat:nth-child(4) { border-color: var(--rally-orange); }
.rally-stat:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.rally-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  color: var(--rally-yellow);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--rally-red);
  font-style: italic;
}
.rally-stat:nth-child(2) .rally-stat-num { color: var(--rally-red); text-shadow: 3px 3px 0 var(--rally-yellow); }
.rally-stat:nth-child(3) .rally-stat-num { color: var(--rally-cyan); text-shadow: 3px 3px 0 var(--rally-red); }
.rally-stat:nth-child(4) .rally-stat-num { color: var(--rally-orange); text-shadow: 3px 3px 0 var(--rally-cyan); }
.rally-stat-num span { font-size: 1em; vertical-align: baseline; }
.rally-stat-lbl {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rally-cream);
  margin-top: 0.5rem;
  font-weight: 600;
}

.page-events .events-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}
.page-events .events-hero > .container { position: relative; z-index: 1; }
.page-events .events-hero .section-eyebrow {
  display: inline-block;
  background: var(--rally-red);
  color: var(--rally-cream);
  padding: 0.4rem 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  transform: skewX(-8deg);
}
.page-events .events-hero h2 {
  color: var(--rally-cream);
  text-shadow: 4px 4px 0 var(--rally-red);
  letter-spacing: 3px;
}
.page-events .events-hero h2 span {
  color: var(--rally-yellow);
  text-shadow: 6px 6px 0 var(--rally-red), 12px 12px 0 var(--rally-cyan);
}
.page-events .events-hero .section-divider {
  background: var(--rally-yellow); height: 4px;
}
.events-intro {
  text-align: center; max-width: 720px; margin: 0 auto;
  font-size: 1.15rem; line-height: 1.7;
}
.page-events .events-intro { color: rgba(247,243,232,0.85); }

.event-row { background: var(--white); padding: 4rem 2rem; position: relative; }
.event-row-alt { background: var(--off-white); }
.page-events .event-row {
  background: var(--rally-darker);
  color: var(--rally-cream);
  padding: 5rem 2rem;
  border-bottom: 4px solid var(--rally-red);
}
.page-events .event-row-alt {
  background: var(--rally-dark);
  border-bottom-color: var(--rally-cyan);
}
.page-events .event-row::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--rally-red) 0 40px,
    var(--rally-yellow) 40px 80px,
    var(--rally-cyan) 80px 120px,
    var(--rally-darker) 120px 160px
  );
  opacity: 0.85;
}
.event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.event-poster-wrap { position: relative; }
.event-poster-link { display: block; line-height: 0; position: relative; }
.event-poster {
  width: 100%; height: auto; display: block;
  border: 4px solid var(--black);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.event-poster-link:hover .event-poster { transform: scale(1.01); }
.page-events .event-poster {
  border: 6px solid var(--rally-yellow);
  box-shadow: 12px 12px 0 var(--rally-red), 0 16px 36px rgba(0,0,0,0.5);
  transform: rotate(-1deg);
  transition: transform 0.25s ease;
}
.page-events .event-poster-link:hover .event-poster { transform: rotate(0) scale(1.02); }
.event-details { display: flex; flex-direction: column; }
.event-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.5rem;
}
.page-events .event-subtitle {
  display: inline-block;
  background: var(--rally-yellow);
  color: var(--rally-darker);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  font-weight: 700;
  transform: skewX(-8deg);
  letter-spacing: 3px;
  border-left: 4px solid var(--rally-red);
}
.event-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--black);
}
.page-events .event-title {
  color: var(--rally-yellow);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  letter-spacing: 3px;
  text-shadow:
    0 0 20px rgba(255,214,10,0.4),
    5px 5px 0 var(--rally-red),
    10px 10px 0 var(--rally-cyan);
  line-height: 0.95;
  font-style: italic;
  transform: skewX(-4deg);
  transform-origin: left;
}
.page-events .events-hero h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-style: italic;
  text-shadow: 6px 6px 0 var(--rally-red), 12px 12px 0 var(--rally-cyan);
  line-height: 0.95;
  margin-top: 0.5rem;
}
.event-meta {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-left: 4px solid var(--black);
}
.event-row-alt .event-meta { background: var(--white); }
.page-events .event-meta {
  background: var(--rally-cream);
  color: var(--rally-darker);
  border-left: 6px solid var(--rally-red);
  border-top: 1px solid var(--rally-yellow);
  border-right: 1px solid rgba(0,0,0,0.1);
  border-bottom: 4px solid var(--rally-cyan);
  box-shadow: 6px 6px 0 rgba(255,214,10,0.5);
  position: relative;
}
.page-events .event-meta::after {
  content: '';
  position: absolute; right: -8px; top: -8px;
  width: 24px; height: 24px;
  background: var(--rally-yellow);
  transform: rotate(45deg);
  border: 3px solid var(--rally-darker);
}
.page-events .event-meta-label {
  color: var(--rally-red);
  font-weight: 700;
}
.page-events .event-meta-row a {
  color: var(--rally-darker);
  text-decoration: underline;
  text-decoration-color: var(--rally-cyan);
  text-decoration-thickness: 2px;
}
.page-events .event-meta-row a:hover {
  background: var(--rally-yellow);
}
.event-meta-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.6;
}
.event-meta-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid-gray);
  padding-top: 2px;
}
.event-meta-row a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 600;
}
.event-description {
  color: #444; line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.page-events .event-description {
  color: rgba(247,243,232,0.92);
  font-size: 1.05rem;
  line-height: 1.85;
}
.event-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.event-cta .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.page-events .event-cta .btn-primary {
  background: var(--rally-red);
  color: var(--rally-cream);
  border: none;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
  box-shadow: 5px 5px 0 var(--rally-yellow);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  animation: rally-cta-pulse 2.4s ease-in-out infinite;
  position: relative;
}
.page-events .event-cta .btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--rally-yellow);
  background: var(--rally-orange);
  animation: none;
}
@keyframes rally-cta-pulse {
  0%, 100% { box-shadow: 5px 5px 0 var(--rally-yellow), 0 0 0 0 rgba(255,214,10,0.6); }
  50% { box-shadow: 5px 5px 0 var(--rally-yellow), 0 0 0 12px rgba(255,214,10,0); }
}
.page-events .event-cta .btn-secondary {
  background: transparent;
  color: var(--rally-cyan);
  border: 3px solid var(--rally-cyan);
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 1rem 1.75rem;
}
.page-events .event-cta .btn-secondary:hover {
  background: var(--rally-cyan);
  color: var(--rally-darker);
}
.event-video-wrap { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #ddd; }
.page-events .event-video-wrap {
  border-top: none;
  margin-top: 2rem;
  padding-top: 3.25rem;
  position: relative;
}
.page-events .event-video-wrap::before {
  content: '';
  position: absolute;
  top: 1rem; left: 0; right: 0;
  height: 16px;
  background: repeating-linear-gradient(
    -45deg,
    var(--rally-yellow) 0 14px,
    var(--rally-darker) 14px 28px
  );
  border-top: 2px solid var(--rally-darker);
  border-bottom: 2px solid var(--rally-darker);
  box-shadow: 0 4px 0 rgba(255,214,10,0.25);
}
.event-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}
.event-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--black);
}
.event-video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.event-video-caption {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.75rem;
}
.page-events .event-video-caption {
  color: var(--rally-yellow);
  font-weight: 600;
}
.page-events .event-video-frame {
  border: 4px solid var(--rally-yellow);
  box-shadow: 6px 6px 0 var(--rally-red);
}
.event-history-wrap { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #ddd; }
.page-events .event-history-wrap {
  border-top: none;
  margin-top: 2rem;
  padding-top: 3.25rem;
  position: relative;
}
.page-events .event-history-wrap::before {
  content: '';
  position: absolute;
  top: 1rem; left: 0; right: 0;
  height: 16px;
  background: repeating-linear-gradient(
    -45deg,
    var(--rally-cyan) 0 14px,
    var(--rally-darker) 14px 28px
  );
  border-top: 2px solid var(--rally-darker);
  border-bottom: 2px solid var(--rally-darker);
  box-shadow: 0 4px 0 rgba(41,197,206,0.25);
}
.event-history-header { text-align: center; margin-bottom: 2rem; }
.event-history-header h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.event-history-header p {
  color: var(--mid-gray); font-size: 0.95rem;
  font-style: italic;
}
.page-events .event-history-header h4 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: 4px;
  font-style: italic;
  color: var(--rally-cream);
  text-shadow: 3px 3px 0 var(--rally-red);
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}
.page-events .event-history-header h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 5px;
  background: var(--rally-yellow);
}
.page-events .event-history-header p {
  color: var(--rally-yellow);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 1px;
}
.history-carousel-wrap { position: relative; }
.history-track {
  display: flex; gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.history-track::-webkit-scrollbar { height: 8px; }
.history-track::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.page-events .history-track {
  scrollbar-color: var(--rally-yellow) var(--rally-darker);
  scrollbar-width: thin;
}
.page-events .history-track::-webkit-scrollbar {
  height: 10px;
  background: var(--rally-darker);
}
.page-events .history-track::-webkit-scrollbar-track {
  background: var(--rally-darker);
  border-top: 2px solid var(--rally-cyan);
  border-bottom: 2px solid var(--rally-cyan);
}
.page-events .history-track::-webkit-scrollbar-thumb {
  background: var(--rally-yellow);
  border-radius: 0;
  border: 1px solid var(--rally-darker);
}
.page-events .history-track::-webkit-scrollbar-thumb:hover {
  background: var(--rally-orange);
}
.history-slide {
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 320px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.history-slide a { display: block; line-height: 0; }
.history-slide img {
  width: 100%; height: auto; display: block;
  border: 3px solid var(--black);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
  background: var(--off-white);
  aspect-ratio: 2/3;
  object-fit: cover;
}
.page-events .history-slide img {
  border: 5px solid var(--rally-yellow);
  box-shadow: 6px 6px 0 var(--rally-red);
  transform: rotate(-1.5deg);
}
.page-events .history-slide:nth-child(2n) img {
  transform: rotate(1.5deg);
  box-shadow: -6px 6px 0 var(--rally-cyan);
  border-color: var(--rally-cyan);
}
.page-events .history-slide:nth-child(3n) img {
  border-color: var(--rally-red);
  box-shadow: 6px 6px 0 var(--rally-yellow);
}
.history-slide img { transition: transform 0.25s ease; }
.history-slide img:hover { transform: scale(1.02); }
.page-events .history-slide img:hover { transform: rotate(0) scale(1.04); }
.history-label {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 0.75rem;
  font-weight: 600;
}
.page-events .history-label {
  color: var(--rally-cream);
  background: var(--rally-darker);
  padding: 0.4rem 0.75rem;
  display: inline-block;
  margin-top: 1rem;
  border-bottom: 3px solid var(--rally-yellow);
  font-weight: 700;
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.history-slide { text-align: center; }
.history-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--black); color: var(--white);
  border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 5; opacity: 0.9;
  transition: opacity 0.15s, transform 0.15s;
}
.history-btn:hover { opacity: 1; transform: translateY(-50%) scale(1.05); }
.page-events .history-btn {
  background: var(--rally-yellow);
  color: var(--rally-darker);
  border: 3px solid var(--rally-darker);
  width: 52px; height: 52px;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 4px 4px 0 var(--rally-red);
}
.page-events .history-btn:hover {
  background: var(--rally-orange);
  box-shadow: 6px 6px 0 var(--rally-red);
}
.history-prev { left: -22px; }
.history-next { right: -22px; }

/* RALLY MERCH CTA - "Check Out Our Merch" section */
.page section.rally-merch-cta {
  background:
    radial-gradient(circle at 80% 30%, rgba(255,214,10,0.15), transparent 45%),
    radial-gradient(circle at 20% 70%, rgba(41,197,206,0.18), transparent 45%),
    var(--rally-darker);
  padding: 2.25rem 2rem 3.5rem;
  border-bottom: 4px solid var(--rally-yellow);
  position: relative;
  overflow: hidden;
}
.rally-merch-cta::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--rally-cyan) 0 40px,
    var(--rally-yellow) 40px 80px,
    var(--rally-red) 80px 120px,
    var(--rally-darker) 120px 160px
  );
  opacity: 0.95;
}
.rally-merch-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
.rally-merch-eyebrow {
  display: inline-block;
  background: var(--rally-cyan);
  color: var(--rally-darker);
  padding: 0.4rem 1.1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transform: skewX(-8deg);
  margin-bottom: 1rem;
}
.rally-merch-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: 3px;
  color: var(--rally-yellow);
  font-style: italic;
  text-shadow: 4px 4px 0 var(--rally-red), 8px 8px 0 var(--rally-cyan);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.rally-merch-header p {
  color: var(--rally-cream);
  font-size: 1.1rem;
  line-height: 1.7;
}
.rally-merch-cta-wrap {
  text-align: center;
  position: relative;
  z-index: 1;
}
.rally-merch-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, var(--rally-red) 0%, var(--rally-orange) 50%, var(--rally-yellow) 100%);
  background-size: 200% 200%;
  color: var(--rally-darker);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 4px;
  font-style: italic;
  text-decoration: none;
  text-transform: uppercase;
  border: 4px solid var(--rally-yellow);
  box-shadow:
    0 0 0 4px var(--rally-darker),
    0 0 0 7px var(--rally-yellow),
    8px 8px 0 var(--rally-red),
    0 0 30px rgba(255,214,10,0.4);
  position: relative;
  transform: skewX(-3deg);
  animation: rally-merch-btn-pulse 2.2s ease-in-out infinite, rally-merch-btn-gradient 4s ease-in-out infinite;
  text-shadow: 1px 1px 0 var(--rally-cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rally-merch-btn:hover {
  transform: skewX(-3deg) translate(-3px, -3px) scale(1.03);
  box-shadow:
    0 0 0 4px var(--rally-darker),
    0 0 0 7px var(--rally-yellow),
    11px 11px 0 var(--rally-red),
    0 0 50px rgba(255,214,10,0.6);
  animation: none;
}
@keyframes rally-merch-btn-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px var(--rally-darker),
      0 0 0 7px var(--rally-yellow),
      8px 8px 0 var(--rally-red),
      0 0 30px rgba(255,214,10,0.4),
      0 0 0 0 rgba(230,57,70,0.5);
  }
  50% {
    box-shadow:
      0 0 0 4px var(--rally-darker),
      0 0 0 7px var(--rally-yellow),
      8px 8px 0 var(--rally-red),
      0 0 50px rgba(255,214,10,0.7),
      0 0 0 18px rgba(230,57,70,0);
  }
}
@keyframes rally-merch-btn-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.rally-merch-btn-arrow {
  display: inline-block;
  font-size: 1.2em;
  animation: rally-merch-btn-arrow-bounce 1s ease-in-out infinite;
}
@keyframes rally-merch-btn-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
.rally-merch-btn-sticker {
  position: absolute;
  top: -1.5rem; left: -1.5rem;
  background: var(--rally-cyan);
  color: var(--rally-darker);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  padding: 0.4rem 0.85rem;
  border: 3px solid var(--rally-darker);
  transform: rotate(-15deg);
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--rally-yellow);
  animation: rally-merch-sticker-wiggle 2.4s ease-in-out infinite;
  text-shadow: 1px 1px 0 var(--rally-yellow);
}
@keyframes rally-merch-sticker-wiggle {
  0%, 100% { transform: rotate(-15deg) scale(1); }
  50% { transform: rotate(-10deg) scale(1.08); }
}

@media (max-width: 850px) {
  .event-grid { grid-template-columns: 1fr; gap: 2rem; }
  .event-row { padding: 3rem 1.25rem; }
  .events-hero { padding: 5rem 1.25rem 2rem; }
  .page section.rally-merch-cta { padding: 1.75rem 1.25rem 2.75rem; }
  .rally-merch-btn-sticker { top: -1rem; left: -0.75rem; font-size: 1rem; }
  .history-prev { left: 0.5rem; }
  .history-next { right: 0.5rem; }
  .rally-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  /* Tone down stacked color shadows on mobile so big italic text stays readable. */
  .page-events .events-hero h2 {
    text-shadow: 3px 3px 0 var(--rally-red), 6px 6px 0 var(--rally-cyan);
  }
  .page-events .events-hero h2 span {
    text-shadow: 3px 3px 0 var(--rally-red), 6px 6px 0 var(--rally-cyan);
  }
  .page-events .event-title {
    text-shadow: 3px 3px 0 var(--rally-red), 6px 6px 0 var(--rally-cyan);
    letter-spacing: 2px;
  }
  /* On mobile, take the stamp out of absolute positioning so it doesn't overlap the headline.
     Center it inline above the eyebrow instead. */
  .rally-stamp {
    position: relative;
    top: auto; right: auto;
    width: 160px; height: 160px;
    margin: 0 auto 1.5rem;
    padding: 0.5rem;
  }
  @keyframes rally-pulse-mobile {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(-8deg) scale(1.04); }
  }
  @keyframes rally-stamp-slam-mobile {
    0% { transform: rotate(-25deg) scale(2.8); opacity: 0; filter: blur(6px); }
    55% { transform: rotate(-8deg) scale(0.9); opacity: 1; filter: blur(0); }
    75% { transform: rotate(-8deg) scale(1.06); }
    90% { transform: rotate(-8deg) scale(0.98); }
    100% { transform: rotate(-8deg) scale(1); opacity: 1; filter: blur(0); }
  }
  .rally-stamp { transform: rotate(-8deg); }
  .rally-stamp.slam-in {
    animation:
      rally-stamp-slam-mobile 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both,
      rally-pulse-mobile 2.5s ease-in-out 0.9s infinite;
  }
  .page-events .events-hero { padding: 4rem 1.25rem 3rem; }
  .page-events .event-row { padding: 4rem 1.25rem; }
}
@media (max-width: 500px) {
  .page-events .events-hero h2 {
    text-shadow: 2px 2px 0 var(--rally-red), 4px 4px 0 var(--rally-cyan);
    letter-spacing: 2px;
  }
  .page-events .events-hero h2 span {
    text-shadow: 2px 2px 0 var(--rally-red), 4px 4px 0 var(--rally-cyan);
  }
  .page-events .event-title {
    text-shadow: 2px 2px 0 var(--rally-red), 4px 4px 0 var(--rally-cyan);
    letter-spacing: 1.5px;
  }
  /* Rally merch section - small phone tweaks */
  .page section.rally-merch-cta { padding: 1.5rem 1rem 2.5rem; }
  .rally-merch-header { margin-bottom: 1.5rem; }
  .rally-merch-header h3 {
    text-shadow: 2px 2px 0 var(--rally-red), 4px 4px 0 var(--rally-cyan);
    letter-spacing: 2px;
  }
  .rally-merch-header p { font-size: 1rem; }
  .rally-merch-btn {
    padding: 1.1rem 1.75rem;
    letter-spacing: 2.5px;
    gap: 0.6rem;
    box-shadow:
      0 0 0 3px var(--rally-darker),
      0 0 0 5px var(--rally-yellow),
      5px 5px 0 var(--rally-red),
      0 0 20px rgba(255,214,10,0.4);
  }
  @keyframes rally-merch-btn-pulse {
    0%, 100% {
      box-shadow:
        0 0 0 3px var(--rally-darker),
        0 0 0 5px var(--rally-yellow),
        5px 5px 0 var(--rally-red),
        0 0 20px rgba(255,214,10,0.4),
        0 0 0 0 rgba(230,57,70,0.5);
    }
    50% {
      box-shadow:
        0 0 0 3px var(--rally-darker),
        0 0 0 5px var(--rally-yellow),
        5px 5px 0 var(--rally-red),
        0 0 35px rgba(255,214,10,0.6),
        0 0 0 12px rgba(230,57,70,0);
    }
  }
  .rally-merch-btn-sticker {
    top: -0.85rem; left: -0.5rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    letter-spacing: 1.5px;
  }
  .event-meta { padding: 1.25rem; }
  .event-meta-row { grid-template-columns: 70px 1fr; gap: 0.75rem; font-size: 0.95rem; }
  .event-videos { grid-template-columns: 1fr; }
  .history-slide { width: 80vw; }
  .history-btn { width: 36px; height: 36px; }
  .rally-stamp {
    width: 140px; height: 140px;
    padding: 0.35rem;
  }
  .rally-stamp-line { font-size: 0.7rem; letter-spacing: 1px; }
  .rally-stamp-line-big { font-size: 1.5rem; letter-spacing: 2px; }
  .rally-stamp-star { font-size: 0.7rem; }
  .rally-marquee-track { font-size: 0.95rem; letter-spacing: 2.5px; }
}
