/* ============================================================
   CINEMATIC HERO — Night cities + liquid-glass panel (v2)
   ============================================================ */

.hero-cine {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #05060a;
  isolation: isolate;
}

/* ---------- Background city carousel ---------- */
.hero-cine__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-cine__city {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
  overflow: hidden;
}
.hero-cine__city.is-active { opacity: 1; }

.hero-cine__city img,
.hero-cine__city .city-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  animation: slowPan 22s ease-out both;
}
.hero-cine__city.is-active img,
.hero-cine__city.is-active .city-svg {
  animation: slowPan 22s ease-out both;
}
@keyframes slowPan {
  0%   { transform: scale(1.06) translate3d(0,0,0); }
  100% { transform: scale(1.14) translate3d(-1.2%, -0.8%, 0); }
}

/* Vignette + atmospheric darkening */
.hero-cine__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 0%, rgba(5,6,10,0.35) 55%, rgba(5,6,10,0.78) 100%),
    linear-gradient(180deg, rgba(5,6,10,0.4) 0%, transparent 25%, transparent 70%, rgba(5,6,10,0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Subtle grain over the background */
.hero-cine__stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 10% 12%, rgba(255,255,255,0.9), transparent 50%),
    radial-gradient(1px 1px at 23% 18%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1.3px 1.3px at 37% 8%, rgba(255,255,255,0.95), transparent 50%),
    radial-gradient(1px 1px at 51% 14%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.5px 1.5px at 62% 6%, rgba(255,255,255,0.95), transparent 50%),
    radial-gradient(1px 1px at 74% 22%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 86% 10%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 95% 19%, rgba(255,255,255,0.5), transparent 50%);
  animation: starTwinkle 6s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.25; }
}

/* ---------- Inner layout ---------- */
.hero-cine__inner {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 6rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Top row ---------- */
.hero-cine__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-cine__chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.hero-cine__chapter::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 12px #60a5fa;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.hero-cine__top-meta {
  text-align: right;
  line-height: 1.7;
  font-size: 0.68rem;
}
.hero-cine__top-meta strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  font-size: 0.92rem;
}

/* ---------- Center glass composition ---------- */
.hero-cine__center {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 400px;
}

/* Solo centered glass panel — hugs the text */
.glass-panel--solo {
  padding: 1.75rem 2.25rem 1.9rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  width: auto;
  max-width: 90vw;
}

/* ---------- Glass panel (PROPER liquid glass) ---------- */
.glass-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  /* THE LIQUID GLASS: heavy blur + saturate on what's BEHIND */
  backdrop-filter: blur(26px) saturate(1.8) brightness(0.95);
  -webkit-backdrop-filter: blur(26px) saturate(1.8) brightness(0.95);
  background: linear-gradient(
    140deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.09) 100%
  );
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset;
}
/* Top edge sheen */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  z-index: 4;
}
/* Chromatic fringe / inner tint — kept subtle */
.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(255,255,255,0.1), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(59,130,246,0.1), transparent 50%);
  z-index: 3;
}

/* Main panel: CENTERED wordmark + tagline */
.glass-panel--main {
  grid-row: 1 / span 2;
  grid-column: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  gap: 1.5rem;
}

.glass-panel__role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  z-index: 5;
}
.glass-panel__role::before,
.glass-panel__role::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

/* WORDMARK — big, centered */
.wordmark {
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255,255,255,0.92) 45%,
    rgba(200,215,240,0.78) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 40px rgba(255,255,255,0.12);
}
.wordmark__dot {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  border-radius: 50%;
  background: #60a5fa;
  margin-left: 0.05em;
  vertical-align: 0.1em;
  box-shadow: 0 0 24px #60a5fa, 0 0 60px #60a5fa;
  animation: livePulse 2s ease-in-out infinite;
  -webkit-text-fill-color: #60a5fa;
}

