/* Medulla: mobile-first styles.
   Locked palette: navy #0D1128, purple #6C5CE7, lavender #A29BFE,
   white #FFFFFF, orange #FF9F43. Every other colour below is a tint of
   these (mixed with white) so the brand stays consistent. */

:root {
  --navy: #0D1128;
  --purple: #6C5CE7;
  --lavender: #A29BFE;
  --white: #FFFFFF;
  --orange: #FF9F43;

  --purple-600: #5A4AD6;          /* hover */
  --bg: #FFFFFF;
  --surface: #FFFFFF;             /* cards, panels, inputs (dark theme redefines it) */
  --bg-soft: #F7F6FE;             /* lavender 8% */
  --lav-100: #EFEDFF;
  --lav-200: #E2DEFF;
  --lav-300: #CFC9FF;
  --orange-100: #FFF3E6;
  --orange-200: #FFE2C4;

  --ink: var(--navy);
  --ink-2: #3D4157;               /* body text, 10:1 on white */
  --ink-3: #5E6175;               /* secondary text, 6:1 on white */
  --line: #E9E7F5;
  --line-2: #D8D4F6;

  --shadow-1: 0 1px 2px rgba(13, 17, 40, 0.04), 0 8px 24px -12px rgba(13, 17, 40, 0.12);
  --shadow-2: 0 24px 60px -24px rgba(13, 17, 40, 0.28);
  --shadow-p: 0 14px 30px -12px rgba(108, 92, 231, 0.6);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Sora has no Cyrillic: Manrope fills in Russian letters (only its Cyrillic subset downloads). */
  --font-head: "Sora", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --gutter: 16px;
  --section: 64px;

  color-scheme: light;
}

/* Larger-text toggle: everything is sized in rem. */
html.a11y-large { font-size: 118.75%; }

/* Dyslexia-friendly toggle: plain widely available fonts with extra spacing
   (British Dyslexia Association style guide). Nothing extra is downloaded. */
html.a11y-dyslexia {
  --font-body: Verdana, Tahoma, "Trebuchet MS", Arial, sans-serif;
  --font-head: Verdana, Tahoma, "Trebuchet MS", Arial, sans-serif;
}
html.a11y-dyslexia body { letter-spacing: 0.03em; word-spacing: 0.12em; line-height: 1.8; }
html.a11y-dyslexia h1, html.a11y-dyslexia h2, html.a11y-dyslexia h3 { letter-spacing: 0.01em; line-height: 1.3; }

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
main { flex: 1; }
main:focus { outline: none; }

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.55em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-600); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section.is-soft { background: var(--bg-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head > div { max-width: 44rem; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; margin: 0; }
.section-head h2 { margin-bottom: 10px; }
.section-head.is-center { justify-content: center; text-align: center; }
.section-head.is-center > div { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--purple); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--lav-200); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-1);
  color: var(--ink); font-size: 0.85rem; font-weight: 600;
}
.badge-pill .dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lav-100); color: var(--purple); }
.badge-pill .dot .icon { width: 15px; height: 15px; }
.lead { font-size: 1.125rem; color: var(--ink-3); max-width: 38rem; }
.muted { color: var(--ink-3); }
.accent { color: var(--purple); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: var(--white); box-shadow: var(--shadow-p); }
.btn-primary:hover { background: var(--purple-600); color: var(--white); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--purple); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn .arrow-dot {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: -8px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.22);
}
.btn .arrow-dot .icon { width: 15px; height: 15px; }
.btn-play { padding-left: 6px; background: transparent; color: var(--ink); }
.btn-play .play {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--purple);
}
.btn-play:hover { color: var(--purple); }
.btn-placeholder {
  background: transparent; color: var(--ink-3);
  border: 1.5px dashed var(--lav-300); cursor: default; box-shadow: none;
}
.btn-placeholder:hover { transform: none; }
.on-dark .btn-placeholder { color: rgba(255, 255, 255, 0.75); border-color: rgba(162, 155, 254, 0.6); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--purple); font-weight: 600; text-decoration: none;
}
.text-link:hover { gap: 9px; color: var(--purple-600); }
.text-link .icon { transition: transform 0.15s ease; }

