:root {
  color-scheme: light;
  --bg: #08080a;
  --ink: #f7f2e8;
  --muted: #bcb3a5;
  --line: rgba(247, 242, 232, 0.16);
  --panel: rgba(14, 14, 16, 0.72);
  --panel-strong: rgba(26, 24, 21, 0.84);
  --electron: #6fe8d7;
  --up: #ff6fae;
  --down: #f6c44f;
  --field: #a9f27a;
  --matter: #f1734f;
  --higgs: #d8b7ff;
  --cern: #7ca7ff;
  --shadow: rgba(0, 0, 0, 0.28);
  font-family:
    Vazirmatn,
    "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}

:root[data-theme="light"] {
  --bg: #f7f2e8;
  --ink: #121418;
  --muted: #5f594f;
  --line: rgba(18, 20, 24, 0.15);
  --panel: rgba(255, 251, 242, 0.76);
  --panel-strong: rgba(255, 251, 242, 0.88);
  --electron: #007f76;
  --up: #b72f69;
  --down: #9a6700;
  --field: #3d7f12;
  --matter: #b54a2f;
  --higgs: #7351b5;
  --cern: #265fc0;
  --shadow: rgba(42, 35, 24, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.2), var(--bg) 70%),
    var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 42vw);
  min-height: 100vh;
}

.stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  border-left: 1px solid var(--line);
}

#fieldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 78% 24%, rgba(111, 232, 215, 0.16), transparent 28rem),
    radial-gradient(circle at 24% 74%, rgba(246, 196, 79, 0.13), transparent 25rem),
    #08080a;
  z-index: -2;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.22), rgba(8, 8, 10, 0.7) 72%),
    repeating-linear-gradient(
      90deg,
      rgba(247, 242, 232, 0.028) 0,
      rgba(247, 242, 232, 0.028) 1px,
      transparent 1px,
      transparent 72px
    );
}

.topbar {
  position: absolute;
  inset: 24px 24px auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.34);
  border-radius: 8px;
  box-shadow: 0 8px 22px var(--shadow);
  color: var(--muted);
  direction: ltr;
  font-size: 13px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid var(--electron);
  box-shadow:
    inset 0 0 0 4px rgba(111, 232, 215, 0.1),
    0 0 18px rgba(111, 232, 215, 0.5);
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-select {
  width: 126px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.58);
  color: var(--ink);
  cursor: pointer;
  outline: none;
  padding: 0 10px;
  direction: ltr;
  box-shadow: 0 8px 22px var(--shadow);
}

.language-select:hover,
.language-select:focus-visible {
  border-color: rgba(111, 232, 215, 0.64);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.42);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 22px var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 232, 215, 0.64);
  background: rgba(111, 232, 215, 0.1);
  outline: none;
}

.icon-button.is-active {
  border-color: rgba(246, 196, 79, 0.7);
  background: rgba(246, 196, 79, 0.12);
}

.hero-copy {
  position: absolute;
  inset-inline-start: clamp(24px, 7vw, 84px);
  bottom: clamp(156px, 22vh, 240px);
  width: min(680px, calc(100% - 80px));
  z-index: 2;
}

.kicker {
  margin: 0 0 18px;
  color: var(--field);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
p,
blockquote {
  margin-top: 0;
}

h1 {
  max-width: min(13ch, 100%);
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 50px);
  line-height: 1.08;
  font-weight: 900;
}

