@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600&display=swap');

/* --- TITLE HERO SECTION --- */
body {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  background: #161616;
  color: #fff;
}

.title-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 2rem;
}

.main-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
  font-family: 'Unbounded', sans-serif;
  opacity: 0;
  animation: titleFadeIn 1.5s ease-out 0.5s forwards;
}

.subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  margin: 0 0 1rem 0;
  color: #ccc;
  opacity: 0;
  animation: titleFadeIn 1.5s ease-out 1s forwards;
}

.title-editorial {
  margin: 0 auto 1rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.92rem, 1.55vw, 1.08rem);
  line-height: 1.75;
  opacity: 0;
  animation: titleFadeIn 1.5s ease-out 1.2s forwards;
}

.title-locations {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 2.25rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  animation: titleFadeIn 1.5s ease-out 1.35s forwards;
}

.title-locations-separator {
  color: rgba(255, 95, 95, 0.85);
  letter-spacing: normal;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: titleFadeIn 1.5s ease-out 1.5s forwards;
}

.scroll-indicator span {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Unbounded', sans-serif;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: #fff;
  animation: bounce 2s infinite;
}

@keyframes titleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Landing Container - slides up over title */
.landing-container {
  position: relative;
  z-index: 2;
  background: #161616;
  min-height: 100vh;
  transform: translateY(100vh);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-container.slide-up {
  transform: translateY(0);
}

/* Hide title when landing slides up */
.title-hero.hidden {
  transform: translateY(-100vh);
}

.desktop-intro {
  margin: 0;
  padding: 18px 0 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

/* --- HERO HEADER --- */
.hero-header {
  display: flex;
  flex-direction: row-reverse; /* swap columns: east on right, west on left */
  width: 100vw;
  min-height: 126px;
  position: relative;
  z-index: 2;
  border-bottom: 2px solid #222;
  background: #181818;
}
.hero-header::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  width: 2px;
  height: calc(100% - 24px);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
  z-index: 3;
}
.hero-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  padding: 18px 24px 20px;
  box-sizing: border-box;
  transition: background 0.3s, transform 0.3s;
}
.hero-left {
  background: #000000;
  border-left: 2px solid #181818; /* moved border to left after swap */
}
.hero-right {
  background: #000000;
}

.hero-col:hover {
  transform: translateY(-1px);
}

.hero-label {
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: 0.12em;
}

.hero-copy {
  margin: 0;
  max-width: 34ch;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  line-height: 1.6;
}

.modern-masonry-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 50vw;
  box-sizing: border-box;
  padding: 0 1vw;
  position: relative;
}

.modern-masonry-col:empty::before {
  content: attr(data-empty-message);
  color: #bbb;
  text-align: center;
  width: 100%;
  display: block;
  margin-top: 2rem;
  font-size: 1.1rem;
}
.modern-masonry {
  width: 100%;
  max-width: 400px;
  min-width: 180px;
  margin: 0 auto;
  background: none;
  column-count: 2;
  column-gap: 1.2em;
}
@media (min-width: 1200px) {
  .modern-masonry {
    max-width: 500px;
    column-count: 2;
  }
}
.modern-masonry img {
  width: 100%;
  display: block;
  margin-bottom: 1.2em;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  break-inside: avoid;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modern-masonry img:first-child {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

.modern-masonry-col:first-child .modern-masonry img:first-child,
.modern-masonry-col:last-child .modern-masonry img:first-child {
  aspect-ratio: auto;
  object-fit: contain;
}

.modern-masonry img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
  .desktop-intro {
    display: none;
  }

  .hero-header {
    display: none;
  }

  .mobile-grid {
    display: block;
    padding: 18px 14px 42px;
  }

  .title-editorial {
    max-width: 22rem;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .title-locations {
    gap: 0.55rem;
    margin-bottom: 2rem;
    padding: 0.68rem 1rem;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .mobile-split-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 2px 24px;
  }

  .mobile-coast-card {
    min-height: 136px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 16px 14px;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .mobile-coast-card strong {
    font-size: 1.55rem;
    line-height: 1.05;
    letter-spacing: 0.03em;
  }

  .mobile-coast-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
  }

  .mobile-coast-west {
    background:
      radial-gradient(circle at top left, rgba(255, 173, 92, 0.22), transparent 58%),
      linear-gradient(160deg, #181512 0%, #0f0f10 100%);
  }

  .mobile-coast-east {
    background:
      radial-gradient(circle at top right, rgba(113, 147, 255, 0.2), transparent 52%),
      linear-gradient(160deg, #11151b 0%, #0f0f10 100%);
  }

  .mobile-coast-card:hover,
  .mobile-coast-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
    outline: none;
  }
  
  .mobile-section {
    margin-bottom: 2.2rem;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .mobile-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 6px;
  }
  
  .mobile-section-title {
    font-size: 1.45rem;
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 0 0 0.45rem;
  }

  .mobile-section-copy {
    margin: 0;
    max-width: 19rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
    line-height: 1.55;
  }
  
  .mobile-view-all {
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.7rem 0.9rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
  }
  
  .mobile-view-all:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
  }

  /* Hide desktop grid on mobile */
  .modern-featured-grid {
    display: none;
  }
  
  /* Mobile masonry grid */
  .mobile-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 6px;
  }
  
  .mobile-masonry img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
  
  .mobile-masonry img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
}

/* Hide mobile headings on desktop */
@media (min-width: 901px) {
  .mobile-grid {
    display: none;
  }
}

/* Desktop grid layout */
.modern-featured-grid {
  display: flex;
  flex-direction: row-reverse; /* Match header layout: Javi (west) on left, Joel (east) on right */
  width: 100vw;
  position: relative;
}
.modern-featured-grid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #333;
  z-index: 1;
}

@media (max-width: 900px) {
  .modern-featured-grid {
    display: none;
  }
}
