/* ========================================================================
   TAIZHEN — Design System
   Direction Artistique

   Hiérarchie typographique :
   ─ TAIZHEN (titre de marque)   : Bodoni Moda 400 — haute couture, contraste extrême
   ─ Citation principale         : Cormorant Garamond 400 — intellectuelle, majestueuse
   ─ Sous-phrase                 : Cormorant Garamond 300 italic — souffle, élégance
   ─ Menu navigation             : Cormorant Garamond 300 — cohérence, grandeur
   ─ S'avancer (CTA)             : Jost 300 — géométrique, moderniste, précis
   ─ Footer                      : Inter 200 — infrastructure invisible

   Palette :
   ─ Fond : #070707 (obsidienne profonde)
   ─ Or   : #c5a880 (Ding You, chaleur contenue)
   ─ Ivoire: #ede9e0 (lumière naturelle)
   ======================================================================== */

:root {
  --black: #070707;
  --gold: #bfa886;       /* Matte gold */
  --gold-bright: #e5c185; /* Bright gold (Ding You glow) */
  --gold-matte: #bfa886;  /* Matte gold (geometric nodes) */
  --gold-bronze: #827059; /* Bronze gold (secondary structures, lines) */
  --ivory: #ede9e0;
  --ivory-dim: #a8a49c;
  --gray: #5c584f;

  --font-brand: 'Cinzel', 'Didot', 'Times New Roman', serif;
  --font-serif: 'Lora', 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Tenor Sans', 'Jost', system-ui, sans-serif;
  --font-micro: 'Montserrat', system-ui, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  height: 100%;
}

/* ===== Body ===== */
body {
  background: var(--black);
  color: var(--ivory);
  height: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ===== Mathematical Grid — invisible structure ===== */
.math-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== Vertical Axis ===== */
.axis {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(197, 168, 128, 0.08) 10%,
    rgba(197, 168, 128, 0.13) 40%,
    rgba(197, 168, 128, 0.13) 60%,
    rgba(197, 168, 128, 0.08) 90%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ===== Stars — warmer, more visible ===== */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transform: translateY(calc(var(--scroll-y, 0) * -0.06px));
  will-change: transform;
}

.stars i {
  position: absolute;
  display: block;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(255, 248, 225, 0.95);
  opacity: 0;
  animation: twinkle 6s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1;  transform: scale(0.8); }
  35%      { opacity: 0.6;  transform: scale(1.4); }
  65%      { opacity: 0.35; transform: scale(1.1); }
}

/* ===== Hamburger — bigger, more authoritative ===== */
.hamburger {
  position: fixed;
  top: clamp(24px, 4vh, 40px);
  right: clamp(20px, 4vw, 48px);
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity  0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ===== Menu Overlay — bigger, immersive ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(7, 7, 7, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Constellation pattern styling */
.menu-constellation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92) rotate(-5deg);
  width: min(90vw, 90vh);
  height: min(90vw, 90vh);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.menu-overlay.open .menu-constellation {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Subtle axis in menu */
.menu-axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(197, 168, 128, 0.08) 30%,
    rgba(197, 168, 128, 0.08) 70%,
    transparent
  );
  z-index: 2;
}

.menu-overlay ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 48px;
  z-index: 3;
  position: relative;
}

.menu-overlay a {
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ivory-dim);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              text-shadow 0.4s ease;
}

.menu-overlay a:hover {
  color: var(--gold-bright);
  letter-spacing: 0.28em;
  text-shadow: 0 0 15px rgba(229, 193, 133, 0.35);
}

/* ===== Main Content ===== */
#scrollContainer {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2;
  scrollbar-width: none; /* hide default scrollbar on Firefox */
}

#scrollContainer::-webkit-scrollbar {
  display: none; /* hide scrollbar on Chrome/Safari */
}

.screen-section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(50px, 7vh, 90px) 24px clamp(16px, 2.2vh, 28px) 24px;
  position: relative;
  overflow: hidden;
}

.section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  gap: clamp(14px, 2.5vh, 32px);
  z-index: 2;
  position: relative;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vh, 16px);
}

.welcome-foreground .logo {
  margin-bottom: auto;
}

