/* ==========================================================================
   LANDO NORRIS (LN4) — DESIGN SYSTEM & MASTER STYLESHEET
   Clean, faithful recreation with modern CSS tokens & smooth responsiveness
   ========================================================================== */

/* --- Typography Face (Brier Display Serif & Mona Sans) --- */
@font-face {
  font-family: 'Brier';
  src: url('https://cdn.prod.website-files.com/67b5a02dc5d338960b17a7e9/67b6113a220f85ad6497495a_Brier-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mona Sans Variable';
  src: url('https://cdn.prod.website-files.com/67b5a02dc5d338960b17a7e9/67bc6274c5b4108b123aa4d5_MonaSans-VariableFont_wdth%2Cwght.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Color Palette */
  --color--lime: #d2ff00;
  --color--lime-off: #b2c73a;
  --color--dark-green: #282c20;
  --color--dark-green-deep: #161a12;
  --color--white: #f4f4ed;
  --color--black: #111112;
  --color--grey-1: #ebeee0;
  --color--grey-2: #c8cbbd;
  --color--green-off-white-1: #dde1d2;
  --color--green-off-white-2: #b4b8a5;
  --color--dark-green-tint-1: #3b3c38;
  --color--dark-green-tint-2: #535450;
  --color--grey-on-track: #b9bbad;
  --color--cream: #efefe5;
  --color--light-bg: #f3f3f1;

  /* Typography */
  --font-sans: 'Mona Sans Variable', 'Mona Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Brier', 'Instrument Serif', Georgia, serif;

  /* Easing & Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0, 1);
  --duration-default: 0.5s;

  /* Spacing */
  --gap: 1.25rem;
  --container-max: 1728px;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: var(--font-sans);
  background-color: var(--color--light-bg);
  color: var(--color--black);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  background-color: var(--color--light-bg);
}

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

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

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

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

/* Serif accent class */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--color--lime-off);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease-out);
}

.nav-brand:hover {
  transform: scale(1.03);
}

.brand-svg {
  width: 110px;
  height: auto;
  color: var(--color--black);
  transition: color 0.3s ease;
}

body[data-nav-theme="dark"] .brand-svg {
  color: var(--color--black);
}

body[data-nav-theme="light"] .brand-svg {
  color: var(--color--white);
}

/* Middle Monogram */
.nav-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out);
}

.nav-monogram:hover {
  transform: rotate(5deg) scale(1.1);
}

.ln4-monogram-svg {
  width: 32px;
  height: 32px;
  color: var(--color--black);
  transition: color 0.3s ease;
}

body[data-nav-theme="light"] .ln4-monogram-svg {
  color: var(--color--white);
}

/* Right Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color--lime);
  color: var(--color--black);
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 14px rgba(210, 255, 0, 0.3);
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 255, 0, 0.45);
  background-color: #e2ff40;
}

.icon-bag {
  width: 16px;
  height: 16px;
}

/* Hamburger Button */
.nav-hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.ham-line {
  width: 18px;
  height: 2px;
  background-color: var(--color--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active Hamburger state */
.nav-hamburger.is-active .ham-top {
  transform: translateY(4px) rotate(45deg);
}

.nav-hamburger.is-active .ham-bot {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   FULLSCREEN MENU OVERLAY
   ========================================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 18, 0.85);
  backdrop-filter: blur(12px);
}

.menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #171b13;
  color: var(--color--white);
  overflow: hidden;
}

/* Left Media Column */
.menu-media-col {
  padding: 6rem 2rem 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.25rem;
  width: 100%;
  max-width: 580px;
}

.menu-photo-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0c0e09;
}

.menu-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(110%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.menu-photo-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(100%);
}

/* Right Links Column */
.menu-links-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem 4rem 3rem 3rem;
  background: radial-gradient(circle at top right, rgba(210, 255, 0, 0.05), transparent 70%);
}

.menu-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
}

.menu-link-text {
  /* sized so the eight sections fit one screen */
  font-size: clamp(1.7rem, min(3.4vw, 6.2vh), 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color--white);
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-link:hover .menu-link-text {
  color: var(--color--lime);
  transform: translateX(8px);
}

.menu-squiggle {
  width: 100%;
  max-width: 320px;
  height: 16px;
  margin-top: -6px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.35s var(--ease-out);
}

.menu-link.active .menu-squiggle,
.menu-link:hover .menu-squiggle {
  opacity: 1;
  transform: scaleX(1);
}

.menu-wreath-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.wreath-svg {
  width: 50px;
  height: auto;
}

.wreath-text {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color--green-off-white-2);
}

.menu-footer-links {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.menu-enquiry-link {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color--lime);
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}

.menu-enquiry-link:hover {
  opacity: 0.8;
}

.menu-socials-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color--grey-2);
}

.menu-socials-row a:hover {
  color: var(--color--lime);
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color--dark-green-deep);
  color: var(--color--white);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-sig {
  width: min(360px, 62vw);
  height: auto;
  overflow: visible;
}

