/* ============================================
   LANDO NORRIS — Design Tokens & Styles
   Reference: landonorris.com
   Aesthetic: Cinematic F1 personal brand
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-bg: #EFEFE5;
  --color-bg-dark: #282C20;
  --color-text: #282C20;
  --color-text-light: #F4F4ED;
  --color-heading: #282C20;
  --color-accent: #D2FF00;
  --color-muted: #666666;
  --color-border: #E5E5E5;
  --color-surface: #F5F5F5;
  --color-btn-primary-bg: #D2FF00;
  --color-btn-primary-text: #282C20;
  --color-btn-secondary-bg: #282C20;
  --color-btn-secondary-text: #F4F4ED;
  --color-link: #DDE1D2;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 120px);
  --container-max-width: 1200px;
  --nav-height: 72px;

  /* Effects */
  --border-radius: 0px;
  --transition: all 0.3s ease;
  --easing-smooth: cubic-bezier(0.65, 0.05, 0, 1);
  --easing-spring: cubic-bezier(0.19, 1, 0.22, 1);
  --easing-decel: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
p { text-wrap: pretty; }

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ============================================
   HEADER — Sticky with dark/light transition
   Effect: nav-color-transition
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 40px);
  transition: color 0.75s var(--easing-smooth),
              background-color 0.75s var(--easing-smooth);
}

.header[data-theme="light"] {
  color: var(--color-text);
}

.header[data-theme="dark"] {
  color: var(--color-text-light);
}

.header-logo img {
  height: 34px;
  width: auto;
  transition: filter 0.75s var(--easing-smooth);
}

.header[data-theme="dark"] .header-logo img {
  filter: brightness(0) invert(1);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.6s var(--easing-spring);
  position: relative;
  overflow: hidden;
}

/* Effect: per-letter-animation (simplified) */
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.6s var(--easing-spring);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9.6px;
  transition: transform 0.3s var(--easing-spring), box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-store:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(210, 255, 0, 0.3);
}

.hamburger {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.75s var(--easing-smooth);
  color: inherit;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   HERO — Full-viewport with parallax portrait
   Effects: hero-portrait-parallax, topographic-bg-pattern
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Effect: topographic-bg-pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cpath d='M150 50c80 20 120 100 200 80s160-60 200 20' fill='none' stroke='%23282C20' stroke-width='0.5' opacity='0.08'/%3E%3Cpath d='M50 150c100 40 180 -20 280 60s120 80 220 40' fill='none' stroke='%23282C20' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M100 250c60 -30 140 50 220 20s180 -40 230 30' fill='none' stroke='%23282C20' stroke-width='0.5' opacity='0.07'/%3E%3Cpath d='M0 350c90 60 170 -10 260 40s140 30 240 -20 100 50' fill='none' stroke='%23282C20' stroke-width='0.5' opacity='0.05'/%3E%3Cpath d='M80 450c70 -20 150 40 230 10s160 -50 210 20' fill='none' stroke='%23282C20' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M30 550c100 30 180 -40 270 20s130 60 220 10' fill='none' stroke='%23282C20' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 600px 600px;
  pointer-events: none;
  z-index: 1;
}

.hero-portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);
  width: clamp(350px, 45vw, 600px);
  max-height: 85vh;
  object-fit: contain;
  object-position: center top;
  z-index: 2;
  will-change: transform;
}

.hero-helmet-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);
  width: clamp(350px, 45vw, 600px);
  max-height: 85vh;
  object-fit: contain;
  object-position: center top;
  z-index: 3;
  opacity: 0.85;
  mix-blend-mode: multiply;
  will-change: transform;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.hero-name {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--color-text);
  opacity: 0.08;
}

/* Next Race Card */
.next-race-card {
  position: absolute;
  bottom: clamp(30px, 5vh, 60px);
  left: clamp(20px, 3vw, 40px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.next-race-card .label {
  font-weight: 600;
  font-size: 10px;
  opacity: 0.6;
}

.next-race-card .race-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.next-race-card .race-icon {
  width: 44px;
  height: 20px;
}

.next-race-card .stat {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 4px;
}

/* Effect: clip-path-reveal */
.clip-path-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--easing-smooth);
}

.clip-path-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* ============================================
   MARQUEE — Champion ticker
   Effect: marquee-text
   ============================================ */
.marquee-section {
  background: var(--color-bg-dark);
  padding: clamp(20px, 3vw, 40px) 0;
  overflow: hidden;
  position: relative;
  max-width: 100vw;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-track--left {
  animation: marquee-left 22s linear infinite;
}

.marquee-track--right {
  animation: marquee-right 28s linear infinite;
}

.marquee-text {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  padding: 0 clamp(20px, 3vw, 40px);
  text-transform: uppercase;
}

.marquee-text--muted {
  color: rgba(244, 244, 237, 0.15);
}

.marquee-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin: 0 clamp(16px, 2vw, 32px);
  vertical-align: middle;
}

