/* ═══════════════════════════════════════════════════════ */
/* HOME — Section-specific styles                         */
/* ═══════════════════════════════════════════════════════ */

/* ─── Hero Section ─── */

.hero {
  padding: 120px var(--page-padding) 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-headline-wrap {
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  z-index: 2;
}

.hero-headline-wrap .headline {
  text-align: center;
}

.hero-tagline {
  margin-top: var(--space-lg);
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Social Media Buttons ─── */

.hero-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: var(--space-xl);
}

.hero-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--platform-color, #333);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 0 16px color-mix(in srgb, var(--platform-color, #333) 15%, transparent);
  transition: all 0.35s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
  animation: social-pop-in 0.6s var(--ease-out-expo) both;
}

/* Staggered entrance */
.hero-social-btn:nth-child(1) { animation-delay: 0.1s; }
.hero-social-btn:nth-child(2) { animation-delay: 0.18s; }
.hero-social-btn:nth-child(3) { animation-delay: 0.26s; }
.hero-social-btn:nth-child(4) { animation-delay: 0.34s; }
.hero-social-btn:nth-child(5) { animation-delay: 0.42s; }

@keyframes social-pop-in {
  0% { opacity: 0; transform: translateY(16px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtle glow ring */
.hero-social-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    color-mix(in srgb, var(--platform-color, #333) 30%, transparent) 25%,
    transparent 50%,
    color-mix(in srgb, var(--platform-color, #333) 20%, transparent) 75%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: glow-spin 4s linear infinite;
}

.hero-social-btn:hover::before {
  opacity: 1;
}

@keyframes glow-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-social-btn svg {
  width: 19px;
  height: 19px;
  transition: all 0.35s var(--ease-out-expo);
}

.hero-social-btn:hover {
  background: var(--platform-color, #333);
  color: #ffffff;
  transform: translateY(-5px) scale(1.1);
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--platform-color, #333) 45%, transparent),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-social-btn:active {
  transform: translateY(-2px) scale(1.05);
  transition-duration: 0.1s;
}

.hero-social-btn:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

/* ─── Scroll Down Button ─── */

.hero-scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  color: var(--color-text);
  margin: var(--space-xl) auto 0;
  transition: all 0.3s var(--ease-out-expo);
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-btn:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(2px);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ─── Live Bar ─── */


.hero-live-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--space-xl) var(--page-padding);
  margin: 0 calc(-1 * var(--page-padding));
  position: relative;
  z-index: 2;
}

.hero-live-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00cc44;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-live-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-live-line {
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 0 16px;
}

.hero-live-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hero-live-right:hover {
  opacity: 0.7;
}

.hero-live-logo {
  width: 26px;
  height: auto;
}

/* ─── Hero Grid ─── */

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 0 var(--space-3xl);
  position: relative;
  z-index: 1;
  contain: layout style;
}

.hero-grid-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translate3d(0, calc(var(--col-offset, 0) * 60px), 0);
  backface-visibility: hidden;
}

/* ─── Countdown / Manifesto Section ─── */

.countdown {
  padding: var(--space-4xl) 0;
  position: relative;
  min-height: 100vh;
}

.countdown-stage {
  position: relative;
}

.countdown-stage-sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-3xl) var(--page-padding);
}

/* ─── Clock ─── */

.dom-clock-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dom-clock {
  position: relative;
  width: 100%;
  height: 100%;
}

.dom-clock-ring {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.dom-clock-digits {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dom-clock-number {
  font-size: clamp(180px, 30vw, 500px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--color-text);
  user-select: none;
}

/* Clock hand */
.dom-clock-hand-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dom-clock-hand {
  position: absolute;
  width: 6px;
  height: 50%;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  animation: clock-sweep 26s linear infinite;
}

.dom-clock-hand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
  background: var(--color-accent-red);
  border-radius: 3px;
}

.dom-clock-hand::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--color-accent-red);
  border-radius: 50%;
}