/* Obvious "to be decided" marker for placeholders. */
.tbd {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--orange-200); color: var(--navy);
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.5;
}
.is-placeholder {
  border: 1.5px dashed var(--lav-300) !important;
  background: repeating-linear-gradient(-45deg, rgba(162, 155, 254, 0.06) 0 10px, transparent 10px 20px), var(--surface) !important;
  box-shadow: none !important;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--lav-100); color: var(--purple-600);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.review-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--orange-100); color: var(--navy);
  font-size: 0.72rem; font-weight: 700;
}
.review-badge .icon { width: 0.95em; height: 0.95em; color: #C76A12; }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.card p:last-child { margin-bottom: 0; }

.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--lav-100); color: var(--purple);
}
.tile .icon { width: 24px; height: 24px; }
.tile.is-orange { background: var(--orange-100); color: #C76A12; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.brand-mark img { width: 40px; height: 40px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); margin-top: 3px; }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.lang-btn {
  min-width: 42px; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-3); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--surface); color: var(--purple); box-shadow: var(--shadow-1); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--ink); font: inherit; cursor: pointer;
}
.icon-btn:hover { border-color: var(--lav-300); }
.icon-btn[aria-expanded="true"] { border-color: var(--purple); color: var(--purple); background: var(--lav-100); }
.icon-btn .icon { width: 22px; height: 22px; }
.aa { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.header-cta { display: none; }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px var(--gutter) 18px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: grid; gap: 2px; }
.site-nav a {
  position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--purple); }
.site-nav a[aria-current="page"] { background: var(--lav-100); color: var(--purple); }

.display-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.display-panel[hidden] { display: none; }
.display-inner { display: grid; gap: 8px; padding-block: 16px; }
.display-title { margin: 0; color: var(--ink); font-weight: 700; font-family: var(--font-head); }
.display-note { margin: 0; color: var(--ink-3); font-size: 0.85rem; }
.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 52px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft);
  color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.switch-track { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--lav-300); transition: background-color 0.2s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(13, 17, 40, 0.3); transition: transform 0.2s ease; }
.switch[aria-checked="true"] .switch-track { background: var(--purple); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); }

@media (min-width: 1160px) {
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; }
  .site-nav .nav-more { display: none; }
  .site-nav { display: block; position: static; padding: 0; background: none; border: 0; box-shadow: none; margin-inline: auto; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { min-height: 44px; padding: 0 14px; color: var(--ink-3); font-size: 0.95rem; background: none !important; }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a[aria-current="page"] { color: var(--ink); }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px;
    margin-left: -2.5px; border-radius: 50%; background: var(--purple);
  }
  .header-tools { margin-left: 0; }
  .display-panel {
    left: auto; right: max(var(--gutter), calc((100vw - 1180px) / 2)); width: 340px; margin-top: 8px;
    border: 1px solid var(--line); border-radius: var(--r);
  }
  .display-inner { width: auto; padding: 16px; }
}

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding-block: 36px 24px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 70%; height: 100%;
  background: radial-gradient(closest-side, rgba(162, 155, 254, 0.22), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 28px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }

.proof { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.avatars { display: flex; }
.avatar {
  display: grid; place-items: end center; overflow: hidden;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint, var(--lav-100)); border: 3px solid var(--surface);
  box-shadow: 0 2px 6px rgba(13, 17, 40, 0.12);
}
.avatar + .avatar { margin-left: -12px; }
.avatar img { width: auto; height: 80%; max-width: 86%; object-fit: contain; margin-bottom: 2px; }
.proof p { margin: 0; color: var(--ink-3); font-size: 0.92rem; line-height: 1.35; }
.proof strong { display: block; color: var(--ink); }

