/* Homepage artwork only. Shared navigation and lesson layouts stay in their shared stylesheets. */
.rm-home-page .rm-home-hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 510px;
  padding: 50px;
  background: linear-gradient(115deg, #102f55 0%, #194f8b 55%, #377bc2 100%);
}
.rm-home-copy { position: relative; z-index: 2; width: 57%; }
.rm-home-page .rm-home-hero h1 {
  font-size: clamp(44px, 5.1vw, 70px);
  line-height: 1.04;
  letter-spacing: -.052em;
  margin: 22px 0;
}
.rm-home-page .rm-home-hero p { font-size: 18px; line-height: 1.6; }
.rm-home-page .rm-home-hero .rm-topic-actions { margin-top: 26px; gap: 12px; }
.rm-home-page .rm-home-hero .rm-button { min-height: 46px; padding: 11px 18px; }
.rm-home-page .rm-home-hero .rm-button-primary {
  background: #e8f6ff; border-color: #e8f6ff; color: #123e6d;
}
.rm-home-page .rm-home-hero .rm-button:not(.rm-button-primary) {
  color: #fff; background: #ffffff0a; border-color: #a9d8ff85;
}
.rm-home-page .rm-home-hero .rm-button:hover { box-shadow: 0 0 0 3px #bfe3ff40; }
.rm-home-page .rm-home-hero .rm-button:focus-visible {
  outline: 3px solid #fff; outline-offset: 5px;
}
.rm-home-artwork {
  position: absolute; z-index: 1; inset: 0 0 0 57%;
  color: #d1edff; pointer-events: none; user-select: none;
}
.rm-home-artwork::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(#cceaff0b 1px, transparent 1px), linear-gradient(90deg, #cceaff0b 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 90%, transparent);
}
.rm-math-formula { position: absolute; font-family: "Cambria Math", Georgia, serif; white-space: nowrap; font-weight: 400; line-height: 1.4; }
.rm-math-formula sub, .rm-math-formula sup { font-size: .58em; }
.rm-math-sequence { top: 9%; left: 6%; font-size: clamp(21px, 2.05vw, 29px); opacity: .52; transform: rotate(-7deg); }
.rm-math-identity { top: 43%; left: 49%; font-size: clamp(17px, 1.55vw, 22px); opacity: .44; transform: rotate(6deg); }
.rm-math-integral { top: 64%; left: 9%; font-size: 28px; opacity: .48; transform: rotate(-4deg); }
.rm-integral-sign { display: inline-block; position: relative; padding: 0 .35em; font-size: 1.45em; vertical-align: -.06em; }
.rm-integral-sign sup, .rm-integral-sign sub { position: absolute; left: 1.05em; font-size: .35em; }
.rm-integral-sign sup { top: -.05em; }
.rm-integral-sign sub { bottom: -.02em; }
.rm-math-graph { position: absolute; height: auto; display: block; }
.rm-math-parabola { top: 23%; left: 2%; width: 49%; max-width: 245px; opacity: .63; transform: rotate(-5deg); }
.rm-math-sine { bottom: 1%; left: 7%; width: 43%; max-width: 235px; opacity: .56; transform: rotate(4deg); }
.rm-math-table {
  position: absolute; top: 14%; right: 8%; width: 30%; max-width: 150px;
  border-collapse: collapse; font-family: "Cambria Math", Georgia, serif;
  font-size: clamp(14px, 1.4vw, 19px); text-align: center;
  color: inherit; opacity: .44; transform: rotate(5deg);
}
.rm-math-table th, .rm-math-table td { border: 1px solid #ceeaffaa; padding: 7px 5px; font-weight: 400; }
.rm-home-teacher {
  position: absolute; right: 22px; bottom: -2px;
  display: block; width: 36%; max-width: 200px; height: auto;
  filter: drop-shadow(-6px 3px 10px #0b27453a);
}
@media (max-width: 1100px) and (min-width: 981px) {
  .rm-home-page .rm-home-hero { padding: 40px; min-height: 485px; }
  .rm-home-copy { width: 58%; }
  .rm-math-identity { left: 45%; font-size: 16px; }
  .rm-home-teacher { width: 40%; right: 12px; }
}
@media (max-width: 980px) {
  .rm-home-page .rm-home-hero { padding: 38px 34px 290px; min-height: 0; }
  .rm-home-copy { width: 100%; max-width: 700px; }
  .rm-home-page .rm-home-hero h1 { font-size: clamp(40px, 6.1vw, 57px); max-width: 700px; }
  .rm-home-artwork { inset: auto 0 0; height: 255px; }
  .rm-math-sequence { top: 7%; left: 6%; font-size: 24px; }
  .rm-math-parabola { width: 195px; top: 19%; left: 5%; }
  .rm-math-table { top: 9%; right: 22%; width: 125px; font-size: 17px; }
  .rm-math-identity { top: 46%; left: 37%; font-size: 20px; }
  .rm-math-integral { top: 20%; left: 35%; font-size: 25px; }
  .rm-math-sine { width: 185px; left: 39%; bottom: 0; }
  .rm-home-teacher { width: 165px; right: 22px; }
}
@media (max-width: 620px) {
  .rm-home-page .rm-home-hero { border-radius: 23px; padding: 28px 22px 262px; }
  .rm-home-page .rm-home-hero h1 { font-size: clamp(34px, 8.8vw, 48px); margin: 22px 0 18px; }
  .rm-home-page .rm-home-hero p { font-size: 16px; line-height: 1.55; }
  .rm-home-page .rm-home-hero .rm-status-pill { font-size: 11px; }
  .rm-home-page .rm-home-hero .rm-topic-actions { gap: 10px; margin-top: 23px; }
  .rm-home-page .rm-home-hero .rm-button { font-size: 14px; padding: 10px 15px; }
  .rm-home-artwork { height: 250px; }
  .rm-math-sequence { left: 7%; top: 2%; font-size: 21px; }
  .rm-math-parabola { width: 135px; left: 0; top: 20%; }
  .rm-math-table { right: 9%; top: 10%; width: 95px; font-size: 14px; }
  .rm-math-table th, .rm-math-table td { padding: 4px; }
  .rm-math-identity { display: none; }
  .rm-math-integral { display: none; }
  .rm-math-sine { width: 145px; left: 16%; bottom: 0; opacity: .48; }
  .rm-home-teacher { right: 8px; width: 125px; }
}
@media (prefers-reduced-motion: reduce) { .rm-home-page { scroll-behavior: auto; } }
