:root {
  color-scheme: light;
  --paper: #f8f9f5;
  --surface: #ffffff;
  --ink: #202a23;
  --muted: #5c675e;
  /* Three dark stops drive every accent. Each passes WCAG AA both as white-text
     background and as text on the page, so any blend of them does too. */
  --g1: #0f766e;
  --g2: #4338ca;
  --g3: #7e22ce;
  --grad: linear-gradient(120deg, var(--g1), var(--g2) 55%, var(--g3));
  --grad-v: linear-gradient(180deg, var(--g1), var(--g3));
  --green: var(--g1);
  --green-deep: color-mix(in srgb, var(--g1) 78%, #000);
  --line: #dde2d9;
  --line-strong: #c7cfc3;
  --accent-soft: color-mix(in srgb, var(--g2) 9%, #fff);
  --shadow-sm: 0 1px 2px rgba(32, 42, 35, .05);
  --shadow-md: 0 1px 2px rgba(32, 42, 35, .05), 0 12px 28px -16px rgba(32, 42, 35, .28);
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Noto Sans JP', 'Microsoft YaHei', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.7; }

/* A soft wash behind the top of every page; fixed, so it can never cause overflow. */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 640px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 55% at 8% 0%, color-mix(in srgb, var(--g1) 30%, transparent), transparent 72%),
    radial-gradient(40% 50% at 52% -12%, color-mix(in srgb, var(--g2) 24%, transparent), transparent 72%),
    radial-gradient(48% 60% at 96% 6%, color-mix(in srgb, var(--g3) 30%, transparent), transparent 72%);
}

a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p, h1, h2, h3, dd, dl, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: clamp(1.875rem, 1.1rem + 2.6vw, 2.75rem); line-height: 1.18; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); line-height: 1.3; }
h3 { font-size: 1.0625rem; line-height: 1.5; }
small { font-size: .8125rem; }
address { font-style: normal; }
::selection { color: var(--paper); background: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.shell, main, .header-inner { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
main { padding-bottom: 72px; overflow-wrap: anywhere; }
.lede { color: var(--muted); max-width: 62ch; }

/* ---------- App pages ---------- */

.app-page { padding-top: 40px; }
.app-hero { max-width: 62ch; }
.app-hero h1 { margin-top: 10px; }
.app-hero .lede { margin-top: 14px; }
.app-hero .inline-link { margin-top: 10px; }
.app-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.app-section > .lede { margin-top: 10px; }

/* Product visual beside the app name. Every layer is a gradient, never a filter or an
   extra image, so it costs no request and paints cheaply on phones. */
.app-hero.has-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; max-width: none; }
.app-intro { max-width: 62ch; }
.showcase { position: relative; isolation: isolate; }
.showcase::before {
  content: ''; position: absolute; inset: -36px; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--g2) 26%, transparent) 1px, transparent 1.5px) 0 0 / 14px 14px;
  mask-image: radial-gradient(farthest-side, #000 30%, transparent 72%);
}
.showcase::after {
  content: ''; position: absolute; inset: 18% -6% -6%; z-index: -1;
  background: radial-gradient(50% 50% at 30% 60%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 70%), radial-gradient(50% 50% at 70% 40%, color-mix(in srgb, var(--g3) 20%, transparent), transparent 70%);
}
/* A 1px gradient hairline, then the screenshot cropped to its top and dissolving downwards. */
.showcase-frame {
  padding: 1px; border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 55%, #fff), color-mix(in srgb, var(--g2) 25%, #fff) 45%, color-mix(in srgb, var(--g3) 55%, #fff));
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--g2) 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 76%, transparent);
}
.showcase img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; border-radius: 19px; background: #f6f2ea; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 24px; }
.store-card { display: grid; justify-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.qr { display: block; width: 100%; max-width: 168px; height: auto; border-radius: 8px; }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 10px 16px; border-radius: 999px; background: var(--grad); background-size: 160% 100%; color: #fff; font-weight: 600; font-size: .9375rem; text-decoration: none; text-align: center; }
.store-button:hover { background-position: 100% 0; }
.app-page .region-grid { margin-top: 24px; }
.app-page .feedback-form { margin-top: 32px; }

/* ---------- Download and feedback directory ---------- */

.panel { padding-top: 48px; scroll-margin-top: 84px; }
.directory-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; padding-top: 48px; }
.directory-section { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); scroll-margin-top: 84px; }
.directory-section h2 { margin-top: 5px; }
.directory-list { display: grid; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.directory-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.directory-link:hover, .directory-link:focus-visible { color: var(--green); border-color: var(--green); background: var(--accent-soft); }

.panel-head { max-width: 62ch; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.panel-head h2 { margin-top: 10px; }
.panel-head .lede { margin-top: 14px; }

/* Gradient text for short labels and numerals only, never for running text. The solid
   colour above stays as the fallback, and forced-colours mode gets plain text back. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .eyebrow, .chip-label, .card-index, .row-index {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
}
@media (forced-colors: active) {
  .eyebrow, .chip-label, .card-index, .row-index, .hero h1 { background: none; -webkit-text-fill-color: currentColor; }
  .showcase-frame { border: 1px solid CanvasText; }
}

/* ---------- Home panel ---------- */

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--green-deep);
  font-size: .8125rem; font-weight: 600;
}
.status-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.hero { padding-block: 16px 8px; }
.hero h1 { margin-top: 20px; max-width: 16em; }
html[lang="en"] .hero h1, html[lang="fr"] .hero h1, html[lang="es"] .hero h1 { letter-spacing: -.02em; }
/* Latin runs keep LTR reading order but must still start at the page's own start edge. */
[dir="rtl"] .hero h1, [dir="rtl"] .alternate-name, [dir="rtl"] .footer-identity p[dir="ltr"] { text-align: right; }
.alternate-name { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.hero .lede { margin-top: 20px; font-size: 1.0625rem; }

/* Ascii terminals: SVG images drawn at build time (src/ascii-art.js), animated by their own CSS,
   held on one frame for reduced motion. Text and commands are always left to right. */
.ascii-card { position: relative; overflow: hidden; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); direction: ltr; }
.ascii-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad); }
.ascii-art { display: block; width: 100%; height: auto; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: end; }
.products-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: end; }
.products-head .ascii-card { padding-block: 16px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: start; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-copy { max-width: 52ch; }
.about-copy > p:first-child { color: var(--muted); }
.chip-label { margin-top: 28px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.chip-row li { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: .8125rem; color: var(--ink); }
.inline-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 12px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.inline-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.inline-link svg { transition: transform 160ms ease-out; }
[dir="rtl"] .inline-link svg { transform: scaleX(-1); }
.inline-link:hover svg { transform: translateX(3px); }
[dir="rtl"] .inline-link:hover svg { transform: scaleX(-1) translateX(3px); }
.contact-card { padding: 24px; border: 1.5px solid transparent; border-radius: var(--radius); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); }
.contact-card h2 { font-size: 1.125rem; line-height: 1.4; }
.contact-card > p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.email-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; margin-top: 18px; padding: 10px 20px;
  border-radius: 999px; background: var(--grad); background-size: 160% 100%; background-position: 0% 0; color: #fff;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  overflow-wrap: anywhere; max-width: 100%;
}
.email-button:hover { background-position: 100% 0; }
.location { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; }
.location > span { color: var(--muted); }

