:root {
  --ink-deep: #14110D;
  --ink-600: #3B342C;
  --ink-700: #2B251F;
  --ink-100: #E8E1D3;
  --ink-rgb: 30 26 21;
  --paper-rgb: 246 242 233;
  --paper-raised-rgb: 255 253 248;
  --parchment: #EFE2C4;
  --parchment-edge: #D6C49E;
  --correct: #2E6A3E;
  --defeat: #B8382B;
  --review-soft: #F5EAD2;
  --flame: #C54E30;
  --flame-glow-rgb: 235 158 93;
  --gilt-leaf: #EBC65A;
  --on-dark: #F3E9D6;
  --on-dark-soft: #CDBEA3;
  --ground-science: #91A274;
  --ground-history: #A68659;
}
.pg-history { --pg-100: #E5D9C0; --pg-200: #D5C29C; --pg-300: #C4A973; --pg-400: #B18D47; --pg: #A0741E; --pg-600: #8D671D; --pg-700: #79591B; --pg-800: #664C1A; --pg-900: #523E19; }
.pg-geography { --pg-100: #CED1DA; --pg-200: #AAB4CD; --pg-300: #8393BE; --pg-400: #5770AD; --pg: #2F4F9E; --pg-600: #2C4789; --pg-700: #2A3F75; --pg-800: #273760; --pg-900: #252F4C; }
.pg-science { --pg-100: #CED9CF; --pg-200: #AAC2B7; --pg-300: #83A99D; --pg-400: #578D80; --pg: #2F7466; --pg-600: #2C675A; --pg-700: #2A594E; --pg-800: #274C42; --pg-900: #253E35; }
.pg-arts_literature { --pg-100: #DACDD3; --pg-200: #C2ACC0; --pg-300: #A687AA; --pg-400: #885F93; --pg: #6C3A7D; --pg-600: #60356D; --pg-700: #55305E; --pg-800: #492C4E; --pg-900: #3D273F; }
.pg-sport { --pg-100: #ECD0C3; --pg-200: #E3B1A2; --pg-300: #D98F7C; --pg-400: #CE6953; --pg: #C4472D; --pg-600: #AB4029; --pg-700: #923A26; --pg-800: #793322; --pg-900: #602C1F; }
.pg-entertainment { --pg-100: #EBCFD1; --pg-200: #E1B0BB; --pg-300: #D78EA2; --pg-400: #CB6887; --pg: #C0456F; --pg-600: #A83F62; --pg-700: #8F3854; --pg-800: #773247; --pg-900: #5F2B39; }
.wax.tn-play { --wx-face: var(--pg); --wx-side: var(--pg-700); --wx-line: var(--pg-900); --wx-ring: var(--pg-800); --wx-ring-o: 0.45; --wx-wash: var(--pg-400); --wx-glyph: var(--paper-raised); }
.wax.tn-done { --wx-face: var(--pg-700); --wx-side: var(--pg-800); --wx-line: var(--pg-900); --wx-ring: var(--pg-900); --wx-ring-o: 0.4; --wx-wash: var(--pg-600); --wx-glyph: var(--paper-raised); }
.wax.tn-ahead { --wx-face: var(--pg-200); --wx-side: var(--pg-300); --wx-line: var(--pg-700); --wx-ring: var(--pg-400); --wx-ring-o: 0.6; --wx-wash: var(--pg-100); --wx-glyph: var(--pg-700); }
.hs-phone-0 { left: 323.5px; top: 319.2px; --n: 0; }
.hs-phone-1 { left: 199.0px; top: 336.5px; --n: 1; }
.hs-phone-2 { left: 76.0px; top: 328.9px; --n: 2; }
.hs-phone-3 { left: 173.2px; top: 722.7px; --n: 3; }
.hs-desk-0 { left: 1212.7px; top: 415.2px; --n: 0; }
.hs-desk-1 { left: 1079.4px; top: 473.6px; --n: 1; }
.hs-desk-2 { left: 929.0px; top: 488.2px; --n: 2; }
.hs-desk-3 { left: 790.7px; top: 478.7px; --n: 3; }
.hs-desk-4 { left: 658.7px; top: 694.6px; --n: 4; }
.isle-piece-0 { left: 5%; top: 9%; width: 10.5%; --d: 0.1s; --t: 5.2s; --fd: 0s; --r: -8deg; }
.isle-piece-1 { left: 80%; top: 5%; width: 14%; --d: 0.15s; --t: 4.6s; --fd: -1s; --r: 6deg; }
.isle-piece-2 { left: 87%; top: 40%; width: 9%; --d: 0.2s; --t: 6.8s; --fd: -2s; --r: 8deg; }
.isle-piece-3 { left: 3%; top: 60%; width: 11.5%; --d: 0.25s; --t: 6.2s; --fd: -3s; --r: -5deg; }
.isle-piece-4 { left: 77%; top: 71%; width: 7%; --d: 0.3s; --t: 5.6s; --fd: -1.5s; --r: 10deg; }
.isle-piece-5 { left: 0%; top: 34%; width: 11.5%; --d: 0.35s; --t: 5.9s; --fd: -2.5s; --r: 5deg; }
.sc-path .sc-mon { left: 1.5em; top: 1.5em; width: 22em; }
.sc-path .slot-0 { left: 35.27em; top: 8.26em; }
.sc-path .bubble[data-at="0"] { left: 20.74em; top: 4.86em; }
.sc-path .slot-1 { left: 31.08em; top: 21.03em; }
.sc-path .bubble[data-at="1"] { left: 18.28em; top: 12.37em; }
.sc-path .slot-2 { left: 20.49em; top: 30.23em; }
.sc-path .bubble[data-at="2"] { left: 12.05em; top: 17.78em; }
.sc-path .slot-3 { left: 19.85em; top: 39.06em; }
.sc-path .bubble[data-at="3"] { left: 11.67em; top: 22.97em; }
.sc-path .slot-4 { left: 35.22em; top: 42.89em; }
.sc-path .bubble[data-at="4"] { left: 20.72em; top: 25.23em; }
.sc-rose .rose { left: 6em; top: 4em; width: 38em; height: 38em; }
.sc-rose .pt-0 { left: 25em; top: 7.04em; }
.sc-rose .pt-1 { left: 38.82em; top: 15.02em; }
.sc-rose .pt-2 { left: 38.82em; top: 30.98em; }
.sc-rose .pt-3 { left: 25em; top: 38.96em; }
.sc-rose .pt-4 { left: 11.18em; top: 30.98em; }
.sc-rose .pt-5 { left: 11.18em; top: 15.02em; }
.sc-rose .pt { width: 12.16em; margin: -3.04em 0 0 -6.08em; }
.sc-rose .pt .emb { width: 6.08em; height: 6.08em; }
.sc-rose .pt img { width: 4.86em; height: 4.86em; }
/* The wax seals of the path, drawn by src/home-draw.mjs (`sealKit`): their
   bodies written once in a page, each seal naming one, its colours from the
   classes of its category (`pg-<category>`) and of its state (`tn-<tone>`).
   Shared by the home (/home.css) and the small quiz of the subject pages
   (/page-quiz.css): build.mjs puts this file in both. */

/* The bodies, written once: they take no room in the page. */
.wax-defs {
  position: absolute;
}
.wax {
  display: block;
  overflow: visible;
}
.wx-far {
  fill: var(--ink);
  fill-opacity: 0.06;
}
.wx-near {
  fill: var(--ink);
  fill-opacity: 0.12;
}
.wx-side {
  fill: var(--wx-side);
  stroke: var(--wx-line);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.wx-hatch {
  fill: none;
  stroke: var(--wx-line);
  stroke-width: 0.7;
  stroke-opacity: 0.45;
  stroke-linecap: round;
}
.wx-face {
  fill: var(--wx-face);
}
.wx-wash {
  fill: var(--wx-wash);
  fill-opacity: 0.5;
}
.wx-ring {
  fill: none;
  stroke: var(--wx-ring);
  stroke-width: 1.2;
  stroke-opacity: var(--wx-ring-o);
}
.wx-edge {
  fill: none;
  stroke: var(--wx-line);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.wx-check {
  fill: none;
  stroke: var(--wx-glyph);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wx-glyph {
  fill: var(--wx-glyph);
  font-family: var(--serif);
  font-weight: 600;
  text-anchor: middle;
}

/* The home page of masteries.app (src/home.mjs): a sales pitch in blocks, in
   the app's looks — paper, ink, the painted pieces of the path. The colours
   and the computed places above this line are written by build.mjs
   (`homeCss`): never a colour by hand here, a token or a step of a
   category's ramp (`--pg-…`, given by a `pg-<category>` class).

   A phone first; a computer from 1024 px. Nothing in the HTML carries a
   `style` attribute (the site's policy refuses one): a place is a class.

   What moves:
   - the first screen and the strip of themes, in CSS alone;
   - the scenes, while they are on screen: the page's script (/home/home.js)
     marks <html> with `moves`, then each scene as it is seen. Without the
     script every scene shows its finished picture, still;
   - nothing at all when less motion is asked (the last block of this file). */

.page-landing {
  --g-paper: url("/home/paper.webp");
  --g-ground: url("/home/ground-science.webp");
  --g-sand: url("/home/road-sand.webp");
  --g-grass: url("/home/ground-history.webp");
  --content: 1120px;
  --side: 16px;
  /* A plain block: the header is laid over the first screen from where it
     stands in the page, under the install banner. */
  display: block;
  position: relative;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper) var(--g-paper) 0 0 / 300px;
}

.page-landing main {
  max-width: none;
  padding: 0;
}

.page-landing img {
  max-width: none;
}

.page-landing h1,
.page-landing h2,
.page-landing h3 {
  font-family: var(--serif);
  font-weight: 600;
}

@media (max-width: 1023.98px) {
  .on-desk {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .page-landing {
    --side: 80px;
  }
  .on-phone {
    display: none !important;
  }
}

/* The wax seals: src/wax.css, put in this sheet by build.mjs. */

/* ---------- The road ---------- */

.road path {
  fill: none;
}
.road-edge {
  stroke: var(--ink);
  stroke-opacity: 0.2;
}

/* ---------- The install banner of a phone ---------- */

.app-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 4px;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1023.98px) {
  html[data-store] .app-banner {
    display: flex;
  }
}
html[data-store="play"] .ab-appstore,
html[data-store="appstore"] .ab-play {
  display: none;
}
.ab-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
}
.ab-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.app-banner img {
  flex: none;
  width: 40px;
  height: auto;
}
.ab-text {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.ab-text b {
  display: block;
  font: 600 15px/1.25 var(--serif);
}
.ab-text span {
  display: block;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ab-go {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-raised);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink-deep);
}

/* ---------- The header, laid on the first screen ---------- */

.landing-header {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--side);
  font-family: var(--sans);
}
/* The capsules of the header. The choice of language wears one on its inner
   element: its button itself may carry no filter (src/site.css). */
.lh-brand,
.lh-nav,
.landing-header .lm-pill {
  background: rgb(var(--paper-rgb) / 0.82);
  border: 1px solid rgb(var(--paper-raised-rgb) / 0.6);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  text-decoration: none;
}
.lh-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lh-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 16px 5px 6px;
  font: 600 20px/1 var(--serif);
}
.lh-brand img {
  width: 34px;
  height: auto;
}
.lh-nav,
.lh-cta {
  display: none;
}

@media (min-width: 1024px) {
  .landing-header {
    padding: 20px max(24px, calc(50% - 568px));
  }
  .lh-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 46px;
    padding: 0 20px;
    font: 500 15px/1 var(--sans);
  }
  .lh-nav a {
    color: var(--ink);
    text-decoration: none;
  }
  .lh-nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
  }
  .lh-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper-raised);
    font: 600 15px/1 var(--sans);
    text-decoration: none;
    box-shadow: 0 3px 0 var(--ink-deep);
  }
  .lh-cta:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--ink-deep);
  }
}

