/* ═══════════════════════════════════════════════════════════════
   FlowStateOps Homepage CSS
   Applies only on the front page (loaded conditionally via functions.php)
   Nav and standalone footer styles intentionally omitted — Blocksy handles those.
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── TOKENS ─── */
:root {
  --bg:           #090805;
  --bg-raised:    #100e09;
  --bg-accent:    #18140c;
  --gold:         #c4963a;
  --gold-light:   #ddb96a;
  --gold-dim:     #6b4f1e;
  --cream:        #ede4d4;
  --cream-dim:    #9a8f7e;
  --cream-muted:  #534b42;
  --white:        #f5f0e8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --pad-section: clamp(5rem, 10vw, 8rem);
  --pad-x:       clamp(1.5rem, 6vw, 5rem);
  --max-copy:    640px;
}

html { scroll-behavior: smooth; }

/* ─── GLOBAL BACKGROUND — overrides Blocksy ─── */
body,
html {
  background: var(--bg) !important;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  line-height: 1.8;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* Blocksy body/page wrapper — ensure dark background bleeds through */
#page.site,
.site,
.site-content,
#content,
#primary,
.content-area,
#main,
.site-main {
  background: transparent !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ─── BLOCKSY HEADER OVERRIDES ─── */
/* Dark header to match the page aesthetic */
header.site-header,
.site-header,
[data-id="header"] {
  background: rgba(9, 8, 5, 0.92) !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Site title — gold, Cormorant Garamond, letter-spaced */
.site-title a,
.site-title,
.site-branding .site-title a,
.ct-site-title,
.ct-site-title a {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #c4963a !important;
  text-decoration: none !important;
}

/* Navigation links */
.ct-main-menu > li > a,
.main-navigation a,
.site-header nav a,
#primary-menu a,
.ct-menu a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #9a8f7e !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.ct-main-menu > li > a:hover,
#primary-menu a:hover,
.ct-menu a:hover {
  color: #ddb96a !important;
}

/* ─── BLOCKSY FOOTER OVERRIDE ─── */
.site-footer,
footer.site-footer {
  background: var(--bg) !important;
  border-top: 1px solid rgba(196, 150, 58, 0.1) !important;
  color: var(--cream-muted) !important;
}
.site-footer a,
footer.site-footer a {
  color: var(--cream-muted) !important;
}

/* ─── TYPOGRAPHY ─── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
}

h1 { font-size: clamp(3.2rem, 8.5vw, 7.5rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: var(--white); }

h1 em, h2 em { font-style: italic; color: var(--gold-light); }

p { color: var(--cream-dim); line-height: 1.85; margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
p strong { color: var(--cream); font-weight: 500; }
p em { font-style: italic; color: var(--cream); }

/* ─── EYEBROW ─── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

/* ─── BUTTON ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 0.9rem 2rem 0.85rem;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  background: transparent;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.35s ease;
  z-index: 0;
}
.btn:hover { color: var(--bg); border-color: var(--gold); }
.btn:hover::before { transform: translateX(0); }
.btn span, .btn .arrow { position: relative; z-index: 1; }
.btn .arrow { transition: transform 0.3s ease; font-style: normal; }
.btn:hover .arrow { transform: translateX(5px); }

.btn-note {
  font-size: 0.75rem;
  color: var(--cream-muted);
  letter-spacing: 0.06em;
  margin-top: 0.85rem;
}

/* ─── DIVIDER ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 var(--pad-x);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
  opacity: 0.6;
}
.divider::after { background: linear-gradient(to left, transparent, var(--gold-dim)); }
.divider-gem {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.75;
  flex-shrink: 0;
}

/* ─── HERO ─── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad-section) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 15% 75%, rgba(196,150,58,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 15%, rgba(196,150,58,0.04) 0%, transparent 55%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.05s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

#hero h1 {
  margin-bottom: 2rem;
  max-width: 13ch;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s forwards;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 38ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.35s forwards;
}

.hero-body {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--cream-muted);
  max-width: 50ch;
  margin-bottom: 4rem;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

#hero .btn {
  opacity: 0;
  animation: fadeUp 0.9s ease 0.65s forwards;
}

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

@keyframes slowSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.hero-orb {
  position: absolute;
  top: 50%;
  right: 24%;
  width: clamp(320px, 50vw, 620px);
  height: clamp(320px, 50vw, 620px);
  opacity: 0.1;
  pointer-events: all;
  cursor: default;
  animation: slowSpin 150s linear infinite;
  transition: filter 0.6s ease, opacity 0.6s ease;
}
.hero-orb:hover {
  opacity: 0.18;
  filter: drop-shadow(0 0 18px rgba(196, 150, 58, 0.45)) drop-shadow(0 0 40px rgba(196, 150, 58, 0.2));
}

/* ─── RECOGNITION ─── */
#recognition {
  background: var(--bg-raised);
  padding: calc(var(--pad-section) + 8rem) var(--pad-x) var(--pad-section);
  position: relative;
  overflow: hidden;
}
#recognition .inner {
  max-width: var(--max-copy);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
#recognition h2 { margin-bottom: 2rem; }
#recognition p + p { margin-top: 0; }

.moon-phases {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.moon-phase {
  opacity: 0.07;
  cursor: default;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.moon-phase:hover {
  opacity: 0.55;
  filter: drop-shadow(0 0 10px rgba(196,150,58,0.9)) drop-shadow(0 0 28px rgba(196,150,58,0.5));
}
.moon-lit {
  fill: var(--gold-dim);
}
.moon-ring {
  fill: none;
  stroke: #c4963a;
  stroke-width: 0.8;
}

/* ─── GAP ─── */
#gap {
  padding: var(--pad-section) 0;
  position: relative;
  overflow: hidden;
}

#gap::before {
  content: '≠';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-10%, -50%);
  font-family: var(--font-display);
  font-size: clamp(14rem, 38vw, 55rem);
  font-weight: 300;
  color: var(--gold-dim);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.gap-bars {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.gap-bar-row {
  display: grid;
  grid-template-columns: var(--pad-x) clamp(7rem, 14vw, 12rem) 1fr;
  align-items: center;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(83,75,66,0.3);
  position: relative;
}
.gap-bar-row:last-child { border-bottom: 1px solid rgba(83,75,66,0.3); }

.gap-bar-label {
  grid-column: 2;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-right: 1rem;
}
.gap-bar-row:not(:first-child) .gap-bar-label { color: var(--cream-muted); }

.gap-bar-track {
  grid-column: 3;
  height: 2px;
  background: rgba(83,75,66,0.25);
  position: relative;
}

.gap-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gap-bar-row:first-child  .gap-bar-fill { background: var(--gold-light); }
.gap-bar-row:nth-child(2) .gap-bar-fill { background: var(--cream-muted); }
.gap-bar-row:nth-child(3) .gap-bar-fill { background: var(--cream-muted); }

.gap-bar-word {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(calc(-50% - 1.1rem));
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  white-space: nowrap;
  line-height: 1;
}
.gap-bar-row:first-child  .gap-bar-word { color: var(--white); font-style: italic; }
.gap-bar-row:nth-child(2) .gap-bar-word { color: var(--cream-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.gap-bar-row:nth-child(3) .gap-bar-word { color: var(--cream-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

#gap.bars-visible .gap-bar-row:first-child  .gap-bar-fill { width: 100%; }
#gap.bars-visible .gap-bar-row:nth-child(2) .gap-bar-fill { width: 18%; transition-delay: 0.2s; }
#gap.bars-visible .gap-bar-row:nth-child(3) .gap-bar-fill { width: 11%; transition-delay: 0.35s; }

.gap-copy {
  padding: 0 var(--pad-x);
  max-width: clamp(300px, 45%, 560px);
  position: relative;
  z-index: 1;
}

.gap-pull {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 2rem;
}
.gap-pull strong {
  font-weight: 600;
  color: var(--gold-light);
  display: block;
  margin-top: 0.1em;
}

@media (max-width: 540px) {
  .gap-bar-word { font-size: 1.1rem; }
  #gap::before { display: none; }
}

/* ─── OFFER ─── */
#offer {
  background: var(--bg-accent);
  padding: var(--pad-section) var(--pad-x);
}

.offer-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .offer-layout { grid-template-columns: 1fr; gap: 3.5rem; }
}

.offer-content h2 { margin-bottom: 1.75rem; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}
@media (max-width: 540px) {
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
}

.pillar {
  border-top: 1px solid var(--gold-dim);
  padding-top: 1.25rem;
}
.pillar-label {
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.pillar p { font-size: 0.9rem; color: var(--cream-dim); line-height: 1.7; margin: 0; }

.audit-card {
  margin-top: 3.5rem;
  border: 1px solid var(--gold-dim);
  padding: 2.25rem;
  position: relative;
  background: rgba(196,150,58,0.025);
}
.audit-card::before {
  content: 'The Entry Point';
  position: absolute;
  top: -0.6rem;
  left: 1.75rem;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-accent);
  padding: 0 0.6rem;
}
.audit-card h3 { margin-bottom: 0.75rem; }
.audit-card p { font-size: 0.92rem; margin-bottom: 1.25rem; }
.audit-card p:last-of-type { margin-bottom: 1.75rem; }

/* ─── RUNE CARD ─── */
.rune-card {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--gold-dim);
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: rgba(196,150,58,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  transition: box-shadow 0.5s ease;
}
.rune-card::before {
  content: 'Your Reading';
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-accent);
  padding: 0 0.65rem;
  white-space: nowrap;
}
.rune-card.glowing {
  box-shadow: 0 0 40px rgba(196,150,58,0.12), 0 0 80px rgba(196,150,58,0.06);
}

.rune-name-display {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  min-height: 1em;
  transition: opacity 0.3s;
}

.rune-symbol-display {
  font-family: 'Segoe UI Historic', 'Noto Serif', 'FreeSerif', serif;
  font-size: 6.5rem;
  line-height: 1;
  color: var(--gold-light);
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 0 0px rgba(196,150,58,0));
}
.rune-symbol-display.shuffling {
  opacity: 0.5;
  filter: blur(2px);
}
.rune-symbol-display.settling {
  animation: runeSettle 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes runeSettle {
  0%   { opacity: 0; filter: blur(6px) drop-shadow(0 0 20px rgba(196,150,58,0.8)); transform: scale(0.85); }
  60%  { filter: blur(0) drop-shadow(0 0 12px rgba(196,150,58,0.4)); }
  100% { opacity: 1; filter: blur(0) drop-shadow(0 0 4px rgba(196,150,58,0.15)); transform: scale(1); }
}

.rune-meaning-display {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream-dim);
  line-height: 1.55;
  min-height: 3em;
  transition: opacity 0.4s;
}

.rune-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  opacity: 0.4;
}

.rune-btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--cream-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--cream-muted);
  transition: color 0.3s, border-color 0.3s;
}
.rune-btn:hover { color: var(--gold-light); border-color: var(--gold-dim); }
.rune-btn:disabled { opacity: 0.4; cursor: default; }

