/* Quarry School front page and information pages (landing unit, 16 Nov 2026). Loaded after /site.css on /, /mission/,
   /contact/, /faq/ and /how-it-is-made/ only. Everything is scoped under body.pg-landing. One accent a look; type is
   Hanken Grotesk (the logo keeps its own face). Floor: body 18 px, other words 15 px or more, 12:1 body, 7:1 others. */
body.pg-landing {
  --lp-bg: #FAF8F6; --lp-ink: #15181D; --lp-soft: #3B414B; --lp-line: #D6D0C6; --lp-card: #FFFFFF; --lp-well: #F1EDE6;
  --lp-acc: #145A33; --lp-acc-ink: #FFFFFF; --lp-tint: #DCEFE3; --lp-rock: #E4DDD1; --lp-rock-2: #D4CBBD; --lp-dug: #BFE2CC;
  --lp-code: #F3F0EA;
  background: var(--lp-bg); color: var(--lp-ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px; line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) body.pg-landing {
    --lp-bg: #0C1017; --lp-ink: #EEF1F5; --lp-soft: #C6CDD7; --lp-line: #2C3542; --lp-card: #121822; --lp-well: #161D28;
    --lp-acc: #8FD6A9; --lp-acc-ink: #0C1017; --lp-tint: #183324; --lp-rock: #1A212C; --lp-rock-2: #232C39; --lp-dug: #24563A;
    --lp-code: #141B25;
  }
}
:root[data-theme=dark] body.pg-landing {
  --lp-bg: #0C1017; --lp-ink: #EEF1F5; --lp-soft: #C6CDD7; --lp-line: #2C3542; --lp-card: #121822; --lp-well: #161D28;
  --lp-acc: #8FD6A9; --lp-acc-ink: #0C1017; --lp-tint: #183324; --lp-rock: #1A212C; --lp-rock-2: #232C39; --lp-dug: #24563A;
  --lp-code: #141B25;
}
body.pg-landing .lay { display: block; max-width: none; padding: 0; margin: 0; grid-template-columns: none; }
body.pg-landing main { max-width: none; margin: 0; padding: 0; }
.lp { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
@media (max-width: 600px) { .lp { padding: 0 16px; } }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h2, .lp h3 { font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--lp-ink); letter-spacing: -0.015em; margin: 0; }
.lp h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 750; max-width: 15ch; }
.lp h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.12; font-weight: 720; }
.lp h3 { font-size: 23px; line-height: 1.25; font-weight: 700; }
.lp p { margin: 0; }
.lp a { color: var(--lp-acc); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lp a:focus-visible, .lp-key:focus-visible, .lp summary:focus-visible, .lp .row:focus-visible { outline: 3px solid var(--lp-acc); outline-offset: 3px; border-radius: 10px; }
.lp-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-acc); }
.lp-lead { font-size: 21px; line-height: 1.55; color: var(--lp-soft); max-width: 40ch; }
.lp-sec { padding: 72px 0; border-top: 1px solid var(--lp-line); }
.lp-sec > .lp > h2 + p, .lp-head p { margin-top: 14px; color: var(--lp-soft); max-width: 62ch; }
@media (max-width: 600px) { .lp-sec { padding: 48px 0; } }

/* Keys */
.lp-keys { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-key { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; font-size: 18px; font-weight: 700; text-decoration: none; border: 2px solid var(--lp-acc); line-height: 1.2; }
.lp a.lp-key-fill, .lp a.lp-key-fill:visited { background: var(--lp-acc); color: var(--lp-acc-ink); text-decoration: none; }
.lp a.lp-key-line, .lp a.lp-key-line:visited { background: transparent; color: var(--lp-acc); text-decoration: none; }
.lp a.lp-key-fill:hover { filter: brightness(1.08); }
.lp a.lp-key-line:hover { background: var(--lp-tint); }
.lp-key svg { width: 20px; height: 20px; flex: none; }
.lp-note { margin-top: 16px; font-size: 16px; color: var(--lp-soft); }

/* Pictures of the real product */
.lp-shot { margin: 0; border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; background: var(--lp-card); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-shot figcaption { padding: 12px 16px; font-size: 16px; line-height: 1.45; color: var(--lp-soft); border-top: 1px solid var(--lp-line); background: var(--lp-well); }
.lp-shot .lp-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .lp-shot .lp-l { display: none; } :root:not([data-theme=light]) .lp-shot .lp-d { display: block; } }
:root[data-theme=dark] .lp-shot .lp-l { display: none; }
:root[data-theme=dark] .lp-shot .lp-d { display: block; }

/* What every lesson gives you */
.lp-gets { display: grid; gap: 28px; margin-top: 40px; }
.lp-get { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.lp-get.lp-flip > :first-child { order: 2; }
.lp-get p { margin-top: 12px; color: var(--lp-soft); max-width: 46ch; }
.lp-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lp-tint); color: var(--lp-acc); margin-bottom: 14px; }
.lp-ic svg { width: 24px; height: 24px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.lp-card { border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-card); padding: 24px; }
.lp-card p { margin-top: 10px; color: var(--lp-soft); font-size: 18px; }
@media (max-width: 960px) { .lp-get, .lp-get.lp-flip { grid-template-columns: 1fr; gap: 20px; } .lp-get.lp-flip > :first-child { order: 0; } .lp-cards { grid-template-columns: 1fr; } }

/* Courses (the rows keep the release's markup, which /courses/ is built from) */
.lp-courses .subject { margin-top: 32px; }
.lp-courses .subject-name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-acc); margin: 0 0 12px; }
.lp-courses ul.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-courses .subject:last-child ul.rows { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - 8px); }
.lp-courses a.row { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 24px; border: 1px solid var(--lp-line); border-radius: 16px;
  background: var(--lp-card); color: var(--lp-ink); text-decoration: none; }
