:root {
  --story-bg: #ecebea;
  --story-bg-2: #f8f2ed;
  --story-ink: #201e1d;
  --story-muted: rgba(32, 30, 29, .58);
  --story-soft: rgba(32, 30, 29, .18);
  --story-accent: #17458f;
  --story-accent-2: #f25a3d;
  --story-accent-3: #f3b33d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--story-bg);
  color: var(--story-ink);
  font-family: var(--sc-font-body);
}

.creator-story {
  position: relative;
  min-height: 610vh;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 9%, rgba(255,255,255,.66), transparent 27%),
    radial-gradient(circle at 12% 42%, rgba(242,90,61,.08), transparent 24%),
    radial-gradient(circle at 84% 72%, rgba(23,69,143,.08), transparent 28%),
    linear-gradient(180deg, var(--story-bg), var(--story-bg-2) 38%, #ede8e1 100%);
}

.story-webgl {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.story-webgl canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.story-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(236,235,234,.82) 0%, rgba(236,235,234,.45) 30%, transparent 55%),
    radial-gradient(circle at 50% 50%, transparent 0 45%, rgba(236,235,234,.32) 78%, rgba(236,235,234,.78) 100%);
  mix-blend-mode: normal;
}

.story-loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  background: #ecebea;
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), visibility 1.1s cubic-bezier(.16, 1, .3, 1);
}

.story-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.story-loader__kit {
  position: relative;
  width: 176px;
  height: 118px;
  animation: loaderKitFloat 1.85s ease-in-out infinite alternate;
}

.story-loader__book,
.story-loader__pencil,
.story-loader__crayon {
  position: absolute;
  display: block;
  filter: drop-shadow(0 24px 22px rgba(32,30,29,.16));
}

.story-loader__book {
  left: 24px;
  top: 26px;
  width: 76px;
  height: 58px;
  border-radius: 7px 14px 14px 7px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.32) 0 8px, transparent 9px),
    linear-gradient(135deg, #275aa8, #143f86);
  transform: rotate(-8deg);
}

.story-loader__pencil {
  left: 62px;
  top: 49px;
  width: 106px;
  height: 14px;
  border-radius: 999px 0 0 999px;
  background:
    linear-gradient(90deg, #f3b33d 0 62%, #d7d2c7 63% 70%, #ffa0aa 71% 82%, transparent 83%),
    #f3b33d;
  transform: rotate(-25deg);
}

.story-loader__pencil::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 0;
  border-left: 20px solid #e8c58c;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.story-loader__crayon {
  left: 92px;
  top: 76px;
  width: 74px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f25a3d 0 26%, #f7ead8 27% 68%, #f25a3d 69% 100%);
  transform: rotate(16deg);
}

.story-loader p {
  margin: 0;
  color: rgba(32, 30, 29, .62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

@keyframes loaderKitFloat {
  from { transform: translate3d(0, 8px, 0) rotate(-2deg); }
  to { transform: translate3d(0, -10px, 0) rotate(3deg); }
}

.story-progress {
  position: fixed;
  right: clamp(14px, 3vw, 42px);
  top: 50%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.story-progress__dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(32, 30, 29, .22);
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 10px 24px rgba(32,30,29,.08);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), background .42s cubic-bezier(.16, 1, .3, 1);
}

.story-progress__dot span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  color: rgba(32, 30, 29, .62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  background: rgba(236,235,234,.74);
  backdrop-filter: blur(14px);
  transition: opacity .34s ease, transform .34s ease;
}

.story-progress__dot:hover span,
.story-progress__dot.is-active span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.story-progress__dot.is-active {
  transform: scale(1.36);
  background: var(--story-ink);
}

.story-scene {
  min-height: 120vh;
  position: relative;
  z-index: 5;
  display: grid;
  align-items: center;
  padding: clamp(82px, 8vw, 145px) clamp(24px, 7vw, 120px);
}

.story-scene--hero { min-height: 126vh; }

.story-copy {
  width: min(670px, 100%);
  position: relative;
  z-index: 6;
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(8px);
  transition:
    opacity 1.1s cubic-bezier(.16, 1, .3, 1),
    transform 1.1s cubic-bezier(.16, 1, .3, 1),
    filter 1.1s cubic-bezier(.16, 1, .3, 1);
}

.story-scene.is-visible .story-copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.story-copy::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -40px;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(236,235,234,.72) 68%, rgba(236,235,234,.96));
  opacity: .88;
  transform: translateY(20px);
}

.story-copy--left { justify-self: start; }
.story-copy--right { justify-self: end; }
.story-copy--center {
  justify-self: center;
  text-align: center;
}
.story-copy--narrow { width: min(610px, 100%); }

.story-eyebrow {
  margin: 0 0 28px;
  color: rgba(32, 30, 29, .52);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.story-copy h1,
.story-copy h2 {
  margin: 0;
  max-width: 900px;
  color: var(--story-ink);
  font-family: var(--sc-font-heading);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .96;
}

.story-copy h1 {
  font-size: clamp(48px, 7.6vw, 126px);
}

.story-copy h2 {
  font-size: clamp(42px, 6vw, 92px);
}

.story-poem {
  position: relative;
  margin-top: clamp(34px, 5vw, 64px);
  display: grid;
  gap: 18px;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: -.02em;
}

.story-poem--center { justify-items: center; }

.story-line {
  margin: 0;
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.story-line--solid {
  color: rgba(32,30,29,.94);
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}

.story-line--ghost {
  color: rgba(32,30,29,.22);
  filter: blur(.18px);
}

.story-line--ghost:nth-child(4) {
  color: rgba(32,30,29,.14);
}

.story-cta {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #201e1d;
  box-shadow: 0 22px 38px rgba(32,30,29,.18);
  transition: transform .28s ease, box-shadow .28s ease;
}

.story-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 50px rgba(32,30,29,.24);
}

@media (max-width: 900px) {
  .creator-story { min-height: 640vh; }
  .story-atmosphere {
    background:
      linear-gradient(180deg, rgba(236,235,234,.9), rgba(236,235,234,.42) 46%, rgba(236,235,234,.72)),
      radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(236,235,234,.64) 100%);
  }
  .story-progress { display: none; }
  .story-scene {
    min-height: 124vh;
    padding: 92px 24px;
    align-items: end;
  }
  .story-copy,
  .story-copy--left,
  .story-copy--right,
  .story-copy--center {
    justify-self: start;
    text-align: left;
  }
  .story-copy h1 { font-size: clamp(44px, 16vw, 72px); }
  .story-copy h2 { font-size: clamp(38px, 13vw, 62px); }
  .story-poem { font-size: 16px; gap: 14px; }
}


/* Star Creando typography layer */
.story-eyebrow,
.story-progress__dot,
.story-cta,
.story-loader p{font-family:var(--sc-font-button);}
.story-line{font-family:var(--sc-font-hand);}
.story-copy h1,
.story-copy h2{font-family:var(--sc-font-heading);letter-spacing:.005em;}