/* Our pages, the button left of the language's (src/home.mjs, `pagesMenu`):
   the pill of the emblems, set apart from the rest of the line by its ink
   edge and its lip. Open, its own frame grows down: the panel is laid in the
   right part of the header (.lh-side), from the button's left edge (set by
   the page's script on a computer, the side's own left on a phone, where the
   button comes first) to its right edge, and the button stays where it
   stood, on the panel's top line. */
.lh-side {
  position: relative;
}
.lh-pages > summary {
  list-style: none;
}
.lh-pages > summary::-webkit-details-marker {
  display: none;
}
.lp-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px 0 4px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-raised);
  box-shadow: 0 3px 0 var(--line-strong);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}
.lp-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.lp-stack {
  display: inline-flex;
}
.lp-stack > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -8px;
  border: 2px solid var(--paper-raised);
  border-radius: 50%;
  background: var(--pg-200);
}
.lp-stack > span:last-child {
  margin-right: 2px;
}
.lp-stack img {
  width: 20px;
  height: 20px;
}
.lp-chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-panel {
  display: none;
}
.lh-pages[open] .lp-button {
  border-color: transparent;
  background: none;
  box-shadow: none;
}
.lh-pages[open] .lp-chevron {
  transform: rotate(180deg);
}
.lh-pages[open] .lp-panel {
  position: absolute;
  z-index: 3;
  top: 0;
  left: var(--lp-left, 0px);
  right: 0;
  display: block;
  padding: 46px 8px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: var(--paper-raised);
  box-shadow:
    0 3px 0 var(--line-strong),
    0 14px 30px rgb(var(--ink-rgb) / 0.14);
}
.lp-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-panel li {
  border-top: 1px solid var(--line);
}
.lp-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px;
  color: var(--ink);
  text-decoration: none;
}
.lp-panel a:hover b {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.lp-disc {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pg-200);
}
.lp-disc img {
  width: 26px;
  height: 26px;
}
.lp-words {
  display: grid;
  flex: 1;
  min-width: 0;
}
.lp-words b {
  font: 600 15.5px/1.2 var(--serif);
  white-space: nowrap;
}
.lp-words span {
  font: 400 12.5px/1.3 var(--sans);
  color: var(--ink-soft);
}
.lp-arrow {
  display: none;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The growing, played by the page's script: the open panel is revealed from
   the closed button's bounds, then its lines come in turn. */
.moves .lh-pages.lp-grow .lp-panel {
  animation: lp-grow 360ms cubic-bezier(0.33, 1, 0.68, 1) both;
}
.moves .lh-pages.lp-grow .lp-panel li {
  animation: lp-line 200ms ease-out both;
  animation-delay: calc(120ms + var(--i, 0) * 30ms);
}
.moves .lh-pages.lp-shrink .lp-panel {
  animation: lp-shrink 200ms cubic-bezier(0.32, 0, 0.67, 0) both;
}
@keyframes lp-grow {
  from {
    clip-path: inset(0 var(--lp-cr, 0px) var(--lp-cb, 0px) 0 round 22px);
  }
  to {
    clip-path: inset(0 0 0 0 round 22px);
  }
}
@keyframes lp-shrink {
  from {
    clip-path: inset(0 0 0 0 round 22px);
  }
  to {
    clip-path: inset(0 var(--lp-cr, 0px) var(--lp-cb, 0px) 0 round 22px);
  }
}
@keyframes lp-line {
  from {
    opacity: 0;
  }
}
@media (min-width: 1024px) {
  .lh-pages[open] .lp-panel {
    right: auto;
    width: 360px;
  }
  .lp-stack > span:nth-child(n + 3) {
    display: grid;
  }
  .lp-arrow {
    display: block;
  }
  .lp-words b {
    font-size: 16px;
  }
}
/* On a phone, two emblems, the brand a little smaller and the language
   reduced to its flag (its name stays in the button's label): the line holds
   the brand, the button and the language. */
@media (max-width: 1023.98px) {
  .lh-side {
    gap: 6px;
  }
  .lh-brand {
    gap: 7px;
    padding: 5px 12px 5px 5px;
    font-size: 18px;
  }
  .lh-brand img {
    width: 30px;
  }
  .landing-header .lm-pill > span {
    display: none;
  }
  .landing-header .lm-pill {
    gap: 5px;
    padding: 0 10px;
  }
  .lp-stack > span:nth-child(n + 3) {
    display: none;
  }
  .lp-stack > span:nth-child(2) {
    margin-right: 2px;
  }
}

/* ---------- The words of the first screen ---------- */

.promise {
  margin: 0;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.phrase {
  margin: 0;
  font: italic 400 17.5px/1.4 var(--serif);
  text-wrap: balance;
}
.detail {
  margin: 0;
  font: 400 17px/1.55 var(--sans);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.call.on-phone {
  width: 100%;
  margin-top: 6px;
}
.call.on-desk {
  margin-top: 10px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper-raised);
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink-deep);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink-deep);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-note {
  margin: 12px 0 0;
  font: 400 13px/1.3 var(--sans);
  color: var(--ink-faint);
  text-align: center;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badges a {
  display: block;
  border-radius: 8px;
}
.badges img {
  display: block;
  width: auto;
  height: 48px;
}
.proof {
  margin: 0;
  font: 500 13px/1.4 var(--sans);
  color: var(--ink-soft);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .promise {
    font-size: 46px;
  }
  .phrase {
    font-size: 23px;
  }
  .proof {
    font-size: 14px;
  }
}

/* A small plate, as the path's theme titles: a double hairline. */
.plaque {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 9px 18px;
  background: var(--paper-raised);
  border: 1px solid var(--ink-soft);
  border-radius: 5px;
  box-shadow:
    inset 0 0 0 3px var(--paper-raised),
    inset 0 0 0 4px var(--line-strong),
    1.5px 1.5px 0 rgb(var(--ink-rgb) / 0.14);
  font: 600 19px/1.2 var(--serif);
  color: var(--ink);
  white-space: nowrap;
}
.plaque i {
  margin-right: 8px;
  font: 400 14px/1 var(--sans);
  color: var(--ink-soft);
}

/* A loop painted over a part of a monument (a pendulum, a flag). */
.mon-loop {
  position: absolute;
}
.mon-loop img {
  display: block;
  width: 100%;
  height: 100%;
}
.pendulum-loop {
  left: 43.34%;
  top: 21.97%;
  width: 16.69%;
  height: 41.06%;
}
.flag-large {
  left: 56.05%;
  top: 0;
  width: 22.82%;
  height: 18.18%;
}
.flag-small {
  left: 12.71%;
  top: 20.91%;
  width: 10.57%;
  height: 11.52%;
}

/* ---------- First screen, « the island »: the main illustration ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero-island {
  padding: 78px var(--side) 30px;
}
.hero-in {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: var(--content);
  margin: 0 auto;
}
.hero-say {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.hero-art {
  order: -1;
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
}
.isle-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--pg-200),
    var(--parchment) 46%,
    rgb(var(--paper-rgb) / 0) 70%
  );
  opacity: 0.75;
  animation: isle-breathe 7s ease-in-out infinite;
}
.isle-ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 2px dashed rgb(var(--ink-rgb) / 0.14);
  animation: isle-spin 90s linear infinite;
}
/* The island's shadow on the page, smaller when it rises. */
.isle-shadow {
  position: absolute;
  left: 30%;
  top: 91%;
  width: 40%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(var(--ink-rgb) / 0.2),
    rgb(var(--ink-rgb) / 0)
  );
  animation: isle-shadow 6s ease-in-out infinite;
}
.isle-layer {
  position: absolute;
}
.isle-main {
  left: 15%;
  top: 6%;
  width: 70%;
}
.isle-layer img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgb(var(--ink-rgb) / 0.16));
  animation: isle-float var(--t, 6s) ease-in-out var(--fd, 0s) infinite;
}
.isle-main img {
  --amp: -14px;
  --r: 0deg;
  --rr: 0deg;
  filter: drop-shadow(0 22px 26px rgb(var(--ink-rgb) / 0.22));
}
/* The island rises without fading: it is the first view's largest picture,
   and a picture at opacity 0 is not counted as painted. */
