/* ================================================================
   6AM MAFIA — styles.css
   Inspired by izanami-official.com
   ================================================================ */

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
  --black:      #080808;
  --white:      #f2f0eb;
  --gray:       #787878;
  --gray-light: rgba(242, 240, 235, 0.12);
  --volt:       #c8ff00;

  --font-serif: 'Montserrat', system-ui, sans-serif;
  --font-sans:  'Montserrat', system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --dur:        0.85s;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  overflow-x: hidden;
  cursor: crosshair;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── LOADER ─────────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  box-sizing: border-box;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.5s;
}

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

.loader-inner {
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.loader-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.6rem);  /* EXACT SAME size as hero-title */
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--white);
  text-align: left;
  margin: 0;
  padding: 0;
}

.loader-tagline-text {
  display: inline-block;
  opacity: 0;
  animation: sharpFadeIn 0.45s cubic-bezier(0.19, 1, 0.22, 1) 0.05s forwards;
}

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

.loader-counter {
  margin-top: 8px;
  position: relative;
  top: 0;
  left: 0;
  bottom: auto;
  right: auto;
  text-align: left;
  align-self: flex-start;
}

.loader-number {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: rgba(242, 240, 235, 0.65);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  text-align: left;
  animation: fadeSlideUp 0.6s 0.2s var(--ease-out) both;
}



.loader-number::after {
  content: '%';
}

/* ── BACKGROUND (WITH AMPLIFIED RISING SUN FLARE BLOOM) ───────── */
.bg-frame {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;   /* JS controls the Y% */
  will-change: filter, transform, object-position;
  filter: brightness(0.12) contrast(1.25) saturate(0.7);
  transform: scale(1.08);
  transition: filter 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), object-position 0.05s linear;
}

body.is-loaded .bg-img {
  filter: brightness(1) contrast(1) saturate(1);
  transform: scale(1);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8, 8, 8, 0.55) 0%,
      rgba(8, 8, 8, 0.15) 25%,
      rgba(8, 8, 8, 0.25) 60%,
      rgba(8, 8, 8, 0.80) 100%
    );
  opacity: 0.4;
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .bg-overlay {
  opacity: 1;
}

/* Lens Flare / Amplified Rising Sun Overlay */
.flare-container {
  position: absolute;
  top: -250px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: visible;  /* Prevent any top edge clipping */
  z-index: 1;
  opacity: 0;
  transform: scale(0.25) translate(160px, 80px);
  filter: brightness(0.4);
  will-change: opacity, transform, filter;
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), filter 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .flare-container {
  opacity: 1;
  transform: scale(1) translate(0, 0);
  filter: brightness(1.25);
}

/* Warm central sun flare glow on the FAR RIGHT border (mid-height) */
.flare-core {
  position: absolute;
  top: 35%;
  right: -120px;
  width: 820px;
  height: 820px;
  transform: translate(0, -50%);
  background: radial-gradient(circle, rgba(255, 220, 130, 0.85) 0%, rgba(255, 130, 40, 0.50) 45%, rgba(8, 8, 8, 0) 75%);
  filter: blur(45px);
  mix-blend-mode: screen;
  animation: sunFarRightSweep 12s ease-in-out infinite alternate;
}

@keyframes sunFarRightSweep {
  0% {
    transform: translate(40px, -50%) scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: translate(-180px, -65%) scale(1.22);
    opacity: 1;
  }
  100% {
    transform: translate(-320px, -35%) scale(1.08);
    opacity: 0.85;
  }
}

/* Horizontal anamorphic lens streak centered vertically from the right border */
.flare-beam {
  position: absolute;
  top: 35%;
  right: -20%;
  width: 150%;
  height: 160px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 180, 80, 0.10) 20%, rgba(255, 235, 170, 0.60) 70%, rgba(255, 180, 80, 0.20) 90%, transparent 100%);
  filter: blur(10px);
  mix-blend-mode: screen;
  transform: rotate(-1deg);
  animation: beamRightMidShimmer 7s ease-in-out infinite alternate;
}