.lead {
  max-width: 56ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.scene-switcher {
  position: absolute;
  right: 24px;
  left: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  z-index: 4;
}

.scene-pill {
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.44);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.scene-pill:hover,
.scene-pill:focus-visible {
  color: var(--ink);
  border-color: rgba(247, 242, 232, 0.34);
  outline: none;
}

.scene-pill.is-active {
  color: var(--ink);
  border-color: rgba(111, 232, 215, 0.68);
  background: rgba(111, 232, 215, 0.12);
  transform: translateY(-1px);
}

.narrative {
  position: relative;
  background:
    linear-gradient(180deg, rgba(246, 196, 79, 0.08), transparent 24rem),
    #11100e;
}

.story-block {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px clamp(28px, 5vw, 72px);
  border-bottom: 1px solid rgba(247, 242, 232, 0.1);
  opacity: 0.54;
  transform: translateY(20px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.story-block.is-active {
  opacity: 1;
  transform: translateY(0);
}

.chapter {
  width: 56px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(111, 232, 215, 0.36);
  border-radius: 8px;
  color: var(--electron);
  font-weight: 900;
  direction: ltr;
}

h2 {
  max-width: 12ch;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 900;
}

.section-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  min-width: 0;
  margin-bottom: 24px;
}

html[dir="rtl"] .section-heading {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.section-heading h2 {
  min-width: 0;
  margin-bottom: 0;
}

.info-popover {
  position: relative;
  flex: 0 0 auto;
  margin-top: 7px;
}

.info-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(111, 232, 215, 0.34);
  border-radius: 50%;
  background: rgba(111, 232, 215, 0.08);
  color: var(--electron);
  cursor: help;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  direction: ltr;
}

.info-button:hover,
.info-button:focus-visible {
  border-color: rgba(111, 232, 215, 0.72);
  outline: none;
}

.info-tooltip {
  position: absolute;
  inset-inline-end: -6px;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 56px));
  max-inline-size: calc(100vw - 56px);
  padding: 12px 13px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  text-align: start;
  transform: translateY(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 10;
}

html[dir="rtl"] .info-tooltip {
  inset-inline-start: auto;
  inset-inline-end: -6px;
}

.info-popover:hover .info-tooltip,
.info-button:focus-visible + .info-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.story-block p:not(.chapter) {
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.micro-list,
.wave-words,
.field-stack,
.measurement-strip,
.kalapa-flow,
.force-grid,
.tech-proof,
.duality-strip,
.superposition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.micro-list span,
.wave-words span,
.field-stack span,
.measurement-strip span,
.kalapa-flow span,
.force-grid span,
.tech-proof span,
.duality-strip span,
.superposition-list span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(247, 242, 232, 0.16);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.05);
  color: var(--ink);
  white-space: nowrap;
}

.quark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  max-width: 440px;
}

.quark-grid div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 8px;
  background: var(--panel);
}

.quark-grid strong,
.quark-grid span {
  display: block;
}

.quark-grid strong {
  margin-bottom: 10px;
  color: var(--up);
  direction: ltr;
  text-align: start;
}

.quark-grid div:nth-child(2) strong {
  color: var(--down);
}

.quark-grid span {
  color: var(--muted);
  line-height: 1.8;
}

blockquote {
  max-width: 440px;
  margin-bottom: 0;
  margin-top: 30px;
  padding: 22px;
  border-inline-start: 3px solid var(--field);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 22px;
  line-height: 1.8;
  font-weight: 800;
}

.wave-words span:nth-child(1) {
  color: var(--electron);
}

.wave-words span:nth-child(2) {
  color: var(--up);
}

.wave-words span:nth-child(3) {
  color: var(--down);
}

.field-stack {
  max-width: 520px;
}

.field-stack span {
  direction: ltr;
  color: var(--muted);
}

.field-stack span:nth-child(4) {
  border-color: rgba(216, 183, 255, 0.48);
  background: rgba(216, 183, 255, 0.1);
  color: var(--higgs);
}

.mass-meter {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.mass-meter div,
.discovery-card {
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.mass-meter div {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.mass-meter span,
.discovery-card span {
  color: var(--muted);
  line-height: 1.75;
}

.mass-meter strong {
  color: var(--higgs);
  font-size: 24px;
}

.mass-meter div:nth-child(2) {
  border-color: rgba(216, 183, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(216, 183, 255, 0.16), transparent 64%),
    var(--panel);
}

.discovery-card {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
  margin-top: 30px;
  padding: 20px;
}

.discovery-card strong {
  color: var(--cern);
  direction: ltr;
  font-size: 28px;
  text-align: start;
}

.context-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 58px clamp(28px, 5vw, 72px) 42px;
  border-top: 1px solid rgba(247, 242, 232, 0.1);
  background:
    linear-gradient(180deg, rgba(111, 232, 215, 0.05), transparent 70%),
    #11100e;
}

.context-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(247, 242, 232, 0.13);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.045);
}

.context-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--electron);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.context-card h3 {
  max-width: 22ch;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.context-card p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.context-card .discovery-card {
  width: 100%;
  gap: 6px;
  margin-top: 18px;
  padding: 16px;
  box-shadow: none;
}

.context-card .discovery-card strong {
  font-size: 22px;
}

.context-card .kalapa-flow {
  margin-top: 18px;
}

.creator-note {
  padding: 32px clamp(28px, 5vw, 72px) 48px;
  border-top: 1px solid rgba(247, 242, 232, 0.1);
  background: #11100e;
}

.creator-note span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--higgs);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.creator-note h2 {
  max-width: 18ch;
  margin-bottom: 14px;
  font-size: 24px;
}

