/* ============================================================
   INDEX.CSS — Hero page specific styles
   ============================================================ */

/* ── HERO STANDALONE ──────────────────────────────────────── */
.hero-standalone {
  position: relative;
  height: 100vh;
  /* Fade to transparent at bottom so canvas brain bleeds through seamlessly */
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    var(--bg) 15%,
    rgba(6, 6, 10, 0.82) 50%,
    rgba(6, 6, 10, 0.3) 78%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* content sits in lower 50% — away from header */
  padding: 0 5vw 10vh;         /* breathing room at bottom */
  z-index: 10;
  overflow: hidden;
}

.hero-standalone::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30vh;
  /* Softened so hero gradient can blend cleanly into canvas below */
  background: linear-gradient(to bottom, transparent 0%, rgba(6, 6, 10, 0.45) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise grain on hero */
.hero-standalone::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-standalone .section-label {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-loaded .hero-standalone .section-label {
  opacity: 1;
  transform: translateY(0);
}

.hero-heading .word-inner {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.hero-loaded .hero-heading .word-inner {
  opacity: 1;
  transform: translateY(0);
}
.hero-loaded .hero-heading .word:nth-child(1) .word-inner { transition-delay: 0.02s; }
.hero-loaded .hero-heading .word:nth-child(2) .word-inner { transition-delay: 0.07s; }
.hero-loaded .hero-heading .word:nth-child(3) .word-inner { transition-delay: 0.12s; }

.hero-tagline {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.hero-loaded .hero-tagline {
  opacity: 1;
  transform: translateY(0);
}

.hero-standalone .cta-button {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}
.hero-loaded .hero-standalone .cta-button {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL CONTAINER ─────────────────────────────────────── */
#scroll-container {
  position: relative;
  height: 1050vh;
}
/* Let GSAP own all opacity — kill base.css CSS transition conflict */
#scroll-container .scroll-section {
  transition: none !important;
}

/* ── SECTION CONTENT ──────────────────────────────────────── */
.section-content {
  padding-top: 10vh;
  padding-bottom: 10vh;
}
.section-content .section-inner > * + * {
  margin-top: 1.2rem;
}
/* Remove hard border line from all canvas text boxes */
.section-content .section-inner {
  border-left: none;
}
/* Readability boost — text over animated canvas */
.section-content .section-heading {
  text-shadow: 0 2px 40px rgba(6, 6, 10, 0.8);
}
.section-content .section-body {
  text-shadow: 0 1px 20px rgba(6, 6, 10, 0.7);
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.9;
}
.section-content .section-label {
  text-shadow: 0 1px 10px rgba(6, 6, 10, 0.6);
}

/* ── SYSTEM LIST (section 003) ────────────────────────────── */
.system-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.system-list-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color var(--transition-fast);
}
.system-list-item::before {
  content: '→';
  color: var(--accent);
  font-size: 0.65rem;
}
.system-list-item:hover { color: var(--text-secondary); }

/* ── WIDE SECTIONS (007 / 008 — full-width two-col) ──────── */
/* Full bleed — no side offset, section fills viewport width */
.wide-row { padding-left: 5vw; padding-right: 5vw; }

/* Dark box spans full available width */
.section-content .section-inner.section-wide {
  max-width: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
  padding: 2.8rem 3rem;
}

/* Left col: label + heading */
.wide-col-left {}
.wide-col-left .section-label { display: block; margin-bottom: 1.2rem; }

/* Right col: body paragraphs fill the column */
.wide-col-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.section-wide .section-body {
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.85;
  text-align: left;
  opacity: 0.85;
}
.section-wide .section-label,
.section-wide .section-heading,
.section-wide .section-note {
  text-align: left;
}

@media (max-width: 768px) {
  .wide-row { padding-left: 0; padding-right: 0; }
  .section-content .section-inner.section-wide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 6vw;
  }
}

/* ── SERVICES PREVIEW SECTION ─────────────────────────────── */
/* Extra top space to breathe after canvas scroll zone */
.services-preview { padding-top: 0; }
/* Gradient fade — blends canvas zone above into solid section below */
.services-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 25vh;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ambient accent glow behind card stack */
.services-preview::after {
  content: '';
  position: absolute;
  right: 15vw;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 139, 63, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── FAQ SECTION ──────────────────────────────────────────── */
/* gradient top edge handled in base.css via ::after */

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Canvas full-screen — no circle-wipe clip on mobile */
  .canvas-wrap { clip-path: none; }
  #dark-overlay { display: none; }
  .marquee-wrap { display: none; }

  /* Hero transparent so canvas shows through */
  .hero-standalone {
    background: linear-gradient(to bottom, rgba(6,6,10,0.25) 0%, rgba(6,6,10,0.65) 100%);
    z-index: 1;
    padding: 0 6vw 10vh;
  }

  /* Collapse scroll container — sections stack as normal flow */
  #scroll-container { height: auto; }
  .scroll-section {
    position: relative;
    top: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-height: 0;
    padding: 4rem 0;
    display: block;
  }
  /* Higher specificity (2 classes) beats base.css .align-left padding */
  .scroll-section.align-left,
  .scroll-section.align-right {
    padding-left: 0;
    padding-right: 0;
  }
  /* Full-width card — symmetric padding inside, no gap on sides */
  .section-content .section-inner {
    background: rgba(6, 6, 10, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 2rem 6vw;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Services preview — card stack */
  .services-preview { padding: 4rem 6vw; }
  .services-preview::before { display: none; }
  .services-preview::after { display: none; }
  .cardstack-wrap { overflow: hidden; width: 100%; }
  .cardstack-controls { margin-top: 1.5rem; }
}