@keyframes beamRightMidShimmer {
  0%   { transform: rotate(-3deg) translate(60px, -50%) scaleY(0.85); opacity: 0.75; }
  50%  { transform: rotate(1deg) translate(-100px, -45%) scaleY(1.35); opacity: 1; }
  100% { transform: rotate(-4deg) translate(-200px, -55%) scaleY(1); opacity: 0.8; }
}

/* Secondary lens flare rings / artifacts drifting from right border */
.flare-ring {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.flare-ring-1 {
  top: 32%;
  right: 20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 180, 70, 0.45) 0%, rgba(255, 90, 0, 0.15) 60%, transparent 100%);
  filter: blur(16px);
  animation: ringFloatRight1 8s ease-in-out infinite alternate;
}

.flare-ring-2 {
  top: 42%;
  right: 40%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 225, 150, 0.35) 0%, rgba(255, 160, 60, 0.10) 60%, transparent 100%);
  filter: blur(22px);
  animation: ringFloatRight2 11s ease-in-out infinite alternate;
}

@keyframes ringFloatRight1 {
  0%   { transform: translate(60px, -20px) scale(0.9); }
  100% { transform: translate(-120px, 40px) scale(1.25); }
}

@keyframes ringFloatRight2 {
  0%   { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-160px, -30px) scale(0.95); }
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 32px 48px;
  transition: padding var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}

.header.is-scrolled {
  padding: 20px 48px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
}

.header-logo,
.header-lang,
.menu-btn {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.45s cubic-bezier(0.19, 1, 0.22, 1), transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

body.is-loaded .header-logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

body.is-loaded .header-lang {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

body.is-loaded .menu-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s var(--ease-out);
}

.logo-img--dark {
  display: none;
}

/* Automatic switch to dark logo on light header backgrounds */
.header.is-light .logo-img--light {
  display: none;
}

.header.is-light .logo-img--dark {
  display: block;
}

/* Language switcher */
.header-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.lang-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
  transform-origin: left;
}

.lang-link:hover,
.lang-link.is-active {
  color: var(--white);
}

.lang-link.is-active::after {
  transform: scaleX(1);
}

.lang-sep {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
}

/* Menu button */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}

.menu-btn-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-line {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--white);
  transform-origin: center;
  transition: transform 0.45s var(--ease-in-out),
              opacity   0.3s ease;
}

.menu-btn.is-open .menu-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-btn.is-open .menu-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu-btn-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  min-width: 3ch;
}

/* ── NAVIGATION OVERLAY ─────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 8, 8, 0.96);
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 60px 60px;
}

.nav-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  overflow: hidden;
}

.nav-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.nav-link-text {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  transition: color 0.3s, transform 0.5s var(--ease-out);
  display: inline-block;
  transform: translateY(30px);
  opacity: 0;

  /* Set by JS when nav opens */
}

.nav.is-open .nav-link-text {
  transform: translateY(0);
  opacity: 1;
}

.nav-link:hover .nav-link-text {
  color: var(--gray);
}

.nav-link-line {
  height: 1px;
  background: rgba(255,255,255,0.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover .nav-link-line {
  transform: scaleX(1);
}

.nav-footer {
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-locations {
  display: flex;
  gap: 80px;
}

.nav-loc-city {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.nav-loc-addr span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(242,240,235,0.4);
  display: block;
  line-height: 1.7;
}

/* ── MAIN CONTENT ───────────────────────────────────────────────── */
.main {
  position: relative;
  z-index: 2;
}

/* ── SECTION BASE ───────────────────────────────────────────────── */
.sect {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 60px 80px;
  position: relative;
}

.sect-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── STICKY LAYOUT (philosophy / community) ─────────────────────── */
.sticky-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

.sticky-layout--reverse {
  grid-template-columns: 1fr 200px;
}

.sticky-layout--reverse .sticky-sub {
  order: 2;
}

.sticky-sub {
  padding-top: 8px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

.section-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.section-content--right {
  align-items: flex-end;
  text-align: right;
}

.section-title-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}

.section-title-xl--center {
  align-items: center;
  text-align: center;
}

.section-title-italic {
  font-style: italic;
}

.section-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.85;
  color: var(--gray);
  max-width: 420px;
}

/* ── BUTTON ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.btn-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
}

.btn-line {
  display: block;
  height: 1px;
  background: var(--white);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out), background 0.3s;
}

.btn:hover .btn-line {
  transform: scaleX(0.4);
}

.btn:hover .btn-text {
  color: var(--gray);
}

.btn--lg .btn-text {
  font-size: 1rem;
  letter-spacing: 0.12em;
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.sect-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  box-sizing: border-box;
}

.sect-hero .sect-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.6rem);  /* EXACT SAME size as loader-tagline */
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--white);
  text-align: left;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
}

