/* Beat `lp-own` of the landing page, "Your life is the lesson." (LP, 2026-11-14; rounds two and three 2026-11-15:
   .scratch/ui_integration/briefs/LP_DESIGN.md §8.3, §9.3, LP2_B2.md, LP3_B2.md): its OWN styles only (its object, inside
   templates/dashboard/landing/own.html). The type, the content box, the strings and the dock are the frame's
   (static/css/a2/landing.css). Flat, every class lp-own-.

   THE BEAT is its stage (.lp-own-stage, the frame's content box) and, with script and motion, a RUNWAY under it
   (.lp-own-runway, --own-run, own.js): the stage is held in place (sticky, --own-top) while the runway scrolls by,
   and the sequence plays as a function of the scroll; at its end the stage goes on up with the page. With no script
   or reduced motion there is no runway and the stage is the finished lesson.
   THE OBJECT is ONE GRID (.lp-own-row) whose second row's foot is the ink string's run (the hook at its left end; the
   frame draws the run from the bend to it):
     · first column: the new lesson's pearl, centred on the string at the line's start (its ring's outer edge on the
       column's edge, the string's end dot under it), its name and state under it;
     · beside it the moment over the title on the string, and the English under the string;
     · at the run's other end, by the bend, the practice set's pearl (three quarters of the lesson's, where the
       lesson's pearl was made), its name and state under it, right-aligned to the content box's edge.
   WHILE WRITTEN (.lp-own-w) the lesson's pearl stands at that same place by the bend (--own-x), a plain pearl
   clearing from the kit's fog, and the sentence is written on the string from the line's start (.lp-own-say).
   Everything else in the sequence own.js sets by hand from the scroll.
   Text baselines sit about half an em above the string, so a descender and the gold mark under a taught word clear
   it. */

.lp-beat.lp-own{--own-fs:clamp(24px,2.6vw,40px);--own-tfs:clamp(28px,3vw,44px);--own-mfs:clamp(16px,calc(7.7px + .714vw),23px);--own-pr:clamp(140px,12.2vw,200px);--own-pq:calc(var(--own-pr) * .75);--own-gap:clamp(24px,2.4vw,40px);--own-gp:clamp(3px,.25vw,4px);--own-gr:clamp(6px,.5vw,7.5px);--own-in:calc(var(--own-gr) + var(--own-pr) + var(--own-gap))}
/* held while the sequence plays (own.js sets --own-top and the runway's height) */
.lp-own-js .lp-own-stage{position:sticky;top:var(--own-top,0px)}
.lp-own-runway{display:block;height:var(--own-run,0px)}
.lp-own-ob{min-height:0;margin-top:clamp(36px,6vh,72px)}

/* ---- the grid: the lesson pearl's column, the title's, the run; rows: the moment, the title (its foot is the
   string), under the string */
