/* ==============================================================
   ONE THING · page styles
   File: /one-thing/one-thing.css
   Colours, font and buttons come from site.css.
   The "How it helps" section uses shared styles (site.css, section 13).
   The flower's colours live in one-thing.js (section 1).

   Sections:
     1  The invitation
     2  The stage (fills the screen)
   ============================================================== */


/* --------------------------------------------------------------
   1 · THE INVITATION
   -------------------------------------------------------------- */
.threshold {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
  background: linear-gradient(var(--c-sky-top), var(--bg));
}
.threshold__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) {
  .threshold__inner { grid-template-columns: 1fr; }
  .threshold__preview { order: -1; }
}
.threshold__title {
  margin-bottom: .35em;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem);
  font-weight: var(--weight-light);
  letter-spacing: -.025em;
}
.threshold__lede {
  max-width: 30rem;
  margin-bottom: 1.25rem;
  font-size: var(--step-1);
  font-weight: var(--weight-light);
  line-height: 1.45;
}
.threshold__notes {
  max-width: 30rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.threshold__notes li + li { margin-top: .35rem; }
.threshold__notes li::before { content: "·"; margin-right: .6rem; color: var(--accent); font-weight: var(--weight-strong); }
.threshold__begin { min-width: 9rem; font-size: 1.1rem; }

.threshold__preview {
  aspect-ratio: 1;
  max-width: 26rem;
  width: 100%;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.threshold__preview canvas { display: block; width: 100%; height: 100%; }


/* --------------------------------------------------------------
   2 · THE STAGE
   While the flower opens, it covers everything. No buttons.
   -------------------------------------------------------------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0E1624;
  cursor: none;
  animation: stage-in 1.6s ease both;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes stage-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.stage__hint,
.stage__after {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(240, 236, 228, .7);
  font-weight: var(--weight-light);
  pointer-events: none;
}
.stage__hint {
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  font-size: .9rem;
  transition: opacity 2s ease;
}
.stage__hint.is-gone { opacity: 0; }
.stage__after {
  bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
  padding-inline: 1.5rem;
  font-size: var(--step-1);
  opacity: 0;
  transition: opacity 3s ease;
}
.stage__after.is-shown { opacity: 1; }
body.stage-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .stage { animation: none; }
}
