/* Notes, screen 3, show up sharp. Drawn at 1440 x 820: a mist pill 860 x 520 from 160 off
   the left edge (and on past it, wider than 1440), the headline stepped on the right at
   760, its line at 900, 470 down. The stage, 460 x 380 at 150, 230 and drawn 1.14 times
   up (about 230, 180), is measured in --k: the meeting's card, and Taking notes 286 down. */
.ns-pill { position: absolute; left: calc(-160 * var(--u)); top: calc(150 * var(--u)); width: calc(860 * var(--u) + max(0px, (100vw - 1440px) / 2)); height: calc(520 * var(--u)); border-radius: calc(260 * var(--u)); background: var(--mist); pointer-events: none; }
.ns-frame { position: relative; width: calc(1440 * var(--u)); height: calc(820 * var(--u)); margin: 0 auto; }
.ns-h { position: absolute; left: calc(760 * var(--u)); top: calc(190 * var(--u)); font-size: calc(140 * var(--u)); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; }
.ns-step { padding-left: 1em; }
.ns-mid { position: absolute; left: calc(900 * var(--u)); top: calc(470 * var(--u)); width: calc(440 * var(--u)); font-size: max(17px, calc(26 * var(--u))); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--body); }

.ns-stage { position: absolute; left: calc(150 * var(--u)); top: calc(230 * var(--u)); width: calc(460 * var(--k)); height: calc(380 * var(--k)); transform: scale(1.14); transform-origin: calc(230 * var(--k)) calc(180 * var(--k)); }
.ns-card { position: absolute; left: 0; top: 0; width: calc(460 * var(--k)); height: calc(236 * var(--k)); padding: calc(30 * var(--k)) calc(32 * var(--k)); border-radius: calc(22 * var(--k)); background: var(--cream); box-shadow: inset 0 0 0 max(2px, calc(3 * var(--k))) var(--ink); translate: 0 calc(-40 * var(--k)); opacity: 0.35; }
.ns-time { font-size: calc(16 * var(--k)); line-height: 1.3; font-weight: 700; color: var(--body); }
.ns-title { margin-top: calc(8 * var(--k)); font-size: calc(32 * var(--k)); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ns-heads { position: absolute; left: calc(30 * var(--k)); top: calc(108 * var(--k)); display: flex; gap: calc(-2 * var(--k)); }
.ns-face { width: calc(40 * var(--k)); height: calc(46 * var(--k)); }
.ns-btn { position: absolute; left: calc(32 * var(--k)); bottom: calc(28 * var(--k)); display: inline-flex; align-items: center; height: calc(50 * var(--k)); padding: 0 calc(24 * var(--k)); border-radius: 999px; background: var(--breakout); color: var(--cream); font-size: calc(17 * var(--k)); font-weight: 700; white-space: nowrap; }
.ns-press { left: calc(222 * var(--k)); top: auto; bottom: calc(44 * var(--k)); width: calc(18 * var(--k)); margin: 0; }

.ns-strip { position: absolute; left: 0; top: calc(286 * var(--k)); display: inline-flex; align-items: center; gap: calc(14 * var(--k)); height: calc(64 * var(--k)); padding: 0 calc(28 * var(--k)) 0 calc(22 * var(--k)); border-radius: 999px; background: var(--ink); color: var(--cream); white-space: nowrap; }
.ns-ring { position: relative; width: calc(22 * var(--k)); height: calc(22 * var(--k)); }
.ns-ring i { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--mist); scale: 1.47; opacity: 0.42; }
.ns-ring b { position: absolute; left: calc(6 * var(--k)); top: calc(6 * var(--k)); width: calc(10 * var(--k)); height: calc(10 * var(--k)); border-radius: 50%; background: var(--mist); }
.ns-on { font-size: calc(19 * var(--k)); font-weight: 700; }
.ns-clock { font-size: calc(19 * var(--k)); line-height: 1.2; font-weight: 600; color: var(--iris); font-variant-numeric: tabular-nums; }
.ns-digit { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: top; }
.ns-digits { display: flex; flex-direction: column; translate: 0 -6em; }

@media (max-width: 1023.98px) {
  .nt-sharp { --k: min(1px, calc((100vw - 2 * var(--m)) / 524)); }
  .ns-frame { width: auto; height: auto; display: flex; flex-direction: column; padding: 64px var(--m) 72px; }
  .ns-h, .ns-mid, .ns-stage { position: relative; left: auto; top: auto; }
  .ns-h { font-size: var(--fs-l); white-space: normal; }
  .ns-step { padding-left: 0; }
  .ns-mid { width: auto; margin-top: 14px; font-size: 18px; }
  .ns-stage { margin: calc(110 * var(--k)) 0 0 calc(32 * var(--k)); }
  .ns-pill { left: -40vw; top: auto; bottom: 30px; width: 120vw; height: 300px; border-radius: 150px; }
}

/* ---------------------------------------------------------------- motion
   On repeat while it is in view (js/pages/notes/scenes.js): .is-live holds the waiting
   frame (the card down, Taking notes unseen), .is-playing runs it: 0.8 s the dot presses
   Join and take notes, 1.1 s the card lifts away over 0.35 s and Taking notes comes up,
   its clock running (a second every third of one) and its ring breathing every 1.2 s.
   As it clears, Taking notes fades and the card settles back. */
.motion .nt-sharp.is-live:not(.is-playing) .ns-card { translate: 0 0; opacity: 1; }
.motion .nt-sharp.is-live:not(.is-playing) .ns-btn { background: var(--ink); }
.motion .nt-sharp.is-live:not(.is-playing) .ns-strip { opacity: 0; }
.motion .nt-sharp.is-live:not(.is-playing) .ns-digits { translate: 0 0; }
.motion .nt-sharp.is-playing .ns-btn { animation: nt-ink 0.8s step-end; }
.motion .nt-sharp.is-playing .ns-press { animation: ns-press 0.5s linear 0.8s both; }
.motion .nt-sharp.is-playing .ns-card { animation: ns-lift 0.35s cubic-bezier(0.33, 1, 0.68, 1) 1.1s both; }
.motion .nt-sharp.is-playing .ns-strip { animation: ns-strip 0.35s cubic-bezier(0.33, 1, 0.68, 1) 1.1s both; }
.motion .nt-sharp.is-playing .ns-digits { animation: ns-count 3s steps(9, end) 1.1s both; }
.motion .nt-sharp.is-playing .ns-ring i { animation: ns-breathe 1.2s linear 1.1s infinite both; }
.motion .nt-sharp.is-clearing .ns-strip { opacity: 0; transition: opacity 0.3s ease; }
.motion .nt-sharp.is-clearing .ns-card { translate: 0 0; opacity: 1; transition: translate 0.3s ease, opacity 0.3s ease; }
@keyframes ns-press { 0% { scale: 0; } 50% { scale: 1.3; } 60% { scale: 1.18; } 100% { scale: 0; } }
@keyframes ns-lift { from { translate: 0 0; opacity: 1; } }
@keyframes ns-strip { from { opacity: 0; translate: 0 calc(24 * var(--k)); } }
@keyframes ns-count { from { translate: 0 0; } to { translate: 0 -10.8em; } }
@keyframes ns-breathe { from { scale: 1; opacity: 1; } to { scale: 1.8; opacity: 0; } }
