/* The Tutix film (templates/pages/motion.html): one live class, seen by a camera that starts on a pencil line and pulls back
   to the whole room, then walks the desk to the letter a parent gets and what it costs.

   Planes are laid out in WORLD pixels (the window is 1200 x 760, its centre is the origin, +z is toward the viewer); the camera
   is one matrix3d on .film__world, written by static/js/film-scene.js. Nothing here animates by itself: every frame is the
   script's, a pure function of film time. Colours are Porcelain tokens plus the few --f-* values below, which change with the
   colour scheme. Every class and id of the film is namespaced (.fk-, #f-) so nothing on the site can meet it. */

/* the tutor's ink follows the pick: the three colours blend instead of jumping (the landing page does the same) */
@property --tutor-ink   { syntax:"<color>"; inherits:true; initial-value:#14b8a6 }
@property --tutor-ink-l { syntax:"<color>"; inherits:true; initial-value:#0a6259 }
@property --tutor-ink-d { syntax:"<color>"; inherits:true; initial-value:#46cdbd }
:root{transition:--tutor-ink 420ms var(--mk-ease,ease),--tutor-ink-l 420ms var(--mk-ease,ease),--tutor-ink-d 420ms var(--mk-ease,ease)}

.film{--f-chrome:var(--tutix-chrome-top,64px);--f-board:#fff;--f-hi:rgba(255,253,247,.62);--f-lo:rgba(90,74,50,.13);--f-base:color-mix(in srgb, var(--cls-ground) 34%, var(--cls-well));--f-grid:rgba(74,62,44,.11);--f-edge:rgba(255,255,255,.9);--f-rim:rgba(255,255,255,.6);--f-shadow:rgba(74,62,44,.12);--f-on-ink:#fff;--f-win-w:1200px;--f-win-h:760px;
  --cls-teal:var(--tutor-ink,#14b8a6);--cls-teal-ink:var(--tutor-ink-l,#0a6259);
  --f-svh:100vh;--f-lvh:100vh;--f-frame:calc(var(--f-svh) - var(--f-chrome));--f-fh:max(var(--f-frame),480px);
  position:relative;height:calc(var(--f-lvh) - var(--f-chrome) + 7.3 * var(--f-svh));color:var(--cls-ink);font-family:var(--cls-font,"Lexend",system-ui,sans-serif);font-size:14px;line-height:1.4;-webkit-font-smoothing:antialiased}
.film *{box-sizing:border-box}
.film__stage{position:sticky;top:var(--f-chrome);height:calc(var(--f-lvh) - var(--f-chrome));min-height:480px;overflow:hidden;background:var(--f-board);isolation:isolate}
/* a phone's address bar comes and goes: the stage is as tall as the largest window (lvh), the film is laid out in the smallest (svh: --f-fh, the frame at its top),
   and the scroll distance is 7.3 small windows (the call, the board, the letter, the plans and, from 25.6 s to 30.2 s of film time, the programs: the film runs 2.714 s of film time to a
   screen, so no chapter before the programs moved). When the programs cannot be a station in this window (static/js/film-scene.js decides, layout()) the film is the four chapters
   it was, 5.6 windows (.film--noprog), and the programs' words are a plain section after it. Nothing laid out ever moves when the bar does; the desk simply goes on under it.
   On a desktop the two are equal. */
@supports (height:100svh) and (height:100lvh){.film{--f-svh:100svh;--f-lvh:100lvh}}
.film.film--noprog{height:calc(var(--f-lvh) - var(--f-chrome) + 5.6 * var(--f-svh))}
/* reduced motion swaps one still for the next: what is drawn on the board cross-fades, the board and the desk under it stay (the stage itself is never faded, or the page behind would show for a moment) */
.film__scene,.film__desk,.film__ink,.film__hud{transition:opacity .14s linear}
.film__stage.is-swap .film__scene,.film__stage.is-swap .film__desk,.film__stage.is-swap .film__ink,.film__stage.is-swap .film__hud{opacity:0}
.film--still{height:calc(4 * var(--f-frame) + var(--f-lvh) - var(--f-chrome))}   /* five stills: the stage and four frames of travel */
.film--still.film--noprog{height:calc(3 * var(--f-frame) + var(--f-lvh) - var(--f-chrome))}   /* four stills, when the programs are not a station */

/* the desk the room lies on: the page's own ground, lit from the upper left */
.film__env{position:absolute;inset:0;pointer-events:none;opacity:0;
  background:
    radial-gradient(1100px 700px at 24% 18%, var(--f-hi), transparent 64%),
    radial-gradient(1500px 1000px at 92% 112%, var(--f-lo), transparent 66%),
    var(--f-base)}

/* ---------- the world ---------- */
.film__scene{position:absolute;inset:0;z-index:0;pointer-events:none}   /* the 3D scene is decoration: never in the way of a press, and always under the words. It is as tall as the stage (its fade is a mask, which clips to this box) */
.film__world{position:absolute;left:50%;top:calc(var(--f-fh) / 2);width:0;height:0;transform-style:preserve-3d;transform-origin:0 0;pointer-events:none}   /* the middle of the FRAME (the small window), not of the stage */
.film__world:not(.is-live) .fk{visibility:hidden!important}
.film__world.is-live .fk{will-change:transform}
.fk{position:absolute;left:0;top:0;backface-visibility:hidden;transform-origin:50% 50%;
  transform:translate3d(calc(var(--x,0) * 1px - 50%), calc(var(--y,0) * 1px - 50%), calc(var(--z,0) * 1px)) rotate(var(--rz,0deg))}
.film__desk{position:absolute;inset:0 0 auto 0;width:100%;height:var(--f-fh);overflow:visible;pointer-events:none}
.fk-desk-line{fill:none;stroke:var(--f-grid);stroke-width:1}
.fk--cast{background:center / 100% 100% no-repeat}
.fk--win{width:var(--f-win-w);height:var(--f-win-h);display:flex;flex-direction:column;overflow:hidden;border-radius:20px;
  background:var(--cls-leaf);box-shadow:0 0 0 1px var(--cls-line-2), 0 0 0 1px var(--f-rim) inset}

/* top bar, as the room draws it */
.fk-w-bar{flex:none;height:56px;display:flex;align-items:center;gap:14px;padding:0 20px;border-bottom:1px solid var(--cls-line);background:var(--cls-leaf)}
.fk-w-logo{width:30px;height:30px;border-radius:8px;overflow:hidden;flex:none}
.fk-w-logo img{width:30px;height:30px;display:block}
.fk-w-sep{width:1px;height:28px;background:var(--cls-line-2);flex:none}
.fk-w-title{display:flex;align-items:baseline;gap:6px;font-size:15px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.fk-w-title span{font-weight:400;color:var(--cls-ink-3)}
.fk-w-pill{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 13px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap;border:1px solid var(--cls-line-2);color:var(--cls-ink-2);background:var(--cls-leaf)}
.fk-w-pill .pi{width:15px;height:15px;color:var(--cls-ink-3);flex:none}
.fk-w-pill--live{border-color:color-mix(in srgb, var(--cls-blue) 28%, var(--cls-line));background:color-mix(in srgb, var(--cls-blue) 10%, var(--cls-leaf));color:var(--cls-blue-deep)}
.fk-w-pill i{width:6px;height:6px;border-radius:50%;background:var(--cls-blue);flex:none}
.fk-w-pill--grey i{background:var(--cls-ink-4)}
.fk-w-grow{flex:1}

/* the board: the whole stage is the paper, as it is in the room */
.fk-w-stage{flex:1;position:relative;background:var(--f-board)}
.fk-w-stage::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(900px 560px at 34% 22%, transparent, var(--f-lo) 220%)}
.fk-w-rail{flex:none;height:76px;display:flex;align-items:center;justify-content:center;gap:12px;border-top:1px solid var(--cls-line);background:var(--cls-leaf)}
.fk-w-key{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;border:1px solid var(--cls-line-2);color:var(--cls-ink-3);background:var(--cls-leaf)}
.fk-w-key .pi{width:22px;height:22px}
.fk-w-key.is-on{background:color-mix(in srgb, var(--cls-blue) 12%, var(--cls-leaf));color:var(--cls-blue-deep);border-color:color-mix(in srgb, var(--cls-blue) 30%, var(--cls-line-2))}
.fk-w-key--word{width:auto;padding:0 18px;display:flex;gap:8px;font-size:14px;font-weight:600;color:var(--cls-ink-2)}
.fk-w-key--word .pi{width:19px;height:19px}
.fk-w-vsep{width:1px;height:34px;background:var(--cls-line-2);margin:0 4px}
.fk-w-leave{display:flex;align-items:center;gap:9px;height:50px;padding:0 24px;border-radius:999px;background:#d92d28;color:#fff;font-size:15px;font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}
.fk-w-leave .pi{width:20px;height:20px}
.fk-w-shade{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(98deg, rgba(70,58,40,.10) 0%, rgba(70,58,40,.03) 38%, rgba(70,58,40,0) 60%)}

/* floating pieces: each is its own plane above the window */
.fk-card{background:var(--cls-leaf);border:1px solid var(--cls-line-2);box-shadow:0 1px 0 var(--f-edge) inset}
.fk--tile{width:176px;height:152px;border-radius:18px;padding:12px 14px 14px;display:flex;flex-direction:column;align-items:center;gap:6px}
.fk--tile::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;box-shadow:0 0 0 2px color-mix(in srgb, var(--cls-blue) var(--ring,0%), transparent)}
.fk-t-head{align-self:stretch;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:700;color:var(--cls-ink)}
.fk-t-head .pi{width:14px;height:14px;color:var(--cls-ink-4)}
.fk-t-av{width:66px;height:66px;border-radius:50%;overflow:hidden;background:var(--cls-blue);flex:none}
.fk-t-av img{display:block;width:100%;height:100%}
.fk-t-wave{height:14px;display:flex;align-items:flex-end;gap:3px}
.fk-t-wave i{width:4px;height:100%;border-radius:2px;background:var(--cls-blue);transform-origin:50% 100%;transform:scaleY(var(--b,.3))}
.fk-t-state{font-size:13px;color:var(--cls-ink-3);line-height:1.2}

.fk--dock{width:54px;height:236px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;color:var(--cls-ink-3)}
.fk--dock .pi{width:17px;height:17px}
.fk-d-dot{width:19px;height:19px;border-radius:50%;background:var(--cls-ink)}
.fk-d-red{width:11px;height:11px;border-radius:50%;background:#d92d28;border:2px solid var(--f-board);box-shadow:0 0 0 1px var(--cls-line-2)}
.fk-d-bar{width:22px;height:2px;border-radius:2px;background:var(--cls-ink-3)}
.fk-d-bar--thick{height:3px;background:var(--cls-ink)}
.fk-d-ring{width:14px;height:14px;border-radius:50%;border:2px solid var(--cls-ink-4)}
.fk-d-blue{width:22px;height:4px;border-radius:3px;background:var(--cls-blue)}

.fk--tool{width:764px;height:58px;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:4px;color:var(--cls-ink-3)}
.fk--tool .pi{width:20px;height:20px}
.fk-tl{display:grid;place-items:center;width:42px;height:42px;border-radius:11px}
.fk-tl.is-on{background:var(--f-board);color:var(--cls-blue-deep);box-shadow:0 0 0 1px var(--cls-line-2),0 1px 3px var(--f-shadow)}
.fk-tl-sep{width:1px;height:26px;background:var(--cls-line-2);margin:0 6px}
.fk--zoom{width:132px;height:50px;border-radius:15px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-size:14px;font-weight:700;color:var(--cls-ink)}
.fk--zoom .pi{width:18px;height:18px;color:var(--cls-ink-3)}
.fk--acts{width:168px;height:50px;border-radius:15px;display:flex;align-items:center;justify-content:space-around;color:var(--cls-ink-3)}
.fk--acts .pi{width:18px;height:18px}
.fk--acts .fk-a-sep{width:1px;height:22px;background:var(--cls-line-2)}

.fk--cap{width:auto;height:48px;padding:0 20px 0 12px;border-radius:12px;display:flex;align-items:center;gap:12px;background:color-mix(in srgb, var(--cls-ink) 92%, transparent);color:var(--f-on-ink);font-size:15px;white-space:nowrap}
.cap__who{padding:2px 9px;border-radius:999px;background:color-mix(in srgb, var(--f-on-ink) 16%, transparent);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cap__txt{display:grid}.cap__txt > span{grid-area:1 / 1}#f-cap2{opacity:0}   /* the caption holds two lines that cross-fade */
.fk--tag{width:auto;height:34px;padding:0 14px 0 10px;border-radius:999px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;white-space:nowrap;
  color:var(--cls-teal-ink,#0a6259);background:color-mix(in srgb, var(--cls-teal,#14b8a6) 12%, var(--f-board));border:1px solid color-mix(in srgb, var(--cls-teal,#14b8a6) 40%, transparent)}
.fk--tag i{width:8px;height:8px;border-radius:50%;background:var(--cls-teal,#14b8a6)}

/* ---------- the strokes, in screen space ---------- */
.film__ink{position:absolute;inset:0 0 auto 0;width:100%;height:var(--f-fh);overflow:visible;pointer-events:none;z-index:1}
.fk-ink-child{fill:var(--cls-blue)}   /* the line the film starts on (the child's arc): the Tutix blue, by the token so both schemes follow; the ground line, ticks and labels stay graphite */
.fk-ink-deep{fill:var(--cls-blue);fill:color-mix(in srgb, var(--cls-blue) 68%, #000)}   /* the grain along it: the same blue, deeper (a browser with no color-mix keeps the plain blue) */
.fk-ink-graphite{fill:var(--cls-ink-3)}
.fk-ink-tutor{fill:var(--tutor-ink,#14b8a6)}
.fk-ink-soft{opacity:.09}
.fk-ink-paper{fill:var(--f-board)}
.fk-ink-dash{fill:none;stroke:var(--cls-ink-4);stroke-linecap:round}
.fk-ink-ptr{fill:var(--tutor-ink,#14b8a6);stroke:var(--f-board);stroke-width:1.5;stroke-linejoin:round}

/* ---------- the letter and the plans lie on the desk ----------
   The letter's own pieces (the tags, the header, the pills, the signature) are the landing page's: partials/landing/beats.css.html and
   close.css.html. Here only their size changes, because this paper is read from a camera's distance. */
.fk--letter{width:700px;background:var(--cls-leaf);border:1px solid var(--cls-line);border-radius:16px;color:var(--cls-ink-2);font-size:18.5px;line-height:1.6;--lp:36px;box-shadow:var(--cls-lit)}
.fk--letter .rm__tag{min-height:30px;padding:0 12px;gap:7px;font-size:14px}
.fk--letter .rm__time{font-size:14.5px}
.fk--letter .mail__head{padding:var(--lp) var(--lp) 22px;border-radius:15px 15px 0 0}
.fk--letter .mail__subj{margin-top:16px;font-size:31px}
.fk--letter .mail__from{margin-top:16px;grid-template-columns:44px minmax(0,1fr);column-gap:14px}
.fk--letter .mail__av{width:44px;height:44px;border-radius:13px}
.fk--letter .mail__who{font-size:18.5px}
.fk--letter .mail__role{min-height:24px;padding:0 10px;font-size:13.5px}
.fk--letter .mail__to{font-size:15.5px}
.fk--letter .mail__body p{margin:0}
.fk--letter .lbl{margin:18px 0 9px;font-size:15px}
.fk--letter .letter__open{margin-top:20px;font-size:18.5px}
.fk--letter .letter__say{margin-top:18px;padding:18px 20px;font-size:23px;line-height:1.45}
.fk--letter .letter__p{font-size:18.5px}
.fk--letter .letter__pills li{min-height:38px;padding:6px 15px;font-size:17px}
.fk--letter .letter__foot{margin-top:24px;padding-top:18px}
.fk--letter .letter__sign .sig{width:124px;overflow:visible}
.fk--letter .letter__act{min-height:42px;padding:0 19px;font-size:16px}
/* the signature is drawn by the film's clock (one number, written by the script), not by the page's own ink animation */
.fk--letter .sig path{fill:none;stroke:var(--cls-teal,#14b8a6);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 2;stroke-dashoffset:1.02}

.fk--plans{width:940px;padding:30px 40px 26px;background:var(--cls-leaf);border:1px solid var(--cls-line);border-radius:16px;box-shadow:var(--cls-lit)}
.pp__list{list-style:none;margin:0;padding:0;display:grid;gap:0}
.pp__list li{display:grid;grid-template-columns:120px minmax(0,1fr) 296px;align-items:center;gap:20px;padding:24px 0;border-bottom:1px solid var(--cls-line)}
.pp__list li:last-child{border-bottom:0}
.pp__n{font-size:29px;font-weight:700;letter-spacing:-.01em;color:var(--cls-ink)}
.pp__t{display:block;font-size:20px;color:var(--cls-ink-3);margin-bottom:11px}
.pp__bar{display:block;height:16px;border-radius:999px;background:var(--cls-tray);overflow:hidden}
.pp__bar i{display:block;height:100%;width:calc(var(--w,0) * 100%);border-radius:inherit;background:var(--cls-ink-3);transform-origin:0 50%;transform:scaleX(var(--g,1))}
.is-free .pp__bar i{background:var(--cls-blue)}
.pp__bar--open i{width:100%;background:repeating-linear-gradient(90deg, var(--cls-ink-4) 0 8px, transparent 8px 14px);opacity:.7}
.pp__p{font-size:24px;white-space:nowrap;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;color:var(--cls-ink)}
.is-free .pp__n,.is-free .pp__p{color:var(--cls-blue-deep)}

/* ---------- the programs lie on the desk after the plans: every offer to ONE hours scale ----------
   A flat plane like the plans (no mask, filter, will-change or container-type on it: any of those would flatten the 3D scene or make it the containing block of a fixed child).
   Its numbers are the page's payload; the bars arrive in film time (--g, written by static/js/film-programs.js) and then only change when the dial or the pick does (a 340 ms tween of
   transform, from .is-set). The dial, the shelf and the pill that drive it are real buttons in the words (#f-c4). */
.fk--prog{width:1000px;padding:44px 52px 40px;background:var(--cls-leaf);border:1px solid var(--cls-line);border-radius:16px;box-shadow:var(--cls-lit);--cls-area:var(--cls-indigo)}
.pc__t{margin:0;font-size:24px;font-weight:600;letter-spacing:-.01em;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.pc__t small{font-size:19px;font-weight:500;color:var(--cls-ink-3)}
.pc__rule{display:grid;grid-template-columns:52px 340px minmax(0,1fr) 96px;gap:0 20px;height:36px;font-size:16px;color:var(--cls-ink-4);margin-top:14px}
.pc__ticks{grid-column:3;position:relative;height:100%}
.pc__ticks b{position:absolute;bottom:5px;transform:translateX(-50%);font-weight:500;white-space:nowrap}
.pc__ticks b:first-child{transform:none}
.pc__ticks::after{content:"";position:absolute;left:0;right:0;bottom:0;height:7px;background:repeating-linear-gradient(to right,var(--cls-line-hover) 0 1px,transparent 1px calc(var(--tick) * 1%))}
.pc__g{display:flex;align-items:center;gap:10px;height:50px;padding-top:14px;font-size:20px;font-weight:600;color:var(--cls-area-ink)}
.pc__g i{width:11px;height:11px;border-radius:50%;background:var(--cls-area)}
.pc__g span{font-weight:500;color:var(--cls-ink-3)}
.pc__r{position:relative;display:grid;grid-template-columns:52px 340px minmax(0,1fr) 96px;gap:0 20px;align-items:center;height:58px;border-top:1px solid var(--cls-line)}
.pc__r .pmark{width:44px;height:44px}
.pc__n{font-size:25px;font-weight:500;letter-spacing:-.01em;display:flex;align-items:center;gap:4px 10px;white-space:nowrap}
.pc__n em{font-style:normal;font-size:14px;font-weight:700;letter-spacing:.05em;color:var(--cls-ink-3);border:1px solid var(--cls-line-2);border-radius:7px;padding:0 8px;line-height:1.55}
.pc__r.is-on .pc__n{font-weight:700}
.pc__b{height:20px;border-radius:4px;background:color-mix(in srgb,var(--cls-shade) 7%,transparent);position:relative;overflow:hidden}
.pc__b i{position:absolute;inset:0;border-radius:4px;background:color-mix(in srgb,var(--cls-area) 52%,var(--cls-well));transform-origin:left center;transform:scaleX(calc(var(--f,0) * var(--g,1)))}
.fk--prog.is-set .pc__b i{transition:transform 340ms var(--cls-ease-out,cubic-bezier(0,0,.2,1))}
.pc__r.is-on .pc__b i{background:var(--cls-area)}
.pc__h{font-size:24px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums;color:var(--cls-ink-2)}
.pc__ring{position:absolute;left:60px;top:7px;overflow:visible;pointer-events:none}
.pc__ring .ink{fill:none;stroke:var(--cls-teal-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 2;stroke-dashoffset:1.02}
.pc__ring.is-redraw .ink{transition:stroke-dashoffset 700ms var(--cls-ease-out,cubic-bezier(0,0,.2,1))}

/* ---------- the words over the film (never in the 3D) ---------- */
.film__hud{position:absolute;inset:0 0 auto 0;height:var(--f-fh);pointer-events:none;z-index:2}
.hud__col{position:absolute;left:0;top:50%;transform:translateY(-50%);transform-origin:0 50%;pointer-events:none;width:min(38vw,560px);margin-left:max(20px,6.25vw);display:grid;gap:26px}
.hud__col .mk-btn,.hud__col .mk-link,.hud__col .pk-wrap,.hud__ctl button,.film__dots button{pointer-events:auto}
.hud__h{margin:0;font-weight:700;font-size:clamp(40px,4.4vw,80px);line-height:.98;letter-spacing:-.045em}
.hud__h .hud__l2{display:block;font-weight:300}
.hud__h2{margin:0;font-weight:700;font-size:clamp(34px,3.4vw,58px);line-height:1;letter-spacing:-.04em}
.hud__h2 .hud__l2{display:block;font-weight:300}
.hud__p{margin:18px 0 0;font-size:clamp(17px,1.3vw,20px);line-height:1.5;color:var(--cls-ink-3);max-width:34ch}
.hud__cta{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.hud__chap{opacity:0}
.hud__col .pk-wrap{margin-top:0}
.hud__h>span,.hud__cta,.hud__col .pk-wrap{will-change:opacity,transform}
/* before the film's script has run there is nothing to flash: the words wait for their turn on the film's clock */
html.film-js .hud__h>span,html.film-js .hud__cta,html.film-js .hud__col .pk-wrap{opacity:0}
html.film-js .hud__chap .hud__cta{opacity:1}

/* the programs' words: the chapter's headline and one line, then the real controls (the dial, the shelf, the readout and the pill; the film shows each only while it can be seen) */
#f-c4{gap:20px}
#f-c4 .hud__p{margin-top:0}
#f-c4 .hud__h2 .hud__l2{display:block}
.pp-ctl{display:grid;gap:14px;min-width:0}
.pp-ctl .pp-fs{border:0;margin:0;padding:0;min-width:0}
.pp-ctl legend{padding:0;font-size:15px;font-weight:600;margin-bottom:6px;color:var(--cls-ink)}
.pp-ctl .shelf{max-width:100%}
.pp-ro{margin:0;font-size:15px;line-height:1.45;color:var(--cls-ink-2);min-height:44px}
.pp-ro b{font-weight:700;color:var(--cls-ink)}
.pp-cta{gap:0 20px}
.pp-flat{display:none}
/* what can be pressed is pressable even though the column is not */
.hud__col .pp-ctl .dial,.hud__col .pp-ctl .shelf,.hud__col .pp-ctl .mk-btn,.hud__col .pp-ctl .mk-link{pointer-events:auto}
/* the shelf's name labels sit above their emblem; on the film's board they must not be cut by the column */
.film__hud .pp-ctl .pick::after{z-index:3}

.hud__ctl{position:absolute;z-index:2;left:max(20px,6.25vw);bottom:28px;display:flex;gap:10px}
.hud__ctl button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 18px;border-radius:999px;border:1px solid var(--cls-line-2);background:color-mix(in srgb, var(--cls-leaf) 88%, transparent);color:var(--cls-ink-2);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
/* on a wide screen the intro's controls sit at the bottom centre, where the Scroll cue takes over once they have faded: at the left, under the words, they lay over the picker's greeting
   on a laptop-height window (1280x720, 1366x657) for the seconds both were up. Upright screens and narrow ones keep the left, which is clear there. */
@media (min-width:1000px){.film:not(.film--tall) .hud__ctl{left:50%;transform:translateX(-50%)}}
.hud__ctl button:hover{background:var(--cls-leaf);color:var(--cls-ink)}
.hud__ctl button:focus-visible,.film__dots button:focus-visible{outline:2px solid transparent;box-shadow:var(--cls-focus)}

/* chapters: where you are, and a way to jump */
.film__dots{position:absolute;right:0;top:50%;transform:translateY(-50%);display:grid;gap:2px;opacity:0;visibility:hidden;transition:opacity .3s linear}
.film__dots button{position:relative;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:0;background:none;cursor:pointer}
.film__dots i{display:block;width:9px;height:9px;border-radius:50%;background:var(--cls-ink-4);opacity:.55;transition:opacity .2s linear,transform .2s var(--mk-ease-rise,ease)}
.film__dots button:hover i{opacity:1}
.film__dots [aria-current=true] i{opacity:1;background:var(--cls-ink);transform:scale(1.35)}
.film__dots button::after{content:attr(aria-label);position:absolute;right:34px;top:50%;transform:translateY(-50%);padding:5px 10px;border-radius:999px;background:var(--cls-ink);color:var(--f-on-ink);font-size:12.5px;font-weight:600;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s linear}
.film__dots button:hover::after,.film__dots button:focus-visible::after{opacity:1}
.film__dots button:focus-visible{border-radius:12px}
.film__cue{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);margin:0;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--cls-ink-3);opacity:0;transition:opacity .5s linear;pointer-events:none}
.film__cue .pi{width:16px;height:16px;animation:film-cue-nudge 1.4s var(--mk-ease,ease-in-out) 2 .6s}
@keyframes film-cue-nudge{50%{transform:translateY(4px)}}

/* ---------- an upright screen: the words take the top, the room sits below, the letter and the plans are set for its width ---------- */
.film--tall .hud__col{left:20px;margin-left:0;width:calc(100% - 40px);top:16px;--ty:0%;gap:18px;transform-origin:0 0}
.film--tall .hud__h{font-size:clamp(34px,9.6vw,54px)}
.film--tall .hud__h2{font-size:clamp(30px,8.4vw,46px)}
.film--tall .hud__p{margin-top:12px;font-size:17px;max-width:32ch}
.film--tall .hud__ctl{left:20px;bottom:18px}
.film--tall .pk__more{display:none}
/* upright and narrow: the faces carry no names (the picker is under ~520px wide), so the picked tutor's name stays, without the greeting under it */
@media (max-width:699.98px){.film--tall .pk__greet,.film--tall .pk__new{display:none!important}.film--tall .pk__line{margin-top:6px}}
.film--tall .fk--letter{width:440px;--lp:26px;font-size:18px}
.film--tall .fk--letter .mail__subj{font-size:27px}
.film--tall .fk--letter .letter__say{font-size:21px}
.film--tall .fk--plans{width:440px;padding:20px 24px 16px}
.film--tall .pp__list li{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n p" "d d";gap:6px 16px;padding:18px 0}
.film--tall .pp__n{grid-area:n}.film--tall .pp__p{grid-area:p}.film--tall .pp__d{grid-area:d}
/* the programs on an upright screen: a narrow plane of two-line rows (name over its bar), which the camera walks down as it walks down the letter */
.film--tall .fk--prog{width:440px;padding:26px 24px 22px}
.film--tall .pc__t{font-size:17px}.film--tall .pc__t small{font-size:14px}
.film--tall .pc__rule{grid-template-columns:36px minmax(0,1fr) 62px;gap:0 12px;height:28px;font-size:12px;margin-top:8px}.film--tall .pc__ticks{grid-column:2}
.film--tall .pc__g{height:40px;padding-top:10px;font-size:15px}
.film--tall .pc__r{grid-template-columns:36px minmax(0,1fr) 62px;grid-template-rows:auto auto;gap:2px 12px;height:64px;align-content:center}
.film--tall .pc__r .pmark{width:34px;height:34px;grid-row:1/3}
.film--tall .pc__n{font-size:18px;grid-column:2;gap:2px 6px}.film--tall .pc__n em{font-size:10.5px;padding:0 5px}
.film--tall .pc__b{grid-column:2;grid-row:2;height:12px}
.film--tall .pc__h{grid-column:3;grid-row:1/3;font-size:17px}
.film--tall .pc__ring{left:48px;top:4px}
.film--tall #f-c4 .hud__h2{font-size:clamp(28px,7.6vw,42px)}
.film--tall .pp-ctl .shelf{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-block:4px}
.film--tall .pp-ctl .shelf::-webkit-scrollbar{display:none}
/* a laptop or a tablet held wide leaves the chapter's words a column of 390 to 480 px, and the dial (497 px) would scroll: its stops are tightened to fit from about 1180 px, where it still scrolls and fades the edge it scrolls past below that */
@media (min-width:700px) and (max-width:1365.98px){.film:not(.film--tall) .pp-ctl .dial button{padding:0 11px;gap:6px}}
.film--tall .pp-ctl .pick{flex:none}
/* the chapter dots are a 44px column at the right edge of a phone: the dial and the shelf end clear of its hit area */
.film--tall .pp-ctl .pp-fs{margin-right:26px}
/* the shelf scrolls, and its chosen emblem draws a 4px ring outside its box: the shelf holds 5px of air at both ends so the ring is never cut */
.film--tall .pp-ctl .shelf{margin:0 21px 0 -5px;padding-inline:5px}

/* ---------- the dark scheme (the site's class, or the system's choice when the site has none) ---------- */
@media (prefers-color-scheme:dark){:root:not([class~="cls-light"]) .film{--cls-teal-ink:var(--tutor-ink-d,#46cdbd);--f-board:var(--cls-leaf);--f-hi:rgba(255,246,234,.05);--f-lo:rgba(0,0,0,.36);--f-base:color-mix(in srgb, var(--cls-ground) 72%, #000);--f-grid:rgba(255,246,234,.07);--f-edge:rgba(255,246,234,.05);--f-rim:rgba(255,246,234,.07);--f-shadow:rgba(0,0,0,.4);--f-on-ink:#14100a}}
:root[class~="dark"] .film{--cls-teal-ink:var(--tutor-ink-d,#46cdbd);--f-board:var(--cls-leaf);--f-hi:rgba(255,246,234,.05);--f-lo:rgba(0,0,0,.36);--f-base:color-mix(in srgb, var(--cls-ground) 72%, #000);--f-grid:rgba(255,246,234,.07);--f-edge:rgba(255,246,234,.05);--f-rim:rgba(255,246,234,.07);--f-shadow:rgba(0,0,0,.4);--f-on-ink:#14100a}

/* ---------- reduced motion: four composed frames, nothing travels; and a plain page when the film cannot run ---------- */
@media (prefers-reduced-motion:reduce){.film__cue .pi{animation:none}.film__dots i,.film__dots button::after{transition:none}}   /* the 140 ms cross-fade between stills stays: it is an opacity change and moves nothing */
html.film-plain .film{height:auto}
html.film-plain .film__stage{position:static;height:auto;min-height:0;overflow:visible;padding:48px 0 24px}
html.film-plain .film__world,html.film-plain .film__desk,html.film-plain .film__ink,html.film-plain .film__env,html.film-plain .hud__ctl,html.film-plain .film__dots,html.film-plain .film__cue{display:none}
html.film-plain .film__hud{position:static;height:auto}
html.film-plain .hud__col{position:static;transform:none!important;opacity:1!important;visibility:visible!important;width:auto;margin:0 max(20px,6.25vw) 64px}
html.film-plain .hud__chap,html.film-plain .hud__h>span,html.film-plain .hud__cta,html.film-plain .hud__col .pk-wrap,html.film-plain .pp-ctl{opacity:1!important;visibility:visible!important;transform:none!important}

/* the programs' words as a plain section: after the plans on the page of words, and after the whole film when the window is too short for them to be a station. The same markup;
   the flat bar shows the chosen program to scale (the world's chart is not drawn here). */
.film__after:empty{display:none}
.film__after{position:relative}
.film__after .hud__col{position:static!important;transform:none!important;opacity:1!important;visibility:visible!important;width:auto;max-width:640px;margin:0 max(20px,6.25vw)}
.film__after .hud__col{padding-block:var(--mk-section,96px)}
.film__after .pp-ctl,.film__after .pp-ctl .shelf,.film__after .pp-ctl .dial,.film__after .pp-ctl .mk-btn,.film__after .pp-ctl .mk-link{visibility:visible!important}
.film__after .pp-flat,:root.film-plain .pp-flat{display:block}
.pp-flat__row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 14px;align-items:center;padding-top:14px;border-top:1px solid var(--cls-line)}
.pp-flat__row b{font-size:19px;font-weight:600}
.pp-flat__bar{grid-column:1/-1;height:12px;border-radius:3px;background:color-mix(in srgb,var(--cls-shade) 7%,transparent);position:relative;overflow:hidden;margin-top:6px}
.pp-flat__bar i{position:absolute;inset:0;background:var(--cls-area);transform-origin:left;transform:scaleX(var(--f,0));border-radius:3px}