.hero-title-line {
  display: block;
}

.hero-byline {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(242, 240, 235, 0.65);
  text-transform: none;
  margin-top: 4px;   /* glued closer to main phrase */
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out) 0.1s, transform 0.6s var(--ease-out) 0.1s;
}

body.is-loaded .hero-byline {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 120px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeSlideUp 1s 1.5s var(--ease-out) both;
}

.scroll-hint-line {
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-hint-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2s 2s var(--ease-in-out) infinite;
}

.scroll-hint-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gray);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ── SECTION CITIES (FULL WIDTH 100% + SCROLL TYPEWRITER TEXT) ── */
.sect-cities {
  padding-top: 120px;
  padding-bottom: 140px;
}

.cities-container {
  display: flex;
  flex-direction: column;
  gap: 140px;
  width: 100%;
  position: relative;
}

.city-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.city-grand-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  text-align: left;
}

.city-block:nth-child(2) .city-grand-title {
  text-align: right;
}

.city-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  width: 100%;
  align-items: center;
}

.city-map-wrapper {
  width: 100%;
  height: 380px;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-desc {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.2vw, 2.05rem);  /* Large prominent typewriter text */
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(242, 240, 235, 0.25);
  line-height: 1.35;
  width: 100%;
}

@media (max-width: 900px) {
  .city-content-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .city-block:nth-child(2) .city-grand-title {
    text-align: left;
  }
}

.city-map-wrapper {
  width: 100%;
  height: 330px;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-route-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Gold Marathon SVG Route Line Scroll Animation */
.route-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 0.05s linear;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.85));
}

.route-dot {
  will-change: cx, cy;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1));
}

/* ── CTA SECTION (CENTRÉ AU MILIEU DE L'ÉCRAN) ─────────────────── */
.sect-cta {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  width: 100%;
}

.cta-banner-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 10px auto 20px;
  display: flex;
  justify-content: center;
}

.cta-banner-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
}

.cta-footer-graphic {
  width: 100%;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-footer-img {
  width: 100%;
  max-width: 710px;  /* Reduced by 25% */
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.12));
}

/* ── FLOATING FOOTER BAR ────────────────────────────────────────── */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  padding: 20px 48px;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out);
}

.footer-bar.is-visible {
  transform: translateY(0);
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gray);
  text-transform: uppercase;
}

.footer-clocks {
  display: flex;
  align-items: center;
  gap: 24px;
}

.clock-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.clock-city {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gray);
  text-transform: uppercase;
  white-space: nowrap;
}

