/* The landing page (LP, owner 2026-11-14; the contract .scratch/ui_integration/briefs/LP_DESIGN.md): the FRAME
   every beat shares. templates/dashboard/welcome.html is one page root (.lp) holding the hero (Get started's
   stage, static/css/a2/entry.css + welcome.css), seven beats (templates/dashboard/landing/<beat>.html, each
   with its own static/css/a2/landing/<beat>.css) and the end stage; static/js/a2/landing.js draws the strings
   and moves the Get started pearl between its three seats.

   Here, and only here (the beats' sheets style their own object and nothing else):
     · the root's measures: the strings' lanes (--lp-m, --lp-lane) and the content box (--lp-pad, --lp-right);
     · the strings' look (.lp-strings): slack, taut-and-heavy, the names along them;
     · a beat's frame: the section, the content box (.lp-in), the statement (.lp-st), the line (.lp-ln), the
       object's box (.lp-ob), the hook (.lp-hook), the night band (.lp-night);
     · the spoken line (.lp-say): a Persian line on a string that sounds when pressed;
     · the three seats of the Get started pearl: the hero's (welcome.css), the dock (.lp-dock), the end's;
     · the end stage (.lp-end), drawn with the entry stage's own partials.
   Flat (tests/test_stylesheets_are_flat.py), no Tailwind, every new class lp-. */

/* -- the root ------------------------------------------------------------------------------------- */

/* Lanes (LP_DESIGN §4 "The strings"): lane k (1..5, the hero's order) sits at right: --lp-m + (5 - k) * --lp-lane.
   The beats' content never enters them: its box runs from --lp-pad to --lp-right. */
.lp{--lp-st-fs:clamp(38px,5vw,80px);--lp-pb:clamp(72px,11svh,128px);--lp-m:clamp(28px,3.2vw,56px);--lp-lane:clamp(26px,2.6vw,44px);--lp-pad:clamp(20px,6vw,112px);--lp-gap:clamp(16px,2.8vw,48px);--lp-right:calc(var(--lp-m) + 4 * var(--lp-lane) + var(--lp-gap));position:relative;overflow-x:clip;background:var(--paper)}
@media (max-width:999px),(orientation:portrait) and (max-width:1199px){
  .lp{--lp-m:20px;--lp-lane:16px}
}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .lp{--lp-m:12px;--lp-lane:7px}
}
/* R15-S1 (owner, 2026-11-19, round 15 on the iPad Air 13": "threads are too thin and close to one another"): an upright
   tablet keeps the phone's beats but gives the strings the room of a screen under 1000px wide, and a heavier line
   (--lp-sw, the weight landing.js draws the swell, the tail and the end dot with) */
@media (orientation:portrait) and (min-width:700px) and (max-width:1199px){
  .lp{--lp-m:20px;--lp-lane:16px;--lp-sw:1.4}
}

/* The two stages (hero, end) paint over the strings: a string comes out from under its pearl. */
.lp .lp-stage{z-index:2}

/* -- the strings ---------------------------------------------------------------------------------- */

/* One SVG over the root (landing.js): behind the beats' content (.lp-in, z 2), above their grounds (the
   sections, z auto). Each string a group: its body (pearl → lean → lane), two short swells and its tail (the
   last 60vh before the bend, the bend, the run on to the hook) and its end dot; its name on its own path. */
.lp-strings{position:absolute;left:0;top:0;z-index:1;width:100%;overflow:visible;pointer-events:none}
.lp-sg-road{--c:196,130,10}
.lp-sg-missions{--c:28,57,187}
.lp-sg-trips{--c:18,140,132}
.lp-sg-tales{--c:196,48,74}
.lp-sg-own{--c:21,23,30}
/* inside the night band the ink string is drawn in the paper's colour (LP_DESIGN §4) */
.lp-sg-own .lp-nt{--c:244,239,230}
/* --w and --a (the tail's width and colour) are landing.js's: it eases them with the taut snap */
.lp-s{fill:none;stroke:rgba(var(--c),.62);stroke-width:calc(1.5px * var(--lp-sw,1));stroke-linecap:butt;stroke-linejoin:round}
.lp-s-tail{stroke:rgba(var(--c),var(--a,.62));stroke-width:var(--w,1.5px)}
.lp-s-swell{stroke:none}
.lp-s-st0{stop-color:rgb(var(--c));stop-opacity:.62}
.lp-s-st1{stop-color:rgb(var(--c));stop-opacity:var(--a,.62)}
.lp-s-dot{fill:rgba(var(--c),var(--a,.62))}
/* The name, set along the string above its bend, reading bottom to top (the shelves' K3 heads' type). It is sized
   to the room its left neighbour leaves (landing.js); where there is none (the ink string's at beat 4 on a phone)
   it sits on a plain ground of its own (.lp-s-ng), so no string runs through a letter. */
