:root {
  color-scheme: dark;
  --page: #020a16;
  --page-deep: #010711;
  --surface: #061522;
  --surface-raised: #0a1d2c;
  --surface-soft: #04111e;
  --border: #172f45;
  --border-strong: #28516b;
  --text: #edf3f2;
  --text-soft: #c6d2d2;
  --muted: #82969c;
  --teal: #1fc8bd;
  --teal-soft: #63d8d1;
  --green: #62dc84;
  --amber: #f1b338;
  --coral: #ff625c;
  --radius-small: 8px;
  --radius: 12px;
  --radius-large: 16px;
  --sidebar-width: 180px;
  --support-width: 286px;
  --ui-font: "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --display-font: Georgia, "Times New Roman", serif;
  --math-font: "STIX Two Math", "Cambria Math", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% 16%, rgba(20, 73, 106, 0.11), transparent 37%),
    var(--page);
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal-soft);
  outline-offset: 3px;
}

#main-content:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--teal-soft);
  border-radius: var(--radius-small);
  background: var(--page-deep);
  color: var(--text);
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.side-navigation {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 21px 12px 16px;
  border-right: 1px solid rgba(43, 91, 105, 0.4);
  background: rgba(2, 10, 22, 0.98);
}

.navigation-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 16px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  filter: saturate(0.45) brightness(1.22);
}

.brand strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.primary-navigation,
.secondary-navigation {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.secondary-navigation {
  margin-top: auto;
}

.navigation-item {
  display: grid;
  min-height: 44px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #b8c7ca;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.navigation-item:hover:not(.is-disabled) {
  background: rgba(16, 61, 72, 0.38);
  color: var(--text);
}

.navigation-item.is-current {
  background: linear-gradient(90deg, rgba(14, 107, 109, 0.68), rgba(9, 65, 74, 0.55));
  color: var(--teal-soft);
}

.navigation-item.is-disabled {
  color: #3d5158;
}

.navigation-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: currentColor;
  line-height: 1;
  transition: filter 140ms ease, transform 140ms ease;
}

.navigation-icon svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navigation-item:hover:not(.is-disabled) .navigation-icon {
  transform: translateX(1px);
}

.navigation-item.is-current .navigation-icon {
  filter: drop-shadow(0 0 5px rgba(69, 231, 207, 0.52));
}

.workspace {
  min-width: 0;
}

.top-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  min-height: 126px;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 28px;
  padding: 19px 28px 16px;
  border-bottom: 1px solid rgba(40, 83, 96, 0.32);
  background: rgba(2, 10, 22, 0.92);
  backdrop-filter: blur(18px);
}

.top-bar-main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.page-title {
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.home-search {
  display: grid;
  width: min(100%, 620px);
  min-height: 39px;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(5, 19, 33, 0.86);
  color: var(--muted);
}

.home-search:focus-within {
  border-color: var(--border-strong);
  background: rgba(7, 24, 40, 0.96);
}

.home-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
}

.home-search input::placeholder {
  color: #789097;
  opacity: 1;
}

.search-icon {
  font-size: 22px;
  line-height: 1;
}

.search-shortcut {
  color: #697f86;
  font-size: 12px;
}

.learner-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 84px 84px;
  align-items: start;
  gap: 10px;
}

.level-card {
  display: flex;
  min-width: 190px;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 5px;
}

.level-badge {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 12px;
  background: rgba(10, 97, 91, 0.16);
  color: var(--teal-soft);
  font-size: 13px;
  font-weight: 700;
}

.level-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  color: var(--muted);
  font-size: 11px;
}

.level-copy small {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.level-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-progress,
.progress-track {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #17343e;
}

.level-progress {
  margin: 4px 0 2px;
}

.level-progress > span,
.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-soft));
  transition: width 180ms ease;
}