.loader-letter .sig-stroke,
.loader-letter .sig-fill {
  animation-duration: 3.6s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.loader-letter .sig-stroke {
  stroke-dashoffset: 1;
}

.loader-letter .sig-fill {
  opacity: 0;
}

@keyframes loaderStroke1 {
  0%, 0.00% { stroke-dashoffset: 1; }
  10.88%, 89.12% { stroke-dashoffset: 0; }
  100.00%, 100% { stroke-dashoffset: 1; }
}

@keyframes loaderInk1 {
  0%, 5.98% { opacity: 0; }
  10.88%, 89.12% { opacity: 1; }
  94.02%, 100% { opacity: 0; }
}

.loader-letter-1 .sig-stroke { animation-name: loaderStroke1; }
.loader-letter-1 .sig-fill { animation-name: loaderInk1; }

@keyframes loaderStroke2 {
  0%, 10.88% { stroke-dashoffset: 1; }
  20.20%, 79.80% { stroke-dashoffset: 0; }
  89.12%, 100% { stroke-dashoffset: 1; }
}

@keyframes loaderInk2 {
  0%, 16.00% { opacity: 0; }
  20.20%, 79.80% { opacity: 1; }
  84.00%, 100% { opacity: 0; }
}

.loader-letter-2 .sig-stroke { animation-name: loaderStroke2; }
.loader-letter-2 .sig-fill { animation-name: loaderInk2; }

@keyframes loaderStroke3 {
  0%, 20.20% { stroke-dashoffset: 1; }
  28.60%, 71.40% { stroke-dashoffset: 0; }
  79.80%, 100% { stroke-dashoffset: 1; }
}

@keyframes loaderInk3 {
  0%, 24.82% { opacity: 0; }
  28.60%, 71.40% { opacity: 1; }
  75.18%, 100% { opacity: 0; }
}

.loader-letter-3 .sig-stroke { animation-name: loaderStroke3; }
.loader-letter-3 .sig-fill { animation-name: loaderInk3; }

@keyframes loaderStroke4 {
  0%, 28.60% { stroke-dashoffset: 1; }
  34.93%, 65.07% { stroke-dashoffset: 0; }
  71.40%, 100% { stroke-dashoffset: 1; }
}

@keyframes loaderInk4 {
  0%, 32.08% { opacity: 0; }
  34.93%, 65.07% { opacity: 1; }
  67.92%, 100% { opacity: 0; }
}

.loader-letter-4 .sig-stroke { animation-name: loaderStroke4; }
.loader-letter-4 .sig-fill { animation-name: loaderInk4; }

@keyframes loaderStroke5 {
  0%, 34.93% { stroke-dashoffset: 1; }
  44.00%, 56.00% { stroke-dashoffset: 0; }
  65.07%, 100% { stroke-dashoffset: 1; }
}

@keyframes loaderInk5 {
  0%, 39.92% { opacity: 0; }
  44.00%, 56.00% { opacity: 1; }
  60.08%, 100% { opacity: 0; }
}

.loader-letter-5 .sig-stroke { animation-name: loaderStroke5; }
.loader-letter-5 .sig-fill { animation-name: loaderInk5; }

@media (prefers-reduced-motion: reduce) {
  .loader-letter .sig-stroke,
  .loader-letter .sig-fill {
    animation: none;
  }
  .loader-letter .sig-stroke { stroke-dashoffset: 0; }
  .loader-letter .sig-fill { opacity: 1; }
}

/* Text for search engines and screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
/* The hero stays pinned; the message section scrolls up over it */
.hero-cover {
  position: relative;
}

.hero-section {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fdfdf9; /* matches the backdrop baked into the hero clips */
  overflow: hidden;
  padding-top: 5rem;
}

/* Topographic Canvas */
.hero-topo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* Hero Character Canvas (base clip + brush-revealed mask clip) */
.hero-character-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.hero-character-canvas.is-ready {
  opacity: 1;
}

/* Floating HUD Card: Next Race */
/* Mobile Toggle */
/* ==========================================================================
   MESSAGE FROM LANDO SECTION
   ========================================================================== */
.section-message-lando {
  position: relative;
  z-index: 2;
  box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.28);
  background-color: var(--color--dark-green);
  color: var(--color--white);
  /* one screen, plus the scroll it takes to write the signature */
  height: 240vh;
}

.message-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

.message-header-row {
  position: absolute;
  top: 3rem;
  z-index: 3;
}

.message-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.ln4-monogram-small {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--color--lime);
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color--green-off-white-2);
}

/* Giant Background Marquee */
.message-marquee-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.message-marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
  opacity: 0.75;
}

@keyframes marqueeScroll {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}

.marquee-text-bold {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #3b4231;
}

.marquee-text-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  color: var(--color--lime-off);
}

/* Center Card & Signature */
.message-card-center {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
}

.message-photo-wrap {
  position: relative;
  width: 320px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.message-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%);
}

.message-signature-svg {
  position: absolute;
  left: 9%;
  top: 50%;
  width: 82%;
  height: auto;
  transform: translateY(-50%) rotate(-7deg);
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

/* each letter is drawn, then inked, in turn (values set in initSignature) */
.sig-letter {
  --sig-draw: 1;
  --sig-fill: 0;
}

/* the pen: the outline is drawn first, then it fills in */
.sig-stroke {
  stroke: var(--color--lime);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--sig-draw);
}

.sig-fill {
  fill: var(--color--lime);
  opacity: var(--sig-fill);
}

/* ==========================================================================
   IMPACT TYPOGRAPHY SECTION
   ========================================================================== */
.section-impact {
  background-color: var(--color--dark-green);
  color: var(--color--white);
  padding: 6rem 2rem 8rem;
  display: flex;
  justify-content: center;
}