.creator-note p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.kalapa-flow span:nth-child(1) {
  color: var(--field);
}

.kalapa-flow span:nth-child(2) {
  color: var(--higgs);
}

.kalapa-flow span:nth-child(3) {
  color: var(--down);
}

.measurement-strip {
  max-width: 560px;
}

.measurement-strip span:nth-child(1) {
  color: var(--field);
}

.measurement-strip span:nth-child(2) {
  color: var(--electron);
}

.measurement-strip span:nth-child(3) {
  color: var(--down);
}

.measurement-strip span:nth-child(4) {
  color: var(--higgs);
}

.force-grid,
.tech-proof,
.superposition-list {
  max-width: 560px;
}

.force-grid span:nth-child(1),
.duality-strip span:nth-child(1) {
  color: var(--electron);
}

.force-grid span:nth-child(2),
.tech-proof span:nth-child(2),
.superposition-list span:nth-child(2) {
  color: var(--cern);
}

.force-grid span:nth-child(3),
.tech-proof span:nth-child(1),
.duality-strip span:nth-child(2) {
  color: var(--matter);
}

.force-grid span:nth-child(4),
.superposition-list span:nth-child(1) {
  color: var(--higgs);
}

.force-grid span:nth-child(5),
.tech-proof span:nth-child(5),
.superposition-list span:nth-child(3) {
  color: var(--field);
}

.site-footer {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 136px;
  padding: 34px 24px 40px;
  border-top: 1px solid rgba(247, 242, 232, 0.12);
  background:
    linear-gradient(90deg, transparent, rgba(111, 232, 215, 0.12), transparent),
    #0b0b0d;
}

.site-footer::before {
  content: "";
  width: min(180px, 42vw);
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, transparent, rgba(216, 183, 255, 0.76), transparent);
}

.site-footer p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.04);
  color: rgba(247, 242, 232, 0.76);
  direction: ltr;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: rgba(111, 232, 215, 0.48);
  background: rgba(111, 232, 215, 0.08);
  color: var(--electron);
  outline: none;
  transform: translateY(-1px);
}

.credit-link {
  margin-top: 2px;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(111, 232, 215, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 72%, rgba(216, 183, 255, 0.1), transparent 26rem),
    var(--bg);
  color: var(--ink);
}

.legal-shell {
  width: min(820px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal-shell h1 {
  max-width: 16ch;
  font-size: clamp(32px, 4vw, 48px);
}

.legal-shell h2 {
  max-width: none;
  margin-top: 34px;
  font-size: 24px;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.legal-shell a {
  color: var(--electron);
}

.legal-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--electron);
  font-weight: 800;
  text-decoration: none;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.34), var(--bg) 72%),
    var(--bg);
}

:root[data-theme="light"] #fieldCanvas {
  background:
    radial-gradient(circle at 78% 24%, rgba(0, 127, 118, 0.15), transparent 28rem),
    radial-gradient(circle at 24% 74%, rgba(154, 103, 0, 0.12), transparent 25rem),
    #f7f2e8;
}

:root[data-theme="light"] .stage::after {
  background:
    linear-gradient(90deg, rgba(247, 242, 232, 0.04), rgba(247, 242, 232, 0.32) 72%),
    repeating-linear-gradient(
      90deg,
      rgba(18, 20, 24, 0.028) 0,
      rgba(18, 20, 24, 0.028) 1px,
      transparent 1px,
      transparent 72px
    );
}

:root[data-theme="light"] .brand,
:root[data-theme="light"] .language-select,
:root[data-theme="light"] .icon-button,
:root[data-theme="light"] .scene-pill {
  background: rgba(255, 251, 242, 0.64);
  box-shadow: 0 10px 28px var(--shadow);
}