.hero-art { position: relative; width: min(100%, 470px); aspect-ratio: 1 / 1; margin-inline: auto; }
.hero-circle {
  position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--surface) 0%, var(--lav-100) 45%, var(--lav-200) 100%);
  box-shadow: inset 0 0 0 1px rgba(108, 92, 231, 0.08);
}
.hero-net { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; opacity: 0.18; }
.hero-dots {
  position: absolute; right: 0; top: 6%; width: 96px; height: 96px;
  background-image: radial-gradient(var(--lav-300) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
}
.hero-dendi { position: absolute; left: 50%; bottom: 17%; height: 54%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 18px 18px rgba(108, 92, 231, 0.25)); }
.hero-lumi { position: absolute; right: 8%; top: 8%; width: 20%; height: auto; }
.hero-path { position: absolute; right: 18%; top: 14%; width: 34%; height: auto; color: var(--lav-300); }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow-2);
  color: var(--ink); font-size: 0.82rem; line-height: 1.25; text-decoration: none;
}
.float-card:hover { color: var(--ink); border-color: var(--lav-300); }
.float-card small { display: block; color: var(--ink-3); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.float-card strong { display: block; font-weight: 700; }
.float-card .tile { width: 38px; height: 38px; border-radius: 12px; }
.float-card .tile .icon { width: 20px; height: 20px; }
.fc-fact { left: 0; top: 4%; max-width: 64%; }
.fc-lab { right: 0; bottom: 3%; display: block; padding: 12px 14px; }
.fc-lang { left: 0; bottom: 17%; }
.fc-lang .flags { display: inline-flex; gap: 4px; }
.fc-lang .flags span { padding: 2px 7px; border-radius: 6px; background: var(--lav-100); color: var(--purple-600); font-weight: 800; font-size: 0.7rem; }

@media (prefers-reduced-motion: no-preference) {
  .float-card, .hero-lumi { animation: bob 6s ease-in-out infinite; }
  .fc-lab { animation-delay: -2s; }
  .fc-lang { animation-delay: -4s; }
  .hero-lumi { animation-duration: 5s; }
  .hero-path path { stroke-dasharray: 4 7; animation: dash 18s linear infinite; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dash { to { stroke-dashoffset: -220; } }

/* ----------------------------------------------------------------- stats */

.stats {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-1);
}
.stat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; text-align: center; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stat .tile { width: 44px; height: 44px; margin-bottom: 4px; }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat.is-placeholder-stat .stat-value { color: var(--ink-3); padding: 0 14px; border: 1.5px dashed var(--lav-300); border-radius: 10px; }
.stat-label { color: var(--ink-3); font-size: 0.86rem; line-height: 1.35; }
.stat .tbd { margin-top: 2px; }
.hero + .stats-wrap { margin-top: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; color: var(--ink-3); font-size: 0.9rem; }
.note .icon { margin-top: 2px; color: var(--purple); }

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding-block: 8px; }
  .stat { padding: 22px 18px; }
  .stat:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; }
}

/* ------------------------------------------------------------ characters */

.chars { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.char-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.char-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.char-art {
  position: relative; display: grid; place-items: end center;
  height: 168px; padding: 16px 12px 0;
  background: var(--tint, var(--lav-100));
}
.char-art::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 56%; height: 14px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(13, 17, 40, 0.08); filter: blur(4px);
}
.char-art img { position: relative; z-index: 1; max-height: 148px; width: auto; margin-bottom: 8px; }
.char-body { display: grid; gap: 6px; padding: 16px 16px 18px; }
.char-body h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.char-kind { color: var(--ink-3); font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0; }
.char-trait { justify-self: start; }
.char-role { margin: 0; color: var(--ink-3); font-size: 0.9rem; line-height: 1.45; }
.char-guide { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 9px; border-radius: 6px; background: var(--purple); color: var(--white); font-family: var(--font-body); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.char-card.is-guide { grid-column: 1 / -1; flex-direction: row; }
.char-card.is-guide .char-art { width: 44%; height: auto; min-height: 190px; }
.char-card.is-guide .char-body { align-content: center; }
.char-pillar { justify-self: start; margin-top: 2px; color: var(--purple-600); font-size: 0.8rem; font-weight: 700; }

@media (min-width: 760px) {
  .chars { grid-template-columns: repeat(3, 1fr); }
  .char-card.is-guide { grid-column: auto; flex-direction: column; }
  .char-card.is-guide .char-art { width: auto; height: 168px; min-height: 0; }
}
@media (min-width: 1100px) {
  .chars { grid-template-columns: repeat(5, 1fr); }
}

/* --------------------------------------------------------------- pillars */

.pillars { list-style: none; display: grid; gap: 16px; }
.pillar { display: flex; flex-direction: column; gap: 6px; padding: 26px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pillar-art {
  display: grid; place-items: end center; overflow: hidden;
  width: 92px; height: 92px; margin-bottom: 12px; border-radius: 24px;
  background: var(--tint, var(--lav-100));
}
.pillar-art img { max-height: 84px; width: auto; }
.pillar h3 { margin: 0; font-size: 1.3rem; }
.pillar-meta { margin: 0 0 4px; color: var(--purple-600); font-size: 0.85rem; font-weight: 700; }
.pillar p { color: var(--ink-3); }
.pillar .text-link { margin-top: auto; }
.pillar-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--lav-200); }

@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------- fact of day */