.impact-inner {
  max-width: 1300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.impact-wreath-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.small-wreath {
  width: 36px;
  height: 20px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color--green-off-white-2);
}

/* each word rises out of its own mask */
.rise .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.06em 0.16em 0;
  margin: -0.08em -0.06em -0.16em 0;
}

.rise .word-inner {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms);
}

.rise.is-in .word-inner {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rise .word-inner {
    transform: none;
    transition: none;
  }
}

.impact-statement {
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   SCRAPBOOK / CAREER MOMENTS TIMELINE
   ========================================================================== */
.section-timeline {
  /* colours are moved by the scroll (see initTimelineScroll) */
  --tl-bg: #282c20;
  --tl-fg: #f4f4ed;
  --tl-soft: #b9bbad;
  --tl-accent: #b2c73a;
  position: relative;
  height: 400vh; /* real height is set from the track width */
  background-color: var(--tl-bg);
  color: var(--tl-fg);
}

/* The page scrolls vertically while the cards slide sideways */
.timeline-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.timeline-topo {
  position: absolute;
  top: -5%;
  left: -10%;
  width: 120%;
  height: 110%;
  color: var(--tl-fg);
  opacity: 0.08;
  pointer-events: none;
  will-change: transform;
}

.timeline-header {
  position: absolute;
  top: 6rem;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-timeline .eyebrow {
  color: var(--tl-soft);
}

.drag-hint {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tl-fg);
}

.timeline-track-wrapper {
  position: absolute;
  inset: 0;
}

.timeline-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7rem;
  width: max-content;
  padding: 0 18vw 0 12vw;
  will-change: transform;
}

.timeline-track > * {
  flex-shrink: 0;
}

/* Cards float at different heights, like a scattered scrapbook */
.timeline-track > :nth-child(1) { translate: 0 -10vh; }
.timeline-track > :nth-child(2) { translate: 0 16vh; }
.timeline-track > :nth-child(3) { translate: 0 -16vh; }
.timeline-track > :nth-child(4) { translate: 0 4vh; }
.timeline-track > :nth-child(5) { translate: 0 -15vh; }
.timeline-track > :nth-child(6) { translate: 0 10vh; }
.timeline-track > :nth-child(7) { translate: 0 16vh; }
.timeline-track > :nth-child(8) { translate: 0 -4vh; }
.timeline-track > :nth-child(9) { translate: 0 8vh; }
.timeline-track > :nth-child(10) { translate: 0 16vh; }
.timeline-track > :nth-child(11) { translate: 0 -10vh; }
.timeline-track > :nth-child(12) { translate: 0 8vh; }

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.4s var(--ease-out);
}

.timeline-card:hover {
  transform: translateY(-8px);
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tl-soft);
}

.card-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

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

.card-img-wrap.grayscale img {
  filter: grayscale(100%) contrast(105%);
}

.card-tall { width: clamp(190px, 27vh, 320px); height: clamp(270px, 40vh, 470px); }
.card-med { width: clamp(240px, 36vh, 420px); height: clamp(240px, 36vh, 420px); }
.card-square { width: clamp(210px, 32vh, 370px); height: clamp(210px, 32vh, 370px); }
.card-large { width: clamp(320px, 52vh, 620px); height: clamp(320px, 52vh, 620px); }

/* Win badge on Britain 2025 card */
.win-badge {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  gap: 0.4rem;
}

.win-num {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color--lime);
}

/* Timeline Quote Cards */
.timeline-quote-card {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-text {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tl-fg);
}

.quote-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--tl-accent);
}

.quote-sig {
  width: 80px;
  height: auto;
}

.quote-sig path {
  stroke: var(--tl-accent);
}

/* ==========================================================================
   ON TRACK / OFF TRACK SPLIT SECTION
   ========================================================================== */
.section-on-off-track {
  background-color: var(--color--light-bg);
  color: var(--color--black);
  padding: 0;
  /* clip (not hidden) keeps the sideways overflow out without breaking position: sticky */
  overflow: clip;
}

/* Full-screen band: the two portraits sit flush against the screen edges, bottom aligned */
.on-off-split-container {
  position: sticky; /* stays put while the photo below slides over it */
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 27vw 1fr 27vw;
  align-items: end;
  gap: 0;
}

.on-off-col-img {
  align-self: end;
  line-height: 0;
  position: relative;
  z-index: 0;
}

/* The portraits have empty space on their inner side; it is allowed to spill into the middle column */
.on-off-col-img.col-left img {
  width: 150%; /* same size as the right portrait */
  margin-left: -22%; /* pushed off-screen on the left */
}

.on-off-col-img.col-right img {
  width: 150%;
  margin-left: -34%; /* pushed off-screen on the right */
}

.on-off-col-img img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.col-left img {
  transform: scaleX(1);
}

.col-right img {
  transform: scaleX(1);
}

/* Pan in from the sides as the section scrolls into view (--pan goes 1 -> 0, set in initOnOffPan) */
.section-on-off-track {
  --pan: 1;
}

.on-off-col-img.col-left,
.portal-on {
  transform: translate3d(calc(var(--pan) * -80vw), 0, 0);
  opacity: calc(1 - var(--pan) * 0.9);
  will-change: transform, opacity;
}

