@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;600;700&family=Noto+Sans+Brahmi&family=Noto+Sans+Devanagari:wght@400;600;700&family=Noto+Sans+Siddham&family=Noto+Sans+Thai:wght@400;600;700&display=swap");

:root {
  --ink: #111318;
  --muted: #5f6672;
  --paper: #fbfaf5;
  --panel: rgba(255, 255, 251, .82);
  --panel-strong: rgba(255, 255, 251, .95);
  --line: rgba(17, 19, 24, .14);
  --orange: #d55f2f;
  --gold: #b98422;
  --teal: #0c7d74;
  --blue: #275fa7;
  --plum: #684781;
  --green: #217b4e;
  --z-green: #60d67a;
  --z-amber: #f6cd5b;
  --z-red: #e8584c;
  --z-red-deep: #bf322b;
  --shadow: 0 24px 80px rgba(17, 19, 24, .18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.protect {
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
.button {
  font: inherit;
  letter-spacing: 0;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

.topbar {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  min-height: 72px;
  padding: 12px clamp(14px, 4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(251, 250, 245, .74);
  border-bottom: 1px solid rgba(17, 19, 24, .10);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff8e6;
  background: linear-gradient(135deg, #111318, #5b3928);
  border: 1px solid rgba(185, 132, 34, .46);
  font-family: "Noto Sans Devanagari", serif;
  font-size: 24px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.script-control {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(134px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 251, .82);
}

.script-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

select {
  height: 32px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  outline: 0;
}

.icon-button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 251, .84);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.zoom-button {
  width: 44px;
  padding-inline: 0;
  font-size: 20px;
  line-height: 1;
}

.icon-button:hover,
.button:hover {
  border-color: rgba(213, 95, 47, .46);
  background: #fff;
}

.button.primary {
  color: #fffaf0;
  border-color: #111318;
  background: #111318;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 88px clamp(16px, 4vw, 56px) 28px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(251, 250, 245, .10), rgba(251, 250, 245, .78) 72%, #f6f3e9),
    radial-gradient(circle at 16% 12%, rgba(213, 95, 47, .16), transparent 34%),
    radial-gradient(circle at 76% 38%, rgba(12, 125, 116, .15), transparent 32%),
    linear-gradient(120deg, #fffaf0, #e9f4ef 46%, #f0eef5);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(17, 19, 24, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.16) 72%, transparent);
}

.scene-mount {
  position: relative;
  z-index: 1;
  width: 100%;
  height: max(500px, calc(100svh - 238px));
  min-height: 0;
  cursor: grab;
  touch-action: pan-y;
  filter: drop-shadow(0 28px 58px rgba(17, 19, 24, .12));
}

.scene-mount:active {
  cursor: grabbing;
}

.graph-guide {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(320px, 1fr);
  align-items: center;
  gap: 10px 18px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  background: rgba(255,255,251,.76);
  box-shadow: 0 18px 48px rgba(17, 19, 24, .10);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.semantic-rail {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #2f3742;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.semantic-rail i {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--z-green), var(--z-amber), var(--z-red));
}

.semantic-rail i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 13px;
  height: 13px;
  border-top: 3px solid var(--z-red-deep);
  border-right: 3px solid var(--z-red-deep);
  transform: translateY(-50%) rotate(45deg);
}

.graph-guide p,
.graph-guide small {
  margin: 0;
  color: #3f4650;
  font-size: 13px;
  line-height: 1.38;
}

.graph-guide p strong {
  color: #15191f;
}

.graph-guide .formula-line {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid rgba(17, 19, 24, .10);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(96, 214, 122, .20), rgba(246, 205, 91, .16), rgba(232, 88, 76, .20));
  color: #232930;
  font-size: 12px;
  font-weight: 780;
}

.graph-guide small {
  grid-column: 1 / -1;
  color: #626a75;
  font-size: 12px;
  font-weight: 760;
}

.graph-guide small a {
  position: relative;
  display: inline-flex;
  margin-left: 6px;
  color: #103d75;
  font-weight: 950;
  pointer-events: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.axis-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.axis-pills button {
  min-height: 30px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(255,255,251,.92);
  color: #20262e;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.axis-pills button:hover {
  border-color: rgba(191, 50, 43, .38);
  background: #fff;
}

.axis-popout {
  position: fixed;
  z-index: 45;
  top: 88px;
  right: clamp(18px, 4vw, 56px);
  width: min(390px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(17, 19, 24, .14);
  border-radius: 8px;
  background: rgba(255,255,251,.95);
  box-shadow: 0 22px 68px rgba(17, 19, 24, .20);
  backdrop-filter: blur(18px);
}

.axis-popout[hidden] {
  display: none;
}

.axis-popout button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  padding: 5px 9px;
  background: #fff;
  color: #242a32;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.axis-popout p {
  margin: 0;
}

#axisPopoutKicker {
  max-width: calc(100% - 72px);
  color: #8a2f23;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

#axisPopoutTitle {
  margin: 8px 78px 8px 0;
  font-size: 26px;
  line-height: 1.06;
}

#axisPopoutBody,
#axisPopoutAnatomy {
  color: #3f4650;
  font-size: 14px;
  line-height: 1.5;
}

#axisPopoutAnatomy {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 19, 24, .10);
}

.intro-section {
  padding: 58px clamp(18px, 5vw, 74px) 42px;
  background: #f6f3e9;
}

.thesis-section {
  padding: 58px clamp(18px, 5vw, 74px);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, .98), rgba(39, 43, 48, .94)),
    linear-gradient(90deg, var(--orange), var(--teal), var(--plum));
}

.thesis-wrap {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(320px, .72fr);
  gap: 36px;
  align-items: start;
}

.thesis-section .kicker {
  color: #f4bd6a;
}

.thesis-copy h2 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1;
  text-wrap: balance;
}

.thesis-copy p,
.thesis-examples p {
  margin: 0;
  color: rgba(255, 250, 240, .80);
  font-size: 16px;
  line-height: 1.68;
}

.thesis-examples {
  display: grid;
  gap: 16px;
  padding-left: 24px;
  border-left: 2px solid rgba(244, 189, 106, .45);
}

.thesis-examples strong {
  color: #fffaf0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.kicker {
  margin: 0;
  color: #8a2f23;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 960px;
  margin-bottom: 0;
  font-size: clamp(34px, 4.4vw, 70px);
  line-height: .96;
  text-wrap: balance;
}

.lede {
  max-width: 760px;
  margin: 0;
  color: #333943;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.paper-guide {
  max-width: 1040px;
  margin: 42px auto 0;
  display: grid;
  gap: 26px;
  padding: 34px clamp(18px, 4vw, 48px);
  border-block: 2px solid rgba(17, 19, 24, .16);
  background:
    linear-gradient(90deg, rgba(213, 95, 47, .08), transparent 22%, transparent 78%, rgba(12, 125, 116, .08));
}

.paper-guide article {
  display: grid;
  grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.paper-guide h2 {
  position: sticky;
  top: 92px;
  margin: 0;
  color: #8a2f23;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.paper-guide p {
  margin: 0;
  color: #2f3742;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
}

.detail-section {
  scroll-margin-top: 88px;
  padding: 42px clamp(18px, 5vw, 74px) 74px;
  background:
    linear-gradient(180deg, #f6f3e9, #fbfaf5);
}

.inspector {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(280px, 1fr) minmax(240px, .74fr);
  align-items: start;
  gap: 14px 24px;
  border: 1px solid rgba(17, 19, 24, .14);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.inspector > .kicker {
  grid-column: 1 / -1;
}

.selected-head {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 12px 0 16px;
}

.selected-glyph {
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff8e8;
  background: #111318;
  font-family: "Noto Sans Devanagari", "Noto Sans Brahmi", "Noto Sans Siddham", "Noto Sans Bengali", "Noto Sans Thai", serif;
  font-size: 48px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.selected-head h2 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.12;
}

.selected-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.root-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.root-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(17, 19, 24, .10);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.letter-evidence {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.evidence-item {
  min-height: 128px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 13px;
  border: 1px solid rgba(17, 19, 24, .10);
  border-radius: 8px;
  background: rgba(255, 255, 251, .66);
}

.evidence-item h3 {
  margin: 0;
  color: #17202b;
  font-size: 15px;
  line-height: 1.2;
}

.evidence-item p {
  margin: 0;
  color: #434b56;
  font-size: 13px;
  line-height: 1.46;
}

.evidence-item strong {
  color: #101419;
  font-weight: 880;
}

.fine-note {
  margin: 0;
  color: #444b55;
  font-size: 13px;
  line-height: 1.5;
}

.confidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.confidence-row span,
.confidence-row a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.confidence-row span {
  color: #114b38;
  background: rgba(33, 123, 78, .12);
}

.confidence-row a {
  color: #103d75;
  background: rgba(39, 95, 167, .12);
}

.hover-tip {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  background: rgba(255,255,251,.94);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(17, 19, 24, .18);
  font-size: 13px;
  font-weight: 760;
}

.explanation,
.evidence-band,
.process-section,
.forum-section,
.articles-section {
  padding: 86px clamp(18px, 5vw, 74px);
}

.explanation {
  background: #f6f3e9;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin-bottom: 28px;
}

.intro-section .hero-copy,
.explanation .section-heading,
.evidence-band .section-heading,
.coordinate-section .section-heading,
.forum-section .section-heading,
.articles-section .section-heading {
  max-width: 1040px;
  margin-inline: auto;
}

.section-heading h2,
.process-copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  text-wrap: balance;
}

.method-grid,
.evidence-grid,
.article-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.method-grid article,
.evidence-card,
.article-links a,
.flow-list div {
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 12px 32px rgba(17, 19, 24, .06);
}

.method-grid article,
.evidence-card {
  padding: 18px;
}

.axis-label {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #111318;
  color: #fff8e8;
  font-size: 18px;
  font-weight: 950;
}

.method-grid h3,
.evidence-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.method-grid p,
.evidence-card p,
.process-copy p {
  margin: 0;
  color: #404751;
  font-size: 15px;
  line-height: 1.58;
}

.evidence-band {
  background:
    linear-gradient(180deg, #fbfaf5, #f3f7f2);
}

.evidence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-section {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(320px, .72fr);
  gap: 34px;
  align-items: start;
  color: #f9f6ed;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, .96), rgba(41, 44, 50, .92)),
    linear-gradient(90deg, var(--orange), var(--teal));
}

.process-copy {
  max-width: 820px;
}

.process-copy .kicker {
  color: #f4bd6a;
}

.process-copy p {
  color: rgba(249, 246, 237, .78);
  margin-top: 20px;
}

.flow-list {
  display: grid;
  gap: 10px;
}

.flow-list div {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}

.flow-list strong {
  font-size: 18px;
}

.flow-list span {
  color: rgba(249,246,237,.74);
  line-height: 1.45;
}

.coordinate-section {
  scroll-margin-top: 88px;
  padding: 86px clamp(18px, 5vw, 74px);
  background:
    linear-gradient(180deg, #f6f3e9, #fbfaf5 48%, #edf4f1);
}

.coordinate-section .section-heading p:not(.kicker) {
  margin: 0;
  color: #404751;
  font-size: 16px;
  line-height: 1.58;
}

.coordinate-section .section-heading h2 {
  font-size: clamp(34px, 4.2vw, 50px);
}

.coordinate-shell {
  position: relative;
  min-height: 760px;
  border: 1px solid rgba(17, 19, 24, .13);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,251,.84), rgba(229,243,238,.74)),
    linear-gradient(rgba(17, 19, 24, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, .06) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
  box-shadow: 0 22px 70px rgba(17, 19, 24, .12);
}

.coordinate-mount {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
}

.coordinate-mount:active {
  cursor: grabbing;
}

.coordinate-hover {
  position: fixed;
  z-index: 48;
  pointer-events: none;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  background: rgba(255,255,251,.95);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(17, 19, 24, .18);
  font-size: 13px;
  font-weight: 760;
}

.coordinate-key {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  background: rgba(255,255,251,.86);
  box-shadow: 0 18px 44px rgba(17, 19, 24, .10);
  backdrop-filter: blur(14px);
}

.coordinate-key div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.coordinate-key strong {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111318;
  color: #fff8e8;
  font-size: 13px;
  font-weight: 950;
}

.coordinate-key span {
  color: #3f4650;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.38;
}

.coordinate-copy {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coordinate-copy article {
  padding: 18px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 8px;
  background: rgba(255,255,251,.82);
  box-shadow: 0 12px 32px rgba(17, 19, 24, .06);
}

.coordinate-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.coordinate-copy p {
  margin: 0;
  color: #404751;
  font-size: 15px;
  line-height: 1.55;
}

.method-grid,
.evidence-grid,
.coordinate-copy {
  max-width: 1040px;
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: 0;
}

.method-grid article,
.evidence-card,
.coordinate-copy article {
  display: grid;
  gap: 0 18px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid rgba(17, 19, 24, .16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.method-grid article {
  grid-template-columns: 64px minmax(0, 1fr);
}

.evidence-card,
.coordinate-copy article {
  grid-template-columns: 1fr;
}

.method-grid article:first-child,
.evidence-card:first-child,
.coordinate-copy article:first-child {
  border-top: 0;
}

.method-grid h3,
.evidence-card h3,
.coordinate-copy h3 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.16;
}

.method-grid p,
.evidence-card p,
.coordinate-copy p {
  color: #2f3742;
  font-size: 16px;
  line-height: 1.68;
}

.method-grid .axis-label {
  grid-row: span 2;
}

.forum-section {
  background:
    linear-gradient(180deg, #edf4f1, #fbfaf5 36%, #f6f3e9);
}

.forum-section .section-heading p:not(.kicker) {
  margin: 0;
  color: #404751;
  font-size: 16px;
  line-height: 1.62;
}

.forum-shell {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .58fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.forum-auth,
.forum-post-form,
.forum-posts {
  border: 1px solid rgba(17, 19, 24, .13);
  border-radius: 8px;
  background: rgba(255,255,251,.88);
  box-shadow: 0 16px 44px rgba(17, 19, 24, .08);
}

.forum-auth {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.forum-auth h3,
.forum-posts h3,
.forum-post h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.forum-auth p,
.forum-posts-head p,
.forum-status,
.forum-empty {
  margin: 0;
  color: #4f5662;
  font-size: 14px;
  line-height: 1.5;
}

.forum-form,
.forum-post-form {
  display: grid;
  gap: 12px;
}

.forum-post-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.forum-wide,
.forum-post-form button,
.forum-status {
  grid-column: 1 / -1;
}

.forum-form label,
.forum-post-form label {
  display: grid;
  gap: 6px;
}

.forum-form span,
.forum-post-form span {
  color: #5f6672;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.forum-form input,
.forum-post-form input,
.forum-post-form textarea,
.forum-post-form select,
.forum-moderator-tools textarea {
  width: 100%;
  border: 1px solid rgba(17, 19, 24, .15);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fffefa;
  color: #111318;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  outline: 0;
}

.forum-post-form textarea,
.forum-moderator-tools textarea {
  resize: vertical;
}

.forum-form input:focus,
.forum-post-form input:focus,
.forum-post-form textarea:focus,
.forum-post-form select:focus,
.forum-moderator-tools textarea:focus {
  border-color: rgba(12, 125, 116, .58);
  box-shadow: 0 0 0 3px rgba(12, 125, 116, .12);
}

.forum-form button,
.forum-post-form button,
.forum-moderator-tools button,
.forum-link-button {
  min-height: 42px;
  border: 1px solid #111318;
  border-radius: 8px;
  padding: 9px 13px;
  background: #111318;
  color: #fffaf0;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.forum-form button:disabled,
.forum-post-form button:disabled {
  cursor: wait;
  opacity: .58;
}

.forum-link-button {
  justify-self: start;
  border-color: rgba(17, 19, 24, .14);
  background: #fffefa;
  color: #17202a;
}

.forum-posts {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  padding: 18px;
}

.forum-posts-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 19, 24, .13);
}

.forum-posts-list {
  display: grid;
}

.forum-post {
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(17, 19, 24, .12);
}

.forum-post:first-child {
  border-top: 0;
}

.forum-post.is-pending {
  opacity: .84;
}

.forum-post-head,
.forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.forum-subject-badge,
.forum-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.forum-subject-badge {
  color: #0d4e48;
  background: rgba(12, 125, 116, .12);
}

.forum-status-badge {
  color: #8a2f23;
  background: rgba(213, 95, 47, .12);
}

.forum-post-body {
  margin: 0;
  color: #2f3742;
  font-size: 15.5px;
  line-height: 1.64;
  white-space: pre-wrap;
}

.forum-post-meta {
  color: #626a75;
  font-size: 12px;
  font-weight: 760;
}

.forum-evidence-link {
  justify-self: start;
  color: #103d75;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forum-answer {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(12, 125, 116, .08);
}

.forum-answer strong {
  color: #0d4e48;
  font-size: 13px;
}

.forum-answer p {
  margin: 0;
  color: #27313c;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.forum-moderator-tools {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px dashed rgba(17, 19, 24, .18);
  border-radius: 8px;
  background: rgba(255,255,251,.70);
}

.forum-moderator-tools button {
  background: #26313f;
}

.forum-status[data-tone="success"] {
  color: #0d6548;
  font-weight: 850;
}

.forum-status[data-tone="error"] {
  color: #9b2c23;
  font-weight: 850;
}

.articles-section {
  background: #fbfaf5;
}

.article-links a {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 18px;
  transition: transform .18s ease, border-color .18s ease;
}

.article-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 95, 47, .42);
}

.article-links span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.article-links strong {
  font-size: 20px;
  line-height: 1.18;
}

.site-footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 74px);
  border-top: 1px solid rgba(17, 19, 24, .12);
  background: #111318;
  color: rgba(255,250,240,.84);
  font-size: 13px;
  font-weight: 740;
}

@media (max-width: 1120px) {
  .hero {
    padding-bottom: 28px;
  }

  .scene-mount {
    height: calc(100svh - 116px);
    min-height: 480px;
  }

  .graph-guide {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    width: 100%;
    padding-top: 0;
  }

  h1,
  .lede {
    max-width: 780px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .inspector {
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
  }

  .fine-note,
  .confidence-row,
  .letter-evidence {
    grid-column: 1 / -1;
  }

  .letter-evidence {
    grid-template-columns: 1fr 1fr;
  }

  .method-grid,
  .evidence-grid,
  .article-links,
  .thesis-wrap,
  .process-section,
  .forum-shell,
  .coordinate-copy {
    grid-template-columns: 1fr 1fr;
  }

  .coordinate-shell {
    min-height: 660px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    width: 100%;
    justify-content: stretch;
    gap: 6px;
  }

  .script-control {
    min-height: 40px;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 5px 7px 5px 9px;
  }

  .script-control span {
    font-size: 10px;
  }

  select {
    height: 30px;
    width: 100%;
    min-width: 0;
    font-size: 14px;
  }

  .icon-button,
  .button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .zoom-button {
    width: 40px;
    font-size: 19px;
  }

  .hero {
    min-height: auto;
    padding-inline: 10px;
    padding-top: 12px;
    padding-bottom: 18px;
    gap: 10px;
  }

  .scene-mount {
    position: relative;
    top: auto;
    bottom: auto;
    height: clamp(390px, 58svh, 560px);
    min-height: 390px;
    filter: drop-shadow(0 18px 40px rgba(17, 19, 24, .10));
  }

  .graph-guide {
    position: static;
    margin-top: 10px;
    padding: 12px;
    gap: 9px;
  }

  .axis-popout {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .semantic-rail {
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 11px;
  }

  .semantic-rail i {
    width: 100%;
  }

  .graph-guide p,
  .graph-guide .formula-line,
  .graph-guide small {
    font-size: 12px;
    line-height: 1.45;
  }

  .axis-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .axis-pills button {
    width: 100%;
    min-height: 34px;
    padding: 6px 7px;
    font-size: 10.5px;
  }

  .detail-section {
    scroll-margin-top: 138px;
  }

  .coordinate-section {
    scroll-margin-top: 138px;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(36px, 11.8vw, 54px);
    line-height: .96;
  }

  .selected-head {
    grid-template-columns: 72px minmax(0, 1fr);
  }

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

  .inspector > .kicker,
  .fine-note,
  .confidence-row,
  .letter-evidence {
    grid-column: auto;
  }

  .letter-evidence {
    grid-template-columns: 1fr;
  }

  .selected-glyph {
    width: 72px;
    font-size: 40px;
  }

  .root-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .method-grid,
  .evidence-grid,
  .article-links,
  .thesis-wrap,
  .process-section,
  .forum-shell,
  .forum-post-form,
  .coordinate-copy {
    grid-template-columns: 1fr;
  }

  .thesis-copy h2 {
    font-size: clamp(30px, 9.5vw, 42px);
    line-height: 1.04;
  }

  .thesis-copy p,
  .thesis-examples p {
    font-size: 15px;
    line-height: 1.65;
  }

  .paper-guide {
    padding-inline: 0;
    gap: 24px;
  }

  .paper-guide article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .paper-guide h2 {
    position: static;
  }

  .paper-guide p {
    font-size: 15.5px;
    line-height: 1.66;
  }

  .explanation,
  .evidence-band,
  .thesis-section,
  .process-section,
  .coordinate-section,
  .forum-section,
  .articles-section {
    padding: 64px 18px;
  }

  .forum-posts-head,
  .forum-moderator-tools {
    grid-template-columns: 1fr;
  }

  .forum-posts-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .thesis-examples {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 2px solid rgba(244, 189, 106, .45);
  }

  .coordinate-shell {
    min-height: 0;
    display: grid;
    gap: 10px;
    padding: 10px;
    overflow: visible;
  }

  .coordinate-mount {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(430px, 60svh, 560px);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(17, 19, 24, .10);
    border-radius: 8px;
  }

  .coordinate-key {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) repeat(4, 34px);
  }

  .icon-button {
    padding-inline: 7px;
  }

  #playToggle,
  #resetView {
    font-size: 0;
  }

  #playToggle::before {
    content: "II";
    font-size: 12px;
    letter-spacing: 0;
  }

  #playToggle[aria-pressed="false"]::before {
    content: ">";
  }

  #resetView::before {
    content: "R";
    font-size: 12px;
  }

  .zoom-button {
    width: 34px;
  }

  .scene-mount {
    height: clamp(360px, 54svh, 500px);
    min-height: 360px;
  }

  .axis-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .graph-guide {
    padding: 10px;
  }
}

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

  .article-links a {
    transition: none;
  }
}