.feature {
  display: grid; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
}
.feature-art {
  position: relative; display: grid; place-items: end center; min-height: 240px; padding: 28px 20px 0;
  background:
    radial-gradient(circle at 50% 110%, var(--lav-200), transparent 65%),
    linear-gradient(160deg, var(--lav-100), var(--bg-soft));
}
.feature-art img { max-height: 210px; width: auto; position: relative; z-index: 1; }
.bubble {
  position: absolute; left: 20px; top: 20px; z-index: 2;
  padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); box-shadow: var(--shadow-1);
  color: var(--ink); font-size: 0.85rem; font-weight: 600; max-width: 70%;
}
.feature-body { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.feature-body .fact-meta { margin-bottom: 10px; }
.feature-body h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 10px; }
.feature-body .fact-text { color: var(--ink-2); font-size: 1.02rem; }
.feature-body .btn-row { margin-top: 10px; }

@media (min-width: 860px) {
  .feature { grid-template-columns: 0.85fr 1.15fr; }
  .feature-art { min-height: 100%; }
  .feature-body { padding: 40px 44px; justify-content: center; }
}

/* ------------------------------------------------------------ facts list */

.fact-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fact-source { margin: 0; font-size: 0.88rem; color: var(--ink-3); }
.fact-source a { overflow-wrap: anywhere; }
.fact-source .icon { margin-left: 3px; vertical-align: -0.1em; }