.logo-symbol {
  width: clamp(75px, 11vh, 95px);
  height: auto;
  color: var(--gold-matte);
  filter: drop-shadow(0 0 15px rgba(197, 168, 128, 0.15));
}

/* TAIZHEN brand title — elegant display wordmark */
.brand-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.1vh, 1.35rem);
  font-weight: 500;
  color: var(--ivory); /* solid single color */
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(237, 233, 224, 0.1);
}

.brand-title .part-1 {
  letter-spacing: 0.4em;
}

.brand-title .part-dot {
  color: var(--ivory);
  font-weight: 500;
  margin-left: 0.15em;
  margin-right: 0.55em; /* balances the letter-spacing of part-1 */
  opacity: 0.85;
}

.brand-title .part-2 {
  letter-spacing: 0.4em;
  margin-right: -0.4em; /* cancels the letter-spacing of the last letter for perfect centering */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Quote ===== */
.quote {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vh, 14px);
}

.main-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vh, 1.5rem);
  line-height: 1.5;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.sub-text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 2.2vh, 1.3rem);
  color: var(--ivory-dim);
  letter-spacing: 0.06em;
}

/* ===== Spiral Zone — mathematical infrastructure with discrete spiral ===== */
.spiral-zone {
  width: clamp(120px, 20vh, 160px);
  height: clamp(120px, 20vh, 160px);
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(8px, 1.4vh, 16px) 0;
}

.spiral-zone svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ===== CTA Group ===== */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vh, 14px);
}

.welcome-foreground .cta-group {
  margin-top: auto;
}

.cta {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  transition: color 0.4s ease, letter-spacing 0.4s ease, transform 0.4s ease;
}

.cta:hover {
  color: var(--gold);
  letter-spacing: 0.22em;
  transform: translateY(-2px);
}

/* Scroll hint V chevron */
.scroll-hint {
  color: var(--gold-bronze);
  opacity: 0.65;
  animation: bobDown 2.5s ease-in-out 3s infinite;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.scroll-hint:hover {
  opacity: 1;
  color: var(--gold-bright);
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ===== Footer ===== */
/* ===== Section Footer ===== */
.section-footer {
  width: 100%;
  max-width: 720px;
  padding: 12px 0 0 0;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.section-footer p {
  font-family: var(--font-micro);
  font-weight: 200;
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ===== Page 2 — Philosophy Section Styles ===== */

.honeycomb-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: min(240px, 45vw);
  height: min(240px, 45vw);
  pointer-events: none;
  z-index: 1;
  transform: translateY(calc((var(--scroll-y, 0) * 1px - 100vh) * 0.08));
  will-change: transform;
}

.leaves-container {
  position: absolute;
  bottom: -45px;
  left: -40px;
  right: auto;
  width: min(200px, 35vw);
  height: auto;
  max-height: 70vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
              transform 2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.active .leaves-container {
  opacity: 0.12; /* ultra-soft watermark on mobile/tablet portrait for absolute legibility */
  transform: translateY(0) scale(1);
}

.leaves-parallax-wrapper {
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateY(calc((var(--scroll-y, 0) * 1px - 100vh) * -0.06));
  will-change: transform;
}

.leaves-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 25px rgba(197, 168, 128, 0.18));
}

.leaves-sparkles-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Honeycomb drawing animations via script inline offsets */
.hex-path {
  transition-property: stroke-dashoffset;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.active .hex-path {
  stroke-dashoffset: 0 !important;
}

@keyframes leafTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.6;  transform: scale(1.3); }
}

/* Philosophy Layout */
.philosophy-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 36px);
  width: 100%;
  max-width: 900px;
  z-index: 5;
  position: relative;
}