/* ============================================
   SECTION THEMING
   Effect: dark-light-section-transition
   ============================================ */
.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  position: relative;
}

.section-light {
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
}

.section-padding {
  padding: var(--section-padding) 0;
}

/* Effect: topographic-bg-pattern on dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cpath d='M150 50c80 20 120 100 200 80s160-60 200 20' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.05'/%3E%3Cpath d='M50 150c100 40 180 -20 280 60s120 80 220 40' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.04'/%3E%3Cpath d='M100 250c60 -30 140 50 220 20s180 -40 230 30' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.04'/%3E%3Cpath d='M0 350c90 60 170 -10 260 40s140 30 240 -20 100 50' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.03'/%3E%3Cpath d='M80 450c70 -20 150 40 230 10s160 -50 210 20' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 600px 600px;
  pointer-events: none;
  z-index: 0;
}

.section-dark > * { position: relative; z-index: 1; }

/* ============================================
   ABOUT / INTRO
   ============================================ */
.about-section {
  text-align: center;
}

.about-quote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 60px;
  font-style: italic;
  opacity: 0.9;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 6vw, 100px);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  line-height: 1;
}

.section-light .stat-value {
  color: var(--color-bg-dark);
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 8px;
}

/* ============================================
   GALLERY — Horizontal scroll pin section
   The page pins, content scrolls horizontally,
   then unpins and vertical scrolling resumes.
   ============================================ */
.horiz-scroll-section {
  position: relative;
  /* Height = enough vertical scroll to drive the horizontal movement */
  /* 7 panels * 100vh = 700vh scroll distance */
  height: 500vh;
  overflow: visible;
}

.horiz-scroll-sticky {
  height: 100vh;
  overflow: hidden;
}

.horiz-scroll-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.horiz-panel {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  position: relative;
}

.horiz-panel--intro,
.horiz-panel--outro {
  flex: 0 0 100vw;
}

.horiz-panel--image {
  flex: 0 0 80vw;
}

.horiz-panel-content {
  text-align: center;
  max-width: 500px;
}

.horiz-quote {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.4;
  font-style: italic;
  opacity: 0.9;
}

.gallery-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 12px;
}

/* Image pairs within horizontal panels */
.horiz-image-pair {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
  height: 80vh;
  padding: 0 clamp(16px, 2vw, 32px);
}

.horiz-image-pair--offset {
  align-items: flex-end;
  padding-bottom: 10vh;
}

.horiz-img {
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}

.horiz-img--large {
  width: clamp(300px, 40vw, 500px);
  height: 65vh;
}

.horiz-img--medium {
  width: clamp(250px, 30vw, 400px);
  height: 55vh;
}

.horiz-img--small {
  width: clamp(200px, 22vw, 300px);
  height: 45vh;
}

/* Mobile: collapse to vertical scroll */
@media (max-width: 768px) {
  .horiz-scroll-section {
    height: auto;
  }
  .horiz-scroll-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .horiz-scroll-track {
    flex-direction: column;
    transform: none !important;
  }
  .horiz-panel {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 60vh;
  }
  .horiz-panel--image {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 20px;
  }
  .horiz-image-pair {
    flex-direction: column;
    height: auto;
    gap: 16px;
    padding: 0;
  }
  .horiz-img--large,
  .horiz-img--medium,
  .horiz-img--small {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }
}

/* ============================================
   HELMETS SECTION
   ============================================ */
.helmets-section .section-header {
  margin-bottom: clamp(30px, 5vw, 60px);
}

.helmet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.helmet-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-surface);
}

.helmet-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  transition: transform 0.75s var(--easing-smooth);
}

.helmet-card:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.helmet-card .helmet-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   PARTNERS — Logo marquee lanes
   ============================================ */
.partners-section .section-header {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 60px);
}

.partners-section .section-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 16px auto 0;
  opacity: 0.7;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding: 20px 0;
  overflow: hidden;
}

.partner-track-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  white-space: nowrap;
  animation: marquee-left 30s linear infinite;
}

.partner-logo {
  height: 32px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.partner-logo:hover {
  opacity: 1;
}

/* ============================================
   STORE / CHAMPION SECTION
   ============================================ */
.store-section {
  position: relative;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.store-content h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  margin-bottom: 24px;
}

.store-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.7;
  max-width: 400px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9.6px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--easing-spring), box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(210, 255, 0, 0.35);
}

.btn-primary .arrow {
  font-size: 18px;
  transition: transform 0.3s var(--easing-spring);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.store-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.store-img {
  border-radius: 0;
  overflow: hidden;
}

.store-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.75s var(--easing-smooth);
}