.isle-rise {
  animation: isle-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.isle-enter {
  animation: isle-come 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both;
}

@keyframes isle-rise {
  from {
    transform: translateY(18px) scale(0.94);
  }
  to {
    transform: none;
  }
}
@keyframes isle-come {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes isle-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(var(--amp, -10px))
      rotate(calc(var(--r, 0deg) + var(--rr, 3deg)));
  }
}
@keyframes isle-breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.8;
  }
}
@keyframes isle-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes isle-shadow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.6;
  }
}

@media (min-width: 1024px) {
  .hero-island {
    padding: 112px var(--side) 72px;
  }
  .hero-in {
    grid-template-columns: 1fr 1.08fr;
    gap: 48px;
    align-items: center;
    justify-items: stretch;
  }
  .hero-say {
    gap: 18px;
    justify-items: start;
    max-width: none;
    text-align: left;
  }
  .hero-island .promise {
    font-size: 52px;
  }
  .hero-island .detail {
    max-width: 30rem;
  }
  .hero-art {
    order: 0;
    justify-self: end;
    max-width: 600px;
  }
}

/* ---------- First screen, « the path », while the island is awaited ---------- */

.hero-path {
  min-height: 800px;
  padding: 414px var(--side) 26px;
  background: var(--ground-science) var(--g-ground) 0 0 / 300px;
}
/* The frame the road, the seals and the monuments are placed in: centred,
   the painted ground going on around it. */
