  /* ══ The evening's voice — Nobovar Chanorov ═════════════════════════
     One viewport of open paper, centred like the rest of the page. At the top,
     a quiet line in the body type ("В этот вечер для вас поёт") that lands on
     the serif name, and a short wish in the same body type. At the foot, a silent
     painted clip of him singing.

     The figure is cut by the clip's bottom edge, so it STANDS on the section's
     bottom edge: the cut becomes the edge of the sheet. The exported mp4 has
     its studio ground keyed out to true white, and `mix-blend-mode: multiply`
     lays it onto the paper like pigment — white × paper = paper — so there is
     no box and no seam on the other three sides. Its frame (1340 × 1050,
     cropped close around him) is always fitted by HEIGHT and centred; on a
     narrow screen the blank sides (and a little shoulder) simply run off the
     page.

     The section has a DEFINITE height (svh: the toolbar-visible viewport, so
     nothing resizes mid-scroll). That is what lets the clip's row be "whatever
     is left under the note", so the two always share exactly one screen. */
  .guest{
    --guest-pad-x: max(clamp(28px, 6vw, 96px), env(safe-area-inset-left), env(safe-area-inset-right));
    --guest-focus: 50%;                      /* which point of the clip's width sits on the page's centre line */
    position: relative;
    z-index: 1;                              /* paint above the fixed #gl shader */
    background: var(--paper);
    color: var(--ink);
    height: 100vh;                           /* fallback: iOS Safari < 15.4 lacks svh */
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(160px, 1fr);   /* the clip takes what the note leaves */
    row-gap: clamp(12px, 4vh, 44px);         /* air between the wish and the top of his cap */
    justify-items: center;
    text-align: center;
    padding: clamp(44px, 9vh, 104px) var(--guest-pad-x) 0;   /* no foot padding: the figure stands on the edge */
    overflow: hidden;
  }

  .guest__note{ position: relative; z-index: 1; }   /* the note always reads above the clip's blank headroom */

  /* one sentence, two styles: the lead line is set like the wishes below, so
     the serif name is the section's only display type. Both are in the small
     note type of the Figma frame "iPhone 18 Pro - 2" (Our Story's second
     paragraph): ALS Hauss Next, text cut, 14px, line-height 1.4, black at 60%. */
  .guest__heading{
    font-family: 'PF Regal Text', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 440;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .guest__lead{
    display: block;
    font-family: 'ALS Hauss Next Text', 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.15vw, 17px);    /* = .guest__copy = Our Story's note */
    line-height: 1.4;
    letter-spacing: 0;
    color: rgba(0,0,0,.6);
    text-wrap: balance;
  }
  .guest__name{
    display: block;
    margin-top: clamp(2px, .5vh, 6px);
    font-size: clamp(28px, 3.5vw, 54px);     /* ~25% under the section-title scale, so it sits with the note rather than over it */
    line-height: 1.05;
  }
  .guest__name br{ display: none; }          /* one line everywhere; only the sideways-phone layout breaks it */

  /* the two wishes run on as ONE balanced block (the <p>s are inline), never
     more than three lines: together they are ~45em long, so a 22em measure
     always gives three even lines on a phone, and on a wide screen the 26em
     measure gives two */
  .guest__copy{
    margin: clamp(10px, 1.6vh, 18px) auto 0;
    max-width: 26em;
    font-family: 'ALS Hauss Next Text', 'Inter', system-ui, sans-serif;
    letter-spacing: 0;
    font-weight: 400;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.4;
    color: rgba(0,0,0,.6);
    text-wrap: balance;
  }
  .guest__copy p{ display: inline; }

  /* the stage is the full-bleed band under the note; the clip is pinned to its
     bottom-centre and sized by the band's height */
  .guest__stage{
    position: relative;
    justify-self: stretch;
    align-self: stretch;
    min-height: 0;
    margin-inline: calc(-1 * var(--guest-pad-x));
    pointer-events: none;                    /* decorative: no controls, never steals a scroll or a tap */
  }
  .guest__video{
    position: absolute;
    bottom: -1px;                            /* tuck the cut edge a hair past the section's foot — no sub-pixel paper line under it */
    left: 50%;
    height: min(100%, 80vw);                 /* by height; the vw cap stops a tall, narrow band (tablet, phone) from blowing the face up */
    width: auto;
    aspect-ratio: 1340 / 1050;
    max-width: none;
    transform: translateX(calc(-1 * var(--guest-focus)));
    mix-blend-mode: multiply;                /* white ground → paper (see header note) */
    background: #fff;                        /* before the poster arrives: white × paper = nothing */
  }

  /* opacity-only arrival, the same quiet fade Our Story uses — nothing moves.
     Armed by JS (.guest-ready), released on .is-in. The stage also waits for
     .has-portrait (the poster's pixels have arrived), so it fades in rather
     than popping in late. */
  .guest.guest-ready .guest__note,
  .guest.guest-ready .guest__stage{
    opacity: 0;
    transition: opacity .7s ease;
  }
  .guest.guest-ready.is-in .guest__note,
  .guest.guest-ready.is-in.has-portrait .guest__stage{ opacity: 1; }

  @media (prefers-reduced-motion: reduce){
    .guest.guest-ready .guest__note,
    .guest.guest-ready .guest__stage{ opacity: 1; transition: none; }
  }

  /* phones: the name holds one line (7.4vw keeps it well inside the margins
     down to a 320px screen). The clip is wider than the screen here, so the
     centre line moves a little toward his face (the frame's own centre is the
     microphone). */
  @media (max-width: 700px){
    .guest{ --guest-focus: 54%; padding-top: clamp(44px, 9svh, 96px); }
    .guest__name{ font-size: clamp(28px, 7.4vw, 42px); }
    .guest__copy{ max-width: 22em; margin-top: clamp(10px, 1.4svh, 16px); }
    .guest__video{ height: min(100%, 96vw); }
  }
  /* short / landscape viewports (a phone on its side): there isn't the height
     to stack them — the note takes the left half, and the clip, still standing
     on the bottom edge, the right */
  @media (max-height: 520px) and (min-width: 561px){
    .guest{
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr);
      align-items: center;
      column-gap: clamp(16px, 3vw, 40px);
      text-align: start;
      padding-top: 0;
    }
    .guest__note{ justify-self: start; }
    .guest__lead{ font-size: 13px; }         /* = .guest__copy here */
    .guest__name{ font-size: clamp(26px, 3.8vw, 36px); }
    .guest__name br{ display: inline; }
    .guest__copy{ margin: 10px 0 0; max-width: 22em; font-size: 13px; }
    .guest__stage{ margin-inline: 0 calc(-1 * var(--guest-pad-x)); }
    .guest__video{ height: 94%; }
  }
