/* Notes, screen 4, get every name right. Drawn at 1440 x 700: the headline 104 down on one
   line, its line 214 down, the transcript 1080 wide 300 down, and the logo's three slanted
   bars in lilac behind its right end (13 degrees, the last running off the board). */
.nn-bars { position: absolute; inset: 0; pointer-events: none; }
.nn-bars i { position: absolute; width: calc(150 * var(--u)); border-radius: calc(75 * var(--u)); background: var(--lilac); rotate: 13deg; }
.nn-bars i:nth-child(1) { left: calc(50% + 290 * var(--u)); top: calc(140 * var(--u)); height: calc(680 * var(--u)); }
.nn-bars i:nth-child(2) { left: calc(50% + 490 * var(--u)); top: calc(110 * var(--u)); height: calc(340 * var(--u)); }
.nn-bars i:nth-child(3) { left: calc(50% + 690 * var(--u)); top: calc(140 * var(--u)); height: calc(680 * var(--u)); }
.nn-frame { position: relative; width: calc(1440 * var(--u)); height: calc(700 * var(--u)); margin: 0 auto; }
.nn-h { position: absolute; left: calc(80 * var(--u)); top: calc(104 * var(--u)); font-size: calc(88 * var(--u)); line-height: 1; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.nn-mid { position: absolute; left: calc(84 * var(--u)); top: calc(214 * var(--u)); font-size: max(17px, calc(26 * var(--u))); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--body); }

.nn-card { position: absolute; left: calc(80 * var(--u)); top: calc(300 * var(--u)); width: calc(1080 * var(--u)); display: grid; gap: calc(14 * var(--u)); padding: calc(28 * var(--u)) calc(36 * var(--u)); border-radius: calc(24 * var(--u)); background: var(--cream); box-shadow: inset 0 0 0 3px var(--ink); }
.nn-lane { display: grid; grid-template-columns: calc(48 * var(--u)) calc(210 * var(--u)) minmax(0, 1fr); align-items: center; gap: 0 calc(18 * var(--u)); min-height: calc(64 * var(--u)); }
/* A voice's head: a dashed ring while it waits, the person once named (the head's r 34 drawn at 22). */
.nn-head { position: relative; width: calc(48 * var(--u)); height: calc(48 * var(--u)); }
.nn-wait-head { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--ink); opacity: 0; }
.nn-face { position: absolute; left: calc(1.8 * var(--u)); top: calc(-3.1 * var(--u)); width: calc(44.4 * var(--u)); height: calc(51 * var(--u)); }
.nn-box { display: inline-flex; align-items: center; justify-self: start; height: calc(42 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--lilac); color: var(--ink); font-size: calc(18 * var(--u)); font-weight: 800; white-space: nowrap; }
.nn-wait { display: none; }
.nn-said { font-size: calc(25 * var(--u)); line-height: 1.3; font-weight: 600; color: var(--body); }
.nn-w { display: inline-block; }

@media (max-width: 1023.98px) {
  .nn-frame { width: auto; height: auto; padding: 64px var(--m) 72px; }
  .nn-h, .nn-mid, .nn-card { position: static; }
  .nn-h { font-size: var(--fs-l); white-space: normal; text-wrap: balance; }
  .nn-mid { margin-top: 14px; font-size: 18px; }
  .nn-card { width: auto; margin-top: 28px; gap: 16px; padding: 20px 18px; border-radius: 22px; }
  .nn-lane { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; min-height: 0; }
  .nn-head { width: 40px; height: 40px; }
  .nn-face { left: 1.5px; top: -2.6px; width: 37px; height: 42.5px; }
  .nn-box { height: 34px; padding: 0 10px; border-radius: 8px; font-size: 15px; }
  .nn-said { grid-column: 1 / -1; font-size: 18px; }
  .nn-bars i { width: 90px; border-radius: 45px; }
  .nn-bars i:nth-child(1) { left: auto; right: 10px; top: 260px; height: 420px; }
  .nn-bars i:nth-child(2) { left: auto; right: -110px; top: 240px; height: 220px; }
  .nn-bars i:nth-child(3) { display: none; }
}

/* ---------------------------------------------------------------- motion
   On repeat while it is in view (js/pages/notes/scenes.js): .is-live holds the waiting
   frame (no words, every voice a dashed head and "Who is talking?"), .is-playing brings
   the words in turn by turn (each at its --at, 0.2 to 1.3 s), and each lane is named in
   turn (.is-naming: the head comes in over 0.2 s; .is-named: its name). As it clears, the
   words fade and the voices wait again. */
.motion .nt-names.is-live .nn-lane:not(.is-naming) .nn-wait-head { opacity: 1; }
.motion .nt-names.is-live .nn-lane:not(.is-naming) .nn-face { opacity: 0; }
.motion .nt-names.is-live .nn-lane:not(.is-named) .nn-box { background: var(--cream); color: #8A90A0; box-shadow: inset 0 0 0 2px var(--iris); }
.motion .nt-names.is-live .nn-lane:not(.is-named) .nn-wait { display: inline; }
.motion .nt-names.is-live .nn-lane:not(.is-named) .nn-name { display: none; }
.motion .nt-names .nn-wait-head, .motion .nt-names .nn-face { transition: opacity 0.2s linear; }
.motion .nt-names.is-live:not(.is-playing) .nn-w { opacity: 0; }
.motion .nt-names.is-playing .nn-w { animation: nt-in 0.12s linear calc(var(--at) * 1ms) both; }
.motion .nt-names.is-clearing .nn-w { opacity: 0; transition: opacity 0.3s ease; }