.lp-courses a.row:hover { border-color: var(--lp-acc); }
.lp-courses .row-title { font-size: 23px; font-weight: 700; margin: 0; color: var(--lp-ink); }
.lp-courses .row-summary { font-size: 18px; color: var(--lp-soft); line-height: 1.55; }
.lp-courses .row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 16px; color: var(--lp-soft); }
.lp-courses .row-facts { font-weight: 700; color: var(--lp-ink); }
.lp-courses .row-blocks { order: 9; }
.lp-courses .ub-row { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-courses .ub { display: block; width: 14px; height: 8px; border-radius: 3px; background: var(--lp-acc); border: 0; }
.lp-courses .ub.short { background: transparent; box-shadow: inset 0 0 0 2px var(--lp-acc); opacity: 1; }
.lp-courses .row-learner:empty { display: none; }
@media (max-width: 760px) { .lp-courses ul.rows, .lp-courses .subject:last-child ul.rows { grid-template-columns: 1fr; max-width: none; } }

/* Made, format, free */
.lp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 8px; }
.lp-two > div > p { margin-top: 14px; color: var(--lp-soft); }
.lp-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.lp-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--lp-soft); }
.lp-steps li b { color: var(--lp-ink); }
.lp-steps li svg { width: 26px; height: 26px; color: var(--lp-acc); margin-top: 2px; }
.lp-code { margin: 20px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--lp-code); border: 1px solid var(--lp-line); overflow-x: auto; }
.lp-code code { font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace; font-size: 16px; line-height: 1.7; color: var(--lp-ink); white-space: pre; }
.lp-code .k { color: var(--lp-acc); font-weight: 700; }
.lp-small { margin-top: 12px; font-size: 16px; color: var(--lp-soft); }
.lp-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; min-height: 44px; }
.lp-more svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .lp-two { grid-template-columns: 1fr; gap: 40px; } }
.lp-end { text-align: left; }
.lp-end .lp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Information pages */
.lp-page { padding: 56px 0 72px; }
.lp-page .lp { max-width: 820px; }
.lp-page h1 { max-width: 20ch; }
.lp-page .lp-lead { margin-top: 18px; max-width: 52ch; }
.lp-page h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 48px; }
.lp-page .lp > p, .lp-page section > p { margin-top: 12px; color: var(--lp-soft); max-width: 66ch; }
.lp-page ul.lp-list { margin: 12px 0 0; padding-left: 1.2em; color: var(--lp-soft); }
.lp-page ul.lp-list li { margin-top: 6px; }
.lp-faq { margin-top: 32px; border-top: 1px solid var(--lp-line); }
.lp-faq details { border-bottom: 1px solid var(--lp-line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 4px; font-size: 20px; font-weight: 700; color: var(--lp-ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 3px solid var(--lp-acc); border-bottom: 3px solid var(--lp-acc); transform: rotate(45deg); margin-right: 6px; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(-135deg); }
.lp-faq details > div { padding: 0 4px 22px; color: var(--lp-soft); max-width: 66ch; }
.lp-faq details > div p + p { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .lp-faq summary::after { transition: none; } }
.lp-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 22px; font-weight: 750; }
.lp-mail svg { width: 24px; height: 24px; }
.lp-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lp-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--lp-line); background: var(--lp-card); color: var(--lp-ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.lp-toc a:hover { border-color: var(--lp-acc); }

/* Footer: the release's sentence and links, plus the information pages on one row */
body.pg-landing footer.foot { border-top: 1px solid var(--lp-line); }
.lp-foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 16px; margin: 0 0 6px; }
.lp-foot-nav a { color: var(--lp-ink); }
.lp-foot-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.lp-toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.lp-toc a { white-space: nowrap; flex: none; }
.lp-keys { flex-wrap: nowrap; }
.lp-key .lp-short { display: none; }
@media (max-width: 600px) { .lp-key { font-size: 17px; padding: 0 16px; min-height: 48px; } .lp-keys { gap: 10px; } }
@media (max-width: 440px) { .lp-key .lp-long { display: none; } .lp-key .lp-short { display: inline; } }
.lp h2, .lp h3 { border: 0; padding: 0; background: none; }
.lp-note { margin-top: 18px; }
.lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .lp-cards { grid-template-columns: 1fr; } }

/* ── Round 2 (16 Nov 2026, 10:5x UTC): the colour owner's accent (zz-green, Pine), the quarry drawing in the hero with its
   five levels named, the two pictures of the real product side by side, keys of one width, the four header links. ── */