/* ─── WHY JEFF ─── */
#jeff {
  padding: var(--pad-section) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.jeff-bg-text {
  position: absolute;
  right: calc(var(--pad-x) - 1rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 300;
  color: var(--bg-accent);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: all;
  cursor: default;
  opacity: 1;
  transition: opacity 0.6s ease, filter 0.6s ease;
}
.jeff-bg-text:hover {
  opacity: 0.7;
  filter: drop-shadow(0 0 18px rgba(196,150,58,0.45)) drop-shadow(0 0 40px rgba(196,150,58,0.2));
}
#jeff .inner {
  max-width: var(--max-copy);
  position: relative;
  z-index: 1;
}
#jeff h2 { margin-bottom: 2rem; }

.jeff-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold-dim);
}

.jeff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.tag {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  border: 1px solid var(--cream-muted);
  padding: 0.28rem 0.65rem;
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s, border-color 0.3s;
}
.tag:hover { opacity: 1; color: var(--gold-light); border-color: var(--gold-dim); }

/* ─── D20 ─── */
.cta-d20 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vh, 90vw);
  height: min(90vh, 90vw);
  opacity: 0.09;
  pointer-events: all;
  cursor: default;
  transition: filter 0.6s ease, opacity 0.6s ease;
}
.cta-d20:hover {
  opacity: 0.18;
  filter: drop-shadow(0 0 18px rgba(196,150,58,0.45)) drop-shadow(0 0 40px rgba(196,150,58,0.2));
}

/* ─── CTA CLOSER ─── */
#cta {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--pad-section) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(196,150,58,0.065) 0%, transparent 70%);
  pointer-events: none;
}
#cta .inner {
  max-width: 580px;
  position: relative;
  z-index: 1;
}
#cta h2 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 1.5rem; }
#cta p { max-width: 44ch; margin: 0 auto 1.25rem; }
#cta p:last-of-type { margin-bottom: 2.75rem; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── MOBILE CLEANUP ─── */
@media (max-width: 480px) {
  #gap::before { display: none; }
  #gap .inner  { padding-left: 0; }
  .jeff-bg-text { display: none; }
  .cta-d20  { display: none; }
}
