/*
 * Doz.ai website: the ecosystem home and the language apps' pages.
 * A landing page on the Doz design system's skeleton only: the Doz! mark, Poppins, the green action with its lower
 * edge, the application tones and both appearances. The first screen is the tagline over a fan of real app screens;
 * every later screen says one thing in a heading and at most two short sentences, with a real picture. Light and dark.
 */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Poppins-Regular.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Poppins-Medium.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Poppins-SemiBold.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Poppins-Bold.woff2') format('woff2'); }
/* Arabic letters come from Readex Pro, as round and even as Poppins; it answers for every family the site names,
   so an Arabic word set in any of them keeps one voice. Each Readex face takes the very weight of the Latin face
   it joins: a wider weight range would win the match and leave Latin letters to a fallback font. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ReadexPro-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ReadexPro-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ReadexPro-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/ReadexPro-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ReadexPro-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 160 700; font-display: swap; src: url('fonts/ReadexPro-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
/* Fraunces is e²'s own voice; it appears only inside the entrepreneurship phone. */
@font-face { font-family: Fraunces; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Fraunces-SemiBold-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Fraunces-SemiBold-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: light;
    --canvas: #f1faff;
    --page: #f1faff;
    --surface: #ffffff;
    --ink: #263d49;
    --ink-muted: #5c727f;
    --border: #d9e3e9;
    --border-hover: #9fb6c5;
    --hover: #e1f0f8;
    --identity-ink: #3e6176;
    --focus: #3f7899;
    --brand: #54c400;
    --brand-hover: #4bb500;
    --brand-edge: #419c00;
    --reader-field: #e3f4d5;
    --reader-ink: #37731b;
    --listener-field: #dcf1fc;
    --listener-ink: #286784;
    --writer-field: #fdeccd;
    --writer-ink: #875b1e;
    --staff-field: #ece7f8;
    --staff-ink: #69518f;
    --speaker-ink: #69518f;
    --chip: rgb(255 255 255 / 72%);
    --chip-hover: #ffffff;
    --lift: 0 2px 4px rgb(38 61 73 / 6%), 0 14px 32px rgb(38 61 73 / 10%);
    --shot-shadow: drop-shadow(0 18px 30px rgb(38 61 73 / 18%)) drop-shadow(0 2px 6px rgb(38 61 73 / 8%));
    --card-shadow: 0 2px 6px rgb(38 61 73 / 8%), 0 18px 40px rgb(38 61 73 / 12%);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --state-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --wide: 1240px;
    --gutter: 40px;
    /* One space above and below every section's content. Two neighbours on the same ground share it: the second
       gives up its top, so the space between them is never twice the space at a change of ground. */
    --section: clamp(96px, 12vw, 176px);
    --top: 76px;
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --canvas: #111b22;
    --page: #111b22;
    --surface: #18252e;
    --ink: #e4edf2;
    --ink-muted: #a7bac5;
    --border: #33495a;
    --border-hover: #687f8f;
    --hover: #253b4b;
    --identity-ink: #b9ddf2;
    --focus: #86c5ec;
    --reader-field: #20331f;
    --reader-ink: #bae29c;
    --listener-field: #1b3443;
    --listener-ink: #a2d9f4;
    --writer-field: #352c1f;
    --writer-ink: #ffd095;
    --staff-field: #2d2a40;
    --staff-ink: #d1c1f6;
    --speaker-ink: #d1c1f6;
    --chip: rgb(255 255 255 / 7%);
    --chip-hover: rgb(255 255 255 / 13%);
    --lift: 0 2px 4px rgb(0 0 0 / 22%), 0 14px 32px rgb(0 0 0 / 30%);
    --shot-shadow: drop-shadow(0 18px 30px rgb(0 0 0 / 45%)) drop-shadow(0 2px 6px rgb(0 0 0 / 25%));
    --card-shadow: 0 2px 6px rgb(0 0 0 / 25%), 0 18px 40px rgb(0 0 0 / 35%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: color-mix(in srgb, var(--ink-muted) 45%, transparent) transparent; scrollbar-width: thin; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: Poppins, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
::selection { background: color-mix(in srgb, var(--brand) 32%, transparent); color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink-muted) 38%, transparent); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink-muted) 58%, transparent); }
::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--surface); text-decoration: none; }
.skip:focus { top: 12px; box-shadow: var(--lift); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* The green action: Doz green with its raised lower edge. */
.go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 22px 9px;
    border-radius: 12px;
    border-bottom: 3px solid var(--brand-edge);
    background: var(--brand);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 225ms var(--state-ease), transform 120ms var(--state-ease);
}
.go:hover { background: var(--brand-hover); }
.go:active { transform: translateY(1px); }
.go .icon { width: 18px; height: 18px; transition: transform 225ms var(--state-ease); }
.go:hover .icon { transform: translateX(3px); }
.go--small { min-height: 44px; padding: 9px 16px 7px; font-size: 14px; }
.go__short { display: none; }

/* The design system's white action: white field, neutral edge, a 3px lower border that strengthens on hover. */
.quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 20px 9px;
    border: 1px solid var(--border);
    border-bottom-width: 3px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 225ms var(--state-ease), transform 120ms var(--state-ease);
}
.quiet:hover { border-color: var(--border-hover); }
.quiet:active { transform: translateY(1px); }
.quiet .icon { width: 18px; height: 18px; color: var(--identity-ink); }

/* Header: the mark and the page's sections on the left; appearance, language and the action on the right. It floats
   over the first screen's two panels and gains a surface once the page moves under it. It is fixed to the screen rather
   than stuck to the page, and its surface is solid rather than a blur of what passes under it, so the browser never
   works out its place or redraws it while the page scrolls and it holds perfectly still. */