.metric-card {
  display: grid;
  min-height: 70px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 9px 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(4, 16, 29, 0.58);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.metric-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.metric-symbol {
  font-size: 13px;
}

.streak-symbol {
  color: var(--coral);
}

.xp-symbol {
  color: var(--teal-soft);
}

main {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

.state-panel {
  display: grid;
  min-height: 58vh;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.state-panel h1 {
  margin: 19px 0 5px;
  font-family: var(--display-font);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
}

.state-panel p {
  max-width: 540px;
  color: var(--muted);
}

.state-panel-error {
  padding: 24px;
  border: 1px solid rgba(255, 98, 92, 0.32);
  border-radius: var(--radius-large);
  background: rgba(72, 22, 25, 0.16);
}

.loading-mark {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--teal-soft);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.home-introduction {
  position: relative;
  display: grid;
  min-height: 300px;
  align-items: center;
  margin-bottom: 24px;
  isolation: isolate;
  overflow: hidden;
}

.home-introduction::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 10, 22, 0.99) 0%,
    rgba(2, 10, 22, 0.95) 31%,
    rgba(2, 10, 22, 0.68) 46%,
    rgba(2, 10, 22, 0.08) 66%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
}

.home-introduction-copy {
  position: relative;
  z-index: 2;
  width: min(55%, 610px);
  padding: 18px 0 21px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

.home-introduction h1 {
  margin: 12px 0 18px;
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.home-introduction h1 span,
.home-introduction h1 em {
  display: block;
}

.home-introduction h1 span {
  max-width: 560px;
  font-size: clamp(35px, 3.55vw, 49px);
  line-height: 1.06;
}

.home-introduction h1 em {
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  background: linear-gradient(102deg, #a8e8d8 3%, #8acddd 46%, #a98ace 92%);
  background-clip: text;
  color: #a8e8d8;
  font-size: clamp(48px, 5.35vw, 72px);
  font-style: italic;
  letter-spacing: -0.055em;
  line-height: 1.02;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-introduction-copy > p:last-child {
  max-width: 570px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.home-observatory {
  position: absolute;
  z-index: 0;
  top: -12px;
  right: -22px;
  bottom: -7px;
  width: 62%;
  min-width: 540px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
}

.home-observatory::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 61% 48%, rgba(40, 146, 185, 0.13), transparent 33%),
    radial-gradient(circle at 77% 53%, rgba(147, 83, 190, 0.09), transparent 29%);
  content: "";
}

#home-observatory-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.96;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--support-width);
  gap: 28px;
  align-items: start;
}

.home-main-column,
.home-support {
  min-width: 0;
}

.home-main-column {
  display: grid;
  gap: 30px;
}

.continue-card,
.branch-section,
.support-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(5, 18, 31, 0.72);
}

.continue-card {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 24px;
  overflow: hidden;
}

.continue-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--teal), transparent 78%);
  content: "";
}

.continue-copy {
  min-width: 0;
}

.continue-path {
  margin: 13px 0 6px;
  color: var(--teal-soft);
  font-size: 11px;
  font-weight: 600;
}

.continue-card h2,
.branch-section h2,
.support-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.continue-card h2 {
  font-family: var(--display-font);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
}

