:root {
  color-scheme: light;
  --paper: #f1eee5;
  --paper-deep: #e5dfd2;
  --ink: #20221f;
  --muted: #686b65;
  --line: #c9c2b4;
  --red: #c84d36;
  --green: #2f6958;
  --blue: #27647d;
  --gold: #b78728;
  --white: #fffdf7;
  --shadow: 0 18px 50px rgba(37, 33, 27, 0.09);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(32, 34, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 34, 31, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: var(--sans);
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 238, 229, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: #4d504b;
  font-size: 13px;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.status-pill,
.offline-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-self: end;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 105, 88, 0.12);
}

.status-link {
  justify-self: end;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.landing-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  width: min(1320px, calc(100% - 48px));
  min-height: calc(100vh - 76px - 116px);
  margin: 0 auto;
  padding: clamp(64px, 9vh, 120px) 0;
}

.landing-intro h1 {
  font-size: clamp(62px, 8vw, 112px);
  line-height: 0.98;
}

.landing-intro .lede {
  max-width: 610px;
}

.primary-link {
  display: inline-flex;
  gap: 34px;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--ink);
}

.primary-link span {
  font-size: 19px;
}

.landing-facts {
  margin-top: 38px;
}

.route-index {
  border-top: 1px solid var(--ink);
}

.route-index a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 160ms ease, background 160ms ease;
}

.route-index a:hover {
  padding-inline: 14px;
  background: var(--white);
}

.route-index > a > span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 17px;
}

.route-index strong,
.route-index small {
  display: block;
}

.route-index strong {
  font-family: var(--serif);
  font-size: 18px;
}

.route-index small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.route-index i {
  color: var(--red);
  font-size: 20px;
  font-style: normal;
}

main {
  overflow: hidden;
}

.mentor-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.78fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 96px) 0;
}

.mentor-page {
  min-height: calc(100vh - 76px);
}

.section-kicker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.section-kicker span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 22px;
  color: var(--white);
  background: var(--red);
  letter-spacing: 0;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 82px);
  font-weight: 600;
  line-height: 1.12;
}

h1 span {
  position: relative;
  color: var(--red);
}

h1 span::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: rgba(200, 77, 54, 0.18);
  content: "";
}

.lede {
  max-width: 690px;
  margin: 28px 0 34px;
  color: #555853;
  font-size: 17px;
  line-height: 1.9;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  border-block: 1px solid var(--line);
}

.fact-strip div {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.fact-strip div:first-child {
  padding-left: 0;
}

.fact-strip div:last-child {
  border-right: 0;
}

.fact-strip strong,
.fact-strip span {
  display: block;
}

.fact-strip strong {
  font-family: var(--serif);
  font-size: 25px;
}

.fact-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.evidence-map {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  max-width: 680px;
  min-height: 112px;
  margin-top: 24px;
  padding: 16px 18px 16px 98px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.45);
}

.map-label {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.source-dots {
  position: absolute;
  bottom: 16px;
  left: 22px;
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 7px;
}

.source-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.source-dots i:nth-child(2n) {
  background: var(--green);
}

.source-dots i:last-child {
  background: var(--red);
}

.map-track {
  position: absolute;
  top: 48px;
  left: 52px;
  width: 48px;
  height: 1px;
  background: var(--ink);
}

.map-track span {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.map-node {
  min-height: 64px;
  padding: 12px;
  color: var(--ink);
  background: var(--paper-deep);
}

.map-node b,
.map-node small {
  display: block;
}

.map-node b {
  font-family: var(--serif);
  font-size: 20px;
}

.map-node small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.map-node.accent {
  color: var(--white);
  background: var(--red);
}

.map-node.accent small,
.map-node.dark small {
  color: rgba(255, 255, 255, 0.75);
}

.map-node.dark {
  color: var(--white);
  background: var(--ink);
}

.honesty-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.mentor-console {
  position: relative;
  min-height: 620px;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 14px 14px 0 var(--paper-deep), var(--shadow);
}

.mentor-console::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 74px;
  height: 6px;
  background: var(--red);
  content: "";
}

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.console-index {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.console-head h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 24px;
}

.offline-badge {
  flex: none;
  padding: 5px 8px;
  border: 1px solid rgba(47, 105, 88, 0.35);
  background: rgba(47, 105, 88, 0.08);
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 250px;
  max-height: 330px;
  padding: 22px 2px;
  overflow: auto;
  scrollbar-color: var(--line) transparent;
}

.message {
  max-width: 91%;
  padding: 15px 17px;
  border-left: 3px solid var(--red);
  background: var(--paper);
  animation: reveal 280ms ease both;
}

.message.user-message {
  align-self: flex-end;
  border-right: 3px solid var(--blue);
  border-left: 0;
  background: rgba(39, 100, 125, 0.08);
}

.message-author {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.message h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
}

.answer-actions {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.answer-actions li {
  position: relative;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.55;
}

.answer-actions li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--red);
  content: "→";
}