/* ---------- Focus panel ---------- */

.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.focus-card { position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.focus-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 320ms cubic-bezier(.16, 1, .3, 1); }
[dir="rtl"] .focus-card::before { transform-origin: right; }
.focus-card:hover::before, .focus-card:focus-within::before { transform: scaleX(1); }
.card-index { font-size: .8125rem; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.focus-card h3 { margin-top: 12px; }
.card-tag { margin-top: 4px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-body { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.card-image { display: block; width: 100%; max-width: 320px; margin-top: 14px; border-radius: 10px; }

.subsection { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.subsection-title { font-size: 1.25rem; line-height: 1.4; }
.subsection .lede { margin-top: 10px; }
.approach-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 2px; }
.approach-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 12px; }
.approach-row:nth-child(odd) { background: rgba(32, 42, 35, .028); }
.row-index { font-size: 1.25rem; font-weight: 800; color: var(--green); opacity: .85; }
.approach-row p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }

/* ---------- Downloads panel ---------- */

.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.region-card { position: relative; overflow: hidden; padding: 24px 24px 24px 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.region-card::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--grad-v); }
.region-card h3 { font-size: 1.125rem; }
.region-note { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.channel-list { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; }
.channel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
  min-height: 52px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  text-decoration: none; color: var(--ink); background: var(--paper);
}
.channel-name { font-weight: 600; font-size: .9375rem; }
.channel small { grid-column: 1; color: var(--muted); }
.channel-arrow { grid-row: 1 / -1; grid-column: 2; color: var(--green); }
.channel:hover, .channel:focus-visible { border-color: var(--green); background: var(--accent-soft); }
.region-pending { margin-top: 16px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: .875rem; }
.download-notice { max-width: 72ch; margin-top: 28px; padding: 18px 20px; border-radius: 12px; background: rgba(32, 42, 35, .04); color: var(--muted); font-size: .875rem; }

