  /* ── When and where ───────────────────────────────────────────────
     Black field, 94% of the screen tall, so the next page shows at its foot.
     A ledger of three facts — the date, the place, the hours — and the video
     of painted plates under it. Built to the Figma frame "iPhone 18 Pro - 1"
     (402 × 874; this section is its black 402 × 821), so on a phone every
     size below is that frame's px ÷ 402 in vw:

       labels   ALS Hauss Next, 16px, white at 70%
       values   PF Regal Text, 46px (the date 42px), line-height 1.1
       spacing  cap-top to cap-top 33px from label to value; 30px from a
                value's baseline to the rule and from the rule to the next
                label's cap top. The frame has 36px from the section top to
                the first label and 8px under the plates; both are opened up
                here (56px and 48px of 402) for more air top and bottom
       rules    1px white at 25%, only BETWEEN the facts
       plates   centred under the ledger, a plate ~65% of the width

     The frame's text boxes are trimmed to cap height and baseline
     (text-box: trim-both cap alphabetic), which is what makes those numbers
     exact; browsers without text-box get the same trim from negative margins
     worked out of each font's own metrics (see the @supports block).

     From 640px (and on a phone turned sideways) the ledger stands at the
     bottom left and the plates hang mid-right, on a diagonal.

     The mp4 is a portrait frame (720×1280) cut every ¾ second to a different
     piece. The round plates sit in the middle of the frame, but one piece is
     a tall oval dish (y 172–1113), so the window onto the clip is 3:4 — the
     frame's middle 720×960 — and only pure black is ever cropped. The
     window is sized by its WIDTH on a phone and by its column on wider
     screens; its height always follows the 3:4 ratio. The clip's own ground
     is pure black, so the window has no visible edge. */
  .tjk{
    --tjk-pad-x: max(clamp(24px, 7.2vw, 96px), env(safe-area-inset-left), env(safe-area-inset-right));   /* 29px of 402 */
    --tjk-ink: #fff;
    --tjk-rule: rgba(255,255,255,.25);
    --tjk-fs:  clamp(30px, min(11.44vw, 6.2svh), 64px);   /* the values: 46px of 402; the svh term eases it down on a short phone */
    --tjk-pt:  clamp(40px, min(14vw, 7svh), 88px);        /* 56px of 402 to the first label's cap top (the frame has 36; opened up on request). The svh term eases it on a short phone */
    --tjk-pb:  clamp(32px, min(12vw, 6svh), 80px);        /* 48px of 402 under the plate's window (the frame has 8) */
    --tjk-gap: clamp(16px, 6.2vw, 40px);                  /* ledger → plate window */
    position: relative;
    z-index: 1;                              /* paint above the fixed #gl shader */
    min-height: 94vh;                        /* fallback: iOS Safari < 15.4 lacks svh */
    min-height: 94svh;                       /* 821 of 874: the toolbar-visible viewport, so nothing resizes mid-scroll */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;            /* the plates take what the ledger leaves */
    row-gap: var(--tjk-gap);
    padding: var(--tjk-pt) var(--tjk-pad-x) var(--tjk-pb);
    background: #000;
    color: var(--tjk-ink);
    overflow: hidden;
  }

  .tjk__facts{
    position: relative; z-index: 1;
    align-self: start;
    font-family: 'PF Regal Text', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 400;
    /* every spacing below is in em of this, so the whole ledger scales as one */
    font-size: var(--tjk-fs);
    line-height: 1.1;
  }
  .tjk__fact{
    position: relative;
    display: flex; flex-direction: column;
    row-gap: .47em;                          /* label cap height + this = 33px cap-top to cap-top */
    padding-block: .65em;                    /* 30px: value baseline → rule, rule → next label */
  }
  .tjk__fact:first-child{ padding-top: 0; }
  .tjk__fact:last-child{ padding-bottom: 0; }
  /* the rules sit between the facts only */
  .tjk__fact:not(:last-child)::after{
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--tjk-rule);
    transform-origin: 0 50%;
  }
  .tjk__label{
    display: block;
    font-family: 'ALS Hauss Next', 'Inter', system-ui, sans-serif;
    font-weight: 485;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    text-box: trim-both cap alphabetic;
  }
  .tjk__value{
    display: block;
    letter-spacing: 0;
    text-box: trim-both cap alphabetic;
  }
  .tjk__fact:first-child .tjk__value{ font-size: .913em; }   /* the date: 42 of 46 */

  /* no text-box: trim the same amount by hand. Each margin is the space the
     line box keeps above the cap height / below the baseline, from the font's
     hhea metrics at this line-height:
       PF Regal Text  ascent .75  descent .25  cap .674  → above .126em, below .30em at 1.1
       ALS Hauss Next ascent .98  descent .19  cap .704  → above .291em, below .205em at 1.2 */
  @supports not (text-box: trim-both cap alphabetic){
    .tjk__value{ margin-block: -.126em -.30em; }
    .tjk__label{ margin-block: -.291em -.205em; }
  }

  /* the window onto the clip: centred under the ledger */
  .tjk__orb{
    position: relative;
    justify-self: center;
    align-self: center;
    /* 72vw: a round plate fills ~90% of the window, ~260px of 402. On a short
       phone it gives way so the section still fits its 94% of the screen: the
       ledger is about 34px + 7.07em tall (three 16px labels' cap heights, and
       the values, gaps and rules in em), and the window may have the rest of
       the height, less the paddings, as 3:4. Never under 40vw. */
    width: max(40vw, min(72vw, 420px,
                 calc((94svh - var(--tjk-pt) - 34px - 7.07 * var(--tjk-fs) - var(--tjk-gap) - var(--tjk-pb)) * .75)));
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }
  .tjk__video{
    position: absolute; inset: 0;            /* out of flow: the clip's 720×1280 never sizes the window */
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;                       /* 9:16 into 3:4 — crops only the black above and below */
    object-position: 50% 50%;
  }

  /* entrance — armed by JS (.tjk-ready), released on .is-in. Opacity and a
     short rise only: no blur, which stutters across several large lines on
     mobile Safari. Each fact arrives in turn with its rule drawing in under
     it, then the plates. */
  .tjk.tjk-ready .tjk__label,
  .tjk.tjk-ready .tjk__value{ opacity: 0; transform: translateY(16px); }
  .tjk.tjk-ready .tjk__fact:not(:last-child)::after{ transform: scaleX(0); }
  .tjk.tjk-ready .tjk__orb{ opacity: 0; transform: scale(.975); }
  .tjk.tjk-ready .tjk__label,
  .tjk.tjk-ready .tjk__value,
  .tjk.tjk-ready .tjk__orb{
    transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.2,1);
  }
  .tjk.tjk-ready .tjk__fact:not(:last-child)::after{ transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
  .tjk.tjk-ready.is-in .tjk__label,
  .tjk.tjk-ready.is-in .tjk__value,
  .tjk.tjk-ready.is-in .tjk__orb{ opacity: 1; transform: none; }
  .tjk.tjk-ready.is-in .tjk__fact:not(:last-child)::after{ transform: none; }
  .tjk.tjk-ready.is-in .tjk__fact:nth-child(1) .tjk__value{ transition-delay: .05s; }
  .tjk.tjk-ready.is-in .tjk__fact:nth-child(1)::after     { transition-delay: .1s; }
  .tjk.tjk-ready.is-in .tjk__fact:nth-child(2) .tjk__label{ transition-delay: .12s; }
  .tjk.tjk-ready.is-in .tjk__fact:nth-child(2) .tjk__value{ transition-delay: .17s; }
  .tjk.tjk-ready.is-in .tjk__fact:nth-child(2)::after     { transition-delay: .22s; }
  .tjk.tjk-ready.is-in .tjk__fact:nth-child(3) .tjk__label{ transition-delay: .24s; }
  .tjk.tjk-ready.is-in .tjk__fact:nth-child(3) .tjk__value{ transition-delay: .29s; }
  .tjk.tjk-ready.is-in .tjk__orb{ transition-delay: .3s; }

  @media (prefers-reduced-motion: reduce){
    .tjk.tjk-ready .tjk__label,
    .tjk.tjk-ready .tjk__value,
    .tjk.tjk-ready .tjk__orb{ opacity: 1; transform: none; transition: none; }
    .tjk.tjk-ready .tjk__fact:not(:last-child)::after{ transform: none; transition: none; }
  }

  /* two columns: tablets and up, and a phone turned sideways (too short to
     stack). The two sit on a diagonal rather than side by side on one line:
     the ledger stands on the section's foot at the left, and the plates hang
     in the middle of the right half.

     The ledger column is never narrower than ~38vw (the page less its
     padding, the gap and a window of at most 44vw), and the widest single
     line — the hours — is about 6.45em, so 5.6vw always fits. */
  @media (min-width: 640px), (orientation: landscape) and (max-height: 560px){
    .tjk{
      --tjk-pad-x: max(clamp(24px, 6.4vw, 96px), env(safe-area-inset-left), env(safe-area-inset-right));
      --tjk-pt: clamp(32px, 11svh, 120px);
      --tjk-pb: clamp(32px, 11svh, 120px);
      /* the window's width: 44vw, or less where the section's height (94svh
         less its padding) can't hold a 3:4 window that wide. It is the second
         column's width outright, so the ledger's column is known up front. */
      --tjk-orb-w: min(44vw, calc((94svh - var(--tjk-pt) - var(--tjk-pb)) * .75), 620px);
      grid-template-columns: minmax(0, 1fr) var(--tjk-orb-w);
      grid-template-rows: 1fr;
      column-gap: clamp(24px, 5vw, 96px);
      padding-top: var(--tjk-pt);
      padding-bottom: var(--tjk-pb);
    }
    .tjk__facts{
      align-self: end;
      font-size: clamp(26px, min(5.6vw, 8svh), 60px);   /* the ledger is ~34px + 7.07em tall: 8svh keeps it inside a sideways phone */
    }
    .tjk__label{ font-size: clamp(14px, 1.15vw, 18px); }
    .tjk__orb{
      align-self: center;
      width: 100%;                           /* of its column */
    }
  }
  /* wide screens: room for the place on one line (about 8.9em of the 38vw column) */
  @media (min-width: 1101px){
    .tjk__facts{
      font-size: clamp(44px, min(4.2vw, 10svh), 76px);
      white-space: nowrap;
    }
    .tjk__value br{ display: none; }
  }