.on-off-col-img.col-right,
.portal-off {
  transform: translate3d(calc(var(--pan) * 80vw), 0, 0);
  opacity: calc(1 - var(--pan) * 0.9);
  will-change: transform, opacity;
}

.on-off-center-content {
  align-self: center;
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 7rem 0 4rem;
  text-align: center;
}

.portal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portal-headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-title-serif {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-style: italic;
  line-height: 0.9;
  color: var(--color--black);
}

.portal-title-sans {
  font-size: clamp(2.2rem, 3.3vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--color--black);
}

.graffiti-on {
  position: absolute;
  top: 15%;
  left: 20%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4.8rem;
  color: var(--color--lime);
  transform: rotate(-12deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(210, 255, 0, 0.4));
}

.portal-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color--dark-green-tint-2);
  max-width: 200px;
}

.portal-btn {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background-color: var(--color--lime);
  color: var(--color--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 12px rgba(210, 255, 0, 0.3);
}

.portal-btn:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #e0ff30;
}

.portal-btn svg {
  width: 20px;
  height: 20px;
}

/* The panoramic photo scrolls up over the pinned "El camino / El propósito" band */
.on-off-banner-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  margin-top: 0;
  overflow: hidden;
  box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.28);
}

.on-off-banner-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 40%;
}

/* ==========================================================================
   HELMETS HALL OF FAME
   ========================================================================== */
.section-helmets {
  background-color: var(--color--black);
  color: var(--color--white);
  padding: 8rem 0 6rem;
}

.helmets-container {
  max-width: none;
  margin: 0;
}

/* text blocks keep side padding; the cards run edge to edge */
.helmets-header-row,
.helmets-bottom-cta {
  padding-left: 2rem;
  padding-right: 2rem;
}

.helmets-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 5rem;
}

.helmets-title-wrap {
  display: flex;
  flex-direction: column;
}

.helmets-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.helmets-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-style: italic;
  line-height: 0.9;
  color: var(--color--lime-off);
}

.helmets-desc {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--color--grey-on-track);
  max-width: 520px;
}

/* Helmets Grid */
/* three equal cards across 90% of the screen, with air between them */
.helmets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 90%;
  margin: 0 auto;
}

.helmet-card {
  position: relative;
  background-color: #161817;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), background-color 0.4s ease;
  cursor: pointer;
}

.helmet-card:hover {
  background-color: #1c201e;
}

/* Corner Cut HUD Frame SVG */
.helmet-hud-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.helmet-card:hover .helmet-hud-frame {
  color: var(--color--lime);
}

.hud-frame-svg {
  width: 100%;
  height: 100%;
}

.helmet-img-container {
  position: static;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helmet-img {
  position: relative;
  z-index: 1;
  width: 78%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

/* second image: fills the whole card on hover */
.helmet-img.hover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
}

.helmet-card:hover .helmet-img.base {
  opacity: 0;
  transform: scale(0.96);
}

.helmet-card:hover .helmet-img.hover {
  opacity: 1;
  transform: scale(1);
}

.helmet-info {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.5rem;
  z-index: 2;
  margin-top: 1rem;
}

/* the whole card opens the project link */
a.helmet-name::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.helmet-info {
  transition: opacity 0.3s ease;
}

/* the full-card image already carries the name, so the caption steps aside */
.helmet-card:hover .helmet-info {
  opacity: 0;
}

.helmet-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.helmet-year {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color--lime);
}

/* Helmets Bottom Callout */
.helmets-bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 7rem;
  gap: 1.5rem;
}

.helmets-cta-icon svg {
  width: 48px;
  height: auto;
}

.helmets-cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.2;
}

/* Universal Button Style */
.btn-primary-lime {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color--lime);
  color: var(--color--black);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(210, 255, 0, 0.3);
}

.btn-primary-lime:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(210, 255, 0, 0.5);
  background-color: #dbff26;
}

.btn-primary-lime svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

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

/* ==========================================================================
   WORLD DRIVERS' CHAMPION / STORE
   ========================================================================== */
.section-store-merch {
  background-color: var(--color--light-bg);
  color: var(--color--black);
  padding: 8rem 2rem;
  overflow: hidden;
}

.store-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
}

.store-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 520px;
}

.store-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-store-small {
  width: 16px;
  height: 16px;
}

.store-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color--dark-green-tint-1);
}

.store-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.store-desc {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--color--dark-green-tint-2);
}

/* Coming-soon section: plain white, same type as the Bolivia block */
.section-culture {
  background-color: #fff;
  color: var(--color--black);
  padding: 9rem 2rem;
}

/* long words: keep them inside narrow screens */
.section-culture .store-headline {
  font-size: clamp(2rem, 8.4vw, 5.5rem);
}

.section-culture .store-desc {
  max-width: 620px;
}