.clock-time {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* 6AM city highlight */
.clock-item--highlight .clock-time {
  color: var(--white);
}

.clock-item--highlight .clock-city {
  color: var(--gray);
}

.clock-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.7rem;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.5s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* ── KEYFRAMES ──────────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .header        { padding: 24px 24px; }
  .header.is-scrolled { padding: 16px 24px; }
  .sect          { padding: 100px 24px 60px; }
  .footer-bar    { padding: 12px 24px; }
  .footer-brand  { display: none; }

  .sticky-layout,
  .sticky-layout--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sticky-layout--reverse .sticky-sub {
    order: 0;
  }

  .section-content--right {
    align-items: flex-start;
    text-align: left;
  }

  .nav-inner {
    padding: 100px 24px 40px;
  }

  .nav-locations {
    flex-direction: column;
    gap: 24px;
  }

  .scroll-hint {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .clock-sep,
  .clock-item--highlight {
    display: none; /* Show only Paris on very small screens */
  }
}



/* ── TRIPTYCH DISCOVERY SECTION (OBLIQUE PANE REVEALS) ───────────────── */
.sect-triptych {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
  z-index: 10;
  padding: 0;
}

.triptych-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.triptych-pane {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100vw;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  overflow: hidden;
  transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

/* Diagonal Separator Lines (Neon White-to-Gold Glows matching clip-path lines) */
.triptych-border {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(to bottom, #ffffff 0%, #ffd700 50%, #ffffff 100%);
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
  transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Oblique backgrounds with custom centering alignments */
.pane-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) grayscale(0.2);
  transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100vw;
  height: 100%;
}

.bg-hot { background-image: url('assets/hot.jpg'); }
.bg-commu { background-image: url('assets/Commu.png'); }
.bg-onduty { background-image: url('assets/OnDuty.png'); }

/* Selected / Active hover image zoom and full vibrance colors */
.triptych-pane:hover .pane-bg {
  filter: brightness(0.72) grayscale(0) !important;
  transform: scale(1.035);
}

/* Inactive images get pushed to dark grayscale to focus attention on active universes */
.triptych-container.hover-left .pane-center .pane-bg,
.triptych-container.hover-left .pane-right .pane-bg,
.triptych-container.hover-center .pane-left .pane-bg,
.triptych-container.hover-center .pane-right .pane-bg,
.triptych-container.hover-right .pane-left .pane-bg,
.triptych-container.hover-right .pane-center .pane-bg {
  filter: brightness(0.18) grayscale(1) !important;
}

.pane-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.pane-content {
  position: absolute;
  bottom: 12%;
  z-index: 8;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 33vw;
  box-sizing: border-box;
  pointer-events: none;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.pane-left .pane-content { left: 5%; }
.pane-center .pane-content { left: 38%; }
.pane-right .pane-content { left: 70%; }

.pane-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffd700; /* Gold */
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.pane-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pane-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(242, 240, 235, 0.6);
  line-height: 1.55;
  margin: 8px 0 16px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(15px);
  filter: blur(4px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pane-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--white);
  padding-bottom: 2px;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(15px);
  filter: blur(4px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

/* ───────────────────────────────────────────────────────────────────
   OBLIQUE DIAGONS SPLIT SYSTEM (Base: Left 36/24%, Right 68/57%)
   ─────────────────────────────────────────────────────────────────── */
.pane-left {
  clip-path: polygon(0 0, 36% 0, 24% 100%, 0 100%);
}
.pane-center {
  clip-path: polygon(36% 0, 68% 0, 56% 100%, 24% 100%);
}
.pane-right {
  clip-path: polygon(68% 0, 100% 0, 100% 100%, 56% 100%);
}

.border-1 {
  clip-path: polygon(36% 0, calc(36% + 3.5px) 0, calc(24% + 3.5px) 100%, 24% 100%);
}
.border-2 {
  clip-path: polygon(68% 0, calc(68% + 3.5px) 0, calc(56% + 3.5px) 100%, 56% 100%);
}

/* ── Acte 1: Hover Left Pane (left expands to 60%, others shrink) ── */
/* ── Acte 1: Hover Left Pane (left expands to 60%, others shrink) ── */
.triptych-container.hover-left .pane-left {
  clip-path: polygon(0 0, 60% 0, 48% 100%, 0 100%);
}
.triptych-container.hover-left .pane-center {
  clip-path: polygon(60% 0, 80% 0, 68% 100%, 48% 100%);
}
.triptych-container.hover-left .pane-right {
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 68% 100%);
}
.triptych-container.hover-left .border-1 {
  clip-path: polygon(60% 0, calc(60% + 3.5px) 0, calc(48% + 3.5px) 100%, 48% 100%);
}
.triptych-container.hover-left .border-2 {
  clip-path: polygon(80% 0, calc(80% + 3.5px) 0, calc(68% + 3.5px) 100%, 68% 100%);
}

/* ── Acte 2: Hover Center Pane (center expands to 60%, others shrink to 20%) ── */
.triptych-container.hover-center .pane-left {
  clip-path: polygon(0 0, 20% 0, 12% 100%, 0 100%);
}
.triptych-container.hover-center .pane-center {
  clip-path: polygon(20% 0, 80% 0, 72% 100%, 12% 100%);
}
.triptych-container.hover-center .pane-right {
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 72% 100%);
}
.triptych-container.hover-center .border-1 {
  clip-path: polygon(20% 0, calc(20% + 3.5px) 0, calc(12% + 3.5px) 100%, 12% 100%);
}
.triptych-container.hover-center .border-2 {
  clip-path: polygon(80% 0, calc(80% + 3.5px) 0, calc(72% + 3.5px) 100%, 72% 100%);
}

/* ── Acte 3: Hover Right Pane (right expands to 60%, others shrink) ── */
.triptych-container.hover-right .pane-left {
  clip-path: polygon(0 0, 20% 0, 12% 100%, 0 100%);
}
.triptych-container.hover-right .pane-center {
  clip-path: polygon(20% 0, 40% 0, 32% 100%, 12% 100%);
}
.triptych-container.hover-right .pane-right {
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 32% 100%);
}
.triptych-container.hover-right .border-1 {
  clip-path: polygon(20% 0, calc(20% + 3.5px) 0, calc(12% + 3.5px) 100%, 12% 100%);
}
.triptych-container.hover-right .border-2 {
  clip-path: polygon(40% 0, calc(40% + 3.5px) 0, calc(32% + 3.5px) 100%, 32% 100%);
}

/* Hover triggers textual reveal transitions */
.triptych-pane:hover .pane-desc,
.triptych-pane:hover .pane-link {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Shift active layout text to prevent overlap on center expand */
.triptych-container.hover-left .pane-center .pane-content { transform: translateX(20vw); opacity: 0; }
.triptych-container.hover-left .pane-right .pane-content { transform: translateX(20vw); opacity: 0; }
.triptych-container.hover-center .pane-left .pane-content { transform: translateX(-20vw); opacity: 0; }
.triptych-container.hover-center .pane-right .pane-content { transform: translateX(20vw); opacity: 0; }
.triptych-container.hover-right .pane-left .pane-content { transform: translateX(-20vw); opacity: 0; }
.triptych-container.hover-right .pane-center .pane-content { transform: translateX(-20vw); opacity: 0; }

/* ── MOBILE SLIDER CONFIGURATION ────────────────────────────────────── */
@media (max-width: 900px) {
  html {
    scroll-snap-type: none; /* Disable forced vertical snapping on mobile for regular scrolls */
  }
  .sect, .sect-triptych, .sect-hero, .sect-cities, .sect-cta {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .sect-triptych {
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    background: #000;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .triptych-container {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 20px !important;
    height: 82vh !important;
    width: 100vw !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    -webkit-overflow-scrolling: touch !important;
  }

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

  .triptych-pane {
    position: relative !important;
    flex: 0 0 85% !important; /* Slide card width */
    scroll-snap-align: center !important;
    height: 72vh !important; /* Immersive portrait tall card height */
    width: auto !important;
    clip-path: none !important; /* Remove oblique clip paths on mobile */
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    overflow: hidden !important;
  }

  .pane-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    filter: brightness(0.48) grayscale(0) !important;
    transform: none !important;
  }

  .triptych-border {
    display: none !important; /* Hide glowing diagonal borders on mobile */
  }

  .pane-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 32px !important;
    box-sizing: border-box !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%) !important;
    pointer-events: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .pane-desc, .pane-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
  }
}