body.pg-landing { --lp-acc: var(--qsg-accent, #164B35); --lp-acc-ink: var(--qsg-on, #FFFFFF); --lp-tint: var(--qsg-wash, #EDF4EF); --lp-dug: #CBE4D4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) body.pg-landing { --lp-acc: var(--qsg-accent, #A8D5BA); --lp-acc-ink: var(--qsg-on, #101812); --lp-tint: var(--qsg-wash, #14251D); --lp-dug: #1F4332; }
}
:root[data-theme=dark] body.pg-landing { --lp-acc: var(--qsg-accent, #A8D5BA); --lp-acc-ink: var(--qsg-on, #101812); --lp-tint: var(--qsg-wash, #14251D); --lp-dug: #1F4332; }

/* Keys: one width, side by side; on a phone two equal halves with the short words */
.lp-keys { display: grid; grid-template-columns: repeat(2, 16rem); gap: 12px; flex-wrap: initial; }
.lp-keys > .lp-key { width: 100%; padding: 0 18px; }
@media (max-width: 600px) { .lp-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What every lesson gives you: one grid, every block on the same edges */
.lp-head p { margin-top: 14px; color: var(--lp-soft); max-width: 62ch; }
.lp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.lp-pair .lp-get { display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-card); padding: 24px; }
.lp-pair .lp-get p { max-width: none; }
.lp-pair .lp-shot { margin-top: auto; }
.lp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.lp-card .lp-ic, .lp-get .lp-ic { margin-bottom: 14px; }
@media (max-width: 960px) { .lp-pair, .lp-cards { grid-template-columns: 1fr; } }

/* Every "more" link sits at the foot of its block, on the same left edge */
.lp-more { margin-top: 20px; }

/* Header links: Courses, About, Blog, OpenQuarry on one row; under 560 px the two in the footer step out */
body.pg-landing .lp-nav { display: flex; flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; }
@media (max-width: 560px) { body.pg-landing .lp-nav a[data-lp-about], body.pg-landing .lp-nav a[data-lp-blog] { display: none; } }

/* Round 2b: body words at 12:1 or more in both looks (#262B33 on #FAF8F6 about 13.4:1; #D3D9E1 on #0C1017 about 13:1) */
body.pg-landing { --lp-soft: #262B33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) body.pg-landing { --lp-soft: #D3D9E1; } }
:root[data-theme=dark] body.pg-landing { --lp-soft: #D3D9E1; }

/* Two-column sections: each column a column of its own, its "more" link on one shared foot line */
.lp-two > div { display: flex; flex-direction: column; align-items: flex-start; }
.lp-two > div > .lp-more { margin-top: auto; padding-top: 20px; }
.lp-two { align-items: stretch; }

/* Header: one even gap between the four links */
body.pg-landing .lp-nav { gap: 22px; }
body.pg-landing .lp-nav > a { margin: 0; padding-left: 0; padding-right: 0; border-left: 0; }

/* The site gives nav links a 44 px minimum width, so short words (About, Blog) carried empty space after them: the gap is the spacing here */
body.pg-landing .lp-nav > a { min-width: 0; }

/* Keys stay on one line at every width (the owner, 17 Nov 2026: "start studying free courses is too long it goes to two lines") */
.lp-key { white-space: nowrap; }
@media (max-width: 480px) {
  .lp-keys { display: flex; flex-wrap: nowrap; gap: 8px; }
  .lp-keys > .lp-key { width: auto; padding: 0 12px; font-size: 16px; min-height: 48px; gap: 6px; }
  .lp-keys > .lp-key svg { display: none; }
  .lp-keys > .lp-key-fill { flex: 1 1 auto; }
  .lp-keys > .lp-key-line { flex: 0 0 auto; }
}

/* The code sample scrolls inside its box; it never widens the page (at 320 px the page was laid out 365 px wide) */
@media (max-width: 960px) { .lp-two { grid-template-columns: minmax(0, 1fr); } }
.lp-two > div { min-width: 0; }
.lp-two > div > .lp-code { align-self: stretch; max-width: 100%; }

/* Two questions under the hero keys (the owner, 18 Nov 2026): one row from 320 px */
.lp-asks { display: flex; flex-wrap: nowrap; gap: 22px; margin-top: 6px; font-size: 16px; font-weight: 700; }
.lp-asks a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: var(--lp-acc); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lp-asks a:hover, .lp-asks a:focus-visible { text-decoration-thickness: 3px; }
.lp-asks .lp-long { display: inline; }
.lp-asks .lp-short { display: none; }
@media (max-width: 420px) { .lp-asks { gap: 16px; font-size: 15px; } .lp-asks .lp-long { display: none; } .lp-asks .lp-short { display: inline; } }

/* ── Round 5 hero (18 Nov 2026, front-door lane): the quarry is dug on arrival, its five benches are the level tabs of one
   lesson, and the open level's ledge runs out of the pit and down into the lesson's heading. Build spec:
   held/front-door-20261118/BUILD-SPEC.md. Motion is transform and opacity (the arrow and the curves draw by dash offset);
   nothing moves the words, the keys or the two questions. ── */
body.pg-landing {
  --lp-rock: #E4DDD1; --lp-rock-2: #D4CBBD; --lp-edge: #5E5950; --lp-bad: #7A2219; --lp-hov: .32;
  --lp-dug-1: #DCEEE3; --lp-dug-2: #CFE7D8; --lp-dug-3: #C3E0CE; --lp-dug-4: #B6DAC4; --lp-dug-5: #A9D4BA;
  --lp-eo: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) body.pg-landing {
    --lp-rock: #1A212C; --lp-rock-2: #232C39; --lp-edge: #8B97A8; --lp-bad: #F4A097; --lp-hov: .07;
    --lp-dug-1: #16291F; --lp-dug-2: #1A3326; --lp-dug-3: #1D3D2D; --lp-dug-4: #214634; --lp-dug-5: #24503C;
  }
}
:root[data-theme=dark] body.pg-landing {
  --lp-rock: #1A212C; --lp-rock-2: #232C39; --lp-edge: #8B97A8; --lp-bad: #F4A097; --lp-hov: .07;
  --lp-dug-1: #16291F; --lp-dug-2: #1A3326; --lp-dug-3: #1D3D2D; --lp-dug-4: #214634; --lp-dug-5: #24503C;
}

/* Layout: one column with the stone as a band edge to edge under the words; from 1100 px the live two columns */
.lp-hero { padding: 48px 0 64px; }
.lp-hero .lp { display: grid; grid-template-columns: minmax(0, 1fr); }
.lp-hero h1 { margin: 0; font-size: 52px; line-height: 1.05; font-weight: 700; max-width: 19.5ch; text-wrap: balance; }
.lp-hero .lp-lead { margin-top: 22px; font-size: 21px; line-height: 1.55; max-width: 44ch; }
.lp-hero .lp-note { margin-top: 18px; }
.lp-stone { margin: 40px -24px 0; padding: 32px 24px 28px; background: var(--lp-rock); }
.lp-quarry { position: relative; margin: 0; max-width: 600px; }
@media (max-width: 600px) {
  .lp-hero { padding: 32px 0 48px; }
  .lp-hero h1 { font-size: 40px; max-width: 13ch; }
  .lp-hero .lp-lead { margin-top: 18px; font-size: 19px; }
  .lp-stone { margin: 32px -16px 0; padding: 24px 16px 22px; }
  .lp-quarry { max-width: 420px; }
}
@media (min-width: 1100px) {
  .lp-hero { padding: 56px 0 72px; }
  .lp-hero .lp { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
  .lp-hero h1 { font-size: 64px; line-height: 1.04; max-width: 13ch; }
  .lp-stone { margin: 10px 0 0; padding: 28px 28px 24px; }
  .lp-quarry { max-width: none; }
}

/* The drawing: the wide one from 601 px, the narrow one on a phone; no words inside either */
.lp-pit-box { position: relative; }
.lp-pit { display: block; width: 100%; height: auto; overflow: visible; }
.lp-pit-sm { display: none; }
@media (max-width: 600px) { .lp-pit-wide { display: none; } .lp-pit-sm { display: block; } }
.lp-pit .face { fill: var(--lp-rock-2); opacity: 0; }
.lp-pit .dug { transform-box: fill-box; transform-origin: 50% 0; }
.lp-pit .dug.v1 { fill: var(--lp-dug-1); } .lp-pit .dug.v2 { fill: var(--lp-dug-2); } .lp-pit .dug.v3 { fill: var(--lp-dug-3); }
.lp-pit .dug.v4 { fill: var(--lp-dug-4); } .lp-pit .dug.v5 { fill: var(--lp-dug-5); }
.lp-pit .edge path { fill: none; stroke: var(--lp-edge); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.lp-pit .chip { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; fill: var(--lp-acc); }
.lp-pit .chip.c2, .lp-pit .chip.c4 { fill: var(--lp-dug-5); stroke: var(--lp-edge); stroke-width: .8; }
.lp-pit .run { fill: none; stroke: var(--lp-acc); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: square; stroke-linejoin: miter; opacity: 0; transition: opacity .2s ease-out .08s; }
.lp-pit .spiral { fill: none; stroke: var(--lp-acc); stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lp-pit-sm .spiral { stroke-width: 2.6; }
.lp-pit .head { fill: var(--lp-acc); }
.lp-pit .block { fill: var(--lp-acc); opacity: 0; }

/* Which level is open: data-lv with the script; the targeted part without it */
.lp-quarry[data-lv="1"] .run.v1, .lp-quarry[data-lv="2"] .run.v2, .lp-quarry[data-lv="3"] .run.v3,
.lp-quarry[data-lv="4"] .run.v4, .lp-quarry[data-lv="5"] .run.v5 { opacity: 1; }
.lp-hero:not(.lp-js) .lp-quarry:has(.lp-panel:target) .run.v1 { opacity: 0; }
.lp-hero:not(.lp-js) .lp-quarry:has(#lp-l1:target) .run.v1, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l2:target) .run.v2,
.lp-hero:not(.lp-js) .lp-quarry:has(#lp-l3:target) .run.v3, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l4:target) .run.v4,
.lp-hero:not(.lp-js) .lp-quarry:has(#lp-l5:target) .run.v5 { opacity: 1; }

/* The benches: one tab laid over each dug level */
.lp-benches { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; --W: 600; --H: 300; --bh: 56; }
.lp-benches li { position: absolute; margin: 0; left: calc(var(--x) / var(--W) * 100%); width: calc(var(--w) / var(--W) * 100%);
  top: calc(var(--y) / var(--H) * 100%); height: calc(var(--bh) / var(--H) * 100%); }
.lp-benches .b1 { --x: 44; --w: 512; --y: 0; } .lp-benches .b2 { --x: 70; --w: 446; --y: 56; } .lp-benches .b3 { --x: 96; --w: 380; --y: 112; }
.lp-benches .b4 { --x: 122; --w: 314; --y: 168; } .lp-benches .b5 { --x: 148; --w: 248; --y: 224; }
@media (max-width: 600px) {
  .lp-benches { --W: 360; --H: 300; --bh: 56; }
  .lp-benches .b1 { --x: 30; --w: 300; --y: 0; } .lp-benches .b2 { --x: 38; --w: 284; --y: 56; } .lp-benches .b3 { --x: 46; --w: 268; --y: 112; }
  .lp-benches .b4 { --x: 54; --w: 252; --y: 168; } .lp-benches .b5 { --x: 62; --w: 236; --y: 224; }
}
.lp a.lp-bench, .lp a.lp-bench:visited { position: relative; display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 10px 0 14px;
  color: var(--lp-ink); text-decoration: none; font-size: 17px; line-height: 1.2; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.lp-bench::before { content: ""; position: absolute; inset: 0; background: #FFFFFF; opacity: 0; transition: opacity .12s ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .lp-bench:hover::before { opacity: var(--lp-hov); } }
.lp-disc { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 15px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease; }
.lp-name { position: relative; font-weight: 400; }
.lp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lp-acc); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
:is(.lp-bench[aria-selected="true"],
  .lp-hero:not(.lp-js) .lp-quarry:not(:has(.lp-panel:target)) .b1 > .lp-bench, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l1:target) .b1 > .lp-bench,
  .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l2:target) .b2 > .lp-bench, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l3:target) .b3 > .lp-bench,
  .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l4:target) .b4 > .lp-bench, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l5:target) .b5 > .lp-bench) .lp-name { font-weight: 700; }
:is(.lp-bench[aria-selected="true"],
  .lp-hero:not(.lp-js) .lp-quarry:not(:has(.lp-panel:target)) .b1 > .lp-bench, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l1:target) .b1 > .lp-bench,
  .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l2:target) .b2 > .lp-bench, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l3:target) .b3 > .lp-bench,
  .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l4:target) .b4 > .lp-bench, .lp-hero:not(.lp-js) .lp-quarry:has(#lp-l5:target) .b5 > .lp-bench) .lp-disc {
  background: var(--lp-acc); color: var(--lp-acc-ink); box-shadow: none; }
.lp a.lp-bench:focus-visible { outline: 3px solid var(--lp-acc); outline-offset: 2px; border-radius: 0; z-index: 2; }
.lp-review { position: absolute; left: 77%; top: 60%; font-size: 16px; line-height: 1.2; color: var(--lp-soft); pointer-events: none; }
@media (max-width: 600px) {
  .lp a.lp-bench, .lp a.lp-bench:visited { gap: 6px; padding: 0 4px 0 8px; font-size: 16px; }
  .lp-review { display: none; }
}

/* The lesson under the pit: no frame; the line's last turn meets the first word of the heading */
.lp-lesson { position: relative; padding-left: calc(14 / 600 * 100% + 18px); }
.lp-lesson::before { content: ""; position: absolute; top: 0; left: calc(14 / 600 * 100% - 1.5px); width: 13.5px; height: 23.5px;
  border-left: 3px solid var(--lp-acc); border-bottom: 3px solid var(--lp-acc); pointer-events: none; }
.lp-quarry figcaption { margin: 0 0 18px; padding-left: calc(14 / 600 * 100% + 18px); font-size: 16px; line-height: 1.45; color: var(--lp-soft); }
@media (max-width: 600px) {
  .lp-lesson, .lp-quarry figcaption { padding-left: calc(10 / 360 * 100% + 16px); }
  .lp-lesson::before { left: calc(10 / 360 * 100% - 1.5px); width: 11.5px; }
}
.lp-tour-key { display: none; }
.lp-js .lp-tour-key { position: absolute; top: 0; right: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 2px solid var(--lp-edge); background: var(--lp-rock); color: var(--lp-acc); cursor: pointer; transition: transform .16s var(--lp-eo); }
.lp-js .lp-tour-key:active { transform: scale(.95); }
.lp-tour-key:focus-visible { outline: 3px solid var(--lp-acc); outline-offset: 2px; }
.lp-tour-key svg { width: 18px; height: 18px; fill: currentColor; }
.lp-tour-key svg > * { display: none; }
.lp-tour-key[data-face="pause"] .f-pause, .lp-tour-key[data-face="play"] .f-play, .lp-tour-key[data-face="again"] .f-again { display: inline; }
.lp-panels { display: grid; }
.lp-panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.lp-hero:not(.lp-js) .lp-panel:first-child { visibility: visible; }
.lp-hero:not(.lp-js) .lp-panels:has(.lp-panel:target) .lp-panel { visibility: hidden; }
.lp-hero:not(.lp-js) .lp-panels:has(.lp-panel:target) .lp-panel:target { visibility: visible; }
.lp-js .lp-panel { opacity: 0; transform: translateY(10px); transition: opacity .16s ease-out, transform 0s linear .16s, visibility 0s linear .16s; }
.lp-js .lp-panel.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity .28s var(--lp-eo) .1s, transform .32s var(--lp-eo) .1s, visibility 0s; }
.lp-instant .lp-panel, .lp-instant .lp-pit .run { transition: none !important; }
.lp-quarry .lp-lh { margin: 0; padding: 4px 56px 0 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; color: var(--lp-ink); }
.lp-quarry .lp-sub { margin-top: 2px; font-size: 16px; line-height: 1.4; color: var(--lp-soft); }
.lp-quarry .lp-say { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--lp-ink); max-width: 38em; }
.lp-quarry #lp-l1 .lp-say { font-size: 20px; }
.lp-quarry .lp-q { margin-top: 14px; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--lp-ink); }
.lp-quarry .lp-read, .lp-quarry .lp-read:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px;
  font-size: 16px; font-weight: 700; color: var(--lp-acc); text-decoration: none; }