.answer-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.answer-sources span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.suggestions {
  display: flex;
  gap: 7px;
  min-height: 62px;
  padding: 12px 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.suggestion-button,
.tier-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.suggestion-button {
  flex: 0 0 150px;
  min-height: 36px;
  padding: 7px 10px;
  text-align: left;
  font-size: 10px;
  line-height: 1.45;
}

.suggestion-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.mentor-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mentor-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.input-row {
  position: relative;
}

.mentor-form textarea {
  display: block;
  width: 100%;
  min-height: 86px;
  padding: 14px 58px 14px 14px;
  resize: vertical;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
}

.mentor-form textarea::placeholder {
  color: #8b8e87;
}

.send-button {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
}

.send-button:hover {
  background: var(--ink);
}

.send-button span {
  font-size: 23px;
  line-height: 1;
}

.mentor-form > p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.mentor-form > p span::before {
  margin-right: 5px;
  color: var(--green);
  content: "✓";
}

.section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.62fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.3vw, 60px);
  font-weight: 600;
  line-height: 1.17;
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.12;
}

.page-section {
  min-height: calc(100vh - 76px - 116px);
}

.page-note {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  max-width: 780px;
  margin: 46px 0 0 auto;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}

.page-note strong {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.page-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.section-heading > p {
  max-width: 540px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.path-section {
  border-top: 1px solid var(--ink);
}

.level-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-block: 1px solid var(--ink);
}

.level-item {
  position: relative;
  min-height: 330px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.3);
  transition: background 180ms ease, transform 180ms ease;
}

.level-item:last-child {
  border-right: 0;
}

.level-item:hover {
  z-index: 1;
  background: var(--white);
  transform: translateY(-5px);
}

.level-item.is-unverified {
  background: repeating-linear-gradient(135deg, rgba(200, 77, 54, 0.035) 0 8px, transparent 8px 16px);
}

.level-id {
  display: block;
  color: var(--red);
  font-family: var(--serif);
  font-size: 33px;
}

.level-item h3 {
  min-height: 48px;
  margin: 30px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
}

