/* ——— Show her once (本人 2026-11-28 approved): Rosa's Monday, in four beats, held while the page moves. Her words stand at the left;
   the stage at the right shows the window and her card (demos/once-mac), the next Monday's lock screen (a real iOS 27 capture),
   and her library (demos/once-sky). One beat shows at a time; sections/once.js marks it from the scene's step. */
.once { position: relative; height: 400vh; }
.once-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --once-w: min(27rem, 29vw); --once-gap: clamp(40px, 4.2vw, 110px); }
.once-words { position: absolute; left: var(--edge); top: 0; bottom: 0; width: var(--once-w); pointer-events: none; }
.once-w { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 16px)); transition: opacity .8s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.once-w.show { opacity: 1; transform: translateY(-50%); transition-delay: .2s; }
.once-w .eyebrow { margin-bottom: 14px; }
.once-w h3 { font-family: var(--font-display); font-weight: var(--w-regular); font-size: clamp(32px, 1.4vw + 18px, 54px); line-height: 1.05; letter-spacing: -.006em; color: var(--ink-title); }
.once-w p:not(.eyebrow) { margin: 16px 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
/* the one quiet line on what she will and won't see */
.once-w p.quiet { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 248, 235, .08); font-size: var(--t-caption); line-height: 1.55; color: var(--ink-3); }
.once-w .quiet i { display: inline-block; width: 19px; height: 13px; margin: 0 10px 0 0; vertical-align: -1px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(244, 247, 252, .85), inset 0 0 6px 1px rgba(214, 228, 255, .5), 0 0 8px rgba(214, 228, 255, .25); }
.once-stage { position: absolute; left: calc(var(--edge) + var(--once-w) + var(--once-gap)); right: var(--edge); top: max(11vh, 92px); bottom: 5vh; }
.once-stage > * { position: absolute; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.once-stage > .show { opacity: 1; visibility: visible; transition: opacity .9s ease .15s, visibility 0s, transform 1.2s cubic-bezier(.2, .7, .2, 1) .15s; }
.once-mac { inset: 0; transform: translateY(14px); }
.once-mac.show { transform: none; }
/* the next Monday, on her phone */
.once-phone { left: 0; right: 0; top: 0; bottom: 0; margin: auto; height: min(80vh, 100%, 940px); aspect-ratio: 1320 / 2868; border-radius: 13.5% / 6.2%; overflow: hidden; padding: 9px; background: #0d0d0f;
  box-shadow: 0 0 0 1px rgba(255, 248, 235, .14), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 60px 120px -50px rgba(0, 0, 0, .95), 0 0 140px -30px rgba(226, 194, 126, .16); transform: translateY(22px) scale(.985); }
.once-phone.show { transform: none; }
.once-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12.4% / 5.7%; }
/* her library, and the line it closes on */
.once-sky { left: 0; right: 0; top: 0; bottom: calc(4.2em + 2vh); }
.once-grow { position: absolute; left: calc(var(--edge) + var(--once-w) + var(--once-gap)); right: var(--edge); bottom: 5vh; margin: 0 auto; max-width: 46em; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, .45vw + 12px, 24px); line-height: 1.5; color: var(--ink-title); text-wrap: balance;
  opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.once-grow.show { opacity: 1; transform: none; transition-delay: 2.4s; }

/* a phone: one column, every beat in turn, nothing held */
@media (max-width: 760px) {
  .once { height: auto; padding: 10vh 0 6vh; }
  .once-pin { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; padding: 0 var(--gutter); }
  .once-words, .once-stage { display: contents; }
  .once-w, .once-stage > *, .once-grow { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; transition: none; }
  .once-w { order: var(--o); margin-top: 56px; }
  .once-w:first-child { margin-top: 0; }
  .once-mac { order: 2; margin-top: 28px; }
  .once-w[data-on="1"] { --o: 3; } .once-w[data-on="0"] { --o: 1; } .once-w[data-on="2"] { --o: 4; } .once-w[data-on="3"] { --o: 6; }
  .once-phone { order: 5; margin: 28px auto 0; width: min(280px, 72%); height: auto; }
  .once-sky { order: 7; margin-top: 28px; bottom: auto; }
  .once-grow { order: 8; margin: 36px 0 0; left: auto; right: auto; bottom: auto; text-align: left; }
  .once-w.show { transform: none; }
}
