/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-grey-100: #f5f5f5;
  --color-grey-200: #e0e0e0;
  --color-grey-400: #888888;
  --color-grey-600: #555555;
  --color-grey-800: #222222;
  --color-grey-900: #111111;

  /* Project card colors */
  --card-coral: #e8634a;
  --card-red: #e83a3a;
  --card-blue: #1a4de8;
  --card-navy: #0a0e2a;
  --card-cream: #f0ece4;
  --card-brown: #3a2a1a;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-hero: clamp(72px, 13vw, 200px);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --space-3xl: 140px;

  /* Layout */
  --page-padding: 20px;
  --max-width: 100%;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--color-white);
  background: var(--color-black);
  cursor: none !important;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none !important;
}

ul, ol {
  list-style: none;
}

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

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

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

/* Hide the mobile location tag on desktop */
.hero__mobile-location {
  display: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: #E6FF00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              opacity 0.3s var(--ease-out);
  box-shadow: 0 0 10px rgba(230,255,0,0.5);
}

.cursor--hover {
  width: 20px;
  height: 20px;
  background: #E6FF00;
  animation: none;
}
/* Hide custom cursor on touch devices (mobile/tablet) */
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}

/* ============================================
   FLOATING NAV PILL
   ============================================ */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 99;
  padding: 12px 32px;
  display: flex;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
  
  /* Adaptive Apple Glass Background */
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 100px;
  
  /* Volumetric light reflections and shadow */
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.7),
    inset 0 -2px 5px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
}

.floating-nav--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.floating-nav a {
  color: var(--color-white) !important;
  font-size: var(--font-size-base);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity var(--duration-fast) ease;
}

.floating-nav a:hover {
  opacity: 0.5;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: var(--page-padding) var(--page-padding) 0;
  color: var(--color-black);
  pointer-events: none;
}

.header > * {
  pointer-events: auto;
}

.header__logo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.header__dot {
  width: 8px;
  height: 8px;
  background: var(--color-black);
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.header__bio {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-black);
  max-width: 320px;
}

.header__bio strong {
  font-weight: 600;
}

.header__bio span {
  color: var(--color-grey-400);
}

.header__nav {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  z-index: 10;
  
  /* Adaptive Apple Glass Background */
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 100px;
  
  /* Volumetric light reflections and shadow */
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.7),
    inset 0 -2px 5px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  transition: all 0.3s ease;
}

.header__nav a {
  font-size: var(--font-size-base);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-black) !important;
  transition: opacity var(--duration-fast) ease;
}

.header__nav a:hover {
  opacity: 0.4;
}

.header__location {
  text-align: right;
  font-size: var(--font-size-sm);
  color: var(--color-grey-600);
}

.header__time {
  display: block;
  font-variant-numeric: tabular-nums;
}

/* ── Location Tag (Asunción, Paraguay) ── */
.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 100px;
  background: rgba(0,0,0,0.05);
  cursor: none !important;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.location-tag:hover {
  border-color: rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.08);
  box-shadow: 0 0 20px rgba(0,0,0,0.04);
}

.location-tag__pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-tag__pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  z-index: 1;
}

.location-tag__pulse-ring {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: locationPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes locationPing {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.location-tag__text {
  position: relative;
  height: 18px;
  overflow: hidden;
}

.location-tag__city,
.location-tag__time {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-black);
  transition: transform 0.5s ease, opacity 0.5s ease;
  white-space: nowrap;
  display: block;
  line-height: 18px;
}

.location-tag__time {
  font-variant-numeric: tabular-nums;
}

.location-tag:hover .location-tag__city {
  transform: translateY(-100%);
  opacity: 0;
}

.location-tag:hover .location-tag__time {
  transform: translateY(-100%);
  opacity: 1;
}

.location-tag__city {
  transform: translateY(0);
  opacity: 1;
}

.location-tag__time {
  transform: translateY(0);
  opacity: 0;
}

.location-tag__arrow {
  width: 12px;
  height: 12px;
  color: var(--color-black);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
}

.location-tag:hover .location-tag__arrow {
  transform: translateX(2px) rotate(-45deg);
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-white);
}

.hero__bg-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 24vw;
  font-weight: 700;
  color: var(--color-white);
  mix-blend-mode: difference;
  letter-spacing: -0.07em;
  margin-left: -0.07em;
  transform: translateX(2px);
  line-height: 0.85;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 1050px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  z-index: 2; /* Below the SCALERA bg-text which is 10 */
}

