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

:root {
  --gold:       #c9973a;
  --gold-light: #e8c070;
  --gold-pale:  #f5dfa0;
  --gold-dark:  #7a5a18;
  --black:      #000000;
  --near-black: #060400;
  --dark:       #0e0900;
  --off-white:  #f5eed8;
}

html { scroll-behavior: smooth; }
html, body { width: 100%; margin: 0; padding: 0; }
body { background: var(--black); color: var(--off-white); font-family: 'Josefin Sans', sans-serif; overflow-x: hidden; }

nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.2rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, transparent 100%);
}
/* Logo size controlled by --nav-logo-h CSS variable set in header.php */
nav.site-nav .custom-logo-link img,
nav.site-nav .custom-logo,
.nav-logo {
  height: var(--nav-logo-h, 60px);
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { font-weight: 600; font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase; color: #fff; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold-light); }

.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; z-index: 300; padding: 0; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--gold); transition: all 0.3s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu overlay ──────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,0.97);
  flex-direction: column; align-items: center; justify-content: flex-start;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

/* Close button — top-right corner */
.mobile-menu-close {
  position: absolute; top: 1.4rem; right: 1.8rem;
  background: none; border: none; cursor: pointer;
  color: rgba(201,151,58,0.6);
  font-size: 2.2rem; line-height: 1;
  padding: 0.3rem 0.6rem;
  transition: color 0.3s, transform 0.3s;
  z-index: 10;
}
.mobile-menu-close:hover { color: var(--gold-light); transform: scale(1.15); }

/* Strip WP nav <ul> / <li> list styles */
.mobile-menu ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.mobile-menu li { width: 100%; display: block; }

/* All links inside the menu */
.mobile-menu a {
  font-family: 'Cinzel', serif; font-weight: 400;
  font-size: clamp(1rem,4vw,1.4rem); letter-spacing: 0.4em;
  text-transform: uppercase; color: rgba(245,238,216,0.5);
  text-decoration: none;
  padding: 1.4rem 2rem;
  text-align: center; display: block; width: 100%;
  border-bottom: 1px solid rgba(201,151,58,0.1);
  transition: color 0.3s, background 0.3s;
}
/* First item border-top — works for both <li> wrapping and plain <a> */
.mobile-menu li:first-child a,
.mobile-menu > a:first-of-type { border-top: 1px solid rgba(201,151,58,0.1); }
.mobile-menu a:hover { color: var(--gold-light); background: rgba(201,151,58,0.05); }

.mobile-menu-logo { margin: 3rem auto; }
.mobile-menu-logo img { height: 50px; width: auto; }

@media (max-width: 820px) {
  nav.site-nav { padding: 1.2rem 1.8rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--black); }