.hero-frame {
  position: absolute;
  left: 50%;
  top: 0;
  width: 390px;
  height: 800px;
  margin-left: -195px;
}
.hero-frame .road {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.hero-frame .road path {
  stroke-dasharray: 1;
  animation: draw 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}
.hero-seal {
  position: absolute;
  z-index: 3;
  animation: stamp-in 0.2s cubic-bezier(0.3, 0.9, 0.3, 1)
    calc(0.3s + var(--n) * 0.12s) both;
}
.hero-mon {
  position: absolute;
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1)
    calc(0.05s + var(--n) * 0.12s) both;
}
.hm-0 {
  --n: 0;
  left: 52px;
  top: 44px;
  width: 300px;
  height: auto;
}
.hm-1 {
  --n: 1;
  left: 1040px;
  top: 550px;
  width: 196px;
}
.hm-1 > img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-plaque {
  left: 770px;
  top: 574px;
  animation: rise 0.3s ease-out 0.6s both;
}
/* The sheet of paper the words are written on: a double hairline. */
.hero-sheet {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 358px;
  margin: 0 auto;
  padding: 24px 22px 22px;
  background: var(--paper-raised) var(--g-paper) 0 0 / 300px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 5px var(--paper-raised),
    inset 0 0 0 6px var(--line-strong),
    1.5px 1.5px 0 rgb(var(--ink-rgb) / 0.14),
    3px 2.5px 0 rgb(var(--ink-rgb) / 0.07),
    0 30px 40px -28px rgb(var(--ink-rgb) / 0.55);
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-path {
    height: 760px;
    min-height: 0;
    padding: 0;
  }
  .hero-frame {
    width: 1280px;
    height: 760px;
    margin-left: -640px;
  }
  .hm-0 {
    left: 748px;
    width: 430px;
  }
  .hero-sheet {
    position: absolute;
    left: max(24px, calc(50% - 568px));
    top: 196px;
    width: 552px;
    max-width: none;
    margin: 0;
    padding: 44px 46px 46px;
    gap: 18px;
    justify-items: start;
    text-align: left;
  }
}

/* ---------- The themes that pass ---------- */

.units {
  position: relative;
  z-index: 2;
  padding: 18px 0 20px;
  background: var(--paper-raised);
  border-block: 1px solid var(--line-strong);
}
.hero-path + .units {
  box-shadow: 0 -10px 16px -12px rgb(var(--ink-rgb) / 0.5);
}
.units-label {
  margin: 0 0 10px;
  padding: 0 var(--side);
  text-align: center;
  font: 600 14px/1.3 var(--sans);
  color: var(--pg-800);
  text-wrap: balance;
}
/* Two copies of the list: the second takes the place of the first, and the
   loop has no seam. */
.strip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.track {
  display: flex;
  width: max-content;
  animation: pass 52s linear infinite;
}
.strip:hover .track {
  animation-play-state: paused;
}
.track ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.track li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
  font: 600 18px/1.2 var(--serif);
  white-space: nowrap;
}
.track img {
  width: 56px;
  height: auto;
}
@keyframes pass {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- The features, told in scenes ---------- */

.wrap {
  max-width: calc(var(--content) + 2 * var(--side));
  margin: 0 auto;
  padding: 0 var(--side);
}
.stories {
  padding-top: 52px;
}
.stories > h2 {
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.story {
  display: grid;
  gap: 24px;
  padding: 36px 0;
}
.say {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 600 15px/1.2 var(--sans);
  color: var(--pg-700);
}
/* A small drop of wax of the scene's pigment. */
.eyebrow i {
  width: 11px;
  height: 10px;
  border-radius: 46% 54% 50% 50% / 52% 48% 54% 46%;
  background: var(--pg);
  box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / 0.35);
}
.story h3 {
  max-width: 17ch;
  margin: 0;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.say .text {
  max-width: 28rem;
  margin: 0;
  font: 400 17px/1.5 var(--sans);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.feats {
  display: grid;
  gap: 14px;
  max-width: 28rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.feats li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}
.feats .ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pg-200);
}
.feats .ic img {
  width: 34px;
  height: auto;
}
.feats b {
  display: block;
  font: 600 18px/1.25 var(--serif);
}
.feats li > span > span {
  font: 400 16px/1.45 var(--sans);
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .stories {
    padding-top: 80px;
  }
  .stories > h2 {
    font-size: 42px;
  }
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 56px 0;
  }
  .story.flip .stage-wrap {
    order: -1;
  }
  .say {
    justify-items: start;
    text-align: left;
  }
  .story h3 {
    font-size: 40px;
  }
}

/* A scene: a square of 50 units, a unit being this element's `em`. Every
   measure inside is in units, so the scene keeps its proportions from a
   small phone to a computer. */
.stage {
  position: relative;
  width: 50em;
  height: 50em;
  margin: 0 auto;
  border-radius: 2.6em;
  overflow: hidden;
  font-size: min(7.16px, calc((100vw - 2 * var(--side)) / 50));
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.16);
}
@media (min-width: 1024px) {
  .stage {
    font-size: min(10px, calc((100vw - 2 * var(--side) - 72px) / 100));
  }
}
.stage img {
  display: block;
}