.top { position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--top); transition: background-color 225ms var(--state-ease), box-shadow 225ms var(--state-ease); }
.top.is-scrolled { background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.top__in { display: flex; align-items: center; gap: 12px; height: 100%; width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.top__mark { display: block; flex: none; border-radius: 8px; }
.top__mark img { width: 92px; height: auto; }
.top__menu { display: flex; gap: 2px; margin-inline-start: 28px; }
.top__menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--identity-ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 225ms var(--state-ease), color 225ms var(--state-ease); }
.top__menu a:hover { background: var(--hover); color: var(--ink); }
.top__tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.top__tools .go { margin-inline-start: 4px; }
@keyframes go-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.js .top:not(.show-go) .go { display: none; }
.js .top.show-go .go { animation: go-in 300ms var(--ease) both; }

/* Segmented choices, as on the sign-in page: the current one sits on the pale identity field. */
.seg { display: inline-flex; align-items: center; gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--identity-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 225ms var(--state-ease), color 225ms var(--state-ease); }
.seg button { width: 40px; padding: 0; }
.seg .icon { width: 18px; height: 18px; }
.seg :is(a, button):hover { color: var(--ink); background: color-mix(in srgb, var(--hover) 60%, transparent); }
.seg [aria-current='true'], .seg [aria-pressed='true'] { background: var(--hover); color: var(--ink); }
.seg__short { display: none; }
.seg--lang a { min-height: 44px; padding: 0 14px; font-size: 15px; }

/* Bigger actions for the first and last screens. */
.go--big, .quiet--big { min-height: 58px; padding: 14px 26px 11px; font-size: 17px; border-radius: 14px; }

/* Section rhythm: a large heading and a short lead. */
.title { font-size: clamp(34px, 4.4vw, 60px); font-weight: 600; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.lead { margin-top: 20px; max-width: 42ch; color: var(--ink-muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; text-wrap: pretty; }

/* First screen: the tagline, one sentence, the actions, and a fan of real screens rising from the bottom edge. */
.hero { position: relative; overflow: hidden; background: var(--canvas); padding-top: calc(var(--top) + clamp(32px, 6vh, 72px)); }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { max-width: 16.5ch; font-size: clamp(46px, 6.6vw, 90px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.hero__lead { max-width: 44ch; margin-top: 24px; color: var(--ink-muted); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__line { display: block; }
/* Cerebro at the centre: real app screens joined to it by lines in their own colours, the day's dose below it.
   The stage keeps one shape, so the lines, the screens and the core scale together. */
.hub { position: relative; left: 50%; width: max(min(100vw - 2 * var(--gutter), 1240px), 740px); aspect-ratio: 1240 / 560; margin: clamp(40px, 5vw, 64px) 0 calc(-1 * clamp(40px, 5vw, 80px)); translate: -50% 0; container-type: inline-size; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__line, .hub__pulse { fill: none; stroke: var(--line); stroke-linecap: round; }
.hub__line { stroke-width: 2.2; opacity: 0.5; }
.hub__pulse { stroke-width: 4; stroke-dasharray: 0.07 1.4; stroke-dashoffset: 0.07; opacity: 0; }
.line-reader { --line: var(--reader-ink); }
.line-listener { --line: var(--listener-ink); }
.line-writer { --line: var(--writer-ink); }
.line-staff { --line: var(--staff-ink); }
.line-brand { --line: var(--brand); }
.hub__phones { position: absolute; inset: 0; }
.hub__phone { position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r); transform-origin: 50% 0; }
.hub__phone:nth-child(2), .hub__phone:nth-child(3) { z-index: 1; }
.hub__phone > img { width: 100%; filter: var(--shot-shadow); }
.hub__core { position: absolute; z-index: 2; left: calc(508 / 1240 * 100%); top: calc(68 / 560 * 100%); display: grid; place-content: center; gap: 0.3cqi; width: calc(224 / 1240 * 100%); aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: var(--card-shadow); text-align: center; }
.hub__core::before, .hub__core::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand) 40%, transparent); pointer-events: none; }
.hub__core::before { inset: -1.3cqi; }
.hub__core::after { inset: -2.9cqi; border-color: color-mix(in srgb, var(--brand) 18%, transparent); }
.hub__core b { font-size: max(19px, 2.7cqi); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.hub__core span { max-width: 11ch; margin-inline: auto; color: var(--ink-muted); font-size: max(11px, 1.15cqi); line-height: 1.3; }
@keyframes pulse { 0% { stroke-dashoffset: 0.07; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
.js .hub__pulse { animation: pulse 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite; animation-delay: var(--d); }
@keyframes rise { from { transform: translateY(90px); } to { transform: none; } }
@keyframes lift { from { transform: translateY(14px); } to { transform: none; } }
.js .hero__copy > * { animation: lift 900ms var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero__copy > :nth-child(3) { animation-delay: 120ms; }
.js .hub__phone { animation: rise 1200ms var(--ease) both; }
.js .hub__phone:nth-child(2), .js .hub__phone:nth-child(3) { animation-delay: 60ms; }
.js .hub__phone:nth-child(1), .js .hub__phone:nth-child(4) { animation-delay: 140ms; }
.js .hub__phone:nth-child(5) { animation-delay: 220ms; }

/* Application tones: each area and skill wears its field and ink. */
.tone-reader { --field: var(--reader-field); --tone: var(--reader-ink); }
.tone-listener { --field: var(--listener-field); --tone: var(--listener-ink); }
.tone-writer { --field: var(--writer-field); --tone: var(--writer-ink); }
.tone-staff, .tone-speaker { --field: var(--staff-field); --tone: var(--staff-ink); }

/* The apps: tone panels on a shelf, each holding a phone that runs its app's most telling screen. */
.apps { padding-block: var(--section); }
:is(.hero, .mind, .five, .fit, .kin) + :is(.mind, .five, .fit, .kin),
:is(.brain, .apps, .moments, .close) + :is(.brain, .apps, .moments, .close) { padding-top: 0; }
.apps__head { display: grid; justify-items: center; text-align: center; }
.shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 1.8vw, 24px); margin-top: clamp(48px, 6vw, 72px); }
.shelf__item { flex: 0 0 clamp(236px, 22vw, 284px); padding: clamp(18px, 1.8vw, 24px) clamp(18px, 1.8vw, 24px) 22px; border-radius: 30px; background: var(--field); }
.shelf__link { display: block; color: inherit; text-decoration: none; border-radius: 22px; }
.shelf__link:focus-visible { outline: 3px solid var(--tone); outline-offset: 8px; }
.shelf__name { margin-top: 20px; color: var(--tone); font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.shelf__tag { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3px; color: var(--ink-muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.shelf__tag .icon { width: 16px; height: 16px; color: var(--tone); transition: transform 225ms var(--state-ease); }
.shelf__link:hover .shelf__tag .icon { transform: translateX(3px); }
.shelf__link:hover .ph { translate: 0 -6px; }
/* On a narrow screen the shelf can stay in place while the page's scroll slides the apps across. */
.js .apps.is-pinned { overflow-x: clip; }
.js .apps.is-pinned .shelf { position: sticky; overflow: visible; scroll-snap-type: none; will-change: transform; }
.js .apps.is-pinned .wrap::after { content: ""; display: block; height: var(--run, 0px); }

/* The page enters the way a deck slide does: as each part comes into view it rises into place, its siblings one
   after another (home.js marks the parts). */
.js [data-rv] { opacity: 0; translate: 0 28px; }
.js [data-rv].is-in { opacity: 1; translate: none; transition: opacity 700ms var(--ease) var(--rv-d, 0ms), translate 900ms var(--ease) var(--rv-d, 0ms); }
.js tr[data-rv] { translate: none; }
@media print { .js [data-rv] { opacity: 1; translate: none; } }

/* A phone: the frame of the real screenshots (19 of 720 px, #1a2733), so drawn and real screens sit alike.
   Everything inside is sized against the phone's own width, so a screen scales as one picture. */
.ph { position: relative; container-type: inline-size; aspect-ratio: 720 / 1375; filter: var(--shot-shadow); transition: translate 300ms var(--ease); }
.ph--real img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph__slide:not(:first-child) { opacity: 0; }
.ph__mic { position: absolute; left: 50%; top: 89.8%; width: 17cqi; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.ph__mic i { position: absolute; inset: 0; border: 0.9cqi solid #54c400; border-radius: 50%; opacity: 0; }
.ph__screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border: 2.64cqi solid #1a2733; border-radius: 13.5cqi; background: #fff; color: #1d2125; font-size: 4cqi; line-height: 1.35; letter-spacing: 0; text-align: start; }
.ph .icon { flex: none; }
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }

/* The app's drawer, measured on the real screens: a sheet under the picture, exactly as tall as what it holds. */
.scr__art { position: relative; flex: 1 1 0; min-height: 0; }
.scr__art img { width: 100%; height: 100%; object-fit: cover; }
.sheet { position: relative; flex: none; display: grid; gap: 2.8cqi; margin-top: -5.6cqi; padding: 7.6cqi 4.9cqi 6cqi; border-radius: 5.6cqi 5.6cqi 0 0; background: #fff; box-shadow: 0 -0.5cqi 2.2cqi rgb(20 40 60 / 0.1); }
.sheet::before { content: ''; position: absolute; top: 2.4cqi; left: 50%; width: 9.7cqi; height: 1cqi; translate: -50% 0; border-radius: 1cqi; background: #c9ced3; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; margin-top: -1.2cqi; font-size: 5.2cqi; font-weight: 700; line-height: 1.2; }
.sheet__x { display: grid; place-items: center; width: 9.6cqi; height: 9.6cqi; border-radius: 50%; background: #f0f0f0; color: #2a2f33; }
.sheet__x .icon { width: 4.2cqi; height: 4.2cqi; }
.sheet__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2cqi; color: #5d6670; font-size: 2.9cqi; }
.sheet__bar span:last-child { color: #3fb877; }
.sheet__bar i { height: 1.4cqi; border-radius: 1cqi; background: linear-gradient(90deg, #5dcf8f calc(var(--to) * 100%), #e8edf1 0); }
.sheet__q { padding: 4cqi; border-radius: 3.9cqi; background: #eef7fd; font-size: 4cqi; font-weight: 500; line-height: 1.35; text-align: center; text-wrap: balance; }
.sheet__say { justify-items: center; color: #6b7580; font-size: 3.3cqi; font-weight: 500; line-height: 1.3; text-align: center; text-wrap: balance; }
.sheet__ok { color: #2e7d1a; font-weight: 600; }
.sheet__ok .icon { display: inline-block; width: 3.9cqi; height: 3.9cqi; margin-inline-end: 1.2cqi; vertical-align: -0.7cqi; }
.sheet__go { display: flex; align-items: center; justify-content: center; gap: 1.6cqi; min-height: 10.6cqi; border-radius: 3.4cqi; background: #52c300; box-shadow: inset 0 -0.8cqi 0 #3f9a00; color: #fff; font-size: 4.2cqi; font-weight: 600; }
.sheet__go.is-off { background: #edf0f3; box-shadow: inset 0 -0.8cqi 0 #d8dee3; color: #9aa4ad; }
.sheet__go .icon { width: 4cqi; height: 4cqi; }

/* The app's tiles: a raised white card whose chosen state is green, with its radio. */
.tiles { display: grid; gap: 2cqi; }
.tile { position: relative; isolation: isolate; display: flex; align-items: center; gap: 2.6cqi; min-height: 10.4cqi; padding: 1.6cqi 3cqi; border: 0.35cqi solid #dfe3e7; border-bottom-width: 0.8cqi; border-radius: 3cqi; background: #fff; font-size: 3.6cqi; font-weight: 500; line-height: 1.25; }
.tile__on { position: absolute; z-index: -1; inset: -0.35cqi -0.35cqi -0.8cqi; border: 0.55cqi solid #54c400; border-bottom-width: 0.9cqi; border-radius: 3cqi; background: #e8f6e1; color: #2e7d1a; }
.tile__on .icon { position: absolute; inset-inline-end: 2.6cqi; top: 50%; width: 4.4cqi; height: 4.4cqi; translate: 0 -50%; }
.tile__radio { position: relative; flex: none; width: 4.6cqi; height: 4.6cqi; box-sizing: border-box; border: 0.45cqi solid #b9c1c9; border-radius: 50%; }
.tile__radio i { position: absolute; inset: -0.45cqi; border: 0.45cqi solid #54c400; border-radius: 50%; background: radial-gradient(circle, #54c400 0 34%, #fff 36%); }
.tile__radio--tick i { display: grid; place-items: center; background: #54c400; color: #fff; }
.tile__radio--tick .icon { width: 3cqi; height: 3cqi; }
.tile--need { min-height: 9.6cqi; }
.tile__need { color: #6b7580; }
.tile--need b { margin-inline-start: auto; font-weight: 600; }

/* Science and maths: the seesaw. Elif (30 kg) sits 2 m out; the slider moves the grandfather (60 kg) from 3 m to 1 m, and the beam levels when the two turns match. */
.lever { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; background: linear-gradient(#d7eefc, #f3faff 74%); }
.lever::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: #cdeab0; box-shadow: inset 0 0.9cqi 0 #b5dc8f; }
.lever__rig { position: absolute; z-index: 1; left: 50%; bottom: calc(22% + 2cqi); width: 90cqi; height: 15.6cqi; translate: -50% 0; --u: 11.6cqi; }
.lever__pivot { position: absolute; left: 50%; bottom: 0; width: 15cqi; height: 12.8cqi; translate: -50% 0; background: #5d6b7a; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lever__beam { position: absolute; left: 0; right: 0; top: 0; height: 2.8cqi; border-radius: 1.4cqi; background: #54c400; transform-origin: 50% 50%; }
.lever__mark { position: absolute; top: calc(100% + 0.8cqi); left: calc(50% + var(--at) * var(--u)); translate: -50% 0; color: #6b7580; font-size: 2.9cqi; font-weight: 600; }
.lever__mark::before { content: ''; position: absolute; left: 50%; top: -1.4cqi; width: 0.4cqi; height: 1.2cqi; translate: -50% 0; background: #9aa6b2; }
.lever__load { position: absolute; bottom: 100%; left: calc(50% + var(--at, 1) * var(--u)); display: grid; place-content: center; margin-bottom: 0.3cqi; translate: -50% 0; border-radius: 2.4cqi 2.4cqi 1cqi 1cqi; color: #fff; font-size: 3cqi; font-weight: 600; line-height: 1.15; text-align: center; }
.lever__load b { font-size: 3.7cqi; font-weight: 700; }
.lever__load--light { width: 15.6cqi; height: 12.4cqi; background: #4ba3ee; }
.lever__load--heavy { width: 19cqi; height: 16.4cqi; background: #f08c00; }
.moment { position: absolute; left: 4.6cqi; right: 4.6cqi; top: 15cqi; display: grid; justify-items: center; gap: 1.6cqi; }
.moment__row { display: flex; align-items: center; justify-content: center; gap: 2.4cqi; }
.moment__side { padding: 1.4cqi 2.6cqi; border-radius: 2.4cqi; font-size: 3.6cqi; font-weight: 700; white-space: nowrap; }
.moment__side--light { background: #e1f0fd; color: #1f78c8; }
.moment__side--heavy { background: #fff0dc; color: #b45f00; }
.moment__side--heavy b, .moment__sign b { font-weight: inherit; text-align: center; }
.moment__sign { color: #3d464f; font-size: 5.4cqi; font-weight: 700; line-height: 1; }
.moment__sign .lever-eq { color: #2e7d1a; }
.moment__rule { color: #5d6b7a; font-size: 2.9cqi; font-weight: 500; }
.lever-lt, .lever-r1, .lever-r2 { opacity: 0; }
.slide { display: grid; gap: 1.6cqi; padding: 1cqi 1cqi 0; }
.slide__track { position: relative; height: 1.6cqi; margin: 0 2.6cqi; border-radius: 1cqi; background: #e3e8ec; }
.slide__thumb { position: absolute; top: 50%; left: 0; width: 6.6cqi; height: 6.6cqi; box-sizing: border-box; translate: -50% -50%; border: 0.9cqi solid #54c400; border-radius: 50%; background: #fff; box-shadow: 0 0.6cqi 1.4cqi rgb(20 40 60 / 0.2); }
.slide__marks { display: flex; justify-content: space-between; color: #6b7580; font-size: 2.9cqi; font-weight: 500; }

/* Humanities: the timeline and the bank of cards dragged onto it. */
.card { display: grid; place-items: center; margin: -0.4cqi; padding: 1.2cqi; border: 0.35cqi solid #dfe3e7; border-bottom-width: 0.8cqi; border-radius: 3cqi; background: #fff; font-size: 3.1cqi; font-weight: 600; line-height: 1.15; text-align: center; }
.line { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqi; }
.line::before { content: ''; position: absolute; left: 6%; right: 6%; top: 14.4cqi; height: 0.6cqi; border-radius: 1cqi; background: #d6dde4; }
.line__col { display: grid; justify-items: center; gap: 1.6cqi; }
.line__slot { display: grid; width: 100%; min-height: 12cqi; box-sizing: border-box; border: 0.4cqi dashed #c3ccd5; border-radius: 3cqi; }
.line__dot { position: relative; z-index: 1; width: 3.6cqi; height: 3.6cqi; border-radius: 50%; background: #d6dde4; }
.line__dot i { position: absolute; inset: 0; border-radius: 50%; background: #7a55d0; }
.line__year { color: #7a55d0; font-size: 3.2cqi; font-weight: 700; line-height: 1; }
.bank { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqi; }
.bank__place { display: grid; min-height: 12cqi; box-sizing: border-box; border: 0.4cqi dashed #e1e6eb; border-radius: 3cqi; }

/* AI literacy: what the AI said, quoted in the question card. */
.sheet__q--said { display: grid; gap: 1.4cqi; text-align: start; }
.said { display: flex; align-items: center; gap: 1.4cqi; color: #1f78c8; font-size: 2.9cqi; font-weight: 600; }
.said .icon { width: 3.6cqi; height: 3.6cqi; }
.said__text { font-size: 4.2cqi; font-weight: 600; }
.said__q { color: #3d464f; font-size: 3.5cqi; }

/* Working with AI: the request and its strength. */
.ask { display: grid; gap: 1.8cqi; text-align: start; }
.ask__label { color: #5d6670; font-size: 2.9cqi; font-weight: 600; }
.ask__text { font-size: 3.7cqi; line-height: 1.35; }
.ask__text .o5 { align-self: start; }
.power { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2cqi; color: #5d6670; font-size: 2.9cqi; font-weight: 500; }
.power__bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8cqi; }
.power__bar i { position: relative; height: 1.4cqi; overflow: hidden; border-radius: 1cqi; background: #dfe7ee; }
.power__bar b { position: absolute; inset: 0; background: #7a55d0; }
.power em { font-style: normal; font-weight: 600; text-align: end; }
.power__weak { color: #d23d6b; }
.power__strong { color: #2e7d1a; }

/* Exam preparation, a full app screen: the score over four mocks, the topics worth most, the week built from them. */
.ph__screen--app { gap: 3cqi; padding: 8cqi 4.6cqi 5.4cqi; background: #f3f6f9; }
.scr__top { display: flex; align-items: center; gap: 2cqi; font-size: 4.6cqi; font-weight: 700; }
.scr__top .icon { width: 5cqi; height: 5cqi; }
.scr__top em { margin-inline-start: auto; padding: 0.8cqi 2.2cqi; border-radius: 3cqi; background: #fff1df; color: #b45f00; font-size: 2.9cqi; font-style: normal; font-weight: 600; }
.scr__card { display: grid; gap: 1.8cqi; padding: 3.6cqi; border-radius: 4cqi; background: #fff; box-shadow: 0 0.4cqi 1.4cqi rgb(30 50 70 / 0.07); }
.scr__small { color: #5d6b7a; font-size: 3cqi; font-weight: 600; }
.scr__btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.6cqi; min-height: 10.6cqi; margin-top: auto; border-radius: 3.4cqi; background: #52c300; box-shadow: inset 0 -0.8cqi 0 #3f9a00; color: #fff; font-size: 4.2cqi; font-weight: 600; }
.scr__btn .icon { width: 4cqi; height: 4cqi; }
.score { display: flex; align-items: flex-end; gap: 2.2cqi; }
.score small { display: block; color: #5d6b7a; font-size: 2.9cqi; font-weight: 600; }
.score__now b { display: block; font-size: 12.6cqi; font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.score__up { display: inline-flex; align-items: center; gap: 0.8cqi; margin-bottom: 1.2cqi; padding: 0.7cqi 1.8cqi; border-radius: 3cqi; background: #e8f6e1; color: #2e7d1a; font-size: 3.2cqi; font-weight: 700; }
.score__up .icon { width: 3.6cqi; height: 3.6cqi; }
.score__goal { margin-inline-start: auto; text-align: end; }
.score__goal b { display: block; color: #2e7d1a; font-size: 5.6cqi; font-weight: 700; line-height: 1.1; }
.trend { display: block; width: 100%; height: auto; overflow: visible; }
.trend__goal { stroke: #54c400; stroke-width: 1.6; stroke-dasharray: 5 5; }
.trend__line { fill: none; stroke: #f08c00; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.trend__dot { fill: #fff; stroke: #f08c00; stroke-width: 3; }
.trend__dot.is-now { fill: #f08c00; stroke: #ffe3bf; stroke-width: 4; }
.trend__num { fill: #5d6b7a; font-size: 10.5px; font-weight: 600; text-anchor: middle; }
.rank { display: flex; align-items: center; gap: 1.6cqi; padding-top: 1.6cqi; border-top: 0.3cqi solid #eef1f4; color: #3d464f; font-size: 3.3cqi; font-weight: 500; }
.rank .icon { width: 4cqi; height: 4cqi; color: #f08c00; }
.rank b { margin-inline-start: auto; color: #1d2125; font-size: 3.9cqi; font-weight: 700; }
.gain { display: grid; grid-template-columns: 2.6cqi 1fr auto; align-items: center; gap: 2cqi; font-size: 3.5cqi; font-weight: 500; }
.gain i { width: 2.6cqi; height: 2.6cqi; border-radius: 50%; background: var(--c); }
.gain b { padding: 0.5cqi 1.8cqi; border-radius: 3cqi; background: #e8f6e1; color: #2e7d1a; font-size: 3.2cqi; font-weight: 700; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4cqi; color: #5d6b7a; font-size: 2.5cqi; font-weight: 500; text-align: center; }
.week span { display: grid; justify-items: center; gap: 0.9cqi; }
.week small { color: #1d2125; font-size: 2.9cqi; font-weight: 600; }
.week i { width: 100%; height: 6.4cqi; border-radius: 1.8cqi; background: var(--c); opacity: 0.85; }

/* Entrepreneurship: e², a game on its own look (its paper, ink and gold, Fraunces for its voices). */
.ph__screen--game { background: #173b3d; color: #f0e9d7; }
.game__hud { flex: none; display: grid; gap: 2.4cqi; padding: 7.6cqi 4.6cqi 3.2cqi; }
.game__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqi; }
.game__place { display: flex; align-items: center; gap: 1.8cqi; font-family: Fraunces, Georgia, serif; font-size: 5.6cqi; font-weight: 600; line-height: 1; }
.game__place em { padding: 0.3cqi 1cqi; border: 0.3cqi solid #edbf80; color: #edbf80; font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: 2.6cqi; font-style: normal; }
.game__cash { display: grid; justify-items: end; color: #edbf80; font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: 5.6cqi; line-height: 1; }
.game__cash small { margin-bottom: 0.8cqi; color: #f0e9d7; font-family: Poppins, sans-serif; font-size: 2.6cqi; }
.game__row--stats { align-items: center; }
.game__time { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 1.2cqi; font-family: ui-monospace, 'IBM Plex Mono', monospace; }
.game__time .icon { grid-row: span 2; width: 4.6cqi; height: 4.6cqi; color: #edbf80; }
.game__time b { font-size: 4.2cqi; font-weight: 500; line-height: 1; }
.game__time small { font-family: Poppins, sans-serif; font-size: 2.3cqi; opacity: 0.8; }
.game__bar { flex: 1; display: grid; gap: 0.9cqi; max-width: 22cqi; }
.game__bar small { display: flex; justify-content: space-between; font-size: 2.4cqi; }
.game__bar b { font-family: ui-monospace, 'IBM Plex Mono', monospace; font-weight: 500; }
.game__bar i { height: 1.2cqi; background: linear-gradient(90deg, #9fd3b5 calc(var(--to) * 100%), rgb(240 233 215 / 0.18) 0); }
.game__bar + .game__bar i { background: linear-gradient(90deg, #edbf80 calc(var(--to) * 100%), rgb(240 233 215 / 0.18) 0); }
.game__scene { position: relative; flex: 1 1 0; min-height: 0; }
.game__scene img { width: 100%; height: 100%; object-fit: cover; }
.game__tip { position: absolute; left: 3cqi; right: 3cqi; top: 3cqi; display: flex; align-items: center; gap: 2cqi; padding: 1.6cqi 2.4cqi; border-radius: 1cqi; background: rgb(23 59 61 / 0.88); font-size: 2.6cqi; line-height: 1.3; }
.game__tip b { padding-inline-end: 2cqi; border-inline-end: 0.3cqi solid rgb(240 233 215 / 0.35); color: #edbf80; font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: 2.3cqi; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.spot { position: absolute; left: var(--x); top: var(--y); display: grid; justify-items: center; gap: 1cqi; translate: -50% -50%; }
.spot i { position: relative; display: grid; place-items: center; width: 8.4cqi; height: 8.4cqi; box-sizing: border-box; border: 0.5cqi solid #f0e9d7; border-radius: 50%; background: rgb(23 59 61 / 0.9); font-size: 3.6cqi; font-style: normal; font-weight: 700; line-height: 1; }
.spot.is-on i { border-color: #fff7e6; background: #edbf80; color: #173b3d; }
.spot.is-on i::after { content: ''; position: absolute; inset: -1.6cqi; border: 0.5cqi solid #edbf80; border-radius: 50%; }
.spot span { padding: 0.6cqi 1.6cqi; border-radius: 0.8cqi; background: #173b3d; font-size: 2.5cqi; font-weight: 600; white-space: nowrap; }
.book { position: relative; flex: none; display: grid; gap: 1.8cqi; padding: 4.4cqi 4.6cqi 5.4cqi; background: #f0e9d7; color: #173b3d; }
.book__face { position: absolute; inset-inline-end: 3.4cqi; top: -16cqi; width: 20cqi; height: 20cqi; border-radius: 50% 50% 0 0; -webkit-mask-image: linear-gradient(0deg, transparent, #000 30%); mask-image: linear-gradient(0deg, transparent, #000 30%); }
.book__tag { color: #6b7b70; font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: 2.3cqi; letter-spacing: 0.12em; text-transform: uppercase; }
.book__who { display: flex; align-items: baseline; gap: 1.6cqi; font-family: Fraunces, Georgia, serif; font-size: 5.2cqi; font-weight: 600; line-height: 1.05; }
.book__who small { color: #586b6c; font-family: Poppins, sans-serif; font-size: 2.6cqi; font-weight: 500; }
.book__say { font-family: Fraunces, Georgia, serif; font-size: 4.4cqi; font-weight: 600; line-height: 1.2; }
.book__row { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding-top: 1.8cqi; border-top: 0.3cqi solid #d9cfb8; font-size: 3cqi; }
.count { display: flex; align-items: center; gap: 2.2cqi; }
.count em { position: relative; display: grid; place-items: center; width: 6.6cqi; height: 6.6cqi; box-sizing: border-box; border: 0.3cqi solid #173b3d; border-radius: 0.8cqi; font-size: 4cqi; font-style: normal; line-height: 1; }
.count b { min-width: 6cqi; font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: 5cqi; font-weight: 500; text-align: center; }
.price { display: flex; align-items: center; gap: 2.4cqi; }
.price__track { position: relative; width: 20cqi; height: 0.9cqi; background: linear-gradient(90deg, #3f685d 45%, #d9cfb8 0); }
.price__track i { position: absolute; left: 45%; top: 50%; width: 3.6cqi; height: 3.6cqi; translate: -50% -50%; border-radius: 50%; background: #3f685d; }
.price b { font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: 3.6cqi; font-weight: 500; }
.book__label { padding-top: 1.8cqi; border-top: 0.3cqi solid #d9cfb8; font-size: 3cqi; }
/* The notebook's two-way choice; its own class, so the header's and the footer's switchers keep theirs. */
.e2seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8cqi; }
.e2seg > span { position: relative; padding: 1.7cqi 1cqi; border: 0.3cqi solid #b9ad92; border-radius: 0.8cqi; font-size: 3cqi; font-weight: 500; text-align: center; }
.e2seg__on { position: absolute; inset: -0.3cqi; display: grid; place-items: center; border-radius: inherit; background: #173b3d; color: #f0e9d7; font-style: normal; }
.book__go { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.6cqi; min-height: 10cqi; margin-top: 0.6cqi; border-radius: 1.2cqi; background: #ffd368; box-shadow: inset 0 -0.7cqi 0 #d9a93c; color: #173b3d; font-size: 3.9cqi; font-weight: 600; }
.book__go .icon { width: 3.8cqi; height: 3.8cqi; }
.tap { position: absolute; inset: -1.6cqi; border: 0.6cqi solid rgb(237 191 128 / 0.9); border-radius: 1.6cqi; pointer-events: none; }
.book__go .tap { border-color: rgb(23 59 61 / 0.55); }

/* At rest every screen shows its last step: what leaves is gone and no tap shows. */
.ph :is(.o1, .o2, .o3, .o4, .o5, .o6, .o7, .o8, .o9, .p1, .p2, .p3, .p4, .p5, .p6, .p7, .p8, .p9) { opacity: 0; }

/* The screens play: each step appears or grows at its moment of one ten-second loop, then the screen starts again.
   A phone plays only while it is on screen; without scripts or with reduced motion every screen rests on its last step. */
@keyframes a1 { 0%, 13% { opacity: 0; transform: translateY(1.6cqi); } 17%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g1 { 0%, 13% { transform: scaleX(0); } 20%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a2 { 0%, 22% { opacity: 0; transform: translateY(1.6cqi); } 26%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g2 { 0%, 22% { transform: scaleX(0); } 29%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a3 { 0%, 31% { opacity: 0; transform: translateY(1.6cqi); } 35%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g3 { 0%, 31% { transform: scaleX(0); } 38%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a4 { 0%, 40% { opacity: 0; transform: translateY(1.6cqi); } 44%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g4 { 0%, 40% { transform: scaleX(0); } 47%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a5 { 0%, 49% { opacity: 0; transform: translateY(1.6cqi); } 53%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g5 { 0%, 49% { transform: scaleX(0); } 56%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a6 { 0%, 58% { opacity: 0; transform: translateY(1.6cqi); } 62%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g6 { 0%, 58% { transform: scaleX(0); } 65%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a7 { 0%, 67% { opacity: 0; transform: translateY(1.6cqi); } 71%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g7 { 0%, 67% { transform: scaleX(0); } 74%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a8 { 0%, 76% { opacity: 0; transform: translateY(1.6cqi); } 80%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g8 { 0%, 76% { transform: scaleX(0); } 83%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes a9 { 0%, 85% { opacity: 0; transform: translateY(1.6cqi); } 89%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes g9 { 0%, 85% { transform: scaleX(0); } 92%, 93% { transform: scaleX(var(--to, 1)); } 97%, 100% { transform: scaleX(0); } }
@keyframes slide-1 { 0%, 33% { opacity: 1; } 37%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slide-2 { 0%, 33% { opacity: 0; } 37%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes slide-3 { 0%, 66% { opacity: 0; } 70%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mic { 0%, 62% { opacity: 1; } 66%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.62); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes o1 { 0%, 13% { opacity: 1; } 16%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p1 { 0%, 11% { opacity: 0; transform: scale(0.7); } 13% { opacity: 1; transform: scale(1); } 18%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o2 { 0%, 22% { opacity: 1; } 25%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p2 { 0%, 20% { opacity: 0; transform: scale(0.7); } 22% { opacity: 1; transform: scale(1); } 27%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o3 { 0%, 31% { opacity: 1; } 34%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p3 { 0%, 29% { opacity: 0; transform: scale(0.7); } 31% { opacity: 1; transform: scale(1); } 36%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o4 { 0%, 40% { opacity: 1; } 43%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p4 { 0%, 38% { opacity: 0; transform: scale(0.7); } 40% { opacity: 1; transform: scale(1); } 45%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o5 { 0%, 49% { opacity: 1; } 52%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p5 { 0%, 47% { opacity: 0; transform: scale(0.7); } 49% { opacity: 1; transform: scale(1); } 54%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o6 { 0%, 58% { opacity: 1; } 61%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p6 { 0%, 56% { opacity: 0; transform: scale(0.7); } 58% { opacity: 1; transform: scale(1); } 63%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o7 { 0%, 67% { opacity: 1; } 70%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p7 { 0%, 65% { opacity: 0; transform: scale(0.7); } 67% { opacity: 1; transform: scale(1); } 72%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o8 { 0%, 76% { opacity: 1; } 79%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p8 { 0%, 74% { opacity: 0; transform: scale(0.7); } 76% { opacity: 1; transform: scale(1); } 81%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes o9 { 0%, 85% { opacity: 1; } 88%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes p9 { 0%, 83% { opacity: 0; transform: scale(0.7); } 85% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes lever-tilt { 0%, 26% { rotate: 9deg; } 34%, 44% { rotate: 5deg; } 52%, 93% { rotate: 0deg; } 97%, 100% { rotate: 9deg; } }
@keyframes lever-load { 0%, 26% { left: calc(50% + 3 * var(--u)); } 34%, 44% { left: calc(50% + 2 * var(--u)); } 52%, 93% { left: calc(50% + var(--u)); } 97%, 100% { left: calc(50% + 3 * var(--u)); } }
@keyframes lever-ok { 0%, 53% { background: #8a98a5; } 56%, 93% { background: #54c400; } 97%, 100% { background: #8a98a5; } }
@keyframes lever-thumb { 0%, 26% { left: 100%; } 34%, 44% { left: 50%; } 52%, 93% { left: 0%; } 97%, 100% { left: 100%; } }
@keyframes lever-r1 { 0%, 28% { opacity: 1; } 31%, 95% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes lever-r2 { 0%, 28% { opacity: 0; } 31%, 46% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes lever-r3 { 0%, 46% { opacity: 0; } 49%, 93% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes lever-lt { 0%, 48% { opacity: 1; } 51%, 95% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes lever-eq { 0%, 48% { opacity: 0; } 51%, 93% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes draw { 0%, 4% { stroke-dashoffset: 1; } 40%, 93% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 1; } }
@keyframes spot { 0% { opacity: 0.9; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.35); } }
.js .ph .o1 { animation: o1 10s ease infinite; }
.js .ph .p1 { animation: p1 10s ease-out infinite; }
.js .ph .o2 { animation: o2 10s ease infinite; }
.js .ph .p2 { animation: p2 10s ease-out infinite; }
.js .ph .o3 { animation: o3 10s ease infinite; }
.js .ph .p3 { animation: p3 10s ease-out infinite; }
.js .ph .o4 { animation: o4 10s ease infinite; }
.js .ph .p4 { animation: p4 10s ease-out infinite; }
.js .ph .o5 { animation: o5 10s ease infinite; }
.js .ph .p5 { animation: p5 10s ease-out infinite; }
.js .ph .o6 { animation: o6 10s ease infinite; }
.js .ph .p6 { animation: p6 10s ease-out infinite; }
.js .ph .o7 { animation: o7 10s ease infinite; }
.js .ph .p7 { animation: p7 10s ease-out infinite; }
.js .ph .o8 { animation: o8 10s ease infinite; }
.js .ph .p8 { animation: p8 10s ease-out infinite; }
.js .ph .o9 { animation: o9 10s ease infinite; }
.js .ph .p9 { animation: p9 10s ease-out infinite; }
.js .ph .lever__beam { animation: lever-tilt 10s cubic-bezier(0.34, 1.3, 0.64, 1) infinite, lever-ok 10s ease infinite; }
.js .ph .lever__load--heavy { animation: lever-load 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .slide__thumb { animation: lever-thumb 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .lever-r1 { animation: lever-r1 10s linear infinite; }
.js .ph .lever-r2 { animation: lever-r2 10s linear infinite; }
.js .ph .lever-r3 { animation: lever-r3 10s linear infinite; }
.js .ph .lever-lt { animation: lever-lt 10s linear infinite; }
.js .ph .lever-eq { animation: lever-eq 10s linear infinite; }
.js .ph .trend__line { animation: draw 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .spot.is-on i::after { animation: spot 1.8s ease-out infinite; }
.js .ph .a1 { animation: a1 10s ease infinite; }
.js .ph .g1 { animation: g1 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a2 { animation: a2 10s ease infinite; }
.js .ph .g2 { animation: g2 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a3 { animation: a3 10s ease infinite; }
.js .ph .g3 { animation: g3 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a4 { animation: a4 10s ease infinite; }
.js .ph .g4 { animation: g4 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a5 { animation: a5 10s ease infinite; }
.js .ph .g5 { animation: g5 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a6 { animation: a6 10s ease infinite; }
.js .ph .g6 { animation: g6 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a7 { animation: a7 10s ease infinite; }
.js .ph .g7 { animation: g7 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a8 { animation: a8 10s ease infinite; }
.js .ph .g8 { animation: g8 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph .a9 { animation: a9 10s ease infinite; }
.js .ph .g9 { animation: g9 10s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph--slides .ph__slide:nth-child(1) { animation: slide-1 9s linear infinite; }
.js .ph--slides .ph__slide:nth-child(2) { animation: slide-2 9s linear infinite; }
.js .ph--slides .ph__slide:nth-child(3) { animation: slide-3 9s linear infinite; }
.js .ph--slides .ph__mic { animation: mic 9s linear infinite; }
.js .ph--slides .ph__tap { animation: slides-tap 9s ease-out infinite; }
.js .ph .ph__mic i { animation: ring 1.6s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.js .ph:not(.is-live) * { animation-play-state: paused !important; }

/* Thinking in the language: one heading, then the four skills, each a tone panel with its real screen. */
.think__head { display: grid; justify-items: center; text-align: center; }
.think__head .title { max-width: 18ch; }
.think__head .lead { max-width: 46ch; }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.skill { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 28px; background: var(--field); }
.skill__name { position: absolute; inset-inline-start: 26px; top: 22px; color: var(--tone); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; }

/* Cerebro at work: the words beside the real view a teacher sees. */
.brain { padding-block: var(--section); }
.brain__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.brain__copy .title { max-width: 14ch; }
.brain__copy .lead { max-width: 40ch; }

/* Every school its own way: country profiles stacked like a file. */
.fit { background: var(--canvas); padding-block: var(--section); }
.fit__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.fit__copy .title { max-width: 13ch; }
.cards { position: relative; display: grid; }
.cards__card { grid-area: 1 / 1; width: 100%; margin-top: calc(var(--i) * 58px); border-radius: 16px; box-shadow: var(--card-shadow); transform: scale(calc(1 - (3 - var(--i)) * 0.045)); transform-origin: top center; }

/* The close: one panel on the sky, the same scale as the first screen. */
.close { padding: var(--section) 0 clamp(72px, 8vw, 112px); }
.close--missing { padding-top: calc(var(--top) + clamp(32px, 6vw, 80px)); }

/* The offer of the same page in the visitor's own language: a small note at the bottom corner that never covers the
   header, speaks the language it offers and leaves as quietly as it came. */
.hint { position: fixed; z-index: 60; inset-inline-start: 24px; bottom: 24px; display: flex; align-items: center; gap: 6px 14px; max-width: min(460px, calc(100% - 32px)); padding: 10px 10px 10px 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); color: var(--ink); font-size: 15px; line-height: 1.4; opacity: 0; translate: 0 10px; transition: opacity 260ms var(--state-ease), translate 300ms var(--ease); }
.hint[dir='rtl'] { padding: 10px 18px 10px 10px; }
.hint.is-on { opacity: 1; translate: none; }
.hint__text { flex: 1 1 auto; }
.hint__go { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--hover); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 225ms var(--state-ease); }
.hint__go:hover { background: var(--border); }
.hint__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-muted); cursor: pointer; transition: background 225ms var(--state-ease), color 225ms var(--state-ease); }
.hint__close:hover { background: var(--hover); color: var(--ink); }
.hint__close .icon { width: 18px; height: 18px; }
.hint__go:focus-visible, .hint__close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 680px) {
    .hint { inset-inline: 16px; bottom: 16px; max-width: none; flex-wrap: wrap; }
    .hint__text { flex-basis: calc(100% - 54px); }
    .hint__close { order: 2; }
    .hint__go { order: 3; }
}
@media (prefers-reduced-motion: reduce) { .hint { transition: opacity 160ms linear; translate: none; } }
@media print { .hint { display: none; } }

/* The questions people ask about a page, each folded under its own question, before the page's close. The heading
   holds its place beside the list on wide screens; an answer opens with the list's own easing where the browser can
   animate a folded height, and at once elsewhere. */
.faq { padding-top: var(--section); }
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__title { position: sticky; top: calc(var(--top) + 32px); font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 18px 4px; cursor: pointer; list-style: none; border-radius: 10px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq__q { font-size: clamp(17px, 1.35vw, 19px); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.faq__item summary .icon { flex: none; width: 20px; height: 20px; color: var(--identity-ink); transition: rotate 300ms var(--ease), color 225ms var(--state-ease); }
.faq__item summary:hover .icon { color: var(--ink); }
.faq__item[open] summary .icon { rotate: 180deg; }
.faq__a { max-width: 62ch; padding: 0 4px 26px; color: var(--ink-muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
    @supports (interpolate-size: allow-keywords) {
        .faq__item { interpolate-size: allow-keywords; }
        .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 300ms var(--ease), content-visibility 300ms allow-discrete; }
        .faq__item[open]::details-content { block-size: auto; }
    }
}
@media (max-width: 1024px) {
    .faq__in { grid-template-columns: minmax(0, 1fr); }
    .faq__title { position: static; margin-bottom: 20px; }
}
.close__panel { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(64px, 8vw, 120px) clamp(24px, 5vw, 80px); border-radius: clamp(28px, 3vw, 44px); background: var(--canvas); }
.close__title { max-width: 13ch; font-size: clamp(38px, 5.4vw, 80px); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.close__lead { max-width: 40ch; margin-top: 22px; color: var(--ink-muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; text-wrap: balance; }
.close__lead a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-hover); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color 225ms var(--state-ease); }
.close__lead a:hover { text-decoration-color: var(--ink); }
.close__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- A language app's page ---------- */
.top__menu a { white-space: nowrap; }
/* The menu's mark: the item of the part being read, or of the page itself, turns to ink over a Doz green line that
   grows from its middle, and hands over to the next item as the reader moves on. */
.top__menu a { position: relative; }
.top__menu a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--brand); opacity: 0; transform: scaleX(0.2); transition: transform 300ms var(--ease), opacity 225ms var(--state-ease); }
.top__menu a[aria-current] { color: var(--ink); }
.top__menu a[aria-current]::after { opacity: 1; transform: none; }
.top__menu a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.brain h2:focus-visible, .apps h2:focus-visible, .five h2:focus-visible, .fit h2:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 6px; }
.tone-reader { --dot: #54c400; }
.tone-listener { --dot: #4ba3ee; }
.tone-writer { --dot: #f08c00; }
.tone-staff, .tone-speaker { --dot: #7a55d0; }

/* The first screen: the app's name, a headline and one sentence beside its phone on the app's own tone. */
.hero--app { padding-bottom: calc(var(--section) - clamp(16px, 2vw, 32px)); }
.lhero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
.lhero__name { display: inline-flex; align-items: center; gap: 10px; color: var(--tone); font-size: clamp(16px, 1.3vw, 18px); font-weight: 600; letter-spacing: -0.01em; }
.lhero__name::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--dot); }
.lhero__title { margin-top: 18px; font-size: clamp(42px, 4.9vw, 70px); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.lhero__lead { max-width: 38ch; margin-top: 24px; color: var(--ink-muted); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; text-wrap: pretty; }
.hero--app .hero__actions { justify-content: flex-start; }
.lhero__title .hero__line { display: inline; }
.lhero__stage { position: relative; display: grid; place-items: center; padding: clamp(16px, 2vw, 32px) 0; }
.lhero__stage::before { content: ''; position: absolute; top: 50%; left: 50%; width: 112%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--field); }
.lhero__stage .ph { width: min(76%, 340px); }
.js .lhero__copy > * { animation: lift 900ms var(--ease) both; }
.js .lhero__copy > :nth-child(2) { animation-delay: 60ms; }
.js .lhero__copy > :nth-child(3) { animation-delay: 120ms; }
.js .lhero__copy > :nth-child(4) { animation-delay: 180ms; }
.js .lhero__stage .ph { animation: rise 1200ms var(--ease) 80ms both; }

/* Moments of the app: one heading and a sentence beside a phone on a tone panel, the sides taking turns. */
.moments { padding-block: var(--section); }
.moment-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 104px); }
.moment-row + .moment-row { margin-top: clamp(80px, 9vw, 136px); }
.moment-row:nth-child(even) .moment-row__stage { order: -1; }
.moment-row__copy .title { max-width: 14ch; }
.moment-row__copy .lead { max-width: 34ch; }
.moment-row__stage { display: grid; place-items: center; padding: clamp(36px, 4.4vw, 64px) 24px; border-radius: clamp(28px, 3vw, 40px); background: var(--field); }
.moment-row__stage .ph { width: min(64%, 292px); }

/* Thinking in the language: the four skills as one quiet row, the headline and its sentence. */
.mind { padding-block: var(--section); background: var(--canvas); }
.mind__in { display: grid; justify-items: center; text-align: center; }
.mind__title { max-width: 17ch; font-size: clamp(36px, 4.8vw, 68px); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.mind__text { max-width: 48ch; margin-top: 22px; color: var(--ink-muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; text-wrap: balance; }
.mind__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 22px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-hover); text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: text-decoration-color 225ms var(--state-ease); }
.mind__link:hover { text-decoration-color: var(--ink); }
.mind__link .icon { width: 18px; height: 18px; color: var(--brand); transition: transform 225ms var(--state-ease); }
.mind__link:hover .icon { transform: translateX(3px); }

/* Five-skills: thinking in the language comes first, then the four skills, each a tone panel with its screen and
   one sentence on how it works on that ability. */

/* The sibling apps: tone panels with their real screens, each leading to its page. */
.kin { padding-block: var(--section); background: var(--canvas); }
.skills--links .skill { isolation: isolate; }
.nw { white-space: nowrap; }
.skill__link { position: absolute; inset: 0; color: inherit; text-decoration: none; border-radius: inherit; }
.skill__link:focus-visible { outline: 3px solid var(--tone); outline-offset: 4px; }
.skills--links .skill__name { display: inline-flex; align-items: center; gap: 6px; }
.skills--links .skill__name .icon { width: 18px; height: 18px; transition: transform 225ms var(--state-ease); }
.skill__link:hover .skill__name .icon { transform: translateX(3px); }

/* Real screens in turn: two screens with the tap that leads from one to the other, or four steps of one day. */
.ph__tap { position: absolute; left: var(--x); top: var(--y); width: 15cqi; aspect-ratio: 1; border: 0.9cqi solid rgb(84 196 0 / 0.85); border-radius: 50%; background: rgb(84 196 0 / 0.18); opacity: 0; translate: -50% -50%; pointer-events: none; }
@keyframes pair-1 { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pair-2 { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ph-tap { 0%, 34% { opacity: 0; transform: scale(0.6); } 39% { opacity: 1; transform: scale(1); } 46%, 100% { opacity: 0; transform: scale(1.5); } }
/* A word tapped on the first of three screens, just before the second (its meaning) comes in. */
@keyframes slides-tap { 0%, 22% { opacity: 0; transform: scale(0.6); } 27% { opacity: 1; transform: scale(1); } 34%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes four-1 { 0%, 23% { opacity: 1; } 25%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes four-2 { 0%, 23% { opacity: 0; } 25%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes four-3 { 0%, 48% { opacity: 0; } 50%, 73% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes four-4 { 0%, 73% { opacity: 0; } 75%, 98% { opacity: 1; } 100% { opacity: 0; } }
.js .ph--pair .ph__slide:nth-child(1) { animation: pair-1 8s linear infinite; }
.js .ph--pair .ph__slide:nth-child(2) { animation: pair-2 8s linear infinite; }
.js .ph--pair .ph__tap { animation: ph-tap 8s ease-out infinite; }
.js .ph--four .ph__slide:nth-child(1) { animation: four-1 12s linear infinite; }
.js .ph--four .ph__slide:nth-child(2) { animation: four-2 12s linear infinite; }
.js .ph--four .ph__slide:nth-child(3) { animation: four-3 12s linear infinite; }
.js .ph--four .ph__slide:nth-child(4) { animation: four-4 12s linear infinite; }

/* The learning buddy's chat, measured on its real screen: warm paper, Pip's round face, white bubbles. */
.ph__screen--buddy { gap: 3.4cqi; padding: 9.4cqi 5cqi 6cqi; background: #f6f2ea; }
.bd__head { display: flex; align-items: center; gap: 3cqi; }
.bd__head img { width: 17cqi; height: 17cqi; border-radius: 50%; }
.bd__head b { display: block; font-size: 5cqi; font-weight: 700; line-height: 1.15; }
.bd__head small { color: #6b7076; font-size: 3.2cqi; }
.bd__task { margin-top: 0.6cqi; color: #b03a5b; font-size: 3.4cqi; font-weight: 700; line-height: 1.35; }
.bd__msg { max-width: 88%; padding: 3cqi 3.6cqi; border-radius: 3.6cqi; background: #fff; box-shadow: 0 0.4cqi 1.4cqi rgb(60 40 20 / 0.06); font-size: 3.9cqi; font-weight: 500; line-height: 1.45; }
.bd__word { display: inline-grid; vertical-align: bottom; }
.bd__bad { position: relative; isolation: isolate; }
.bd__bad > i { position: absolute; z-index: -1; inset: 0 -0.7cqi; border-radius: 1.2cqi; background: #fde3e8; box-shadow: inset 0 -0.5cqi 0 #e0566f; }
.bd__good { padding: 0 0.7cqi; margin: 0 -0.7cqi; border-radius: 1.2cqi; background: #e8f6e1; color: #2e7d1a; font-weight: 600; }
.bd__tap { position: absolute; left: 50%; top: 50%; width: 12cqi; aspect-ratio: 1; translate: -50% -50%; border: 0.7cqi solid rgb(84 196 0 / 0.8); border-radius: 50%; background: rgb(84 196 0 / 0.15); pointer-events: none; }
.bd__ok { text-align: start; }
.bd__listen { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 2.6cqi; padding: 2.4cqi 3cqi; border-radius: 3.6cqi; background: #fff; box-shadow: 0 0.4cqi 1.4cqi rgb(60 40 20 / 0.06); }
.bd__listen b { display: block; font-size: 3.6cqi; font-weight: 700; line-height: 1.2; }
.bd__listen small { color: #6b7076; font-size: 2.8cqi; }
.bd__wave { display: flex; align-items: center; justify-content: flex-end; gap: 0.8cqi; height: 7cqi; }
.bd__wave i { width: 0.9cqi; height: var(--h); border-radius: 1cqi; background: #54c400; }
.bd__wave i:nth-child(n+7) { background: #cfe9bd; }
.bd__go { margin-top: auto; }

/* The writing app, measured on its real screen: pale sky ground, the task with its picture, the draft in its
   orange frame, the hint that asks, the word chips and the green Send. */
.ph__screen--write { gap: 3.2cqi; padding: 8.4cqi 4.6cqi 5.6cqi; background: #eff9fe; }
.wr__head { display: flex; align-items: center; gap: 3cqi; }
.wr__back { display: grid; place-items: center; width: 9.4cqi; height: 9.4cqi; border-radius: 50%; background: #fff; box-shadow: 0 0.5cqi 1.4cqi rgb(30 50 70 / 0.12); }
.wr__back .icon { width: 4.4cqi; height: 4.4cqi; }
.wr__head b { font-size: 5.4cqi; font-weight: 700; }
.wr__head em { margin-inline-start: auto; padding: 1.2cqi 2.6cqi; border-radius: 3cqi; background: #fdeccd; color: #8a5a1a; font-size: 3cqi; font-style: normal; font-weight: 600; }
.wr__task { display: grid; grid-template-columns: 18cqi 1fr; align-items: center; gap: 3cqi; padding: 2cqi 3cqi 2cqi 2cqi; border-radius: 3.4cqi; background: #fff; box-shadow: 0 0.4cqi 1.4cqi rgb(30 50 70 / 0.06); font-size: 3.4cqi; font-weight: 500; line-height: 1.4; }
.wr__task img { width: 18cqi; aspect-ratio: 4 / 3; border-radius: 2cqi; object-fit: cover; }
.wr__draft { display: grid; gap: 0.6cqi; padding: 3.4cqi 3.6cqi 2.6cqi; border: 0.5cqi solid #fda420; border-radius: 3.6cqi; background: #fff; font-size: 3.9cqi; line-height: 1.6; }
.wr__draft small { justify-self: end; color: #6b7580; font-size: 2.9cqi; }
.wr__word { position: relative; isolation: isolate; }
.wr__hl { position: absolute; z-index: -1; inset: -0.1cqi -0.6cqi; }
.wr__hl > i { position: absolute; inset: 0; border-radius: 0.8cqi; background: #fdeccd; box-shadow: inset 0 -0.45cqi 0 #fda420; }
.wr__hl--ok { border-radius: 0.8cqi; background: #e3f4d5; box-shadow: inset 0 -0.45cqi 0 #54c400; }
.wr__s { display: inline-block; overflow: hidden; vertical-align: top; }
@keyframes grow-s { 0%, 49% { max-width: 0; } 53%, 93% { max-width: 1em; } 97%, 100% { max-width: 0; } }
.js .ph .wr__s { animation: grow-s 10s ease infinite; }
.wr__hint { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 2.6cqi; padding: 3cqi 3.4cqi; border-radius: 3.4cqi; background: #fff4e2; font-size: 3.5cqi; font-weight: 500; line-height: 1.4; }
.wr__q { display: grid; place-items: center; width: 6.4cqi; height: 6.4cqi; border-radius: 50%; background: #fda420; color: #fff; font-size: 3.6cqi; font-weight: 700; line-height: 1; }
.wr__q .icon { width: 3.6cqi; height: 3.6cqi; }
.wr__hint--ok { align-items: center; background: #e8f6e1; color: #2e7d1a; font-weight: 600; }
.wr__hint--ok .wr__q { background: #54c400; }
.wr__chips { display: flex; flex-wrap: wrap; gap: 1.6cqi; }
.chip { position: relative; padding: 1.3cqi 3cqi 1.1cqi; border-radius: 6cqi; background: #fff; box-shadow: 0 0.4cqi 1.2cqi rgb(30 50 70 / 0.14); font-size: 3.5cqi; font-weight: 500; text-decoration: none; }
.chip--used { background: #e7eef3; box-shadow: none; color: #9fa9b2; text-decoration: line-through; }
.wr__send { position: relative; margin-top: auto; }
.wr__tap { inset: -1.2cqi; border-color: rgb(82 195 0 / 0.5); border-radius: 4.4cqi; }
.wr__plan { display: grid; gap: 1.2cqi; padding: 2.8cqi 3.4cqi; border-radius: 3.4cqi; background: #fff; box-shadow: 0 0.4cqi 1.4cqi rgb(30 50 70 / 0.06); }
.wr__ask { display: flex; align-items: center; gap: 2.2cqi; color: #5d6670; font-size: 3.2cqi; font-weight: 600; }
.wr__answer { padding-inline-start: 6.8cqi; font-size: 3.9cqi; font-weight: 500; }
.wr__chips--plan { padding-inline-start: 6.8cqi; }
.wr__chips--plan .chip { background: #eef7fd; box-shadow: none; }
.wr__start { margin-top: auto; }

/* A sentence frame: the page's picture above, the frame with its gap, and the word bank under it. */
.sheet__q--frame { display: grid; gap: 1.4cqi; }
.sheet__q--frame small { color: #5d6670; font-size: 3cqi; font-weight: 400; }
.sheet__q--frame b { font-size: 4.1cqi; font-weight: 600; line-height: 1.5; }
.fr__gap { display: inline-grid; min-width: 13cqi; vertical-align: bottom; }
.fr__blank { align-self: end; margin-bottom: 1.2cqi; border-bottom: 0.5cqi dashed #8a98a5; }
.fr__word { padding: 0 1cqi; border-radius: 1.2cqi; background: #e3f4d5; color: #2e7d1a; }
.wr__chips--bank { justify-content: center; }
.fr__tap { inset: -1.4cqi; border-color: rgb(82 195 0 / 0.7); border-radius: 8cqi; }

@media (max-width: 1024px) {
    .lhero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .lhero__copy { display: flex; flex-direction: column; align-items: center; }
    .lhero__lead { text-wrap: balance; }
    .hero--app .hero__actions { justify-content: center; }
    .lhero__stage { width: min(100%, 460px); margin-top: 16px; }
    .moment-row { grid-template-columns: 1fr; gap: 32px; max-width: 620px; margin-inline: auto; }
    .moment-row:nth-child(even) .moment-row__stage { order: 0; }
    .moment-row__copy { text-align: center; }
    .moment-row__copy .title, .moment-row__copy .lead { margin-inline: auto; }
}

@media (max-width: 680px) {
    .lhero__title { font-size: clamp(34px, 9.6vw, 46px); }
    .lhero__lead { font-size: 17px; }
    .hero--app .hero__actions { flex-direction: column; align-self: stretch; }
    .lhero__stage .ph { width: min(72%, 300px); }
    .moment-row__stage { border-radius: 24px; }
    .moment-row__stage .ph { width: min(72%, 280px); }
}

/* A story's own skin. Bone Dice wears its folk-art book in every app: parchment, crimson lacquer, gold thread and
   the book's corner and frieze ornaments, taken from the reading app's folk-art skin. The drawer, the cards, the
   buttons and the chips of every drawn screen take it on. */
.ph__screen--folk {
    --f-ink: #26140c;
    --f-soft: #694730;
    --f-paper: #f8f1e3;
    --f-card: #fffdf9;
    --f-line: #c49a62;
    --f-gold: #c89648;
    --f-shade: #a37940;
    --f-red: #a82419;
    --f-red-hi: #c62f23;
    --f-red-deep: #87160d;
    --f-shadow: #540c06;
    --f-zari: #f6c453;
    --f-saffron: #d48311;
    --f-ok: #1e6b3b;
    --f-corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M2 26 V10 A8 8 0 0 1 10 2 H26' fill='none' stroke='%23c89648' stroke-width='1.5'/%3E%3Cpath d='M6 22 V11 A5 5 0 0 1 11 6 H22' fill='none' stroke='%23a82419' stroke-width='1' stroke-opacity='0.6'/%3E%3Cpolygon points='11,7 14,11 11,15 8,11' fill='%23a82419' opacity='0.8'/%3E%3Ccircle cx='11' cy='11' r='1.4' fill='%23f6c453'/%3E%3Ccircle cx='20' cy='6' r='1.5' fill='%23d48311'/%3E%3Ccircle cx='6' cy='20' r='1.5' fill='%23d48311'/%3E%3C/svg%3E");
    --f-corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg transform='translate(36,0) scale(-1,1)'%3E%3Cpath d='M2 26 V10 A8 8 0 0 1 10 2 H26' fill='none' stroke='%23c89648' stroke-width='1.5'/%3E%3Cpath d='M6 22 V11 A5 5 0 0 1 11 6 H22' fill='none' stroke='%23a82419' stroke-width='1' stroke-opacity='0.6'/%3E%3Cpolygon points='11,7 14,11 11,15 8,11' fill='%23a82419' opacity='0.8'/%3E%3Ccircle cx='11' cy='11' r='1.4' fill='%23f6c453'/%3E%3Ccircle cx='20' cy='6' r='1.5' fill='%23d48311'/%3E%3Ccircle cx='6' cy='20' r='1.5' fill='%23d48311'/%3E%3C/g%3E%3C/svg%3E");
    --f-corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg transform='translate(0,36) scale(1,-1)'%3E%3Cpath d='M2 26 V10 A8 8 0 0 1 10 2 H26' fill='none' stroke='%23c89648' stroke-width='1.5'/%3E%3Cpath d='M6 22 V11 A5 5 0 0 1 11 6 H22' fill='none' stroke='%23a82419' stroke-width='1' stroke-opacity='0.6'/%3E%3Cpolygon points='11,7 14,11 11,15 8,11' fill='%23a82419' opacity='0.8'/%3E%3Ccircle cx='11' cy='11' r='1.4' fill='%23f6c453'/%3E%3Ccircle cx='20' cy='6' r='1.5' fill='%23d48311'/%3E%3Ccircle cx='6' cy='20' r='1.5' fill='%23d48311'/%3E%3C/g%3E%3C/svg%3E");
    --f-corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg transform='translate(36,36) scale(-1,-1)'%3E%3Cpath d='M2 26 V10 A8 8 0 0 1 10 2 H26' fill='none' stroke='%23c89648' stroke-width='1.5'/%3E%3Cpath d='M6 22 V11 A5 5 0 0 1 11 6 H22' fill='none' stroke='%23a82419' stroke-width='1' stroke-opacity='0.6'/%3E%3Cpolygon points='11,7 14,11 11,15 8,11' fill='%23a82419' opacity='0.8'/%3E%3Ccircle cx='11' cy='11' r='1.4' fill='%23f6c453'/%3E%3Ccircle cx='20' cy='6' r='1.5' fill='%23d48311'/%3E%3Ccircle cx='6' cy='20' r='1.5' fill='%23d48311'/%3E%3C/g%3E%3C/svg%3E");
    --f-frieze: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' viewBox='0 0 32 10'%3E%3Cline x1='0' y1='1' x2='32' y2='1' stroke='%23c89648' stroke-width='1'/%3E%3Cline x1='0' y1='9' x2='32' y2='9' stroke='%23c89648' stroke-width='1' stroke-opacity='0.65'/%3E%3Cpolygon points='8,2 11.5,5 8,8 4.5,5' fill='%23a82419'/%3E%3Ccircle cx='8' cy='5' r='1' fill='%23f6c453'/%3E%3Ccircle cx='16' cy='5' r='1.3' fill='%23d48311'/%3E%3Cpolygon points='24,2.3 27,5 24,7.7 21,5' fill='%23e59b23'/%3E%3Ccircle cx='24' cy='5' r='0.9' fill='%238c1a11'/%3E%3Ccircle cx='0' cy='5' r='1.3' fill='%23d48311'/%3E%3Ccircle cx='32' cy='5' r='1.3' fill='%23d48311'/%3E%3C/svg%3E");
    --f-lozenge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='20' viewBox='0 0 14 20'%3E%3Cpolygon points='7,4 12,10 7,16 2,10' fill='none' stroke='%23f6c453' stroke-width='1.1' opacity='0.75'/%3E%3Ccircle cx='7' cy='10' r='1.6' fill='%23f6c453' opacity='0.85'/%3E%3C/svg%3E");
    --f-plaque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='10' viewBox='0 0 44 10'%3E%3Cg fill='%23f6c453' stroke='%23a82419' stroke-width='1.3'%3E%3Ccircle cx='8' cy='5' r='2.2'/%3E%3Ccircle cx='15' cy='5' r='2.2'/%3E%3Ccircle cx='29' cy='5' r='2.2'/%3E%3Ccircle cx='36' cy='5' r='2.2'/%3E%3C/g%3E%3Cline x1='22' y1='1' x2='22' y2='9' stroke='%23c89648' stroke-width='1'/%3E%3C/svg%3E");
    background: var(--f-paper);
    color: var(--f-ink);
}
.ph__screen--folk .sheet {
    margin-top: -6.4cqi;
    border: 0.45cqi solid var(--f-gold);
    border-bottom: 0;
    background: var(--f-corner-tl) 2cqi 2cqi / 7cqi no-repeat, var(--f-corner-tr) calc(100% - 2cqi) 2cqi / 7cqi no-repeat, var(--f-paper);
    box-shadow: inset 0 0 0 1cqi var(--f-paper), inset 0 0 0 1.3cqi rgb(200 150 72 / 0.55);
}
.ph__screen--folk .sheet::before { top: 2.2cqi; width: 17cqi; height: 4cqi; border: 0.35cqi solid var(--f-gold); border-radius: 1cqi; background: #fffaf0 var(--f-plaque) center / 86% no-repeat; box-shadow: 0 0.45cqi 0 var(--f-shade); }
.ph__screen--folk .sheet__head { margin-top: 0.4cqi; color: var(--f-ink); font-weight: 700; }
.ph__screen--folk .sheet__x { background: radial-gradient(circle at 50% 32%, var(--f-card), #f0e2c6); box-shadow: inset 0 0 0 0.35cqi var(--f-gold), 0 0.6cqi 0 #b08850; color: var(--f-red-deep); }
.ph__screen--folk .sheet__bar { color: var(--f-ink); font-weight: 600; }
.ph__screen--folk .sheet__bar span:last-child { color: var(--f-ink); }
.ph__screen--folk .sheet__bar i { height: 2.4cqi; border-radius: 2cqi; background: linear-gradient(90deg, var(--f-red) 0, #e59b23 calc(var(--to) * 100%), transparent calc(var(--to) * 100%)), repeating-linear-gradient(90deg, #ecdcbf 0 7.6cqi, #cfb083 7.6cqi 7.9cqi); box-shadow: inset 0 0 0 0.35cqi #b88e55; }
.ph__screen--folk .sheet__q { border: 0.4cqi solid var(--f-line); background: var(--f-card); box-shadow: 0 0.6cqi 0 var(--f-shade); color: var(--f-ink); }
.ph__screen--folk .sheet__say { color: var(--f-soft); }
.ph__screen--folk .sheet__ok { color: var(--f-ok); }
.ph__screen--folk .sheet__go { margin-bottom: 0.8cqi; border-radius: 3cqi; background: var(--f-lozenge) 3.4cqi 50% / 2.6cqi auto no-repeat, var(--f-lozenge) calc(100% - 3.4cqi) 50% / 2.6cqi auto no-repeat, linear-gradient(#d0382a, var(--f-red-deep)); box-shadow: inset 0 0 0 0.4cqi rgb(246 196 83 / 0.7), 0 0.8cqi 0 var(--f-shadow); color: #fff8eb; font-weight: 700; }
.ph__screen--folk .sheet__go.is-off { background: #ecdec4; box-shadow: inset 0 0 0 0.35cqi #cfb083, 0 0.8cqi 0 #bfa074; color: #9c7f58; }
.ph__screen--folk .chip { background: var(--f-card); box-shadow: inset 0 0 0 0.35cqi #b8452f, 0 0.6cqi 0 var(--f-red-deep); color: var(--f-ink); font-weight: 600; }
.ph__screen--folk .chip--used { background: #ecdec4; box-shadow: inset 0 0 0 0.3cqi #cfb083; color: #a1845c; }
.ph__screen--folk .tap { border-color: rgb(246 196 83 / 0.95); }
.ph__screen--folk .fr__blank { border-bottom-color: #c4875f; }
.ph__screen--folk .fr__word { background: linear-gradient(#ffe7a6, var(--f-zari)); box-shadow: inset 0 0 0 0.3cqi var(--f-red), 0 0.4cqi 0 var(--f-red-deep); color: #3b1408; }
.ph__screen--folk .tile__radio { border-color: #cfb083; }
.ph__screen--folk .tile__radio i { border-color: var(--f-red); background: var(--f-red); }
.ph--folk .ph__tap { border-color: rgb(246 196 83 / 0.95); background: rgb(246 196 83 / 0.28); }
/* The story's real screens, and the Arabic app's bare screens, sit in the same phone as the drawn ones. */
/* The phone is its own size container, so its own corners are set in percent of its sides (13.5cqi across, the
   same length down a box 1375/720 as tall). */
.ph--real:is(.ph--folk, .ph--bare, .ph--moon) { border-radius: 13.5% / 7.07%; background: #1a2733; }
.ph--real:is(.ph--folk, .ph--bare, .ph--moon) img { inset: 2.64cqi; width: calc(100% - 5.28cqi); height: calc(100% - 5.28cqi); border-radius: 10.9cqi; object-fit: cover; }
.scr__art--story img { object-position: 50% 40%; }

/* Writing and the buddy in the story's skin: parchment ground, cards edged in gold, the learner's own words in the
   story's crimson. */
.ph__screen--write.ph__screen--folk, .ph__screen--buddy.ph__screen--folk { background: var(--f-corner-bl) 2.6cqi calc(100% - 2.6cqi) / 8cqi no-repeat, var(--f-corner-br) calc(100% - 2.6cqi) calc(100% - 2.6cqi) / 8cqi no-repeat, var(--f-paper); }
.ph__screen--folk .wr__back { background: radial-gradient(circle at 50% 32%, var(--f-card), #f0e2c6); box-shadow: inset 0 0 0 0.35cqi var(--f-gold), 0 0.5cqi 0 #b08850; color: var(--f-ink); }
.ph__screen--folk .wr__head b { color: var(--f-ink); }
.ph__screen--folk .wr__head em { background: linear-gradient(var(--f-red-hi), var(--f-red-deep)); box-shadow: inset 0 0 0 0.3cqi rgb(246 196 83 / 0.7); color: #fff8eb; }
.ph__screen--folk .wr__task, .ph__screen--folk .wr__plan, .ph__screen--folk .bd__listen { border: 0.35cqi solid var(--f-line); background: var(--f-card); box-shadow: 0 0.5cqi 0 var(--f-shade); color: var(--f-ink); }
.ph__screen--folk .wr__task img { box-shadow: 0 0 0 0.35cqi var(--f-gold); }
.ph__screen--folk .wr__draft { border: 0.5cqi solid var(--f-saffron); background: var(--f-card); box-shadow: 0 0.6cqi 0 var(--f-shade); color: var(--f-ink); }
.ph__screen--folk .wr__draft small, .ph__screen--folk .wr__ask { color: var(--f-soft); }
.ph__screen--folk .wr__hl > i { background: #fdf0d2; box-shadow: inset 0 -0.45cqi 0 var(--f-saffron); }
.ph__screen--folk .wr__hl--ok { background: #e2efdc; box-shadow: inset 0 -0.45cqi 0 var(--f-ok); }
.ph__screen--folk .wr__hint { background: #fdf0d2; box-shadow: inset 0 0 0 0.3cqi #e1b46a; color: #4a2a14; }
.ph__screen--folk .wr__q { background: linear-gradient(var(--f-red-hi), var(--f-red-deep)); color: #fff8eb; }
.ph__screen--folk .wr__hint--ok { background: #e2efdc; box-shadow: inset 0 0 0 0.3cqi #a9c9a0; color: var(--f-ok); }
.ph__screen--folk .wr__hint--ok .wr__q { background: var(--f-ok); }
.ph__screen--folk .wr__chips--plan .chip { background: #fdf0d2; box-shadow: inset 0 0 0 0.3cqi #e1b46a; }
.ph__screen--folk .bd__head img { box-shadow: 0 0 0 0.6cqi var(--f-paper), 0 0 0 1cqi var(--f-gold); }
.ph__screen--folk .bd__head b { color: var(--f-ink); }
.ph__screen--folk .bd__head small, .ph__screen--folk .bd__listen small { color: var(--f-soft); }
.ph__screen--folk .bd__task { color: var(--f-red); }
.ph__screen--folk .bd__msg { border-radius: 3.6cqi 3.6cqi 3.6cqi 1cqi; background: var(--f-card); box-shadow: inset 0 0 0 0.3cqi #d9bd8e, 0 0.5cqi 0 var(--f-line); color: var(--f-ink); }
.ph__screen--folk .bd__msg--me { align-self: flex-end; border-radius: 3.6cqi 3.6cqi 1cqi 3.6cqi; background: linear-gradient(var(--f-red-hi), #93190f); box-shadow: inset 0 0 0 0.3cqi rgb(246 196 83 / 0.65), 0 0.5cqi 0 var(--f-shadow); color: #fff8eb; }
.ph__screen--folk .bd__bad > i { background: #fbdcd2; box-shadow: inset 0 -0.5cqi 0 var(--f-red); }
.ph__screen--folk .bd__good { background: #e2efdc; color: var(--f-ok); }
.ph__screen--folk .bd__tap { border-color: rgb(212 131 17 / 0.9); }
.ph__screen--folk .bd__wave i { background: var(--f-red); }
.ph__screen--folk .bd__wave i:nth-child(n+7) { background: #e2c99d; }
.audio { position: relative; display: grid; place-items: center; width: 10.4cqi; height: 10.4cqi; border-radius: 50%; background: radial-gradient(circle at 50% 35%, var(--f-red-hi, #c62f23), var(--f-red-deep, #87160d)); box-shadow: inset 0 0 0 0.4cqi rgb(246 196 83 / 0.7), 0 0.5cqi 0 var(--f-shadow, #540c06); color: #fff8eb; }
.audio .icon { width: 4.8cqi; height: 4.8cqi; }
.audio i { position: absolute; inset: 0; border: 0.7cqi solid var(--f-zari, #f6c453); border-radius: 50%; opacity: 0; }
@keyframes hear { 0%, 2% { opacity: 0; transform: scale(0.8); } 7% { opacity: 0.85; transform: scale(1); } 15% { opacity: 0; transform: scale(1.55); } 100% { opacity: 0; } }
.js .ph .audio i { animation: hear 10s ease-out infinite; }
.sp__mic.bd__mic { align-self: center; margin-top: auto; margin-bottom: 3cqi; }

/* The speaking app's scene, laid out as its real screen and dressed in the story's skin: the page's picture fills
   the screen, the steps and the close seal sit on top, the lines arrive in bubbles under them, the narrator's
   caption and the task sit low, and the crimson microphone waits at the bottom. */
.ph__screen--scene { background: var(--f-ink); }
.sp__beat { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sp__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.sp__beat::after { content: ''; position: absolute; inset: 56% 0 0; background: linear-gradient(rgb(38 20 12 / 0), rgb(38 20 12 / 0.72) 58%); }
.sp__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 3cqi; padding: 9cqi 5cqi 0; }
.sp__steps { display: grid; flex: 1; grid-template-columns: repeat(4, 1fr); gap: 1.4cqi; }
.sp__steps i { height: 1cqi; border-radius: 1cqi; background: rgb(255 248 235 / 0.42); }
.sp__steps i.is-on { background: var(--f-zari); box-shadow: 0 0 0 0.25cqi rgb(84 12 6 / 0.35); }
.sp__x { display: grid; place-items: center; width: 10cqi; height: 10cqi; border-radius: 50%; background: radial-gradient(circle at 50% 32%, var(--f-card), #f0e2c6); box-shadow: inset 0 0 0 0.35cqi var(--f-gold), 0 0.6cqi 0 #8a6534; color: var(--f-red-deep); }
.sp__x .icon { width: 4.4cqi; height: 4.4cqi; }
.sp__talk { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2.6cqi; padding: 4.4cqi 5cqi 0; }
.sp__say { max-width: 80%; padding: 2.6cqi 3.6cqi; border-radius: 3.6cqi; font-size: 3.7cqi; font-weight: 600; line-height: 1.35; }
.sp__say--me { align-self: flex-end; border-radius: 3.6cqi 3.6cqi 1cqi 3.6cqi; background: linear-gradient(var(--f-red-hi), #93190f); box-shadow: inset 0 0 0 0.3cqi rgb(246 196 83 / 0.7), 0 0.6cqi 0 var(--f-shadow); color: #fff8eb; }
.sp__say--them { align-self: flex-start; border-radius: 3.6cqi 3.6cqi 3.6cqi 1cqi; background: var(--f-card); box-shadow: inset 0 0 0 0.3cqi var(--f-gold), 0 0.6cqi 0 var(--f-shade); color: var(--f-ink); }
.sp__cap { position: relative; z-index: 1; margin: auto 7cqi 0; color: #fff8eb; font-size: 4cqi; font-weight: 500; line-height: 1.4; text-align: center; text-shadow: 0 0.3cqi 1.4cqi rgb(38 20 12 / 0.8); text-wrap: balance; }
.sp__task { position: relative; z-index: 1; align-self: center; margin-top: 3cqi; margin-bottom: 30cqi; padding: 1.6cqi 3.6cqi; border-radius: 6cqi; background: var(--f-card); box-shadow: inset 0 0 0 0.3cqi var(--f-gold), 0 0.5cqi 0 var(--f-shade); color: var(--f-red-deep); font-size: 3.2cqi; font-weight: 700; }
.sp__mic { position: absolute; z-index: 2; left: 50%; bottom: 8cqi; display: grid; place-items: center; width: 17cqi; height: 17cqi; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #d23b2c, var(--f-red-deep)); box-shadow: inset 0 0 0 0.5cqi rgb(246 196 83 / 0.8), 0 0 0 1.8cqi rgb(246 196 83 / 0.28), 0 0.9cqi 0 var(--f-shadow); color: #fff8eb; }
.sp__mic .icon { width: 7cqi; height: 7cqi; }
.sp__mic i { position: absolute; inset: -1.8cqi; border: 0.8cqi solid var(--f-zari); border-radius: 50%; opacity: 0; }
.js .ph .sp__mic i { animation: ring 1.6s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.sp__mic--sheet { position: relative; left: auto; bottom: auto; justify-self: center; width: 14cqi; height: 14cqi; margin-top: 1cqi; translate: none; }
.sp__mic--sheet .icon { width: 6cqi; height: 6cqi; }

/* Telling the story from its picture: the steps above the page, then the drawer with the question, what the learner
   said and the feedback. */
.ph__screen--retell .scr__art--story img { object-position: 50% 42%; }
.sp__top--art { position: absolute; left: 0; right: 0; top: 0; padding-top: 9cqi; }
.sp__pill { padding: 1.6cqi 3.4cqi; border-radius: 6cqi; background: var(--f-card); box-shadow: inset 0 0 0 0.3cqi var(--f-gold), 0 0.5cqi 0 var(--f-shade); color: var(--f-ink); font-size: 3.2cqi; font-weight: 700; }
.sp__pill:last-child { margin-inline-start: auto; }
.rt { gap: 2.4cqi; }
.rt__ask { display: grid; gap: 0.6cqi; }
.rt__ask small { color: var(--f-soft); font-size: 3cqi; }
.rt__ask b { font-size: 4.6cqi; font-weight: 700; line-height: 1.25; }
.rt__said { padding: 3cqi 3.4cqi; border: 0.4cqi solid var(--f-line); border-radius: 3.4cqi; background: var(--f-card); box-shadow: 0 0.5cqi 0 var(--f-shade); font-size: 3.7cqi; font-weight: 500; line-height: 1.45; }
.rt__fb { display: grid; gap: 0.8cqi; padding: 2.6cqi 3.4cqi; border-radius: 3.4cqi; background: #e2efdc; box-shadow: inset 0 0 0 0.3cqi #a9c9a0; color: #23412c; font-size: 3.2cqi; line-height: 1.4; }
.rt__fb > b { color: var(--f-ok); font-size: 3.5cqi; }
.rt__fb span b { padding: 0 0.8cqi; border-radius: 1cqi; background: #fdf0d2; color: var(--f-red-deep); }

/* Five-skills' home on the app's own frame: the greeting, the tabs, the day's plan, and the story's own card in its
   skin with its four steps. */
.ph__screen--home { gap: 3.2cqi; padding: 8.4cqi 4.6cqi 0; background: #f0f8fd; }
.fp__hi { display: flex; align-items: center; gap: 2.6cqi; }
.fp__av { display: grid; place-items: center; width: 12.4cqi; height: 12.4cqi; border-radius: 50%; background: linear-gradient(#6fd21b, #48a900); color: #fff; font-size: 5.4cqi; font-weight: 700; }
.fp__name { display: grid; margin-inline-end: auto; font-size: 3.6cqi; line-height: 1.25; }
.fp__name b { font-size: 4.2cqi; }
.fp__btn { position: relative; display: grid; place-items: center; width: 10.4cqi; height: 10.4cqi; border-radius: 50%; background: #fff; box-shadow: 0 0.6cqi 0 #dfe7ec; }
.fp__btn .icon { width: 4.8cqi; height: 4.8cqi; }
.fp__btn--dot::after { content: ''; position: absolute; top: 2.2cqi; inset-inline-end: 2.4cqi; width: 1.8cqi; height: 1.8cqi; border-radius: 50%; background: #ef3b2d; }
.fp__tabs { display: flex; gap: 1.8cqi; overflow: hidden; }
.fp__tabs span { flex: none; padding: 2cqi 3.6cqi; border-radius: 6cqi; background: #fff; font-size: 3.3cqi; font-weight: 500; }
.fp__tabs .is-on { background: #e8f6df; box-shadow: inset 0 0 0 0.3cqi #a6dc80; }
.fp__title { margin-top: 0.8cqi; font-size: 5.4cqi; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.fp__card { --f-paper: #f8f1e3; display: grid; gap: 2cqi; padding: 3cqi 3cqi 3.6cqi; border: 0.45cqi solid #c89648; border-radius: 4.4cqi; background: #f8f1e3; box-shadow: inset 0 0 0 0.9cqi #f8f1e3, inset 0 0 0 1.2cqi rgb(200 150 72 / 0.5), 0 0.8cqi 0 #c49a62; color: #26140c; }
.fp__story { display: flex; align-items: center; gap: 3cqi; padding-bottom: 2.6cqi; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' viewBox='0 0 32 10'%3E%3Cline x1='0' y1='1' x2='32' y2='1' stroke='%23c89648' stroke-width='1'/%3E%3Cline x1='0' y1='9' x2='32' y2='9' stroke='%23c89648' stroke-width='1' stroke-opacity='0.65'/%3E%3Cpolygon points='8,2 11.5,5 8,8 4.5,5' fill='%23a82419'/%3E%3Ccircle cx='8' cy='5' r='1' fill='%23f6c453'/%3E%3Ccircle cx='16' cy='5' r='1.3' fill='%23d48311'/%3E%3Cpolygon points='24,2.3 27,5 24,7.7 21,5' fill='%23e59b23'/%3E%3Ccircle cx='24' cy='5' r='0.9' fill='%238c1a11'/%3E%3C/svg%3E") 0 100% / 6.4cqi 2cqi repeat-x; }
.fp__story img { width: 17cqi; height: 17cqi; border-radius: 2.6cqi; box-shadow: 0 0 0 0.4cqi #c89648, 0 0.6cqi 0 #a37940; }
.fp__story b { display: block; font-size: 5cqi; line-height: 1.15; }
.fp__story small { color: #694730; font-size: 3.1cqi; font-weight: 500; }
.fp__step { position: relative; display: flex; align-items: center; gap: 2.6cqi; padding: 2.2cqi 2.6cqi; border-radius: 3cqi; background: #fffdf9; box-shadow: inset 0 0 0 0.3cqi #d9bd8e, 0 0.5cqi 0 #c49a62; }
.fp__ic { display: grid; place-items: center; width: 9cqi; height: 9cqi; border-radius: 2.6cqi; background: var(--dot); color: #fff; }
.fp__ic .icon { width: 4.6cqi; height: 4.6cqi; }
.fp__txt { display: grid; margin-inline-end: auto; line-height: 1.25; }
.fp__txt b { font-size: 3.8cqi; }
.fp__txt small { color: #694730; font-size: 2.9cqi; }
.fp__go { position: relative; padding: 1.8cqi 3.6cqi; border-radius: 2.4cqi; background: linear-gradient(#d0382a, #87160d); box-shadow: inset 0 0 0 0.3cqi rgb(246 196 83 / 0.7), 0 0.5cqi 0 #540c06; color: #fff8eb; font-size: 3.2cqi; font-weight: 700; }
.fp__tap { inset: -1.4cqi; border-color: rgb(246 196 83 / 0.95); border-radius: 3.6cqi; }
.fp__nav { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; margin: auto -4.6cqi 0; padding: 3cqi 2cqi 5.4cqi; border-radius: 6cqi 6cqi 0 0; background: #fff; box-shadow: 0 -0.4cqi 2cqi rgb(30 50 70 / 0.06); color: #8b969f; font-size: 2.9cqi; text-align: center; }
.fp__nav span { display: grid; justify-items: center; gap: 0.8cqi; }
.fp__nav .icon { width: 5.4cqi; height: 5.4cqi; }
.fp__nav .fp__home { justify-self: center; place-items: center; width: 15cqi; height: 15cqi; margin-top: -8cqi; border-radius: 50%; background: #54c400; box-shadow: 0 0.9cqi 0 #419c00; color: #fff; }
.fp__nav .fp__home .icon { width: 6.4cqi; height: 6.4cqi; }

/* Moon Steps' own skin, worn by its drawn screens on the Arabic pages. The same screens as Bone Dice's, in the
   reading app's mid-century skin for this story: warm cream paper, teal buttons edged in dark ink, a gold drop under
   every card and the story's gold and teal corner triangles. */
.ph__screen--moon {
    --f-ink: #1d1e1c;
    --f-soft: #55605e;
    --f-paper: #f7f2e4;
    --f-card: #fffcf2;
    --f-line: #0d4347;
    --f-gold: #e6ad2d;
    --f-shade: #e6ad2d;
    --f-red: #1f939b;
    --f-red-hi: #23aeb8;
    --f-red-deep: #156c72;
    --f-shadow: #0d4347;
    --f-zari: #e6ad2d;
    --f-saffron: #e6ad2d;
    --f-ok: #1e6b3b;
    --f-corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M3 3 H24 L3 24 Z' fill='%23e6ad2d' stroke='%230d4347' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M3 3 H13 L3 13 Z' fill='%231f939b'/%3E%3C/svg%3E");
    --f-corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg transform='translate(36,0) scale(-1,1)'%3E%3Cpath d='M3 3 H24 L3 24 Z' fill='%23e6ad2d' stroke='%230d4347' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M3 3 H13 L3 13 Z' fill='%231f939b'/%3E%3C/g%3E%3C/svg%3E");
    --f-corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg transform='translate(0,36) scale(1,-1)'%3E%3Cpath d='M3 3 H24 L3 24 Z' fill='%23e6ad2d' stroke='%230d4347' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M3 3 H13 L3 13 Z' fill='%231f939b'/%3E%3C/g%3E%3C/svg%3E");
    --f-corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg transform='translate(36,36) scale(-1,-1)'%3E%3Cpath d='M3 3 H24 L3 24 Z' fill='%23e6ad2d' stroke='%230d4347' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M3 3 H13 L3 13 Z' fill='%231f939b'/%3E%3C/g%3E%3C/svg%3E");
    --f-frieze: none;
    --f-lozenge: none;
    --f-plaque: none;
}
.ph__screen--moon .sheet { border-color: var(--f-line); box-shadow: inset 0 0 0 1cqi var(--f-paper), inset 0 0 0 1.3cqi rgb(31 147 155 / 0.3); }
.ph__screen--moon .sheet::before { width: 12cqi; height: 2.4cqi; border-color: var(--f-ink); border-radius: 2cqi; background: var(--f-card); box-shadow: none; }
.ph__screen--moon :is(.sheet__x, .wr__back, .sp__x) { background: var(--f-card); box-shadow: inset 0 0 0 0.35cqi var(--f-ink), 0 0.6cqi 0 var(--f-ink); color: var(--f-ink); }
.ph__screen--moon .sheet__bar i { background: linear-gradient(90deg, var(--f-red-deep) 0, var(--f-red-hi) calc(var(--to) * 60%), var(--f-gold) calc(var(--to) * 100%), transparent calc(var(--to) * 100%)), var(--f-card); box-shadow: inset 0 0 0 0.35cqi var(--f-ink); }
.ph__screen--moon :is(.sheet__go, .fp__go) { background: linear-gradient(var(--f-red-hi), var(--f-red-deep)); box-shadow: inset 0 0 0 0.4cqi var(--f-line), 0 0.8cqi 0 var(--f-gold); color: #fff; }
.ph__screen--moon .sheet__go.is-off { background: #ebe2cc; box-shadow: inset 0 0 0 0.35cqi #b9b19c, 0 0.8cqi 0 #d6ccb2; color: #7d7768; }
.ph__screen--moon .chip { background: var(--f-card); box-shadow: inset 0 0 0 0.35cqi var(--f-ink), 0 0.6cqi 0 var(--f-ink); color: var(--f-ink); }
.ph__screen--moon .chip--used { background: #ebe2cc; box-shadow: inset 0 0 0 0.3cqi #b9b19c; color: #8b8475; }
.ph__screen--moon :is(.tap, .fp__tap) { border-color: rgb(230 173 45 / 0.95); }
.ph__screen--moon .fr__blank { border-bottom-color: #8a9a98; }
.ph__screen--moon .fr__word { background: #d9e8de; box-shadow: inset 0 0 0 0.3cqi var(--f-red), 0 0.4cqi 0 var(--f-red-deep); color: var(--f-line); }
.ph__screen--moon .tile__radio { border-color: #b9b19c; }
.ph__screen--moon .wr__head em { background: linear-gradient(var(--f-red-hi), var(--f-red-deep)); box-shadow: inset 0 0 0 0.3cqi var(--f-line); color: #fff; }
.ph__screen--moon .wr__hl > i { background: #f2dfb1; box-shadow: inset 0 -0.45cqi 0 var(--f-gold); }
.ph__screen--moon .wr__hint { background: #f2dfb1; box-shadow: inset 0 0 0 0.3cqi var(--f-gold); color: #3a2e10; }
.ph__screen--moon .wr__q { color: #fff; }
.ph__screen--moon .wr__chips--plan .chip { background: #f2dfb1; box-shadow: inset 0 0 0 0.3cqi var(--f-gold); }
.ph__screen--moon .bd__msg { box-shadow: inset 0 0 0 0.3cqi var(--f-ink), 0 0.5cqi 0 var(--f-gold); }
.ph__screen--moon :is(.bd__msg--me, .sp__say--me) { background: linear-gradient(var(--f-red-hi), var(--f-red-deep)); box-shadow: inset 0 0 0 0.3cqi var(--f-line), 0 0.5cqi 0 var(--f-gold); color: #fff; }
.ph__screen--moon .bd__bad > i { background: #fbe1dc; box-shadow: inset 0 -0.5cqi 0 #c8553d; }
.ph__screen--moon .bd__tap { border-color: rgb(230 173 45 / 0.9); }
.ph__screen--moon .bd__wave i:nth-child(n+7) { background: #c9dcda; }
.ph__screen--moon .audio { box-shadow: inset 0 0 0 0.4cqi var(--f-line), 0 0.5cqi 0 var(--f-gold); color: #fff; }
.ph__screen--moon .sp__beat::after { background: linear-gradient(rgb(13 30 33 / 0), rgb(13 30 33 / 0.72) 58%); }
.ph__screen--moon .sp__steps i.is-on { box-shadow: 0 0 0 0.25cqi rgb(13 67 71 / 0.35); }
.ph__screen--moon :is(.sp__say--them, .sp__pill, .sp__task) { box-shadow: inset 0 0 0 0.3cqi var(--f-ink), 0 0.6cqi 0 var(--f-gold); }
.ph__screen--moon .sp__cap { color: #fff; text-shadow: 0 0.3cqi 1.4cqi rgb(13 30 33 / 0.85); }
.ph__screen--moon .sp__mic { background: radial-gradient(circle at 50% 35%, var(--f-red-hi), var(--f-red-deep)); box-shadow: inset 0 0 0 0.5cqi rgb(230 173 45 / 0.85), 0 0 0 1.8cqi rgb(230 173 45 / 0.28), 0 0.9cqi 0 var(--f-shadow); color: #fff; }
.ph__screen--moon .rt__fb span b { background: #f2dfb1; }
.ph__screen--moon .fp__card { border-color: var(--f-line); background: var(--f-paper); box-shadow: inset 0 0 0 0.9cqi var(--f-paper), inset 0 0 0 1.2cqi rgb(31 147 155 / 0.35), 0 0.8cqi 0 var(--f-gold); color: var(--f-ink); }
.ph__screen--moon .fp__story { background: linear-gradient(var(--f-gold), var(--f-gold)) 0 100% / 100% 0.35cqi no-repeat; }
.ph__screen--moon .fp__story img { box-shadow: 0 0 0 0.4cqi var(--f-line), 0 0.6cqi 0 var(--f-gold); }
.ph__screen--moon :is(.fp__story small, .fp__txt small) { color: var(--f-soft); }
.ph__screen--moon .fp__step { background: var(--f-card); box-shadow: inset 0 0 0 0.3cqi var(--f-line), 0 0.5cqi 0 var(--f-gold); }
.ph--moon .ph__tap { border-color: rgb(230 173 45 / 0.95); background: rgb(230 173 45 / 0.28); }

/* The fifth skill on a skill's page: the four skills around the thinking that holds them, this page's skill lit. */
.cross { position: relative; display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); grid-template-areas: ". r ." "s c l" ". w ."; gap: 16px; margin-bottom: 36px; }
.cross::before { content: ''; position: absolute; inset: 28px; border: 2px dashed var(--border-hover); border-radius: 50%; }
.cross__skill, .cross__core { position: relative; display: grid; place-items: center; border-radius: 50%; }
.cross__skill { background: var(--field); color: var(--tone); }
.cross__skill .icon { width: 22px; height: 22px; }
.cross__skill--reader { grid-area: r; }
.cross__skill--listener { grid-area: l; }
.cross__skill--writer { grid-area: w; }
.cross__skill--speaker { grid-area: s; }
.cross__skill.is-here { background: var(--dot); color: #fff; box-shadow: 0 0 0 5px var(--field); }
.cross__core { grid-area: c; background: var(--ink); color: var(--canvas); box-shadow: 0 0 0 6px var(--canvas), 0 0 0 8px var(--border); }
.cross__core .icon { width: 26px; height: 26px; }

/* Five-skills: the fifth skill at the top, its four threads running down into the four skills, each skill on its
   own screen. */
.five { padding-block: var(--section); background: var(--canvas); }
.five__head { display: grid; justify-items: center; text-align: center; }
.five__kicker { margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); font-size: 15px; font-weight: 600; }
.five__head .title { max-width: 17ch; }
.five__head .lead { max-width: 50ch; text-wrap: balance; }
.five__core { display: grid; justify-items: center; margin-top: clamp(48px, 5.4vw, 72px); }
.five__disc { position: relative; display: grid; justify-items: center; gap: 4px; width: min(100%, 360px); padding: 26px 28px 24px; border-radius: 28px; background: var(--ink); color: var(--canvas); text-align: center; }
.five__disc .icon { width: 34px; height: 34px; margin-bottom: 6px; color: #f6c453; }
.five__disc b { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.five__disc small { color: color-mix(in srgb, var(--canvas) 72%, transparent); font-size: 15px; }
.five__ties { display: block; width: 100%; height: clamp(64px, 7vw, 96px); overflow: visible; }
.five__tie, .five__flow { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.five__tie { stroke: var(--border-hover); }
.five__flow { stroke: var(--dot); stroke-width: 3; stroke-dasharray: 0.16 0.84; stroke-dashoffset: 0.16; stroke-linecap: round; opacity: 0; }
@keyframes five-flow { 0% { stroke-dashoffset: 0.16; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -0.84; opacity: 0; } }
.js .five__flow { animation: five-flow 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: var(--d); }
.five__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.five__item { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px 26px; border-radius: 28px; background: var(--field); }
.five__name { display: inline-flex; align-items: center; gap: 8px; color: var(--tone); font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; letter-spacing: -0.02em; }
.five__name .icon { width: 20px; height: 20px; }
.five__name a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; border-radius: 6px; transition: text-decoration-color 225ms var(--state-ease); }
.five__name a:hover { text-decoration-color: currentColor; }
.five__name a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.five__stage { display: grid; place-items: center; }
.five__stage .ph { width: min(86%, 230px); }
.five__text { color: var(--ink); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.five__more { display: flex; justify-content: center; margin-top: 28px; }

/* Cerebro's cases: the headline centred, then one stage on the sky. Each case says where the difficulty shows and
   where it comes from, in one sentence, beside the panel's finding card. Where the stage fits the screen it stays in
   place while the page's scroll turns the cases, the active subject's ring filling as its turn runs; elsewhere the
   cases stand one under another and each comes in as it reaches the screen. */
.cases__head { max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.cases__head .lead { max-width: 54ch; margin-inline: auto; }
.cases__stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 0; padding: clamp(32px, 4.6vw, 72px); border-radius: 36px; background: var(--canvas); }
.cases__panels, .js .case { display: grid; grid-column: 1 / -1; grid-row: 1 / -1; grid-template-columns: subgrid; grid-template-rows: subgrid; }
.case__copy { grid-column: 1; grid-row: 2; }
.case .cc { grid-column: 2; grid-row: 1 / -1; align-self: center; }
.js .case { transition: opacity 400ms var(--state-ease), visibility 0s; }
.js .case:not(.is-on) { visibility: hidden; opacity: 0; transition: opacity 250ms var(--state-ease), visibility 0s 250ms; }
.js .case .case__copy, .js .case .cc { transition: translate 500ms var(--ease); }
.js .case:not(.is-on) .case__copy { translate: 0 12px; }
.js .case:not(.is-on) .cc { translate: 0 18px; }
html:not(.js) .cases__panels { grid-template-rows: none; row-gap: 56px; }
html:not(.js) .case { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
html:not(.js) .case .cc { grid-row: auto; }
html:not(.js) .cases__nav { display: none; }
.js .cases.is-pinned .cases__stage { position: sticky; transform-origin: 50% 0; will-change: transform; }
/* The scroll the pinned stage turns its cases through: room inside its box, where a sticky stage can stay. */
.js .cases.is-pinned::after { content: ""; display: block; height: var(--run, 0px); }
/* Where the browser can tie an animation to the scroll, the stage is fixed to the screen like the header, so the
   browser never works out its place while the page scrolls: it rides the scroll up from its place under the title,
   holds still while the cases turn, and rides on up with the page after the last one, all in the page's own frame.
   Its room in the page is kept by the box's end. The script measures the numbers. */
@keyframes cases-in { from { translate: 0 var(--case-start, 0px); } to { translate: none; } }
@keyframes cases-out { from { transform: none; } to { transform: translateY(calc(0px - var(--case-out, 0px) / var(--case-size, 1))); } }
@supports (animation-timeline: scroll()) {
    .js .cases.is-fixed .cases__stage { position: fixed; z-index: 1; left: var(--case-x); width: var(--case-w); animation: cases-in linear both, cases-out linear both; animation-timeline: scroll(root block); animation-range: 0px var(--case-start, 0px), var(--case-end, 0px) calc(var(--case-end, 0px) + var(--case-out, 0px)); }
    .js .cases.is-fixed::after { height: calc(var(--case-tall, 0px) + var(--run, 0px)); }
}
.js .cases.is-stack .cases__panels { grid-template-rows: none; row-gap: clamp(56px, 7vw, 96px); }
.js .cases.is-stack .case { grid-row: auto; grid-template-rows: none; }
.js .cases.is-stack .cases__nav { display: none; }
@media (min-width: 1025px) {
    .js .cases.is-stack .case__copy, .js .cases.is-stack .case .cc { grid-row: 1; }
    .js .cases.is-stack .case__copy { align-self: center; }
}
/* A case's bars grow in order as it comes in, from the side its language starts. */
.js .case .cc__bar i { transform-origin: left center; transition: transform 800ms var(--ease) calc(160ms + var(--n, 0) * 110ms); }
html[dir="rtl"].js .case .cc__bar i { transform-origin: right center; }
.js .case:not(.is-on) .cc__bar i { transform: scaleX(0); transition-duration: 0s; transition-delay: 0s; }

.route { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.route__node { display: contents; }
.route__node small { grid-column: 1; color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.route__chip { display: inline-flex; grid-column: 2; justify-self: start; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 8px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--lift); color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.2; }
.route__chip i { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--field); color: var(--tone); }
.route__chip .icon { width: 19px; height: 19px; }
.route__node--root .route__chip { background: var(--ink); box-shadow: 0 10px 24px -12px rgb(38 61 73 / 60%); color: var(--surface); }
.route__node--root .route__chip i { background: var(--brand); color: #fff; }
.route__node--root small { color: var(--brand-edge); font-weight: 600; }
.route__arrow { display: block; grid-column: 2; width: 2px; height: 26px; margin: 4px 0 4px 25px; background: repeating-linear-gradient(180deg, var(--ink-muted) 0 4px, transparent 4px 8px); background-size: 2px 8px; opacity: 0.55; }
.route__arrow > * { display: none; }
/* The dashes flow on the compositor: a strip one dash longer slides down inside the line, so a stage held on screen
   repaints nothing while they run. */
@keyframes route-flow { from { translate: 0 -8px; } to { translate: 0 0; } }
.js .cases.is-live .case.is-on .route__arrow { position: relative; overflow: hidden; background: none; }
.js .cases.is-live .case.is-on .route__arrow::before { content: ""; position: absolute; inset: 0 0 -8px; background: repeating-linear-gradient(180deg, var(--ink-muted) 0 4px, transparent 4px 8px); background-size: 2px 8px; animation: route-flow 700ms linear infinite; }
.case__story { max-width: 28ch; color: var(--ink); font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.32; letter-spacing: -0.02em; text-wrap: pretty; }

.cases__nav { display: flex; grid-column: 1; grid-row: 3; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.cases__dots { display: flex; gap: 8px; }
.cases__dot { position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink-muted); cursor: pointer; transition: background-color 225ms var(--state-ease), color 225ms var(--state-ease), box-shadow 225ms var(--state-ease); }
.cases__dot .icon { width: 20px; height: 20px; }
.cases__dot:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-hover); }
.cases__dot.is-on { background: var(--field); box-shadow: none; color: var(--tone); }
.cases__dot:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cases__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; pointer-events: none; }
.cases__ring circle { fill: none; stroke: var(--tone); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.cases__dot.is-on .cases__ring circle { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 500ms var(--ease); }
.cases__steps { display: flex; align-items: center; gap: 8px; }
.cases__count { margin-inline-end: 6px; color: var(--ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cases__count b { color: var(--ink); font-weight: 600; }
.cases__step { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 225ms var(--state-ease), background-color 225ms var(--state-ease); }
.cases__step:hover { border-color: var(--border-hover); background: var(--hover); }
.cases__step:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cases__step .icon { width: 18px; height: 18px; }
.cc { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }
.cc__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.cc__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--reader-field); color: var(--reader-ink); }
.cc__av .icon { width: 20px; height: 20px; }
.cc__who { display: grid; margin-inline-end: auto; line-height: 1.3; }
.cc__who b { font-size: 16px; font-weight: 600; }
.cc__who small { color: var(--ink-muted); font-size: 14px; }
.cc__badge { padding: 4px 12px; border-radius: 999px; background: var(--listener-field); color: var(--listener-ink); font-size: 13px; font-style: normal; font-weight: 600; white-space: nowrap; }
.cc__rows { display: grid; margin: 0; padding: 6px 22px; list-style: none; }
.cc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, 24%) 3.4em; align-items: center; gap: 16px; padding: 12px 0; }
.cc__row + .cc__row { border-top: 1px solid var(--border); }
.cc__label { display: grid; line-height: 1.35; }
.cc__label b { font-size: 15px; font-weight: 600; }
.cc__label small { color: var(--ink-muted); font-size: 13px; }
.cc__bar { height: 8px; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--border) 70%, transparent); }
.cc__bar i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: #4ba3ee; }
.is-low .cc__bar i { background: #f08c00; }
.is-ok .cc__bar i { background: var(--brand); }
.cc__value { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
.is-low .cc__value { color: var(--writer-ink); }
.is-ok .cc__value { color: var(--reader-ink); }
.cc__find { display: grid; gap: 6px; margin: 4px 14px 14px; padding: 18px 18px 16px; border-radius: 16px; background: var(--reader-field); }
.cc__guess { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
.cc__why { color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.cc__plan { margin-top: 4px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.cc__plan b { font-weight: 600; }
.cc__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cc__go, .cc__quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.cc__go { border-bottom: 2px solid var(--brand-edge); background: var(--brand); color: #fff; }
.cc__go .icon { width: 16px; height: 16px; }
.cc__quiet { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); }

/* A country profile, the panel's own card drawn in code. */
.cty { overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.cty__head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.cty__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--reader-field); color: var(--reader-ink); }
.cty__ic .icon { width: 20px; height: 20px; }
.cty__head b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.cty__head small { color: var(--ink-muted); font-size: 13px; }
.cty__rows { display: grid; margin: 0; padding: 4px 22px; }
.cty__rows > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 12px; padding: 10px 0; }
.cty__rows > div + div { border-top: 1px solid var(--border); }
.cty__rows dt { display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 14px; }
.cty__rows dt .icon { width: 17px; height: 17px; color: var(--identity-ink); }
.cty__rows dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.cty__foot { display: flex; align-items: flex-start; gap: 8px; padding: 12px 22px 16px; background: var(--canvas); color: var(--ink-muted); font-size: 13px; line-height: 1.45; }
.cty__foot .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }

/* A class in the teacher's panel, drawn in code at the panel's own proportions; every size follows the card's
   width, the way a picture of the panel would. */
.pv { container-type: inline-size; display: grid; grid-template-columns: 8.4cqi minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--canvas); box-shadow: var(--card-shadow); color: var(--ink); line-height: 1.35; }
.pv__rail, .pv__main { font-size: 1.6cqi; }
.brain--teach .brain__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.pv .icon { flex: none; }
.pv__rail { display: grid; align-content: start; justify-items: center; gap: 1.6cqi; padding: 2.4cqi 0.6cqi; border-inline-end: 1px solid var(--border); background: var(--surface); }
.pv__rail img { width: 5.4cqi; height: auto; margin-bottom: 1cqi; }
.pv__nav { display: grid; justify-items: center; gap: 0.5cqi; width: 100%; padding: 1cqi 0.2cqi; border-radius: 1.2cqi; color: var(--ink-muted); font-size: 1.25cqi; text-align: center; }
.pv__nav .icon { width: 2.4cqi; height: 2.4cqi; }
.pv__nav.is-on { background: var(--reader-field); color: var(--reader-ink); font-weight: 600; }
.pv__main { display: grid; align-content: start; gap: 1.8cqi; padding: 1.8cqi 2.2cqi 2.4cqi; }
.pv__top { display: flex; align-items: center; gap: 1.2cqi; }
.pv__pick { display: flex; align-items: center; gap: 1cqi; padding: 0.7cqi 1.2cqi 0.7cqi 0.7cqi; border: 1px solid var(--border); border-radius: 1.2cqi; background: var(--surface); }
.pv__pick b { display: block; font-size: 1.45cqi; font-weight: 600; line-height: 1.2; }
.pv__pick small { color: var(--ink-muted); font-size: 1.2cqi; }
.pv__pick > .icon { width: 1.6cqi; height: 1.6cqi; color: var(--ink-muted); }
.pv__pic { display: grid; place-items: center; width: 3.2cqi; height: 3.2cqi; border-radius: 0.9cqi; background: var(--reader-field); color: var(--reader-ink); }
.pv__pic .icon { width: 1.8cqi; height: 1.8cqi; }
.pv__search { display: flex; align-items: center; gap: 0.8cqi; flex: 1; min-width: 0; height: 4.6cqi; margin-inline-start: 1cqi; padding: 0 1.2cqi; border: 1px solid var(--border); border-radius: 1.2cqi; background: var(--surface); color: var(--ink-muted); }
.pv__search .icon { width: 1.8cqi; height: 1.8cqi; }
.pv__search kbd { margin-inline-start: auto; padding: 0.2cqi 0.6cqi; border: 1px solid var(--border); border-radius: 0.6cqi; font: inherit; font-size: 1.1cqi; }
.pv__bell, .pv__me { display: grid; place-items: center; width: 4.4cqi; height: 4.4cqi; border-radius: 50%; }
.pv__bell { border: 1px solid var(--border); background: var(--surface); }
.pv__bell .icon { width: 2cqi; height: 2cqi; }
.pv__me { background: var(--identity-ink); color: var(--surface); font-size: 1.3cqi; font-weight: 600; }
.pv__card { display: grid; gap: 1.2cqi; padding: 2cqi 2.2cqi 1.6cqi; border: 1px solid var(--border); border-radius: 1.6cqi; background: var(--surface); }
.pv__crumbs { display: flex; align-items: center; gap: 0.6cqi; color: var(--ink-muted); font-size: 1.3cqi; }
.pv__crumbs .icon { width: 1.2cqi; height: 1.2cqi; }
.pv__titles { display: flex; align-items: center; gap: 1.6cqi; }
.pv__title { margin-inline-end: auto; font-size: 2.6cqi; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pv__acts { display: flex; gap: 0.8cqi; }
.pv__go, .pv__quiet { display: inline-flex; align-items: center; gap: 0.5cqi; height: 3.6cqi; padding: 0 1.2cqi; border-radius: 1cqi; font-size: 1.35cqi; font-weight: 500; white-space: nowrap; }
.pv__go { border-bottom: 0.25cqi solid var(--brand-edge); background: var(--brand); color: #fff; }
.pv__go .icon { width: 1.6cqi; height: 1.6cqi; }
.pv__quiet { border: 1px solid var(--border); }
.pv__sub { display: flex; align-items: center; gap: 0.8cqi; margin-top: -0.6cqi; color: var(--ink-muted); font-size: 1.3cqi; }
.pv__sub em { padding: 0.1cqi 0.8cqi; border-radius: 1cqi; background: var(--listener-field); color: var(--listener-ink); font-size: 1.1cqi; font-style: normal; font-weight: 600; }
.pv__tabs { display: flex; gap: 2.2cqi; border-bottom: 1px solid var(--border); }
.pv__tabs span { display: inline-flex; align-items: center; gap: 0.6cqi; padding: 0.4cqi 0 1.2cqi; color: var(--ink-muted); font-size: 1.45cqi; font-weight: 500; }
.pv__tabs i { padding: 0 0.6cqi; border-radius: 1cqi; background: var(--hover); font-size: 1.05cqi; font-style: normal; }
.pv__tabs .is-on { box-shadow: inset 0 -0.3cqi 0 var(--brand); color: var(--ink); }
.pv__filters { display: flex; gap: 1cqi; }
.pv__filters span { display: inline-flex; align-items: center; gap: 0.6cqi; height: 3.6cqi; padding: 0 1.2cqi; border: 1px solid var(--border); border-radius: 1cqi; color: var(--ink-muted); font-size: 1.25cqi; }
.pv__filters .pv__find { flex: 1; max-width: 26cqi; }
.pv__filters .icon { width: 1.5cqi; height: 1.5cqi; }
.pv__table { width: 100%; border-collapse: collapse; font-size: 1.5cqi; }
.pv__table th { padding: 1cqi 0.8cqi; border-bottom: 1px solid var(--border); color: var(--ink-muted); font-size: 1.3cqi; font-weight: 600; text-align: start; white-space: nowrap; }
.pv__table td { padding: 1.15cqi 0.8cqi; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pv__table th:first-child, .pv__table td:first-child { padding-inline-start: 0; }
.pv__table td:first-child { font-weight: 600; }
.pv__table tbody tr:last-child td { border-bottom: 0; }
.pv__lv { display: inline-block; min-width: 4.4cqi; padding: 0.2cqi 0.7cqi; border-radius: 0.8cqi; background: var(--field); color: var(--tone); font-size: 1.3cqi; font-weight: 600; text-align: center; }
.pv__table th.pv__think { color: var(--ink); }
.pv__table td.pv__think { display: flex; align-items: center; gap: 0.8cqi; }
.pv__meter { width: 6cqi; height: 0.8cqi; overflow: hidden; border-radius: 1cqi; background: color-mix(in srgb, var(--border) 70%, transparent); }
.pv__meter i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--ink); }
.pv__think b { font-size: 1.4cqi; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv__status { display: inline-block; padding: 0.2cqi 0.9cqi; border-radius: 1cqi; font-size: 1.3cqi; font-weight: 600; }
.pv__status.is-ok { background: var(--reader-field); color: var(--reader-ink); }
.pv__status.is-up { background: var(--listener-field); color: var(--listener-ink); }
.pv__status.is-help { background: var(--writer-field); color: var(--writer-ink); }
.pv__status.is-low { background: var(--hover); color: var(--ink-muted); }
.pv__foot { color: var(--ink-muted); font-size: 1.3cqi; }

/* A sibling app's card carries the app's own phone. */
.skill__ph { position: absolute; left: 50%; top: clamp(70px, 6.4vw, 86px); width: 74%; translate: -50% 0; transition: translate 300ms var(--ease); }
.skill__ph .ph { width: 100%; }
.skill__link:hover .skill__ph { translate: -50% -8px; }
.hub__phone .ph { width: 100%; }

@media (max-width: 1024px) {
    .five__list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
    .five__ties { display: none; }
    .five__core { margin-bottom: 24px; }
    .cases__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 28px; }
    .cases__nav { margin-top: 0; }
    .case__copy { grid-row: 1; }
    .case .cc { grid-column: 1; grid-row: 2; width: 100%; max-width: 640px; justify-self: center; }
    .cases__nav { grid-row: 3; max-width: 640px; width: 100%; justify-self: center; }
    .case__story { max-width: 36ch; }
    .pv { max-width: 760px; }
    .brain--teach .brain__in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
    .five__list { gap: 10px; }
    .five__item { gap: 12px; padding: 16px 12px 18px; border-radius: 22px; }
    .five__name { font-size: 16px; }
    .five__stage .ph { width: 100%; }
    .five__text { font-size: 14.5px; }
    .five__disc { padding: 22px 20px 20px; border-radius: 24px; }
    .cross { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); gap: 12px; margin-bottom: 28px; }
    .cross::before { inset: 24px; }
    .cross__skill .icon { width: 19px; height: 19px; }
    .cases__stage { margin-inline: calc(-1 * var(--gutter) + 8px); padding: 24px 16px 20px; border-radius: 28px; }
    .route { column-gap: 12px; margin-bottom: 20px; }
    .route__node small { font-size: 13px; }
    .route__chip { min-height: 44px; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 22px; font-size: 15px; }
    .route__chip i { width: 32px; height: 32px; }
    .route__arrow { height: 18px; margin-inline-start: 21px; }
    .case__story { font-size: 20px; }
    .cases__nav { justify-content: center; flex-wrap: wrap; }
    .cases__dots { gap: 6px; }
    .cases__dot { width: 42px; height: 42px; }
    .cases__steps { display: none; }
    .cc__head { flex-wrap: wrap; padding: 16px; }
    .cc__badge { order: 3; }
    .cc__rows { padding: 4px 16px; }
    .cc__row { grid-template-columns: minmax(0, 1fr) 3.4em; gap: 6px 12px; }
    .cc__bar { grid-column: 1 / -1; grid-row: 2; }
    .cc__find { margin: 4px 10px 10px; padding: 16px 14px 14px; }
    .cty__head { padding: 12px 16px; }
    .cty__rows { padding: 2px 16px; }
    .cty__rows > div { gap: 8px; padding: 8px 0; }
    .cty__rows dt, .cty__rows dd { font-size: 13px; }
    .cty__foot { padding: 10px 16px 12px; font-size: 12px; }
    .pv { border-radius: 10px; }
    .skill__ph { top: 48px; width: 78%; }
}

/* Legal pages: the title, its date and a short summary on the sky, then the text at a reading width with its list of
   sections beside it; on phones the list folds above the text and every table row becomes a card. */
.legal__head { padding: calc(var(--top) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); background: var(--canvas); }
.legal__title { max-width: 18ch; font-size: clamp(38px, 5vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.legal__date { margin-top: 16px; color: var(--ink-muted); font-size: 15px; }
.legal__brief { max-width: 760px; margin-top: 32px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--lift); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.legal__brief > * + * { margin-top: 14px; }
.legal__brief h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--identity-ink); }
.legal__brief ul { display: grid; gap: 10px; }
.legal__brief li { position: relative; padding-inline-start: 30px; }
.legal__brief li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.legal__brief a, .legal__text a:not(.quiet) { color: var(--identity-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.legal__brief a:hover, .legal__text a:not(.quiet):hover { color: var(--ink); text-decoration-thickness: 2px; }

.legal__head > .wrap, .legal__body { display: grid; grid-template-columns: 264px minmax(0, 760px); justify-content: start; column-gap: clamp(56px, 7vw, 112px); }
.legal__head > .wrap > * { grid-column: 2; }
.legal__body { padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.legal__side { position: sticky; top: calc(var(--top) + 24px); align-self: start; }
.legal__side-title { margin-bottom: 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
.legal__list { display: grid; gap: 2px; }
.legal__list a { position: relative; display: block; padding: 6px 10px 6px 14px; border-radius: 8px; color: var(--ink-muted); font-size: 14px; line-height: 1.45; text-decoration: none; transition: background-color 225ms var(--state-ease), color 225ms var(--state-ease); }
[dir='rtl'] .legal__list a { padding: 6px 14px 6px 10px; }
.legal__list a:hover { background: var(--hover); color: var(--ink); }
/* The section being read: its link darkens on a light ground with a green bar at its start, and keeps its weight so
   the list never reflows as the mark moves. */
.legal__list a::before { content: ''; position: absolute; inset-block: 7px; inset-inline-start: 4px; width: 3px; border-radius: 2px; background: var(--brand); opacity: 0; transition: opacity 225ms var(--state-ease); }
.legal__list a[aria-current='true'] { background: var(--hover); color: var(--ink); }
.legal__list a[aria-current='true']::before { opacity: 1; }
/* Only a screen too short for the whole list lets it scroll on its own. */
@media (min-width: 1025px) and (max-height: 720px) {
    .legal__side-in { max-height: calc(100vh - var(--top) - 48px); overflow-y: auto; scrollbar-width: thin; }
}
/* Where the browser can tie an animation to the scroll, the contents are fixed to the screen like the header, so the
   browser never works out their place while the page scrolls. On the way up from their place at the top of the text
   they ride the scroll itself, drawn in the same frame as the page, and from there they hold still until the text
   runs out, when they ride on up with its end. The script measures where they start (--side-x, --side-w, --side-run)
   and where the text ends (--side-stop, --side-end, --side-out). */
@keyframes legal-side-up { from { transform: translateY(var(--side-run, 0px)); } to { transform: none; } }
@keyframes legal-side-out { from { translate: none; } to { translate: 0 calc(0px - var(--side-out, 0px)); } }
@media (min-width: 1025px) {
    @supports (animation-timeline: scroll()) {
        .legal--fixed .legal__side { position: static; }
        .legal--fixed .legal__side-in { position: fixed; top: calc(var(--top) + 24px); left: var(--side-x); width: var(--side-w); animation: legal-side-up linear both, legal-side-out linear both; animation-timeline: scroll(root block); animation-range: 0px var(--side-run, 0px), var(--side-stop, 0px) var(--side-end, 0px); }
    }
}
/* A link in the contents glides to its section unless reduced motion is asked for; the script does it, and this
   covers the page while the script has not run. */
@media (prefers-reduced-motion: no-preference) {
    html:has(.legal) { scroll-behavior: smooth; }
}
.legal__sec h2:focus { outline: none; }
.legal__sec h2:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.legal__other { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 10px; color: var(--identity-ink); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.legal__other:hover { background: var(--hover); }
.legal__other .icon { width: 16px; height: 16px; }
.legal__fold { display: none; }

.legal__text { min-width: 0; font-size: 17px; line-height: 1.72; }
.legal__sec + .legal__sec { margin-top: clamp(44px, 5vw, 64px); }
.legal__sec h2 { font-size: clamp(22px, 2vw, 27px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.legal__sec h3 { margin-top: 28px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.legal__sec h2 + *, .legal__sec h3 + * { margin-top: 12px; }
.legal__sec p, .legal__sec ul, .legal__sec ol, .legal__sec .legal__table { margin-top: 14px; }
.legal__sec h3 + p, .legal__sec h3 + ul { margin-top: 8px; }
.legal__sec ul { display: grid; gap: 8px; }
.legal__sec ul > li { position: relative; padding-inline-start: 22px; }
.legal__sec ul > li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.legal__sec ol { display: grid; gap: 8px; padding-inline-start: 24px; list-style: decimal; }
.legal__sec ol > li::marker { color: var(--identity-ink); font-weight: 600; }
.legal__sec strong { font-weight: 600; }
.legal__text p, .legal__text li { text-wrap: pretty; }

.legal__table { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal__table th { padding: 12px 16px; background: var(--canvas); color: var(--ink); font-weight: 600; text-align: start; vertical-align: bottom; white-space: nowrap; }
.legal__table td { padding: 12px 16px; border-top: 1px solid var(--border); text-align: start; vertical-align: top; }
.legal__table td:first-child { font-weight: 600; }

.legal__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--border); }
.legal__top { color: var(--ink-muted); font-size: 14px; }

@media (max-width: 1024px) {
    .legal__head > .wrap, .legal__body { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
    .legal__body { row-gap: 32px; }
    .legal__head > .wrap > * { grid-column: 1; }
    .legal__side { display: none; }
    .legal__fold { display: block; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
    .legal__fold summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 18px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 16px; }
    .legal__fold summary::-webkit-details-marker { display: none; }
    .legal__fold summary .icon { width: 18px; height: 18px; color: var(--identity-ink); transition: rotate 225ms var(--state-ease); }
    .legal__fold[open] summary .icon { rotate: 180deg; }
    .legal__fold .legal__list { padding: 0 8px 12px; }
}

@media (max-width: 680px) {
    .legal__text { font-size: 16px; }
    .legal__table { overflow: visible; border: 0; border-radius: 0; background: none; }
    .legal__table table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
    .legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .legal__table tr { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
    .legal__table tr + tr { margin-top: 10px; }
    .legal__table td { padding: 0; border: 0; }
    .legal__table td + td { margin-top: 8px; }
    .legal__table td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--ink-muted); font-size: 13px; font-weight: 500; }
    .legal__table td:first-child { font-size: 16px; }
}

[dir="rtl"] .legal__title { line-height: 1.3; }
[dir="rtl"] .legal__text { line-height: 1.9; }
[dir="rtl"] .legal__brief { line-height: 1.85; }
[dir="rtl"] .legal__table table { line-height: 1.75; }
[dir="rtl"] .legal__sec ul > li::before { top: 0.85em; }

@media print {
    .top, .foot, .legal__side, .legal__fold, .legal__end, .skip { display: none !important; }
    .legal__head { padding: 0 0 24px; background: none; }
    .legal__brief { box-shadow: none; }
    .legal__body { display: block; padding: 0; }
    .legal__sec { break-inside: auto; }
    .legal__sec h2, .legal__sec h3 { break-after: avoid; }
    .legal__table tr { break-inside: avoid; }
}

/* Footer: one quiet row with the appearance choice. */
.foot { padding: 8px 0 40px; color: var(--ink-muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; padding-top: 28px; border-top: 1px solid var(--border); }
.foot__brand img { width: 64px; height: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__links a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; border-radius: 6px; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }
.foot__about { width: 100%; max-width: 76ch; font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.foot__rights { width: 100%; margin-top: -8px; font-size: 13px; }

@media (max-width: 1180px) {
    .top__menu { display: none; }
}

@media (max-width: 1024px) {
    :root { --gutter: 24px; }
    .brain__in, .fit__in { grid-template-columns: 1fr; }
    .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
    .shelf { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
    .shelf::-webkit-scrollbar { display: none; }
    .shelf__item { flex-basis: clamp(236px, 62vw, 284px); scroll-snap-align: start; }
    .cards { max-width: 680px; }
}

@media (max-width: 680px) {
    :root { --gutter: 16px; --top: 64px; }
    .top__in { gap: 8px; }
    .top__mark img { width: 78px; }
    .top__tools { gap: 6px; }
    .seg__long { display: none; }
    .seg__short { display: inline; }
    .seg--lang a { min-width: 40px; padding: 0 10px; }
    .go__long { display: none; }
    .go__short { display: inline; }
    .hero { padding-top: calc(var(--top) + 36px); }
    .hero__title { font-size: clamp(40px, 12.4vw, 54px); }
    .hero__lead { margin-top: 18px; font-size: 17px; }
    .hero__actions { flex-direction: column; align-self: stretch; margin-top: 28px; }
    .hero__line { display: inline; }
    .hub { margin-top: 32px; margin-bottom: -30px; }
    .shelf__item { border-radius: 24px; }
    .skills { gap: 10px; }
    .skill { border-radius: 20px; }
    .skill__name { inset-inline-start: 16px; top: 14px; font-size: 16px; }
    .cards__card { margin-top: calc(var(--i) * 52px); border-radius: 12px; }
    .close__panel { padding: 56px 20px; }
    .close__actions { flex-direction: column; align-self: stretch; }
    .foot__in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .js .hero__copy > *, .js .lhero__copy > *, .js .lhero__stage .ph, .js .hub__phone, .js .hub__pulse, .js .ph * { animation: none !important; }
    .ph__slide:not(:first-child), .ph__mic, .ph__tap { display: none; }
    .js [data-rv] { opacity: 1; translate: none; }
    .js .route__arrow::before { animation: none !important; }
    *, *::before, *::after { transition-duration: 1ms !important; }
}

@media (forced-colors: active) {
    .shelf__item, .skill, .moment-row__stage { border: 1px solid CanvasText; }
    .seg [aria-current='true'], .seg [aria-pressed='true'] { outline: 1px solid CanvasText; }
}

/* Arabic, right to left. The layout mirrors through logical sides; the way icons point turns with it; Arabic letters
   join, so they are never tracked, and their tall marks need more room between lines than Latin headlines. A phone of
   an app that teaches English keeps its English screen left to right (`dir="ltr"`), and none of this reaches inside
   it, so it looks exactly as it does on the English page. */
[dir="rtl"] .icon[data-flip]:not([dir="ltr"] *) { scale: -1 1; }
[dir="rtl"] :not([dir="ltr"], [dir="ltr"] *) { letter-spacing: 0 !important; }
[dir="rtl"] body { line-height: 1.7; }
[dir="rtl"] :is(.hero__title, .lhero__title, .close__title, .mind__title) { line-height: 1.3; }
[dir="rtl"] :is(.title, .case__story, .five__disc b, .hub__core b, .fp__title, .pv__title):not([dir="ltr"] *) { line-height: 1.35; }
[dir="rtl"] :is(.lead, .hero__lead, .lhero__lead, .close__lead) { line-height: 1.75; }
/* The first screen's stage is wider than a phone and centred on Cerebro; a box wider than its column starts from the
   right on a right-to-left page, so there it is centred from the right. */
[dir="rtl"] .hub { left: auto; right: 50%; translate: 50% 0; }

/* Inside a phone of an Arabic app the story keeps its own language: every line takes its direction from its own
   words, so an English story line reads left to right in a right-to-left app. */
[dir="rtl"] .ph__screen:not([dir="ltr"]) :is(p, span, b, small, em, strong, li, s, label, h3, h4) { unicode-bidi: plaintext; }

