/* =========================================================
   GROOME — Premium story-driven website
   Palette pulled from the Groome app (purple system)
   ========================================================= */

:root {
  /* Brand purples (from the app theme) */
  --primary: #9333ea;
  --primary-dark: #7e22ce;
  --primary-deep: #490081;
  --primary-container: #c084fc;
  --primary-tint: #f3e8ff;
  --secondary: #ddbaf0;

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --bg-muted: #efeef3;
  --ink: #18181b;
  --ink-soft: #52525b;
  --ink-muted: #a1a1aa;
  --line: #e9e7ee;

  /* Dark "problem space" */
  --dark-bg: #0e0a16;
  --dark-bg-2: #160f24;
  --dark-card: #1b1430;
  --dark-line: #2c2342;
  --dark-ink: #f3effa;
  --dark-ink-soft: #b9aed0;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 14px 40px -10px rgba(24, 24, 27, 0.12), 0 4px 10px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 40px 80px -20px rgba(73, 0, 129, 0.25), 0 10px 20px -10px rgba(73, 0, 129, 0.1);
  --shadow-glow: 0 0 60px -10px rgba(147, 51, 234, 0.45), 0 0 20px rgba(147, 51, 234, 0.2);

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; max-width: 100vw; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.wrap { width: 100%; max-width:  1440px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-tint);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow.on-dark { color: var(--secondary); background: rgba(147, 51, 234, 0.16); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

.grad-text, .grad-text .tr-word {
  background: linear-gradient(120deg, var(--primary) 10%, var(--primary-container) 60%, var(--primary-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.98rem; padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost.on-dark { color: var(--dark-ink); border-color: var(--dark-line); }
.btn-ghost.on-dark:hover { border-color: var(--primary-container); color: var(--primary-container); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { transform: translateY(-2px); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 0;
}
.nav.nav-hidden {
  transform: translateY(-150px);
}
.nav.scrolled {
  padding-top: 0; /* Removed padding change on scroll since it's absolute now */
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-top: 20px;
}
.nav.scrolled .nav-inner {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
@media (max-width: 1024px) {
  .nav-inner {
    margin-top: 10px;
    padding: 12px 18px;
  }
}
/* Dark-aware nav: when over a dark section */
.nav.scrolled.nav-dark .nav-inner {
  background: transparent !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.nav.nav-dark .nav-links a { color: var(--dark-ink-soft); }
.nav.nav-dark .nav-links a:hover { color: #fff; background: rgba(147,51,234,0.15); }
.nav.nav-dark .brand { color: #fff; }
.nav.nav-dark .brand img { filter: none; }
.nav.nav-dark .btn-ghost { color: var(--dark-ink); border-color: var(--dark-line); }
.nav.nav-dark .btn-ghost:hover { border-color: var(--primary-container); color: var(--primary-container); }
.nav.nav-dark .nav-toggle span { background: #fff; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { max-width: 140px; height: 44px; object-fit: contain; filter: invert(1); transition: opacity 0.3s ease, filter 0.3s ease; }
@media (max-width: 860px) {
  .brand img { height: 32px; max-width: 100px; }
}
.nav .brand span { display: none; } /* Hide Groome text only in navbar */

.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a {
  font-size: 1.05rem; font-weight: 600; color: var(--ink-soft);
  padding: 10px 18px; border-radius: 100px; transition: .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-tint); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-primary { padding: 8px 20px; font-size: 0.9rem; font-weight: 700; height: 38px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 160px 0 90px;
  background:
    radial-gradient(900px 500px at 75% -5%, var(--primary-tint), transparent 60%),
    radial-gradient(700px 500px at 5% 20%, #faf5ff, transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin: 22px 0 18px; }
.hero .lead { font-size: 1.18rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.hero-stats .lbl { font-size: 0.85rem; color: var(--ink-muted); }

/* Floating semi-3D hero visual */
.hero-visual { position: relative; height: 460px; }
.float-card {
  position: absolute; background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
  padding: 18px 20px; display: flex; align-items: center; gap: 13px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; background: var(--primary-tint); color: var(--primary);
}
.float-card .t { font-weight: 700; font-size: 0.95rem; }
.float-card .s { font-size: 0.8rem; color: var(--ink-muted); }
.fc-1 { top: 12%; left: 2%; animation-delay: 0s; }
.fc-2 { top: 40%; right: 0%; animation-delay: 1.2s; }
.fc-3 { bottom: 6%; left: 14%; animation-delay: 2.1s; }
.hero-orb {
  position: absolute; inset: 18% 20%; border-radius: 50%;
  background: conic-gradient(from 120deg, var(--primary), var(--primary-container), var(--secondary), var(--primary));
  filter: blur(8px); opacity: 0.92; box-shadow: var(--shadow-glow);
  animation: spin 18s linear infinite;
}
.hero-orb::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,0.25) 45%, transparent 60%);
  mix-blend-mode: screen;
}
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes spin { to { transform: rotate(360deg) } }

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 16px 0 16px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* =========================================================
   THE INTERACTIVE STORY (scroll-driven problem -> solution)
   A pinned, cinematic sequence:
   problem space (dark) -> converge + beam -> flip -> solution (bright)
   ========================================================= */
.story {
  background: var(--dark-bg);
  color: var(--dark-ink);
  transition: background 1.1s ease, color 1.1s ease;
}
.story.solved {
  background:
    radial-gradient(900px 600px at 50% 8%, var(--primary-tint), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg-soft));
  color: var(--ink);
}

/* Tall scroll track drives the pinned stage */
.story-track { position: relative; height: 480vh; }
.story-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* Intro headline (fades out as cards converge) */
.story-intro {
  position: absolute; top: 12vh; left: 0; right: 0; text-align: center;
  padding: 0 24px; z-index: 4; transition: opacity .5s ease, transform .5s ease;
}
.story-intro h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 16px auto 10px; max-width: 16ch; }
.story-intro p { color: var(--dark-ink-soft); transition: color 1s; }
.story.solved .story-intro p { color: var(--ink-soft); }
.scroll-hint {
  display: inline-block; margin-top: 16px; font-size: 0.82rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary-container); animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0%,100% { transform: translateY(0); opacity: .6 } 50% { transform: translateY(6px); opacity: 1 } }

/* Beam of light behind cards during the transition */
.beam {
  position: absolute; top: 50%; left: 50%; width: 120vw; height: 60vh;
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(closest-side, rgba(192,132,252,0.55), rgba(147,51,234,0.18) 45%, transparent 72%);
  filter: blur(8px);
}
.beam::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 90%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 60px 20px rgba(255,255,255,0.55);
}

/* Card deck */
.deck {
  position: relative; z-index: 3; transform-origin: center center;
  display: flex; gap: 26px; justify-content: center; align-items: stretch;
  width: 100%; max-width: var(--maxw); padding: 0 24px;
}
.flip {
  position: relative; flex: 0 0 248px; width: 248px; height: 390px;
  will-change: transform; perspective: 1400px;
}
.flip-float { width: 100%; height: 100%; transform-style: preserve-3d; animation: floatCard 6s ease-in-out infinite; }
.flip:nth-child(2) .flip-float { animation-delay: -1.5s; }
.flip:nth-child(3) .flip-float { animation-delay: -3s; }
.flip:nth-child(4) .flip-float { animation-delay: -4.5s; }
@keyframes floatCard { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

.flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; will-change: transform;
}
.face {
  position: absolute; inset: 0; border-radius: var(--radius); padding: 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; overflow: hidden;
}
/* Problem face — muted, low contrast */
.face-front {
  background: linear-gradient(180deg, var(--dark-card), #181128);
  border: 1px solid var(--dark-line);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.85);
}
/* Solution face — bright, clean, confident */
.face-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #ffffff, #fbf7ff);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}

/* Scene illustration area */
.scene { height: 165px; margin: -4px -4px 12px; display: grid; place-items: center; }
.scene svg { width: 100%; height: 100%; }

.face-txt { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.chip {
  align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.face-front .chip { background: rgba(255,255,255,0.07); color: #cdbceeff; }
.face-back .chip { background: #dcfce7; color: #15803d; }
.face-txt h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
.face-front .face-txt h3 { color: #f3effa; }
.face-back .face-txt h3 { color: var(--ink); }
.face-txt p { font-size: 0.88rem; line-height: 1.45; }
.face-front .face-txt p { color: var(--dark-ink-soft); }
.face-back .face-txt p { color: var(--ink-soft); }
.status { font-weight: 700; font-size: 0.82rem; margin-top: 4px; }
.status.problem { color: #c98aff; }
.status.ok { color: #16a34a; }

/* Big statement that appears mid-transition */
.story-statement {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; padding: 0 24px; z-index: 5; pointer-events: none;
}
.story-statement span { display: block; font-weight: 800; letter-spacing: -0.02em; }
.s-gamble { font-size: clamp(1.8rem, 5vw, 3.2rem); color: #fff; opacity: 0; text-shadow: 0 8px 40px rgba(147,51,234,0.5); }
.s-final { font-size: clamp(1.6rem, 4.2vw, 2.8rem); opacity: 0; max-width: 18ch; margin: 0 auto; }

/* Final CTAs */
.story-actions {
  position: absolute; bottom: 9vh; left: 0; right: 0; z-index: 5;
  display: flex; gap: 14px; justify-content: center; opacity: 0;
  transition: opacity .6s ease; pointer-events: none;
}
.story-actions.show { opacity: 1; pointer-events: auto; }

/* ---- SVG scene animations ---- */
.an-spin { transform-box: fill-box; transform-origin: bottom center; animation: anSpin 7s linear infinite; }
.an-spin-slow { transform-box: fill-box; transform-origin: bottom center; animation: anSpin 26s linear infinite; }
.an-blink { animation: anBlink 2.6s ease-in-out infinite; }
.an-blink2 { animation: anBlink 1.7s ease-in-out infinite .7s; }
.an-float { transform-box: fill-box; transform-origin: center; animation: anFloat 3.6s ease-in-out infinite; }
.an-float2 { transform-box: fill-box; transform-origin: center; animation: anFloat 4.4s ease-in-out infinite .8s; }
.an-sway { transform-box: fill-box; transform-origin: top center; animation: anSway 3.2s ease-in-out infinite; }
.an-pulse { transform-box: fill-box; transform-origin: center bottom; animation: anPulse 2.6s ease-out infinite; }
.an-pulse2 { transform-box: fill-box; transform-origin: center bottom; animation: anPulse 2.6s ease-out infinite 1.3s; }
.an-rise { transform-box: fill-box; transform-origin: bottom; animation: anRise 2.8s ease-in-out infinite alternate; }
@keyframes anSpin { to { transform: rotate(360deg) } }
@keyframes anBlink { 0%,100% { opacity: 1 } 50% { opacity: .12 } }
@keyframes anFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes anSway { 0%,100% { transform: rotate(-6deg) } 50% { transform: rotate(6deg) } }
@keyframes anPulse { 0% { transform: scale(.55); opacity: .9 } 70% { opacity: .15 } 100% { transform: scale(1.3); opacity: 0 } }
@keyframes anRise { from { transform: scaleY(.55) } to { transform: scaleY(1) } }

/* =========================================================
   FEATURE GRID (Discover / individuals)
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature:hover { box-shadow: var(--shadow-md); border-color: var(--secondary); }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; 
  background: linear-gradient(135deg, rgba(147,51,234,0.08), rgba(192,132,252,0.12));
  color: var(--primary); margin-bottom: 18px;
  border: 1px solid rgba(147,51,234,0.15);
}
.feature h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }
.feature.big { grid-column: span 2; display: flex; gap: 26px; align-items: center;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-dark)); color: #fff; border: 0; }
.feature.big .ico { background: rgba(255,255,255,0.14); color: #fff; }
.feature.big p { color: rgba(255,255,255,0.82); }

/* =========================================================
   FOR BUSINESSES
   ========================================================= */
.biz { background: var(--bg-soft); }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.biz-list { display: grid; gap: 16px; }
.biz-item {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.biz-item:hover {}
.biz-item .ico { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; 
  background: linear-gradient(135deg, rgba(147,51,234,0.08), rgba(192,132,252,0.12));
  color: var(--primary); font-size: 1.15rem;
  border: 1px solid rgba(147,51,234,0.15); }
.biz-item h4 { font-size: 1.05rem; margin-bottom: 2px; }
.biz-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* =========================================================
   JOURNEY / STORY + MILESTONES + TEAM
   ========================================================= */
.story-quote {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em;
  max-width: 22ch; margin: 0 auto 12px; text-align: center; }
.mile.done .dot { background: var(--primary); color: #fff; }
.mile.expanded .dot { transform: scale(1.1); box-shadow: 0 0 15px rgba(192, 132, 252, 0.4); border-color: var(--primary); }
.mile h4 { font-size: 1rem; margin-bottom: 2px; }
.mile p { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0; }
.mile-details { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }
.mile.expanded .mile-details { max-height: 300px; opacity: 1; margin-top: 12px; }
.member {
  text-align: center; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 18px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.member:hover { box-shadow: var(--shadow-md); }
.member .ph {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  border: 3px solid var(--primary-tint); box-shadow: var(--shadow-sm);
}
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member h4 { font-size: 1.08rem; }
.member .role { color: var(--primary); font-weight: 700; font-size: 0.86rem; margin: 2px 0 6px; }
.member .resp { font-size: 0.82rem; color: var(--ink-muted); }

/* =========================================================
   COMMUNITY
   ========================================================= */
.community { background: var(--dark-bg); color: var(--dark-ink); }
.community .section-head h2 { color: #fff; }
.community .lead { color: var(--dark-ink-soft); }
.comm-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.comm-card {
  background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s; color: #fff;
}
.comm-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.comm-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; 
  background: linear-gradient(135deg, rgba(147,51,234,0.10), rgba(192,132,252,0.16));
  color: var(--primary-container); margin-bottom: 16px;
  border: 1px solid rgba(147,51,234,0.2); }
.comm-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.comm-card p { color: var(--dark-ink-soft); font-size: 0.94rem; }

/* =========================================================
   JOIN US
   ========================================================= */
.join { background: var(--bg-soft); }
.join-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.join-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.join-card.feature-dark { background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark)); color: #fff; border: 0; }
.join-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 16px; 
  background: linear-gradient(135deg, rgba(147,51,234,0.08), rgba(192,132,252,0.12));
  color: var(--primary);
  border: 1px solid rgba(147,51,234,0.15); }
.join-card.feature-dark .ico { background: rgba(255,255,255,0.16); color: #fff; }
.join-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.join-card p { color: var(--ink-soft); margin-bottom: 20px; }
.join-card.feature-dark p { color: rgba(255,255,255,0.84); }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input {
  flex: 1; min-width: 200px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--primary); background: #fff; }
.feature-dark .field input { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.feature-dark .field input::placeholder { color: rgba(255,255,255,0.7); }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 12px; }
.feature-dark .form-note { color: rgba(255,255,255,0.7); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark-bg); color: var(--dark-ink); padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand .brand img { filter: none; }
.foot-brand p { color: var(--dark-ink-soft); font-size: 0.94rem; max-width: 34ch; }
.foot-col h5 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-container); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--dark-ink-soft); font-size: 0.93rem; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--dark-card); border: 1px solid var(--dark-line); font-size: 1.1rem; transition: .2s; }
.socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.foot-bottom { border-top: 1px solid var(--dark-line); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--dark-ink-soft); font-size: 0.86rem; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow-lg); z-index: 200;
  transition: transform .4s var(--ease); display: flex; gap: 8px; align-items: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; order: -1; }
  .deck { gap: 18px; }
  .flip { flex: 0 0 210px; width: 210px; height: 376px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.big { grid-column: span 2; }
  .biz-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .timeline::before { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .comm-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
  .hero-stats { gap: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature.big { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }
}

/* =========================================================
   PATH CARDS (home links to indexable pages)
   ========================================================= */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.path-card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary); margin-bottom: 8px; }
.path-card h3 { font-size: 1.25rem; }
.path-card p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.path-link { color: var(--primary); font-weight: 700; font-size: 0.92rem; }

/* =========================================================
   SUB-PAGE HERO + CTA BAND
   ========================================================= */
.page-hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(800px 420px at 80% -10%, var(--primary-tint), transparent 60%),
    radial-gradient(600px 400px at 0% 10%, #faf5ff, transparent 55%);
}
.page-hero.dark {
  background: linear-gradient(180deg, var(--dark-bg), var(--dark-bg-2));
  color: var(--dark-ink);
}
.page-hero .breadcrumbs { font-size: .85rem; color: var(--ink-muted); margin-bottom: 6px; }
.page-hero.dark .breadcrumbs { color: var(--dark-ink-soft); }
.page-hero .breadcrumbs a:hover { color: var(--primary); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 14px 0 16px; max-width: 18ch; }
.page-hero.dark h1 { color: #fff; }
.page-hero p.lead { font-size: 1.15rem; }
.page-hero .core-msg { margin-top: 22px; font-weight: 700; color: var(--primary); font-size: 1.05rem; }

.nav-links a[aria-current="page"] { color: var(--primary); background: var(--primary-tint); }

.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;
}

/* Simple legal / prose pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { color: var(--ink-soft); margin: 0 0 12px 20px; }
.prose li { margin-bottom: 6px; }

.cta-band {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 54px 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.7rem,3.5vw,2.4rem); color:#fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 24px; }
.cta-band .hero-cta { justify-content: center; }

@media (max-width: 980px) { .path-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .path-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CINEMATIC HERO + MOTION (home)
   ========================================================= */
.hero {
  position: relative; min-height: 94vh; display: flex; align-items: center;
  padding: 150px 0 70px; overflow: hidden;
  background:
    radial-gradient(1100px 700px at 80% -10%, var(--primary-tint), transparent 55%),
    radial-gradient(800px 600px at -5% 25%, #faf5ff, transparent 55%),
    linear-gradient(180deg, #ffffff, #fbf8ff);
}
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; animation: drift 20s ease-in-out infinite; will-change: transform; }
.aurora .a1 { width: 460px; height: 460px; background: var(--primary-container); top: -120px; right: 4%; }
.aurora .a2 { width: 380px; height: 380px; background: var(--secondary); bottom: -100px; left: 2%; animation-delay: -7s; }
.aurora .a3 { width: 320px; height: 320px; background: rgba(147,51,234,.28); top: 28%; left: 42%; animation-delay: -13s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1) } 33% { transform: translate(34px,-22px) scale(1.08) } 66% { transform: translate(-22px,22px) scale(.95) } }
.hero .hero-grid { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); line-height: 1.03; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; }

.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 38px; }
.trust-row .ti .n { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.trust-row .ti .l { font-size: .8rem; color: var(--ink-muted); margin-top: 2px; }
.trust-row .sep { width: 1px; height: 34px; background: var(--line); }

/* Phone AR mockup */
.hero-stage { position: relative; height: 580px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: relative; width: 280px; height: 560px; border-radius: 44px; z-index: 2;
  background: #14101f; padding: 10px;
  box-shadow: 0 50px 90px -30px rgba(73,0,129,.55), var(--shadow-lg);
  animation: phoneFloat 7s ease-in-out infinite; will-change: transform;
}
@keyframes phoneFloat { 0%,100% { transform: translateY(0) rotate(-1deg) } 50% { transform: translateY(-16px) rotate(1deg) } }
.phone::after { content:""; position:absolute; top:18px; left:50%; transform:translateX(-50%); width:108px; height:20px; background:#14101f; border-radius:0 0 14px 14px; z-index:4; }
.phone-screen { position: relative; width:100%; height:100%; border-radius: 34px; overflow:hidden;
  background: linear-gradient(180deg,#2a2147,#160f24); display:flex; flex-direction:column; }
.ar-top { padding: 34px 18px 6px; }
.ar-top .k { font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color:var(--primary-container); font-weight:700; }
.ar-top h4 { color:#fff; font-size:1.05rem; }
.ar-face { flex:1; display:grid; place-items:center; position:relative; }
.ar-face svg { width: 140px; }
.ar-match { position:absolute; top:12px; right:14px; background:rgba(22,163,74,.18); color:#34d399; font-weight:800; font-size:.78rem; padding:6px 10px; border-radius:999px; }
.ar-styles { display:flex; gap:8px; padding:12px 16px; }
.ar-sw { flex:1; height:44px; border-radius:12px; background:rgba(255,255,255,.08); border:2px solid transparent; }
.ar-styles .ar-sw:nth-child(1){ animation: arsel 4s infinite 0s; }
.ar-styles .ar-sw:nth-child(2){ animation: arsel 4s infinite 1s; }
.ar-styles .ar-sw:nth-child(3){ animation: arsel 4s infinite 2s; }
.ar-styles .ar-sw:nth-child(4){ animation: arsel 4s infinite 3s; }
@keyframes arsel { 0%,100% { border-color:transparent; background:rgba(255,255,255,.08) } 12%,22% { border-color:var(--primary-container); background:rgba(192,132,252,.24) } }
.ar-cta { margin:2px 16px 20px; background:var(--primary); color:#fff; text-align:center; font-weight:700; padding:12px; border-radius:14px; font-size:.88rem; }

.hero-pills .pill { position:absolute; z-index:3; background:rgba(255,255,255,.82); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.9); border-radius:14px; padding:10px 14px; box-shadow:var(--shadow-lg);
  display:flex; gap:9px; align-items:center; font-weight:700; font-size:.85rem; color:var(--ink);
  animation: floaty 6s ease-in-out infinite; }
.hero-pills .pill .ico { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--primary-tint); color:var(--primary); }
.hero-pills .pill .ico svg { width:17px; height:17px; }
.pill-1 { top:6%; left:-4%; } .pill-2 { top:46%; right:-8%; animation-delay:-2.2s; } .pill-3 { bottom:6%; left:-2%; animation-delay:-4.4s; }

/* Book -> Try -> Transform steps */
.steps-band { background: linear-gradient(180deg, #fbf8ff, #ffffff); }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; position:relative; margin-top:10px; }
.steps::before { content:""; position:absolute; top:42px; left:16%; right:16%; height:2px; background:linear-gradient(90deg,var(--secondary),var(--primary)); z-index:0; }
.step { text-align:center; position:relative; z-index:1; }
.step .badge { width:84px; height:84px; margin:0 auto 18px; border-radius:24px; display:grid; place-items:center;
  background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-md); color:var(--primary); position:relative; transition:transform .3s var(--ease); }
.step:hover .badge {}
.step .badge svg { width:34px; height:34px; }
.step .badge .n { position:absolute; top:-8px; right:-8px; width:26px; height:26px; border-radius:50%; background:var(--primary); color:#fff; font-size:.78rem; font-weight:800; display:grid; place-items:center; }
.step h3 { font-size:1.18rem; }
.step p { color:var(--ink-soft); font-size:.94rem; max-width:26ch; margin:6px auto 0; }

/* Directional scroll-reveal variants */
.reveal-l { opacity:0; transform:translateX(-44px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-r { opacity:0; transform:translateX(44px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale { opacity:0; transform:scale(.92); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-l.in, .reveal-r.in, .reveal-scale.in { opacity:1; transform:none; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-stage { height: 440px; margin-top: 12px; }
  .phone { width: 230px; height: 460px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { display: none; }
}

/* =========================================================
   THE LIVING PORTRAIT — autonomous cinematic centerpiece
   (replaces the flip-card deck; loops on its own)
   ========================================================= */
.cinema {
  --loop: 16s;
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 600px at 50% 12%, rgba(147,51,234,0.18), transparent 60%),
    linear-gradient(180deg, var(--dark-bg), var(--dark-bg-2));
  color: var(--dark-ink); padding: 96px 0 110px;
}
.cinema-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.cinema-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; margin: 14px 0 12px; }
.cinema-head p { color: var(--dark-ink-soft); }

.cinema-stage { position: relative; width: 100%; max-width: 620px; height: 600px; margin: 0 auto; }

/* rotating aura glow behind everything */
.aura {
  position: absolute; top: 50%; left: 50%; width: 440px; height: 440px;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: 0; filter: blur(46px); opacity: .8;
  background: conic-gradient(from 0deg, var(--primary), var(--primary-container), var(--secondary), #6d28d9, var(--primary));
  animation: spin 24s linear infinite;
}

/* orbiting feature chips */
.orbit { position: absolute; top: 50%; left: 50%; width: 560px; height: 560px;
  transform: translate(-50%, -50%); z-index: 4; animation: spin 40s linear infinite; }
.ochip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(27,20,48,0.72); backdrop-filter: blur(10px);
  border: 1px solid var(--dark-line); border-radius: 999px; padding: 9px 15px;
  font-weight: 700; font-size: .85rem; color: #f3effa; white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); animation: spin 40s linear infinite reverse;
}
.ochip i { width: 16px; height: 16px; color: var(--primary-container); }
.oc1 { top: -16px; left: 50%; transform-origin: center; margin-left: -56px; }
.oc2 { top: 50%; right: -28px; margin-top: -19px; }
.oc3 { bottom: -16px; left: 50%; margin-left: -78px; }
.oc4 { top: 50%; left: -26px; margin-top: -19px; }

/* the portrait */
.portrait { position: absolute; top: 50%; left: 50%; width: 300px; height: 360px;
  transform: translate(-50%, -50%); z-index: 3; animation: bloom var(--loop) ease-in-out infinite; }
@keyframes bloom { 0%,60% { transform: translate(-50%,-50%) scale(1) } 78% { transform: translate(-50%,-50%) scale(1.05) } 100% { transform: translate(-50%,-50%) scale(1) } }

.portrait .face { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait .hair { transition: none; }
/* default (static / reduced-motion) = confident resolved state */
.hair-1 { opacity: 0; animation: hair1 var(--loop) ease-in-out infinite; }
.hair-2 { opacity: 0; animation: hair2 var(--loop) ease-in-out infinite; }
.hair-3 { opacity: 1; animation: hair3 var(--loop) ease-in-out infinite; }
@keyframes hair1 { 0%,24% { opacity: 1 } 34%,100% { opacity: 0 } }
@keyframes hair2 { 0%,30% { opacity: 0 } 40%,58% { opacity: 1 } 68%,100% { opacity: 0 } }
@keyframes hair3 { 0%,60% { opacity: 0 } 70%,94% { opacity: 1 } 100% { opacity: 0 } }

/* match progress ring */
.match-ring { position: absolute; top: 50%; left: 50%; width: 360px; height: 360px;
  transform: translate(-50%,-50%) rotate(-90deg); z-index: 2; }
.match-ring .track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 4; }
.match-ring .fill { fill: none; stroke: url(#mg); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 1093; stroke-dashoffset: 87; animation: ringfill var(--loop) ease-in-out infinite; }
@keyframes ringfill { 0%,22% { stroke-dashoffset: 1093 } 44%,92% { stroke-dashoffset: 87 } 100% { stroke-dashoffset: 1093 } }

/* AR scan line */
.scanline { position: absolute; left: 6%; right: 6%; top: 0; height: 70px; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(192,132,252,0.55), transparent);
  border-top: 2px solid var(--primary-container); border-bottom: 2px solid var(--primary-container);
  opacity: 0; animation: scan var(--loop) ease-in-out infinite; }
@keyframes scan {
  0%,22% { opacity: 0; transform: translateY(-10px) }
  26% { opacity: 1 }
  44% { opacity: 1; transform: translateY(300px) }
  48%,100% { opacity: 0; transform: translateY(310px) }
}

/* floating badges */
.badge-match, .badge-book {
  position: absolute; z-index: 6; font-weight: 800; font-size: .82rem; padding: 8px 13px;
  border-radius: 999px; box-shadow: var(--shadow-lg);
}
.badge-match { top: 8%; right: -6%; background: rgba(192,132,252,0.18); color: #d6b8ff;
  border: 1px solid rgba(192,132,252,.4); opacity: 1; animation: bMatch var(--loop) ease-in-out infinite; }
@keyframes bMatch { 0%,28% { opacity: 0; transform: scale(.7) } 36%,90% { opacity: 1; transform: scale(1) } 96%,100% { opacity: 0 } }
.badge-book { bottom: 14%; left: -8%; background: #16a34a; color: #fff; display: inline-flex; gap: 6px; align-items: center;
  opacity: 0; animation: bBook var(--loop) ease-in-out infinite; }
.badge-book i { width: 15px; height: 15px; }
@keyframes bBook { 0%,46% { opacity: 0; transform: translateY(12px) } 54%,90% { opacity: 1; transform: translateY(0) } 96%,100% { opacity: 0 } }

/* uncertainty question marks */
.qmark { position: absolute; z-index: 6; font-weight: 800; color: var(--dark-ink-soft); opacity: 0; }
.qmark.q1 { top: 10%; left: 2%; font-size: 2rem; animation: qf var(--loop) ease-in-out infinite; }
.qmark.q2 { top: 26%; right: 4%; font-size: 1.4rem; animation: qf var(--loop) ease-in-out infinite .4s; }
@keyframes qf { 0% { opacity: 0; transform: translateY(6px) } 6%,18% { opacity: .9 } 24%,100% { opacity: 0; transform: translateY(-6px) } }

/* transform sparkles */
.spark { position: absolute; z-index: 6; width: 14px; height: 14px; opacity: 0;
  background: radial-gradient(circle, #fff 0 30%, transparent 60%); }
.spark::before { content:""; position:absolute; inset:0;
  background: conic-gradient(from 0deg, transparent, #fff, transparent 25%, transparent 50%, #fff, transparent 75%); }
.spark.k1 { top: 14%; left: 14%; animation: spk var(--loop) ease-in-out infinite; }
.spark.k2 { top: 20%; right: 18%; animation: spk var(--loop) ease-in-out infinite .5s; }
.spark.k3 { bottom: 24%; left: 22%; animation: spk var(--loop) ease-in-out infinite .9s; }
@keyframes spk { 0%,66% { opacity: 0; transform: scale(.3) rotate(0) } 76% { opacity: 1; transform: scale(1.1) rotate(40deg) } 92%,100% { opacity: 0; transform: scale(.4) rotate(80deg) } }

/* crossfading phase narration */
.phase-label { position: absolute; left: 0; right: 0; bottom: -8px; text-align: center; z-index: 7; height: 2em; }
.pl { position: absolute; left: 0; right: 0; font-size: clamp(1.1rem,2.4vw,1.5rem); font-weight: 800; letter-spacing: -.01em; opacity: 0; }
.pl1 { color: var(--dark-ink-soft); animation: plf var(--loop) ease-in-out infinite; }
.pl2 { color: var(--primary-container); animation: plf var(--loop) ease-in-out infinite; animation-delay: calc(var(--loop) * -0.76); }
.pl3 { color: #34d399; animation: plf var(--loop) ease-in-out infinite; animation-delay: calc(var(--loop) * -0.52); }
.pl4 { opacity: 1; animation: plf4 var(--loop) ease-in-out infinite; }
.pl4 span { background: linear-gradient(120deg, var(--primary-container), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes plf { 0% { opacity: 0 } 6%,18% { opacity: 1 } 24%,100% { opacity: 0 } }
@keyframes plf4 { 0%,68% { opacity: 0 } 76%,94% { opacity: 1 } 100% { opacity: 0 } }

@media (max-width: 680px) {
  .cinema-stage { max-width: 360px; height: 480px; }
  .orbit { width: 360px; height: 360px; }
  .aura { width: 280px; height: 280px; }
  .portrait { width: 220px; height: 270px; }
  .match-ring { width: 250px; height: 250px; }
  .ochip { font-size: .76rem; padding: 7px 11px; }
}

/* =========================================================
   GODMODE — Liquid Glass motion layer
   ========================================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 300; will-change: transform;
  background: linear-gradient(90deg, var(--primary), var(--primary-container), #ec4899, var(--primary));
  box-shadow: 0 1px 10px rgba(147,51,234,.5);
}

/* Shine sweep + magnetic on buttons */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; top: 0; left: -150%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-primary:hover::after, .btn-light:hover::after { animation: shine .85s ease; }
@keyframes shine { to { left: 165%; } }
.magnetic { transition: transform .25s cubic-bezier(.2,.8,.2,1); }

/* Liquid morphing blob (hero) */
.liquid-blob {
  position: absolute; width: 560px; height: 560px; z-index: 0; pointer-events: none;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(135deg, #c084fc, #ec4899 45%, #9333ea);
  filter: blur(48px); opacity: .34; mix-blend-mode: multiply;
  animation: morph 14s ease-in-out infinite, blobDrift 22s ease-in-out infinite;
  will-change: border-radius, transform;
}
.lb-1 { top: -90px; right: -40px; }
.lb-2 { bottom: -140px; left: -80px; background: linear-gradient(135deg, var(--secondary), #a78bfa, #ec4899); animation-delay: -6s, -9s; opacity: .28; }
@keyframes morph {
  0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 67% 33% 40% 60% / 58% 62% 38% 42%; }
  66% { border-radius: 38% 62% 56% 44% / 49% 36% 64% 51%; }
}
@keyframes blobDrift { 0%,100% { transform: translate(0,0) rotate(0) } 50% { transform: translate(-30px,28px) rotate(18deg) } }

/* Auto-scrolling marquee ribbon */
.marquee {
  overflow: hidden; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--bg-soft));
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 14px; width: max-content; animation: marq 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.marquee-item.muted { color: var(--ink-muted); }
.marquee-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #ec4899); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Word-stagger text reveal */
.tr-word { display: inline-block; opacity: 0; transform: translateY(40%); filter: blur(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); will-change: transform, filter, opacity; }
.tr.in .tr-word { opacity: 1; transform: none; filter: none; }

/* Blur-in reveal variant */
.reveal-blur { opacity: 0; filter: blur(16px); transform: translateY(26px) scale(.985);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.reveal-blur.in { opacity: 1; filter: none; transform: none; }

/* Liquid-glass treatment on path cards: gradient border + sheen */
.path-card { overflow: hidden; isolation: isolate; }
.path-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: linear-gradient(135deg, var(--primary), #ec4899, var(--primary-container));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
}
.path-card:hover::before { opacity: 1; }
.path-card::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(192,132,252,.35), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.path-card:hover::after { opacity: 1; animation: shine 1.1s ease; }

/* Iridescent rotating frame around the living portrait stage */
.cinema-stage { isolation: isolate; }
.cinema-stage::before {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 150%; height: 150%;
  transform: translate(-50%,-50%); z-index: 0; border-radius: 50%; opacity: .14; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(236,72,153,.6), transparent 30%, transparent 50%, rgba(147,51,234,.6), transparent 80%);
  animation: spin 18s linear infinite;
}

/* Step badges: liquid-glass */
.step .badge { backdrop-filter: blur(6px); }
.steps-band { position: relative; overflow: hidden; }

@media (max-width: 680px) {
  .liquid-blob { width: 360px; height: 360px; filter: blur(36px); }
}

/* =========================================================
   PROBLEM → SOLUTION JOURNEY (scrollytelling, delivers the PDF)
   ========================================================= */
.journey-shift { position: relative; }
.problem-space {
  background: linear-gradient(180deg, #0e0a16, #160f24 55%, #1a1230);
  color: var(--dark-ink); padding: 110px 0 50px; position: relative; overflow: hidden;
}
.problem-space::after { /* glow that hints at the coming light */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 700px; height: 240px;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgba(147,51,234,.4), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.solution-space {
  background:
    radial-gradient(900px 520px at 50% -5%, var(--primary-tint), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg-soft));
  padding: 80px 0 110px; position: relative; overflow: hidden;
}

.space-intro { text-align: center; max-width: 760px; margin: 0 auto; }
.space-intro h2 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 14px 0 12px; }
.problem-space .space-intro h2 { color: #fff; }
.space-intro p { color: var(--dark-ink-soft); font-size: 1.08rem; }
.solution-space .space-intro p { color: var(--ink-soft); }

.scene-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; margin: 70px 0; }
.scene-row.rev .scene-visual { order: 2; }

.scene-visual {
  position: relative; border-radius: 30px; padding: 30px; min-height: 320px;
  display: grid; place-items: center; will-change: transform;
}
.problem-space .scene-visual {
  background: linear-gradient(160deg, rgba(43,33,66,.55), rgba(22,15,36,.7));
  border: 1px solid var(--dark-line); box-shadow: 0 44px 90px -44px rgba(0,0,0,.85); backdrop-filter: blur(4px);
}
.solution-space .scene-visual {
  background: linear-gradient(160deg, #ffffff, #fbf7ff);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.scene-visual svg { width: 86%; max-width: 360px; height: auto; }
.scene-visual::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), #ec4899, var(--primary-container));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s var(--ease);
}
.scene-row:hover .scene-visual::before { opacity: .7; }

.scene-num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  -webkit-text-stroke: 1.5px var(--primary-container); color: transparent; opacity: .55; margin-bottom: 10px; }
.solution-space .scene-num { -webkit-text-stroke-color: var(--primary); }
.scene-text h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.problem-space .scene-text h3 { color: #fff; }
.scene-text p { font-size: 1.05rem; max-width: 42ch; }
.problem-space .scene-text p { color: var(--dark-ink-soft); }
.solution-space .scene-text p { color: var(--ink-soft); }
.scene-was { display: block; font-size: .78rem; color: var(--primary); margin-bottom: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scene-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: .84rem; padding: 7px 14px; border-radius: 999px; }
.scene-tag.problem { background: rgba(201,138,255,.12); color: #d6b8ff; }
.scene-tag.ok { background: #dcfce7; color: #15803d; }

/* The shift — gamble interstitial */
.gamble { position: relative; text-align: center; padding: 90px 0 40px; }
.gamble h2 { font-size: clamp(2.1rem, 7vw, 4.6rem); color: #fff; letter-spacing: -.03em; position: relative; z-index: 2; }
.gamble .beam2 { position: absolute; top: 50%; left: 50%; width: 86%; height: 220px; transform: translate(-50%,-50%); z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(192,132,252,.55), transparent 72%); filter: blur(22px); animation: pulse2 4.5s ease-in-out infinite; }
.gamble .beam2::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 100%; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 50px 16px rgba(255,255,255,.5); }
@keyframes pulse2 { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(.9) } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08) } }

/* finale */
.finale { text-align: center; padding: 56px 0 0; }
.finale h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; margin: 0 auto 22px; }
.finale .chips-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.finale .rchip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-sm); }
.finale .rchip i { width: 16px; height: 16px; color: var(--primary); }

@media (max-width: 900px) {
  .scene-row, .scene-row.rev { grid-template-columns: 1fr; gap: 26px; margin: 48px 0; }
  .scene-row.rev .scene-visual { order: 0; }
  .scene-visual { min-height: 250px; }
}

/* =========================================================
   SUB-PAGE MOTION — liquid-glass feature cards + self-drawing chart
   ========================================================= */

/* Liquid-glass treatment for feature cards (all pages) */
.feature:not(.big), .comm-card, .biz-item { position: relative; overflow: hidden; isolation: isolate; }
.feature:not(.big)::before, .comm-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: linear-gradient(135deg, var(--primary), #ec4899, var(--primary-container));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s var(--ease);
}
.feature:not(.big):hover::before, .comm-card:hover::before { opacity: 1; }
.feature:not(.big)::after, .biz-item::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(192,132,252,.3), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.feature:not(.big):hover::after, .biz-item:hover::after { opacity: 1; animation: shine 1.1s ease; }
.feature .ico, .comm-card .ico { transition: transform .4s var(--ease); }
.feature:hover .ico, .comm-card:hover .ico {  }

/* Page-hero visual (sub-page product demo) */
.page-hero { overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.page-hero .liquid-blob { opacity: .26; }

/* Self-drawing growth chart (For Businesses) */
.growth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative; overflow: hidden;
}
.growth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), #ec4899, var(--primary-container)); }
.growth-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.growth-head h4 { font-size: 1.05rem; }
.growth-sub { font-size: .82rem; color: var(--ink-muted); margin-bottom: 14px; }
.growth-chart { width: 100%; height: auto; display: block; }
.gc-grid { stroke: #efeef3; stroke-width: 1; }
.gc-area { opacity: 0; transition: opacity 1.1s ease .5s; }
.growth-card.in .gc-area { opacity: 1; }
.gc-line { fill: none; stroke: url(#gcStroke); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; }
.growth-card.in .gc-line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.3s cubic-bezier(.16,1,.3,1) .2s; }
.gc-dot { opacity: 0; }
.growth-card.in .gc-dot { opacity: 1; transition: opacity .4s ease 2.1s; }
.growth-card.in .gc-dot .pulse { animation: gcpulse 2s ease-out infinite 2.3s; transform-box: fill-box; transform-origin: center; }
@keyframes gcpulse { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(3); opacity: 0 } }
.growth-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }

@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Phone — AI Style Match list (replaces AR try-on) */
.ar-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 8px; flex: 1; }
.ar-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.ar-item .ar-ic { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-container)); }
.ar-meta { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ar-name { color: #f3effa; font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.ar-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary-container), #ec4899); }
.ar-pct { color: var(--primary-container); font-weight: 800; font-size: .78rem; }
.ar-list .ar-item:nth-child(1) { animation: arsel 4.5s infinite 0s; }
.ar-list .ar-item:nth-child(2) { animation: arsel 4.5s infinite 1.5s; }
.ar-list .ar-item:nth-child(3) { animation: arsel 4.5s infinite 3s; }

/* =========================================================
   THE FLIPBOOK — interactive story (replaces problem space)
   ========================================================= */
.flip-section {
  position: relative; overflow: hidden; padding: 104px 0 96px; color: var(--dark-ink);
  background:
    radial-gradient(1000px 600px at 50% -5%, rgba(147,51,234,.2), transparent 60%),
    linear-gradient(180deg, var(--dark-bg), var(--dark-bg-2));
}
.flip-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.flip-head h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 14px 0 10px; }
.flip-head p { color: var(--dark-ink-soft); }

.flipbook { max-width: 940px; margin: 0 auto; }
.book { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 540px; margin: 0 auto; perspective: 2800px; }
.leaf-left, .leaf-right, .t-face { background: linear-gradient(160deg, #fffdf9, #f4eee4); }
.leaf-left, .leaf-right { position: absolute; top: 0; height: 100%; width: 50%; overflow: hidden; }
.leaf-left { left: 0; border-radius: 16px 4px 4px 16px; box-shadow: inset -22px 0 36px -26px rgba(40,20,60,.55), 0 36px 70px -34px rgba(0,0,0,.7); }
.leaf-right { right: 0; border-radius: 4px 16px 16px 4px; box-shadow: inset 22px 0 36px -26px rgba(40,20,60,.55), 0 36px 70px -34px rgba(0,0,0,.7); }
.spine { position: absolute; left: 50%; top: 2%; height: 96%; width: 3px; transform: translateX(-1.5px); z-index: 8;
  background: linear-gradient(180deg, rgba(40,20,60,.05), rgba(40,20,60,.35), rgba(40,20,60,.05)); border-radius: 2px; }
.page-pad { position: absolute; inset: 0; padding: clamp(22px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.leaf-left .page-pad, .t-back .page-pad { align-items: center; text-align: center; }

.bk-visual svg { width: 78%; max-width: 250px; height: auto; }
.bk-num { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); font-size: .78rem; margin-bottom: 14px; }
.bk-q { color: var(--ink); font-size: clamp(1.4rem, 3.1vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 14px; }
.bk-q .grad-text { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bk-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 34ch; }
.bk-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.bk-cover-mark { width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, var(--primary), var(--primary-container)); box-shadow: var(--shadow-glow); }
.bk-cover-mark img { width: 56px; height: 56px; }
.bk-hint { margin-top: 20px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); animation: hint 1.8s ease-in-out infinite; }

/* The turning leaf */
.turner { position: absolute; top: 0; right: 0; width: 50%; height: 100%; transform-origin: left center;
  transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,.08,.25,1); z-index: 9; opacity: 0; pointer-events: none; }
.turner.on { opacity: 1; }
.t-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.t-front { border-radius: 4px 16px 16px 4px; box-shadow: inset 22px 0 36px -26px rgba(40,20,60,.55); }
.t-back { transform: rotateY(180deg); border-radius: 16px 4px 4px 16px; box-shadow: inset -22px 0 36px -26px rgba(40,20,60,.55); }
.turner::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(40,20,60,.22), transparent 16%); }

.book-ctrls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 36px; }
.book-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--dark-line); background: var(--dark-card);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; }
.book-btn svg { width: 20px; height: 20px; }
.book-btn:hover:not(:disabled) { background: var(--primary); border-color: var(--primary);  }
.book-btn:disabled { opacity: .3; cursor: default; }
.book-dots { display: flex; gap: 8px; align-items: center; }
.book-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-line); transition: width .3s, background .3s; }
.book-dots span.on { background: var(--primary); width: 24px; border-radius: 999px; }

@media (max-width: 720px) {
  .book { aspect-ratio: 4 / 5; max-height: none; perspective: none; }
  .leaf-left { display: none; }
  .leaf-right { width: 100%; border-radius: 16px; }
  .leaf-right .page-pad { align-items: center; text-align: center; }
  .turner { display: none; }
  .book.mobile .leaf-right { animation: fadeSwap .5s ease; }
}
@keyframes fadeSwap { from { opacity: .2; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ---- Flipbook theming: dark problem space -> bright solution space ---- */
.flip-section { transition: background 1.2s ease, color 1s ease; }
.leaf-left, .leaf-right, .t-face { transition: background .9s ease; }

.flip-section.theme-bright {
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 50% -5%, var(--primary-tint), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg-soft));
}
.flip-section.theme-bright .flip-head h2 { color: var(--ink); }
.flip-section.theme-bright .flip-head p { color: var(--ink-soft); }
.flip-section.theme-bright .eyebrow.on-dark { color: var(--primary); background: var(--primary-tint); }

.theme-dark .leaf-left, .theme-dark .leaf-right, .theme-dark .t-front, .theme-dark .t-back { background: linear-gradient(160deg, #1d1535, #120c20); }
.theme-bright .leaf-left, .theme-bright .leaf-right, .theme-bright .t-front, .theme-bright .t-back { background: linear-gradient(160deg, #fffdf9, #f4eee4); }
.theme-dark .spine { background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.55), rgba(0,0,0,.1)); }

.theme-dark .bk-q { color: #fff; }
.theme-dark .bk-sub { color: var(--dark-ink-soft); }
.theme-dark .bk-num { color: var(--primary-container); }
.theme-dark .bk-q .grad-text { background: linear-gradient(120deg, var(--primary-container), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-bright .bk-q { color: var(--ink); }
.theme-bright .bk-sub { color: var(--ink-soft); }
.theme-bright .bk-num { color: var(--primary); }

.bk-was { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.bk-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; font-size: .82rem; padding: 6px 13px; border-radius: 999px; }
.bk-tag.ok { background: #dcfce7; color: #15803d; }
.bk-tag.problem { background: rgba(192,132,252,.14); color: #d6b8ff; }

/* The shift page — beam of light */
.bk-gamble { text-align: center; }
.bk-gamble .bk-q { font-size: clamp(1.5rem, 3.6vw, 2.6rem); }
.bk-beam { position: relative; display: grid; place-items: center; margin-bottom: 18px; }
.bk-beam::before { content: ""; position: absolute; width: 150%; height: 130px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192,132,252,.6), transparent 72%); filter: blur(18px); animation: pulse2 4s ease-in-out infinite; }
.bk-beam svg { position: relative; z-index: 1; }

.bk-autohint { margin-top: 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }

/* ---- Real page-turn: curl shadow, light sweep, grab cursor ---- */
.book { cursor: grab; }
.book.flipping { cursor: grabbing; }
.t-shadow { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; }
.t-front .t-shadow { background: linear-gradient(90deg, transparent 48%, rgba(16,8,28,.5)); border-radius: 4px 16px 16px 4px; }
.t-back .t-shadow { background: linear-gradient(270deg, transparent 48%, rgba(16,8,28,.5)); border-radius: 16px 4px 4px 16px; }
.turner.anim .t-shadow { animation: curlSh .95s ease; }
@keyframes curlSh { 0% { opacity: 0 } 48% { opacity: 1 } 100% { opacity: 0 } }
.turner::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  background: linear-gradient(96deg, transparent 36%, rgba(255,255,255,.3) 50%, transparent 64%); }
.turner.anim::before { animation: curlHi .95s ease; }
@keyframes curlHi { 0%,100% { opacity: 0 } 50% { opacity: .55 } }
/* cast shadow on the page beneath while one is lifting */
.book.flipping .leaf-right::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(16,8,28,.28), transparent 26%); opacity: .8;
}

/* ---- The animated character (movie figure) ---- */
.cf-bob  { transform-box: fill-box; transform-origin: center;     animation: cfBob 2.6s ease-in-out infinite; }
.cf-armA { transform-box: fill-box; transform-origin: top center; animation: cfSwingA 1s ease-in-out infinite; }
.cf-armB { transform-box: fill-box; transform-origin: top center; animation: cfSwingB 1s ease-in-out infinite; }
.cf-legA { transform-box: fill-box; transform-origin: top center; animation: cfSwingA 1s ease-in-out infinite; }
.cf-legB { transform-box: fill-box; transform-origin: top center; animation: cfSwingB 1s ease-in-out infinite; }
.cf-foot { transform-box: fill-box; transform-origin: top center; animation: cfFoot 1.8s ease-in-out infinite; }
.cf-snip { transform-box: fill-box; transform-origin: bottom center; animation: cfSnip .5s ease-in-out infinite; }
@keyframes cfBob   { 0%,100% { transform: translateY(0) }   50% { transform: translateY(-4px) } }
@keyframes cfSwingA{ 0%,100% { transform: rotate(17deg) }   50% { transform: rotate(-17deg) } }
@keyframes cfSwingB{ 0%,100% { transform: rotate(-17deg) }  50% { transform: rotate(17deg) } }
@keyframes cfFoot  { 0%,72%,100% { transform: rotate(0) }   86% { transform: rotate(-15deg) } }
@keyframes cfSnip  { 0%,100% { transform: rotate(0) }       50% { transform: rotate(-22deg) } }
.cf-eyes  { transform-box: fill-box; transform-origin: center; animation: cfBlink 4.6s ease-in-out infinite; }
.cf-stride{ transform-box: fill-box; transform-origin: center; animation: cfStride 2.4s ease-in-out infinite; }
@keyframes cfBlink { 0%,93%,100% { transform: scaleY(1) } 96% { transform: scaleY(.12) } }
@keyframes cfStride{ 0%,100% { transform: translateX(-6px) } 50% { transform: translateX(8px) } }
/* each scene pops in when the page lands */
.fb-page svg, .fb-face svg { animation: sceneIn .55s cubic-bezier(.2,.85,.25,1) both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(12px) scale(.95) } to { opacity: 1; transform: none } }

/* =========================================================
   FILMBOOK — animation on the right, captions on the left
   ========================================================= */
.fb-layout { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.fb-text { min-height: 210px; transition: opacity .35s ease, transform .35s ease; }
.fb-num { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; margin: 16px 0 14px; }
.fb-q { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 16px; }
.fb-sub { font-size: 1.08rem; max-width: 36ch; }
.fb-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.fb-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 700; font-size: .84rem; padding: 6px 14px; border-radius: 999px; }
.fb-tag.problem { background: rgba(192,132,252,.14); color: #d6b8ff; }
.fb-tag.ok { background: #dcfce7; color: #15803d; }
.theme-dark .fb-q { color: #fff; } .theme-dark .fb-sub { color: var(--dark-ink-soft); } .theme-dark .fb-num { color: var(--primary-container); }
.theme-bright .fb-q { color: var(--ink); } .theme-bright .fb-sub { color: var(--ink-soft); } .theme-bright .fb-num { color: var(--primary); }
.fb-q .grad-text { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-dark .fb-q .grad-text { background: linear-gradient(120deg, var(--primary-container), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fb-ctrls { display: flex; align-items: center; gap: 18px; margin-top: 32px; }

.fb-book { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 5 / 6; perspective: 2200px; cursor: grab; overflow: hidden; border-radius: 8px 20px 20px 8px; }
.fb-book.flipping { cursor: grabbing; }
.fb-page, .fb-face { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 8px 20px 20px 8px; }
.fb-page { box-shadow: inset 22px 0 36px -26px rgba(40,20,60,.6), 0 40px 80px -36px rgba(0,0,0,.6); }
.theme-dark .fb-page, .theme-dark .fb-face { background: linear-gradient(160deg, #1d1535, #120c20); transition: background .9s ease; }
.theme-bright .fb-page, .theme-bright .fb-face { background: linear-gradient(160deg, #fffdf9, #f4eee4); transition: background .9s ease; }
.fb-page svg, .fb-face svg { width: 84%; max-width: 320px; height: auto; }
.fb-spine { position: absolute; left: 0; top: 3%; height: 94%; width: 4px; z-index: 8; border-radius: 2px;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.4), rgba(0,0,0,.05)); }
.fb-turner { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3,.08,.25,1); z-index: 9; opacity: 0; will-change: transform; }
.fb-turner.on { opacity: 1; }
.fb-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fb-shadow { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; border-radius: 8px 20px 20px 8px;
  background: linear-gradient(90deg, transparent 46%, rgba(12,6,22,.55)); }
.fb-turner.anim .fb-shadow { animation: curlSh .95s ease; }
.fb-turner::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  background: linear-gradient(96deg, transparent 36%, rgba(255,255,255,.28) 50%, transparent 64%); }
.fb-turner.anim::before { animation: curlHi .95s ease; }

@media (max-width: 860px) {
  .fb-layout { grid-template-columns: 1fr; gap: 30px; }
  .fb-book { max-width: 340px; }
  .fb-text { min-height: 0; text-align: center; }
  .fb-sub { margin: 0 auto; }
  .fb-ctrls { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .liquid-blob, .marquee-track, .cinema-stage::before, .aura, .orbit, .gamble .beam2 { animation: none !important; }
  .tr-word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .reveal-blur { opacity: 1 !important; filter: none !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
  .gc-line { stroke-dashoffset: 0 !important; }
  .gc-area, .gc-dot { opacity: 1 !important; }
  .turner, .fb-turner { transition: none !important; }
}

/* =========================================================
   GODMODE / ULTIMATE UX ADDITIONS
   ========================================================= */

/* =========================================================
   CINEMATIC 3D STORY (journey.html)
   ========================================================= */
.cine-story {
  position: relative; overflow: hidden;
  background: var(--dark-bg); color: var(--dark-ink);
  height: 120vh !important; 
  max-height: 120vh !important; 
  width: 100%;
}
.cine-track {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.cine-scene {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 60px; padding: 0 60px 20vh !important;
  opacity: 0; visibility: hidden;
  perspective: 1200px;
  pointer-events: none;
}
/* Ensure GSAP pin-spacers for dark sections have a dark background to prevent mobile white-gap glitches */
.pin-spacer { background-color: var(--dark-bg); }
.cine-scene.active { opacity: 1; visibility: visible; pointer-events: auto; }

/* Ambient background orbs */
.cine-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cine-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
}
.cine-orb.o1 { width: 500px; height: 500px; background: #9333ea; top: -10%; left: -5%; animation: orbDrift1 20s ease-in-out infinite; }
.cine-orb.o2 { width: 400px; height: 400px; background: #c084fc; bottom: -10%; right: -5%; animation: orbDrift2 18s ease-in-out infinite; }
.cine-orb.o3 { width: 300px; height: 300px; background: #ddbaf0; top: 40%; left: 50%; animation: orbDrift1 22s ease-in-out infinite reverse; }
@keyframes orbDrift1 { 0%,100% { transform: translate(0, 0) } 50% { transform: translate(40px, -30px) } }
@keyframes orbDrift2 { 0%,100% { transform: translate(0, 0) } 50% { transform: translate(-30px, 40px) } }

/* Content side */
.cine-content {
  max-width: 480px; position: relative; z-index: 2;
  transform: translateZ(0);
}
.cine-num {
  display: block; font-size: 5rem; font-weight: 800;
  -webkit-text-stroke: 1.5px rgba(147,51,234,0.3);
  color: transparent; line-height: 1; margin-bottom: 16px;
  font-family: 'Manrope', sans-serif;
}
.cine-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff;
  line-height: 1.1; margin-bottom: 24px;
}
.cine-content p {
  font-size: 1.15rem; line-height: 1.7; color: var(--dark-ink-soft);
  max-width: 44ch;
}

/* Visual side */
.cine-visual {
  width: 320px; height: 280px; flex-shrink: 0;
  position: relative; z-index: 2;
  transform: translateZ(0);
}
.cine-visual svg { width: 100%; height: 100%; }

/* Final scene */
.cine-final { text-align: center; max-width: 700px; }
.cine-final h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.cine-big { font-size: clamp(2.6rem, 6vw, 4.5rem) !important; color: transparent !important; line-height: 1.05; }



@media (max-width: 900px) {
  .cine-story {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }
  .cine-scene { 
    flex-direction: column; 
    gap: clamp(16px, 4vw, 40px); 
    padding: clamp(80px, 18vw, 120px) clamp(16px, 5vw, 24px) clamp(30px, 8vw, 60px) !important;
    text-align: center; 
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cine-content { max-width: 100%; order: 1; }
  .cine-num { 
    font-size: clamp(2.5rem, 10vw, 4.5rem); 
    margin-bottom: clamp(6px, 2vw, 12px); 
  }
  .cine-content h2 { 
    font-size: clamp(1.5rem, 6vw, 2.2rem); 
    line-height: 1.15; 
    margin-bottom: clamp(10px, 3vw, 16px); 
  }
  .cine-content p { 
    font-size: clamp(0.85rem, 3.2vw, 1.05rem); 
    line-height: 1.6; 
    color: rgba(255,255,255,0.85); 
    margin: 0 auto; 
    max-width: clamp(260px, 80vw, 340px); 
  }
  .cine-visual { 
    width: clamp(180px, 55vw, 320px); 
    height: clamp(150px, 45vw, 280px); 
    margin: 0 auto; 
    order: 2;
  }
  .cine-final { max-width: 100%; }
  .cine-final h2 { 
    font-size: clamp(1.1rem, 4vw, 1.6rem) !important; 
  }
  .cine-big { 
    font-size: clamp(1.8rem, 8vw, 3rem) !important; 
  }
  .cine-orb.o1 { width: 300px; height: 300px; }
  .cine-orb.o2 { width: 250px; height: 250px; }
  .cine-orb.o3 { width: 200px; height: 200px; }
}


/* GSAP Loader & Global Tweaks */
.loader-overlay {
  position: fixed; inset: 0; background: var(--dark-bg); z-index: 10000;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.loader-brand { color: #fff; font-size: 2rem; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.loader-brand img { width: 44px; height: 44px; }

/* VanillaTilt fix to ensure smooth recovery */
.js-tilt-glare { border-radius: inherit; }

/* =========================================================
   TRUE GODMODE: GLOWING PIPELINE STEPS
   ========================================================= */
.steps-pipeline { padding: 120px 0; background: var(--bg); position: relative; overflow: hidden; }
.pipeline-container { position: relative; max-width: 900px; margin: 60px auto 0; padding-left: 40px; }
.pipeline-line {
  position: absolute; left: 64px; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, transparent, var(--primary-tint) 10%, var(--primary-tint) 90%, transparent);
  border-radius: 2px;
}
/* A glowing "pulse" travelling down the pipeline */
.pipeline-line::after {
  content: ''; position: absolute; top: 0; left: -2px; width: 8px; height: 100px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  border-radius: 4px; filter: blur(4px);
  animation: pipeFlow 4s infinite linear;
}
@keyframes pipeFlow {
  0% { top: -100px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.steps-flow { display: flex; flex-direction: column; gap: 60px; }
.step-node { display: flex; align-items: flex-start; gap: 30px; position: relative; z-index: 2; }
.node-ring {
  width: 52px; height: 52px; flex-shrink: 0;
  background: #fff; border: 2px solid var(--primary-container);
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
  position: relative;
}
.node-ring .badge {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 50%; color: var(--primary-dark); font-size: 1.2rem; font-weight: 800;
}
.node-ring .badge i { display: none; }
.node-content { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 32px 40px; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; width: 100%; }
.step-node:hover .node-content { transform: translateX(10px); box-shadow: var(--shadow-md); border-color: var(--primary-tint); }
.node-content h3 { font-size: 1.6rem; margin-bottom: 10px; color: var(--primary-deep); }
.node-content p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 768px) {
  .pipeline-container { padding-left: 0; }
  .pipeline-line { left: 26px; }
}

/* =========================================================
   TRUE GODMODE: AUTO-CAROUSEL (PROBLEM -> SOLUTION)
   ========================================================= */
.story-carousel {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #1a0f2e 50%, var(--dark-bg) 100%);
  color: var(--dark-ink); overflow: hidden; padding: 120px 0;
  position: relative;
}
.story-carousel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 500px at 50% 40%, rgba(147,51,234,0.1), transparent);
  pointer-events: none;
}
.story-carousel .section-head {
  position: relative; z-index: 2;
  margin-bottom: 20px;
}
.story-carousel .section-head h2 {
  color: #fff; margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #fff 30%, var(--primary-container) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story-carousel .section-head .lead {
  color: var(--dark-ink-soft); max-width: 50ch;
}

.auto-deck {
  position: relative; width: 100%; max-width: 380px; height: 440px;
  margin: 60px auto 0; perspective: 1200px;
}

/* Each card: 20s total cycle, 4 cards staggered by 5s = each visible for exactly 25% */
.auto-card {
  position: absolute; inset: 0;
  opacity: 0;
  animation: autoCycle 20s infinite ease-in-out;
}
.auto-card:nth-child(2) { animation-delay: 5s; }
.auto-card:nth-child(3) { animation-delay: 10s; }
.auto-card:nth-child(4) { animation-delay: 15s; }

.auto-card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: autoFlip 20s infinite ease-in-out;
}
.auto-card:nth-child(2) .auto-card-inner { animation-delay: 5s; }
.auto-card:nth-child(3) .auto-card-inner { animation-delay: 10s; }
.auto-card:nth-child(4) .auto-card-inner { animation-delay: 15s; }

/* The card faces */
.auto-card .face {
  position: absolute; inset: 0; border-radius: var(--radius); padding: 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; overflow: hidden;
}
.auto-card .face-front {
  background: linear-gradient(180deg, var(--dark-card), #181128);
  border: 1px solid var(--dark-line);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.85);
}
.auto-card .face-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #ffffff, #fbf7ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

/* 20s cycle, each card gets 25% = 5 seconds
   0-2%:   fade in  (0s - 0.4s)
   2-10%:  show front (0.4s - 2s)
   10-15%: flip     (2s - 3s)
   15-23%: show back (3s - 4.6s)
   23-25%: fade out  (4.6s - 5s)
   25-100%: hidden   (5s - 20s) */
@keyframes autoCycle {
  0%   { opacity: 0; transform: translateY(30px) scale(0.94); }
  2%   { opacity: 1; transform: translateY(0) scale(1); }
  23%  { opacity: 1; transform: translateY(0) scale(1); }
  25%  { opacity: 0; transform: translateY(-20px) scale(0.96); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.96); }
}

@keyframes autoFlip {
  0%, 10%    { transform: rotateY(0deg); }
  15%, 23%   { transform: rotateY(180deg); }
  25%, 100%  { transform: rotateY(0deg); }
}

/* =========================================================
   TRUE GODMODE: PREMIUM BENTO PATHS
   ========================================================= */
.bento-paths { background: var(--bg-soft); padding: 120px 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 24px; margin-top: 50px;
}
.bento-item {
  position: relative; border-radius: 28px; padding: 34px;
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bento-item:hover {  box-shadow: var(--shadow-lg); }

/* Bento background gradient blobs that reveal on hover */
.bento-bg {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(circle at 100% 100%, var(--primary-tint) 0%, transparent 60%);
  z-index: 0;
}
.bento-item:hover .bento-bg { opacity: 1; }

.bento-item .ico { position: relative; z-index: 1; width: 48px; height: 48px; background: #fff; border-radius: 14px; display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--primary); }
.bento-item .bento-content { position: relative; z-index: 1; }
.bento-item h3 { font-size: 1.4rem; margin-bottom: 8px; }
.bento-item p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.5; }

/* Bento spanning */
.feat-1 { grid-column: 1 / 3; grid-row: 1 / 3; padding: 48px; } /* Large block */
.feat-1 .ico { width: 64px; height: 64px; }
.feat-1 h3 { font-size: 2rem; }
.feat-1 p { font-size: 1.1rem; }
.feat-2 { grid-column: 3 / 5; grid-row: 1 / 2; }
.feat-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.feat-4 { grid-column: 4 / 5; grid-row: 2 / 3; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feat-1, .feat-2, .feat-3, .feat-4 { grid-column: 1 / -1; grid-row: auto; min-height: 240px; }
}

/* =========================================================
   PAGE TRANSITION
   ========================================================= */
.page-transition {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--dark-bg); z-index: 9999;
  pointer-events: none;
  transform: translateY(100%);
}
.page-transition-brand {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  opacity: 0;
}
.page-transition-brand img { width: 40px; height: 40px; border-radius: 12px; filter: none; }

/* ==== 13. THE SCROLL FLIPBOOK ==== */
.scroll-flip-section {
  position: relative;
  height: 400vh; /* 4 leaves to flip */
  background-color: var(--dark-bg);
  color: var(--dark-ink);
  overflow: clip;
}

.sf-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 2500px;
}

/* Container acts as the entire opened book (left and right sides) */
.sf-book-container {
  width: 90vw;
  max-width: 1000px;
  aspect-ratio: 1.8 / 1;
  position: relative;
}

.sf-book {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

/* Covers that sit underneath everything */
.sf-cover-back, .sf-cover-front {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.sf-cover-back { left: 0; border-radius: 12px 0 0 12px; }
.sf-cover-front { left: 50%; border-radius: 0 12px 12px 0; }

/* A single leaf representing two pages (front and back) */
.sf-leaf {
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  background-color: #fff;
  border-radius: 0 12px 12px 0;
  box-shadow: inset 4px 0 10px rgba(0,0,0,0.05), -5px 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.1s linear;
}

.sf-page-front, .sf-page-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background-color: #fff;
}

.sf-page-front {
  transform: rotateY(0deg);
  border-radius: 0 12px 12px 0;
}

.sf-page-back {
  transform: rotateY(180deg);
  border-radius: 12px 0 0 12px;
}

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

@media (max-width: 860px) {
  .sf-book-container {
    width: 95vw;
    aspect-ratio: 1.2 / 1;
  }
}


/* ==== 13.5 SPLIT LAYOUT FOR FLIPBOOK ==== */
.sf-split-layout {
  display: flex;
  width: 90vw;
  max-width: 1440px;
  height: 100vh;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.sf-left, .sf-right {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sf-right {
  justify-content: flex-start;
  padding-left: 40px;
}


/* Adjust the book container inside the left half */
.sf-book-container {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1.6 / 1;
  position: relative;
  /* Centered perfectly in the left column */
  transform: none; 
  perspective: 2500px; /* Crucial for 3D pages to show */
}

.sf-texts {
  position: relative;
  width: 100%;
  height: 300px;
}

.sf-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.sf-text.active {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  pointer-events: auto;
}

.sf-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-container), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sf-text p {
  font-size: 1.1rem;
  color: var(--dark-ink-soft);
}

@media (max-width: 860px) {
  .sf-split-layout {
    flex-direction: column;
    justify-content: center;
  }
  .sf-left, .sf-right {
    width: 100%;
    height: 50%;
  }
  .sf-right {
    padding-left: 0;
    align-items: flex-start;
  }
  .sf-text h2 {
    font-size: 2rem;
  }
  .sf-text p {
    font-size: 1rem;
  }
  
  /* Mobile padding reductions */
  .feature {
    padding: 20px !important;
  }
  .feature h3 {
    font-size: 1.25rem !important;
  }
  .feature p {
    font-size: 0.95rem !important;
  }
  
  .footer {
    padding: 40px 0 !important;
  }
  
  .section {
    padding: 60px 0 !important;
  }
}

/* ==== IMMERSIVE GSAP FLIPBOOK ==== */
.gsap-book-section {
  width: 100%;
  min-height: 100vh;
  background-color: var(--dark-bg);
  color: var(--dark-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gsap-book-container {
  width: 100vw;
  height: 100vh !important; height: 100dvh !important;
  max-height: 100vh !important; max-height: 100dvh !important;
  max-width: 100vw;
  position: relative;
  perspective: 3500px;
}

.gsap-book {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

.gsap-cover-left, .gsap-cover-right {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  background-color: #0b0f19;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  overflow: hidden;
}
.gsap-cover-left { left: 0; border-right: 1px solid rgba(255,255,255,0.05); }
.gsap-cover-right { left: 50%; border-left: 1px solid rgba(255,255,255,0.05); }

.gsap-leaf {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  left: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.gsap-page-front, .gsap-page-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: #0b0f19;
  overflow: hidden;
}

.gsap-page-front {
  transform: rotateY(0deg);
  border-left: 1px solid rgba(255,255,255,0.05);
}
.gsap-page-back {
  transform: rotateY(180deg);
  border-right: 1px solid rgba(255,255,255,0.05);
}

.gsap-page-content {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Page content styling */
.text-page {
  padding: 6rem 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.text-page h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--primary-container), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.text-page p {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--dark-ink-soft);
  max-width: 90%;
}

.text-page .eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-container);
}

.img-page img, .gsap-page-front img, .gsap-page-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Add page shadows for realism */
.gsap-page-front::after, .gsap-page-back::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.gsap-page-front::after {
  background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 15%);
}
.gsap-page-back::after {
  background: linear-gradient(to left, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 15%);
}

/* ======= MOBILE FLIPBOOK SLIDER (≤900px) ======= */
@media (max-width: 900px) {
  .gsap-book-container {
    height: 100vh !important; height: 100dvh !important;
    max-height: 100vh !important; max-height: 100dvh !important;
    width: 100vw !important;
    margin: 0;
  }
  .gsap-cover-left, .gsap-cover-right {
    width: 100% !important;
    height: 50% !important;
    left: 0 !important;
  }
  .gsap-cover-left {
    top: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }
  .gsap-cover-right {
    top: 50% !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
  }
  
  .gsap-leaf {
    width: 100% !important;
    height: 50% !important;
    top: 50% !important;
    left: 0 !important;
    transform-origin: top center !important;
  }
  
  .gsap-page-front, .gsap-page-back {
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }
  
  .gsap-page-front {
    transform: rotateX(0deg) !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
  }
  
  .gsap-page-back {
    transform: rotateX(180deg) !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }
  
  .text-page { padding: 1.5rem !important; justify-content: center !important; }
  .text-page h2 { font-size: 1.8rem !important; margin-bottom: 0.5rem !important; line-height: 1.2 !important; }
  .text-page p { font-size: 1.05rem !important; max-width: 100% !important; line-height: 1.6 !important; }
  .text-page .eyebrow { font-size: 0.8rem !important; }
}


/* ==========================================================================
   INITIAL SPLASH SCREEN
   ========================================================================== */
.splash-logo {
  filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.4));
  animation: splash-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes splash-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.8));
  }
}

.splash-loading-bar {
  animation: splash-load 1.5s ease-out forwards;
}

@keyframes splash-load {
  0% { width: 0%; }
  100% { width: 100%; }
}

body.splash-active {
  overflow: hidden !important;
}


/* Logo 3D Spin Animation */
@keyframes logoSpin {
  0% { transform: perspective(400px) rotateY(0deg); }
  50% { transform: perspective(400px) rotateY(180deg); }
  100% { transform: perspective(400px) rotateY(360deg); }
}


/* App Shell & Modal */
.app-shell { background: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.app-header { display: flex; gap: 8px; padding: 24px 20px; align-items: center; color: rgba(255,255,255,0.9); }
.loc-pin { opacity: 0.7; }
.loc-pin svg { width: 18px; height: 18px; }
.loc-text { display: flex; flex-direction: column; font-weight: 700; font-size: 0.9rem; line-height: 1.1; position: relative; }
.loc-text span { font-size: 0.7rem; font-weight: 500; opacity: 0.6; }
.loc-text svg { position: absolute; right: -18px; top: 2px; width: 14px; height: 14px; opacity: 0.5; }

.app-modal { position: absolute; bottom: 0; left: 0; right: 0; top: 0; background: #fff; border-radius: 40px; display: flex; flex-direction: column; padding: 40px 24px 30px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h3 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 0; }
.modal-close { width: 32px; height: 32px; background: #f3f4f6; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.modal-close svg { width: 16px; height: 16px; }

.modal-card { background: #fafafa; border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 20px; }
.mc-top { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.step-num { color: var(--primary); font-weight: 800; }
.mc-steps { display: flex; gap: 4px; }
.step-line { flex: 1; height: 4px; background: #e5e7eb; border-radius: 2px; position: relative; }
.step-line.active { background: var(--primary); }
.step-line span { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 0.55rem; font-weight: 600; color: #9ca3af; }
.step-line.active span { color: var(--primary); }

.modal-section { margin-bottom: 24px; }
.modal-section h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 12px; color: var(--ink); }

.date-scroll, .time-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.date-scroll::-webkit-scrollbar, .time-scroll::-webkit-scrollbar { display: none; }
.date-box { flex: 0 0 54px; height: 70px; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.65rem; font-weight: 600; color: var(--ink-muted); }
.date-box strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.date-box.active { background: var(--primary); border-color: var(--primary); color: rgba(255,255,255,0.9); box-shadow: 0 8px 16px var(--primary-tint); }
.date-box.active strong { color: #fff; }

.time-box { flex: 0 0 auto; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: var(--ink); }

.placeholder-text { font-size: 0.85rem; color: #9ca3af; font-weight: 500; }

.modal-footer { margin-top: auto; display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-back { flex: 1; padding: 14px 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; color: var(--ink); font-size: 0.9rem; cursor: pointer; }
.btn-continue { flex: 2; padding: 14px 0; background: var(--primary-light); color: #fff; border: none; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; }

.app-bottom-nav { background: #1f2937; padding: 12px 20px 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); }
.bn-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,0.4); }
.bn-item.active { color: var(--primary-light); }
.bn-item svg { width: 22px; height: 22px; }
.bn-item span { font-size: 0.6rem; font-weight: 600; }


/* Contact Page Styles */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; display: flex; gap: 20px; align-items: center; transition: background 0.3s ease; }
.ci-card:hover { background: rgba(255,255,255,0.06); }
.ci-icon { width: 48px; height: 48px; background: rgba(147, 51, 234, 0.1); border-radius: 12px; display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.ci-icon svg { width: 22px; height: 22px; }
.ci-text h4 { margin: 0 0 4px; font-size: 1.1rem; color: #fff; }
.ci-text p { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.socials-mini { display: flex; gap: 12px; margin-top: 6px; }
.socials-mini a { color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.socials-mini a:hover { color: var(--primary); }
.socials-mini svg { width: 20px; height: 20px; }

.contact-form-wrap { background: transparent; }
.c-form { display: flex; flex-direction: column; gap: 16px; }
.c-form input, .c-form select, .c-form textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 18px 20px; color: #fff; font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease, background 0.3s ease; outline: none; -webkit-appearance: none; appearance: none; }
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); }
.c-form input::placeholder, .c-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.c-form select { color: rgba(255,255,255,0.7); cursor: pointer; }
.c-form option { background: #1a1a1a; color: #fff; }
.custom-select-wrap { position: relative; }
.sel-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); pointer-events: none; width: 18px; height: 18px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

.contact-container { padding: 60px; }

/* Contact Page Overrides for Old Design Match */
.contact-grid-wrapper { background: #111111; border-radius: 32px; padding: 60px 50px; max-width: 1100px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.contact-grid { max-width: 100%; }
.ci-card { background: #1a1a1a; border: none; }
.ci-card:hover { background: #222222; }
.ci-icon { color: var(--primary); background: rgba(147, 51, 234, 0.1); }
.c-form input, .c-form select, .c-form textarea { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; }
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { background: #222222; border-color: rgba(147, 51, 234, 0.3); }
.btn-primary { background: var(--primary); color: #000; border: none; font-weight: 700; transition: all 0.3s ease; cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

@media (max-width: 768px) {
  .contact-grid-wrapper { padding: 40px 20px; border-radius: 24px; }
}


/* App Shell & Modal */
.app-shell { background: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.app-header { display: flex; gap: 8px; padding: 24px 20px; align-items: center; color: rgba(255,255,255,0.9); }
.loc-pin { opacity: 0.7; }
.loc-pin svg { width: 18px; height: 18px; }
.loc-text { display: flex; flex-direction: column; font-weight: 700; font-size: 0.9rem; line-height: 1.1; position: relative; }
.loc-text span { font-size: 0.7rem; font-weight: 500; opacity: 0.6; }
.loc-text svg { position: absolute; right: -18px; top: 2px; width: 14px; height: 14px; opacity: 0.5; }

.app-modal { position: absolute; bottom: 0; left: 0; right: 0; top: 0; background: #fff; border-radius: 40px; display: flex; flex-direction: column; padding: 40px 24px 30px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h3 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 0; }
.modal-close { width: 32px; height: 32px; background: #f3f4f6; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.modal-close svg { width: 16px; height: 16px; }

.modal-card { background: #fafafa; border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 20px; }
.mc-top { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.step-num { color: var(--primary); font-weight: 800; }
.mc-steps { display: flex; gap: 4px; }
.step-line { flex: 1; height: 4px; background: #e5e7eb; border-radius: 2px; position: relative; }
.step-line.active { background: var(--primary); }
.step-line span { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 0.55rem; font-weight: 600; color: #9ca3af; }
.step-line.active span { color: var(--primary); }

.modal-section { margin-bottom: 24px; }
.modal-section h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 12px; color: var(--ink); }

.date-scroll, .time-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.date-scroll::-webkit-scrollbar, .time-scroll::-webkit-scrollbar { display: none; }
.date-box { flex: 0 0 54px; height: 70px; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.65rem; font-weight: 600; color: var(--ink-muted); }
.date-box strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.date-box.active { background: var(--primary); border-color: var(--primary); color: rgba(255,255,255,0.9); box-shadow: 0 8px 16px var(--primary-tint); }
.date-box.active strong { color: #fff; }

.time-box { flex: 0 0 auto; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: var(--ink); }

.placeholder-text { font-size: 0.85rem; color: #9ca3af; font-weight: 500; }

.modal-footer { margin-top: auto; display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-back { flex: 1; padding: 14px 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; color: var(--ink); font-size: 0.9rem; cursor: pointer; }
.btn-continue { flex: 2; padding: 14px 0; background: var(--primary-light); color: #fff; border: none; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; }

.app-bottom-nav { background: #1f2937; padding: 12px 20px 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); }
.bn-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,0.4); }
.bn-item.active { color: var(--primary-light); }
.bn-item svg { width: 22px; height: 22px; }
.bn-item span { font-size: 0.6rem; font-weight: 600; }


/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 2px solid var(--primary-light); }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--dark-ink); }
.team-card h4 { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ MILESTONES (FIXED) ============ */
.mile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.mile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.mile .dot {
  width: 44px;
  height: 44px;
  background: var(--surface-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.mile .dot svg {
  width: 20px;
  height: 20px;
}
.mile.expanded .dot {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}
.mile-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}
.mile h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.mile p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}
.mile-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.mile.expanded .mile-details {
  max-height: 400px;
  opacity: 1;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* ============ TIMELINE V2 — Horizontal ============ */
.timeline-v2 {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  margin: 60px 0 0;
  padding: 0 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}
.timeline-v2::-webkit-scrollbar { display: none; }
/* Horizontal connecting line */
.timeline-v2::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(192, 132, 252, 0.3);
  z-index: 0;
}
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 0;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-icon {
  position: relative;
  left: auto; top: auto;
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 8px var(--bg-soft);
  z-index: 2;
  flex-shrink: 0;
  margin-bottom: 20px;
  transition: transform 0.3s;
}
.timeline-item:hover .timeline-icon { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(192, 132, 252, 0.1); }
.timeline-date { color: var(--primary); font-weight: 700; letter-spacing: 1px; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px; display: block; text-align: center; }
.timeline-content {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
  text-align: center;
  width: 100%;
}
.timeline-content h3 { font-size: 1.3rem; margin: 0 0 5px; color: var(--ink); }
.timeline-sub { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; }
.timeline-content p { margin: 0; line-height: 1.6; color: var(--ink-soft); font-size: 0.9rem; }
.timeline-item:hover .timeline-content { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(155, 77, 255, 0.1); border-color: rgba(192, 132, 252, 0.3); }

@media (max-width: 768px) {
  .timeline-v2 {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-bottom: 20px;
  }
  .timeline-v2::before {
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: auto;
  }
  .timeline-item {
    min-width: 100%;
    flex: 0 0 auto;
    padding: 0 16px;
  }
  .timeline-icon {
    margin-bottom: 16px;
  }
  .timeline-content { padding: 24px 20px; }
  .timeline-content h3 { font-size: 1.2rem; }
}

/* ============ SPLASH SCREEN ============ */
#splash-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--dark-bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.splash-logo {
  filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.4));
  width: 120px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
}



/* =========================================================
   FINAL MOBILE FIXES — Tested & Verified
   ========================================================= */

/* --- Navbar mobile: make logo always visible --- */
@media (max-width: 760px) {
  .nav-inner {
    padding: 12px 16px !important;
  }
  .nav.scrolled .nav-inner {
    padding: 8px 16px !important;
    border-radius: 20px;
  }
  /* Make Join the Journey button smaller on mobile */
  .nav-cta .btn-primary {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    height: 32px !important;
  }
  .brand span {
    font-size: 1.1rem;
  }
}


/* --- Business page: reduce blank space in hero --- */
@media (max-width: 768px) {
  .page-hero {
    padding: 110px 0 50px !important;
  }
  .page-hero h1 {
    font-size: 1.8rem !important;
    max-width: 100% !important;
  }
  .page-hero p.lead {
    font-size: 1rem !important;
  }
}

/* --- Contact grid: stack on mobile --- */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contact-container {
    padding: 24px 16px !important;
    border-radius: 20px !important;
    margin-top: 30px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .contact-card {
    padding: 16px !important;
    gap: 14px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .contact-card > div:first-child {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-shrink: 0 !important;
  }
  .contact-card h4 {
    font-size: 1rem !important;
  }
  .contact-card p {
    font-size: 0.85rem !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .contact-info {
    min-width: 0 !important;
    gap: 12px !important;
  }
  .contact-form-wrap h3 {
    font-size: 1.3rem !important;
  }
  .c-form input, .c-form select, .c-form textarea {
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
  }
  .c-form {
    gap: 12px !important;
  }
}

/* --- Footer: compact on mobile --- */
@media (max-width: 768px) {
  .footer {
    padding: 36px 0 20px !important;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px !important;
  }
  /* Brand takes full width on top */
  .foot-brand {
    grid-column: 1 / -1 !important;
  }
  .foot-brand p {
    font-size: 0.82rem !important;
    max-width: 100% !important;
  }
  .foot-brand .brand {
    margin-bottom: 8px !important;
  }
  .foot-brand .brand span {
    font-size: 1rem !important;
  }
  .foot-col h5 {
    font-size: 0.72rem !important;
    margin-bottom: 8px !important;
  }
  .foot-col a {
    font-size: 0.82rem !important;
    padding: 3px 0 !important;
  }
  .socials {
    margin-top: 10px !important;
    gap: 8px !important;
  }
  .socials a {
    width: 32px !important;
    height: 32px !important;
  }
  .foot-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
    margin-top: 24px !important;
    padding-top: 16px !important;
    font-size: 0.75rem !important;
  }
}

/* --- General mobile polish --- */
@media (max-width: 768px) {
  .section {
    padding: 60px 0 !important;
  }
  .section-head {
    margin-bottom: 30px !important;
  }
  .section-head h2 {
    font-size: 1.8rem !important;
  }
  .hero {
    min-height: auto !important;
    padding: 100px 0 50px !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-stage {
    height: 380px !important;
    margin-bottom: 20px !important;
    margin-top: 40px !important;
    transform: scale(0.85);
  }
  .hero-pills .pill {
    transform: scale(0.8) !important;
    padding: 6px 12px !important;
  }
  .pill-1 { top: 0% !important; left: -5% !important; z-index: 10; }
  .pill-2 { top: 40% !important; right: -5% !important; z-index: 10; }
  .pill-3 { bottom: 0% !important; left: -5% !important; z-index: 10; }
  .hero-stats {
    gap: 16px !important;
    justify-content: space-between !important;
    margin-top: 28px !important;
  }
  .hero-stats .num { font-size: 1.3rem !important; }
  .hero-stats .lbl { font-size: 0.75rem !important; }

  /* Team Grid for Mobile (2-column alignment) */
  .team-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important; 
  }
  .member { 
    padding: 10px !important; 
    border-radius: 12px !important;
  }
  .member .ph { 
    width: 100% !important; 
    height: auto !important; 
    aspect-ratio: 4/5 !important;
    border-radius: 8px !important; 
    margin: 0 auto 10px !important; 
    border: none !important; 
  }
  .member h4 { font-size: 0.95rem !important; margin-bottom: 2px !important; }
  .member .role { font-size: 0.75rem !important; margin-bottom: 4px !important; letter-spacing: 0; }
  .member .resp { font-size: 0.7rem !important; line-height: 1.2 !important; }

  /* Compact Community Cards for Mobile */
  .comm-grid { gap: 12px !important; }
  .comm-card { 
    padding: 16px !important; 
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
  }
  .comm-card .ico { 
    grid-row: 1 / span 2;
    margin-bottom: 0 !important; 
    width: 44px !important; 
    height: 44px !important; 
  }
  .comm-card h3 { 
    margin-bottom: 2px !important; 
    font-size: 1.05rem !important; 
  }
  .comm-card p { 
    font-size: 0.85rem !important; 
    margin-bottom: 0 !important;
  }
  .float-card {
    display: none !important;
  }
  .wrap {
    padding: 0 16px !important;
  }
}