/* A phone drawn around a real screen of the app. */
.phf {
  position: absolute;
  width: 19.5em;
  padding: 0.65em;
  border-radius: 3.3em;
  background: var(--ink);
  box-shadow:
    0 0 0 1px var(--ink-deep),
    0.3em 0.4em 0 rgb(var(--ink-rgb) / 0.1),
    0 3em 3.4em -2.4em rgb(var(--ink-rgb) / 0.55);
}
.phf > div {
  overflow: hidden;
  border-radius: 2.7em;
  background: var(--paper) var(--g-paper) 0 0 / 300px;
}
/* The screen is never stretched: the phone takes its proportions. */
.phf img {
  width: 100%;
  height: auto;
}
.phf-quiz {
  left: 3em;
  top: 5em;
  transform: rotate(-4deg);
}
.phf-src {
  right: 2.5em;
  top: 4em;
  transform: rotate(3deg);
}

/* A stamp: a word in a double frame, never quite straight. */
.st {
  padding: 0.22em 0.6em;
  border: 0.15em solid currentColor;
  outline: 0.07em solid currentColor;
  outline-offset: 0.13em;
  font: 600 1.8em/1 var(--serif);
  letter-spacing: 0.1em;
}

/* Scene 1 — the path: the lessons of a theme done one by one, up to its recap */
.sc-path {
  background: var(--ground-history) var(--g-grass) 0 0 / 30em;
}
.sc-path .road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Where it stands and how wide: written by the build (`scenesCss`), with
   the road that goes round it. */
.sc-mon {
  position: absolute;
  height: auto;
}
.sc-path .slot {
  position: absolute;
  z-index: 2;
  width: 6.2em;
  height: 6.4em;
  margin: -2.4em 0 0 -3.1em;
}
.sc-path .slot .wax {
  position: absolute;
  left: 0;
  top: 0;
  width: 6.2em;
  height: 6.4em;
  opacity: 0;
}
.sc-path .slot[data-s="ahead"] .tn-ahead,
.sc-path .slot[data-s="play"] .tn-play,
.sc-path .slot[data-s="done"] .tn-done {
  opacity: 1;
}
.sc-path .bubble {
  position: absolute;
  z-index: 3;
  margin: -4.1em 0 0;
  padding: 0.5em 1em;
  border: 1px solid var(--ink-soft);
  border-radius: 0.7em;
  background: var(--paper-raised);
  box-shadow: 1.5px 1.5px 0 rgb(var(--ink-rgb) / 0.14);
  font: 600 1.7em/1.2 var(--serif);
  white-space: nowrap;
  transform: translateX(-50%);
  transition:
    left 0.3s cubic-bezier(0.3, 0.7, 0.3, 1),
    top 0.3s cubic-bezier(0.3, 0.7, 0.3, 1),
    opacity 0.15s;
}
.sc-path .bubble.gone {
  opacity: 0;
}
/* At the foot of the scene, beside the road: it covers no seal. */
.sc-path .fin {
  left: 1em;
  bottom: 1.4em;
  padding: 0.5em 1em;
  font-size: 1.7em;
  opacity: 0;
  transform: translateY(1em);
  transition:
    opacity 0.2s,
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sc-path .fin.on {
  opacity: 1;
  transform: none;
}
.moves .sc-path .slot[data-s="done"] .tn-done {
  animation: stamp-in 0.2s cubic-bezier(0.3, 0.9, 0.3, 1) both;
}

/* Scene 2 — an exercise played: the app's sliding cards and their stamps */
.sc-quiz {
  background: var(--paper-sunk) var(--g-paper) 0 0 / 300px;
}
/* Alone in the scene until a real screen of the app stands beside it. */
.swipe {
  position: absolute;
  left: 6.74em;
  top: 6.83em;
  width: 30em;
  font-size: 1.15em;
}
.has-capture .swipe {
  left: 24.42em;
  top: 13.37em;
  font-size: 0.86em;
}
.swipe .deck {
  position: relative;
  height: 23em;
}
.swipe .card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 2.6em;
  border: 1px solid var(--parchment-edge);
  border-radius: 2.2em;
  background: var(--parchment);
  box-shadow:
    1.5px 1.5px 0 rgb(var(--ink-rgb) / 0.12),
    0 1.6em 2em -1.4em rgb(var(--ink-rgb) / 0.5);
  text-align: center;
}
.swipe .card p {
  margin: 0;
  font: 600 2.05em/1.22 var(--serif);
  color: var(--ink);
  text-wrap: balance;
}
.swipe .card.long p {
  font-size: 1.75em;
}
.swipe .card i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1em;
  font: 500 1.3em/1 var(--sans);
  color: var(--ink-soft);
}
.swipe .st {
  position: absolute;
  top: 1.1em;
  right: 1.2em;
  background: rgb(var(--paper-raised-rgb) / 0.8);
  transform: rotate(4deg);
}
.swipe .faux {
  color: var(--defeat);
}
.swipe .vrai {
  left: 1.2em;
  right: auto;
  color: var(--correct);
  opacity: 0;
  transform: rotate(-4deg);
}
/* The finished picture: the first card slid to « false », stamped. */
.swipe .c2 {
  transform: translate(0.9em, 0.7em) rotate(2.5deg);
}
.swipe .c1 {
  transform: translateX(-2em) rotate(-7deg);
}
.swipe .pills {
  display: flex;
  gap: 1.2em;
  margin-top: 2.2em;
}
.swipe .pill {
  flex: 1;
  display: grid;
  place-items: center;
  height: 2.7em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-raised);
  font: 500 1.7em/1 var(--sans);
  color: var(--ink);
}
.swipe .pf {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-raised);
}