/* ============================================
   SCROLL TRANSITION (Hero → Dark)
   ============================================ */
.hero-transition {
  position: relative;
  background: var(--color-grey-100);
  overflow: hidden;
}

.hero-transition__image-wrapper {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) var(--page-padding);
}

.hero-transition__image {
  width: clamp(300px, 40vw, 550px);
  height: auto;
  border-radius: 4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--color-black);
  padding: var(--space-3xl) var(--page-padding);
  position: relative;
}

.about__years {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-grey-400);
  margin-bottom: var(--space-xl);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__statement {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-white);
  max-width: 600px;
}

.about__description {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-grey-400);
  max-width: 450px;
  justify-self: end;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-lg);
  padding: 12px 24px;
  border: 1px solid var(--color-grey-800);
  border-radius: 100px;
  font-size: var(--font-size-base);
  color: var(--color-white);
  transition: all var(--duration-normal) var(--ease-out);
}

.about__cta:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.about__cta-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

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

/* ============================================
   INFO SECTIONS (Capabilities, Clients, etc.)
   ============================================ */
.info {
  background: var(--color-black);
  padding: 0 var(--page-padding);
}

.info__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-grey-800);
}

.info__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.info__values {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: var(--color-grey-400);
}

.info__values a {
  color: var(--color-grey-400);
  transition: color var(--duration-fast) ease;
}

.info__values a:hover {
  color: var(--color-white);
}

/* ============================================
   THE UNIVERSE (Grid of pillars)
   ============================================ */
.universe {
  background: var(--color-black);
  padding: var(--space-xl) var(--page-padding);
}

.universe__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.universe__title {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.universe__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-grey-400);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

.universe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.universe-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-out), border-color var(--duration-fast) ease;
}

.universe-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.universe-card__number {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-grey-400);
  margin-bottom: 24px;
}

.universe-card__title {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.universe-card__desc {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-grey-400);
  margin-bottom: 32px;
  flex-grow: 1;
}

.universe-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.universe-card__list li {
  position: relative;
  font-size: 13px;
  color: var(--color-grey-300);
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.universe-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #14B856; /* Subtle green checkmark like the reference */
  font-weight: bold;
}

@media (max-width: 1024px) {
  .universe__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .universe__grid {
    grid-template-columns: 1fr;
  }
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Cursor spotlight effect on interactive elements */
.cursor-spotlight {
  position: relative;
  overflow: hidden;
}

.cursor-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 60px at var(--mx, 50%) var(--my, 50%),
    rgba(230, 255, 0, 0.18) 0%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
  transition: background 0.1s;
}

/* Card with solid color background and centered text */
.project-card--text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card--text .project-card__title-overlay {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

/* Card backgrounds */
.project-card--coral { background: var(--card-coral); }
.project-card--red { background: var(--card-red); }
.project-card--blue { background: var(--card-blue); }
.project-card--navy { background: var(--card-navy); }
.project-card--cream { 
  background: var(--card-cream); 
}
.project-card--cream .project-card__title-overlay {
  color: var(--color-black);
}
.project-card--brown { background: var(--card-brown); }

/* Project meta below card */
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 24px;
}

.project-meta__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-white);
}

.project-meta__type {
  font-size: 11px;
  color: var(--color-grey-400);
}

/* ============================================
   BIO FULL SECTION
   ============================================ */
.bio-full {
  background: var(--color-black);
  padding: var(--space-3xl) var(--page-padding);
}

.bio-full__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.bio-full__main {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--color-white);
}

.bio-full__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bio-full__text {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-grey-400);
}

.bio-full__link {
  font-size: var(--font-size-base);
  color: var(--color-grey-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) ease;
}

.bio-full__link:hover {
  color: var(--color-white);
}

/* ============================================
   RECOGNITION & PROJECTS SECTIONS
   ============================================ */
.recognition {
  background: var(--color-black);
  padding: 0 var(--page-padding) var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-black);
  padding: var(--space-xl) var(--page-padding) var(--space-md);
  border-top: 1px solid var(--color-grey-800);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
}

.footer__message {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-grey-400);
  max-width: 400px;
}

.footer__message a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--color-grey-800);
  border-radius: 100px;
  font-size: var(--font-size-base);
  color: var(--color-white);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none !important;
}

.footer__cta:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.footer__cta-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

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

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.footer__links-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--color-grey-400);
  transition: color var(--duration-fast) ease;
}