.toolbar {
  display: grid; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1);
}
.toolbar-row { display: grid; gap: 10px; }
.search { position: relative; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input, .select {
  width: 100%; min-height: 48px; padding: 10px 16px 10px 46px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--bg-soft);
  color: var(--ink); font: inherit;
}
.select { padding-left: 16px; padding-right: 36px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6175' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus-visible, .select:focus-visible { border-color: var(--purple); background-color: var(--surface); outline-offset: 1px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.filter-chip:hover { border-color: var(--purple); color: var(--purple); }
.filter-chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.results-count { margin: 18px 0 16px; color: var(--ink-3); font-size: 0.9rem; }

@media (min-width: 760px) {
  .toolbar { padding: 18px 20px; }
  .toolbar-row { grid-template-columns: 1fr 220px; }
}

.facts-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fact-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 22px; scroll-margin-top: 100px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.fact-card.is-highlight { border-color: var(--purple); box-shadow: 0 0 0 3px var(--lav-200), var(--shadow-2); }
.fact-card h2, .fact-card h3 { margin: 4px 0 0; font-size: 1.2rem; }
.fact-card .fact-excerpt {
  margin: 0; color: var(--ink-3); font-size: 0.95rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fact-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.fact-foot .src { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-3); font-size: 0.82rem; font-weight: 600; }
.fact-foot .src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-foot .src .icon { color: var(--purple); }

@media (min-width: 700px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.empty-state {
  display: grid; justify-items: center; gap: 8px; padding: 32px 24px; text-align: center;
  border: 1.5px dashed var(--lav-300); border-radius: var(--r); background: var(--surface); color: var(--ink-3);
}
.empty-state img { max-height: 140px; width: auto; }
.empty-state .icon { width: 28px; height: 28px; color: var(--purple); }
.empty-state h3 { margin: 4px 0 0; }
.empty-state p { margin: 0; max-width: 32rem; }
.facts-grid .empty-state { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- reader */

.reader {
  width: min(960px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink-2); box-shadow: 0 40px 80px -20px rgba(13, 17, 40, 0.5);
  overflow: auto;
}
.reader::backdrop { background: rgba(13, 17, 40, 0.6); backdrop-filter: blur(4px); }
.reader-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.reader-head p { margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.reader-head .btn-row { gap: 8px; }
.reader-spread { display: grid; }
.reader-cover {
  position: relative; display: grid; align-content: space-between; gap: 18px; padding: 24px;
  background: linear-gradient(160deg, var(--lav-100), var(--bg-soft));
}
.reader-cover img { max-height: 170px; width: auto; justify-self: center; }
.reader-cover .presenter { margin: 0; color: var(--ink-3); font-size: 0.85rem; font-weight: 600; text-align: center; }
.reader-page { padding: 28px 24px; }
.reader-page h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.reader-page .fact-text { color: var(--ink-2); font-size: 1.05rem; }
.reader-note { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--orange-100); color: var(--ink-2); font-size: 0.88rem; }
.reader-note .icon { margin-top: 2px; color: #C76A12; }
.reader-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--lav-200); transition: width 0.2s ease, background-color 0.2s ease; }
.dots span.is-on { width: 22px; background: var(--purple); }
.reader-turn { animation: turn 0.35s ease; }
@keyframes turn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 760px) {
  .reader-spread { grid-template-columns: 0.8fr 1.2fr; }
  .reader-cover { padding: 32px; box-shadow: inset -18px 0 24px -20px rgba(13, 17, 40, 0.25); }
  .reader-page { padding: 40px 40px 32px; }
}

/* -------------------------------------------------------- dark (lab) band */

.dark-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 90% 0%, rgba(108, 92, 231, 0.45), transparent 60%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(162, 155, 254, 0.16), transparent 60%),
    var(--navy);
  color: rgba(255, 255, 255, 0.82);
}
.dark-band h2, .dark-band h3 { color: var(--white); }
.dark-band .eyebrow { color: var(--lavender); }
.dark-band .lead, .dark-band .muted { color: rgba(255, 255, 255, 0.78); }
.dark-band .note { color: rgba(255, 255, 255, 0.72); }
.dark-band .note .icon { color: var(--orange); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

.dash { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.dash-card {
  position: relative; padding: 18px;
  border: 1px solid rgba(162, 155, 254, 0.22); border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
}
.dash-card small { display: block; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; font-weight: 600; }
.dash-card .metric { display: block; margin-top: 4px; color: var(--white); font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-card .metric.is-empty { color: rgba(255, 255, 255, 0.55); }
.dash-card.is-wide { grid-column: 1 / -1; }
.dash-host {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: end center; overflow: hidden;
  width: 92px; height: 92px; border-radius: 50%; background: var(--lav-100);
}
.dash-host img { max-height: 84px; width: auto; }
.dark-band .bars .bar { background: linear-gradient(180deg, var(--lavender), var(--purple)); }

/* shared mini charts */
.meter { height: 10px; border-radius: 999px; background: var(--lav-100); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--orange)); transition: width 0.4s ease; }
.dark-band .meter { background: rgba(255, 255, 255, 0.12); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin-top: 12px; }
.bars .bar { flex: 1; min-height: 6px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--lav-300), var(--purple)); position: relative; }
.bars .bar.is-best { background: linear-gradient(180deg, #FFC48A, var(--orange)); }
.bars .bar span { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font-size: 0.68rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.dark-band .bars .bar span { color: rgba(255, 255, 255, 0.72); }
.bars.is-empty .bar { background: transparent; border: 1.5px dashed var(--lav-300); }
.dark-band .bars.is-empty .bar { border-color: rgba(162, 155, 254, 0.5); }

/* ------------------------------------------------------------ why section */

.why-art {
  position: relative; display: grid; place-items: center; min-height: 320px; padding: 24px;
  border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line);
}
.why-art .logo-big { width: min(80%, 340px); height: auto; }
.why-art .why-syno { position: absolute; right: 18px; bottom: 16px; width: 22%; max-width: 110px; height: auto; }
.checks { list-style: none; display: grid; gap: 14px; margin: 8px 0 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .check { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--lav-100); color: var(--purple); }
.checks .check .icon { width: 16px; height: 16px; }
.checks strong { display: block; color: var(--ink); }
.checks span { color: var(--ink-3); font-size: 0.95rem; }

/* --------------------------------------------------------------- updates */

.updates {
  position: relative; display: grid; gap: 16px; overflow: hidden;
  padding: 28px 24px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--orange-100), #FFF8F0);
  border: 1px solid var(--orange-200);
}
.updates h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 6px; }
.updates p { color: var(--ink-3); margin: 0; }
.updates .lumi-tip { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; }
.updates-art { display: grid; place-items: center; }
.updates-art img { width: 150px; height: auto; }
@media (min-width: 760px) {
  .updates { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; }
  .updates-art img { width: 170px; }
}

/* --------------------------------------------------------------- CTA band */

.cta-band {
  position: relative; display: grid; gap: 20px; overflow: hidden;
  padding: 32px 24px; border-radius: var(--r-lg);
  background:
    radial-gradient(24rem 16rem at 100% 0%, rgba(255, 159, 67, 0.28), transparent 60%),
    linear-gradient(135deg, var(--purple), #8172EE);
  color: rgba(255, 255, 255, 0.9);
}
.cta-band::after {
  content: ""; position: absolute; right: 26px; top: 22px; width: 84px; height: 84px; opacity: 0.35;
  background-image: radial-gradient(var(--white) 1.5px, transparent 1.6px); background-size: 12px 12px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2, .cta-band h3 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-band .btn-row { margin-top: 18px; }
.cta-band .btn-placeholder { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.cta-art { position: relative; z-index: 1; display: grid; place-items: end center; justify-self: center; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); overflow: hidden; }
.cta-art img { max-height: 180px; width: auto; }
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 44px 52px; }
  .cta-art { width: 220px; height: 220px; }
  .cta-art img { max-height: 196px; }
}

