/* HouSchool — Cinematic 3D Visual Storytelling Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #050811;
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  
  --red: #f43f5e;
  --blue: #38bdf8;
  --green: #10b981;
  --amber: #f59e0b;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fixed 3D Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  display: block;
}

.cinematic-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(5, 8, 17, 0.6) 80%, #050811 100%);
}

/* Minimal Top Header */
.story-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 18px 32px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.story-header > * {
  pointer-events: auto;
}

.brand-seamless {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.25s ease;
}

.brand-seamless:hover {
  transform: scale(1.02);
}

.brand-emblem-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.brand-emblem-img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title-luminous {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.2);
}

.brand-tagline-shine {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: #fbbf24;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.header-wa-btn {
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  transition: transform 0.2s ease;
}

.header-wa-btn:hover {
  transform: translateY(-2px);
}

/* Story Perspective Switcher (Header Pill) */
.story-nav-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 4px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.story-nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.story-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.story-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

/* Mobile Story Switcher (Inside Act 4) */
.mobile-story-switcher {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mobile-switcher-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.mobile-switcher-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.mobile-switcher-btn {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.mobile-switcher-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

/* Scrollable Narrative Track */
.scroll-track {
  position: relative;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.scroll-act {
  height: 180vh;
  position: relative;
  box-sizing: border-box;
  padding: 0 6vw;
  display: flex;
}

.mobile-story-pod {
  display: contents;
}

.mobile-story-stage {
  display: none;
}

/* Sticky Narrative Overlays */
.story-overlay {
  pointer-events: auto;
  position: sticky;
  top: 20vh;
  align-self: flex-start;
  max-width: 520px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.story-overlay.left {
  margin-right: auto;
}

.story-overlay.right {
  margin-left: auto;
}

.story-overlay.center {
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
}

/* Story Badges */
.story-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.story-pill.red {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.story-pill.blue {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.story-pill.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.story-pill.amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Story Headlines & Captions */
.story-headline {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: #ffffff;
}

.highlight-red {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-blue {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-green {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-amber {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-caption {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.scroll-indicator-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.mouse-icon {
  width: 16px;
  height: 24px;
  border: 2px solid var(--text-dim);
  border-radius: 9999px;
  position: relative;
}

.mouse-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  background: var(--text-dim);
  border-radius: 9999px;
  animation: mouse-scroll 1.6s infinite;
}

@keyframes mouse-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* Call to Action Box */
.cta-box-center {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-wa-giant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-wa-giant:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.65);
}

.slot-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  justify-content: center;
}

.slot-guarantee span:first-child {
  color: #34d399;
  font-weight: 700;
}

/* Vertical Scroll Progress Rail on Right Side (Pure Minimalist, No Numbers) */
.vertical-scroll-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  height: 220px;
  width: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.vertical-rail-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.vertical-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #f43f5e 0%, #38bdf8 38%, #10b981 72%, #f59e0b 100%);
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
  transition: height 0.06s linear;
}

/* Responsive Mobile Optimization (Executive Story Pods, Radiant Color Halos, Full-Height Snap) */
@media (max-width: 768px) {
  html, body {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .story-header {
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(5, 8, 17, 0.95) 0%, rgba(5, 8, 17, 0) 100%);
  }

  .story-nav-switcher {
    display: none;
  }

  .brand-seamless {
    gap: 8px;
  }

  .brand-emblem-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-title-luminous {
    font-size: 1.25rem;
  }

  .brand-tagline-shine {
    font-size: 0.60rem;
    letter-spacing: 0.10em;
  }

  .header-wa-btn {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .vertical-scroll-rail {
    right: 6px;
    height: 100px;
    width: 3px;
  }

  /* Full-Viewport Chapter Stage */
  .scroll-act {
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px 14px 14px 14px;
    box-sizing: border-box;
    position: relative;
  }

  /* Unified Executive Story Pod — Fills the mobile screen seamlessly */
  .mobile-story-pod {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    height: 100%;
    max-height: calc(100dvh - 78px);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(10, 15, 29, 0.84);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Luminous Themed Radiant Halos for each Act */
  .pod-red {
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 16px 45px rgba(244, 63, 94, 0.22), 0 0 25px rgba(244, 63, 94, 0.12);
  }

  .pod-blue {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 45px rgba(56, 189, 248, 0.22), 0 0 25px rgba(56, 189, 248, 0.12);
  }

  .pod-green {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 16px 45px rgba(16, 185, 129, 0.22), 0 0 25px rgba(16, 185, 129, 0.12);
  }

  .pod-amber {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 16px 45px rgba(245, 158, 11, 0.22), 0 0 25px rgba(245, 158, 11, 0.12);
  }

  /* Cinematic Upper Deck (Photo) */
  .mobile-story-stage {
    display: block !important;
    width: 100%;
    flex: 1 1 50%;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    background: #000;
  }

  .mobile-story-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .mobile-img-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 29, 0) 65%, rgba(10, 15, 29, 0.95) 100%);
    pointer-events: none;
  }

  /* Narrative Lower Deck (Story Text) */
  .story-overlay {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 18px 18px 18px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    pointer-events: auto;
  }

  .story-overlay.left,
  .story-overlay.right,
  .story-overlay.center {
    margin: 0;
    text-align: left;
  }

  #act-4 .story-overlay.center {
    text-align: center;
  }

  .story-pill {
    padding: 3px 9px;
    font-size: 0.65rem;
    margin-bottom: 6px;
    align-self: flex-start;
  }

  #act-4 .story-pill {
    align-self: center;
  }

  .story-headline {
    font-size: clamp(1.3rem, 4.8vw, 1.55rem);
    margin-bottom: 6px;
    line-height: 1.15;
  }

  .story-caption {
    font-size: 0.85rem;
    line-height: 1.44;
    color: #cbd5e1;
  }

  #act-4 .story-overlay {
    padding: 12px 16px 16px 16px;
  }

  #act-4 .story-headline {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }

  #act-4 .story-caption {
    font-size: 0.80rem;
    line-height: 1.36;
  }

  .cta-box-center {
    margin-top: 10px;
    gap: 6px;
  }

  .btn-wa-giant {
    width: 100%;
    font-size: 0.88rem;
    padding: 11px 16px;
    border-radius: 12px;
  }

  .slot-guarantee {
    font-size: 0.70rem;
    gap: 6px;
  }
}

/* Suppress any Netlify injected badges, feedback drawers, or pills */
iframe[src*="netlify"],
[data-netlify-deploy-id],
[id*="netlify"],
[class*="netlify"],
netlify-drawer,
.netlify-badge {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  position: absolute !important;
  top: -9999px !important;
}