@keyframes clock-sweep {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

/* ─── Manifesto ─── */

.manifesto {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-top: var(--space-2xl);
}

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

.manifesto-headline {
  max-width: 500px;
}

.manifesto-body {
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.manifesto-btn {
  display: inline-flex;
}

.manifesto-btn .btn-pill__text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manifesto-btn__mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

/* ─── Carousel Section ─── */

.carousel-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
  overflow: hidden;
}

.carousel-headline-stack {
  text-align: center;
  padding: 0 var(--page-padding) var(--space-3xl);
}

.carousel-line-2 {
  display: block;
}

.carousel-tagline {
  margin-top: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-container {
  display: flex;
  gap: 20px;
  padding: 24px var(--page-padding) 40px;
  margin-top: -16px;
  margin-bottom: -20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-card {
  scroll-snap-align: start;
}

/* ─── Remote Section ─── */

.remote-section {
  padding: var(--space-4xl) var(--page-padding);
  overflow: hidden;
}

.remote-content {
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.remote-headline-group {
  margin-bottom: var(--space-xl);
}

.remote-headline {
  display: block;
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.remote-headline--red {
  color: var(--color-accent-red);
}

.remote-headline--indent {
  padding-left: 15%;
}

.remote-cities {
  padding-top: var(--space-xl);
}

.remote-city-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.remote-city-row--indent-1 {
  padding-left: 10%;
}

.remote-city-row--indent-2 {
  padding-left: 25%;
}

.remote-city-prefix {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.remote-city-name {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
}

.remote-city-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1.4;
  flex-shrink: 0;
  align-self: center;
}

.remote-studio-embed {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 8px;
}

.remote-studio-card {
  width: 160px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s var(--ease-out-expo);
}

.remote-studio-card:hover {
  transform: scale(1.05);
}

.remote-studio-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.remote-studio-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.remote-studio-label svg {
  width: 14px;
  height: auto;
}

/* ═══════════════════════════════════════════════════════ */
/* GALLERY SHOWCASE SECTION                               */
/* ═══════════════════════════════════════════════════════ */

.gallery-section {
  padding: var(--space-2xl) var(--page-padding) var(--space-4xl);
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111a1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: subtleShimmer 2s infinite linear;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gallery-card.is-loaded::before {
  opacity: 0;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(191, 255, 4, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(191, 255, 4, 0.15);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.03);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out, transform 0.6s var(--ease-out-expo);
}

.gallery-card-img.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.gallery-card:hover .gallery-card-img.is-loaded {
  transform: scale(1.06);
}

/* ─── Type Badge (Photo vs Video) ─── */
.gallery-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(9, 17, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}

.gallery-card--video .gallery-card-badge {
  color: #bfff04;
  border-color: rgba(191, 255, 4, 0.3);
}

/* ─── Play Button Overlay for Videos ─── */
.gallery-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  transition: background 0.4s ease;
  z-index: 2;
}

.gallery-card:hover .gallery-play-overlay {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.gallery-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(9, 17, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(191, 255, 4, 0.5);
  color: #bfff04;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(191, 255, 4, 0.2);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, background 0.3s ease;
}

.gallery-play-btn svg {
  margin-left: 3px;
  fill: #bfff04;
}

.gallery-card:hover .gallery-play-btn {
  transform: scale(1.15);
  background: #bfff04;
  color: #091114;
  box-shadow: 0 0 30px rgba(191, 255, 4, 0.7);
}

.gallery-card:hover .gallery-play-btn svg {
  fill: #091114;
}

/* ═══════════════════════════════════════════════════════ */
/* LIGHTBOX MODAL DIALOG                                  */
/* ═══════════════════════════════════════════════════════ */

.media-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo);
}

.media-dialog[open] {
  opacity: 1;
  pointer-events: auto;
}

.media-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.media-dialog-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-dialog-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.media-dialog-close:hover {
  background: #bfff04;
  color: #091114;
  border-color: #bfff04;
  transform: rotate(90deg) scale(1.1);
}

.media-dialog-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #000000;
}

.media-dialog-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.media-dialog-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.media-dialog-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-dialog-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(255, 0, 0, 0.15);
  color: #ff4e4e;
  border: 1px solid rgba(255, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.media-dialog-yt-link:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
  transform: translateY(-2px);
}