.lp-quarry .lp-read:hover, .lp-quarry .lp-read:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lp-read svg { width: 18px; height: 18px; flex: none; transition: transform .16s var(--lp-eo); }
@media (hover: hover) and (pointer: fine) { .lp-read:hover svg { transform: translateX(3px); } }
@media (max-width: 600px) {
  .lp-quarry .lp-lh { padding-top: 6px; font-size: 24px; line-height: 32px; }
  .lp-quarry #lp-l1 .lp-say { font-size: 19px; }
}

/* Level 1: a ball along a dotted arch; the arch turns over into a cup and its lowest point is the vertex */
.lp-l1d { display: block; width: 100%; max-width: 300px; height: auto; margin-top: 14px; overflow: visible; }
.lp-l1d .arch { fill: none; stroke: var(--lp-edge); stroke-width: 2.6; stroke-dasharray: .1 8; stroke-linecap: round; }
.lp-l1d .ball { fill: var(--lp-acc); opacity: 0; }
.lp-l1d .flip { fill: none; stroke: var(--lp-acc); stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: 80px 75px; transform: translateX(140px) scaleY(-1); }
.lp-l1d .vxd { fill: var(--lp-acc); transform-box: fill-box; transform-origin: 50% 50%; }
.lp-l1d .vxl, .lp-l1d .foldl { fill: var(--lp-ink); font: 400 17px "Hanken Grotesk", system-ui, sans-serif; }
.lp-l1d .foldl { fill: var(--lp-soft); }
.lp-l1d .fold { fill: none; stroke: var(--lp-acc); stroke-width: 1.8; stroke-dasharray: 5 5; }

