/* help.coursemanager.app. The landing page's world (DESIGN.md): warm paper, white working surfaces, plum fields, Host Grotesk with
   Onest for Cyrillic, pills, gold only for the selected control. One stylesheet; the content policy allows no inline style.
   The two font addresses below are placeholders that the build replaces with the hashed names of the font files. */

@font-face {
  font-family: "Host Grotesk";
  src: url(/assets/fonts/host-grotesk.0d7356f2.woff2) format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+018F, U+0300-036F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Onest";
  src: url(/assets/fonts/onest-cyrillic.c3f42230.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --ink: #2d1c3d;
  --ink-2: #4d3f5a;
  --dim: #6b6175;
  --paper: #f6f2ea;
  --sand: #ece4d5;
  --card: #ffffff;
  --line: #e7e0e4;
  --line-strong: #d5cbd5;
  --field-line: #8d8396;
  --gold: #b27b0e;
  --gold-ink: #85590a;
  --gold-soft: #f7edd6;
  --gold-light: #e9cb86;
  --plum-soft: #efe8f6;
  --plum-hover: #3f2a53;
  --on-plum: #f4eef8;
  --on-plum-dim: #c0b3cb;
  --night-line: rgb(244 238 248 / 0.16);
  --shadow-window: 0 1px 1px rgb(45 28 61 / 0.04), 0 34px 80px -36px rgb(45 28 61 / 0.42), 0 14px 30px -20px rgb(45 28 61 / 0.22);
  --shadow-lift: 0 8px 18px -10px rgb(45 28 61 / 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --content: 1240px;
  --h1: clamp(2.65rem, 1.4rem + 4.3vw, 5.2rem);
  --h2: clamp(1.9rem, 1.25rem + 2.6vw, 3.4rem);
  --h1-page: var(--h2);
}
:root:lang(ru) {
  --h2: clamp(1.7rem, 1.15rem + 2.3vw, 3rem);
}
:root {
  --lead: clamp(1.125rem, 1.02rem + 0.32vw, 1.3rem);
  --title: var(--lead);
  --h3: 1.625rem;
  --font: "Host Grotesk", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
  overflow-x: clip;
}
::selection { background: #ecd8a8; color: var(--ink); }
* { scrollbar-color: var(--line-strong) transparent; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
img, svg { display: block; max-width: 100%; }

.wrap, .inner { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }

.skip { position: absolute; top: -80px; left: 10px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }

/* ── Header ──────────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; height: 64px; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 2 * var(--gutter), 1400px); height: 100%; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; font-weight: 700; letter-spacing: -0.025em; text-decoration: none; white-space: nowrap; }
.mark { flex: 0 0 auto; width: 30px; height: 27px; }
.role-nav { display: none; margin-left: auto; }
.role-nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.role-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); font-size: 15px; font-weight: 550; text-decoration: none; }
.role-nav a:hover { color: var(--ink); text-decoration: underline; }
.role-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

.locale { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.locale::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--ink); transition: transform 320ms var(--ease-out); }
.locale[data-active="1"]::before { transform: translateX(100%); }
.locale[data-active="2"]::before { transform: translateX(200%); }
.locale a, .locale span { position: relative; z-index: 1; display: grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 8px; border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.locale a:hover { color: var(--ink); }
.locale span { color: #fff; cursor: default; }
.locale.on-plum { border-color: var(--night-line); }
.locale.on-plum::before { background: var(--on-plum); }
.locale.on-plum a { color: var(--on-plum-dim); }
.locale.on-plum a:hover { color: var(--on-plum); }
.locale.on-plum span { color: var(--ink); }

@supports (animation-timeline: scroll()) {
  .header { animation: settle linear both; animation-timeline: scroll(); animation-range: 0 96px; }
}
@keyframes settle { to { box-shadow: 0 10px 24px -22px rgb(45 28 61 / 0.6); } }

/* ── Search: the link in the header, the box, the results ────── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; margin-left: auto; padding: 0 12px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 200ms ease; }
.search-link:hover { background: var(--plum-soft); }
.search-link .icon { color: var(--ink); }
.search-link span { display: none; }
.search-form { display: grid; gap: 10px; max-width: 40rem; }
.search-form input { width: 100%; min-width: 0; min-height: 54px; padding: 0 18px; border: 1px solid var(--field-line); border-radius: 14px; background: #fdfcfb; color: var(--ink); font: inherit; font-size: 17px; font-weight: 450; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.search-form input::placeholder { color: var(--dim); }
.search-form input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px var(--plum-soft); }
.search-form .button { justify-self: start; }
.search-status { min-height: 1.5em; margin: 20px 0 14px; color: var(--ink-2); font-size: var(--lead); font-weight: 550; }
.search-results { display: grid; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.result { display: grid; gap: 4px 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 22px; border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform 240ms var(--ease-out), box-shadow 240ms ease; }
.result:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.result-title { grid-column: 1; font-size: var(--title); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.result-role { grid-column: 2; grid-row: 1; align-self: start; padding: 3px 12px; border-radius: 999px; background: var(--plum-soft); color: var(--ink); font-size: 13px; font-weight: 600; }
.result-excerpt { grid-column: 1 / -1; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.search { padding-bottom: clamp(56px, 8vw, 112px); }
.browse { margin-top: 8px; }
.browse-title { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; font-weight: 650; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 200ms ease; }
.pill:hover { background: var(--plum-soft); }
.hero-copy .search-form { max-width: 30rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; font-family: inherit; cursor: pointer; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; transition: background-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease; }
.button:hover { background: var(--plum-hover); box-shadow: 0 16px 30px -16px rgb(45 28 61 / 0.8); }
.button:active { transform: scale(0.98); }
.button .icon { color: currentColor; }
.button .icon, .guide-row .icon, .role-list .icon, .tile-link .icon { transition: transform 260ms var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }

/* ── Home: hero, roles ────────────────────────────────── */
.hero-copy { display: grid; gap: 24px; width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; padding-top: clamp(28px, 4vw, 56px); }
.hero h1 { max-width: 12ch; margin: 0; font-size: var(--h1); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.hero h1:lang(ru) { max-width: 14ch; font-size: calc(var(--h1) * 0.88); }
.hero .lead { max-width: 34rem; margin: 0 0 6px; }
.lead { color: var(--ink-2); font-size: var(--lead); line-height: 1.5; text-wrap: pretty; }
.hero-copy .button { justify-self: start; }

.roles { padding-block: clamp(72px, 10vw, 140px); }
.roles-grid { display: grid; gap: 36px; }
.roles-intro h2 { margin: 0 0 16px; font-size: var(--h2); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.roles-intro p { max-width: 30rem; margin: 0; color: var(--ink-2); font-size: var(--lead); line-height: 1.55; }
.role-groups { display: grid; gap: 40px; }
.role-group h3 { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; font-weight: 650; letter-spacing: -0.005em; }
.role-list, .guide-list, .related-tiles, .lang-tiles { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.role-list a, .guide-row, .tile-link { display: grid; align-items: center; gap: 6px 20px; padding: 20px 22px; border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform 240ms var(--ease-out), box-shadow 240ms ease; }
.role-list a { grid-template-columns: minmax(150px, 2fr) minmax(0, 5fr) auto; }
.role-list a:hover, .guide-row:hover, .tile-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.role-list a:hover .icon, .guide-row:hover .icon, .tile-link:hover .icon { transform: translateX(4px); }
.role-name { font-size: var(--title); font-weight: 650; letter-spacing: -0.02em; }
.role-first { max-width: 60ch; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.icon { color: var(--ink-2); }

/* ── Role page, guides list ──────────────────────────────────── */
.page-head { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head h1, .faq-side h1, .notfound h1, .picker h1 { margin: 0 0 18px; font-size: var(--h1-page); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.page-head .lead { max-width: 40rem; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 22px; padding: 0; color: var(--dim); font-size: 15px; list-style: none; }
.crumbs li { display: flex; align-items: center; min-height: 36px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs a { color: var(--ink-2); font-weight: 550; }
.guide-list { margin-bottom: clamp(64px, 9vw, 120px); }
.guide-row { grid-template-columns: minmax(0, 1fr) auto; }
.guide-title { grid-column: 1; font-size: var(--title); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.guide-summary { grid-column: 1; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.guide-row .icon { grid-column: 2; grid-row: 1 / span 2; }
.guide-row.is-faq { background: var(--plum-soft); }

/* ── Guide page ──────────────────────────────────────────────── */
.article-grid { display: grid; gap: 28px; padding-bottom: clamp(48px, 7vw, 96px); }
.toc-title { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; font-weight: 650; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 7px 0; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 46rem; font-size: 17px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.6rem 0 0.9rem; font-size: var(--h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.prose p { margin-bottom: 1.1rem; }
.prose a { font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; }
.prose strong.ui { padding: 0.06em 0.45em; border-radius: 8px; background: var(--plum-soft); color: var(--ink); font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.prose ul { padding: 0; list-style: none; }
.prose ul > li { position: relative; margin-bottom: 0.55rem; padding-left: 1.4rem; }
.prose ul > li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.prose ol { margin: 1.4rem 0 1.6rem; padding: 0; list-style: none; counter-reset: step; }
.prose ol > li { position: relative; padding: 0 0 1.5rem 3.6rem; counter-increment: step; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 650; }
.prose ol > li::after { content: ""; position: absolute; left: 17px; top: 46px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.prose ol > li:last-child { padding-bottom: 0; }
.prose ol > li:last-child::after { display: none; }
.related { padding-bottom: clamp(64px, 9vw, 120px); }
.related h2 { margin: 0 0 18px; font-size: var(--h3); font-weight: 700; letter-spacing: -0.025em; }
.related-tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile-link { grid-template-columns: minmax(0, 1fr) auto; }
.tile-name { font-size: var(--title); font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.tile-text { grid-column: 1; color: var(--ink-2); font-size: 15px; }

/* ── Video: a plum frame ── */
.video-block { padding-bottom: clamp(28px, 4vw, 48px); }
.video-frame { overflow: hidden; border-radius: 18px; background: var(--ink); aspect-ratio: 16 / 9; box-shadow: var(--shadow-window); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.video-frame video::cue { font-family: inherit; font-size: 1.05em; }
.video-block.is-phone .video-frame { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }
.seek { display: inline-grid; place-items: center; min-width: 56px; min-height: 44px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; }
.seek:hover { background: var(--plum-soft); }

/* ── FAQ: filled tiles, one open at a time ───────────────────── */
.faq-layout { display: grid; gap: 28px; padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(64px, 9vw, 120px); }
.faq-side h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); }
.faq-index { margin: 0; padding: 0; list-style: none; }
.faq-index a { display: block; padding: 8px 0; color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.faq-index a:hover { color: var(--ink); text-decoration: underline; }
.tile { margin-bottom: 8px; border-radius: 18px; background: var(--card); transition: background-color 260ms ease; }
.tile summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 14px 24px; cursor: pointer; list-style: none; border-radius: 18px; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary h2 { margin: 0; font-size: var(--title); font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.plus { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform 260ms var(--ease-out), background-color 260ms ease; }
.plus::after { transform: rotate(90deg); }
.tile:not([open]) summary:hover h2 { color: var(--ink-2); }
.tile[open] { background: var(--ink); color: var(--on-plum); }
.tile[open] .plus::before, .tile[open] .plus::after { background: var(--gold-light); }
.tile[open] .plus::after { transform: rotate(0deg); }
.tile:focus-within :focus-visible { outline-color: var(--gold-ink); }
.tile[open] :focus-visible { outline-color: var(--gold-light); }
.answer { max-width: 52ch; padding: 0 24px 26px; font-size: 17px; line-height: 1.6; }
.answer p:last-child { margin-bottom: 0; }
.answer a { color: var(--on-plum); text-decoration-color: var(--gold-light); font-weight: 600; }

/* ── Language picker, 404 ────────────────────────────────────── */
.picker, .notfound { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 10vw, 140px); }
.picker .lead, .notfound .lead { max-width: 40rem; margin-bottom: 32px; }
.lang-tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lang-tiles .tile-link { padding: 26px; align-content: start; min-height: 190px; }
.lang-tiles .tile-name { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.lang-tiles .tile-link .icon { grid-column: 2; grid-row: 1; }

/* ── Footer: a plum field ────────────────────────────────────── */
.footer { background: var(--ink); color: var(--on-plum); padding-block: clamp(64px, 9vw, 120px) 28px; }
.footer ::selection { background: var(--gold-ink); color: #fff; }
.footer :focus-visible { outline-color: var(--gold-light); }
.footer-inner { display: grid; gap: 48px; width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.footer-cta h2 { max-width: 14ch; margin: 0 0 18px; font-size: var(--h2); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.footer-cta p { max-width: 30rem; margin: 0 0 28px; color: var(--on-plum-dim); font-size: var(--lead); line-height: 1.55; }
.cta-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--on-plum); font-size: var(--h3); font-weight: 650; letter-spacing: -0.02em; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.cta-link .icon { color: var(--gold-light); width: 26px; height: 26px; }
.footer-heading { margin: 0 0 12px; color: var(--on-plum-dim); font-size: 13px; font-weight: 600; }
.footer-nav { display: grid; gap: 28px; }
.footer-nav ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-plum); font-size: 17px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; font-weight: 700; letter-spacing: -0.025em; text-decoration: none; }
.copyright { margin: 0; color: var(--on-plum-dim); font-size: 13px; }

/* ── Wide screens ────────────────────────────────────────────── */
@media (min-width: 720px) {
  .role-list a { padding: 24px 28px; }
  .search-link span { display: inline; }
  .search-form { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 1024px) {
  .role-nav { display: flex; align-items: center; gap: 4px; }
  .role-nav ul + ul { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line-strong, var(--line)); }
  .search-link { margin-left: 0; }
  .hero-copy { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); align-items: end; column-gap: clamp(40px, 5vw, 80px); }
  .hero h1, .hero h1:lang(ru) { max-width: none; }
  .hero .lead { margin-bottom: 0; }
  .hero-copy .button { grid-column: 2; }
  .page-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); column-gap: clamp(40px, 5vw, 80px); align-items: end; }
  .page-head .crumbs { grid-column: 1 / -1; }
  .page-head h1 { margin-bottom: 0; }
  .page-head .lead { padding-bottom: 6px; }
  .roles-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .roles-intro { position: sticky; top: 120px; }
  .article-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .toc { position: sticky; top: 100px; }
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .faq-side { position: sticky; top: 100px; }
  .footer-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .footer-brand, .copyright { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .crumbs li[aria-current] { display: none; }
  .role-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .role-list .role-first { grid-column: 1; }
  .role-list .icon { grid-column: 2; grid-row: 1 / span 2; }
  .tile summary { padding: 12px 18px; }
  .answer { padding: 0 18px 22px; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .locale a, .locale span { min-width: 40px; }
}

@media (min-width: 720px) {
}

/* ── Motion: the hero arrives once, the guides answer to the pointer. Entrances only move, they never change opacity,
   so every word is readable (and measurable) from the first frame. ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: arrive 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .tile[open] .answer { animation: open 320ms var(--ease-out); }
}
@keyframes arrive { from { transform: translateY(18px); } }
@keyframes open { from { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