/* ------------------------------------------------------------ page heads */

.page-hero { position: relative; overflow: hidden; padding-block: 40px 36px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(162, 155, 254, 0.25), transparent); pointer-events: none;
}
.page-hero .container { position: relative; display: grid; gap: 20px; align-items: center; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-art { position: relative; display: grid; place-items: center; justify-self: center; width: 210px; height: 210px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.page-hero-art img { max-height: 170px; max-width: 170px; width: auto; }
.page-hero-art .bubble { left: auto; right: 72%; top: 0; white-space: normal; width: max-content; max-width: 210px; border-radius: 16px 16px 4px 16px; }
@media (min-width: 860px) {
  .page-hero { padding-block: 64px 56px; }
  .page-hero .container { grid-template-columns: 1fr auto; gap: 48px; }
  .page-hero-art { width: 240px; height: 240px; margin-right: 24px; }
  .page-hero-art img { max-height: 196px; max-width: 196px; }
}
@media (max-width: 859px) {
  .page-hero .page-hero-art { width: auto; height: auto; background: none; border: 0; box-shadow: none; justify-self: start; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 12px; }
  .page-hero .container { grid-template-columns: minmax(0, 1fr); }
  .page-hero .page-hero-art { max-width: 100%; }
  .page-hero .page-hero-art .bubble { position: static; flex: 0 1 auto; width: auto; min-width: 0; margin-bottom: 40px; border-radius: 16px 16px 16px 4px; max-width: 230px; }
  .page-hero .page-hero-art img { max-height: 120px; max-width: 140px; }
}

.callout-box {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid var(--orange-200); border-radius: var(--r); background: var(--orange-100);
}
.callout-box > .icon { width: 24px; height: 24px; color: #C76A12; margin-top: 2px; }
.callout-box h2, .callout-box h3 { font-size: 1.02rem; margin: 0 0 4px; }
.callout-box p { margin: 0; color: var(--ink-2); }
.callout-box.is-calm { border-color: var(--line); background: var(--surface); }
.callout-box.is-calm > .icon { color: var(--purple); }
.callouts-row { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 860px) { .callouts-row { grid-template-columns: 1.6fr 1fr; } }

/* ------------------------------------------------------------------- lab */

.lab-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1040px) { .lab-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } }

.tabs { display: flex; gap: 4px; padding: 5px; margin-bottom: 16px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.tab {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 10px; border: 0; border-radius: 999px; line-height: 1.2;
  background: transparent; color: var(--ink-3); font: inherit; font-weight: 700; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--surface); color: var(--purple); box-shadow: var(--shadow-1); }
.tab .icon { width: 18px; height: 18px; }

.experiment { scroll-margin-top: 96px; }
.experiment[hidden] { display: none; }
.experiment-card { padding: 22px; }
.experiment-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.experiment-head h2 { margin: 0; font-size: 1.5rem; }
.experiment-card > p { color: var(--ink-3); }
.small-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 18px; color: var(--ink-3); font-size: 0.88rem; }
.small-notes li { display: flex; gap: 6px; align-items: center; }
.small-notes .icon { color: var(--purple); width: 1.05em; height: 1.05em; }

.stage { display: grid; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; color: var(--ink-3); font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-top .meter { flex: 1; height: 8px; }

/* The Stroop "screen" stays navy: the four test colours were picked for it. */
.stroop-word {
  display: grid; place-items: center; min-height: 160px; border-radius: var(--r-sm);
  background: var(--navy); box-shadow: inset 0 0 0 1px rgba(162, 155, 254, 0.2);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 4vw, 3.6rem);
  letter-spacing: 0.04em; text-transform: uppercase; user-select: none;
}
.stroop-word.is-fixation { color: rgba(255, 255, 255, 0.55); }
.stroop-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stroop-answer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 10px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.stroop-answer:hover:not(:disabled) { border-color: var(--purple); }
.stroop-answer:active:not(:disabled) { transform: scale(0.98); }
.stroop-answer:disabled { opacity: 0.55; cursor: default; }
.stroop-answer kbd { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-3); font-family: inherit; font-size: 0.75rem; font-weight: 700; }
.swatch { width: 22px; height: 22px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 2px rgba(13, 17, 40, 0.15); }
@media (min-width: 600px) { .stroop-answers { grid-template-columns: repeat(4, 1fr); } }