/* Levels 2 and 5: the graphs (labels 14 units: 15 px or more at every width they are drawn) */
.lp-g { display: block; width: 100%; max-width: 300px; height: auto; overflow: visible; }
.lp-g .ax path { fill: none; stroke: var(--lp-edge); stroke-width: 1.5; }
.lp-g .gd path { fill: none; stroke: var(--lp-edge); stroke-width: 1.3; stroke-dasharray: 1 5; stroke-linecap: round; }
.lp-g .sym { fill: none; stroke: var(--lp-acc); stroke-width: 1.6; stroke-dasharray: 5 5; }
.lp-g .cv { fill: none; stroke: var(--lp-acc); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lp-g .pts circle { fill: var(--lp-rock); stroke: var(--lp-acc); stroke-width: 2.5; transform-box: fill-box; transform-origin: 50% 50%; }
.lp-g .vx { fill: var(--lp-acc); transform-box: fill-box; transform-origin: 50% 50%; }
.lp-g .vx-open { fill: var(--lp-rock); stroke: var(--lp-acc); stroke-width: 2.5; }
.lp-g text { font: 400 14px "Hanken Grotesk", system-ui, sans-serif; fill: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-g .l-gd { fill: var(--lp-soft); }
.lp-quarry .lp-f { font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--lp-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-l2 { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 20px; align-items: center; margin-top: 10px; }
.lp-l2 .lp-g2 { grid-column: 2; grid-row: 1; }
.lp-l2 .lp-f { grid-column: 1; grid-row: 1; }
.lp-l2 .lp-rule { grid-column: 1 / -1; margin-top: 12px; }
.lp-l5 { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 20px; align-items: start; }
.lp-l5 .lp-g5 { margin-top: 18px; }
.lp-quarry .lp-q5 { margin-top: 12px; }
.lp-quarry .lp-m { white-space: nowrap; }
.lp-a5 { list-style: none; margin: 8px 0 0; padding: 0; }
.lp-a5 li { margin-top: 6px; font-size: 19px; line-height: 1.45; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .lp-l2, .lp-l5 { grid-template-columns: minmax(0, 1fr); }
  .lp-l2 .lp-g2 { grid-column: 1; grid-row: 2; margin-top: 12px; }
  .lp-l2 .lp-rule { grid-row: 3; }
  .lp-l5 .lp-g5 { margin-top: 14px; max-width: 220px; }
  .lp-g5 text { font-size: 17px; }
  .lp-quarry .lp-q5 { font-size: 18px; }
}

/* Level 3: the steps, the newest marked */
.lp-wk { list-style: none; margin: 10px 0 0; padding: 0; }
.lp-wk li { position: relative; margin-top: 6px; padding-left: 16px; font-size: 19px; line-height: 1.5; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-wk li::before { content: ""; position: absolute; left: 0; top: .15em; width: 3px; height: 1.2em; background: var(--lp-acc); opacity: 0; }
.lp-wk li:last-child::before { opacity: 1; }

/* Level 4: four rows, answered in place */
.lp-quarry .lp-choose { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--lp-soft); }
.lp-opts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.lp-opts li { margin: 0; border-top: 1px solid var(--lp-edge); }
.lp-opts li:nth-last-child(-n+2) { border-bottom: 1px solid var(--lp-edge); }
.lp-opts li, .lp-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 19px; color: var(--lp-ink); }
.lp-opt { width: 100%; margin: 0; padding: 0 2px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lp-opt:focus-visible { outline: 3px solid var(--lp-acc); outline-offset: 2px; }
.lp-ol { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--lp-edge);
  font-size: 15px; font-weight: 700; line-height: 1; transition: transform .16s var(--lp-eo), background-color .2s ease, color .2s ease; }
.lp-ot { font-variant-numeric: tabular-nums; }
.lp-opt:active .lp-ol { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .lp-opt:hover .lp-ol { box-shadow: inset 0 0 0 2px var(--lp-acc); } }
.lp-vd { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.lp-vd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-opts .is-wrong .lp-ol { background: var(--lp-bad); color: var(--lp-bg); box-shadow: none; }
.lp-opts .is-wrong .lp-vd { color: var(--lp-bad); }
.lp-opts .is-right .lp-ol { background: var(--lp-acc); color: var(--lp-acc-ink); box-shadow: none; }
.lp-opts .is-right .lp-vd { color: var(--lp-acc); }
.lp-quarry .lp-why4 { display: grid; margin-top: 12px; font-size: 19px; line-height: 1.45; color: var(--lp-ink); }
.lp-why4 > span { grid-area: 1 / 1; }
.lp-why4 .lp-rsn, .lp-why4 .lp-no { visibility: hidden; }
.lp-why4 .lp-rsn b { color: var(--lp-acc); }
.lp-quarry .lp-why4 .lp-no { align-self: start; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--lp-bad); }
.lp-js .is-missed:not(.is-solved) .lp-why4 .lp-no { visibility: visible; }
.lp-js .lp-why4 .lp-ans { visibility: hidden; }
.lp-js .is-solved .lp-why4 .lp-rsn { visibility: visible; animation: lp-rise .24s var(--lp-eo) both; }
.lp-quarry .lp-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The opening (CSS alone, so it plays with no script too): five levels dug from the top, then the arrow climbs */
.lp-pit .dug { animation: lp-dig .42s var(--lp-eo) both; }
.lp-pit .edge { animation: lp-in .42s ease-out both; }
.lp-pit .chip { animation: lp-chip1 .56s cubic-bezier(.2, .7, .3, 1) both; }
.lp-pit .chip.c2 { animation-name: lp-chip2; } .lp-pit .chip.c3 { animation-name: lp-chip3; } .lp-pit .chip.c4 { animation-name: lp-chip4; }
.lp-pit .v1, .lp-pit .v1 > .chip { animation-delay: .15s; } .lp-pit .v2, .lp-pit .v2 > .chip { animation-delay: .45s; }
.lp-pit .v3, .lp-pit .v3 > .chip { animation-delay: .75s; } .lp-pit .v4, .lp-pit .v4 > .chip { animation-delay: 1.05s; }
.lp-pit .v5, .lp-pit .v5 > .chip { animation-delay: 1.35s; }
.lp-benches li { animation: lp-tab .24s var(--lp-eo) both; }
.lp-benches .b1 { animation-delay: .31s; } .lp-benches .b2 { animation-delay: .61s; } .lp-benches .b3 { animation-delay: .91s; }
.lp-benches .b4 { animation-delay: 1.21s; } .lp-benches .b5 { animation-delay: 1.51s; }
.lp-pit .face { animation: lp-face .3s ease-out 1.5s both; }
.lp-pit .runs, .lp-lesson::before { animation: lp-in .24s ease-out 1.7s both; }
.lp-pit .spiral { animation: lp-draw .9s cubic-bezier(.65, 0, .35, 1) 1.9s both; }
.lp-pit .head, .lp-review { animation: lp-head .2s ease-out 2.65s both; }
.lp-l1d .ball { animation: lp-ball .9s linear 2s both; }
.lp-l1d .flip { animation: lp-flip .7s cubic-bezier(.65, 0, .35, 1) 2.9s both; }
.lp-l1d .vxd { animation: lp-pop .2s var(--lp-eo) 3.6s both; }
.lp-l1d .vxl { animation: lp-in .2s ease-out 3.65s both; }
.lp-l1d .fold, .lp-l1d .foldl { animation: lp-in .3s ease-out 3.85s both; }

/* The tour (script): each level's own picture plays when the tour opens it */
.lp-panel.is-tour .lp-g .ax, .lp-panel.is-tour .lp-g .gd { animation: lp-in .3s ease-out .15s both; }
.lp-panel.is-tour .lp-g .cv { animation: lp-draw .6s cubic-bezier(.65, 0, .35, 1) .2s both; }
.lp-panel.is-tour .lp-g .pts circle { animation: lp-pop .18s var(--lp-eo) .6s both; }
.lp-panel.is-tour .lp-g .vx { animation: lp-pop .18s var(--lp-eo) .8s both; }
.lp-panel.is-tour .lp-g .sym, .lp-panel.is-tour .lp-g .lbl { animation: lp-in .24s ease-out .9s both; }
.lp-panel.is-tour .lp-wk li, .lp-panel.is-tour .lp-a5 li { animation: lp-rise .24s var(--lp-eo) both; }
.lp-panel.is-tour .lp-wk li:nth-child(1) { animation-delay: .6s; } .lp-panel.is-tour .lp-wk li:nth-child(2) { animation-delay: 1.6s; }
.lp-panel.is-tour .lp-wk li:nth-child(3) { animation-delay: 2.6s; } .lp-panel.is-tour .lp-wk li:nth-child(4) { animation-delay: 3.6s; }
.lp-panel.is-tour .lp-a5 li:nth-child(1) { animation-delay: 1.6s; } .lp-panel.is-tour .lp-a5 li:nth-child(2) { animation-delay: 2.6s; }
.lp-panel.is-tour .lp-a5 li:nth-child(3) { animation-delay: 3.6s; }
.lp-panel.is-tour .lp-dc { animation: lp-rise .3s var(--lp-eo) 4.6s both; }
.lp-panel.is-tour .lp-wk li::before { animation: lp-m1 4s linear both; }
.lp-panel.is-tour .lp-wk li:nth-child(2)::before { animation-name: lp-m2; } .lp-panel.is-tour .lp-wk li:nth-child(3)::before { animation-name: lp-m3; }
.lp-panel.is-tour .lp-wk li:nth-child(4)::before { animation-name: lp-m4; }
.lp-hold .lp-panel.is-tour *, .lp-hold .lp-panel.is-tour *::before { animation-play-state: paused; }
.lp-hero.lp-off *, .lp-hero.lp-off *::before { animation-play-state: paused !important; }

@keyframes lp-dig { from { transform: scaleY(0); } }
@keyframes lp-in { from { opacity: 0; } }
@keyframes lp-face { from { opacity: .55; } to { opacity: 0; } }
@keyframes lp-tab { from { opacity: 0; transform: translateY(6px); } }
@keyframes lp-head { from { opacity: 0; transform: translateY(4px); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes lp-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes lp-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes lp-chip1 { 0% { opacity: 0; } 1% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(-36px, -28px) rotate(-60deg); } }
@keyframes lp-chip2 { 0% { opacity: 0; } 1% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(-12px, -40px) rotate(30deg); } }
@keyframes lp-chip3 { 0% { opacity: 0; } 1% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(14px, -34px) rotate(-30deg); } }
@keyframes lp-chip4 { 0% { opacity: 0; } 1% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(34px, -22px) rotate(80deg); } }
@keyframes lp-ball { 0% { opacity: 1; transform: none; } 20% { transform: translate(24px, -44.8px); } 40% { transform: translate(48px, -67.2px); }
  50% { transform: translate(60px, -70px); } 60% { transform: translate(72px, -67.2px); } 80% { opacity: 1; transform: translate(96px, -44.8px); }
  100% { opacity: 0; transform: translate(120px, 0); } }