.hero-atmosphere { position: absolute; inset: 0; background: radial-gradient(ellipse 90% 40% at 50% 100%, rgba(201,151,58,0.28) 0%, transparent 60%), radial-gradient(ellipse 60% 30% at 50% 85%, rgba(255,157,58,0.15) 0%, transparent 55%), radial-gradient(ellipse 80% 50% at 50% 50%, rgba(201,151,58,0.06) 0%, transparent 70%); pointer-events: none; }
.hero-glyph-wrap { position: absolute; width: min(92vw,860px); height: min(92vw,860px); top: 50%; left: 50%; pointer-events: none; animation: spin-cw 90s linear infinite; }
.hero-glyph-wrap img { width: 100%; height: 100%; object-fit: contain; opacity: 0.13; mix-blend-mode: screen; }
@keyframes spin-cw  { from{transform:translate(-50%,-50%) rotate(0deg)}   to{transform:translate(-50%,-50%) rotate(360deg)} }
@keyframes spin-ccw { from{transform:translate(-50%,-50%) rotate(0deg)}   to{transform:translate(-50%,-50%) rotate(-360deg)} }
.hero-burst { position: absolute; width: 700px; height: 500px; top: 50%; left: 50%; transform: translate(-50%,-58%); background: radial-gradient(ellipse 70% 60%, rgba(201,151,58,0.22) 0%, rgba(255,157,58,0.1) 30%, transparent 70%); pointer-events: none; animation: burst-breathe 5s ease-in-out infinite; }
@keyframes burst-breathe { 0%,100% { opacity:.7; transform:translate(-50%,-58%) scale(1); } 50% { opacity:1; transform:translate(-50%,-58%) scale(1.12); } }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 35%, rgba(0,0,0,0.85) 85%); pointer-events: none; }
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { font-weight: 200; font-size: clamp(0.58rem,1.3vw,0.75rem); letter-spacing: 0.6em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.5rem; opacity: 0; animation: fade-up 1s ease forwards 0.6s; }
.hero-logo-img { width: min(82vw,680px); opacity: 0; animation: fade-up 1.4s ease forwards 0.9s; filter: drop-shadow(0 0 80px rgba(201,151,58,0.55)) drop-shadow(0 0 30px rgba(255,157,58,0.35)) drop-shadow(0 4px 20px rgba(0,0,0,0.9)); }
.hero-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1rem,2.6vw,1.6rem); color: rgba(245,238,216,0.5); margin-top: 2.2rem; letter-spacing: 0.06em; opacity: 0; animation: fade-up 1s ease forwards 1.6s; }
.hero-cta { margin-top: 3.2rem; opacity: 0; animation: fade-up 1s ease forwards 2.4s; }

.btn-gold { display: inline-block; padding: 1rem 3.2rem; border: 1px solid var(--gold); color: var(--gold-pale); font-weight: 300; font-size: 0.68rem; letter-spacing: 0.45em; text-transform: uppercase; text-decoration: none; position: relative; overflow: hidden; transition: color 0.4s ease; background: transparent; cursor: pointer; }
.btn-gold::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.45s ease; z-index: -1; }
.btn-gold:hover { color: #000; }
.btn-gold:hover::before { transform: scaleX(1); }

.scroll-hint { position: absolute; bottom: 2.5rem; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; opacity: 0; animation: fade-up 1s ease forwards 3s; z-index: 3; }
.scroll-hint span { font-size: 0.52rem; letter-spacing: 0.5em; text-transform: uppercase; color: rgba(201,151,58,0.35); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent); animation: pulse-line 2.5s ease-in-out infinite; }
@keyframes pulse-line { 0%,100%{opacity:.3} 50%{opacity:1} }
@keyframes fade-up { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

.gold-rule { display: flex; align-items: center; gap: 1.5rem; justify-content: center; padding: 0 2rem; }
.gold-rule::before, .gold-rule::after { content: ''; flex: 1; max-width: 200px; height: 1px; background: linear-gradient(to right, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent); }
.gold-rule-diamond { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

.intro { padding: 9rem 2rem 7rem; width: 100%; text-align: center; position: relative; display: flex; justify-content: center; }
.intro-inner { width: 100%; max-width: 840px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,151,58,0.04) 0%, transparent 70%); pointer-events: none; }
.intro-label { font-weight: 100; font-size: 0.62rem; letter-spacing: 0.6em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.5rem; }
.intro-quote { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.7rem,4.5vw,3rem); font-weight: 300; line-height: 1.6; color: var(--off-white); }
.intro-quote em { font-style: italic; color: var(--gold-light); }
.intro-divider { margin: 3.5rem auto; width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold), transparent); }
.intro-body { font-weight: 200; font-size: clamp(0.7rem,1.5vw,0.85rem); letter-spacing: 0.28em; line-height: 2.5; color: rgba(255,255,255,0.85); text-transform: uppercase; }