.continue-description {
  max-width: 650px;
  margin: 9px 0 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.continue-progress-row {
  display: grid;
  max-width: 520px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.continue-progress-row strong {
  min-width: 37px;
  color: var(--green);
  font-size: 12px;
  text-align: right;
}

.continue-progress-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.continue-actions {
  display: grid;
  min-width: 168px;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button-primary {
  border-color: #1a8f8b;
  background: linear-gradient(135deg, #0a686d, #168b84);
  color: #effffd;
}

.button-primary:hover {
  border-color: var(--teal-soft);
  background: linear-gradient(135deg, #0c797b, #1a9b91);
}

.button-secondary {
  background: rgba(4, 17, 30, 0.9);
}

.button-secondary:hover {
  border-color: #2e6976;
  background: var(--surface-raised);
}

.branch-section {
  min-width: 0;
  min-height: 380px;
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
}

.section-map-link {
  color: var(--teal-soft);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.section-map-link:hover {
  color: #a3f1ec;
}

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

.branch-card {
  --branch-accent: var(--teal-soft);
  --branch-image: none;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(82, 108, 130, 0.48);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(2, 10, 22, 0.02), rgba(2, 10, 22, 0.06) 48%, rgba(2, 10, 22, 0.24)),
    var(--branch-image) center top / cover no-repeat,
    var(--page);
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(224, 241, 247, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.branch-card[data-branch="arithmetic"] {
  --branch-accent: #32d8cf;
  --branch-image: url("/static/web-v1/map-arithmetic-universe.3642867c.avif");
}

.branch-card[data-branch="basic_algebra"] {
  --branch-accent: #3b9dff;
  --branch-image: url("/static/web-v1/map-algebra-universe.0418d87c.avif");
}

.branch-card[data-branch="trigonometry"] {
  --branch-accent: #bb65f4;
  --branch-image: url("/static/web-v1/map-trigonometry-universe.78a0f21d.avif");
}

.branch-card[data-branch="differential_calculus"] {
  --branch-accent: #f3a624;
  --branch-image: url("/static/web-v1/map-calculus-universe.b7289bbc.avif");
}

.branch-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--branch-accent) 70%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--branch-accent) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--branch-accent) 13%, transparent);
}

.recent-map-art {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  flex: 0 0 auto;
}

.branch-copy {
  display: grid;
  min-height: 128px;
  min-width: 0;
  flex: 1;
  align-content: start;
  margin-top: -12px;
  padding: 14px 52px 17px 16px;
  background: linear-gradient(180deg, rgba(2, 10, 22, 0.2), rgba(2, 10, 22, 0.68));
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.68);
}

.branch-copy strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
}

.branch-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #9dafb9;
  font-size: 11px;
  line-height: 1.48;
  margin-top: 6px;
}

.branch-marker {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--branch-accent) 58%, transparent);
  border-radius: 50%;
  color: var(--branch-accent);
  font-size: 20px;
}

.branch-empty {
  margin: 18px 0 4px;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}

.home-support {
  position: sticky;
  top: 148px;
  display: grid;
  gap: 14px;
}

.support-panel {
  padding: 19px 17px;
}

.support-panel h2 {
  margin-top: 6px;
  font-size: 16px;
}

.overall-progress {
  --progress: 0deg;
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin: 17px auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress), #143843 0);
}

.overall-progress::before {
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: var(--surface);
  content: "";
}

.overall-progress span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
}

.progress-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.progress-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.progress-facts dt,
.progress-facts dd {
  margin: 0;
}

.progress-facts dd {
  color: var(--green);
}

.focus-panel > p:not(.section-label),
.principle-panel > p:not(.section-label) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.support-link {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--teal-soft);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.support-link:hover {
  border-color: var(--border-strong);
  background: rgba(15, 54, 65, 0.34);
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 76px;
  }

  .side-navigation {
    align-items: center;
    padding-inline: 9px;
  }

  .brand {
    padding-inline: 4px;
  }

  .brand strong,
  .navigation-item > span:last-child {
    display: none;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .navigation-item {
    width: 50px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 6px;
  }

  .top-bar {
    padding-inline: 22px;
  }

  main {
    padding-inline: 22px;
  }
}