.reaction-pad {
  display: grid; place-items: center; align-content: center; gap: 10px;
  width: 100%; min-height: 250px; padding: 24px;
  border: 0; border-radius: var(--r);
  background: linear-gradient(160deg, var(--lav-200), var(--lav-100));
  color: var(--navy); font: inherit; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.8rem); text-align: center;
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--lav-300);
}
.reaction-pad .pad-icon .icon { width: 46px; height: 46px; }
.reaction-pad[data-state="waiting"] { background: linear-gradient(160deg, var(--purple), #8172EE); color: var(--white); box-shadow: none; }
.reaction-pad[data-state="go"] { background: var(--orange); color: var(--navy); box-shadow: 0 0 0 6px var(--orange-200); }
.reaction-pad[data-state="early"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--orange); }
.tries { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.tries li { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.result-card { display: grid; gap: 18px; margin-top: 16px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--lav-300); box-shadow: var(--shadow-1); }
.result-card[hidden] { display: none; }
.result-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.result-stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 10px; }
.result-stats li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-soft); }
.result-stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-stats span { display: block; color: var(--ink-3); font-size: 0.82rem; line-height: 1.3; }
.result-explain { display: grid; gap: 12px; }
.result-explain div { display: flex; gap: 10px; align-items: flex-start; }
.result-explain .icon { margin-top: 3px; color: var(--purple); }
.result-explain p { margin: 0; color: var(--ink-3); font-size: 0.94rem; }
.result-explain strong { display: block; color: var(--ink); }

.side { display: grid; gap: 14px; }
.side .card { padding: 20px; }
.side h2 { font-size: 1.2rem; margin: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.metric-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.metric-big { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-big.is-empty { color: var(--ink-3); }
.metric-label { color: var(--ink-3); font-size: 0.85rem; font-weight: 600; }
.history { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: 0.88rem; }
.history li span:first-child { color: var(--ink-3); }
.history li strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.side .empty-line { margin: 8px 0 0; color: var(--ink-3); font-size: 0.9rem; }
.tip-card { display: flex; gap: 12px; align-items: center; background: var(--orange-100) !important; border-color: var(--orange-200) !important; }
.tip-card img { width: 72px; height: auto; flex: none; }
.tip-card p { margin: 0; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; }
.link-btn { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--purple); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.status-line { min-height: 1.4em; margin: 6px 0 0; color: var(--purple-600); font-size: 0.85rem; font-weight: 600; }

/* ------------------------------------------------------- team & partners */

.people { list-style: none; display: grid; gap: 16px; }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; padding-right: 64px; }
.person .tbd { position: absolute; top: 16px; right: 16px; }
.photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.photo-slot {
  display: grid; place-items: center; align-content: center; gap: 2px;
  border: 1.5px dashed var(--lav-300); background: var(--bg-soft); color: var(--purple);
  font-size: 0.64rem; font-weight: 700; text-align: center; line-height: 1.2;
}
.photo-slot .icon { width: 26px; height: 26px; }
.person h3 { margin: 0 0 4px; font-size: 1.05rem; }
.person-role { margin: 0 0 6px; color: var(--purple-600); font-weight: 700; font-size: 0.88rem; }
.person-bio { margin: 0; color: var(--ink-3); font-size: 0.94rem; }
.people--compact .person { grid-template-columns: 56px 1fr; align-items: center; padding: 14px 64px 14px 14px; }
.people--compact .photo { width: 56px; height: 56px; }
.people--compact .photo-slot span { display: none; }
.people--compact .person-role { margin: 0; }
@media (min-width: 640px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 1fr; padding-right: 24px; }
  .person .photo { width: 112px; height: 112px; }
  .people--compact { grid-template-columns: 1fr; }
  .people--compact .person { grid-template-columns: 56px 1fr; padding-right: 64px; }
  .people--compact .photo { width: 56px; height: 56px; }
}

