.page-home-modern { background: var(--editorial-paper); color: var(--editorial-ink); }
.page-home-modern :is(#main, .site-head) { max-width: 87rem; }
.page-home-modern #main { padding-inline: clamp(1.05rem, 3vw, 2.6rem); }
.page-home-modern .brand-by { display: none; }
.page-home-modern :is(button, a, input, select, .showcase-track):focus-visible {
  outline: 2px solid var(--editorial-cobalt);
  outline-offset: 3px;
}

.home-observatory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  grid-template-areas: "intro stage" "question stage";
  grid-template-rows: auto 1fr;
  gap: .7rem clamp(1.4rem, 4vw, 4.35rem);
  align-items: stretch;
  margin: clamp(1.25rem, 4vw, 3.4rem) 0 clamp(2.2rem, 6vw, 4.4rem);
}
.observatory-editorial { grid-area: intro; min-width: 0; }
.home-observatory h1 {
  margin: 0 0 .62rem;
  font: 400 clamp(4.1rem, 6.9vw, 7.15rem)/.86 var(--editorial-heading);
  letter-spacing: -.041em;
  text-wrap: balance;
  color: var(--editorial-ink);
}
.home-observatory h1 em { color: var(--editorial-vermilion); font-style: italic; }
.observatory-lede { margin: 0; max-width: 56ch; color: var(--editorial-soft); font-weight: 530; line-height: 1.48; }
.observatory-lede strong { display: block; color: var(--editorial-ink); margin-bottom: .18rem; }
.observatory-actions, .observatory-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin: .85rem 0 1.05rem;
}
.observatory-buttons { margin: .48rem 0 0; }
.observatory-primary, .observatory-outline {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 42px;
  padding: .43rem .82rem;
  border: 1px solid var(--editorial-line);
  border-radius: 8px;
  text-decoration: none;
  font: 740 .86rem/1.25 var(--body);
  color: var(--editorial-ink);
  background: var(--editorial-card);
  cursor: pointer;
}
.observatory-primary { border-color: #223fc0; background: #223fc0; color: #fff; }
.observatory-primary:hover { background: #192f92; color: #fff; }
.observatory-outline:hover { border-color: var(--editorial-cobalt); color: var(--editorial-cobalt); }
.observatory-form {
  grid-area: question;
  align-self: start;
  padding: .72rem clamp(.72rem, 2vw, 1.15rem);
  border: 1px solid var(--editorial-line);
  border-radius: 17px;
  background: var(--editorial-card);
  box-shadow: 0 10px 25px -20px #121a3655;
}
.observatory-form-top { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; }
.observatory-form-top h2 { font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--editorial-heading); margin: 0; }
.observatory-form-top label { display: grid; flex: 0 1 14rem; min-width: 0; gap: .12rem; font: 730 .72rem/1.25 var(--body); }
.observatory-form .place-select { min-height: 38px; border: 1px solid var(--editorial-line); border-radius: 7px; background: var(--editorial-paper); color: var(--editorial-ink); font: 650 .8rem/1.25 var(--body); }
.observatory-presets {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: .2rem .18rem .28rem;
  margin: .45rem -.18rem 0;
  scrollbar-width: thin;
}
.observatory-presets button {
  flex: none;
  padding: .14rem .51rem;
  min-height: 30px;
  border: 1px solid var(--editorial-line);
  border-radius: 99px;
  color: var(--editorial-soft);
  background: transparent;
  font: 750 .72rem/1.15 var(--body);
  cursor: pointer;
}
.observatory-presets button[aria-pressed="true"] {
  border-color: var(--editorial-cobalt);
  color: var(--editorial-cobalt);
  background: color-mix(in srgb, var(--editorial-cobalt) 9%, var(--editorial-card));
}
.observatory-question { margin: .48rem 0 .26rem; font-size: clamp(.98rem, 1.45vw, 1.16rem); line-height: 1.32; font-weight: 800; text-wrap: pretty; }
.observatory-value { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; color: var(--editorial-soft); font-size: .8rem; font-weight: 700; }
.observatory-value output { color: var(--editorial-cobalt); font-size: 1.21rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.observatory-form input[type="range"] { width: 100%; display: block; margin: 0; height: 27px; accent-color: var(--editorial-cobalt); cursor: pointer; }
.observatory-result { color: var(--editorial-soft); margin: .58rem 0 0; font-size: .83rem; }
.observatory-result a { color: var(--editorial-cobalt); text-underline-offset: .17em; }
.observatory-stage {
  grid-area: stage;
  --obs-blue: #879eff;
  --obs-red: #ff977d;
  --obs-gold: #f7ca79;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 33rem;
  margin: 0;
  border: 1px solid #282e44;
  border-radius: 22px;
  color: #f6f4ee;
  background: #11141d;
  box-shadow: 0 18px 40px -25px #12245070;
  overflow: hidden;
}
.observatory-stage-head, .observatory-stage figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: space-between;
  padding: clamp(.65rem, 1.75vw, 1.25rem);
  background: #151924;
}
.observatory-stage-head { border-block-end: 1px solid #2a3345; }
.observatory-stage-head > b {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  padding: .25rem .65rem;
  border: 1px solid #3e4a62;
  border-radius: 100px;
  background: #1b2030;
  font-size: .81rem;
  font-weight: 750;
}
.observatory-formations {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
  background: #252c3d;
  border-radius: 7px;
  padding: .18rem;
}
.observatory-formations button {
  min-height: 34px;
  padding: .25rem .43rem;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #e4e8f2;
  background: transparent;
  font: 700 .74rem/1.2 var(--body);
  cursor: pointer;
}
.observatory-formations button[aria-pressed="true"] { background: #3b496d; color: #fff; border-color: #7386b5; }
.observatory-formations button:focus-visible { outline-color: #a8b7ff; }
.observatory-people {
  position: relative;
  width: 84%;
  max-width: 39rem;
  height: 87%;
  max-height: 34rem;
  align-self: center;
  justify-self: center;
  isolation: isolate;
}
.observatory-people::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#46547526 1px, transparent 1px), linear-gradient(to right, #46547526 1px, transparent 1px);
  background-size: 10% 10%;
  mask-image: radial-gradient(ellipse, #000 40%, transparent 85%);
  pointer-events: none;
}
.observatory-people span {
  --obs-person: #4e5870;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(.4rem, 1.05vw, .92rem);
  height: clamp(.45rem, 1.02vw, .84rem);
  border-radius: 46% 46% 22% 22%;
  background: var(--obs-person);
  transform: translate(-50%, -13%);
  transition: background-color .16s ease, left .48s cubic-bezier(.16,1,.3,1), top .48s cubic-bezier(.16,1,.3,1);
}
.observatory-people span::before {
  content: "";
  position: absolute;
  inset: auto 19% calc(100% + 2px);
  height: 67%;
  border-radius: 100%;
  background: var(--obs-person);
}
.observatory-people .is-guess { --obs-person: var(--obs-blue); }
.observatory-people .is-gap { --obs-person: var(--obs-red); }
.observatory-people .is-over { --obs-person: var(--obs-gold); }
.observatory-stage.has-no-data .observatory-people { opacity: .3; }
.observatory-stage figcaption { justify-content: start; border-block-start: 1px solid #2a3345; color: #e6e9f4; font-size: .75rem; }
.observatory-stage figcaption > :last-child { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.observatory-legend { display: inline-flex; align-items: center; gap: .34rem; }
.observatory-legend i { width: .65rem; height: .65rem; border-radius: 100%; background: var(--obs-blue); }
.observatory-legend.is-under i { background: var(--obs-red); }
.observatory-legend.is-over i { background: var(--obs-gold); }

.home-showcase { border-top: 1px solid var(--editorial-line); }
.showcase-heading, .home-experiences-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; }
.showcase-heading { padding: .84rem 0 .45rem; }
.showcase-heading h2, .home-experiences h2, .home-study-heading h2 {
  margin: 0;
  font: 400 clamp(2.35rem, 4.55vw, 4.8rem)/.95 var(--editorial-heading);
  letter-spacing: -.022em;
}
.showcase-controls { display: flex; align-items: center; gap: .32rem; }
.showcase-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--editorial-line);
  border-radius: 50%;
  background: var(--editorial-card);
  font: 650 1.25rem/1 var(--body);
  color: var(--editorial-ink);
  cursor: pointer;
}
.showcase-controls button:disabled { opacity: .43; cursor: default; }
.showcase-controls button:hover:not(:disabled) { background: var(--editorial-cobalt); color: var(--editorial-paper); }
.showcase-controls > span { font: 700 .8rem/1 var(--body); min-width: 3.1rem; text-align: center; font-variant-numeric: tabular-nums; }
[dir="rtl"] .showcase-controls button span { transform: scaleX(-1); }
.showcase-jump {
  display: flex;
  gap: .38rem;
  padding: .18rem .15rem .38rem;
  margin: 0 0 .7rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--editorial-line) transparent;
}
.showcase-jump a {
  flex: 0 0 auto;
  display: inline-grid;
  align-items: center;
  min-height: 39px;
  padding: .25rem .63rem;
  border: 1px solid var(--editorial-line);
  border-radius: 100px;
  color: var(--editorial-ink);
  background: var(--editorial-card);
  font-size: .8rem;
  font-weight: 720;
  text-decoration: none;
}
.showcase-jump a:is(:hover, [aria-current]) { color: #fff; background: #223fc0; border-color: #223fc0; }
.showcase-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #617092 #11141d;
  border-radius: 18px;
  background: #11141d;
}
.showcase-slide {
  min-inline-size: 0;
  min-block-size: clamp(21rem, 32vw, 28rem);
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  scroll-snap-align: start;
  color: #f7f4ed;
  background: #11141d;
}
.showcase-copy { align-self: center; padding: clamp(1.12rem, 3.8vw, 3.45rem); min-width: 0; }
.showcase-copy h3 {
  margin: 0 0 .65rem;
  font: 400 clamp(2.55rem, 5.45vw, 5.5rem)/.92 var(--editorial-heading);
  letter-spacing: -.016em;
  color: #fbf4e7;
  text-wrap: balance;
}
.showcase-copy p { max-width: 42ch; margin: 0 0 1.06rem; font-size: clamp(.93rem, 1.28vw, 1.06rem); line-height: 1.55; color: #e2e6ef; }
.showcase-action { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: .42rem .8rem; color: #15264a; background: #e6ebff; border-radius: 7px; font: 750 .9rem/1.25 var(--body); text-decoration: none; }
.showcase-action::after { content: "↗"; }
.showcase-action:hover { color: #11141d; background: #fff; text-decoration: underline; }
.showcase-image { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; position: relative; margin: 0; background: #efeadc; overflow: hidden; }
.showcase-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-image:not(.showcase-photo) img { inset: .66rem .84rem 2.3rem; width: calc(100% - 1.68rem); height: calc(100% - 2.96rem); }
.showcase-photo img { object-fit: cover; object-position: 50% 42%; }
#showcase-city .showcase-photo img { object-position: center 55%; }
.showcase-image figcaption { position: absolute; inset: auto 0 0; min-height: 1.4rem; padding: .34rem .65rem; background: #151924f7; color: #f7f4ed; font-size: .74rem; line-height: 1.24; }
.showcase-image figcaption a { color: inherit; text-underline-offset: .16em; }
.showcase-slide a:focus-visible { outline-color: #a9baff; }

.home-experiences, .home-study-index { margin: clamp(2.45rem, 5vw, 4.2rem) 0; }
.home-experiences-heading, .home-study-heading { padding-block-end: .84rem; border-bottom: 1px solid var(--editorial-line); }
.home-recent { font-size: .85rem; color: var(--editorial-cobalt); }
.home-recent span { font-weight: 800; }
.showcase-filter { display: flex; flex-wrap: wrap; gap: .36rem; margin-block-start: .83rem; }
.showcase-filter button { min-height: 34px; padding: .2rem .64rem; border: 1px solid var(--editorial-line); border-radius: 99px; background: var(--editorial-card); color: var(--editorial-ink); font: 740 .78rem/1.2 var(--body); cursor: pointer; }
.showcase-filter button[aria-pressed="true"] { background: #223fc0; border-color: #223fc0; color: #fff; }
.showcase-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.8rem), 1fr)); gap: .72rem; margin-block-start: 1rem; }
.showcase-directory > div {
  padding: .84rem;
  border: 1px solid var(--editorial-line);
  border-block-start: 3px solid var(--editorial-cobalt);
  border-radius: 12px;
  background: var(--editorial-card);
}
.showcase-directory > div[data-showcase-group="learn"] { border-block-start-color: var(--editorial-vermilion); }
.showcase-directory > div[data-showcase-group="research"] { border-block-start-color: #378266; }
.showcase-directory > div:nth-child(4n + 4) { border-block-start-color: #a27427; }
.showcase-directory h3 { margin: 0 0 .32rem; font: 400 clamp(1.55rem, 2.5vw, 2.18rem)/1.03 var(--editorial-heading); color: var(--editorial-ink); }
.showcase-directory ul { list-style: none; padding: 0; margin: 0; }
.showcase-directory a { display: inline-flex; align-items: center; min-height: 30px; color: var(--editorial-soft); font-size: .86rem; text-underline-offset: .18em; }
.showcase-directory a:hover { color: var(--editorial-cobalt); }
.home-study-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .65rem; }
.home-study-heading label { display: block; color: var(--editorial-soft); font-size: .77rem; font-weight: 700; margin-bottom: .17rem; }
.home-study-heading input { width: min(100%, 23rem); min-width: min(100%, 15.5rem); min-height: 40px; padding: .28rem .57rem; border: 1px solid var(--editorial-line); border-radius: 7px; background: var(--editorial-card); color: var(--editorial-ink); font: inherit; font-size: .82rem; }
.home-study-heading output { display: block; color: var(--editorial-soft); font-size: .78rem; }
.home-exam-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .7rem; margin: 1rem 0 1.25rem; }
.home-exam-tracks a { color: var(--editorial-ink); display: grid; align-content: start; gap: .29rem; min-height: 7rem; padding: .7rem .86rem; background: var(--editorial-wash); border: 1px solid var(--editorial-line); border-radius: 11px; text-decoration: none; }
.home-exam-tracks a:hover b { text-decoration: underline; text-underline-offset: .14em; }
.home-exam-tracks small { color: var(--editorial-vermilion); font-size: .75rem; font-weight: 750; }
.home-exam-tracks b { font: 400 2.04rem/.97 var(--editorial-heading); }
.home-exam-tracks span { color: var(--editorial-soft); font-size: .85rem; }
.page-home-modern .fame-bar { margin: 1rem 0; padding: 0; }
.page-home-modern .daily-preview { display: flex; align-items: baseline; flex-wrap: wrap; gap: .28rem 1rem; margin-block: 1.15rem; padding: .7rem 0; border-block-end: 1px solid var(--editorial-line); color: var(--editorial-soft); }
.page-home-modern .daily-preview h2, .page-home-modern .daily-preview p { margin: 0; font-size: .93rem; }
.page-home-modern .daily-preview a { color: var(--editorial-cobalt); font-size: .86rem; font-weight: 780; }
.page-home-modern .newsletter { padding: 1.25rem; background: var(--editorial-wash); border: 1px solid var(--editorial-line); border-radius: 14px; margin-block: 1.85rem; }

:is(.lang-ar, .lang-ur, .lang-zh-Hans, .lang-zh-Hant) :is(.home-observatory h1, .showcase-copy h3) {
  font-size: clamp(1.95rem, 4.6vw, 4.15rem); letter-spacing: 0; line-height: 1.31; font-weight: 720;
}
.lang-ur :is(.observatory-form-top, .showcase-heading h2, .home-experiences h2, .showcase-directory h3) { line-height: 1.8; }
/* Nastaliq stacks its letters diagonally, so the large headings need taller lines than Arabic or Chinese. */
.lang-ur :is(.home-observatory h1, .showcase-copy h3, .home-exhibit h2) { line-height: 1.85; }
.lang-ur .home-observatory h1 { padding-inline-start: .2em; }
@media (min-width: 1000px) {
  .showcase-jump { flex-wrap: wrap; }
  .showcase-jump a { min-height: 36px; }
}
@media (max-width: 850px) {
  .home-observatory { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stage" "question"; grid-template-rows: none; gap: .75rem; }
  .observatory-lede { font-size: .94rem; }
  .observatory-actions { margin-block-end: .15rem; }
  .home-observatory h1 { font-size: clamp(3.25rem, 10.5vw, 5.3rem); text-wrap: wrap; }
  .observatory-stage { min-height: clamp(16rem, 58vw, 29rem); }
  .observatory-people span { width: clamp(.38rem, 1.65vw, .9rem); height: clamp(.38rem, 1.5vw, .84rem); }
}
@media (max-width: 700px) {
  .showcase-heading h2 { flex: 1 1 10rem; font-size: clamp(2rem, 6.6vw, 3.1rem); }
  .showcase-controls { gap: .16rem; }
  .showcase-controls > span { min-width: 2.6rem; }
  .showcase-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .showcase-copy { align-self: start; padding: 1.1rem; }
  .showcase-image { grid-row: 1; height: clamp(10rem, 47vw, 16rem); }
  .showcase-image:not(.showcase-photo) img { inset: .34rem .44rem 1.9rem; width: calc(100% - .88rem); height: calc(100% - 2.24rem); }
  .showcase-directory a { min-height: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .observatory-stage { animation: observatory-enter .48s cubic-bezier(.16,1,.3,1) both; }
  @keyframes observatory-enter { from { opacity: .45; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .observatory-people span { transition: none; }
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
.page-home-modern { --home-mono: "JetBrains Mono", ui-monospace, monospace; }
/* The monospace face has no Arabic, Urdu or Chinese glyphs, so those editions use their text face for readouts. */
.page-home-modern:is(.lang-ar, .lang-ur, .lang-zh-Hans, .lang-zh-Hant) { --home-mono: var(--body); }
.page-home-modern.lang-ur :is(.home-mini output, .home-count, #hero-played-count, .community-pulse-strip strong) { line-height: 2; }
.observatory-render { position: relative; min-height: 0; display: grid; }
.observatory-render canvas, .home-story-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.observatory-render:not(.has-canvas) canvas { opacity: 0; }
.observatory-render.has-canvas .observatory-people { visibility: hidden; }
.observatory-render canvas { touch-action: pan-y; }
.guess-range { position: relative; }
#reality-pin { position: absolute; inset-block: 2px; width: 3px; border-radius: 4px; background: var(--editorial-vermilion); pointer-events: none; }
.home-count, #hero-played-count { display: inline-flex; margin: .22rem 0 0; padding: .18rem .49rem; border: 1px solid var(--editorial-line); border-radius: 99px; color: var(--editorial-cobalt); font: 650 .72rem/1.4 var(--home-mono); }
.home-menu-open, #site-lang-select {
  min-height: 39px; min-width: 39px; border-radius: 8px; border: 1px solid var(--editorial-line);
  background: var(--editorial-card); color: var(--editorial-ink); font: 700 .74rem/1.3 var(--body);
}
.home-menu-open { cursor: pointer; font-size: 1.02rem; }
#site-lang-select { max-width: 8.5rem; padding: .24rem; }
.home-language.has-select .lang-pick { display: none; }
.home-menu {
  --menu-button: #eae5d5;
  --menu-tile: #f5f3ea;
  --menu-line: #d5d0c3;
  box-sizing: border-box;
  width: min(calc(100vw - 2rem), 78rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: clamp(.9rem, 2.2vw, 1.9rem);
  border: 1px solid var(--menu-line);
  border-radius: 18px;
  background: #fbfaf6;
  color: #13171d;
  box-shadow: 0 18px 55px #11141d55;
  overflow-y: auto;
  overscroll-behavior: contain;
}
[data-dark] .home-menu {
  --menu-button: #30374a;
  --menu-tile: #272e3c;
  --menu-line: #4b566a;
  background: #202534;
  color: #f8f4ea;
}
.home-menu::backdrop { background: #0e1628ae; }
.home-menu header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.home-menu h2 { margin: 0; font: 400 clamp(2.45rem, 4vw, 3.65rem)/1 var(--editorial-heading); }
.home-menu .home-menu-close {
  display: flex; gap: .35rem; align-items: center; padding: .32rem .95rem; min-height: 44px;
  border: 1.5px solid var(--menu-line); border-radius: 99px; background: transparent; color: inherit;
  font: 700 clamp(.95rem, 2.15vw, 1.25rem)/1.16 var(--body); cursor: pointer;
}
.home-menu-close span { font-size: 1.52em; line-height: .8; font-weight: 450; }
.home-menu nav { display: grid; gap: clamp(.92rem, 2.15vw, 1.55rem); margin-top: clamp(1rem, 3vw, 2.2rem); }
.home-menu-major, .home-menu-games { display: grid; gap: clamp(.5rem, 1.25vw, 1rem); }
.home-menu-major { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-menu-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-menu nav a {
  display: flex; justify-content: center; align-items: center; gap: .36em; color: inherit;
  padding: .5rem .66rem; min-height: 44px; border: 1.5px solid var(--menu-line);
  border-radius: 14px; background: var(--menu-button); text-decoration: none; text-align: center;
  font-size: clamp(.85rem, 1.85vw, 1.2rem); font-weight: 720; line-height: 1.2; overflow-wrap: anywhere;
}
.home-menu nav :is(a:hover, a:focus-visible), .home-menu .home-menu-close:hover {
  border-color: var(--editorial-cobalt);
  box-shadow: inset 0 0 0 1px var(--editorial-cobalt);
}
.home-menu .home-menu-major a { min-height: clamp(49px, 6.2vw, 70px); }
.home-menu .home-menu-games a {
  flex-direction: column; gap: .5rem; font-size: clamp(.87rem, 1.69vw, 1.32rem); min-height: clamp(7.1rem, 13vw, 9.6rem); background: var(--menu-tile);
}
.home-menu-games img { display: block; width: clamp(4.6rem, 10vw, 7.25rem); height: auto; }
.home-menu-shortcuts { display: flex; flex-wrap: wrap; gap: .52rem .65rem; padding-top: .9rem; border-top: 1px solid var(--menu-line); }
.home-menu .home-menu-shortcuts a { padding-inline: .9rem; border-radius: 12px; font-size: clamp(.8rem, 1.64vw, 1.05rem); }
@media (max-width: 560px) {
  .home-menu { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  .home-menu-major, .home-menu-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-menu .home-menu-games a { min-height: 6.5rem; }
}
.hof-bar {
  display: flex; align-items: stretch; min-height: 40px; margin-top: .35rem;
  color: #f7f4ed; background: #151924; border-radius: 9px; overflow: hidden; font-size: .81rem;
}
.hof-bar > strong { flex: none; display: grid; place-items: center; padding: .28rem .68rem; color: #111318; background: #f4c87a; }
.hof-bar .home-motion {
  align-self: center; margin-inline: .37rem; min-width: 29px; min-height: 29px; color: #f4c87a;
}
.hof-track {
  display: flex; flex: 1; align-items: center; gap: 1.15rem; min-width: 0;
  overflow: auto; scrollbar-width: none; white-space: nowrap; padding-inline: .58rem;
}
.hof-track::-webkit-scrollbar { display: none; }
.hof-track > * { flex: none; color: #f4f1e9; }
.hof-track > *::before { content: ""; display: inline-block; vertical-align: .1em; width: 5px; height: 5px; margin-inline-end: .62rem; border-radius: 50%; background: #f4c87a; }
.hof-bar :is(a,button):focus-visible { outline: 2px solid #ffe0a3; outline-offset: -2px; }
.home-question-stream {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch;
  margin: -1.7rem 0 1.6rem; color: #fff9ee; background: #161e30;
  border: 1px solid #273249; border-radius: 12px; overflow: hidden;
}
.home-question-stream header {
  display: flex; align-items: center; gap: .55rem; padding: .32rem .65rem;
  background: #9b3529; color: #fff9ee; font-size: clamp(.78rem, 1.3vw, .94rem);
}
.home-motion {
  flex: 0 0 auto; display: grid; place-items: center; min-width: 34px; min-height: 34px;
  border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit;
  cursor: pointer; font: 700 .98rem/1 var(--body);
}
.home-question-stream .home-motion:hover { color: #32150f; background: #fff4df; }
#question-ticker-track {
  display: flex; align-items: center; gap: .64rem; min-width: 0; padding: .38rem .7rem;
  overflow: auto; scrollbar-width: thin; scrollbar-color: #7381a0 #161e30;
}
#question-ticker-track a {
  flex: 0 0 auto; display: block; max-width: 100%; padding: .38rem .72rem; border: 1px solid #4a5772;
  border-radius: 99px; background: #242f47; color: #fff9ee; font-size: .81rem; text-decoration: none;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
#question-ticker-track a strong { color: #ffe0a3; }
#question-ticker-track a:hover { border-color: #ffe0a3; text-decoration: underline; }
.home-question-stream :is(a,button):focus-visible { outline: 2px solid #ffe0a3; outline-offset: -2px; }
@media (max-width: 660px) {
  .home-question-stream { grid-template-columns: minmax(0, 1fr); }
  .home-question-stream header { justify-content: space-between; }
}
.home-exhibit { margin: clamp(2.7rem, 6vw, 5.25rem) 0; scroll-margin-top: 1rem; }
.home-exhibit h2 { margin: 0 0 1rem; border-bottom: 1px solid var(--editorial-line); padding-bottom: .55rem; font: 400 clamp(2.75rem, 5.5vw, 5.35rem)/.95 var(--editorial-heading); letter-spacing: -.018em; }
.home-pill-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: .35rem; margin: .55rem 0; }
.home-pill-row button { cursor: pointer; min-height: 36px; padding: .19rem .68rem; border: 1px solid var(--editorial-line); border-radius: 99px; background: var(--editorial-card); color: var(--editorial-ink); font: 740 .78rem/1.22 var(--body); }
.home-pill-row button[aria-pressed="true"] { background: #223fc0; border-color: #223fc0; color: #fff; }
.home-mini-grid, .home-evidence-grid { display: grid; gap: .87rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-block: .85rem; }
.home-evidence-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.home-mini, .home-evidence-grid > article, .home-network {
  min-width: 0; display: grid; align-content: start; gap: .5rem; padding: clamp(.75rem, 2vw, 1.25rem);
  border: 1px solid var(--editorial-line); border-radius: 15px; background: var(--editorial-card);
}
.home-mini h3, .home-evidence-grid h3, .home-network h3 { margin: 0; font: 400 clamp(1.75rem, 3.15vw, 2.65rem)/1 var(--editorial-heading); }
.home-mini p, .home-evidence-grid p, .home-network p { margin: 0; color: var(--editorial-soft); font-size: .85rem; }
.home-mini output { font: 650 .88rem/1.4 var(--home-mono); color: var(--editorial-cobalt); }
.home-mini input[type="range"] { width: 100%; accent-color: var(--editorial-cobalt); background: linear-gradient(90deg, var(--editorial-cobalt) var(--guess-pct, 45%), var(--editorial-wash) 0) center / 100% 3px no-repeat; }
.home-mini-link { font-size: .85rem; color: var(--editorial-cobalt); text-underline-offset: .18rem; width: fit-content; }
.home-amsterdam { margin: 0; overflow: hidden; border-radius: 8px; aspect-ratio: 2.25; }
.home-amsterdam img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.home-caption { font-size: .71rem !important; }
.home-bridge { display: flex; align-items: center; margin: .5rem 0; color: var(--editorial-cobalt); justify-content: space-between; gap: .37rem; }
.home-bridge i { flex: 1; height: 2px; background: currentColor; }
.home-bridge.is-cut :is(i,b) { opacity: .15; }
.home-life-chart { display: grid; gap: .3rem; font-size: .78rem; }
.home-life-chart span { display: grid; align-items: center; gap: .35rem; grid-template-columns: 1fr 1fr; }
.home-life-chart meter { width: 100%; height: 1rem; accent-color: var(--editorial-cobalt); }
.home-story-grid { display: grid; align-items: start; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(.55rem, 3vw, 1.55rem); }
.story-chapter-card { min-height: 10.8rem; margin-bottom: .55rem; padding: .8rem; border: 1px solid var(--editorial-line); border-radius: 11px; background: var(--editorial-card); }
.story-chapter-card:has(button[aria-pressed="true"]) { border-inline-start: 4px solid var(--editorial-vermilion); }
.story-chapter-card button { display: grid; text-align: start; width: 100%; padding: 0; font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
.story-chapter-card strong { font: 400 1.88rem/1.06 var(--editorial-heading); }
.story-chapter-card small { color: var(--editorial-vermilion); font-weight: 760; }
.story-chapter-card p { margin: .42rem 0; font-size: .88rem; color: var(--editorial-soft); }
.story-chapter-card a { font-weight: 750; font-size: .84rem; color: var(--editorial-cobalt); }
.home-story-stage { position: sticky; top: 1rem; margin: 0; padding: .75rem; background: #11141d; color: #f7f4ed; border-radius: 16px; }
.home-story-stage figcaption { font: 400 1.8rem/1.17 var(--editorial-heading); }
.home-story-canvas { height: clamp(14rem, 32vw, 27rem); position: relative; }
.home-story-stage .home-pill-row button { background: #262e40; color: #f8f5ec; border-color: #515d76; }
.home-story-stage .home-pill-row button[aria-pressed="true"] { background: #294bc2; border-color: #85a2ff; }
.community-pulse-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.8rem), 1fr)); gap: .72rem; }
.community-pulse-strip > div { display: grid; padding: .7rem .8rem; border-block-start: 2px solid var(--editorial-cobalt); background: var(--editorial-wash); border-radius: 7px; }
.community-pulse-strip strong { font: 650 clamp(1.1rem, 3vw, 1.7rem)/1.22 var(--home-mono); }
.community-pulse-strip span { font-size: .79rem; color: var(--editorial-soft); }
.lb-row { display: flex; align-items: baseline; gap: .3rem .55rem; flex-wrap: wrap; padding: .37rem 0; border-bottom: 1px solid var(--editorial-line); font-size: .78rem; }
.lb-row strong { flex: 1 1 9rem; }
.lb-row span:nth-child(2) { flex: 1 1 4rem; }
.lb-row-you { background: var(--editorial-wash); border-radius: 6px; padding: .52rem; }
.home-gap-row { display: grid; gap: .09rem; font-size: .78rem; padding-bottom: .55rem; }
.home-gap-row > span { color: var(--editorial-soft); }
.home-gap-track { position: relative; height: 6px; border-radius: 4px; background: var(--editorial-wash); margin-block-end: .22rem; }
.home-gap-track::before, .home-gap-track::after { content: ""; position: absolute; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--editorial-cobalt); left: var(--guess); }
.home-gap-track::after { background: var(--editorial-vermilion); left: var(--actual); }
#network-inspector-bar { display: flex; flex-wrap: wrap; gap: .38rem .9rem; font-size: .9rem; }
#network-inspector-bar a { color: var(--editorial-cobalt); }
.home-network-canvas {
  display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(15rem, 1fr);
  align-items: stretch; border: 1px solid var(--editorial-line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle, var(--editorial-line) 1px, transparent 1.3px) 0 0 / 19px 19px, var(--editorial-wash);
}
#theory-network-canvas { display: block; width: 100%; height: clamp(17rem, 36vw, 25rem); touch-action: none; cursor: grab; }
#theory-network-canvas:active { cursor: grabbing; }
.home-network-canvas:has(.map-branch[hidden]) { grid-template-columns: minmax(0, 1fr); }
.map-branch {
  align-self: center; position: relative; display: grid; gap: .62rem; min-width: 0;
  padding: 1rem clamp(.75rem, 2vw, 1.7rem) 1rem 1.2rem;
}
.map-branch h4 {
  position: relative; margin: 0; width: fit-content; padding: .32rem .7rem; border: 1px solid #7387d5; border-radius: 8px;
  background: var(--editorial-cobalt); color: var(--editorial-paper);
  font: 700 .9rem/1.3 var(--body);
}
.map-branch h4::before { content: ""; position: absolute; inset-inline-end: 100%; top: 50%; width: 1.25rem; border-block-start: 1px dashed #7789d2; }
.map-concepts { display: grid; gap: .49rem; border-inline-start: 2px solid #7789d2; margin-inline-start: .8rem; padding-inline-start: 1.16rem; }
.map-concepts a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: .35rem;
  min-height: 41px; padding: .37rem .62rem; border: 1px solid #7689d1; border-radius: 8px;
  color: var(--editorial-ink); background: var(--editorial-card); text-decoration: none; font-size: .84rem; font-weight: 660;
}
.map-concepts a::before { content: ""; position: absolute; inset-inline-end: 100%; width: 1.2rem; height: 2px; background: #7789d2; }
.map-concepts a::after { content: ""; position: absolute; inset-inline-start: -1.38rem; width: 7px; height: 7px; border-radius: 50%; background: var(--editorial-cobalt); }
.map-concepts a:hover { border-color: var(--editorial-cobalt); text-decoration: underline; }
.map-concepts a span { color: var(--editorial-cobalt); }
.is-animated .map-concepts a::after { animation: branch-signal 1.9s ease-in-out infinite alternate; }
.is-animated .map-concepts a:nth-child(2)::after { animation-delay: .2s; }
.is-animated .map-concepts a:nth-child(3)::after { animation-delay: .4s; }
.is-animated .map-concepts a:nth-child(4)::after { animation-delay: .6s; }
@keyframes branch-signal { to { box-shadow: 0 0 0 4px #7b95ef55; } }
@media (max-width: 700px) {
  .home-network-canvas { grid-template-columns: minmax(0, 1fr); }
  #theory-network-canvas { height: 15rem; }
  .map-branch { padding-block-start: .52rem; }
  .map-branch h4::before { inset-inline-start: 50%; top: auto; bottom: 100%; width: 0; height: .55rem; border-block-start: 0; border-inline-start: 1px dashed #7789d2; }
}
@media (max-width: 700px) {
  .home-story-grid { grid-template-columns: minmax(0, 1fr); }
  .home-story-stage { position: relative; top: auto; }
  #site-lang-select { max-width: 5.05rem; font-size: .65rem; }
  html:not(.in-app) .page-home-modern .site-head .museum-tools .museum-profile { display: none; }
  .home-question-stream { margin-top: -.95rem; }
}
.observatory-presets [data-observatory-current] {
  flex: none; min-height: 30px; align-content: center; padding: .14rem .5rem; border-radius: 99px;
  border: 1px solid var(--editorial-cobalt); font: 750 .72rem/1.2 var(--body); color: var(--editorial-cobalt);
}

/* Product images, archival portraits and the visual concept directory. */
.home-mini-art, .directory-image {
  display: block;
  width: 100%;
  background: #eae5d9;
  object-fit: cover;
  object-position: top center;
}
.home-mini-art, .home-amsterdam { aspect-ratio: 2.25; border-radius: 9px; }
.home-mini-art { object-fit: contain; padding: .42rem; }
.home-mini .home-mini-link { margin-top: .35rem; }
.home-mini-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.home-story-stage > figcaption { display: block; }
.story-portraits { display: flex; gap: .45rem; margin: .6rem 0; }
.story-portraits .thinker-portrait { flex: 1 1 0; min-width: 0; margin: 0; }
.story-portraits img { display: block; width: 100%; height: clamp(7rem, 13vw, 10.5rem); object-fit: cover; object-position: center 28%; border-radius: 7px; background: var(--editorial-wash); }
.story-portraits figure:only-child img { object-fit: contain; object-position: left center; }
/* A single upright portrait fills the frame around the face instead of leaving an empty band beside it. */
.story-portraits .thinker-mills:only-child img { object-fit: cover; object-position: center 22%; }
[dir="rtl"] .story-portraits figure:only-child img { object-position: right center; }
[dir="rtl"] .story-portraits .thinker-mills:only-child img { object-position: center 22%; }
.story-portraits .thinker-khaldun img { object-position: center 13%; }
.story-portraits figcaption, .story-portraits figcaption a { color: var(--editorial-soft); font-size: .72rem; line-height: 1.35; font-weight: 550; }
.story-portraits figcaption { margin-top: .23rem; }

.evidence-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .72rem; margin-block: .9rem; }
.evidence-figure {
  --evidence-bg: #12244d; --evidence-accent: #aec3ff;
  display: grid; align-content: start; gap: .16rem; position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(.75rem, 2vw, 1.38rem); border-radius: 13px; background: var(--evidence-bg); color: #fffaf1;
  text-decoration: none; min-height: 9rem;
}
.evidence-figure[data-evidence-type="prompts"] { --evidence-bg: #633027; --evidence-accent: #ffcdb4; }
.evidence-figure[data-evidence-type="people"] { --evidence-bg: #173b33; --evidence-accent: #b1ead2; }
.evidence-figure[data-evidence-type="levels"] { --evidence-bg: #473160; --evidence-accent: #eed1ff; }
.evidence-figure::before {
  content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 68%;
  background: radial-gradient(circle at center, var(--evidence-accent) 1px, transparent 1.5px) 0 0 / 9px 9px;
  opacity: .16; mask-image: linear-gradient(105deg, transparent 10%, black 100%);
}
.evidence-figure strong { color: var(--evidence-accent); font: 400 clamp(2.6rem, 5.3vw, 4.1rem)/.92 var(--editorial-heading); }
.evidence-figure b { font-size: .96rem; }
.evidence-figure span { font-size: .78rem; }
.evidence-figure i { font-style: normal; }
.evidence-figure:hover span { text-decoration: underline; }

#network-inspector-bar { padding: .75rem; background: var(--editorial-wash); border-radius: 9px; }
.concept-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.concept-links a {
  display: inline-flex; align-items: center; gap: .28rem; min-height: 35px; padding: .24rem .57rem;
  border: 1px solid var(--editorial-line); border-radius: 99px; background: var(--editorial-card);
  color: var(--editorial-cobalt); font-size: .8rem; text-decoration: none;
}
.concept-links a:hover { border-color: var(--editorial-cobalt); text-decoration: underline; }
.theory-directory { margin-top: .55rem; }
.theory-directory h4 { margin: 0 0 .45rem; font: 400 1.8rem/1.1 var(--editorial-heading); }
.theory-directory > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); align-items: start; gap: .47rem; margin-bottom: .6rem; }
.theory-directory details { padding: .46rem .59rem; border: 1px solid var(--editorial-line); border-radius: 8px; }
.theory-directory summary { cursor: pointer; font-weight: 740; min-height: 29px; }
.theory-directory .concept-links { padding-top: .33rem; }
.theory-directory > a { color: var(--editorial-cobalt); font-size: .87rem; }

.showcase-directory > div { padding: 0; overflow: hidden; }
.directory-image { height: auto; aspect-ratio: 2.2; object-fit: contain; }
.showcase-directory > div:has(img[src*="shibuya"]) img, .showcase-directory > div:has(img[src*="amsterdam"]) img { object-fit: cover; object-position: center; }
.directory-copy { padding: .75rem .84rem .87rem; }
@media (prefers-reduced-motion: no-preference) {
  .showcase-directory > div { transition: border-color .2s, box-shadow .2s; }
  .directory-image { transition: filter .2s; }
  .showcase-directory > div:is(:hover,:focus-within) { border-color: var(--editorial-cobalt); box-shadow: 0 6px 18px #171a3030; }
  .showcase-directory > div:is(:hover,:focus-within) img { filter: saturate(1.2); }
}

.home-study-heading [data-home-guide-search] { flex: 0 1 22rem; width: 100%; }
.home-study-heading input { width: 100%; max-width: none; }
.page-home-modern .home-guides {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 17rem), calc((100% - 2rem) / 3)), 1fr));
  align-items: stretch; gap: 1rem; width: 100%; max-width: none; margin: 1rem 0;
}
.page-home-modern .home-guides li { display: flex; min-width: 0; margin: 0; }
.page-home-modern .home-guides details {
  flex: 1; min-width: 0; border: 1px solid var(--editorial-line); border-block-start: 4px solid var(--guide-accent, var(--editorial-cobalt));
  border-radius: 12px; background: var(--editorial-card); overflow: hidden;
}
.home-guides li[data-guide-topic="Exam Guides"] { --guide-accent: #a84d2f; }
.home-guides li[data-guide-topic="Research Methods"] { --guide-accent: #40806a; }
.home-guides li[data-guide-topic="Norms & Inequality"] { --guide-accent: #9d762d; }
.home-guides li[data-guide-topic="Classical Theorists"] { --guide-accent: #8461a2; }
.page-home-modern .home-guides summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .43rem .6rem;
  align-content: start; padding: .84rem 1rem 1rem; cursor: pointer;
}
.page-home-modern .home-guides summary small { grid-column: 1 / -1; color: var(--editorial-soft); font-weight: 740; font-size: .72rem; }
.page-home-modern .home-guides summary b { margin: 0; font: 400 clamp(1.55rem, 2.3vw, 2.18rem)/1.04 var(--editorial-heading); }
.page-home-modern .home-guides summary::after { content: "+"; grid-area: 2 / 2; align-self: center; color: var(--editorial-cobalt); font-size: 1.15rem; font-weight: 780; }
.page-home-modern .home-guides details[open] summary::after { content: "−"; }
.page-home-modern .home-guides summary span { grid-column: 1 / -1; color: var(--editorial-soft); font-size: .86rem; }
.page-home-modern .home-guides summary:focus-visible { outline: 2px solid var(--editorial-cobalt); outline-offset: -4px; }
.page-home-modern .home-guides details > div { padding: .8rem 1rem; border-block-start: 1px solid var(--editorial-line); background: var(--editorial-wash); }
.page-home-modern .home-guides details p { margin: 0 0 .35rem; font-size: .87rem; }
.page-home-modern .home-guides details a {
  display: inline-block; border: 0; padding: .2rem 0; box-shadow: none; background: transparent;
  color: var(--editorial-cobalt); text-decoration: underline; text-underline-offset: .15rem;
}
.guide-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; justify-content: space-between; }
.guide-pagination button {
  min-height: 42px; border: 1px solid var(--editorial-line); background: var(--editorial-card);
  color: var(--editorial-ink); font: 680 .79rem/1.2 var(--body); padding: .36rem .65rem; border-radius: 8px; cursor: pointer;
}
.guide-pagination button:disabled { opacity: .65; cursor: default; }
.guide-pagination output { color: var(--editorial-soft); font-size: .82rem; }

.page-home-modern .home-footer {
  position: relative; isolation: isolate; width: 100%; max-width: none;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3.2vw, 4rem) 1.25rem;
  background: #161e30; color: #f7f1e5; border: 0; overflow: hidden;
}
.home-footer::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #e08b61, #edc66e 36%, #8fa8f3 70%, #8dccb0) top / 100% 4px no-repeat,
    radial-gradient(circle, #a9bff248 1.2px, transparent 1.8px) center / 21px 21px;
}
.home-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.4rem); }
.home-footer nav, .home-footer-brand {
  min-width: 0; border-radius: 9px; padding: .78rem clamp(.65rem, 1.3vw, 1rem);
  background: #1d273ef5; border: 1px solid #3e4b66;
}
.home-footer nav { display: grid; align-content: start; padding-block-end: .82rem; }
.home-footer nav h2 { margin: 0 0 .4rem; font: 400 1.75rem/1.1 var(--editorial-heading); color: #fbdfa4; }
.home-footer nav:nth-of-type(2) h2 { color: #cfdbff; }
.home-footer nav:nth-of-type(3) h2 { color: #bce5d0; }
.home-footer nav:nth-of-type(4) h2 { color: #ffc5b4; }
.home-footer a { margin: 0; padding: .34rem 0; color: #f7f1e5; font-size: .86rem; font-weight: 620; text-underline-offset: .18rem; }
.home-footer a:hover { color: #ffe0a3; }
.home-footer-brand > a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem; text-decoration: none; }
.home-footer-brand b { font: 400 clamp(1.42rem, 2.45vw, 2.6rem)/1 var(--editorial-heading); overflow-wrap: anywhere; }
.home-footer-brand span { display: block; color: #e2daca; font-size: .83rem; }
.home-footer-end {
  border-top: 1px solid #65718b; margin-top: 1.12rem; padding-top: .75rem; display: flex;
  flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: #f4ebdb;
  background: #161e30;
}
.home-footer-end small { color: inherit; }
.home-footer-end label { margin-inline-start: auto; color: inherit; font-size: .8rem; }
.home-footer-end select { color: #f7f1e5; background: #26324a; border: 1px solid #7381a0; border-radius: 5px; padding: .25rem; }
.home-footer :is(a,select):focus-visible { outline-color: #ffe0a3; }

.home-cursor {
  position: fixed; inset: 0 auto auto 0; z-index: 45; width: 0; height: 0;
  pointer-events: none; visibility: hidden;
}
.home-cursor[data-action] { visibility: visible; }
.home-cursor-face {
  position: absolute; inset: 0 auto auto 0; display: grid; align-content: center; justify-items: center;
  gap: 2px; width: var(--cursor-width, 68px); height: var(--cursor-height, 62px);
  transform: translate(calc(-50% + var(--cursor-shift-x, 0px)), calc(-50% + var(--cursor-shift-y, 0px)));
  scale: var(--cursor-scale, 1); transform-origin: center;
  border-radius: var(--cursor-radius, 50%); clip-path: var(--cursor-clip, none);
  background: var(--cursor-ink, #141820); color: #fffdf5;
  border: 1px solid #ffffff70; box-shadow: 0 6px 22px #10152545;
  text-align: center; transition: width 150ms ease, height 150ms ease, border-radius 150ms ease, scale 110ms ease, background-color 150ms ease;
}
.home-cursor-symbol { font: 700 15px/.9 system-ui, sans-serif; direction: ltr; }
.home-cursor-label { max-width: 100%; font: 700 9px/1.06 var(--home-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.home-cursor[data-pressed] { --cursor-scale: .85; }
.home-cursor[data-action="dot"] { --cursor-width: 13px; --cursor-height: 13px; --cursor-ink: #d63b20; }
.home-cursor[data-action="dot"] .home-cursor-face { border-color: transparent; box-shadow: none; transition: none; transform: translate(-50%, -50%); }
.home-cursor[data-action="dot"] .home-cursor-face > span { display: none; }
.home-cursor[data-action="guess"] { --cursor-width: 68px; --cursor-height: 68px; }
.home-cursor[data-action="drag"] { --cursor-width: 67px; --cursor-height: 54px; --cursor-radius: 17px; --cursor-ink: #23347e; }
.home-cursor[data-action="drag"][data-pressed] { --cursor-radius: 33px; --cursor-ink: #15204f; }
.home-cursor[data-action="play"] {
  --cursor-width: 76px; --cursor-height: 54px; --cursor-radius: 16px;
  --cursor-clip: polygon(0 0, 76% 0, 100% 50%, 76% 100%, 0 100%);
}
.home-cursor[data-action="play"] .home-cursor-face { padding-inline-end: 9px; }
.home-cursor[data-action="view"] {
  --cursor-width: 70px; --cursor-height: 58px; --cursor-ink: #543573;
  --cursor-radius: 0; --cursor-clip: polygon(19% 0, 81% 0, 100% 50%, 81% 100%, 19% 100%, 0 50%);
}
.home-cursor[data-action="open"] {
  --cursor-width: 68px; --cursor-height: 56px; --cursor-radius: 10px; --cursor-ink: #204872;
  --cursor-clip: polygon(0 0, 73% 0, 100% 29%, 100% 100%, 0 100%);
}
.home-cursor[data-action="read"] {
  --cursor-width: 70px; --cursor-height: 58px; --cursor-radius: 8px; --cursor-ink: #1e5348;
  --cursor-clip: polygon(0 0, 48% 6%, 52% 6%, 100% 0, 100% 92%, 52% 100%, 48% 100%, 0 92%);
}
.home-cursor[data-action="compare"] { --cursor-width: 80px; --cursor-height: 52px; --cursor-radius: 7px 25px; --cursor-ink: #244959; }
.home-cursor[data-action="compare"] .home-cursor-face { background: linear-gradient(90deg, #173c4b 50%, #315767 50%); }
.home-cursor[data-action="measure"] { --cursor-width: 80px; --cursor-height: 43px; --cursor-radius: 7px; --cursor-ink: #665023; }
.home-cursor[data-action="measure"] .home-cursor-face { border-block-start: 2px dashed #f4d69f; }
.home-cursor[data-action="find"] { --cursor-width: 58px; --cursor-height: 58px; --cursor-radius: 52% 52% 60% 22%; --cursor-ink: #314273; }
.home-cursor[data-action="browse"] { --cursor-width: 78px; --cursor-height: 43px; --cursor-radius: 99px; --cursor-ink: #29365a; }
.home-cursor[data-action="data"] { --cursor-width: 60px; --cursor-height: 60px; --cursor-radius: 9px; --cursor-ink: #42542c; }
.home-cursor[data-action="try"] {
  --cursor-width: 73px; --cursor-height: 65px; --cursor-radius: 0; --cursor-ink: #9b3529;
  --cursor-clip: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.home-cursor[data-action="explore"] {
  --cursor-width: 79px; --cursor-height: 66px; --cursor-radius: 0; --cursor-ink: #354971;
  --cursor-clip: polygon(26% 0, 74% 0, 100% 26%, 100% 74%, 74% 100%, 26% 100%, 0 74%, 0 26%);
}
#hero-swarm-canvas, .observatory-form input[type="range"] { cursor: grab; }
#hero-swarm-canvas:active, .observatory-form input[type="range"]:active { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .page-home-modern.has-home-cursor, .page-home-modern.has-home-cursor :not(dialog, dialog *) { cursor: none !important; }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce), (forced-colors: active) {
  .home-cursor { display: none; }
}
@media (max-width: 940px) {
  .home-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .evidence-figures, .home-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .home-footer-end label { margin-inline-start: 0; }
}

/* Interactive homepage labs */
.home-tool-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.home-tool-actions button, .home-flip-controls button, .paradox-list button, .paradox-option {
  min-height: 44px; padding: .45rem .75rem; border: 1px solid var(--editorial-line); border-radius: .6rem;
  background: var(--editorial-card); color: var(--editorial-ink); font: 700 .83rem/1.3 var(--body); cursor: pointer;
}
.home-tool-actions button:disabled, .paradox-option:disabled { opacity: 1; cursor: default; }
.home-tool-actions button:not(:disabled):hover, .home-flip-controls button:hover, .paradox-option:not(:disabled):hover { border-color: var(--editorial-cobalt); }

.home-duel, .home-paradox, .home-flashcards, .home-paradigm {
  padding: clamp(1rem, 2.9vw, 2.4rem); border: 1px solid var(--editorial-line); border-radius: 18px;
}
.home-duel { background: var(--editorial-wash); }
.duel-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.duel-controls label { display: grid; flex: 1 1 13rem; min-width: 0; gap: .2rem; font-size: .78rem; font-weight: 750; }
.duel-controls select {
  width: 100%; min-width: 0; min-height: 44px; padding: .35rem .6rem; border: 1px solid var(--editorial-line); border-radius: 8px;
  color: var(--editorial-ink); background: var(--editorial-card); font: 650 .9rem var(--body);
}
.duel-charts { display: grid; grid-template-columns: minmax(12rem,.7fr) minmax(0,1.3fr); gap: 1rem; margin-block: 1rem; }
.duel-radar, .duel-bars {
  margin: 0; padding: .78rem; border: 1px solid var(--editorial-line); border-radius: 12px; background: var(--editorial-card); min-width: 0;
}
.duel-radar figcaption { text-align: center; color: var(--editorial-soft); font-size: .77rem; }
.duel-radar svg { display: block; width: min(100%, 16rem); margin: auto; }
.duel-radar text, .home-mini-chart text { fill: var(--editorial-ink); font: 700 8px var(--body); }
.duel-gridline, .chart-grid { fill: none; stroke: var(--editorial-line); }
[data-duel-radar="a"] { fill: #617ee448; stroke: #607be3; }
[data-duel-radar="b"] { fill: #d86f4840; stroke: #bc5539; }
.duel-legend, .duel-metric-sides { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .4rem; }
.duel-legend strong { color: var(--editorial-ink); overflow-wrap: anywhere; font-size: .84rem; }
.duel-legend strong:last-child { text-align: end; }
.duel-metric { margin-block: .45rem; text-align: center; }
.duel-metric a { color: var(--editorial-cobalt); font-size: .8rem; font-weight: 750; }
.duel-metric-sides { gap: 5px; }
.duel-metric-sides > div { display: grid; gap: 3px; justify-items: end; background: var(--editorial-wash); }
.duel-metric-sides > div:last-child { justify-items: start; }
.duel-metric-sides span { padding-inline: .22rem; font-size: .68rem; }
.duel-metric-sides i { height: .28rem; width: var(--duel-value); background: #607be3; transition: width .26s ease; }
.duel-metric-sides > div:last-child i { background: #bc5539; }
.duel-game { border-inline-start: 4px solid var(--editorial-cobalt); padding-inline-start: .85rem; }
.duel-game h3, .paradox-stage h3, .home-flip-card h3 { margin: 0 0 .4rem; font: 400 clamp(1.8rem,4vw,2.9rem)/1.1 var(--editorial-heading); }
.duel-game p { margin: .2rem 0 .65rem; }
.duel-game output { font-size: .86rem; display: block; margin-top: .48rem; }

.home-paradox { background: var(--editorial-wash); box-shadow: inset 0 4px #a64b34; }
.home-paradox > p { margin: .3rem 0 1rem; }
.paradox-layout, .home-flash-layout { display: grid; grid-template-columns: minmax(12rem,.75fr) minmax(0,1.25fr); gap: .9rem; }
.paradox-list { display: grid; gap: .4rem; align-content: start; }
.paradox-list button { display: grid; text-align: start; gap: .12rem; }
.paradox-list small { color: var(--editorial-soft); }
.paradox-list button[aria-pressed="true"] { border-color: var(--editorial-cobalt); box-shadow: inset 3px 0 var(--editorial-cobalt); }
.paradox-stage { background: var(--editorial-card); border: 1px solid var(--editorial-line); border-radius: 12px; padding: clamp(.75rem,2.5vw,1.4rem); min-width: 0; }
.paradox-stage h3 { font-size: clamp(1.65rem,3vw,2.3rem); }
.paradox-options { display: grid; gap: .45rem; }
.paradox-option { position: relative; isolation: isolate; overflow: hidden; display: flex; gap: .34rem; flex-wrap: wrap; align-items: center; text-align: start; }
.paradox-option span { flex: 1 1 12rem; }
.paradox-option small { font-variant-numeric: tabular-nums; }
.paradox-option b { color: var(--editorial-cobalt); font-size: .72rem; }
.paradox-option.is-choice { border-color: var(--editorial-cobalt); }
.paradox-option::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--vote-share,0%); background: var(--editorial-wash); animation: vote-reveal .32s ease-out; }
@keyframes vote-reveal { from { width: 0; } }
.paradox-stage [data-paradox-status] { font-size: .81rem; }
.paradox-stage [data-paradox-explanation] a { color: var(--editorial-cobalt); }

.home-flashcards { background: var(--editorial-wash); }
.home-flash-layout { grid-template-columns: minmax(0, 1.5fr) minmax(12rem, .7fr); align-items: center; }
.home-flip-scene { perspective: 850px; }
.home-flip-card { display: grid; min-height: 14rem; transition: transform .48s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d; }
.home-flip-card.is-flipped { transform: rotateY(180deg); }
.home-flip-front, .home-flip-back {
  grid-area: 1 / 1; align-content: center; padding: clamp(1rem, 4vw, 2.5rem); border: 1px solid #6e7ba6; border-radius: 16px;
  background: #192642; color: #fffaf1; backface-visibility: hidden; min-width: 0;
}
.home-flip-front { background: radial-gradient(circle at 83% 18%, #3f5480, transparent 42%), #192642; }
.home-flip-front small { color: #d6dfff; }
.home-flip-back { transform: rotateY(180deg); background: #27453f; }
.home-flip-back p { margin: 0 0 .55rem; }
.home-flip-back a { color: #efffe9; }
.home-flip-controls { display: grid; gap: .48rem; }
.home-flip-controls output { color: var(--editorial-soft); font-size: .8rem; }
.home-flip-controls button[aria-pressed="true"] { border-color: var(--editorial-cobalt); }

.home-paradigm {
  background: radial-gradient(ellipse at 80% 22%, #293960 0%, transparent 58%), radial-gradient(circle, #8195c340 1px, transparent 1.5px) 0 0/20px 20px, #0d121f;
  color: #f8f4e8; --editorial-card: #1d263d; --editorial-line: #50617a; --editorial-soft: #e1e6f2;
  --editorial-cobalt: #bccbff; --editorial-vermilion: #ffba9f; --editorial-wash: #26304a;
}
.home-paradigm h2 { color: inherit; }
.home-paradigm .story-chapter-card a { color: #c6d1ff; }
.home-paradigm .home-story-stage { border: 1px solid #546487; background: #0d121f; }
.home-paradigm .story-portraits img { background: #172136; }

.home-mini-chart { display: block; width: 100%; max-height: 10rem; margin: 0; border-radius: 8px; background: var(--editorial-wash); }
.home-mini-chart .chart-grid { stroke: var(--editorial-soft); }
.lorenz-line { fill: none; stroke: #556ee2; stroke-width: 3; }
.lorenz-fill { fill: #617ee445; }
.home-ols { display: grid; gap: .4rem; min-width: 0; }
.home-ols h4 { margin: 0; font-size: .82rem; }
#ols-scatter-canvas { display: block; max-width: 100%; width: 100%; height: auto; border-radius: 8px; background: var(--editorial-wash); }
.home-amsterdam.is-split { position: relative; }
.home-amsterdam.is-split img { position: absolute; inset: 0; }
.home-amsterdam.is-split img:first-child { z-index: 1; clip-path: inset(0 calc(100% - var(--amsterdam-curtain,50%)) 0 0); }
.home-amsterdam.is-split::after { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 var(--amsterdam-curtain,50%); width: 2px; background: #fff; box-shadow: 0 0 1px #111; }
.home-bridge { height: 100px; }
.home-bridge .broker-edge, .broker-cluster { fill: none; stroke: #6986c5; stroke-width: 1.5; }
.home-bridge circle { fill: #536dd6; }
.home-bridge .broker-hub { fill: #b8533b; }
.broker-signal { fill: none; stroke: #d06e49; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 24; animation: broker-flow 1.15s linear infinite; }
@keyframes broker-flow { to { stroke-dashoffset: -25; } }
.home-bridge.is-cut :is(.broker-edge,.broker-signal,.broker-hub) { opacity: .12; animation: none; }
.home-distribution { display: flex; align-items: end; justify-content: center; gap: .3rem; height: 6rem; padding: .5rem; border-radius: 8px; background: var(--editorial-wash); }
.home-distribution i { flex: 1; height: var(--bin); border-radius: 5px 5px 0 0; background: #5a74d9; transition: height .22s ease; }
[data-distribution="mirror"] i { background: #428a77; }
.home-guess-lab { display: grid; gap: .4rem; margin-block: .7rem; }
.home-round-strip { display: flex; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.home-round-strip li { width: 25px; height: 25px; border: 1px solid var(--editorial-line); border-radius: 50%; display: grid; place-items: center; font-size: .68rem; }
.home-round-strip li.is-complete { background: var(--editorial-cobalt); border-color: var(--editorial-cobalt); color: var(--editorial-paper); }
.home-proportion { height: 7px; position: relative; background: var(--editorial-wash); border-radius: 5px; }
.home-proportion i { display: block; width: var(--guess,50%); background: var(--editorial-cobalt); height: 100%; border-radius: inherit; }
.home-proportion b { position: absolute; inset-inline-start: var(--actual,50%); top: -2px; width: 2px; height: 11px; background: var(--editorial-vermilion); }
.home-crowd-chart { margin: 0; color: var(--editorial-soft); font-size: .68rem; }
.home-crowd-chart svg { display: block; width: 100%; max-height: 3rem; fill: var(--editorial-cobalt); }
.home-crowd-chart > div { display: flex; justify-content: space-between; }
.home-gap-track::before, .home-gap-track::after { z-index: 1; }
.home-gap-track { background: linear-gradient(to right, transparent var(--gap-from), var(--editorial-cobalt) var(--gap-from) var(--gap-to), transparent var(--gap-to)) center/100% 2px no-repeat, var(--editorial-wash); }
@media (max-width: 650px) {
  .duel-charts, .paradox-layout, .home-flash-layout { grid-template-columns: minmax(0,1fr); }
  .paradox-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .duel-metric-sides i, .home-flip-card, .home-distribution i { transition: none; }
  .paradox-option::before, .broker-signal { animation: none; }
}
.home-exhibit-links { display: flex; flex-wrap: wrap; gap: .32rem .8rem; margin-top: .6rem; font-size: .8rem; }
.home-exhibit-links a { text-underline-offset: .16em; color: var(--editorial-cobalt); }
.duel-source { color: var(--editorial-soft); font-size: .76rem; margin: -.3rem 0 .85rem; }
.home-amsterdam.is-split { cursor: ew-resize; touch-action: pan-y; }
.home-amsterdam.is-split img { user-select: none; pointer-events: none; }