@keyframes sw-c1 {
  0%,
  9% {
    transform: rotate(-3deg);
    opacity: 1;
  }
  15%,
  38% {
    transform: translateX(-2em) rotate(-7deg);
    opacity: 1;
  }
  46%,
  90% {
    transform: translateX(-24em) rotate(-16deg);
    opacity: 0;
  }
  91% {
    transform: translateY(0.8em) rotate(-3deg);
    opacity: 0;
  }
  100% {
    transform: rotate(-3deg);
    opacity: 1;
  }
}
@keyframes sw-faux {
  0%,
  16% {
    opacity: 0;
    transform: rotate(4deg) scale(1.8);
  }
  19%,
  100% {
    opacity: 1;
    transform: rotate(4deg) scale(1);
  }
}
@keyframes sw-c2 {
  0%,
  42% {
    transform: translate(0.9em, 0.7em) rotate(2.5deg);
    opacity: 1;
  }
  50%,
  56% {
    transform: rotate(-2deg);
    opacity: 1;
  }
  62%,
  82% {
    transform: translateX(2em) rotate(6deg);
    opacity: 1;
  }
  89%,
  93% {
    transform: translateX(24em) rotate(16deg);
    opacity: 0;
  }
  94% {
    transform: translate(0.9em, 0.7em) rotate(2.5deg);
    opacity: 0;
  }
  100% {
    transform: translate(0.9em, 0.7em) rotate(2.5deg);
    opacity: 1;
  }
}
@keyframes sw-vrai {
  0%,
  63% {
    opacity: 0;
    transform: rotate(-4deg) scale(1.8);
  }
  66%,
  93% {
    opacity: 1;
    transform: rotate(-4deg) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: rotate(-4deg) scale(1);
  }
}
@keyframes sw-pf {
  0%,
  9%,
  41%,
  100% {
    border-color: var(--line-strong);
    background: var(--paper-raised);
    color: var(--ink);
  }
  10%,
  40% {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-raised);
  }
}
@keyframes sw-pv {
  0%,
  56%,
  85%,
  100% {
    border-color: var(--line-strong);
    background: var(--paper-raised);
    color: var(--ink);
  }
  57%,
  84% {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-raised);
  }
}
.moves .playing .swipe .c1 {
  animation: sw-c1 6s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
}
.moves .playing .swipe .c2 {
  animation: sw-c2 6s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
}
.moves .playing .swipe .faux {
  animation: sw-faux 6s ease-out infinite;
}
.moves .playing .swipe .vrai {
  animation: sw-vrai 6s ease-out infinite;
}
.moves .playing .swipe .pf {
  animation: sw-pf 6s step-end infinite;
}
.moves .playing .swipe .pv {
  animation: sw-pv 6s step-end infinite;
}

/* Scene 3 — explained and sourced: a zoom on a correction */
.sc-src {
  background: var(--review-soft) var(--g-paper) 0 0 / 300px;
}
/* Alone and centred until its pictures come: a real screen of the app at its
   right, a painted saynète under it. */