.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  position: relative;
  z-index: 5;
}
.wordmark-sub__line {
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.tagline {
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
  max-width: none;
  white-space: nowrap;
  margin: 0;
}
.tagline em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, #93c5fd 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline-meta {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
}
.tagline-meta__dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  align-self: center;
}

/* ---------- Right side panels ---------- */
.glass-panel--city {
  grid-column: 2;
  grid-row: 1;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}
.glass-panel__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 5;
}
.glass-panel__city-name {
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-top: 0.2rem;
}
.glass-panel__city-coord {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.15rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 5;
}
.glass-panel__city-dots {
  margin-top: auto;
  display: flex;
  gap: 0.4rem;
  position: relative;
  z-index: 5;
}
.glass-panel__city-dots span {
  width: 22px; height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
  transition: background 0.35s;
}
.glass-panel__city-dots span.is-active {
  background: linear-gradient(90deg, #60a5fa, #c4b5fd);
  box-shadow: 0 0 8px rgba(96,165,250,0.6);
}

.glass-panel--stat {
  grid-column: 2;
  grid-row: 2;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}
.glass-panel__stat-big {
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
}
.glass-panel__stat-sub {
  position: relative;
  z-index: 5;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}
.glass-panel__stat-bar {
  margin-top: auto;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.glass-panel__stat-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 68%;
  border-radius: 3px;
  background: linear-gradient(90deg, #60a5fa, #c4b5fd);
  box-shadow: 0 0 8px rgba(96,165,250,0.4);
}

/* ---------- Bottom row ---------- */
.hero-cine__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-cine__cities {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-cine__city-tab {
  position: relative;
  padding: 0.35rem 0;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.hero-cine__city-tab:hover { color: rgba(255,255,255,0.9); }
.hero-cine__city-tab.is-active { color: #fff; }
.hero-cine__city-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #60a5fa, #c4b5fd);
  box-shadow: 0 0 8px rgba(96,165,250,0.6);
}

.hero-cine__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
}
.hero-cine__scroll svg { animation: scrollArrow 2s ease-in-out infinite; }
@keyframes scrollArrow {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* Paris SVG specific — make sure window twinkles still work */
.city-svg .tw  { animation: windowTwinkle 4.5s ease-in-out infinite; }
.city-svg .tw2 { animation: windowTwinkle 3.2s ease-in-out infinite; animation-delay: -1.1s; }
.city-svg .tw3 { animation: windowTwinkle 5.8s ease-in-out infinite; animation-delay: -2.5s; }
.city-svg .blink { animation: blinkSlow 3s ease-in-out infinite; }
@keyframes windowTwinkle {
  0%, 100% { opacity: var(--w-opacity, 0.9); }
  50%      { opacity: 0.25; }
}
@keyframes blinkSlow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.15; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-cine__center {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 520px;
  }
  .glass-panel--main {
    grid-row: 1;
    grid-column: 1;
    min-height: 360px;
    padding: 2rem 1.5rem;
  }
  .glass-panel--city { grid-column: 1; grid-row: 2; }
  .glass-panel--stat { grid-column: 1; grid-row: 3; }
  .hero-cine__inner { padding: 5.5rem 1.25rem 1.5rem; }
  .hero-cine__top { font-size: 0.62rem; flex-wrap: wrap; }
  .hero-cine__top-meta { font-size: 0.58rem; }
  .hero-cine__cities { gap: 0.75rem; font-size: 0.58rem; }
  .tagline-meta { font-size: 0.55rem; gap: 0.5rem; }
}
@media (max-width: 560px) {
  .hero-cine__scroll { display: none; }
}

/* ============================================================
   Accessibility — Reduced motion for cinematic hero
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-cine__stage,
  .hero-cine__stars,
  .hero-cine__stage > * {
    animation: none !important;
    transition: none !important;
  }
  .hero-cine__stars { display: none !important; }
  .glass-panel { animation: none !important; }
  .wordmark, .wordmark__dot { animation: none !important; }
}
