:root {
  --maroon: #681528;
  --maroon-dark: #3c0b17;
  --maroon-mid: #81223a;
  --gold: #d7ae55;
  --gold-light: #f1d68d;
  --cream: #fbf8f1;
  --paper: #fffefa;
  --ink: #261d1f;
  --muted: #716568;
  --line: #e8ddd5;
  --success: #1f7250;
  --danger: #a63b43;
  --shadow: 0 22px 60px rgba(67, 21, 29, 0.1);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: white;
  color: var(--maroon);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid rgba(104, 21, 40, 0.1);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.06em;
  box-shadow: 0 8px 24px rgba(104, 21, 40, 0.22);
}
.brand-copy {
  display: grid;
  line-height: 1.12;
}
.brand-copy strong {
  color: var(--maroon);
  font-size: 16px;
}
.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-progress {
  width: min(240px, 32vw);
  display: grid;
  gap: 6px;
  color: var(--maroon);
  font-size: 11px;
  font-weight: 850;
}
.header-progress > div {
  display: flex;
  justify-content: space-between;
}
.header-progress strong {
  color: var(--gold);
  font-size: 11px;
}
.progress-track {
  height: 5px;
  overflow: hidden;
  background: #e4d9d4;
  border-radius: 999px;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  border-radius: inherit;
  transition: width 0.4s ease;
}
.hero {
  min-height: 660px;
  padding: clamp(72px, 9vw, 128px) clamp(22px, 8vw, 120px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  background:
    radial-gradient(
      circle at 78% 25%,
      rgba(215, 174, 85, 0.18),
      transparent 29%
    ),
    linear-gradient(135deg, #fdfaf4 0%, #f4e8de 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(104, 21, 40, 0.08);
  border-radius: 50%;
  right: -235px;
  top: -185px;
  box-shadow:
    0 0 0 70px rgba(104, 21, 40, 0.025),
    0 0 0 140px rgba(104, 21, 40, 0.018);
}
.eyebrow {
  display: inline-block;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  color: var(--maroon-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.2vw, 84px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.045em;
}
.hero h1 em {
  color: var(--maroon);
  font-weight: 500;
}
.hero-copy > p {
  max-width: 610px;
  margin: 0 0 34px;
  color: #5f5355;
  font-size: clamp(17px, 2vw, 21px);
}
.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.primary-button {
  background: var(--maroon);
  color: white;
  box-shadow: 0 14px 32px rgba(104, 21, 40, 0.2);
}
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(104, 21, 40, 0.26);
}
.secondary-button {
  background: #f4eadd;
  color: var(--maroon);
  border: 1px solid rgba(104, 21, 40, 0.14);
}
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-meta b {
  color: var(--maroon);
  font-family: Georgia, serif;
  font-size: 22px;
}
.hero-visual {
  min-height: 455px;
  position: relative;
  overflow: hidden;
  background: var(--maroon);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  box-shadow: 0 38px 85px rgba(61, 11, 23, 0.28);
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(242, 214, 141, 0.25);
  border-radius: 50%;
}
.orbit-one {
  width: 330px;
  height: 330px;
  right: -70px;
  top: 35px;
}
.orbit-two {
  width: 430px;
  height: 430px;
  right: -120px;
  top: -15px;
}
.hero-figure {
  position: absolute;
  left: 21%;
  top: 12%;
  width: 260px;
  height: 330px;
}
.hero-figure .head {
  position: absolute;
  left: 72px;
  top: 6px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #c78968;
}
.hero-figure .head::before {
  content: "";
  position: absolute;
  inset: -4px 2px 30px -3px;
  background: #302125;
  border-radius: 40px 40px 14px 14px;
}
.hero-figure .torso {
  position: absolute;
  left: 48px;
  top: 74px;
  width: 116px;
  height: 180px;
  background: linear-gradient(90deg, #f6ede6, #fff9f1);
  border-radius: 44px 44px 20px 20px;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}
.hero-arm {
  position: absolute;
  height: 24px;
  background: #c78968;
  border-radius: 14px;
  transform-origin: left center;
}
.hero-arm.upper {
  left: 143px;
  top: 95px;
  width: 112px;
  transform: rotate(38deg);
  animation: heroMove 3.4s ease-in-out infinite;
}
.hero-arm.lower {
  left: 228px;
  top: 158px;
  width: 105px;
  transform: rotate(-20deg);
  animation: heroForearm 3.4s ease-in-out infinite;
}
.hero-hand {
  position: absolute;
  left: 326px;
  top: 133px;
  width: 36px;
  height: 18px;
  background: #c78968;
  border-radius: 11px;
  transform: rotate(-20deg);
  animation: heroHand 3.4s ease-in-out infinite;
}
.joint-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid var(--gold-light);
  background: var(--maroon);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(242, 214, 141, 0.12);
}
.shoulder-dot {
  left: 137px;
  top: 98px;
}
.elbow-dot {
  left: 225px;
  top: 155px;
}
.wrist-dot {
  left: 322px;
  top: 135px;
}
.motion-label {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.label-shoulder {
  left: 11%;
  top: 29%;
}
.label-elbow {
  right: 9%;
  top: 44%;
}
.label-wrist {
  right: 7%;
  top: 70%;
}
.hero-visual > p {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}
.hero-visual > p span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(215, 174, 85, 0.14);
}
@keyframes heroMove {
  0%,
  100% {
    transform: rotate(38deg);
  }
  50% {
    transform: rotate(-54deg);
  }
}
@keyframes heroForearm {
  0%,
  100% {
    transform: rotate(-20deg);
  }
  50% {
    transform: translate(-54px, -73px) rotate(-72deg);
  }
}
@keyframes heroHand {
  0%,
  100% {
    transform: rotate(-20deg);
  }
  50% {
    transform: translate(-98px, -146px) rotate(-72deg);
  }
}
.section {
  padding: clamp(74px, 9vw, 120px) clamp(20px, 8vw, 120px);
}
.section-heading {
  margin-bottom: 42px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.section-number {
  min-width: 48px;
  padding-top: 5px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 17px;
  border-top: 2px solid var(--gold);
}
.section-heading h2 {
  margin: 7px 0 0;
  color: var(--maroon-dark);
  font-family: Georgia, serif;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
}
.safety-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.safety-rules article {
  min-height: 170px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  gap: 18px;
  box-shadow: 0 12px 32px rgba(67, 21, 29, 0.05);
}
.safety-rules article > span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #f1e4d8;
  color: var(--maroon);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 900;
}
.safety-rules strong {
  color: var(--maroon-dark);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}
.safety-rules p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.knowledge-card {
  padding: clamp(26px, 4vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.knowledge-card h3,
.joint-check h3,
.scenario-copy h3 {
  margin: 10px 0 24px;
  color: var(--maroon-dark);
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 500;
  line-height: 1.12;
}
.answer-list {
  display: grid;
  gap: 12px;
}
.answer {
  width: 100%;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfaf6;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 750;
  transition: 0.18s ease;
}
.answer span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d9ccc5;
  border-radius: 9px;
  color: var(--maroon);
  font-size: 12px;
}
.answer:hover,
.answer:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 8px 22px rgba(67, 21, 29, 0.08);
}
.answer.correct {
  background: #eaf5ef;
  border-color: #6daf8e;
  color: #155b3e;
}
.answer.wrong {
  background: #faebea;
  border-color: #d99592;
  color: #852c31;
}
.answer.locked:not(.correct):not(.wrong) {
  opacity: 0.56;
}
.feedback {
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(5px);
  transition: 0.22s ease;
}
.feedback.show {
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 14px;
  opacity: 1;
  transform: none;
}
.feedback.success {
  background: #eaf5ef;
  color: #155b3e;
}
.feedback.error {
  background: #faebea;
  color: #852c31;
}
.safety-banner {
  margin-top: 26px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f4e4b9;
  border: 1px solid #e2c36f;
  border-radius: 16px;
  color: var(--maroon-dark);
}
.safety-banner > span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  border-radius: 50%;
  font-weight: 900;
}
.safety-banner p {
  margin: 0;
}
.studio-section {
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(215, 174, 85, 0.15),
      transparent 25%
    ),
    linear-gradient(145deg, #581020, #2e0711);
  color: white;
}
.light-heading .section-number {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
.light-heading .eyebrow {
  color: var(--gold-light);
}
.light-heading h2 {
  color: white;
}
.joint-tabs {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.joint-tab {
  min-height: 64px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 850;
  transition: 0.18s ease;
}
.joint-tab span {
  color: var(--gold-light);
  font-size: 11px;
}
.joint-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.joint-tab.active span {
  color: var(--maroon);
}
.studio-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(380px, 0.88fr);
  background: #fffdf8;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}
.motion-stage {
  min-height: 535px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fff8e5, #f0e1d4);
  color: var(--ink);
}
.stage-topline,
.sequence-topline,
.joint-check-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.stage-title {
  display: grid;
  gap: 3px;
}
.stage-title > span {
  color: var(--maroon);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.stage-title small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.demo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.demo-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(31, 114, 80, 0.12);
}
.body-rig {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 360px;
  height: 365px;
  transform: translate(-50%, -50%);
}
.rig-head {
  position: absolute;
  left: 83px;
  top: 19px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #c78767;
  box-shadow: inset -10px -5px 0 rgba(80, 34, 26, 0.08);
}
.rig-head::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -5px 2px 34px -2px;
  border-radius: 44px 44px 15px 15px;
  background: #332226;
}
.face-eye,
.face-nose,
.face-mouth {
  position: absolute;
  z-index: 2;
  display: block;
}
.face-eye {
  top: 38px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d2022;
}
.eye-left {
  left: 20px;
}
.eye-right {
  right: 20px;
}
.face-nose {
  left: 35px;
  top: 44px;
  width: 7px;
  height: 10px;
  border-left: 2px solid #8e5b49;
  border-bottom: 2px solid #8e5b49;
  border-radius: 0 0 0 5px;
}
.face-mouth {
  left: 29px;
  top: 59px;
  width: 20px;
  height: 7px;
  border-bottom: 2px solid #754236;
  border-radius: 50%;
}
.rig-neck {
  position: absolute;
  left: 106px;
  top: 84px;
  width: 35px;
  height: 42px;
  background: #c78767;
}
.rig-torso {
  position: absolute;
  left: 51px;
  top: 107px;
  width: 145px;
  height: 228px;
  border-radius: 54px 54px 24px 24px;
  background: linear-gradient(90deg, #681528, #8a2940);
  clip-path: polygon(17% 0, 83% 0, 100% 100%, 0 100%);
  box-shadow: inset -16px 0 0 rgba(255, 255, 255, 0.05);
}
.shoulder-joint {
  position: absolute;
  left: 170px;
  top: 118px;
  z-index: 4;
  width: 20px;
  height: 20px;
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 0 0 8px rgba(215, 174, 85, 0.15);
}
.rig-arm {
  position: absolute;
  left: 171px;
  top: 119px;
  width: 190px;
  height: 170px;
  transform-origin: 10px 10px;
}
.rig-upper,
.rig-forearm {
  position: absolute;
  left: 0;
  top: 0;
  height: 24px;
  border-radius: 14px;
  background: linear-gradient(#d79c7b, #bd795e);
  transform-origin: 10px 12px;
}
.rig-upper {
  width: 104px;
}
.rig-forearm {
  left: 90px;
  width: 102px;
}
.rig-hand {
  position: absolute;
  right: -26px;
  top: 0;
  width: 38px;
  height: 22px;
  border-radius: 13px;
  background: #bd795e;
}
.support-point {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--maroon);
  border: 3px solid var(--gold-light);
  box-shadow: 0 0 0 6px rgba(104, 21, 40, 0.1);
}
.support-one {
  right: 8px;
  top: 5px;
}
.support-two {
  right: 8px;
  top: 5px;
}
.arc {
  display: none;
  position: absolute;
  border: 2px dashed rgba(104, 21, 40, 0.35);
  border-color: rgba(104, 21, 40, 0.35) transparent transparent
    rgba(104, 21, 40, 0.35);
  border-radius: 50%;
}
.motion-stage[data-joint="shoulder"] .arc-shoulder {
  display: block;
  left: 141px;
  top: 87px;
  width: 170px;
  height: 170px;
}
.motion-stage[data-joint="elbow"] .arc-elbow {
  display: block;
  left: 243px;
  top: 142px;
  width: 115px;
  height: 115px;
}
.motion-stage[data-joint="wrist"] .arc-wrist {
  display: block;
  left: 310px;
  top: 156px;
  width: 66px;
  height: 66px;
}
.motion-stage[data-joint="shoulder"][data-motion="flexion"] .rig-arm,
.motion-stage[data-joint="shoulder"][data-motion="abduction"] .rig-arm {
  transform: rotate(88deg);
}
.motion-stage[data-view="side"] .rig-head {
  border-radius: 46% 54% 48% 52%;
}
.motion-stage[data-view="side"] .eye-left {
  display: none;
}
.motion-stage[data-view="side"] .eye-right {
  right: 11px;
  top: 37px;
}
.motion-stage[data-view="side"] .face-nose {
  left: auto;
  right: -8px;
  top: 42px;
  width: 14px;
  height: 10px;
  background: #c78767;
  border: 0;
  border-radius: 0 9px 9px 0;
}
.motion-stage[data-view="side"] .face-mouth {
  left: auto;
  right: 3px;
  top: 57px;
  width: 11px;
}
.motion-stage[data-joint="elbow"] .rig-arm {
  transform: rotate(55deg);
}
.motion-stage[data-joint="elbow"] .rig-forearm {
  transform: rotate(0deg);
}
.motion-stage[data-joint="wrist"] .rig-arm {
  transform: rotate(15deg);
}
.motion-stage[data-joint="wrist"] .rig-forearm {
  transform: rotate(0deg);
}
.motion-stage.is-playing[data-motion="flexion"][data-joint="shoulder"]
  .rig-arm {
  animation: shoulderFlex 3s ease-in-out 1;
}
.motion-stage.is-playing[data-motion="abduction"][data-joint="shoulder"]
  .rig-arm {
  animation: shoulderAbduct 3s ease-in-out 1;
}
.motion-stage.is-playing[data-motion="elbow-flexion"] .rig-forearm {
  animation: elbowFlex 2.2s ease-in-out 1;
}
.motion-stage.is-playing[data-motion="pronation"] .rig-hand {
  animation: forearmTurn 2.2s ease-in-out 1;
}
.motion-stage.is-playing[data-motion="wrist-flexion"] .rig-hand {
  animation: wristFlex 2.2s ease-in-out 1;
}
.motion-stage.is-playing[data-motion="deviation"] .rig-hand {
  animation: wristDeviation 2.2s ease-in-out 1;
}
@keyframes shoulderFlex {
  0%,
  100% {
    transform: rotate(88deg);
  }
  38% {
    transform: rotate(-82deg);
  }
  62% {
    transform: rotate(88deg);
  }
  78% {
    transform: rotate(111deg);
  }
}
@keyframes shoulderAbduct {
  0%,
  100% {
    transform: rotate(88deg);
  }
  50% {
    transform: rotate(-88deg);
  }
}
@keyframes elbowFlex {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-128deg);
  }
}
@keyframes forearmTurn {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.18);
  }
}
@keyframes wristFlex {
  0%,
  100% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(55deg);
  }
  70% {
    transform: rotate(-48deg);
  }
}
@keyframes wristDeviation {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(12px) rotate(10deg);
  }
  70% {
    transform: translateY(-12px) rotate(-10deg);
  }
}
.stage-legend {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(104, 21, 40, 0.1);
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.stage-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stage-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.gold-dot {
  background: var(--gold);
}
.maroon-dot {
  background: var(--maroon);
}
.motion-controls {
  padding: clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  color: var(--ink);
}
.motion-copy h3 {
  margin: 9px 0 14px;
  color: var(--maroon-dark);
  font-family: Georgia, serif;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.05;
}
.motion-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.support-cue {
  margin: 24px 0;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4e7bd;
  border: 1px solid #e3c56f;
  border-radius: 14px;
  color: var(--maroon-dark);
}
.support-cue > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  border-radius: 50%;
}
.support-cue p {
  margin: 0;
  font-size: 13px;
}
.motion-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.motion-choice {
  min-height: 43px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbf7f0;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.motion-choice.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: white;
}
.play-button {
  margin-top: auto;
  min-height: 56px;
  border: 0;
  border-radius: 15px;
  background: var(--maroon);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(104, 21, 40, 0.2);
}
.play-button:hover {
  background: var(--maroon-mid);
}
.play-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--maroon-dark);
  border-radius: 50%;
  font-size: 10px;
  padding-left: 2px;
}
.joint-check {
  margin-top: 20px;
  padding: clamp(26px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
}
.joint-check h3 {
  max-width: 900px;
  margin-bottom: 22px;
  color: white;
}
.check-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 850;
}
.check-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.check-option {
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-weight: 850;
}
.check-option:hover {
  background: rgba(255, 255, 255, 0.14);
}
.check-option.correct {
  background: #dff3e8;
  border-color: #7ec39f;
  color: #155b3e;
}
.check-option.wrong {
  background: #f7dddf;
  border-color: #d99592;
  color: #852c31;
}
.joint-check .feedback.success {
  background: #dff3e8;
}
.joint-check .feedback.error {
  background: #f7dddf;
}
.scenario-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}
.scenario-copy {
  padding: 12px 28px 12px 0;
}
.scenario-badge {
  padding: 7px 10px;
  display: inline-block;
  background: #f2e2b6;
  color: var(--maroon);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scenario-copy h3 {
  margin-top: 20px;
}
.scenario-copy > p {
  color: var(--muted);
  font-size: 16px;
}
.resident-note {
  margin-top: 26px;
  padding: 20px;
  background: var(--maroon);
  color: white;
  border-radius: 18px;
}
.resident-note > span {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.resident-note p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}
.sequence-track {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}
.sequence-track span {
  width: 34px;
  height: 6px;
  border-radius: 99px;
  background: #ded2cc;
  transition: 0.2s ease;
}
.sequence-track span.done {
  background: var(--gold);
}
.sequence-card {
  padding: clamp(26px, 4vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sequence-topline > span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.sequence-options {
  margin-top: 20px;
  display: grid;
  gap: 11px;
}
.sequence-option {
  min-height: 66px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfaf6;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
  font-weight: 750;
  transition: 0.18s ease;
}
.sequence-option span {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d9ccc5;
  border-radius: 9px;
  color: var(--maroon);
  font-size: 11px;
}
.sequence-option:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.sequence-option.correct {
  background: #eaf5ef;
  border-color: #6daf8e;
  color: #155b3e;
}
.sequence-option.wrong {
  background: #faebea;
  border-color: #d99592;
  color: #852c31;
}
.final-quiz {
  margin-top: 70px;
  padding: clamp(26px, 4vw, 44px);
  background: #f2e8de;
  border: 1px solid #e2d1c4;
  border-radius: 28px;
}
.final-quiz-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.final-quiz-heading h2 {
  margin: 8px 0 0;
  color: var(--maroon-dark);
  font-family: Georgia, serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.05;
}
.final-quiz-heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.quiz-card {
  padding: 23px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 12px 30px rgba(67, 21, 29, 0.06);
}
.quiz-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
}
.quiz-card h3 {
  min-height: 78px;
  margin: 17px 0 19px;
  color: var(--maroon-dark);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.18;
}
.quiz-answers {
  display: grid;
  gap: 8px;
}
.quiz-answer {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fcfaf6;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: 0.18s ease;
}
.quiz-answer:hover,
.quiz-answer:focus-visible {
  border-color: var(--gold);
  outline: none;
  transform: translateY(-1px);
}
.quiz-answer.correct {
  background: #eaf5ef;
  border-color: #6daf8e;
  color: #155b3e;
}
.quiz-answer.wrong {
  background: #faebea;
  border-color: #d99592;
  color: #852c31;
}
.quiz-answer.locked:not(.correct):not(.wrong) {
  opacity: 0.5;
}
.quiz-card .feedback.show {
  min-height: 0;
  font-size: 12px;
}
.completion-card {
  margin-top: 56px;
  padding: 34px;
  display: none;
  grid-template-columns: auto 1fr auto;
  gap: 25px;
  align-items: center;
  background: linear-gradient(135deg, #f3e1af, #d7ae55);
  border-radius: 24px;
  color: var(--maroon-dark);
  box-shadow: var(--shadow);
}
.completion-card.show {
  display: grid;
  animation: rise 0.45s ease both;
}
.completion-seal {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 2px solid var(--maroon);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 900;
}
.completion-card h2 {
  margin: 5px 0 4px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}
.completion-card p {
  margin: 0;
  max-width: 720px;
}
.completion-card .secondary-button {
  background: var(--maroon);
  color: white;
}
.takeaway-strip {
  margin-top: 30px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--maroon);
  color: white;
  border-radius: 18px;
}
.takeaway-strip > span {
  padding: 7px 10px;
  background: var(--gold);
  color: var(--maroon-dark);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.takeaway-strip p {
  margin: 0;
}
.takeaway-strip strong {
  color: var(--gold-light);
}
footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.6fr auto auto;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
footer > div:first-child {
  display: grid;
  color: var(--maroon);
}
footer > div:first-child strong {
  font-family: Georgia, serif;
  font-size: 20px;
}
footer p {
  margin: 0;
}
footer a {
  color: var(--maroon);
  font-weight: 800;
}
footer small {
  white-space: nowrap;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual {
    min-height: 420px;
  }
  .safety-layout,
  .scenario-layout {
    grid-template-columns: 1fr;
  }
  .scenario-copy {
    padding-right: 0;
  }
  .studio-shell {
    grid-template-columns: 1fr;
  }
  .motion-stage {
    min-height: 490px;
  }
  .motion-controls {
    min-height: 440px;
  }
  .quiz-grid {
    grid-template-columns: 1fr;
  }
  .quiz-card h3 {
    min-height: auto;
  }
  .completion-card {
    grid-template-columns: auto 1fr;
  }
  .completion-card .secondary-button {
    grid-column: 1/-1;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .site-header {
    min-height: 66px;
    padding: 9px 14px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }
  .brand-copy small {
    display: none;
  }
  .header-progress {
    width: 126px;
    font-size: 10px;
  }
  .hero {
    padding: 64px 18px 70px;
    gap: 38px;
  }
  .hero h1 {
    font-size: 47px;
  }
  .hero-visual {
    min-height: 360px;
    border-radius: 28px;
  }
  .hero-figure {
    left: 5%;
    top: 9%;
    transform: scale(0.83);
  }
  .motion-label {
    font-size: 8px;
  }
  .hero-meta {
    gap: 14px;
  }
  .section {
    padding: 68px 16px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 30px;
  }
  .section-number {
    min-width: 38px;
  }
  .section-heading h2 {
    font-size: 38px;
  }
  .safety-rules {
    grid-template-columns: 1fr;
  }
  .safety-rules article {
    min-height: auto;
  }
  .knowledge-card {
    padding: 25px;
  }
  .joint-tabs {
    grid-template-columns: 1fr;
  }
  .joint-tab {
    min-height: 53px;
  }
  .studio-shell {
    border-radius: 22px;
  }
  .motion-stage {
    min-height: 420px;
    padding: 18px;
  }
  .body-rig {
    transform: translate(-50%, -50%) scale(0.8);
  }
  .stage-legend {
    left: 18px;
    right: 18px;
    bottom: 17px;
  }
  .motion-controls {
    min-height: 450px;
    padding: 25px;
  }
  .check-options {
    grid-template-columns: 1fr;
  }
  .scenario-copy h3 {
    font-size: 30px;
  }
  .sequence-card {
    padding: 22px;
  }
  .final-quiz {
    margin-top: 52px;
    padding: 20px;
  }
  .final-quiz-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .completion-card {
    grid-template-columns: 1fr;
  }
  .takeaway-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