/* ---------- Products panel ---------- */

.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 14px 20px; list-style: none; cursor: pointer; font-weight: 600; font-size: .9688rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { border-color: var(--line-strong); }
.question-icon { flex-shrink: 0; color: var(--green); }
details[open] .question-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; color: var(--muted); font-size: .9375rem; }

/* ---------- Feedback form ---------- */

.feedback-form { max-width: 620px; margin-top: 28px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field label { font-weight: 600; font-size: .9375rem; }
.feedback-form select, .feedback-form textarea, .feedback-form input[type="email"], .feedback-form input[type="text"] {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: .9375rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 12px;
}
.feedback-form select {
  min-height: 48px; padding-inline-end: 40px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23354f3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
[dir="rtl"] .feedback-form select { background-position: left 14px center; }
.feedback-form input[type="file"] { width: 100%; padding: 11px 14px; font: inherit; font-size: .875rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; }
.feedback-form input[type="file"]::file-selector-button { min-height: 34px; margin-inline-end: 12px; padding: 5px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.feedback-form input[type="file"]:hover { border-color: var(--green); }
.feedback-form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.feedback-form :is(select, textarea, input):focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form-hint { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.submit-button {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border: 0; border-radius: 999px;
  background: var(--grad); background-size: 160% 100%; background-position: 0% 0; color: #fff; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.submit-button:hover { background-position: 100% 0; }
.form-note { max-width: 620px; margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: rgba(32, 42, 35, .04); color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.form-notice { max-width: 620px; margin-top: 24px; padding: 14px 18px; border-radius: 12px; font-size: .9375rem; font-weight: 600; }
.form-notice-success { background: var(--accent-soft); color: var(--green-deep); border: 1px solid var(--green); }
.form-notice-warn { background: #fdf0ef; color: #7d1f1f; border: 1px solid #c58b8b; }
/* A honeypot: hidden from everyone, so anything typed into it came from a bot. */
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Footer and inner pages ---------- */

.site-footer { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 20px 32px; margin-top: 24px; padding-block: 32px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-identity p { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-identity p:first-child { color: var(--ink); font-weight: 600; }
.footer-meta { display: flex; flex-direction: column; align-items: start; }
.site-footer a, .text-link, .primary-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Inner pages share the header and footer gutter; only the prose column is narrowed. */
.privacy-page, .missing-page { padding-top: 32px; }
.privacy-page > *, .missing-page > * { max-width: 68ch; }
.privacy-page h1, .missing-page h1 { margin-top: 16px; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem); }
.updated { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.privacy-copy { margin-top: 36px; display: grid; gap: 24px; max-width: 68ch; }
.privacy-copy h2 { font-size: 1.125rem; line-height: 1.4; }
.privacy-copy p { margin-top: 8px; color: var(--muted); }
/* The art's last rows are left blank for copy the page sets itself, so they are cropped off. */
.missing-art { display: block; width: min(100%, 300px); opacity: .55; height: auto; aspect-ratio: 600 / 340; object-fit: cover; object-position: top; }
.missing-page h1, .missing-page h1 ~ p { margin-top: 16px; }
.missing-actions { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .app-hero.has-showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase { width: min(100%, 400px); justify-self: center; }
  .app-hero.has-showcase { overflow-x: clip; }
  /* One column: the contact card moves directly under the intro so the address
     stays on the first screen, which is what platform reviewers look for. */
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  /* The roadmap repeats the platform chips; on one column it would push the contact card off the first screen. */
  .hero-row { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .products-head { grid-template-columns: 1fr; gap: 24px; }
  .products-head .ascii-card { max-width: 460px; }
  .contact-card { order: -1; max-width: 460px; }
}

@media (max-width: 760px) {
  .directory-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 32px; }
  .directory-section { padding: 20px; scroll-margin-top: 136px; }
  .panel { padding-top: 32px; scroll-margin-top: 136px; }
  .approach-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
}

@media (max-width: 480px) {
  .shell, main, .header-inner { width: calc(100% - 32px); }
  .focus-card, .region-card, .contact-card { padding: 18px; }
  main { padding-bottom: 48px; }
}

/* ---------- Motion ----------

   Three rules hold everywhere below:
   1. No element is ever hidden by a base rule. `opacity: 0` only ever appears inside a
      `from` keyframe, so if a timeline is inactive or a feature is unsupported, the
      content simply renders statically instead of disappearing.
   2. Every animation lives inside `prefers-reduced-motion: no-preference`.
   3. Reveals move on the block axis only, so nothing can widen the page in RTL or at 320px.
*/

/* Cross-document view transitions were tried here and removed: the transition overlay
   keeps intercepting pointer events for the length of the fade, so a visitor clicking
   two links in quick succession loses the second click. Not worth it on a site whose
   whole point is working without scripting. */

.scroll-progress {
  position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
  transform: scaleX(0); transform-origin: left;
  background: var(--grad);
}
[dir="rtl"] .scroll-progress { transform-origin: right; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Reading progress. An inactive timeline (a panel with nothing to scroll) just
     leaves the bar at zero width, which is the honest state anyway. */
  @supports (animation-timeline: scroll(root block)) {
    .scroll-progress { animation: progress linear both; animation-timeline: scroll(root block); }
  }

  /* Each panel stages its own content when it becomes the active tab, because the
     :target selector starts matching and restarts these animations. */
  .hero > *, .hero-art, .products-head > .ascii-card, .missing-art, .panel-head > *, .about-grid > *, .subsection > h3, .subsection > .lede,
  .focus-grid > *, .region-grid > *, .faq > *, .download-notice {
    animation: rise 480ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero > :nth-child(2) { animation-delay: 60ms; }
  .hero > :nth-child(3) { animation-delay: 110ms; }
  .hero > :nth-child(4) { animation-delay: 160ms; }
  .about-grid > * { animation-delay: 200ms; }
  .hero-art, .products-head > .ascii-card { animation-delay: 140ms; }
  .panel-head > :nth-child(2) { animation-delay: 60ms; }
  .panel-head > :nth-child(3) { animation-delay: 110ms; }
  .subsection > h3 { animation-delay: 40ms; }
  .subsection > .lede { animation-delay: 90ms; }
  .focus-grid > :nth-child(1), .region-grid > :nth-child(1), .faq > :nth-child(1) { animation-delay: 170ms; }
  .focus-grid > :nth-child(2), .region-grid > :nth-child(2), .faq > :nth-child(2) { animation-delay: 230ms; }
  .focus-grid > :nth-child(3), .faq > :nth-child(3) { animation-delay: 290ms; }
  .focus-grid > :nth-child(4) { animation-delay: 350ms; }
  .focus-grid > :nth-child(5) { animation-delay: 410ms; }
  .download-notice { animation-delay: 320ms; }

  /* The principles sit below the fold of a long panel, so they reveal on scroll
     instead of having already played by the time they are reached. */
  @supports (animation-timeline: view()) {
    .approach-list > .approach-row {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
  }

  /* A finite pulse, so the page settles instead of looping forever. */
  .status-chip::before { animation: beacon 2s ease-out 3; }

  .tab, .channel, .email-button, .language-menu li a, .faq details, .chip-row li { transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out; }
  .focus-card, .region-card, .channel, .contact-card { transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out; }
  .focus-card:hover, .region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
  .channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .email-button, .submit-button { transition: background-position 420ms cubic-bezier(.16, 1, .3, 1); }
  .email-button:active, .channel:active, .focus-card:active { transform: scale(.98); }
  .question-icon, .tab-caret { transition: transform 180ms cubic-bezier(.2, 0, 0, 1); }
  details[open] .faq-answer { animation: answer-open 180ms ease-out; }
}

/* One slow pass through the tall screenshot, from the request down to the 3D molecule and
   back, then it rests. Hovering holds the frame still for reading. */
@media (prefers-reduced-motion: no-preference) {
  .showcase img { animation: showcase-pan 14s cubic-bezier(.45, 0, .55, 1) 1.2s 1; }
  .showcase:hover img { animation-play-state: paused; }
}
@keyframes showcase-pan {
  0%, 12% { object-position: 50% 0; }
  45%, 70% { object-position: 50% 72%; }
  100% { object-position: 50% 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
}
@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes pill-in {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g2) 45%, transparent); }
  to { box-shadow: 0 0 0 9px transparent; }
}
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g2) 50%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
@keyframes answer-open {
  from { opacity: .65; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media print {
  body::before, .site-header, .skip-link { display: none; }
  .shell, main { width: 100%; }
  .panel { display: block !important; break-inside: avoid; }
  .faq details > .faq-answer { display: block; }
  summary .question-icon { display: none; }
  .channel, .focus-card, .region-card, .contact-card { border: 1px solid #999; box-shadow: none; }
  .scroll-progress { display: none; }
}

/* ---------- Frozen header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(248, 249, 245, .82);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
}
.header-inner { display: flex; align-items: center; gap: 8px 20px; min-height: 68px; padding-block: 10px; }
.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
}

.tab-bar {
  display: flex;
  gap: 2px;
  margin-inline-end: auto;
  padding: 3px;
  border-radius: 999px;
  background: rgba(32, 42, 35, .045);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: .9063rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .72); }

.language-menu { flex-shrink: 0; font-size: .875rem; }
.language-menu button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding-inline: 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; color: var(--ink); background: transparent; font: inherit;
}
.language-menu button::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.language-menu:has(:popover-open) button { background: var(--surface); }
.language-menu ul {
  width: 180px; list-style: none;
}
.language-menu li a { display: flex; align-items: center; width: 100%; min-height: 40px; padding-inline: 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.language-menu li a:hover { background: var(--accent-soft); }
.language-menu a[aria-current] { font-weight: 600; color: var(--green); }

.skip-link { position: fixed; inset-inline-start: 20px; top: 12px; transform: translateY(-250%); padding: 10px 18px; z-index: 60; border-radius: 999px; color: #fff; background: var(--grad); }
.skip-link:focus { transform: none; }

/* App links are primary, the small group label secondary. Shared surface, line and
   shadow tokens keep this a compact list rather than another page-wide panel.
   The renderer supplies buttons and native popovers; this module owns their layout. */
.tab-menu { flex-shrink: 0; }
.tab-menu > button { cursor: pointer; gap: 6px; border: 0; background: transparent; font-family: inherit; line-height: inherit; }
.tab-menu > button:hover { background: rgba(255, 255, 255, .72); }
.tab-menu:has(:popover-open) > button { color: var(--ink); background: rgba(255, 255, 255, .8); }
.tab-menu:has(:popover-open) .tab-caret { transform: rotate(180deg); }
body.page .tab-menu:has(:popover-open) > button.is-current { color: #fff; background: var(--grad); }
.site-popover {
  position: fixed; inset: auto; margin: 8px 0 0;
  position-area: block-end span-inline-end;
  position-try-fallbacks: flip-inline;
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 160px);
  overflow: auto; padding: 6px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md);
}
.language-menu .site-popover { position-area: block-end span-inline-start; }
.submenu { width: 256px; }
.submenu-title { padding: 8px 12px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.submenu-list { list-style: none; padding: 0; }
.submenu-list a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.submenu-list a:hover, .submenu-list a:focus-visible { color: var(--green); background: var(--accent-soft); }
.submenu-empty { padding: 8px 12px; color: var(--muted); font-size: .9375rem; }

@media (prefers-reduced-motion: no-preference) {
  .site-popover {
    opacity: 0; transform: translateY(-6px);
    transition: opacity 180ms ease-out, transform 180ms ease-out,
      display 180ms allow-discrete, overlay 180ms allow-discrete;
  }
  .site-popover:popover-open { opacity: 1; transform: translateY(0); }
  @starting-style {
    .site-popover:popover-open { opacity: 0; transform: translateY(-6px); }
  }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; min-height: 0; gap: 8px 12px; padding-block: 10px 8px; }
  .tab-bar { order: 3; width: 100%; margin-inline-end: 0; }
  /* Native popovers live in the top layer, outside this scrolling strip. */
  .tab-bar::after { content: ''; position: sticky; inset-inline-end: 0; flex: 0 0 28px; margin-inline-start: -28px; pointer-events: none; background: linear-gradient(to right, transparent, #eef0ec); }
  [dir="rtl"] .tab-bar::after { background: linear-gradient(to left, transparent, #eef0ec); }
  .tab { flex: 1 0 auto; padding-inline: 14px; font-size: .875rem; }
}

@media (max-width: 480px) {
  .brand { font-size: .875rem; letter-spacing: .04em; }
}