.store-img:hover img {
  transform: scale(1.04);
}

.store-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 12px;
}

/* ============================================
   SOCIALS — Fanned card stack
   Effect: fanned-card-stack
   ============================================ */
.socials-section {
  text-align: center;
  overflow: hidden;
}

.socials-section h2 {
  margin-bottom: 16px;
}

.socials-subtitle {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: clamp(30px, 5vw, 60px);
}

.fanned-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  height: clamp(300px, 40vw, 500px);
  margin-bottom: clamp(30px, 5vw, 60px);
}

.stack-card {
  position: absolute;
  width: clamp(160px, 20vw, 260px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.75s var(--easing-smooth);
}

.stack-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.stack-card:nth-child(1) { transform: rotate(-8deg) translateX(-120%); z-index: 1; }
.stack-card:nth-child(2) { transform: rotate(-3deg) translateX(-55%); z-index: 2; }
.stack-card:nth-child(3) { transform: rotate(2deg) translateX(0); z-index: 3; }
.stack-card:nth-child(4) { transform: rotate(6deg) translateX(55%); z-index: 2; }
.stack-card:nth-child(5) { transform: rotate(10deg) translateX(120%); z-index: 1; }

.stack-card:hover {
  z-index: 10;
  transform: rotate(0deg) scale(1.08) !important;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
}

.social-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.social-link:hover {
  opacity: 1;
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============================================
   CURVED SECTION DIVIDER
   Effect: curved-section-divider
   ============================================ */
.section-curve {
  position: relative;
}

.section-curve::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(40px, 6vw, 100px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath d='M0 40c240 40 480 60 720 40s480-60 720-20v80H0z' fill='%23282C20'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  z-index: 2;
}

.section-curve--to-light::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath d='M0 40c240 40 480 60 720 40s480-60 720-20v80H0z' fill='%23EFEFE5'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* ============================================
   FOOTER — Notch panel
   Effect: footer-notch-panel
   ============================================ */
.footer-wrapper {
  padding: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
}

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  border-radius: 3.5rem 3.5rem 0 0;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 4vw, 48px) clamp(30px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

/* Notch cutout */
.footer::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  width: 14rem;
  height: 4rem;
  transform: translateX(-50%);
  border-bottom-left-radius: 7rem 3rem;
  border-bottom-right-radius: 7rem 3rem;
  background: var(--color-bg);
  z-index: 1;
}

/* Footer topographic bg */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cpath d='M150 50c80 20 120 100 200 80s160-60 200 20' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.04'/%3E%3Cpath d='M50 150c100 40 180 -20 280 60s120 80 220 40' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.03'/%3E%3Cpath d='M100 250c60 -30 140 50 220 20s180 -40 230 30' fill='none' stroke='%23F4F4ED' stroke-width='0.5' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 600px 600px;
  pointer-events: none;
}

.footer > * { position: relative; z-index: 2; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
  gap: 40px;
}

.footer-signature img {
  height: clamp(30px, 4vw, 50px);
  width: auto;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 244, 237, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 12px;
  opacity: 0.4;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--easing-decel), transform 0.8s var(--easing-decel);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Effect: canvas-opacity-fade */
.canvas-fade {
  transition: opacity 0.1s ease-in-out;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .btn-store { display: none; }

  .header-logo img { height: 28px; }

  .hamburger { display: flex; }

  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: 24px;
    gap: 16px;
    z-index: 999;
  }

  .header-nav.open a {
    color: var(--color-text-light);
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(244, 244, 237, 0.1);
  }

  .store-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-portrait,
  .hero-helmet-overlay {
    width: 80vw;
  }

  .hero-name {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .fanned-stack {
    height: 280px;
  }

  .stack-card {
    width: 140px;
  }

  .stack-card:nth-child(1) { transform: rotate(-6deg) translateX(-90%); }
  .stack-card:nth-child(2) { transform: rotate(-2deg) translateX(-40%); }
  .stack-card:nth-child(3) { transform: rotate(1deg) translateX(0); }
  .stack-card:nth-child(4) { transform: rotate(4deg) translateX(40%); }
  .stack-card:nth-child(5) { transform: rotate(8deg) translateX(90%); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 3rem); }

  .hero {
    min-height: 85dvh;
  }

  .hero-portrait,
  .hero-helmet-overlay {
    width: 100vw;
  }

  .stats-row {
    gap: 24px;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .gallery-card {
    width: 200px;
  }

  .next-race-card {
    display: none;
  }

  .footer {
    border-radius: 2rem 2rem 0 0;
    padding: 48px 20px 24px;
  }

  .footer::before {
    width: 10rem;
    height: 3rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .fanned-stack {
    height: 220px;
  }

  .stack-card {
    width: 110px;
  }

  .helmet-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