.culture-inner {
  max-width: 940px; /* wide enough for BOLIVIA CULTURE on one line */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Media Collage Column */
/* Collage: the portrait in the middle, the card over its top-right corner, the logo over its left edge */
.store-media-col {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
}

.store-img-main,
.store-img-sub {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
}

.store-img-main {
  left: 20%;
  top: 4%;
  width: 54%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

.store-img-sub.sub-1 { /* card */
  right: 0;
  top: 0;
  width: 42%;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.store-img-sub.sub-2 { /* logo */
  left: 0;
  top: 40%;
  width: 26%;
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.store-img-sub img,
.store-img-main img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.store-img-main:hover img,
.store-img-sub:hover img {
  transform: scale(1.05);
}

.store-sticker {
  position: absolute;
  bottom: -1rem;
  right: 2rem;
  width: 140px;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.2));
  animation: floatSticker 4s ease-in-out infinite;
}

@keyframes floatSticker {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* ==========================================================================
   PARTNERS & CAMPAIGNS
   ========================================================================== */
.section-partners {
  background-color: var(--color--light-bg);
  color: var(--color--black);
  padding: 6rem 0 8rem;
  position: relative;
  overflow: hidden;
}

.partners-container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.partners-bg-script {
  position: absolute;
  top: 10%;
  left: 20%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(6rem, 18vw, 16rem);
  color: var(--color--lime);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transform: rotate(-10deg);
}

.partners-header-row {
  position: relative;
  z-index: 2;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 4rem;
}

.partners-title-col {
  display: flex;
  flex-direction: column;
}

.partners-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.partners-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-style: italic;
  line-height: 0.95;
}

.partners-desc {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--color--dark-green-tint-1);
  max-width: 480px;
}

.partners-desc strong {
  font-weight: 800;
  color: var(--color--black);
}

.partners-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Dark twin of the lime button */
.btn-primary-lime.btn-dark {
  background-color: var(--color--black);
  color: var(--color--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary-lime.btn-dark:hover {
  background-color: var(--color--dark-green);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Logo Marquee */
.partners-marquee-row {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  display: flex;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  white-space: nowrap;
  animation: logoScroll 30s linear infinite;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  filter: grayscale(100%) opacity(0.8);
  transition: all 0.3s ease;
}

.partner-logo-item:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.partner-logo-item span {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.partner-logo-item img {
  height: 100%;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

/* ==========================================================================
   SOCIALS SHOWCASE
   ========================================================================== */
.section-socials {
  position: relative;
  /* The colour layers reach --bleed into the section above and below and fade out there,
     so the gradient carries on across the joins. --fade is the whole faded band (half outside,
     half inside); the content keeps clear of it. */
  --bleed: 7.5rem;
  --fade: calc(var(--bleed) * 2);
  z-index: 2;
  margin: calc(var(--bleed) * -1) 0;
  min-height: calc(max(100vh, 680px) + var(--fade) * 2);
  overflow: hidden;
  color: var(--color--white);
  pointer-events: none; /* the faded bands lie over the neighbours; only the content takes clicks */
  /* same colours as the neighbours behind the fading layers; without this the page
     background showed through and left a line where each neighbour ends */
  background: linear-gradient(180deg, var(--color--light-bg) 50%, #fff 50%);
  /* big icon size, and how far out / down the side icons wait */
  --icon-size: min(52vh, 36vw);
  --side-x: 25vw;
  --side-y: 13vh;
  --side-scale: 0.44;
}

/* Backdrops */
.socials-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  /* fully see-through at the outer edges, solid once past the faded band. Many small steps on a
     smooth curve: with only a few stops the eye picks out a line at each one. */
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.0000) calc(var(--fade) * 0.0000), rgba(0, 0, 0, 0.0022) calc(var(--fade) * 0.0625), rgba(0, 0, 0, 0.0161) calc(var(--fade) * 0.1250), rgba(0, 0, 0, 0.0488) calc(var(--fade) * 0.1875), rgba(0, 0, 0, 0.1035) calc(var(--fade) * 0.2500), rgba(0, 0, 0, 0.1800) calc(var(--fade) * 0.3125), rgba(0, 0, 0, 0.2752) calc(var(--fade) * 0.3750), rgba(0, 0, 0, 0.3840) calc(var(--fade) * 0.4375), rgba(0, 0, 0, 0.5000) calc(var(--fade) * 0.5000), rgba(0, 0, 0, 0.6160) calc(var(--fade) * 0.5625), rgba(0, 0, 0, 0.7248) calc(var(--fade) * 0.6250), rgba(0, 0, 0, 0.8200) calc(var(--fade) * 0.6875), rgba(0, 0, 0, 0.8965) calc(var(--fade) * 0.7500), rgba(0, 0, 0, 0.9512) calc(var(--fade) * 0.8125), rgba(0, 0, 0, 0.9839) calc(var(--fade) * 0.8750), rgba(0, 0, 0, 0.9978) calc(var(--fade) * 0.9375), rgba(0, 0, 0, 1.0000) calc(var(--fade) * 1.0000), rgba(0, 0, 0, 1.0000) calc(100% - var(--fade) * 1.0000), rgba(0, 0, 0, 0.9978) calc(100% - var(--fade) * 0.9375), rgba(0, 0, 0, 0.9839) calc(100% - var(--fade) * 0.8750), rgba(0, 0, 0, 0.9512) calc(100% - var(--fade) * 0.8125), rgba(0, 0, 0, 0.8965) calc(100% - var(--fade) * 0.7500), rgba(0, 0, 0, 0.8200) calc(100% - var(--fade) * 0.6875), rgba(0, 0, 0, 0.7248) calc(100% - var(--fade) * 0.6250), rgba(0, 0, 0, 0.6160) calc(100% - var(--fade) * 0.5625), rgba(0, 0, 0, 0.5000) calc(100% - var(--fade) * 0.5000), rgba(0, 0, 0, 0.3840) calc(100% - var(--fade) * 0.4375), rgba(0, 0, 0, 0.2752) calc(100% - var(--fade) * 0.3750), rgba(0, 0, 0, 0.1800) calc(100% - var(--fade) * 0.3125), rgba(0, 0, 0, 0.1035) calc(100% - var(--fade) * 0.2500), rgba(0, 0, 0, 0.0488) calc(100% - var(--fade) * 0.1875), rgba(0, 0, 0, 0.0161) calc(100% - var(--fade) * 0.1250), rgba(0, 0, 0, 0.0022) calc(100% - var(--fade) * 0.0625), rgba(0, 0, 0, 0.0000) calc(100% - var(--fade) * 0.0000));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.0000) calc(var(--fade) * 0.0000), rgba(0, 0, 0, 0.0022) calc(var(--fade) * 0.0625), rgba(0, 0, 0, 0.0161) calc(var(--fade) * 0.1250), rgba(0, 0, 0, 0.0488) calc(var(--fade) * 0.1875), rgba(0, 0, 0, 0.1035) calc(var(--fade) * 0.2500), rgba(0, 0, 0, 0.1800) calc(var(--fade) * 0.3125), rgba(0, 0, 0, 0.2752) calc(var(--fade) * 0.3750), rgba(0, 0, 0, 0.3840) calc(var(--fade) * 0.4375), rgba(0, 0, 0, 0.5000) calc(var(--fade) * 0.5000), rgba(0, 0, 0, 0.6160) calc(var(--fade) * 0.5625), rgba(0, 0, 0, 0.7248) calc(var(--fade) * 0.6250), rgba(0, 0, 0, 0.8200) calc(var(--fade) * 0.6875), rgba(0, 0, 0, 0.8965) calc(var(--fade) * 0.7500), rgba(0, 0, 0, 0.9512) calc(var(--fade) * 0.8125), rgba(0, 0, 0, 0.9839) calc(var(--fade) * 0.8750), rgba(0, 0, 0, 0.9978) calc(var(--fade) * 0.9375), rgba(0, 0, 0, 1.0000) calc(var(--fade) * 1.0000), rgba(0, 0, 0, 1.0000) calc(100% - var(--fade) * 1.0000), rgba(0, 0, 0, 0.9978) calc(100% - var(--fade) * 0.9375), rgba(0, 0, 0, 0.9839) calc(100% - var(--fade) * 0.8750), rgba(0, 0, 0, 0.9512) calc(100% - var(--fade) * 0.8125), rgba(0, 0, 0, 0.8965) calc(100% - var(--fade) * 0.7500), rgba(0, 0, 0, 0.8200) calc(100% - var(--fade) * 0.6875), rgba(0, 0, 0, 0.7248) calc(100% - var(--fade) * 0.6250), rgba(0, 0, 0, 0.6160) calc(100% - var(--fade) * 0.5625), rgba(0, 0, 0, 0.5000) calc(100% - var(--fade) * 0.5000), rgba(0, 0, 0, 0.3840) calc(100% - var(--fade) * 0.4375), rgba(0, 0, 0, 0.2752) calc(100% - var(--fade) * 0.3750), rgba(0, 0, 0, 0.1800) calc(100% - var(--fade) * 0.3125), rgba(0, 0, 0, 0.1035) calc(100% - var(--fade) * 0.2500), rgba(0, 0, 0, 0.0488) calc(100% - var(--fade) * 0.1875), rgba(0, 0, 0, 0.0161) calc(100% - var(--fade) * 0.1250), rgba(0, 0, 0, 0.0022) calc(100% - var(--fade) * 0.0625), rgba(0, 0, 0, 0.0000) calc(100% - var(--fade) * 0.0000));
}

.socials-bg.is-active {
  opacity: 1;
}

.socials-bg-instagram {
  background:
    radial-gradient(circle at 12% 105%, #fdc468 0%, rgba(245, 96, 64, 0.85) 28%, rgba(245, 96, 64, 0) 58%),
    linear-gradient(140deg, #6a3fc7 0%, #c13584 42%, #e1306c 70%, #f56040 100%);
}

.socials-bg-tiktok {
  background:
    radial-gradient(circle at 18% 30%, rgba(37, 244, 238, 0.28) 0%, rgba(37, 244, 238, 0) 45%),
    radial-gradient(circle at 84% 72%, rgba(254, 44, 85, 0.32) 0%, rgba(254, 44, 85, 0) 48%),
    #0c0c10;
}

.socials-bg-facebook {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(160deg, #2f86ff 0%, #1767e0 50%, #0c48ad 100%);
}

/* Giant network name */
.socials-word {
  position: absolute;
  z-index: 2;
  top: calc(var(--fade) + 6%);
  left: 0;
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.socials-word span {
  position: absolute;
  top: 0;
  left: 50%;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, 8%) scale(0.96);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out);
}

.socials-word span.is-active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* sized so each name spans the section */
.socials-word-instagram { font-size: 15.6vw; }
.socials-word-tiktok { font-size: 25vw; }
.socials-word-facebook { font-size: 17vw; }

/* Icons */
.socials-stage {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
  inset: var(--fade) 0;
}

.social-icon {
  position: absolute;
  top: 47%;
  left: 50%;
  width: var(--icon-size);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)) rotate(var(--r, 0deg));
  transition: transform 0.9s var(--ease-in-out), filter 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 45px rgba(0, 0, 0, 0.35));
  animation: socialFloat 5s ease-in-out infinite;
  pointer-events: none;
}

.social-icon[data-pos="center"] {
  z-index: 3;
  cursor: default;
}

.social-icon[data-pos="left"] {
  --x: calc(var(--side-x) * -1);
  --y: var(--side-y);
  --s: var(--side-scale);
  --r: -10deg;
  z-index: 2;
}

.social-icon[data-pos="right"] {
  --x: var(--side-x);
  --y: var(--side-y);
  --s: var(--side-scale);
  --r: 10deg;
  z-index: 2;
}

.social-icon[data-pos="left"] img,
.social-icon[data-pos="right"] img {
  animation-duration: 6.5s;
  animation-delay: -2s;
}

.social-icon:not([data-pos="center"]):hover {
  filter: brightness(1.12);
}

.social-icon:focus-visible {
  outline: none;
}

/* focus ring only on the icons that can be picked, not on the one already shown */
.social-icon:not([data-pos="center"]):focus-visible {
  outline: 3px solid var(--color--lime);
  outline-offset: 6px;
  border-radius: 18%;
}

@keyframes socialFloat {
  0%, 100% { transform: translateY(-2.5%); }
  50% { transform: translateY(2.5%); }
}

/* Text + buttons */
.socials-panels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--fade);
  z-index: 4;
  padding: 0 4rem 3rem;
  pointer-events: none;
}