.level-verb {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.level-item p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.evidence-state {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.projects-section {
  width: 100%;
  padding-inline: max(24px, calc((100% - 1320px) / 2));
  color: var(--white);
  background: var(--ink);
}

.projects-page {
  min-height: calc(100vh - 76px - 116px);
}

.dark-page {
  color: var(--white);
  background: var(--ink);
}

.dark-topbar {
  border-bottom-color: #4b4e48;
  background: rgba(32, 34, 31, 0.95);
}

.dark-topbar .brand strong,
.dark-topbar .main-nav a,
.dark-topbar .main-nav a[aria-current="page"] {
  color: var(--white);
}

.dark-topbar .brand small {
  color: #aeb0aa;
}

.dark-footer {
  border-top-color: #4b4e48;
  color: var(--white);
  background: #292c28;
}

.projects-section .section-kicker,
.projects-heading > p {
  color: #aeb0aa;
}

.tier-controls {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #4b4e48;
}

.tier-button {
  min-width: 145px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid #4b4e48;
  color: #aeb0aa;
  font-size: 11px;
}

.tier-button[aria-selected="true"] {
  color: var(--white);
  background: var(--red);
}

.project-atlas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #575a54;
  border-left: 1px solid #575a54;
}

.project-card {
  position: relative;
  min-height: 290px;
  padding: 22px;
  border-right: 1px solid #575a54;
  border-bottom: 1px solid #575a54;
  animation: reveal 260ms ease both;
}

.project-card[hidden] {
  display: none;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.project-tier {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--red);
  font-family: var(--serif);
  font-size: 13px;
}

.project-status {
  max-width: 110px;
  color: #aeb0aa;
  font-size: 8px;
  text-align: right;
}

.project-card h3 {
  margin: 34px 0 7px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.project-type {
  color: #aeb0aa;
  font-size: 9px;
}

.project-scale {
  position: absolute;
  right: 22px;
  bottom: 66px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #4b4e48;
  color: #d4d5d0;
  font-size: 9px;
}

.tutorial-toggle {
  position: absolute;
  right: 22px;
  bottom: 17px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  border-top: 1px solid #575a54;
  color: var(--white);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tutorial-toggle i {
  color: var(--red);
  font-family: var(--serif);
  font-size: 22px;
  font-style: normal;
  line-height: 1;
}

.tutorial-toggle:hover span,
.tutorial-toggle[aria-expanded="true"] span {
  color: #f58d72;
}

.project-card.has-open-tutorial {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 26px;
  background: #292c28;
}

.project-card.has-open-tutorial .project-scale,
.project-card.has-open-tutorial .tutorial-toggle {
  position: static;
}

.project-card.has-open-tutorial .project-scale {
  margin-top: 24px;
}

.project-card.has-open-tutorial .tutorial-toggle {
  width: 100%;
  margin-top: 15px;
  padding-block: 10px;
}

.tutorial-panel[hidden] {
  display: none;
}

.tutorial-panel {
  margin-top: 16px;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  animation: reveal 220ms ease both;
}

.tutorial-goal {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}

.tutorial-goal b {
  color: var(--red);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.tutorial-panel ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}

.tutorial-panel li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.tutorial-panel li:last-child {
  border-right: 0;
}

.tutorial-panel li > span {
  display: grid;
  place-items: center;
  align-self: start;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--red);
  font-family: var(--serif);
  font-size: 12px;
}

.tutorial-panel li strong {
  display: block;
  margin: 4px 0 9px;
  font-family: var(--serif);
  font-size: 17px;
}

.tutorial-panel li p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.tutorial-panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.tutorial-panel dl div {
  padding: 16px;
  border-left: 3px solid var(--green);
  background: var(--white);
}

.tutorial-panel dt {
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}

.tutorial-panel dd {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.7;
}

.tutorial-safety {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.atlas-footnote {
  max-width: 880px;
  margin: 28px 0 0 auto;
  color: #aeb0aa;
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.method-item {
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.method-item:last-child {
  border-right: 0;
}

.method-item span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 23px;
}

.method-item h3 {
  margin: 48px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
}

.method-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.chain-diagram {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
  padding: 28px;
  border-block: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
}

.chain-diagram i {
  color: var(--red);
  font-style: normal;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px max(24px, calc((100% - 1320px) / 2));
  color: var(--white);
  background: var(--green);
}

.privacy-page {
  width: min(1320px, calc(100% - 48px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 96px 0;
}

.privacy-intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 56px;
}

.privacy-intro .section-kicker,
.privacy-intro .page-title {
  grid-column: 1;
}

.privacy-intro .page-title {
  grid-row: 2;
}

.privacy-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.boundary-grid article {
  min-height: 330px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.boundary-grid article:last-child {
  border-right: 0;
}

.boundary-grid article > span {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.boundary-grid h2 {
  margin: 42px 0 20px;
  font-family: var(--serif);
  font-size: 25px;
}

.boundary-grid ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  list-style: none;
}

.boundary-grid li::before {
  margin-right: 8px;
  color: var(--green);
  content: "—";
}

.privacy-callout {
  width: 100%;
  margin-top: 56px;
  padding: 48px;
}

.privacy-band .section-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.privacy-band .section-kicker span {
  color: var(--green);
  background: var(--white);
}

.privacy-band h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
}

.privacy-band > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.9;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 38px max(24px, calc((100% - 1320px) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

footer > a {
  justify-self: end;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

noscript {
  display: block;
  padding: 20px;
  color: var(--white);
  background: var(--red);
  text-align: center;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .mentor-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 48px));
  }

  .landing-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 48px));
  }

  .mentor-console {
    min-height: 580px;
  }

  .level-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 0;
  }

  .level-item {
    border-bottom: 1px solid var(--ink);
  }

  .level-item:nth-child(4) {
    border-right: 0;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }

  .topbar {
    min-height: 64px;
    padding: 8px 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .brand small,
  .status-pill {
    font-size: 7px;
  }

  .status-pill {
    max-width: 70px;
    line-height: 1.35;
    text-align: right;
  }

  .mentor-shell,
  .section,
  .landing-shell,
  .privacy-page {
    width: calc(100% - 32px);
  }

  .landing-shell {
    min-height: auto;
    padding: 52px 0 72px;
  }

  .landing-intro h1 {
    font-size: 61px;
  }

  .route-index a {
    min-height: 82px;
  }

  .mentor-shell {
    min-height: auto;
    padding: 48px 0 64px;
  }

  h1 {
    font-size: 43px;
  }

  .lede {
    font-size: 15px;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact-strip div,
  .fact-strip div:first-child {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: center;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-strip div:last-child {
    border-bottom: 0;
  }

  .fact-strip span {
    margin: 0;
  }

  .evidence-map {
    grid-template-columns: 1fr;
    padding: 50px 16px 16px 88px;
  }

  .map-track {
    top: 80px;
    width: 38px;
  }

  .source-dots {
    top: 56px;
    bottom: auto;
  }

  .mentor-console {
    min-height: 620px;
    padding: 20px;
    box-shadow: 8px 8px 0 var(--paper-deep);
  }

  .console-head {
    display: block;
  }

  .offline-badge {
    margin-top: 10px;
  }

  .conversation {
    max-height: 350px;
  }

  .message {
    max-width: 96%;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .page-title {
    font-size: 44px;
  }

  .page-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .level-rail {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--ink);
  }

  .level-item {
    min-height: 220px;
    border-right: 0;
    border-bottom-color: var(--line);
  }

  .level-item:last-child {
    border-bottom: 0;
  }

  .level-item h3 {
    min-height: 0;
    margin-top: 20px;
  }

  .projects-section {
    width: 100%;
    padding: 76px 16px;
  }

  .tier-controls {
    overflow-x: auto;
  }

  .tier-button {
    flex: 0 0 126px;
    min-width: 0;
    padding-inline: 10px;
  }

  .project-atlas {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 270px;
  }

  .tutorial-panel {
    padding: 18px;
  }

  .tutorial-goal,
  .tutorial-panel ol,
  .tutorial-panel dl {
    grid-template-columns: 1fr;
  }

  .tutorial-goal {
    gap: 8px;
  }

  .tutorial-panel li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tutorial-panel li:last-child {
    border-bottom: 0;
  }

  .atlas-footnote {
    text-align: left;
  }

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

  .method-item {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-item:last-child {
    border-bottom: 0;
  }

  .method-item h3 {
    margin-top: 24px;
  }

  .chain-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    text-align: center;
  }

  .privacy-band {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 58px 16px;
  }

  .privacy-page {
    padding: 72px 0;
  }

  .privacy-intro,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .privacy-intro {
    gap: 22px;
  }

  .privacy-intro .section-kicker,
  .privacy-intro .page-title,
  .privacy-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .boundary-grid article {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boundary-grid article:last-child {
    border-bottom: 0;
  }

  .privacy-callout {
    padding: 34px 22px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 34px 16px;
  }

  footer p {
    text-align: left;
  }

  footer > a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