.footer__links a:hover {
  color: var(--color-white);
}

.final-footer {
  padding: var(--space-md) var(--page-padding);
  font-size: var(--font-size-xs);
  color: var(--color-grey-600);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-black); /* Matching the dark theme */
}

/* ============================================
   GOAT PARTICLE FOOTER (Processing custom logic)
   ============================================ */
.goat-footer {
  --bg: var(--color-black);
  --ink: var(--color-white);
  --muted: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.12);
  --card: #ffffff;
  --dot: #E6FF00;
  background: var(--bg);
  border-radius: 7px;
  margin: 10px;
  padding: 0;
  position: relative;
  min-height: 320px;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-family);
  text-align: center;
}

.goat-footer__clock {
  font-size: 16px;
  font-family: monospace;
}

.goat-footer__canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 280px;
}

.goat-footer__canvas-wrap canvas {
  display: block;
}

/* ============================================
   PARALLAX
   ============================================ */
.parallax-element {
  will-change: transform;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  :root {
    --page-padding: 16px;
  }

  .header {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .header__location {
    display: none;
  }

  .hero__video {
    width: 85%;
    aspect-ratio: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 0;
  }

  .about__content {
    grid-template-columns: 1fr;
  }

  .about__description {
    justify-self: start;
  }

  .info__row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .bio-full__content {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__links {
    text-align: left;
  }
}

@media (max-width: 600px) {

  /* ─────────────────────────────────────────
     HEADER → position: static on mobile
     This is the KEY fix. The fixed header was
     overlapping everything. Now it flows normally.
  ───────────────────────────────────────── */
  .header {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 60px; /* Ajuste extremo para que se note el cambio */
    padding: 24px 20px 16px;
    background: var(--color-white);
    z-index: auto;
  }

  /* Nav pill: centered at top */
  .header__nav {
    order: 1;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 12px 28px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    margin: 0 auto;
    width: auto;
  }

  .header__nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black) !important;
  }

  /* Bio text below the pill */
  .header__logo {
    order: 2;
    align-self: flex-start;
  }

  /* Hide the right-side location (we show it in hero) */
  .header__location {
    display: none !important;
  }

  /* Hide the floating scroll-triggered nav on mobile */
  .floating-nav {
    display: none !important;
  }

  /* ─────────────────────────────────────────
     HERO → clean white card, auto height
  ───────────────────────────────────────── */
  .hero {
    min-height: auto !important;
    padding: 60px 0 60px;
    display: flex !important;
    flex-direction: column;
    align-items: center;  /* Centra todos los elementos */
    gap: 20px;
    background: var(--color-white);
  }

  /* Hat video: centered, bigger, atrás de SCALERA */
  .hero__video {
    position: relative;
    order: 1;
    width: 82%;
    max-height: 280px;
    aspect-ratio: auto;
    object-fit: contain;
    z-index: 1;
    margin: 10px auto 0;
    transform: translateX(-65%); /* Desplazamiento extremo sugerido por el usuario para iPhone 16 */
  }

  /* SCALERA: SEGUNDO visualmente, adelante con mix-blend-mode */
  .hero__bg-text {
    position: relative !important;
    order: 2;
    width: 100%;
    text-align: center;
    font-size: clamp(64px, 22vw, 130px);
    z-index: 2;
    margin-top: -20px;
    margin-left: 0; /* Resetea el margen de desktop */
    transform: none; /* Resetea el shift de desktop */
    mix-blend-mode: difference;
  }

  /* Location tag: Último, debajo de SCALERA */
  .hero__mobile-location {
    display: flex;
    justify-content: center;
    order: 3;             /* después del SCALERA */
    width: 100%;
    margin-top: 20px;
    z-index: 5;
  }

  .hero__mobile-location .location-tag {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  /* ─────────────────────────────────────────
     FOOTER
  ───────────────────────────────────────── */
  .footer {
    padding: var(--space-lg) var(--page-padding) var(--space-md);
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__message {
    max-width: 100%;
  }

  .footer__links {
    text-align: left;
  }

  .footer__cta {
    display: flex !important;
    width: 100%;
    justify-content: center;
  }

  /* Hide goat canvas on mobile */
  .goat-footer {
    display: none;
  }

} /* end @media 600px */


/* ============================================
   PAGE LOADING ANIMATION
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out),
              visibility 0.6s;
}

.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__text {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--font-size-hero);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.04em;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
