/**
 * www/lp/regenerative/css/style.css
 * Regenerative Aesthetics (Flower Sequence Scrollytelling)
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=JetBrains+Mono:wght@300;400;500&family=Shippori+Mincho:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

:root {
  --bg-deep: #000000;
  --bg-surface: #0A0D14;
  --text-pure: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --accent-gold: #D97706;
  --accent-rose: #FDA4AF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.font-serif-display {
  font-family: 'Cinzel', 'Shippori Mincho', serif;
  letter-spacing: 0.08em;
}

.font-mincho-jp {
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 0.05em;
}

.font-mono-hud {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}

/* Scrollytelling Stage Container */
.scrolly-container {
  position: relative;
  width: 100%;
  height: 500vh; /* 5 screen heights for 60 frames exploration */
}

.scrolly-sticky-frame {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-deep);
}

/* Background & Canvas */
#flower-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* Canvas Subtle Vignette */
.canvas-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.75) 95%);
}

/* Overlaid Text Layer */
.scrolly-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* Left-aligned Asymmetric Story Stage */
.story-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 3rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .story-stage {
    padding-left: clamp(4rem, 10vw, 12rem);
  }
}

@media (max-width: 640px) {
  .story-stage {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 7rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
  }
}

.story-stage.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



/* Initial Loading Curtain */
#loader-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#loader-curtain.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subsequent Sections */
.content-section {
  position: relative;
  z-index: 10;
  background-color: #05070B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