.advisor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r); }
.avatar-slot { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--lav-300); background: var(--surface); color: var(--purple); }
.avatar-slot + .avatar-slot { margin-left: -16px; }
.advisor-soon { margin: 0 4px 0 6px; color: var(--ink); font-weight: 700; }
.advisor-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.advisor-chip { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.advisor-chip small { display: block; color: var(--ink-3); }

.partners { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partner {
  display: grid; place-items: center; align-content: center; gap: 8px; min-height: 130px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: center;
}
.partner a { display: grid; place-items: center; gap: 8px; width: 100%; height: 100%; color: var(--ink); text-decoration: none; }
.partner img { max-height: 64px; width: auto; }
.partner .icon { width: 24px; height: 24px; color: var(--purple); }
.partner-slot-text { color: var(--ink-3); font-size: 0.88rem; font-weight: 600; }
.partner-name { color: var(--ink); font-weight: 700; }
.partners--compact { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.partners--compact .partner { min-height: 76px; padding: 8px; }
.partners--compact .tbd { font-size: 0.58rem; }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(4, 1fr); } }

.team-preview { display: grid; gap: 28px; }
.team-preview h3 { margin-bottom: 14px; }
@media (min-width: 960px) { .team-preview { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ----------------------------------------------------- about / partners */

.mission {
  padding: 26px 24px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--lav-100), var(--bg-soft)); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-head); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); font-weight: 600; line-height: 1.45;
}
.mission p { margin: 0; }
.mission .eyebrow { font-family: var(--font-body); }

.values { list-style: none; display: grid; gap: 14px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.value p { margin: 0; color: var(--ink-3); font-size: 0.95rem; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }

.timeline { list-style: none; position: relative; display: grid; gap: 12px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(var(--purple), var(--orange)); }
.timeline li { position: relative; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--lav-200); }
.timeline li.is-next { border-style: dashed; border-color: var(--lav-300); box-shadow: none; }
.timeline li.is-next::before { background: var(--surface); border: 2px solid var(--orange); }
.timeline .when { display: block; color: var(--purple); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em; }

.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* ------------------------------------------------------------------ join */

.ways { list-style: none; display: grid; gap: 16px; }
.way { display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 96px; }
.way .pillar-art { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 8px; }
.way .pillar-art img { max-height: 68px; }
.way h2 { margin: 0; font-size: 1.2rem; }
.way p { color: var(--ink-3); }
.way > .btn-row, .way > [data-render] { margin-top: auto; }
.share-status { margin: 8px 0 0; min-height: 1.4em; color: var(--purple-600); font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 700px) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ways { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 0;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(108, 92, 231, 0.35), transparent 60%),
    var(--navy);
  color: rgba(255, 255, 255, 0.75); font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 32px; padding-block: 48px 28px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--white); }
.site-footer .brand-mark { border-color: transparent; }
.site-footer .brand-tag { color: var(--lavender); }
.closing-line { margin: 16px 0 0; max-width: 24rem; color: var(--white); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.footer-heading { margin: 0 0 12px; color: var(--white); font-family: var(--font-head); font-weight: 700; }
.follow-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-social { background: rgba(255, 255, 255, 0.08); color: var(--white); border-color: rgba(162, 155, 254, 0.35); }
.btn-social:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--lavender); color: var(--white); }
.light-social .btn-social { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.light-social .btn-social:hover { border-color: var(--purple); color: var(--purple); }
.footer-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--white); text-decoration: underline; }
.footer-bottom { display: grid; gap: 6px; padding-block: 20px 32px; border-top: 1px solid rgba(162, 155, 254, 0.2); color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.demo-note { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 700; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.noscript { padding: 16px; background: var(--orange); color: var(--navy); text-align: center; font-weight: 700; }

/* ------------------------------------------------------------------- 404 */

.notfound { padding-block: 64px 24px; text-align: center; }
.notfound .page-hero-art { margin: 0 auto 20px; display: grid; width: 220px; height: 220px; background: var(--bg-soft); border: 1px solid var(--line); }
.notfound .code { margin: 0; color: var(--purple); font-family: var(--font-head); font-weight: 700; letter-spacing: 0.24em; }
.notfound .lead { margin-inline: auto; }
.notfound .btn-row { justify-content: center; margin-top: 8px; }

/* ----------------------------------------------------------- breakpoints */

@media (min-width: 600px) { :root { --gutter: 24px; } }

@media (min-width: 960px) {
  :root { --section: 96px; }
  .hero { padding-block: 64px 48px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; }
  .fc-fact { left: -4%; }
  .fc-lab { right: -4%; }
}

@media (max-width: 420px) {
  .float-card { font-size: 0.76rem; padding: 8px 10px 8px 8px; }
}

/* Respect reduced motion everywhere. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .btn:hover, .char-card:hover, .pillar:hover, .fact-card:hover { transform: none; }
}

@media (forced-colors: active) {
  .is-placeholder, .btn-placeholder { border-style: dashed !important; }
  .reaction-pad[data-state="go"] { outline: 6px solid; }
}