@keyframes lp-flip { 0% { opacity: 0; transform: none; } 18% { opacity: 1; transform: none; } 100% { opacity: 1; transform: translateX(140px) scaleY(-1); } }
@keyframes lp-m1 { 0%, 15% { opacity: 0; } 21%, 40% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes lp-m2 { 0%, 40% { opacity: 0; } 46%, 65% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes lp-m3 { 0%, 65% { opacity: 0; } 71%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes lp-m4 { 0%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }

/* Reduced motion: the finished quarry and level 1 at once; the tour waits for its key and switches without fades */
@media (prefers-reduced-motion: reduce) {
  .lp-hero *, .lp-hero *::before { animation: none !important; }
  .lp-hero .lp-panel, .lp-hero .lp-pit .run, .lp-bench::before, .lp-read svg { transition: none !important; }
  .lp-bar { visibility: hidden; }
}

/* Round 5b (18 Nov 2026): the two questions at 16 px at every width (the pixel measure read the 15 px phone size at 14.6) */
@media (max-width: 420px) { .lp-asks { font-size: 16px; } }

/* Round 5c (18 Nov 2026, after the cold review of the live build): level 3's double-check on a number line; the full
   first question from 375 px (at 16 px it fits one row there) */
.lp-dc { margin-top: 14px; }
.lp-quarry .lp-dct { font-size: 16px; line-height: 1.4; color: var(--lp-soft); }
.lp-nl { display: block; width: 100%; max-width: 300px; height: auto; margin-top: 6px; overflow: visible; }
.lp-nl .nl-ax, .lp-nl .nl-tk path { fill: none; stroke: var(--lp-edge); stroke-width: 1.6; }
.lp-nl .nl-arc { fill: none; stroke: var(--lp-acc); stroke-width: 2.2; stroke-linecap: round; }
.lp-nl .nl-p { fill: var(--lp-rock); stroke: var(--lp-acc); stroke-width: 2.5; }
.lp-nl .nl-m { fill: var(--lp-acc); }
.lp-nl text { font: 400 17px "Hanken Grotesk", system-ui, sans-serif; fill: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-nl .nl-st { fill: var(--lp-soft); }
.lp-nl .nl-nm { font-weight: 700; }
@media (min-width: 375px) and (max-width: 420px) { .lp-asks .lp-long { display: inline; } .lp-asks .lp-short { display: none; } }

/* Round 5d (18 Nov 2026, after the cold refuter): plain numerals on the benches, one filled disc for the open level; between
   1100 and 1279 px the drawing is narrowest (about 482 px), so the names step down to 16 px to keep level 5 inside its bench */
@media (min-width: 1100px) and (max-width: 1279px) { .lp a.lp-bench, .lp a.lp-bench:visited { font-size: 16px; gap: 8px; padding-left: 10px; } }

/* Round 6 (18 Nov 2026, the fixer after QA as first-time visitors). 1: below 1100 px the stone ends under the open level
   (its colour is a layer whose height the script sets; the layout keeps the reserved height, so the tour moves nothing);
   after a visitor's own press the hidden levels leave the layout and the lesson takes its own height. 2: the wrong-answer
   line and "Read this part" clear their floors. 3: the two hero keys share the row equally wherever both fit. 4: the
   caption and the free line wrap evenly. 5: level 5's paragraph runs the full width with the graph beside the question. */
@media (max-width: 1099px) {
  .lp-hero.lp-js .lp-stone { position: relative; isolation: isolate; background: none; }
  .lp-hero.lp-js .lp-stone::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0;
    height: var(--lp-stone-h, 100%); background: var(--lp-rock); pointer-events: none; }
  .lp-hero.lp-js .lp-stone.lp-sized::before { transition: height .28s var(--lp-eo); }
  .lp-hero.lp-own .lp-panel:not(.is-on) { display: none; }
}
.lp-instant .lp-stone::before { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .lp-hero .lp-stone::before { transition: none !important; } }
body.pg-landing { --lp-bad: #651A13; --lp-acc-txt: #0F3A27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) body.pg-landing { --lp-bad: #F9BDB5; --lp-acc-txt: var(--lp-acc); } }
:root[data-theme=dark] body.pg-landing { --lp-bad: #F9BDB5; --lp-acc-txt: var(--lp-acc); }
.lp-quarry .lp-why4 .lp-no { font-size: 17px; line-height: 1.45; }
.lp-quarry .lp-read, .lp-quarry .lp-read:visited { color: var(--lp-acc-txt, var(--lp-acc)); }
@media (max-width: 480px) {
  .lp-hero .lp-keys { display: grid; grid-template-columns: repeat(2, minmax(max-content, 1fr)); gap: 8px; }
  .lp-hero .lp-keys > .lp-key { width: 100%; }
}
.lp-quarry figcaption, .lp-hero .lp-note { text-wrap: balance; }
@media (min-width: 601px) {
  .lp-l5 { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .lp-l5 > .lp-say { grid-column: 1 / -1; grid-row: 1; }
  .lp-l5 > .lp-g5 { grid-column: 2; grid-row: 2; margin-top: 14px; }
  .lp-l5 > .lp-q5 { grid-column: 1; grid-row: 2; }
  .lp-l5 > .lp-a5 { grid-column: 1 / -1; grid-row: 3; }
}

/* Round 7 (19 Nov 2026, the fixer after the restart). 1: the wrong-answer line at 12:1 or more in both looks (light
   12.5:1, dark 12.7:1 on the stone). 2: below 1100 px level 4 holds no empty slot before an answer (the script resizes the
   stone after one). 3: the two hero keys as near equal as one row allows on the narrowest phones. 4: from 601 px level 5
   reads in rows: the sentence, the question, then the answers beside the graph. 5: a level 1 opened again by a press plays
   its drawing at once instead of after the opening's two seconds. */
body.pg-landing { --lp-bad: #3B0D0A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) body.pg-landing { --lp-bad: #FFDCD6; } }
:root[data-theme=dark] body.pg-landing { --lp-bad: #FFDCD6; }
.lp-js .lp-why4 .lp-ans { display: none; }
@media (max-width: 1099px) {
  .lp-hero.lp-js #lp-l4:not(.is-missed):not(.is-solved) .lp-why4 { display: none; }
}
@media (max-width: 374px) { .lp-hero .lp-keys > .lp-key { padding: 0 8px; } }
@media (max-width: 340px) { .lp-hero .lp-keys > .lp-key { padding: 0 6px; font-size: 15px; } }
@media (min-width: 601px) {
  .lp-l5 { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 24px; }
  .lp-l5 > .lp-say { grid-column: 1 / -1; grid-row: 1; }
  .lp-l5 > .lp-q5 { grid-column: 1 / -1; grid-row: 2; }
  .lp-l5 > .lp-a5 { grid-column: 1; grid-row: 3; align-self: center; margin-top: 10px; }
  .lp-l5 > .lp-g5 { grid-column: 2; grid-row: 3; margin-top: 14px; }
  .lp-g5 text { font-size: 17px; }
}
.lp-own .lp-l1d .ball { animation-delay: .2s; }
.lp-own .lp-l1d .flip { animation-delay: 1.1s; }
.lp-own .lp-l1d .vxd { animation-delay: 1.8s; }
.lp-own .lp-l1d .vxl { animation-delay: 1.85s; }
.lp-own .lp-l1d .fold, .lp-own .lp-l1d .foldl { animation-delay: 2.05s; }
/* Round 7b: no lone last word in the lead or the lesson sentences at the narrow widths (320 px: "asks."; 360 px: "exactly.") */
.lp-hero .lp-lead, .lp-quarry .lp-say, .lp-quarry .lp-q { text-wrap: pretty; }