.journey-header { text-align: center; padding: 5rem 2rem 2.5rem; scroll-margin-top: 80px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.journey-header h2 { font-family: 'Cinzel', serif; font-weight: 400; font-size: clamp(0.6rem,1.3vw,0.78rem); letter-spacing: 0.7em; text-transform: uppercase; color: var(--gold); }
.section-nav { display: flex; justify-content: center; flex-wrap: wrap; border-top: 1px solid rgba(201,151,58,0.15); border-bottom: 1px solid rgba(201,151,58,0.15); margin-top: 2rem; width: 100%; }
.section-nav a { font-weight: 600; font-size: 0.58rem; letter-spacing: 0.45em; text-transform: uppercase; color: #fff; text-decoration: none; padding: 1.3rem 2.2rem; border-right: 1px solid rgba(201,151,58,0.1); transition: color 0.3s, background 0.3s; white-space: nowrap; }
.section-nav a:first-child { border-left: 1px solid rgba(201,151,58,0.1); }
.section-nav a:hover { color: var(--gold-light); background: rgba(201,151,58,0.05); }
@media (max-width: 820px) {
  .section-nav { flex-wrap: nowrap; }
  .section-nav a { flex: 1; text-align: center; font-size: 0.42rem; letter-spacing: 0.2em; padding: 1.2rem 0.3rem; border-left: none; border-right: 1px solid rgba(201,151,58,0.1); }
  .section-nav a:first-child { border-left: none; }
  .section-nav a:last-child { border-right: none; }
}

.sections-grid { display: grid; gap: 1px; background: rgba(201,151,58,0.08); margin-top: 1px; }

/* ── Desktop: two-column grid ──────────────────────────────── */
.section-card {
  position: relative;
  min-height: 110vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--dark);
}
/* Flip: swap columns on desktop only — content right, visual left */
@media (min-width: 821px) {
  .section-card.flip .card-content { order: 2; }
  .section-card.flip .card-visual  { order: 1; }
}

.section-title-img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto 0.5rem auto; filter: drop-shadow(0 0 20px rgba(201,151,58,0.3)); transition: filter 0.3s, transform 0.3s; }
.section-logo-link { display: block; }
.section-logo-link:hover .section-title-img { filter: drop-shadow(0 0 35px rgba(201,151,58,0.7)); transform: scale(1.03); }

.card-tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(0.95rem,2.2vw,1.35rem); color: rgba(245,238,216,0.4); margin-bottom: 2rem; }

.back-to-sections { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.5rem; font-family: 'Cinzel', serif; font-weight: 600; font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.3); padding: 0.8rem 2rem; transition: color 0.3s, border-color 0.3s; }
.back-to-sections::before { content: '\2191'; font-size: 0.7rem; transition: transform 0.3s; }
.back-to-sections:hover { color: var(--gold-light); border-color: var(--gold); }
.back-to-sections:hover::before { transform: translateY(-3px); }

.card-visual { position: relative; overflow: hidden; background: var(--dark); display: flex; align-items: center; justify-content: center; }
.card-visual-bg { position: absolute; inset: 0; transition: transform 0.9s ease; z-index: 0; }
.section-card:hover .card-visual-bg { transform: scale(1.05); }

.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 1; transition: transform 0.6s ease; }

.card-photo-link { position: absolute; inset: 0; z-index: 2; display: block; }
.card-photo-link .card-photo { transition: transform 0.6s ease, filter 0.4s ease; }
.card-photo-link:hover .card-photo { transform: scale(1.04); filter: brightness(1.08); }

.card-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--dark) 0%, transparent 25%), linear-gradient(to left, var(--dark) 0%, transparent 25%), linear-gradient(to top, var(--dark) 0%, transparent 20%); pointer-events: none; z-index: 4; }

.card-visual-orb { position: absolute; border-radius: 50%; filter: blur(55px); animation: orb-pulse 6s ease-in-out infinite; pointer-events: none; z-index: 3; }
@keyframes orb-pulse { 0%,100%{opacity:.55;transform:scale(1)} 50%{opacity:.9;transform:scale(1.1)} }

.card-content { padding: clamp(3rem,6vw,7rem); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; z-index: 2; overflow: hidden; }

.daydream .card-tagline   { color: rgba(240,200,200,0.5); }
.deja-vu .card-tagline    { color: rgba(160,237,224,0.5); }
.lucid .card-tagline      { color: rgba(213,205,245,0.5); }
.moonkissed .card-tagline { color: rgba(176,200,248,0.5); }
.halo .card-tagline       { color: rgba(200,240,220,0.5); }