.lp-own-row{position:relative;display:grid;grid-template-columns:var(--own-in) max-content minmax(0,1fr);grid-template-rows:auto auto auto}
/* under the string, the lesson pearl's lower half and its name lie inside the object */
.lp-own-row::after{content:"";grid-row:3/4;grid-column:1/2;height:calc(var(--own-pr) / 2 + 46px)}
/* (an absolutely placed grid item spans to the grid's edge unless both its lines are named) */
/* the string's end dot (landing.js: r 3.6, 3 on a phone) just inside the column, so the pearl's ring hides it */
.lp-own-hook{position:absolute;grid-row:2/3;grid-column:1/2;left:4px;top:auto;bottom:0}
/* the moment: the learner's sentence over the title, the beat's subject (18px at 1440, 22px at 2000) */
:where(.a2) .lp-own-mo{grid-row:1/2;grid-column:2/-1;align-self:end;margin:0 0 clamp(14px,1.3vw,24px);font:600 var(--own-mfs)/1.25 var(--fb);color:#1C39BB;text-wrap:pretty}
.lp-own-mo .lp-own-wd{transform-origin:0 0}
/* the lesson's title, on the string: the size of a spoken Persian line on this page (contract §7) */
:where(.a2) .lp-own-ti{grid-row:2/3;grid-column:2/3;align-self:end;margin:0;padding:0 var(--own-gap) .15em 0;font:700 var(--own-tfs)/1.25 var(--fd);letter-spacing:-.012em;color:var(--ink);text-wrap:balance}
.lp-own-ti > span{white-space:nowrap}
/* a word the lesson teaches: the app's mark (static/css/a2/lesson.css .ls .af-tm-vocab, drawn from the baseline) */
.lp-own-k{text-decoration:underline solid #E8A21A;text-decoration-thickness:max(3px,.085em);text-underline-offset:.14em;text-decoration-skip-ink:none}
.lp-own-mo .lp-own-k{text-decoration-thickness:2px;text-underline-offset:.18em}
:where(.a2) .lp-own-en{grid-row:3/4;grid-column:2/3;align-self:start;margin:clamp(10px,1vw,16px) 0 0;font:500 clamp(17px,1.4vw,22px)/1.35 var(--fb);color:rgba(21,23,30,.84)}
/* a pearl's name and its state, in the app's words and its small capitals (static/css/a2/lesson.css .ls-wip) */
/* set like the science strand's university names (proof.css .lp-proof-u: 13.5px at 1440, 16px at 2000, letterspaced
   capitals; 13px on a phone, in proportion to the strand's 14px there) */
:where(.a2) .lp-own-tag{position:absolute;grid-row:3/4;grid-column:1/-1;margin:0;font:700 clamp(13.5px,.8vw,16px)/1.2 var(--fd);letter-spacing:.16em;text-transform:uppercase;color:#3D4252;white-space:nowrap;pointer-events:none}
.lp-own-tag b{font-weight:800;color:var(--ink)}
.lp-own-tag i{font-style:normal}
.lp-own-tag-l{left:0;top:calc(var(--own-pr) / 2 + 18px)}
.lp-own-tag-q{right:0;top:calc(var(--own-pq) / 2 + 18px)}

/* the sentence being written (own.js): the learner's blue, its last line on the string, clear of the pearl */
:where(.a2) .lp-own-say{grid-row:1/3;grid-column:1/-1;align-self:end;margin:0 var(--own-in) 0 0;padding-bottom:.13em;font:600 var(--own-fs)/1.25 var(--fb);letter-spacing:-.005em;color:#1C39BB;visibility:hidden;pointer-events:none}
.lp-own-wd{display:inline-block;white-space:nowrap}
.lp-own-c{visibility:hidden}
.lp-own-w .lp-own-say{visibility:visible}
.lp-own-w .lp-own-c.on{visibility:visible}
/* the caret: the learner's blue, after the last letter; it blinks while the hand waits */
.lp-own-car{position:relative;display:inline-block;width:0;height:1em;vertical-align:-.12em}
.lp-own-car::before{content:"";position:absolute;left:1px;top:.02em;bottom:-.06em;width:max(2.5px,.07em);border-radius:2px;background:#1C39BB;animation:lp-own-blink 1.06s steps(1) infinite}
.lp-own-typing .lp-own-car::before{animation:none}
@keyframes lp-own-blink{0%{opacity:1}50%{opacity:0}}
/* the words the pearl takes carry the taught word's mark from the press on */
.lp-own-say .lp-own-wd.lp-own-k{text-decoration-color:transparent;transition:text-decoration-color .2s}
.lp-own-say.lp-own-marked .lp-own-wd.lp-own-k{text-decoration-color:#E8A21A}
/* the seed: a copy of the taken words that runs along the string into the pearl (own.js places it) */
:where(.a2) .lp-own-seed{position:absolute;left:0;top:0;z-index:1;display:none;margin:0;font:600 var(--own-fs)/1.25 var(--fb);letter-spacing:-.005em;color:#1C39BB;white-space:nowrap;pointer-events:none;will-change:transform}

/* ---- the lesson's pearl, centred on the string; a ring's width in (--own-gr), so its ring's outer edge is the
   column's edge, as every statement's is */
.lp-own-p{position:absolute;grid-row:2/3;grid-column:1/2;left:var(--own-gr);bottom:calc(var(--own-pr) / -2);z-index:3;width:var(--own-pr);height:var(--own-pr);border-radius:50%;transform-origin:50% 50%}
.lp-own-cv{position:absolute;left:0;top:0;display:block;width:100%;height:100%;border-radius:50%}
/* its cover: the picture itself (sharp at any size), under the kit's glass painted as two layers (own.js, as the
   missions beat's film pearl), the veil and the light while it is being written, the app's ready ring */
.lp-own-cover{position:absolute;inset:0;overflow:hidden;border-radius:50%;background:#E9E4DA;box-shadow:0 0 0 var(--own-gp) #F4EFE6,0 0 0 var(--own-gr) var(--own-ok);filter:drop-shadow(0 10px 10px rgba(10,14,40,.24));isolation:isolate}
.lp-own-art{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;transform-origin:50% 50%}
.lp-own-glass .lp-own-art{filter:brightness(1.05)}
.lp-own-mul,.lp-own-add{position:absolute;inset:0;display:none;width:100%;height:100%;border-radius:50%;pointer-events:none}
.lp-own-glass .lp-own-mul,.lp-own-glass .lp-own-add{display:block}
.lp-own-mul{mix-blend-mode:multiply}
.lp-own-add{mix-blend-mode:screen;mix-blend-mode:plus-lighter}
/* the veil: the same picture greyed under the kit's fog colour (afx.js paint(): fog, grey at a third over .6) */
.lp-own-veil{position:absolute;inset:0;display:none;overflow:hidden;border-radius:50%}
.lp-own-veil img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(.9);transform-origin:50% 50%}
.lp-own-veil::after{content:"";position:absolute;inset:0;background:rgba(236,237,242,.7)}
.lp-own-light{position:absolute;inset:0;display:block;border-radius:50%;mix-blend-mode:screen;pointer-events:none}
.lp-own-js .lp-own-veil{display:block}

/* ---- the practice set's pearl, by the bend, its ring's outer edge on the content box's edge */
.lp-own-q{position:absolute;grid-row:2/3;grid-column:1/-1;right:var(--own-gr);bottom:calc(var(--own-pq) / -2);z-index:3;width:var(--own-pq);height:var(--own-pq);border-radius:50%;background:radial-gradient(circle at 34% 28%,#FFFFFF 0,#F1ECE3 38%,#D9D2C6 78%,#BDB4A6 100%);box-shadow:0 0 0 var(--own-gp) #F4EFE6,0 0 0 var(--own-gr) var(--own-ok);filter:drop-shadow(0 8px 8px rgba(10,14,40,.22));transform-origin:50% 50%}
.lp-own-js .lp-own-q{background:none}
.lp-own-qf{-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}

/* ---- while the sequence plays (own.js sets every piece's place, size and opacity from the scroll): the lesson's
   pearl plain under the fog while the sentence is written */
.lp-own-plain{filter:drop-shadow(0 8px 8px rgba(10,14,40,.22))}
.lp-own-fog{opacity:var(--fog,1)}
/* READY IS THE GREEN RING (owner, 2026-11-17: "say ready with a green highlight on the pearl itself"; the names
   under the pearls carry no state words). Not yet ready: no ring (own.js); the ring rings once when it is. */
.lp-beat.lp-own{--own-ok:#2E9E5B}
.lp-own-p.lp-own-wip .lp-own-cover,.lp-own-q.lp-own-wip{box-shadow:none}
.lp-own-ring::after{content:"";position:absolute;inset:0;border-radius:50%;animation:lp-own-now 1.3s ease-out 1;pointer-events:none}
@keyframes lp-own-now{0%,100%{box-shadow:0 0 0 0 rgba(46,158,91,.55)}55%{box-shadow:0 0 0 16px rgba(46,158,91,0)}}

/* phones: 20 to 22px writing, a 96 to 112px lesson pearl and a 44 to 52px practice pearl; the title in two lines and the
   English short of the practice pearl; the two names on one line under the lesson pearl's foot */
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .lp-beat.lp-own{--own-fs:clamp(20px,5.7vw,22px);--own-tfs:clamp(20px,5.6vw,24px);--own-pr:clamp(96px,28vw,112px);--own-pq:clamp(44px,12vw,52px);--own-gap:16px}
  .lp-own-row{grid-template-columns:var(--own-in) minmax(0,1fr) 0}
  :where(.a2) .lp-own-ti{padding-right:0}
  /* the moment on ONE line (owner, 2026-11-17, at 375px: "the lesson title and prompt can be shown in one line each"):
     over the whole row, the lesson pearl's column too, instead of the title's column alone (169px at 375) */
  :where(.a2) .lp-own-mo{grid-column:1/-1;font-size:15px;white-space:nowrap}
  :where(.a2) .lp-own-en{margin-right:calc(var(--own-pq) + 2 * var(--own-gr) + 6px);font-size:14px;text-wrap:balance}
  :where(.a2) .lp-own-tag{font-size:13px;letter-spacing:.13em}
}

/* R15-O1 (owner, 2026-11-19, round 15 on the iPad mini: "text is covered. put the text where we put it on mobile"): an
   upright tablet's title fits on one line, so the lesson pearl's upper half (half its size and its ring above the string)
   rose past the title into the moment's line; the moment keeps the phone's place, over the whole row from the left
   edge, and stands clear of the pearl's top */
@media (orientation:portrait) and (min-width:700px) and (max-width:1199px){
  :where(.a2) .lp-own-mo{margin-bottom:max(14px,calc(var(--own-pr) / 2 + var(--own-gr) - 1.25 * var(--own-tfs) + 12px))}
}

/* A phone ALWAYS breaks the title between its two words (owner's iPhone 13 mini in Chrome at 85% zoom, 2026-11-23,
   and every iPhone Plus / Pro Max at 100%): from about 420px wide the title's column held both words, so the title ran
   under the practice pearl and the moment's line, one line lower, sat under the lesson pearl's top. Each word is a
   nowrap span, so min-content is "Tavallod-e / pesaram". An upright tablet keeps its one-line title (R15-O1 above). */
@media (max-width:699px){
  :where(.a2) .lp-own-ti{width:min-content}
}

@media (prefers-reduced-motion:reduce){
  .lp-own-car::before,.lp-own-ring::after{animation:none}
}