.socials-panel {
  position: absolute;
  left: 4rem;
  right: 4rem;
  bottom: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out), visibility 0.35s;
}

.socials-panel.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.25s;
}

.socials-copy {
  max-width: 400px;
}

.socials-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.socials-heading {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.socials-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.socials-text {
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0.92;
}

.socials-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--color--white);
  background-color: var(--color--white);
  color: var(--color--black);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn:hover svg {
  transform: translateX(4px);
}

.social-btn-ghost {
  background-color: transparent;
  color: var(--color--white);
}

.social-btn-ghost:hover {
  background-color: var(--color--white);
  color: var(--color--black);
}

@media (max-width: 768px) {
  .section-socials {
    --icon-size: min(32vh, 58vw);
    --side-x: 31vw;
    --side-y: 14vh;
    min-height: calc(max(100vh, 760px) + var(--fade) * 2); /* room for the text under the icons */
    --side-scale: 0.36;
  }
  .socials-word {
    top: calc(var(--fade) + 8%);
  }
  .social-icon {
    top: 31%;
  }
  .socials-panel {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 4.5rem 1.25rem 0;
  /* white melts into the lime so the join with the section above is soft */
  background:
    linear-gradient(180deg, #fff 0, rgba(255, 255, 255, 0) 9rem),
    linear-gradient(180deg, #f1ff8a 0%, #d8ff10 38%, var(--color--lime) 100%);
  color: var(--color--black);
}

/* Dark panel with a tab sticking out of the top, as in the reference */
.footer-layout-clip {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  background-color: var(--color--dark-green);
  color: var(--color--white);
  border-radius: 28px 28px 0 0;
  padding: 3.5rem 3rem 0;
}

.footer-tab {
  position: absolute;
  left: 50%;
  top: -2.6rem;
  width: min(34%, 460px);
  height: 3.2rem;
  transform: translateX(-50%);
  background-color: var(--color--dark-green);
  border-radius: 2.4rem 2.4rem 0 0;
}

/* corners that curve into the tab */
.footer-tab::before,
.footer-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 2.4rem;
  height: 2.4rem;
  background:
    radial-gradient(circle at var(--cx) 0, transparent 2.4rem, var(--color--dark-green) calc(2.4rem + 0.5px));
}

.footer-tab::before { left: -2.4rem; --cx: 0; }
.footer-tab::after { right: -2.4rem; --cx: 100%; }

.footer-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(210, 255, 0, 0.09);
  pointer-events: none;
  border-radius: inherit;
}

.footer-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Statement on top, centred */
.footer-statement-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-sig-svg {
  width: 90px;
  height: auto;
  margin-bottom: -1.2rem;
  align-self: center;
  transform: translateX(120px);
}

.footer-quote {
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Links either side of the portrait */
.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 34vw) 1fr;
  align-items: start;
  text-align: center;
}