@media (max-width: 820px) {
  /* ── Mobile: single column flex — photo top, content bottom ── */
  .section-card,
  .section-card.flip {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    grid-template-columns: unset !important;
  }

  /* Photo ALWAYS first (top), content ALWAYS second (bottom) */
  .section-card .card-visual        { order: 1 !important; }
  .section-card .card-content       { order: 2 !important; }
  /* Explicitly reset flip overrides on mobile */
  .section-card.flip .card-visual   { order: 1 !important; }
  .section-card.flip .card-content  { order: 2 !important; }

  /* Photo panel height */
  .card-visual { height: 92vw !important; width: 100% !important; min-height: unset !important; flex-shrink: 0 !important; }

  /* Content panel */
  .card-content { padding: 2.2rem 1.5rem 2.8rem !important; width: 100% !important; }

  /* Gradient: bottom fade only on mobile */
  .card-visual::after {
    background: linear-gradient(to top, var(--dark) 0%, transparent 35%) !important;
  }
}

.finale { padding: 10rem 2rem 8rem; text-align: center; position: relative; background: var(--near-black); overflow: hidden; }
.finale-glyph { position: absolute; width: min(80vw,700px); height: min(80vw,700px); top: 50%; left: 50%; opacity: 0.06; mix-blend-mode: screen; animation: spin-ccw 80s linear infinite; pointer-events: none; transform: translate(-50%,-50%); }
.finale-glyph img { width: 100%; height: 100%; object-fit: contain; }
.finale h2 { font-family: 'Cinzel', serif; font-weight: 400; font-size: clamp(0.6rem,1.4vw,0.8rem); letter-spacing: 0.7em; text-transform: uppercase; color: var(--gold); margin-bottom: 4rem; position: relative; }
.finale-quote { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem,4vw,2.8rem); font-weight: 300; line-height: 1.65; color: var(--off-white); max-width: 700px; margin: 0 auto 3rem; position: relative; }
.finale-quote em { font-style: italic; color: var(--gold-light); }
.finale-body { font-weight: 100; font-size: 0.65rem; letter-spacing: 0.45em; line-height: 2.5; text-transform: uppercase; color: rgba(201,151,58,0.4); margin-bottom: 4rem; position: relative; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.26s; }
.reveal-d3 { transition-delay: 0.4s; }
.reveal-d4 { transition-delay: 0.55s; }

footer.site-footer { padding: 4rem 3rem 3rem; border-top: 1px solid rgba(201,151,58,0.12); text-align: center; }
.footer-brand { font-family: 'Cinzel', serif; font-weight: 400; font-size: clamp(1.1rem,2.5vw,1.6rem); letter-spacing: 0.3em; text-transform: uppercase; color: var(--off-white); margin-bottom: 2rem; }
.footer-brand span { color: var(--gold); }
.footer-copy { font-weight: 100; font-size: 0.58rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(245,238,216,0.2); line-height: 2.4; margin-top: 2rem; }
.footer-socials { display: flex; justify-content: center; gap: 1.8rem; margin-bottom: 0.5rem; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(201,151,58,0.3); color: rgba(201,151,58,0.6); border-radius: 50%; transition: color 0.3s, border-color 0.3s, background 0.3s; text-decoration: none; }
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(201,151,58,0.08); }

.admin-bar nav.site-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav.site-nav { top: 46px; } }

/* ── Elementor / generic page full-width ─────────────────────── */
.kairos-page-content,
.kairos-page-entry {
  max-width: 100%;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Non-Elementor page: add top padding so content clears the fixed nav */
body:not(.elementor-page) .kairos-page-content {
  padding-top: 90px;
}

/* Elementor canvas template — no header/footer, zero constraints */
body.elementor-editor-active .kairos-page-content,
body.elementor-page .kairos-page-content,
body.elementor-page .kairos-page-entry {
  padding: 0 !important;
  margin: 0 !important;
}

/* Prevent the theme nav overlapping Elementor editor top bar */
body.elementor-editor-active nav.site-nav { display: none; }