/* Central Axis Dots */
.axis-dot {
  width: 4px;
  height: 4px;
  background-color: var(--gold-matte);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(197, 168, 128, 0.8);
  opacity: 0;
  transform: scale(0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 6;
}

.active .axis-dot {
  opacity: 0.85;
  transform: scale(1);
}

.active .axis-dot:nth-of-type(1) { transition-delay: 0.2s; }
.active .axis-dot:nth-of-type(2) { transition-delay: 0.6s; }
.active .axis-dot:nth-of-type(3) { transition-delay: 1.0s; }
.active .axis-dot:nth-of-type(4) { transition-delay: 1.4s; }

/* Text Blocks */
.philosophy-text {
  font-family: var(--font-serif);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.active .philosophy-text {
  opacity: 1;
  transform: translateY(0);
}

.active .philosophy-text.block-1 { transition-delay: 0.35s; }
.active .philosophy-text.block-2 { transition-delay: 0.75s; }
.active .philosophy-text.block-3 { transition-delay: 1.15s; }
.active .philosophy-text.block-4 { transition-delay: 1.55s; }

.block-1 {
  font-size: clamp(1.15rem, 3.4vw, 1.65rem);
  color: var(--ivory);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.block-2 {
  font-size: clamp(0.9rem, 2.2vw, 1.08rem);
  color: var(--ivory-dim);
  font-weight: 300;
}

.block-2 p {
  margin-bottom: 6px;
}

.block-2 p:last-child {
  margin-bottom: 0;
}

.block-2 .indent {
  font-style: italic;
  opacity: 0.95;
}

.block-3 {
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  color: var(--gold-matte);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.block-4 {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--gold-matte);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.micro-coord {
  font-family: var(--font-micro);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gold-bronze);
  opacity: 0.65;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.guide-line {
  display: none;
}

@media (min-width: 992px) {
  .philosophy-text {
    width: calc(50% - 40px);
    max-width: 320px; /* tablet-optimized width to prevent leaf collisions */
    margin: 0;
  }

  .philosophy-text.stagger-left {
    align-self: flex-start;
    text-align: right;
  }

  .philosophy-text.stagger-right {
    align-self: flex-end;
    text-align: left;
  }

  .philosophy-text.centered-axis {
    width: auto;
    max-width: 500px;
    align-self: center;
    text-align: center;
  }

  .guide-line {
    display: block;
    position: absolute;
    top: 6px; /* Aligns with center of coordinate text */
    height: 0.5px;
    background: linear-gradient(to var(--to-dir, right), var(--gold-bronze) 30%, transparent 100%);
    width: 40px;
    opacity: 0.35;
    pointer-events: none;
  }

  .stagger-left .guide-line {
    left: 100%;
    --to-dir: right;
  }

  .stagger-right .guide-line {
    right: 100%;
    --to-dir: left;
  }

  .honeycomb-svg {
    width: min(350px, 45vw);
    height: min(350px, 45vw);
  }

  .leaves-container {
    width: min(300px, 35vw);
    bottom: -35px;
    left: -20px;
    right: auto;
  }

  .active .leaves-container {
    opacity: 0.22; /* soft blend on landscape screens */
  }
}

@media (min-width: 1200px) {
  .philosophy-text {
    max-width: 380px; /* widescreen block width */
  }

  .honeycomb-svg {
    width: min(450px, 45vw);
    height: min(450px, 45vw);
  }

  .leaves-container {
    width: min(400px, 32vw);
    bottom: -30px;
    left: -10px;
    right: auto;
  }

  .active .leaves-container {
    opacity: 0.38; /* full premium opacity on widescreen */
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Page 1 Immersive Opening Animation ===== */

/* Masquage par defaut des elements avant l'animation */
#dingPoint,
#mathInfrastructure,
#spiralPath,
.math-grid,
.stars,
.logo,
.main-text,
.sub-text,
.cta-group,
.hamburger {
  opacity: 0;
}

/* Desactivation des animations standards pour l'introduction */
.quote,
.spiral-zone {
  animation: none;
}

/* Sequencage de l'apparition progressive */
#dingPoint {
  transform-origin: 150px 150px;
  animation: fadeInDing 1.8s cubic-bezier(0.25, 1, 0.35, 1) 1s both;
}

#mathInfrastructure {
  animation: fadeInMath 1.5s cubic-bezier(0.25, 1, 0.35, 1) 2s both;
}

#spiralPath {
  stroke-dasharray: var(--spiral-length, 2000px);
  stroke-dashoffset: var(--spiral-length, 2000px);
  animation: fadeInSpiral 2.8s cubic-bezier(0.25, 1, 0.35, 1) 2s both,
             drawSpiral 2.8s cubic-bezier(0.25, 1, 0.35, 1) 2s both;
}

.math-grid,
.stars {
  animation: fadeInBackground 2.5s cubic-bezier(0.25, 1, 0.35, 1) 2s both;
}

.logo {
  animation: fadeInLogo 1.2s cubic-bezier(0.25, 1, 0.35, 1) 3.5s both;
}

.main-text {
  animation: revealText 1.2s cubic-bezier(0.25, 1, 0.35, 1) 4.5s both;
}

.sub-text {
  animation: revealText 1.2s cubic-bezier(0.25, 1, 0.35, 1) 5.2s both;
}

.cta-group,
.hamburger {
  animation: revealText 1s cubic-bezier(0.25, 1, 0.35, 1) 5.8s both;
}

/* Keyframes de la sequence d'ouverture */
@keyframes fadeInDing {
  0% {
    opacity: 0;
    transform: scale(0.5);
    filter: brightness(0.5) drop-shadow(0 0 0px rgba(255,245,220,0));
  }
  75% {
    opacity: 1;
    transform: scale(1.15);
    filter: brightness(1.75) drop-shadow(0 0 12px rgba(255,245,220,0.95));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1.2) drop-shadow(0 0 4px rgba(255,245,220,0.3));
  }
}

@keyframes fadeInMath {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInSpiral {
  0% { opacity: 0; }
  100% { opacity: 0.85; }
}

@keyframes drawSpiral {
  0% {
    stroke-dashoffset: var(--spiral-length, 2000px);
  }
  100% {
    stroke-dashoffset: 0px;
  }
}

@keyframes fadeInBackground {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInLogo {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes revealText {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== Responsive ===== */

@media (max-width: 380px) {
  .section-content {
    gap: 14px;
  }
  .logo-symbol { width: 65px; }
  .brand-title { font-size: 1rem; }
  .logo { gap: 8px; }
  .spiral-zone { width: 100px; }
  .philosophy-layout { gap: 10px; }
}

@media (min-width: 768px) {
  .section-content {
    gap: clamp(24px, 4vh, 48px);
  }
  .section-footer { max-width: 960px; }
}

@media (min-width: 1200px) {
  .section-content {
    max-width: 800px;
    gap: clamp(28px, 4.5vh, 56px);
  }
  .section-footer { max-width: 1100px; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .section-content { gap: 10px; }
  .logo-symbol { width: 60px; }
  .brand-title { font-size: 0.95rem; }
  .logo { gap: 6px; }
  .spiral-zone { width: 80px; }
}

@media (max-height: 760px) {
  .logo-symbol {
    width: 70px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .main-text {
    font-size: clamp(1.2rem, 4.5vh, 2rem);
  }
  .spiral-zone {
    width: clamp(100px, 18vh, 130px);
    margin: 6px 0;
  }
  .section-content {
    gap: 12px;
  }
  .logo {
    gap: 10px;
  }
  .quote {
    gap: 10px;
  }
}

@media (max-height: 640px) {
  .logo-symbol {
    width: 60px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .main-text {
    font-size: clamp(1.1rem, 4vh, 1.7rem);
  }
  .spiral-zone {
    width: clamp(80px, 14vh, 100px);
    margin: 4px 0;
  }
  .section-content {
    gap: 10px;
  }
  .logo {
    gap: 8px;
  }
  .quote {
    gap: 6px;
  }
}

/* ===== Section 3 — Solstices Card Styles ===== */
.solstices-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  z-index: 5;
  position: relative;
}

.solstices-header {
  text-align: center;
}

.solstices-main-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  color: var(--ivory);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.solstices-sub-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--ivory-dim);
  letter-spacing: 0.03em;
}

/* Divider with central gold dot */
.dot-divider {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-bronze) 20%, var(--gold-bronze) 80%, transparent);
  margin: 18px auto;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 4px;
  height: 4px;
  background: var(--gold-matte);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(197, 168, 128, 0.8);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.active .dot-divider {
  opacity: 0.35;
  transform: scaleX(1);
}

.active .dot-divider::after {
  transform: translate(-50%, -50%) scale(1);
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 680px;
  margin: 10px 0;
}

/* Pricing Card Layout */
.card-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 12, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 30px 40px;
  width: 100%;
  min-height: 230px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.card-free {
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-free:hover {
  border-color: rgba(191, 168, 134, 0.15);
  background: rgba(16, 16, 16, 0.75);
}

.card-premium {
  border: 1px solid rgba(191, 168, 134, 0.35);
  box-shadow: 0 0 25px rgba(191, 168, 134, 0.04);
}

.card-premium:hover {
  border-color: rgba(229, 193, 133, 0.6);
  box-shadow: 0 0 35px rgba(191, 168, 134, 0.08);
  background: rgba(18, 18, 18, 0.78);
}

.active .card-free {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.active .card-premium {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.card-text {
  flex: 1;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--ivory);
  margin-bottom: 6px;
}

.card-price {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-line {
  width: 40px;
  height: 1px;
  background: var(--gold-bronze);
  opacity: 0.4;
  margin-bottom: 16px;
}

.card-desc {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--ivory-dim);
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: left;
}

.card-link {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(237, 233, 224, 0.25);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease, padding-right 0.3s ease;
}

.card-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.card-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

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

.card-visual {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.visual-circle-mask {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  overflow: hidden;
  border: 0.5px solid rgba(191, 168, 134, 0.2);
  box-shadow: 0 0 15px rgba(191, 168, 134, 0.08);
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-img.rect-visual {
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(191, 168, 134, 0.06);
}

/* Bottom CTA link */
.solstices-footer-cta {
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s,
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.active .solstices-footer-cta {
  opacity: 1;
  transform: translateY(0);
}

.cta-link {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(237, 233, 224, 0.25);
  padding-bottom: 4px;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.cta-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.cta-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

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

/* Page 3 Responsiveness */
@media (max-width: 767px) {
  #solstices {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding: clamp(80px, 10vh, 120px) 24px 80px 24px;
  }
  .card-pricing {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 30px 24px;
    min-height: auto;
  }
  .card-text {
    max-width: 100%;
    align-items: center;
  }
  .card-line {
    margin-left: auto;
    margin-right: auto;
  }
  .card-desc {
    text-align: center;
  }
  .card-visual {
    width: 100%;
    height: 140px;
    justify-content: center;
  }
  .visual-circle-mask {
    width: 120px;
    height: 120px;
  }
  .visual-img.rect-visual {
    width: 140px;
    height: 140px;
  }
  .solstices-layout {
    gap: 10px;
  }
}

@media (max-height: 760px) {
  .cards-container {
    gap: 12px;
    margin: 5px 0;
  }
  .card-pricing {
    padding: 20px 30px;
    min-height: 180px;
  }
  .card-visual {
    width: 130px;
    height: 130px;
  }
  .visual-circle-mask {
    width: 120px;
    height: 120px;
  }
  .card-desc {
    margin-bottom: 16px;
  }
  .dot-divider {
    margin: 10px auto;
  }
}

@media (max-height: 640px) {
  .card-pricing {
    padding: 16px 24px;
    min-height: 150px;
  }
  .card-visual {
    width: 100px;
    height: 100px;
  }
  .visual-circle-mask {
    width: 95px;
    height: 95px;
  }
  .card-desc {
    margin-bottom: 10px;
  }
  .dot-divider {
    margin: 6px auto;
  }
}

/* ===== Section 4 — Approfondir Section Styles ===== */
#contact {
  position: relative;
}

.back-arrow {
  position: absolute;
  top: clamp(24px, 4vh, 40px);
  left: clamp(20px, 4vw, 48px);
  z-index: 20;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.35s ease, transform 0.35s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.back-arrow:hover {
  opacity: 1;
  transform: translateX(-4px);
  color: var(--gold-bright);
}

.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  z-index: 5;
  position: relative;
}

.contact-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-main-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ivory);
  letter-spacing: 0.02em;
}

/* Vertical line with gold dot */
.vertical-divider {
  position: relative;
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, var(--gold-bronze) 30%, var(--gold-bronze) 100%);
  margin: 12px auto;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.vertical-divider::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translate(-50%, 0) scale(0);
  width: 4px;
  height: 4px;
  background: var(--gold-matte);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(197, 168, 128, 0.8);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.active .vertical-divider {
  opacity: 0.45;
  transform: scaleY(1);
}

.active .vertical-divider::after {
  transform: translate(-50%, 0) scale(1);
}

.contact-sub-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
  margin-top: 4px;
  max-width: 600px;
  line-height: 1.4;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 15px 0;
}

/* Card specific depth styles */
.card-depth {
  background: rgba(12, 12, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 200px;
}

.card-depth.card-premium {
  border-color: rgba(191, 168, 134, 0.35);
}

/* On desktop, show 3 cards side-by-side in a row */
@media (min-width: 992px) {
  .contact-cards {
    flex-direction: row;
    max-width: 1050px;
    gap: 24px;
    margin: 25px 0;
  }
  
  .card-depth {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 35px 30px;
    flex: 1;
    min-height: 380px;
  }
  
  .card-depth .card-text {
    max-width: 100%;
    align-items: flex-start;
  }
  
  .card-depth .card-visual {
    width: 100%;
    height: 140px;
    margin-top: 20px;
    justify-content: flex-end;
  }
}

/* Active transitions with high specificity overrides */
#contact.active .card-depth:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

#contact.active .card-depth:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

#contact.active .card-depth:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

/* Mobile & Tablet card adjustments */
@media (max-width: 991px) {
  #contact {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding: clamp(80px, 10vh, 120px) 24px 80px 24px;
  }
  
  .card-depth {
    display: flex;
    flex-direction: row; /* Keep text left and image right on mobile/tablet */
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    gap: 16px;
    min-height: auto;
  }
  
  .card-depth .card-text {
    max-width: 60%;
  }
  
  .card-depth .card-visual {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .card-depth {
    padding: 20px;
  }
  
  .card-depth .card-text {
    max-width: 65%;
  }
  
  .card-depth .card-visual {
    width: 90px;
    height: 90px;
  }
}

/* Height-responsive adjust for Page 4 */
@media (max-height: 760px) and (min-width: 992px) {
  .card-depth {
    min-height: 320px;
    padding: 24px 20px;
  }
  .card-depth .card-visual {
    height: 110px;
    margin-top: 10px;
  }
}

@media (max-height: 640px) and (min-width: 992px) {
  .card-depth {
    min-height: 270px;
    padding: 20px 16px;
  }
  .card-depth .card-visual {
    height: 90px;
    margin-top: 6px;
  }
}

/* Card SVG Graphic Styling */
.card-svg-graphic {
  width: 100%;
  height: 100%;
  max-width: 140px;
  max-height: 140px;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Subtly scale and highlight the graphic when the card is hovered */
.card-pricing:hover .card-svg-graphic {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(229, 193, 133, 0.25));
}

/* ===== Section 5 — Analytics Dashboard Console ===== */
.analytics-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  z-index: 5;
  position: relative;
}

.analytics-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(16px, 3vh, 32px);
}

.analytics-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.analytics-subtitle {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
  margin-top: 4px;
  max-width: 600px;
  line-height: 1.4;
}

.analytics-log-container {
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(191, 168, 134, 0.2);
  background: rgba(12, 12, 12, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-bronze) transparent;
}

.analytics-log-container::-webkit-scrollbar {
  width: 6px;
}

.analytics-log-container::-webkit-scrollbar-track {
  background: transparent;
}

.analytics-log-container::-webkit-scrollbar-thumb {
  background-color: var(--gold-bronze);
  border-radius: 3px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.analytics-table th, 
.analytics-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.analytics-table th {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-matte);
  background: rgba(18, 18, 18, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.analytics-table td {
  color: var(--ivory-dim);
  font-weight: 300;
}

.analytics-table tr:hover td {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.01);
}

@media (max-width: 767px) {
  #analytics {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding: clamp(80px, 10vh, 120px) 16px 80px 16px;
  }
  .analytics-table {
    font-size: 0.78rem;
  }
  .analytics-table th, 
.analytics-table td {
    padding: 10px 12px;
  }
}