.zoom {
  position: absolute;
  left: 6.74em;
  top: 50%;
  display: grid;
  gap: 1.2em;
  width: 30em;
  padding: 2.4em 2.4em 2em;
  border: 1px solid var(--parchment-edge);
  border-radius: 2em;
  background: var(--paper-raised);
  box-shadow:
    1.5px 1.5px 0 rgb(var(--ink-rgb) / 0.12),
    0 2.4em 3em -2em rgb(var(--ink-rgb) / 0.5);
  font-size: 1.15em;
  translate: 0 -50%;
}
/* With its saynète alone: the card at the right, the readers before it. */
.has-saynete .zoom {
  left: 20em;
  width: 28em;
  font-size: 1em;
}
.has-capture .zoom {
  left: 2.5em;
  top: 5.5em;
  width: 30em;
  font-size: 1em;
  translate: none;
}
.zoom .st {
  justify-self: start;
  font-size: 1.7em;
  color: var(--correct);
  transform: rotate(-4deg);
}
.zoom p {
  margin: 0;
}
.zoom .claim {
  font: 600 2em/1.22 var(--serif);
  text-wrap: balance;
}
.zoom hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}
.zoom .why {
  font: 400 1.4em/1.45 var(--sans);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.zoom .from {
  font: 500 1.3em/1.3 var(--sans);
  color: var(--ink);
}
.zoom .from u {
  text-decoration-color: var(--pg);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}
.sc-src .saynete {
  position: absolute;
  z-index: 1;
  left: 1em;
  bottom: 2em;
  width: auto;
  height: 21em;
}
.sc-src.has-capture .saynete {
  left: 2em;
  bottom: 1.5em;
  height: 12em;
}
/* The scene writes itself once, when it is seen. */
.moves .sc-src:not(.seen) .zoom {
  opacity: 0;
}
.moves .sc-src.seen .zoom {
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}
.moves .sc-src.seen .zoom .st {
  --at: rotate(-4deg);
  animation: stamp-in 0.2s cubic-bezier(0.3, 0.9, 0.3, 1) 0.4s both;
}
.moves .sc-src.seen .zoom .why {
  animation: rise 0.3s ease-out 0.6s both;
}
.moves .sc-src.seen .zoom .from {
  animation: rise 0.3s ease-out 0.8s both;
}

/* Scene 4 — every day, every Saturday: the day's review, the week's edition.
   The painted ground under a veil of its pigment: the recipe of the app's
   path dashboard. */
.sc-week {
  background: var(--ground-science) var(--g-ground) 0 0 / 30em;
}
.sc-week::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--pg-800), var(--pg-900));
  opacity: 0.9;
}
.ticket {
  position: absolute;
  left: 3.5em;
  top: 3.5em;
  display: grid;
  grid-template-columns: 1fr 9.5em;
  width: 43em;
  border-radius: 1.8em;
  background: var(--ink);
  color: var(--paper-raised);
  /* Two round notches at the perforation. */
  -webkit-mask:
    radial-gradient(circle 1em at calc(100% - 9.5em) 0, transparent 98%, #000)
      top / 100% 51% no-repeat,
    radial-gradient(
        circle 1em at calc(100% - 9.5em) 100%,
        transparent 98%,
        #000
      )
      bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 1em at calc(100% - 9.5em) 0, transparent 98%, #000)
      top / 100% 51% no-repeat,
    radial-gradient(
        circle 1em at calc(100% - 9.5em) 100%,
        transparent 98%,
        #000
      )
      bottom / 100% 51% no-repeat;
}
.ticket .main {
  display: grid;
  gap: 0.3em;
  padding: 1.8em 1.4em 1.9em 2em;
}
.ticket .main small {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font: 400 1.5em/1.2 var(--sans);
  color: var(--on-dark-soft);
}
.ticket .main small img {
  width: 2em;
  height: auto;
  padding: 0.2em;
  border-radius: 50%;
  background: var(--parchment);
}
.ticket .main b {
  font: 600 2.9em/1.1 var(--serif);
}
.ticket .main span {
  font: 400 1.6em/1.3 var(--sans);
}
.ticket .stub {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6em;
  border-left: 0.2em dashed rgb(var(--paper-raised-rgb) / 0.4);
  font: 600 1.5em/1.2 var(--sans);
  text-align: center;
}
.ticket .stub i {
  display: grid;
  place-items: center;
  width: 3em;
  height: 3em;
  border: 0.22em solid var(--paper-raised);
  border-radius: 50%;
}
.ticket .stub i::after {
  content: "";
  margin-left: 0.25em;
  border-left: 0.9em solid var(--paper-raised);
  border-block: 0.55em solid transparent;
}
.sc-week .saynete {
  position: absolute;
  left: 3.5em;
  top: 19.5em;
  width: auto;
  height: 14em;
}
.edition {
  position: absolute;
  left: 3.5em;
  top: 20.5em;
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 1em;
  align-items: center;
  width: 43em;
  padding: 1.2em 1.6em 1.2em 1.2em;
  border: 1px solid var(--parchment-edge);
  border-radius: 1.2em;
  background: var(--parchment);
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.has-saynete .edition {
  left: 20em;
  width: 26.5em;
}
.edition img {
  width: 100%;
  height: auto;
}
.edition b {
  display: block;
  font: 600 1.9em/1.15 var(--serif);
}
.edition span {
  font: 400 1.4em/1.3 var(--sans);
  color: var(--ink-soft);
}
.edition em {
  position: absolute;
  right: 1em;
  top: -0.9em;
  padding: 0.2em 0.55em;
  border: 0.14em solid currentColor;
  background: var(--paper-raised);
  font: 600 1.4em/1 var(--serif);
  letter-spacing: 0.08em;
  color: var(--defeat);
  opacity: 0;
  transform: rotate(5deg) scale(1.6);
  transition:
    opacity 0.1s,
    transform 0.18s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.edition.out {
  opacity: 1;
}
.edition.out em {
  opacity: 1;
  transform: rotate(5deg);
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}
.sc-week .days {
  position: absolute;
  left: 2.5em;
  right: 2.5em;
  top: 36em;
}
.days .day {
  display: grid;
  justify-items: center;
  gap: 0.7em;
  font: 500 1.5em/1 var(--sans);
}
.sc-week .day {
  color: var(--on-dark);
}
.days .day i {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border: 0.14em dashed rgb(var(--paper-raised-rgb) / 0.45);
  border-radius: 50%;
}
.days .day i svg {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.days .day.on i svg {
  opacity: 1;
}
.sc-week .day.on i {
  border: 0.14em solid var(--ink-deep);
  background: var(--paper-raised);
  color: var(--ink);
}
.sc-week .day.sat i {
  border-style: solid;
  border-color: var(--gilt-leaf);
}
.moves .days .day.on i {
  animation: stamp-in 0.2s cubic-bezier(0.3, 0.9, 0.3, 1) both;
}

/* Scene 5 — the streak: a flame more each day, and the series that counts them */
.sc-streak {
  background: radial-gradient(
    120% 80% at 50% 0%,
    var(--ink-600),
    var(--ink) 70%
  );
}
.flames {
  position: absolute;
  left: 3em;
  right: 3em;
  top: 4.5em;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
  align-items: end;
}
.flames .fl {
  position: relative;
  width: 5.4em;
  height: 7em;
}
.flames .fl img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.18s;
}
.flames .fl .lit {
  opacity: 0;
}
.flames .fl::before {
  content: "";
  position: absolute;
  inset: -1.6em;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(var(--flame-glow-rgb) / 0.5),
    rgb(var(--flame-glow-rgb) / 0)
  );
  opacity: 0;
  transition: opacity 0.2s;
}
.flames .fl.on .lit {
  opacity: 1;
}
.flames .fl.on .unlit {
  opacity: 0;
}
.flames .fl.on::before {
  opacity: 1;
}
/* A lit flame lives: the app's loop, under the script's mark only. Without
   it, or with less motion asked, the still flame; the loop, hidden, is never
   fetched (`loading="lazy"`). */
.flames .fl .living,
.streak-card .head .living {
  display: none;
}
.moves .flames .fl .living {
  display: block;
  opacity: 0;
}
.moves .flames .fl .lit {
  display: none;
}
.moves .flames .fl.on .living {
  opacity: 1;
}
.moves .streak-card .head .living {
  display: block;
}
.moves .streak-card .head .still {
  display: none;
}
.streak-card {
  position: absolute;
  left: 4em;
  right: 4em;
  top: 21.5em;
  display: grid;
  gap: 1.8em;
  padding: 2.2em 2.4em 2.4em;
  border: 1px solid var(--parchment-edge);
  border-radius: 2em;
  background: var(--parchment);
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.streak-card.won {
  transform: scale(1.03);
}
.streak-card .head {
  display: flex;
  align-items: center;
  gap: 1em;
  font: 600 2.2em/1.1 var(--serif);
  color: var(--ink);
}
.streak-card .head .hf {
  flex: none;
  width: 2em;
}
.streak-card .head img {
  display: block;
  width: 100%;
  height: auto;
}
.streak-card .head b {
  font: 600 2em/1 var(--serif);
  color: var(--flame);
  font-variant-numeric: tabular-nums;
}
.streak-card .day {
  color: var(--ink-soft);
}
.streak-card .day i {
  border-color: var(--line-strong);
}
.streak-card .day.on i {
  border: 0.14em solid var(--ink-deep);
  background: var(--ink);
  color: var(--paper-raised);
}

/* Scene 6 — the rose of the categories */
.sc-rose {
  background: radial-gradient(
    90% 90% at 50% 40%,
    var(--ink-700),
    var(--ink) 75%
  );
}
/* « Le galet » (src/home-scenes.mjs): its place and its emblems' are rules
   the build writes. */
.rose {
  position: absolute;
  overflow: visible;
}
.rose .ring {
  fill: none;
  stroke: var(--parchment);
  stroke-opacity: 0.35;
  stroke-linecap: round;
}
.rose .side {
  stroke: var(--pg-400);
  stroke-linejoin: round;
}
.rose stop {
  stop-color: var(--pg);
}
.rose .tip {
  fill: var(--pg-400);
  stroke: var(--parchment);
  stroke-opacity: 0.85;
}
.sc-rose .pt {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.3em;
}
.sc-rose .pt .emb {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pg-100);
}
.sc-rose .pt img {
  object-fit: contain;
}
.sc-rose .pt b {
  font: 600 2em/1.3 var(--sans);
  color: var(--paper-raised);
  font-variant-numeric: tabular-nums;
}
.sc-rose .pt small {
  font-size: 1em;
}
.sc-rose .pct {
  position: absolute;
  left: 0.43em;
  bottom: 0.34em;
  font: 600 7em/1 var(--serif);
  color: var(--paper-raised);
  font-variant-numeric: tabular-nums;
}
.sc-rose .pct b {
  font-weight: 600;
}
.sc-rose .pct small {
  font-size: 0.4em;
}

/* ---------- How it works: three steps on a stretch of road ---------- */

.how {
  margin: 24px 0 40px;
  padding: 32px 20px 34px;
  border: 1px solid var(--parchment-edge);
  border-radius: 24px;
  background: var(--parchment) var(--g-paper) 0 0 / 300px;
  scroll-margin-top: 24px;
}
.how h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 27px;
  line-height: 1.2;
}
.how-steps {
  position: relative;
}
/* The road runs from the first seal to the last: down the left on a phone,
   across on a computer. */
.how-trail {
  position: absolute;
  left: 22px;
  top: 20px;
  bottom: 44px;
  width: 16px;
  border-radius: 8px;
  background: var(--parchment) var(--g-sand) 0 0 / 60px;
  box-shadow: 0 0 0 1.5px rgb(var(--ink-rgb) / 0.2);
}
.how ol {
  position: relative;
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-step-0 {
  --i: 0;
}
.how-step-1 {
  --i: 1;
}
.how-step-2 {
  --i: 2;
}
.how-seal {
  flex: none;
  display: block;
  width: 60px;
  height: 62px;
}
.how-step h3 {
  margin: 4px 0;
  font-size: 20px;
  line-height: 1.25;
  text-wrap: balance;
}
.how-step p {
  max-width: 18rem;
  margin: 0;
  font: 400 16px/1.5 var(--sans);
  color: var(--ink-soft);
}
/* Once seen, the road draws itself and the steps come one by one. */
.moves .how:not(.seen) .how-trail {
  transform: scaleY(0);
}
.moves .how:not(.seen) .how-step {
  opacity: 0;
}
.moves .how.seen .how-trail {
  transform-origin: top;
  animation: grow-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.moves .how.seen .how-step {
  animation: rise 0.35s ease-out calc(0.1s + var(--i) * 0.14s) both;
}
.moves .how.seen .how-seal {
  animation: stamp-in 0.2s cubic-bezier(0.3, 0.9, 0.3, 1)
    calc(0.2s + var(--i) * 0.14s) both;
}

@media (min-width: 1024px) {
  .how {
    padding: 48px 40px 52px;
  }
  .how h2 {
    margin-bottom: 40px;
    font-size: 36px;
  }
  .how-trail {
    left: 16.6%;
    right: 16.6%;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 16px;
  }
  .how ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .how-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .how-step p {
    margin: 0 auto;
  }
  .moves .how:not(.seen) .how-trail {
    transform: scaleX(0);
  }
  .moves .how.seen .how-trail {
    transform-origin: left;
    animation-name: grow-across;
  }
}

/* ---------- The proof, in place of a review: true figures only ---------- */

.facts {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 44px;
  padding: 28px 24px 30px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper-raised);
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
  margin: 0;
}
.facts dl div {
  display: flex;
  flex-direction: column;
}
.facts dt {
  font: 600 38px/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.facts dd {
  margin: 6px 0 0;
  font: 400 15px/1.35 var(--sans);
  color: var(--on-dark-soft);
}
.facts p {
  margin: 0;
  font: 400 17px/1.5 var(--sans);
  color: var(--on-dark-soft);
}
@media (min-width: 1024px) {
  .facts {
    padding: 34px 40px 36px;
  }
  .facts dl {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}

/* ---------- The last call ---------- */

.final {
  position: relative;
  overflow: hidden;
  padding: 44px 20px 190px;
  border-radius: 28px;
  background: var(--ground-science) var(--g-ground) 0 0 / 300px;
  color: var(--paper-raised);
  text-align: center;
}
/* A veil of the ground's pigment, down from the top: the ground stays clear
   at the foot, where the monuments stand. */
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pg-900);
  -webkit-mask-image: linear-gradient(
    #000 0%,
    rgb(0 0 0 / 0.96) 38%,
    rgb(0 0 0 / 0.6) 62%,
    transparent 84%
  );
  mask-image: linear-gradient(
    #000 0%,
    rgb(0 0 0 / 0.96) 38%,
    rgb(0 0 0 / 0.6) 62%,
    transparent 84%
  );
}
.final > * {
  position: relative;
}
.final h2 {
  max-width: 16ch;
  margin: 0 auto 10px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.final > p {
  max-width: 30rem;
  margin: 0 auto 22px;
  font: 400 17px/1.5 var(--sans);
  color: var(--ink-100);
}
.final .btn {
  max-width: 380px;
  margin: 0 auto;
}
.btn-paper {
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--line-strong);
}
.btn-paper:active {
  box-shadow: 0 2px 0 var(--line-strong);
}
.final .badges {
  justify-content: center;
}
.final .final-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.final-row > img {
  width: 128px;
  height: auto;
  margin: 0 -6px;
}
.final-mon {
  position: relative;
}
.final-mon > img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 1024px) {
  .final {
    padding: 64px 40px 250px;
  }
  .final h2 {
    font-size: 46px;
  }
  .final-row > img,
  .final-mon {
    width: min(200px, calc((100vw - 2 * var(--side) - 40px) / 5));
    margin: 0 4px;
  }
}

/* ---------- Under the last call: the line both stores ask for ---------- */

.final-tm {
  max-width: 460px;
  margin: 16px auto 0;
  padding: 0 0 28px;
  font: 400 13px/1.5 var(--sans);
  color: var(--ink-faint);
  text-align: center;
}
.final {
  scroll-margin-top: 24px;
}
.stories {
  scroll-margin-top: 0;
}

/* ---------- The way into the site's pages: a category after the other ---------- */

.read {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.read h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.read > p {
  max-width: 36rem;
  margin: 0;
  font: 400 16px/1.5 var(--sans);
  color: var(--ink-soft);
  text-wrap: balance;
}
.read ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 12px;
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.read a {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
/* The category's emblem on a drop of its pigment, as around the rose. */
.read-emb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--pg-200);
  box-shadow: inset 0 0 0 1px var(--pg-300);
  transition: transform 0.15s ease-out;
}
.read-emb img {
  width: auto;
  height: 40px;
}
.read b {
  font: 600 18px/1.25 var(--serif);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.read a span:last-child {
  font: 400 14px/1.3 var(--sans);
  color: var(--ink-soft);
}
.read a:hover b {
  text-decoration-color: var(--ink);
}
.read a:hover .read-emb {
  transform: translateY(-2px);
}
@media (min-width: 600px) {
  .read ul {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .read {
    padding: 44px 0 56px;
  }
  .read ul {
    grid-template-columns: repeat(6, 1fr);
    margin-top: 24px;
  }
}
.page-landing .site-footer {
  max-width: calc(var(--content) + 2 * var(--side));
  padding-inline: var(--side);
}

/* ---------- What the entrances share ---------- */

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* A seal struck: it comes down on the page. `--at` is the tilt it rests at. */
@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: var(--at, rotate(0deg)) scale(1.7);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: var(--at, rotate(0deg)) scale(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes grow-down {
  from {
    transform: scaleY(0);
  }
  to {
    transform: none;
  }
}
@keyframes grow-across {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}

/* ---------- Less motion asked: everything in place, still ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-landing *,
  .page-landing *::before,
  .page-landing *::after {
    animation: none !important;
    transition: none !important;
  }
  /* A painted loop stays its still picture. */
  .mon-loop {
    display: none;
  }
  /* A living flame stays its still picture. */
  .moves .flames .fl .living,
  .moves .streak-card .head .living {
    display: none;
  }
  .moves .flames .fl .lit,
  .moves .streak-card .head .still {
    display: block;
  }
  /* Still, the strip shows its first themes, and the rest by a swipe. */
  .strip {
    overflow-x: auto;
  }
}