.lp-s-np{fill:none;stroke:none}
.lp-s-nm{fill:rgba(var(--c),.8);font-family:var(--fd);font-weight:800;font-size:var(--nm,25px);letter-spacing:-.005em;transition:fill .25s,font-size .3s,opacity .15s}
/* a name passing behind the docked press fades out (landing.js, within 20px of the press's box) and back after */
.lp-s-nm.lp-nm-off,.lp-s-ng.lp-nm-off{opacity:0}
.lp-s-ng{transition:opacity .15s}
.lp-sg.on .lp-s-nm{fill:rgb(var(--c));font-size:var(--nm-on,33px)}
.lp-s-ng{fill:#F4EFE6}
.lp-s-ng.lp-dk{fill:#14151A}
.lp-sg-own .lp-s-nm.lp-dk{fill:rgba(244,239,230,.86)}

/* A string CARRIED by its beat's held stage (LP.carry; the own beat): its lane, bend, run, dot and name are drawn in
   the stage (.lp-carry, under the stage's content: the stage is a stacking context, the sticky content box at z 2), so
   they move with it by the browser's scrolling. The section clips vertically at its own edges (overflow-y: clip makes
   no scroll container, so the stage still sticks, and no stacking context), so the stage's lane, reaching up past
   the stage, stops exactly at the beat's top, where the page's own line of that string ends. The svg's top, left and
   height are set on layout (drawCarry): its box starts far above the stage, so nothing is drawn above its own box. */
.lp-carry{position:absolute;left:0;top:0;z-index:-1;display:block;width:1px;height:1px;overflow:visible;pointer-events:none}
.lp-beat.lp-carries{overflow-x:visible;overflow-y:clip}

/* -- a beat's frame ------------------------------------------------------------------------------- */

/* no forced screen height (review R2): each beat is as tall as its exhibit plus --lp-pb above and below; its foot
   keeps at least --lp-foot (the docked press's clearance, THE DOCK below). A beat sets its own exception. */
.lp-beat{position:relative;min-height:0;padding-block:var(--lp-pb) max(var(--lp-pb),var(--lp-foot))}
/* the content box: the beat's content, over the strings; it never enters the lanes */
.lp-in{position:relative;z-index:2;margin:0 var(--lp-right) 0 var(--lp-pad);padding:0}
.lp-st{margin:0;max-width:11em;font:800 clamp(38px,5vw,80px)/.96 var(--fd);letter-spacing:-.025em;text-wrap:balance;color:var(--ink)}
.lp-ln{margin:clamp(16px,2.4vh,28px) 0 0;max-width:30em;font:500 clamp(17px,1.4vw,22px)/1.42 var(--fb);color:rgba(21,23,30,.84);text-wrap:pretty}
/* the object's box: each beat fills and sizes its own (landing/<beat>.css) */
.lp-ob{position:relative;min-height:clamp(260px,40vh,480px);margin-top:clamp(28px,5vh,64px)}
/* the hook: its box's right-middle point is where the string's run ends (landing.js); an empty <i> by default
   at the object box's left edge, half way down */
.lp-hook{position:absolute;left:0;top:50%;display:block;width:0;height:0;pointer-events:none}
/* the night band (beat 7): edge to edge; statement and line in the paper's colour */
.lp-night{background:#14151A;color:#F4EFE6}
.lp-night .lp-st{color:#F4EFE6}
.lp-night .lp-ln{color:rgba(244,239,230,.84)}
/* the learner's own writing anywhere on the page: the kit's blue, 600 (the app's rule) */
.lp-mine{color:#1C39BB;font-weight:600}

/* A heading the page focuses by script after a roll (landing.js rollTo: tabindex="-1", so a screen reader lands there)
   never shows a ring: iOS Safari matched the kit's :focus-visible (a2.css) on that programmatic focus after a touch and
   drew a thick blue box around the statement (2026-11-15). Nothing a keyboard can reach carries tabindex="-1". */
.lp [tabindex="-1"]:focus,.lp [tabindex="-1"]:focus-visible{outline:none}

/* -- the spoken line: a Persian line on a string; a press sounds it (landing.js LP.sayLine) ------------- */

/* <button class="lp-say" data-src="(optional clip)"><span class="lp-say-fi">Finglish</span>[<span
   class="lp-say-en">English</span>]</button>. The tutor's blue string
   (static/css/a2/tutor.css .tu-str) under the Finglish; teal while its clip plays. The size is the beat's
   (font-size on the button); the Finglish is the display face. */
.lp-say{position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;margin:0;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lp-say:focus-visible{outline:3px solid #1C39BB;outline-offset:4px;border-radius:8px}
.lp-say-fi{position:relative;display:block;padding-bottom:.34em;font-family:var(--fd);font-weight:800;line-height:1.1;letter-spacing:-.01em;white-space:nowrap}
.lp-say-str{position:absolute;left:0;right:0;bottom:0;display:block;width:100%;height:max(14px,.34em);overflow:visible;pointer-events:none}
.lp-say-str path{fill:none;stroke:#1C39BB;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke;transition:stroke-width .15s,stroke .2s}
.lp-say:hover .lp-say-str path,.lp-say:focus-visible .lp-say-str path{stroke-width:3}
.lp-say[data-playing="1"] .lp-say-str path{stroke:#128C84;stroke-width:3}
.lp-say-en{display:block;margin-top:.15em;font:500 16px/1.35 var(--fb);color:var(--mut)}
.lp-night .lp-say{color:#F4EFE6}

/* -- the Get started pearl: one form, three seats (landing.js) -------------------------------------- */

/* THE PRESS (owner, 2026-11-16: "make the get started button twice the size and give it a capsule shaped frosty glass
   background so it's visible. it's a very important button"; LP_DESIGN §10.2). One control in three seats, one look:
   the kit's GO (its words, its thread, its pearl with the chevron) at twice its round-three size in each seat, inside
   a capsule of frosted glass: fully rounded ends, a light tint, the backdrop blurred, a hairline edge and a soft
   shadow, so it shows on plain paper (where blur alone shows nothing), over pictures, and on the night band in its dark
   glass (.lp-th-dk, the words in the paper's colour). It reads as a button, never a toggle: the words lead and fill
   most of it, the thread runs from them to the pearl, and the pearl stands in from the capsule's end by more than from
   its top and foot (a toggle's knob is concentric with the end it rests in). The dashes that trailed the pearl are
   dropped: the capsule ends just after it. The capsule is the .go itself, so all of it is the press; hover and focus
   are the kit's (the pearl rolls on a little, the thread stretches; the kit's ring, which follows the round ends).
   Measures per seat, from three lengths on the seat: --g-fs the words, --g-ln the thread, --g-pp the pearl (the
   capsule is 1.3 pearls tall; its width is about 6.99 words' em + the thread + 1.3 pearls). The root sets the
   stages' (hero, end) and the dock's (--gd-*); a phone gives all three seats one size, as large as a 390px screen
   allows (the bar 1.3 * 72 = 94px tall, 10px over the foot: about an eighth of an 844px screen). */
.lp{--g-fs:32px;--g-ln:36px;--g-pp:72px;--gd-fs:32px;--gd-ln:36px;--gd-pp:72px}
@media (min-width:700px) and (orientation:landscape),(min-width:1200px){
  .lp{--g-fs:52px;--g-ln:88px;--g-pp:128px;--gd-fs:38px;--gd-ln:44px;--gd-pp:104px}
}
.lp .go{height:calc(var(--g-pp) * 1.3);gap:calc(var(--g-fs) * .45);padding:0 calc(var(--g-pp) * .3) 0 calc(var(--g-fs) * .9);border:1px solid rgba(21,23,30,.15);border-radius:999px;font-size:var(--g-fs);background:rgba(255,255,255,.58);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 calc(var(--g-pp) * .1) calc(var(--g-pp) * .3) rgba(21,23,30,.13),0 1px 3px rgba(21,23,30,.1);transition:color .25s,background-color .3s,border-color .3s,box-shadow .3s}
.lp .go::before{width:var(--g-ln);height:max(2px,calc(var(--g-pp) / 32))}
.lp .go canvas{width:var(--g-pp);height:var(--g-pp);filter:drop-shadow(0 calc(var(--g-pp) * .1) calc(var(--g-pp) * .1) rgba(21,23,30,.3))}
.lp .go::after{right:calc(var(--g-pp) * .7375);width:calc(var(--g-pp) * .203);height:calc(var(--g-pp) * .203);margin-top:calc(var(--g-pp) * -.1015);border-top-width:calc(var(--g-pp) * .0625);border-right-width:calc(var(--g-pp) * .0625)}
.lp .go:hover canvas{transform:translateX(calc(var(--g-pp) * .14)) rotate(50deg) scale(1.05)}
.lp .go:hover::after{transform:translateX(calc(var(--g-pp) * .17)) rotate(45deg)}
.lp .go:active canvas{transform:translateX(calc(var(--g-pp) * .14)) scale(.9)}
/* a seat keeps its room while the press is away */
.lp .we-gs{min-height:calc(var(--g-pp) * 1.3 + 2px)}
.lp [data-lp-seat] form{display:contents}
/* in flight: the pearl and the words travel each on their own; the capsule, the thread and the chevron wait at the
   seat it goes to and show when they arrive */
.lp .go.lp-fly{background-color:transparent;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;transition:none}
.lp .go.lp-fly::before,.lp .go.lp-fly::after{opacity:0;transition:none}
.lp .go.lp-fly canvas,.lp .go.lp-fly .go-w{transition:none;will-change:transform}
.lp .go-w{display:block;transform-origin:0 50%}

/* THE DOCK (landing.js): where the press rests while the visitor reads. From 1400px wide it floats bottom right, over
   the strings' lanes and the foot of the content box's right edge; everywhere else (.lp-bar on the root) it stands at
   the foot, centred (where it would be more than about an eighth of a short screen it takes the phone's size). In
   both, the beats keep --lp-foot clear for it. It paints nothing but its capsule: what passes behind shows through the
   glass, blurred. Over the night band the capsule is the dark glass and its words the paper's colour, switched in ONE
   step when the band's edge passes the capsule's middle (.lp-th-dk, landing.js); the pearl is never recoloured. */
.lp-dock{--g-fs:var(--gd-fs);--g-ln:var(--gd-ln);--g-pp:var(--gd-pp);position:fixed;right:max(14px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));z-index:45;display:flex;align-items:center;justify-content:flex-end;pointer-events:none}
.lp-dock:empty{display:none}
.lp-dock > *{pointer-events:auto}
.lp-dock.lp-th-dk .go{color:#F4EFE6;border-color:rgba(244,239,230,.3);background-color:rgba(46,48,58,.62);box-shadow:inset 0 1px 0 rgba(244,239,230,.16),0 calc(var(--g-pp) * .1) calc(var(--g-pp) * .3) rgba(0,0,0,.34)}
/* the bar */
@media (max-height:1099px){
  .lp.lp-bar{--gd-fs:32px;--gd-ln:36px;--gd-pp:72px}
}
/* the beats keep the dock's height clear at their foot, floating or at the foot: an exhibit at rest with its last line
   at the screen's foot (the trips' stops under their city) is never under the capsule */
.lp{--lp-foot:calc(var(--gd-pp) * 1.3 + 28px + env(safe-area-inset-bottom,0px))}
.lp.lp-bar .lp-dock{left:0;right:0;bottom:max(10px,env(safe-area-inset-bottom,0px));justify-content:center;padding:0 12px}
/* LP.nudge(): the pearl answers once (the kit's ring, no sound) */
.lp .go.lp-nudge canvas{animation:lp-nudge .7s cubic-bezier(.3,1.5,.5,1)}
@keyframes lp-nudge{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(28,57,187,.5)}35%{transform:scale(1.09)}100%{transform:scale(1);box-shadow:0 0 0 18px rgba(28,57,187,0)}}

/* The view-transition names of the entry stage (entry.css) belong to the stage in view only (landing.js puts
   .lp-vt on it), never both: a name used twice cancels the transition. The hero's clickwrap sits bottom left
   and the question's bottom right, so it does not take part (it is not the same place). */
.lp .en:not(.lp-vt) .tb,.lp .en:not(.lp-vt) .en-th,.lp .en:not(.lp-vt) .en-rd,.lp .en:not(.lp-vt) .en-fr,.lp .lp-hero .en-fr{view-transition-name:none}

/* -- the hero's changes (the rest is welcome.css) ----------------------------------------------------- */

/* the clickwrap bottom LEFT: the strings own the bottom right */
.lp-hero .en-fr{left:32px;right:auto;max-width:520px;text-align:left}

/* -- the end stage: the entry stage again --------------------------------------------------------- */

/* The page's last statement: Māmān's line in the statements' type, her face beside it (72px; its middle level with
   the line's x-height middle: Baloo 2's x-height is .493em, so .2465 of the type above the baseline), the line's
   string at the type's .1em under it. "Come on in." 20px under that string (to its capitals: Baloo 2 at 20/1.42 puts
   them 7.76px into the line's box), the press under "Come on in." as the hero's under its line (--hs-gs). */
.lp-end-say{display:flex;align-items:baseline;gap:clamp(16px,1.5vw,24px)}
.lp-end-face{position:relative;top:calc(36px - .2465 * var(--lp-st-fs));display:block;flex:none;width:72px;height:72px;border-radius:50%;filter:drop-shadow(0 8px 8px rgba(21,23,30,.28))}
.lp .lp-end-h1{display:flex;margin:0;font:800 var(--lp-st-fs)/.96 var(--fd);letter-spacing:-.025em}
.lp-say-xl .lp-say-fi{padding-bottom:.2em;letter-spacing:-.025em;line-height:.96}
.lp-say-xl .lp-say-str{height:.2em}
.lp .lp-end-ln{min-height:0;margin-top:calc(12.24px - .1 * var(--lp-st-fs))}
.lp-end .we-gs{margin-top:var(--hs-gs,10px)}
/* THE END STAGE (review R4; round three, LP_DESIGN §9.1: in line with the hero, so the page begins and ends as one
   composition): from 700px a grid as tall as its composition, about a quarter of a screen under the tale's lowest thing
   (--lp-end-top, the tale beat's own foot padding counted). Its columns are the hero's (the page's pad, the pair's
   width --hs-pw, the gap, the words): the pair stands on the thread at the left at the hero's size and place, and the
   block (face and line, "Come on in.", the seat) stands beside it in the hero's text column, its foot above the thread by
   the height of Rostam's open hand less half the press (the hand is held out about 37% of the figures' height above the
   thread), so the hand leads to the press; then the foot under the thread. The block's clickwrap, when there is one
   (the road-first visit), follows the press. In the take, the block's words leave and the clickwrap stays. Phones keep
   their stacked order (below). */
.lp{--lp-end-top:max(48px,calc(25svh - max(var(--lp-pb),var(--lp-foot)) - 16px))}
@media (min-width:700px) and (orientation:landscape),(min-width:1200px){
  .lp .we.lp-end{display:grid;grid-template-columns:var(--lp-pad) min(var(--hs-pwx),calc(100% - var(--hs-tail))) var(--hs-hg) minmax(0,1fr) var(--hs-hr);grid-template-rows:auto auto;height:auto;min-height:0;padding-top:var(--lp-end-top)}
  .lp-end .en-ft{position:relative;inset:auto;grid-column:1 / -1;grid-row:1;min-height:calc(var(--hs-pw) * .9292)}
  .lp-end .en-iv{left:var(--lp-pad);bottom:0;width:var(--hs-pw)}
  .lp-end .en-th{bottom:0}
  .lp-end .we-hd{position:relative;left:auto;right:auto;top:auto;grid-column:4;grid-row:1;align-self:end;z-index:3;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;margin:0 0 max(24px,calc(var(--hs-pw) * .9292 * .37 - var(--g-pp) * .65)) 0}
  .lp-end .we-hd > .en-fr{position:relative;right:auto;bottom:auto;left:auto;max-width:30em;margin:18px 0 0;text-align:left}
  .lp-end .we-fl{position:relative;left:auto;bottom:auto;grid-column:1 / -1;grid-row:2;justify-self:start;margin:56px 0 0;padding:0 28px 14px}
}
.lp-end.tk-go .we-hd{opacity:1;transform:none;pointer-events:auto}
.lp-end .we-hd > :not(.en-fr){transition:opacity .45s,transform .45s cubic-bezier(.5,0,.8,.4)}
.lp-end.tk-go .we-hd > :not(.en-fr){opacity:0;transform:translateY(-18px);pointer-events:none}
/* THE FIRST SCREEN (round four, LP_DESIGN §10.1: "I still want the first view of the page to be clean so make the rostam
   and rakhsh a bit larger, and make the "you can already read it" appear in the next scroll page"). The first view
   holds the first screen and nothing of the road beat: the stage is at least the screen's height (round two's rule),
   and what fills it is size, not space, in the arrangement the owner drew (§9): the band; the pair at the LEFT, large,
   rising from behind the thread, its top about level with the headline; beside it, in the text column, the headline,
   the line and the press (its capsule twice round three's); under them, close (--hs-gp, never more than about 110px at
   2000x1100), the five pearls on the thread, larger. Under the thread the rest of the screen (the last grid row, at
   least --hs-hb) where the strings leave the pearls and start down to their lanes (landing.js ends their lean 40px
   under the stage). From 700px the stage is a grid; the pair's box and the thread stand in .en-ft, which spans the rows
   down to the pearls', so the thread is the pearls' row's foot however tall the screen. The measures, on the page root
   so the end stage stands in line with them:
     --hs-fs  the headline's size; --hs-lines its lines: two ("Learn Persian for the / people you love.", never a word
              alone) wherever one line would not fit beside the larger pair at full size, which is everywhere below
              2200px (the owner's 2000px window included); one from 2200px;
     --hs-gw  the press's capsule's width (landing.css THE PRESS); --hs-tw the text column's need: the headline's lines
              (10.5em for two, 16.6em for one) or the capsule, the wider;
     --hs-pp  a pearl: 180px at 2000px (9vw), in proportion, at most 180px: the four flat module icons are 360px art
              (no larger original exists), drawn whole (crop 1) into canvases of 200 css px with the kit's fine texture,
              so a pearl is sharp on a 2x screen up to 180px and softens above; --hs-nm its name's size;
     --hs-P   the pair's height: 58% of the screen (638px at 2000x1100; round three's was 484), at most 660px (round 15:
              the rows it stands beside stop growing at their caps, about 750px from the headline's gap to the pearls'
              foot, so on a taller screen, 3200x1800, a 58svh pair rose 219px past the stage's top), its box 1440:1338
              (--hs-pwx at that height); --hs-pw its width, never more than leaves the text column its --hs-tw (--hs-tail,
              the rest of the row): on a narrower screen the pair yields, the words and the press never do;
     --hs-top the band to the headline, --hs-gs the line to the press, --hs-gp the press to the pearls' names: they grow
              with the screen's height to fill it, each at most about 110px. */
@media (min-width:700px) and (orientation:landscape),(min-width:1200px){
  .lp{--hs-fs:min(72px,5.4vw);--hs-lines:2;--hs-gw:calc(6.99 * var(--g-fs) + var(--g-ln) + 1.3 * var(--g-pp) + 2px);--hs-tw:max(calc(10.5 * var(--hs-fs)),var(--hs-gw));--hs-pp:clamp(96px,9vw,180px);--hs-nm:max(15px,calc(.16 * var(--hs-pp)));--hs-names:calc(1.1 * var(--hs-nm) + 14px);--hs-gp:clamp(36px,9svh,104px);--hs-top:clamp(24px,8.2svh,96px);--hs-gs:clamp(16px,2.8svh,34px);--hs-hg:clamp(32px,2.8vw,64px);--hs-hr:clamp(28px,2.4vw,48px);--hs-hb:120px;--hs-P:min(58svh,660px);--hs-pwx:calc(var(--hs-P) * 1.0762);--hs-tail:calc(var(--lp-pad) + var(--hs-hg) + var(--hs-tw) + var(--hs-hr))}
  /* each stage is the width its pair's measure is taken against: in the stage's own columns as 100%, inside it as 100cqw
     (a percentage means another box in a margin or a min-height). Containment here is inline-size only; nothing fixed
     lives in a stage (the dock is outside both). */
  .lp .lp-hero.we,.lp .we.lp-end{container-type:inline-size;--hs-pw:min(var(--hs-pwx),calc(100cqw - var(--hs-tail)))}
  .lp .lp-hero.we{display:grid;grid-template-columns:var(--lp-pad) min(var(--hs-pwx),calc(100% - var(--hs-tail))) var(--hs-hg) minmax(0,1fr) var(--hs-hr);grid-template-rows:auto auto var(--hs-gp) auto minmax(var(--hs-hb),1fr);height:auto;min-height:100vh;min-height:100svh}
  .lp-hero > .tb{grid-column:1 / -1;grid-row:1}
  .lp-hero .we-hd{position:relative;left:auto;right:auto;top:auto;grid-column:4;grid-row:2;margin-top:var(--hs-top)}
  .lp-hero .we-h1{font-size:var(--hs-fs)}
  .lp-hero .we-ln{min-height:0;text-wrap:balance}
  .lp-hero .we-gs{margin-top:var(--hs-gs)}
  /* the five pearls on the thread, spread across the text column, the first under the headline's first letter */
  .lp-hero .we-parts{position:relative;left:auto;right:auto;bottom:auto;grid-column:4;grid-row:4;height:calc(var(--hs-pp) + var(--hs-names))}
  .lp-hero .we-p{--x:calc(var(--hs-pp) / 2 + var(--k) * (100% - var(--hs-pp)) / 4)}
  .lp-hero .we-p[data-we-part="road"]{--k:0}
  .lp-hero .we-p[data-we-part="missions"]{--k:1}
  .lp-hero .we-p[data-we-part="journeys"]{--k:2}
  .lp-hero .we-p[data-we-part="comics"]{--k:3}
  .lp-hero .we-p[data-we-part="own"]{--k:4}
  .lp-hero .we-pt{left:calc(var(--hs-pp) / -2 - 16px);width:calc(var(--hs-pp) + 32px);height:calc(var(--hs-pp) + var(--hs-names))}
  .lp-hero .we-pt canvas{left:16px;width:var(--hs-pp);height:var(--hs-pp)}
  .lp-hero .we-pt span{bottom:calc(var(--hs-pp) + 12px);font-size:var(--hs-nm)}
  /* the pair and the thread, in .en-ft over the rows from the headline's to the pearls': the box's foot on the thread
     (the 2px line, drawn after it, covers the figures' cut) */
  .lp-hero .en-ft{position:relative;inset:auto;grid-column:1 / -1;grid-row:2 / 5}
  .lp-hero .en-iv{left:var(--lp-pad);bottom:0;width:var(--hs-pw)}
  .lp-hero .en-th{bottom:0}
  /* the clickwrap (road-first visit only) under the pair, in the band under the thread: the strings lean right */
  .lp-hero .en-fr{left:var(--lp-pad);bottom:22px}
}
@media (min-width:700px) and (max-height:759px) and (orientation:landscape),(min-width:1200px) and (max-height:759px){
  .lp{--hs-fs:min(clamp(56px,5vw,72px),5.4vw)}
}
@media (min-width:700px) and (max-width:1099px) and (orientation:landscape){
  .lp{--hs-fs:min(clamp(44px,5.4vw,60px),5.85vw);--hs-pp:clamp(72px,9vw,120px)}
}
/* one line from 2200px, where it fits beside the pair at its full size */
/* two lines: "Learn Persian for the / people you love." ("you love." never parts; 10.5em holds the first line, 9.12em,
   and not "…the people", 12.32em) */
.lp-hero .we-h1{max-width:10.5em}
.lp-hero .we-h1 em{white-space:nowrap}
@media (min-width:2200px){
  .lp{--hs-lines:1;--hs-tw:max(calc(16.6 * var(--hs-fs)),var(--hs-gw))}
  .lp-hero .we-h1{max-width:none;white-space:nowrap}
}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .lp-hero .we-h1{font-size:min(38px,calc((100vw - 32px) / 9.3))}
}
/* R15-H1 (owner, 2026-11-19, the iPad Air 13": "center. text can use more width so it doesn't wrap unnecessarily"): on an
   upright tablet the hero's words stand centred, the name on one line where it fits (a balanced two where it doesn't),
   the line under it and Get started centred under the name */
@media (orientation:portrait) and (min-width:560px) and (max-width:1199px){
  .lp-hero .we-hd{text-align:center}
  .lp-hero .we-h1{max-width:none;margin-left:auto;margin-right:auto;text-wrap:balance}
  .lp-hero .we-ln{margin-left:auto;margin-right:auto}
  .lp-stage.lp-hero > .en-fr{align-self:center}
  /* "these pearls are too small for this screen (M4)": the five pearls a size up (62 → 80) */
  .lp .lp-stage.lp-hero .we-p{height:122px}
  .lp .lp-stage.lp-hero .we-pt{width:96px;height:122px;margin-left:-48px}
  .lp .lp-stage.lp-hero .we-pt canvas{left:8px;width:80px;height:80px}
  .lp .lp-stage.lp-hero .we-pt span{bottom:92px}
}
@media (max-width:1099px) and (min-width:700px) and (orientation:landscape){
  .lp-end-face{top:calc(28px - .2465 * var(--lp-st-fs));width:56px;height:56px}
  .lp .lp-end-ln{margin-top:calc(13.42px - .1 * var(--lp-st-fs))}
}

/* -- the riders who invite (owner, 2026-11-15; showcase/partials/entry_riders.html with `invite`, welcome.js): Mehul's
   Rostam and Rakhsh lean in from BEHIND the thread. The films' lower edge is the figures' own cut, so the box's foot
   lies on the thread (bottom 166px: the 2px line, drawn after them, covers the cut) and the pair rises from behind it;
   in the leaving (.duck) they sink behind it, clipped by the box. Safe with no blend at all: the films' ground is
   encoded at the paper's own value (#F4EFE6) and their sides and top are feathered into the page by a mask (5%, 4%),
   so no box shows in a browser that ignores the blend (WebKit could not be checked here). The blend is the
   improvement where it works (Chrome, checked): mix-blend-mode: darken makes the ground whatever is beneath it, so a
   glint of the mirror ground passes through, and the figures, all darker than the paper, stay as drawn. It reaches
   the stage's own layers because nothing between the films and the stage makes a stacking context (.en-ft loses
   entry.css's z-index here; the box has no transform; the duck moves the films themselves), and the paper it blends
   with is the box's own backing (.en-iv-bk) at z-index -2, under the mirror's canvas (-1): the stage itself has no
   ground (the strings must show through it). ONE film (or the still) is visible at a time (.on): two darkened layers
   would show each other's figures.
   Size and place: the first screen's model above (--hs-pw, at the page's pad, on the thread); phones below. -------- */
.lp .en-ft{z-index:auto}
.en-iv{position:absolute;aspect-ratio:1440/1338;overflow:hidden;pointer-events:none}
.en-iv-bk{position:absolute;inset:0;z-index:-2;background:#F4EFE6}
.en-iv-m{position:absolute;left:0;top:0;display:block;width:100%;height:100%;mix-blend-mode:darken;visibility:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(transparent,#000 4%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(transparent,#000 4%);mask-composite:intersect}
.en-iv-m.on{visibility:visible}
/* the leaving: the two duck behind the thread as the stage takes the press (welcome.js) */
.en-iv.duck .en-iv-m{transform:translateY(102%);transition:transform .6s cubic-bezier(.55,0,.8,.3) .08s}

/* -- below 700px: the hero's rows in the phone's order; the dock's clearance --------------------------- */

@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .lp-stage{display:flex;flex-direction:column;min-height:100svh}
  .lp-stage .we-hd{order:2}
  .lp-stage > .en-fr{order:3}
  .lp-stage .en-ft{order:4}
  .lp-stage .we-parts,.lp-stage .we-fl{order:5}
  .lp-hero .en-fr{left:auto;max-width:none}
  /* the riders take the room between the press and the pearls (the foot, at the end), rising from their own stretch
     of thread, centred: on the hero the box fills that room but for about 80px of air under the press (the room is
     the screen less the headline block's ~300px and the pearls' 152px), at most 360px and 20px in from each edge;
     on the end the block hangs a quarter screen under the tale's lowest thing, as on a wide screen (its own 24px
     top padding counted), and the riders take the room under it */
  .lp-stage .en-ft{flex:1 0 calc(var(--iv) * .9292 + 30px)}
  .lp-stage .en-ft,.lp .en-iv{--iv:min(calc(100vw - 40px),360px,max(200px,calc((100svh - 532px) * 1.109)))}
  .lp .en-iv{left:calc(50% - var(--iv) / 2);bottom:30px;width:var(--iv)}
  /* the hero is a whole screen again (round four, LP_DESIGN §10.1: the road beat begins on the next one): the pair as
     wide as the screen allows (at most 360px) right under the press, its thread, then the five pearls close under it */
  .lp-hero .en-ft,.lp .lp-hero .en-iv{--iv:min(calc(100vw - 40px),360px)}
  .lp-stage.lp-hero .en-ft{flex:none;height:calc(var(--iv) * .9292 + 12px);margin-top:8px}
  .lp .lp-hero .en-iv{bottom:12px}
  .lp-hero .en-th{bottom:12px}
  .lp-hero .we-parts{padding-top:6px}
  .lp-hero .we-p{height:98px}
  .lp-hero .we-pt{width:78px;height:98px;margin-left:-39px}
  .lp-hero .we-pt canvas{left:8px;width:62px;height:62px}
  .lp-hero .we-pt span{bottom:72px}
  .lp-end .we-hd{margin-top:max(0px,calc(var(--lp-end-top) - 24px))}
  .lp-end-say{gap:14px}
  .lp-end-face{top:calc(24px - .2465 * var(--lp-st-fs));width:48px;height:48px}
  .lp .lp-end-ln{margin-top:14px}
  .lp-end .we-gs{margin-top:10px}
  .lp-end .we-hd > .en-fr{padding:0}
}

/* R15-E2 (owner, 2026-11-19, round 15 on the iPad mini, the page's foot: "make these centered"; "remove all this blank
   space"): on an upright tablet, as the hero (R15-H1), Māmān's Befarmā tu!, Come on in. and Get started stand centred,
   and the riders come right under them, a size up, instead of standing at the foot of a whole screen with the room
   between left empty */
@media (orientation:portrait) and (min-width:560px) and (max-width:1199px){
  .lp-end .we-hd{display:flex;flex-direction:column;align-items:center;text-align:center}
  .lp-end-say{justify-content:center}
  .lp .lp-end-ln{margin-left:auto;margin-right:auto}
  .lp-stage.lp-end{min-height:0}
  .lp-stage.lp-end .en-ft,.lp .lp-end .en-iv{--iv:min(calc(100vw - 80px),440px)}
  .lp-stage.lp-end .en-ft{flex:none;height:calc(var(--iv) * .9292 + 30px);margin-top:clamp(20px,3svh,40px)}
}

@media (prefers-reduced-motion:reduce){
  .en-iv.duck .en-iv-m{transition:none}
  .lp-s-nm,.lp-say-str path{transition:none}
  .lp .go.lp-nudge canvas{animation:none}
}