:root[data-theme="light"] .language-select,
:root[data-theme="light"] .icon-button,
:root[data-theme="light"] .scene-pill {
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .icon-button:hover,
:root[data-theme="light"] .icon-button:focus-visible,
:root[data-theme="light"] .scene-pill.is-active {
  background: rgba(0, 127, 118, 0.09);
}

:root[data-theme="light"] .icon-button.is-active {
  border-color: rgba(154, 103, 0, 0.5);
  background: rgba(154, 103, 0, 0.1);
}

:root[data-theme="light"] .narrative {
  background:
    linear-gradient(180deg, rgba(0, 127, 118, 0.08), transparent 24rem),
    #fbf7ed;
}

:root[data-theme="light"] .story-block {
  border-bottom-color: rgba(18, 20, 24, 0.1);
}

:root[data-theme="light"] blockquote,
:root[data-theme="light"] .quark-grid div,
:root[data-theme="light"] .mass-meter div,
:root[data-theme="light"] .discovery-card,
:root[data-theme="light"] .context-card {
  border-color: rgba(18, 20, 24, 0.12);
  background: var(--panel);
}

:root[data-theme="light"] .micro-list span,
:root[data-theme="light"] .wave-words span,
:root[data-theme="light"] .field-stack span,
:root[data-theme="light"] .measurement-strip span,
:root[data-theme="light"] .kalapa-flow span,
:root[data-theme="light"] .force-grid span,
:root[data-theme="light"] .tech-proof span,
:root[data-theme="light"] .duality-strip span,
:root[data-theme="light"] .superposition-list span {
  border-color: rgba(18, 20, 24, 0.13);
  background: rgba(255, 251, 242, 0.52);
}

:root[data-theme="light"] .info-tooltip {
  border-color: rgba(18, 20, 24, 0.16);
  background: rgba(255, 251, 242, 0.96);
  box-shadow: 0 20px 48px rgba(42, 35, 24, 0.18);
}

:root[data-theme="light"] .context-notes {
  border-top-color: rgba(18, 20, 24, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 127, 118, 0.06), transparent 72%),
    #fbf7ed;
}

:root[data-theme="light"] .creator-note {
  border-top-color: rgba(18, 20, 24, 0.1);
  background: #fbf7ed;
}

:root[data-theme="light"] .site-footer {
  border-top-color: rgba(18, 20, 24, 0.12);
  background:
    linear-gradient(90deg, transparent, rgba(0, 127, 118, 0.12), transparent),
    #f1eadf;
}

:root[data-theme="light"] .site-footer a {
  border-color: rgba(18, 20, 24, 0.12);
  background: rgba(255, 251, 242, 0.54);
  color: rgba(18, 20, 24, 0.7);
}

:root[data-theme="light"] .site-footer a:hover,
:root[data-theme="light"] .site-footer a:focus-visible {
  background: rgba(0, 127, 118, 0.08);
  color: var(--electron);
}

:root[data-theme="light"] .legal-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 127, 118, 0.1), transparent 24rem),
    radial-gradient(circle at 82% 72%, rgba(115, 81, 181, 0.09), transparent 26rem),
    var(--bg);
}

@media (min-width: 761px) and (max-width: 1280px) {
  .experience {
    grid-template-columns: minmax(400px, 1fr) minmax(320px, 40vw);
  }

  .hero-copy {
    inset-inline-start: 24px;
    width: min(520px, calc(100% - 48px));
  }

  .lead {
    max-width: 48ch;
    font-size: 16px;
    line-height: 1.6;
  }

  .scene-pill {
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 42px;
  }

  .scene-switcher {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .scene-switcher::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 760px) {
  .experience {
    display: block;
  }

  .stage {
    position: relative;
    min-height: 100svh;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-copy {
    inset-inline-start: 24px;
    bottom: 98px;
    width: calc(100% - 48px);
  }

  h1 {
    max-width: min(18ch, 100%);
    font-size: clamp(28px, 7.2vw, 36px);
  }

  .lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .story-block {
    min-height: auto;
    padding-block: 72px;
    opacity: 1;
    transform: none;
  }

  .context-notes {
    grid-template-columns: 1fr;
    padding-block: 44px 34px;
  }

  .scene-switcher {
    right: 16px;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .scene-switcher::-webkit-scrollbar {
    display: none;
  }

  .scene-pill {
    flex: 0 0 auto;
    min-width: 94px;
    min-height: 42px;
    font-size: 13px;
  }

}

@media (max-width: 640px) {
  .topbar {
    inset: 16px 16px auto 16px;
  }

  .brand {
    width: 40px;
    justify-content: center;
    padding: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-select {
    width: 92px;
  }

  .hero-copy {
    inset-inline-start: 18px;
    bottom: 104px;
    width: calc(100% - 36px);
  }

  h1 {
    font-size: clamp(26px, 7.4vw, 30px);
    line-height: 1.12;
  }

  .lead {
    line-height: 1.6;
  }

  h2 {
    font-size: 27px;
  }

  .story-block {
    padding: 64px 22px;
  }

  .context-notes {
    padding-inline: 22px;
  }

  .creator-note {
    padding-inline: 22px;
  }

  .story-block p:not(.chapter) {
    font-size: 16px;
  }

  .quark-grid {
    grid-template-columns: 1fr;
  }

  .mass-meter {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