.footer-art-space {
  min-height: 1px;
}

.footer-group-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color--green-off-white-2);
  margin-bottom: 1.1rem;
  display: block;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-links-extra {
  margin-top: 1.4rem;
}

.footer-links-list a {
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-contact a {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  text-transform: none;
  letter-spacing: -0.01em;
}

.footer-links-list a:hover {
  color: var(--color--lime);
}

.footer-links-list .lime-link {
  color: var(--color--lime);
}

/* Portrait: bottom centre of the panel, behind the text and the button */
.footer-art {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: auto;
  height: 82%;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

/* Button and project marquee along the bottom edge */
.footer-bottom {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 1.4rem 0 1.6rem;
}

.footer-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  white-space: nowrap;
  animation: footerMarquee 30s linear infinite;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color--lime);
}

@keyframes footerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* Legal bar on the lime frame */
.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1rem 1.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color--black);
}

.made-by a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.made-by a:hover {
  opacity: 0.6;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-links a:hover {
  opacity: 0.6;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .menu-content {
    grid-template-columns: 1fr;
  }
  .menu-media-col {
    display: none;
  }
  .menu-links-col {
    padding: 6rem 2rem 3rem;
  }
  .on-off-split-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .on-off-col-img {
    display: none;
  }
  .on-off-center-content {
    grid-template-columns: 1fr; /* the Spanish titles are too long to sit side by side */
  }
  .store-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .timeline-header {
    padding: 0 1.25rem;
  }
  .timeline-track {
    gap: 3.5rem;
    padding: 0 14vw 0 8vw;
  }
  .card-tall { width: 175px; height: 255px; }
  .card-med { width: 225px; height: 225px; }
  .card-square { width: 200px; height: 200px; }
  .card-large { width: 310px; height: 310px; }
  .timeline-quote-card { max-width: 220px; }
  .quote-text { font-size: 1.2rem; }
  .site-footer {
    padding: 3.5rem 0.75rem 0;
    overflow-x: clip;
  }
  .footer-layout-clip {
    padding: 2.5rem 1.25rem 0;
    min-height: 0;
  }
  .footer-tab {
    width: 52%;
  }
  .footer-sig-svg {
    transform: translateX(70px);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .footer-art-space {
    display: none;
  }
  .footer-art {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 150%;
    max-width: none;
    height: auto;
    margin: 0 -25%;
  }
  .footer-bottom {
    padding-top: 0;
    margin-top: -1rem; /* button on the chest, clear of the mask */
  }
  .footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header {
    padding: 1rem;
  }
  .brand-svg {
    width: 90px;
  }
  .helmets-grid {
    grid-template-columns: 1fr;
  }
  .helmets-header-row,
  .partners-header-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SMALL SCREENS: EVERYTHING CENTRED
   ========================================================================== */
@media (max-width: 1024px) {
  /* SuchaStore goes to one column here: centre its text and its collage */
  .store-container {
    justify-items: center;
  }
  .store-text-col {
    align-items: center;
    text-align: center;
  }
  .store-media-col {
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  /* clear of the fixed header */
  .message-header-row {
    top: 5.5rem;
  }

  .impact-inner {
    align-items: center;
    text-align: center;
  }

  /* Projects */
  .helmets-header-row,
  .partners-header-row {
    justify-items: center;
    text-align: center;
  }
  .helmets-title-wrap,
  .partners-title-col {
    align-items: center;
  }
  .helmets-title,
  .helmets-subtitle {
    font-size: clamp(2rem, 11.5vw, 3.4rem); /* EN CONSTRUCCIÓN must fit the screen */
  }
  .helmets-grid {
    max-width: 420px; /* one card per row, not a screen-wide square */
  }

  /* Colaboremos */
  .partners-header-row {
    padding: 0 1.25rem;
  }
  .partners-cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .partners-actions {
    justify-content: center;
  }

  /* Socials: text and buttons right under the icons */
  .socials-panels {
    top: var(--fade);
    padding: 0;
  }
  .socials-panel {
    align-items: center;
    text-align: center;
    bottom: auto;
    /* icon centre + how far the side icons hang below it + a little air */
    top: calc(31% + 14vh + min(32vh, 58vw) * 0.18 + 2rem);
  }
  .socials-actions {
    justify-content: center;
  }

  /* Bolivia Culture */
  .section-culture {
    padding: 6rem 1.25rem;
  }
  .culture-inner {
    align-items: center;
    text-align: center;
  }

  .footer-legal-bar {
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   "EL CAMINO / EL PROPÓSITO" ON SMALL SCREENS
   Two rows: the profile peeks in from the left beside "El camino",
   the helmet peeks in from the right beside "El propósito".
   ========================================================================== */
@media (max-width: 1024px) {
  .on-off-split-container {
    grid-template-columns: 34% 1fr 34%;
    grid-template-rows: 1fr 1fr;
    align-items: end;
    padding-top: 4.5rem; /* clear of the fixed header */
    text-align: center;
  }
  .on-off-center-content {
    display: contents; /* its two blocks join the grid directly */
  }
  .on-off-col-img {
    display: block;
    align-self: end;
  }
  .on-off-col-img.col-left {
    grid-column: 1;
    grid-row: 1;
  }
  .portal-on {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: center;
    padding-right: 1rem;
  }
  .portal-off {
    grid-column: 1 / 3;
    grid-row: 2;
    align-self: center;
    padding-left: 1rem;
  }
  .on-off-col-img.col-right {
    grid-column: 3;
    grid-row: 2;
  }
  .on-off-col-img.col-left img {
    width: 165%;
    margin-left: -78%; /* only the face shows, the rest is off-screen */
  }
  .on-off-col-img.col-right img {
    width: 165%;
    margin-left: 6%;
  }
  .on-off-col-img img {
    max-height: 44vh;
    object-fit: cover;
  }
  .portal-desc {
    max-width: 230px;
  }
}

@media (max-width: 600px) {
  /* phones: bigger portraits, still clear of the text */
  .on-off-split-container {
    grid-template-columns: 40% 1fr 40%;
  }
  .on-off-col-img.col-left img {
    width: 205%;
    margin-left: -98%;
  }
  .on-off-col-img.col-right img {
    width: 205%;
    margin-left: -22%;
  }
  .on-off-col-img img {
    max-height: 48vh;
  }
}