@media (max-width: 980px) {
  .top-bar {
    position: relative;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .learner-strip {
    position: absolute;
    top: 18px;
    right: 22px;
    grid-template-columns: minmax(160px, 1fr) 72px 72px;
  }

  .top-bar-main {
    padding-right: 390px;
  }

  .home-search {
    width: 100%;
  }

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

  .home-introduction {
    min-height: 286px;
  }

  .home-introduction-copy {
    width: 58%;
  }

  .home-observatory {
    right: -55px;
    width: 64%;
  }

  .home-support {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #home-progress {
    grid-row: span 2;
  }
}

@media (max-width: 820px) {
  .learner-strip {
    position: static;
  }

  .top-bar-main {
    padding-right: 0;
  }

  .continue-card {
    grid-template-columns: 1fr;
  }

  .home-introduction-copy {
    width: 64%;
  }

  .home-introduction h1 span {
    font-size: clamp(33px, 5.2vw, 43px);
  }

  .home-introduction h1 em {
    font-size: clamp(45px, 7.4vw, 61px);
  }

  .home-observatory {
    right: -88px;
    width: 69%;
    opacity: 0.78;
  }

  .continue-actions {
    grid-template-columns: 1fr 1fr;
  }

  .branch-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    padding-bottom: 68px;
  }

  .app-shell {
    display: block;
  }

  .side-navigation {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 64px;
    padding: 6px 8px;
    border-top: 1px solid var(--border);
    border-right: 0;
    background: rgba(2, 10, 22, 0.98);
    backdrop-filter: blur(14px);
  }

  .brand,
  .secondary-navigation,
  .primary-navigation .navigation-item:nth-child(n + 6) {
    display: none;
  }

  .primary-navigation {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin: 0;
  }

  .primary-navigation .navigation-item {
    display: grid;
    width: auto;
    min-height: 50px;
    grid-template-columns: 1fr;
    grid-template-rows: 24px auto;
    gap: 1px;
    padding: 4px 2px;
    justify-items: center;
    font-size: 9px;
  }

  .primary-navigation .navigation-item > span:last-child {
    display: block;
  }

  .navigation-icon {
    font-size: 18px;
  }

  .top-bar {
    padding: 14px 16px;
    gap: 14px;
  }

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

  .learner-strip {
    grid-template-columns: minmax(155px, 1fr) 66px 66px;
  }

  .metric-card {
    min-height: 62px;
  }

  main {
    padding: 22px 16px 54px;
  }

  .home-introduction {
    min-height: 348px;
    align-items: start;
  }

  .home-introduction::after {
    background: linear-gradient(
      180deg,
      rgba(2, 10, 22, 0.99) 0%,
      rgba(2, 10, 22, 0.9) 47%,
      rgba(2, 10, 22, 0.22) 72%,
      transparent 100%
    );
  }

  .home-introduction-copy {
    width: 100%;
    padding-top: 7px;
  }

  .home-introduction h1 {
    max-width: 620px;
  }

  .home-introduction h1 span {
    font-size: clamp(31px, 8.2vw, 42px);
  }

  .home-introduction h1 em {
    font-size: clamp(43px, 11.5vw, 60px);
  }

  .home-introduction-copy > p:last-child {
    max-width: 520px;
    font-size: 14px;
  }

  .home-observatory {
    top: auto;
    right: -25px;
    bottom: -24px;
    width: calc(100% + 25px);
    min-width: 0;
    height: 210px;
    opacity: 0.76;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 100%);
  }

  .home-support {
    grid-template-columns: 1fr;
  }

  #home-progress {
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding-inline: 13px;
  }

  .learner-strip {
    grid-template-columns: minmax(145px, 1fr) 62px 62px;
  }

  .level-badge {
    width: 39px;
    height: 43px;
  }

  .metric-card {
    min-height: 58px;
    padding-inline: 4px;
  }

  .metric-card strong {
    font-size: 14px;
  }

  main {
    padding-inline: 13px;
  }

  .home-introduction {
    min-height: 330px;
    margin-bottom: 22px;
  }

  .home-introduction h1 {
    margin-bottom: 14px;
  }

  .home-introduction h1 span {
    font-size: clamp(29px, 9vw, 36px);
  }

  .home-introduction h1 em {
    font-size: clamp(40px, 12.5vw, 50px);
  }

  .home-observatory {
    right: -42px;
    width: calc(100% + 42px);
    height: 195px;
  }

  .continue-card,
  .branch-section {
    padding: 18px 15px;
  }

  .continue-actions {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

}

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

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