/* Notes, screen 6, follow up first. Drawn at 1440 x 800, mirrored: a mist diamond (480
   square, turned 45 degrees, at 130, 160) behind the draft; the headline stepped and flush
   right 80 in, 200 down; its line 462 down. The stage, the draft 500 x 380 at 120, 210 and
   drawn 1.12 times up (about 250, 190), is measured in --k. */
.nf-diamond { position: absolute; left: calc(50% - 590 * var(--u)); top: calc(160 * var(--u)); width: calc(480 * var(--u)); height: calc(480 * var(--u)); border-radius: calc(72 * var(--u)); background: var(--mist); rotate: 45deg; pointer-events: none; }
.nf-frame { position: relative; width: calc(1440 * var(--u)); height: calc(800 * var(--u)); margin: 0 auto; }
.nf-h { position: absolute; right: calc(80 * var(--u)); top: calc(200 * var(--u)); text-align: right; font-size: calc(130 * var(--u)); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; }
.nf-mid { position: absolute; right: calc(84 * var(--u)); top: calc(462 * var(--u)); text-align: right; font-size: max(17px, calc(26 * var(--u))); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--body); }

.nf-stage { position: absolute; left: calc(120 * var(--u)); top: calc(210 * var(--u)); width: calc(500 * var(--k)); height: calc(380 * var(--k)); transform: scale(1.12); transform-origin: calc(250 * var(--k)) calc(190 * var(--k)); }
.nf-card { position: absolute; inset: 0; border-radius: calc(22 * var(--k)); background: var(--cream); box-shadow: inset 0 0 0 max(2px, calc(3 * var(--k))) var(--ink); }
.nf-card::before { content: ""; position: absolute; left: calc(32 * var(--k)); right: calc(32 * var(--k)); top: calc(76 * var(--k)); height: 2px; background: var(--mist); }
.nf-to { position: absolute; left: calc(32 * var(--k)); top: calc(28 * var(--k)); font-size: calc(15 * var(--k)); line-height: 1.3; font-weight: 700; color: var(--body); }
.nf-people { position: absolute; left: calc(70 * var(--k)); top: calc(18 * var(--k)); display: flex; align-items: center; gap: calc(10 * var(--k)); }
.nf-who { display: inline-flex; align-items: center; gap: calc(8 * var(--k)); height: calc(38 * var(--k)); padding: 0 calc(14 * var(--k)) 0 calc(6 * var(--k)); border-radius: 999px; box-shadow: inset 0 0 0 max(1.5px, calc(2 * var(--k))) var(--ink); font-size: calc(16 * var(--k)); font-weight: 700; color: var(--ink); }
.nf-face { width: calc(25 * var(--k)); height: calc(29 * var(--k)); margin: 0 calc(1.5 * var(--k)); }
.nf-out { display: inline-flex; align-items: center; height: calc(30 * var(--k)); padding: 0 calc(12 * var(--k)); border-radius: 999px; background: var(--iris); color: var(--plum); font-size: calc(14 * var(--k)); font-weight: 800; }
.nf-subj { position: absolute; left: calc(32 * var(--k)); top: calc(100 * var(--k)); font-size: calc(22 * var(--k)); line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.nf-steps { position: absolute; left: calc(32 * var(--k)); right: calc(32 * var(--k)); top: calc(146 * var(--k)); display: grid; gap: calc(14 * var(--k)); }
.nf-steps p { display: flex; align-items: center; gap: calc(10 * var(--k)); font-size: calc(17 * var(--k)); line-height: 1.3; font-weight: 600; color: var(--body); }
.nf-tick { width: calc(18 * var(--k)); height: calc(18 * var(--k)); }
.nf-btn { position: absolute; left: calc(32 * var(--k)); bottom: calc(30 * var(--k)); display: inline-flex; align-items: center; height: calc(50 * var(--k)); padding: 0 calc(28 * var(--k)); border-radius: 999px; background: var(--breakout); color: var(--cream); font-size: calc(17 * var(--k)); font-weight: 700; }
.nf-press { left: calc(76 * var(--k)); top: auto; bottom: calc(46 * var(--k)); width: calc(18 * var(--k)); margin: 0; }

@media (max-width: 1023.98px) {
  .nt-send { --k: min(1px, calc((100vw - 2 * var(--m)) / 560)); }
  .nf-frame { width: auto; height: auto; display: flex; flex-direction: column; padding: 64px var(--m) 72px; }
  .nf-h, .nf-mid, .nf-stage { position: relative; left: auto; right: auto; top: auto; text-align: left; }
  .nf-h { font-size: var(--fs-l); white-space: normal; }
  .nf-mid { margin-top: 14px; font-size: 18px; }
  .nf-stage { margin: calc(76 * var(--k)) 0 calc(24 * var(--k)) calc(30 * var(--k)); }
  .nf-diamond { left: -20vw; top: auto; bottom: 64px; width: 330px; height: 330px; border-radius: 56px; }
}

/* ---------------------------------------------------------------- motion
   On repeat while it is in view (js/pages/notes/scenes.js): .is-live holds the waiting
   frame (no draft), .is-playing runs it: 0.4 s the draft comes up over 0.35 s; 0.8 and
   1.0 s Katie and Manvi join the To line; 1.3 s Outside pops; 2.0 s the dot presses Send.
   As it clears, the draft fades. */
.motion .nt-send.is-live:not(.is-playing) .nf-card { opacity: 0; }
.motion .nt-send.is-playing .nf-card { animation: nf-open 0.35s cubic-bezier(0.33, 1, 0.68, 1) 0.4s both; }
.motion .nt-send.is-playing .nf-who { animation: nt-in 0.18s linear 0.8s both; }
.motion .nt-send.is-playing .nf-who-2 { animation-delay: 1s; }
.motion .nt-send.is-playing .nf-out { animation: nt-pop 0.42s linear 1.3s both; }
.motion .nt-send.is-playing .nf-btn { animation: nt-ink 2s step-end; }
.motion .nt-send.is-playing .nf-press { animation: nf-press 0.6s linear 2s both; }
.motion .nt-send.is-clearing .nf-card { opacity: 0; transition: opacity 0.3s ease; }
@keyframes nf-open { from { opacity: 0; translate: 0 calc(30 * var(--k)); } }
@keyframes nf-press { 0% { scale: 0; } 41.7% { scale: 1.3; } 66.7% { scale: 1.04; } 100% { scale: 0; } }
