@font-face {
  font-family: DM Sans;
  src: url(fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Space Grotesk;
  src: url(fonts/space-grotesk.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --paper: #f7f8f4;
  --ink: #1e2b28;
  --muted: #58635f;
  --border: #d8ded5;
  --dark: #142923;
  --lime: #c7f88d;
  --heading: "Space Grotesk", Arial, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
select,
input {
  font: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.46;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #578739;
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.icon {
  flex: none;
  vertical-align: middle;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: absolute;
  top: 5px;
  left: 5px;
  background: white;
  padding: 0.5rem;
  z-index: 10;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand,
.footer-brand {
  font-family: var(--heading);
  line-height: 1.12;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
}
h3 {
  font-size: 1.23rem;
}
p {
  color: var(--muted);
}
small {
  font-size: 0.84rem;
}
button,
select {
  border: 0;
}
header {
  background: #fcfdf9;
  border-bottom: 1px solid var(--border);
}
.header-inner,
main,
.footer-inner {
  width: min(1280px, calc(100% - clamp(36px, 9vw, 150px)));
  margin: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 78px;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  font-size: 2rem;
  letter-spacing: -0.075em;
  font-weight: 700;
}
.brand-mark {
  width: 36px;
  height: 39px;
}
.header-inner nav {
  display: flex;
  gap: 0.4rem;
  margin: auto;
}
.header-inner nav a,
.notation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  font-size: 0.92rem;
  font-weight: 620;
  border-radius: 9px;
  padding: 0.58rem 0.88rem;
  color: #54615a;
}
.header-inner nav a:hover,
.quiet:hover,
.notation:hover,
.icon-btn:hover {
  background: #eaf0e5;
}
.header-inner nav a[aria-current] {
  color: #26392b;
  background: #e7efdf;
}
.notation {
  border: 1px solid #cdd5ca;
  background: transparent;
  color: #364538;
  gap: 0.55rem;
}
.btn,
.chip,
.quiet,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 9px;
  font-size: 0.94rem;
  line-height: 1.15;
  font-weight: 650;
}
.btn {
  padding: 0.81rem 1.08rem;
  min-height: 44px;
  border: 1px solid #cad4c6;
  background: #fff;
}
.btn:not(:disabled):hover {
  background: #eef3e9;
}
.btn.primary {
  background: #294e3b;
  color: #fff;
  border-color: #294e3b;
}
.btn.primary:not(:disabled):hover {
  background: #356448;
}
.quiet,
.icon-btn {
  background: transparent;
  color: #3d5142;
}
.quiet {
  padding: 0.49rem 0.55rem;
  min-height: 36px;
}
.icon-btn {
  padding: 7px;
  min-width: 36px;
  height: 36px;
}
.chip {
  border: 1px solid #d0dacb;
  background: #f4f7f0;
  padding: 0.58rem 0.75rem;
  min-height: 40px;
}
.chip[aria-pressed="true"] {
  background: #314c39;
  color: #fff;
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #203426;
}
.btn.lime:hover {
  background: #d7ffab;
}
.btn.ghost {
  color: #f3f8f1;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid #5a6a60;
}
.btn.ghost:hover {
  background: #344a3c;
}
main {
  padding-top: clamp(22px, 2.7vw, 40px);
  outline: none;
}
.hero {
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(
    ellipse at 82% 38%,
    #354b41 0%,
    #223730 39%,
    #192c26 70%
  );
  color: #f7faf2;
  min-height: 385px;
  box-shadow: inset 0 0 0 1px #35463e;
}
.hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3.7vw, 57px) 0 clamp(32px, 3.7vw, 57px)
    clamp(32px, 4.2vw, 68px);
  z-index: 1;
}
.hero-kicker,
.eyebrow,
.view-label,
.counter,
.lesson-dots {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d2dfcb;
  font-weight: 550;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
}
.hero-kicker i,
.view-label i {
  display: inline-block;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #bdf28c;
}
.hero-kicker span {
  width: 17px;
  border-top: 1px solid #778c7a;
}
.hero h1 {
  font-size: clamp(3.55rem, 5.45vw, 5.15rem);
  letter-spacing: -0.07em;
  line-height: 0.99;
  margin: 1.05rem 0 1.12rem;
  font-weight: 650;
}
.hero h1 em {
  color: var(--lime);
  font-style: normal;
}
.hero-copy > p {
  font-size: 1.055rem;
  line-height: 1.55;
  max-width: 425px;
  color: #d4ded5;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.65rem;
}
.hero-actions .btn {
  min-height: 46px;
}
.stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #e3eddf;
  min-width: 0;
}
.hero-stage {
  min-height: 340px;
}
.main-cube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  z-index: 2;
}
.main-cube:active {
  cursor: grabbing;
}
.stage:before {
  content: "";
  inset: 0;
  position: absolute;
  background-image: radial-gradient(
    circle,
    #a8c2a94f 0.75px,
    transparent 0.85px
  );
  background-size: 20px 20px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 16%,
    #000 95%,
    transparent
  );
  opacity: 0.57;
}
.grid-plane {
  position: absolute;
  left: -50%;
  right: -50%;
  height: 75%;
  bottom: -37%;
  background-image:
    linear-gradient(#91b09b35 1px, transparent 1px),
    linear-gradient(90deg, #91b09b35 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(240px) rotateX(57deg) rotateZ(-16deg);
  mask-image: radial-gradient(ellipse 48% 50%, #000 20%, transparent 97%);
}
.orbit-ring {
  position: absolute;
  width: 72%;
  height: 17%;
  bottom: 14%;
  left: 14%;
  border: 1px dashed #a7bba73d;
  border-radius: 50%;
  transform: rotate(-5deg);
  background: radial-gradient(ellipse, #0a171567 6%, transparent 65%);
}
.cross {
  position: absolute;
  color: #c1d5ba6b;
  width: 10px;
  height: 10px;
}
.cross:before,
.cross:after {
  content: "";
  position: absolute;
  background: currentColor;
}
.cross:before {
  height: 1px;
  width: 100%;
  top: 50%;
}
.cross:after {
  width: 1px;
  height: 100%;
  left: 50%;
}
.c1 {
  top: 19%;
  left: 13%;
}
.c2 {
  top: 34%;
  right: 10%;
}
.c3 {
  bottom: 26%;
  right: 15%;
}
.view-label {
  position: absolute;
  right: 22px;
  top: 18px;
  color: #d0dfd1;
  border: 1px solid #a2b7a73f;
  border-radius: 99px;
  background: #253a31b0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.29rem 0.62rem;
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  z-index: 3;
  pointer-events: none;
}
.view-label i {
  width: 6px;
  height: 6px;
}
.axes {
  position: absolute;
  left: 7%;
  bottom: 15%;
  width: 46px;
  height: 45px;
  opacity: 0.83;
}
.stage-tools {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 10px;
  background: #1d3029df;
  border: 1px solid #83998a50;
  padding: 0 4px 0 11px;
  backdrop-filter: blur(6px);
}
.stage-tools span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #e0e8dd;
  margin-right: 5px;
}
.stage-tools .icon-btn {
  color: #ccdbcb;
  min-width: 32px;
  height: 32px;
}
.stage-tools .icon-btn:hover {
  background: #3c5144;
}
.stage-tools .icon-btn:first-of-type {
  border-left: 1px solid #74847761;
  border-radius: 0;
}
.paths {
  margin-top: clamp(28px, 3vw, 43px);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 19px;
}
.section-head h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.05rem);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: #d3dacd;
}
.section-marks {
  display: flex;
  gap: 4px;
}
.section-marks i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #b8c5b4;
}
.section-marks i:nth-child(2) {
  background: #93a88a;
}
.section-marks i:last-child {
  background: #607b5c;
}
.path-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.path-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: 17px;
  background: var(--bg);
  min-height: 206px;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.guided {
  --bg: #eeebf8;
  --card-border: #dcd5ec;
  --accent: #564684;
  --sub: #4e4961;
}
.learning {
  --bg: #e5f0e5;
  --card-border: #cbdcc9;
  --accent: #326347;
  --sub: #495c4e;
}
.path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 16px #263c2410;
}
.path-copy {
  z-index: 1;
  width: 64%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 0 23px 26px;
}
.path-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--accent);
  border: 1px solid var(--card-border);
  background: #ffffff82;
  border-radius: 10px;
  margin-bottom: 12px;
}
.path-card h3 {
  font-size: clamp(1.36rem, 1.8vw, 1.67rem);
  color: #26302b;
}
.path-card p {
  color: var(--sub);
  line-height: 1.45;
  margin-top: 6px;
  font-size: 0.97rem;
  max-width: 345px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
}
.path-art {
  position: absolute;
  right: -1%;
  top: 4%;
  bottom: 0;
  width: 38%;
  background: radial-gradient(circle, #86998255 1px, transparent 1px) 0 0/12px
    12px;
  mask-image: linear-gradient(90deg, transparent, #000 16%);
}
.path-art canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}
.footer-inner {
  margin-top: 34px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0 25px;
  gap: 16px;
  color: #657164;
}
.footer-brand {
  font-size: 1.1rem;
  gap: 0.38rem;
  letter-spacing: -0.05em;
  color: #52624f;
}
.footer-brand .brand-mark {
  width: 20px;
  height: 23px;
}
.footer-inner > span:last-child {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
}
.page-heading {
  margin: 4px 0 22px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.09em;
  color: #526c4e;
  font-size: 0.78rem;
  font-weight: 650;
}
.page-heading h1 {
  font-size: clamp(2.15rem, 4.3vw, 3.5rem);
  margin: 10px 0;
}
.page-heading p {
  font-size: 1.06rem;
  max-width: 780px;
}
.workspace,
.start-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.viewer,
.work-stage,
.start-guide > .stage {
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 35%, #395446, #20352d 75%);
  overflow: hidden;
}
.work-stage,
.start-guide > .stage {
  height: clamp(345px, 34vw, 470px);
}
.panel,
.note,
.lesson-bar {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: clamp(18px, 2.3vw, 30px);
}
.panel h2 {
  font-size: 1.7rem;
}
.panel p,
.note p {
  margin: 0.6rem 0 1rem;
}
.panel h3:not(:first-child) {
  margin-top: 1.2rem;
}
.note {
  background: #eef2e9;
  margin-top: 15px;
}
.note h3,
.good {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tools-row,
.row,
.play-controls,
.lesson-nav,
.dialog-head,
.dialog-actions,
.status-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.spread,
.dialog-head,
.lesson-nav {
  justify-content: space-between;
}
.wrap,
.tools-row,
.play-controls,
.dialog-actions {
  flex-wrap: wrap;
}
.tools-row {
  margin-top: 10px;
}
.row h2,
.row h3 {
  margin: 0;
}
.counter {
  background: #f0f4eb;
  border-radius: 20px;
  color: #465d44;
  padding: 4px 10px;
  font-size: 0.86rem;
}
.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin: 12px 0 18px;
}
.swatch {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  font-size: 0.83rem;
}
.swatch[aria-pressed="true"] {
  border: 2px solid #436140;
  background: #f1f5ed;
  padding: 5px 0;
}
.swatch b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #28332944;
  color: #152021;
}
.orientation {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) minmax(130px, 192px) minmax(
      36px,
      1fr
    );
  grid-template-rows: auto auto auto;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin: 14px 0;
}
.orientation small {
  font-size: 0.77rem;
  color: #576451;
}
.north,
.south {
  grid-column: 2;
}
.west {
  grid-column: 1;
  grid-row: 2;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 1;
  gap: 4px;
  border-radius: 9px;
  background: #28332e;
  padding: 5px;
}
.orientation .sticker-grid {
  grid-column: 2;
  grid-row: 2;
}
.east {
  grid-column: 3;
  grid-row: 2;
}
.sticker {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border-radius: 5px;
  padding: 0;
  background: var(--tile);
  font-size: 0.9rem;
  color: #19261d;
}
.sticker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  font-weight: 700;
}
.sticker.center span {
  border: 1px solid currentColor;
  border-radius: 50%;
}
.sticker.blank {
  background: repeating-linear-gradient(
    135deg,
    #e3e8df 0 5px,
    #eef2e9 5px 10px
  );
}
.sticker.bad {
  outline: 2px dashed #67264e;
  outline-offset: -4px;
}
.sticker:not(.mini .sticker):hover {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.net {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  margin: 12px 0;
}
.net-face small {
  font-size: 0.72rem;
}
.nU,
.nD {
  grid-column: 2;
}
.nL {
  grid-column: 1;
}
.nD {
  grid-row: 3;
}
.mini {
  padding: 3px;
  gap: 2px;
  border-radius: 4px;
}
.mini .sticker {
  border-radius: 2px;
  font-size: 0.72rem;
}
.full {
  width: 100%;
  margin-top: 15px;
}
select {
  background: #f2f5ef;
  border: 1px solid #cdd7c7;
  border-radius: 7px;
  padding: 0.4rem 1.8rem 0.4rem 0.55rem;
  max-width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23385840' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color: var(--ink);
}
label {
  font-size: 0.92rem;
  font-weight: 580;
}
input {
  accent-color: #3c663f;
}
.error,
.hint-box,
.help-block {
  padding: 14px;
  border-radius: 10px;
  margin-top: 15px;
}
.error {
  background: #fff0ed;
  color: #852d28;
}
.error ul {
  margin: 6px 0;
  padding-left: 18px;
}
.hint-box,
.help-block {
  background: #f0f4ec;
}
.hint-box p,
.help-block p {
  margin: 0.45rem 0;
}
.guide-panel h2 {
  margin: 8px 0;
}
.move {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #edf3e7;
  border: 1px solid #d7e2cf;
  border-radius: 12px;
  padding: 15px;
  margin: 14px 0;
}
.move > strong {
  font-family: var(--heading);
  font-size: 2.5rem;
  letter-spacing: -0.06em;
  min-width: 64px;
  text-align: center;
  background: #fff;
  border-radius: 9px;
  padding: 5px 6px;
}
.move p {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: #577f4c;
  display: block;
  margin: 15px 0 6px;
}
.play-controls {
  margin: 16px 0 8px;
}
.playback-more {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 10px;
}
.playback-more label {
  font-size: 0.84rem;
}
.sequence {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: 5px;
}
.sequence li {
  padding: 4px 8px;
  background: #edf0ea;
  border-radius: 5px;
  font-weight: 650;
}
.sequence .current {
  background: #34573a;
  color: white;
}
.sequence .done {
  color: #616d61;
  background: #e1eadc;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--lime);
  color: #245037;
}
.good {
  color: #2e633a;
  font-weight: 650;
}
.lesson-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 17px;
  margin-bottom: 16px;
}
.lesson-dots {
  display: flex;
  gap: 4px;
}
.lesson-dots i {
  width: 17px;
  height: 5px;
  background: #e3eadf;
  border-radius: 3px;
}
.lesson-dots i.filled {
  background: #648b53;
}
.face-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.face-buttons small {
  font-size: 0.72rem;
}
.lesson-nav {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 16px;
}
.status-line {
  font-weight: 650;
}
.loading {
  border: 3px solid #dce6d5;
  border-top-color: #53754b;
  border-radius: 100%;
  width: 21px;
  height: 21px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
dialog {
  color: var(--ink);
  width: min(500px, calc(100vw - 28px));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  max-height: 88dvh;
}
dialog::backdrop {
  background: #101e18a6;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 1.7rem;
}
dialog p {
  margin: 10px 0 15px;
}
.notation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 0;
}
.notation-grid > div {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  background: #eef3e9;
  border-radius: 8px;
  font-size: 0.86rem;
}
.notation-grid b,
.notation-lines b {
  color: #365d37;
  font-size: 1.15rem;
}
.notation-lines b {
  display: inline-block;
  min-width: 49px;
}
@media (min-width: 1500px) {
  .header-inner {
    height: 86px;
  }
  .hero {
    min-height: 435px;
  }
}
@media (max-width: 1000px) {
  .header-inner,
  main,
  .footer-inner {
    width: calc(100% - 48px);
  }
  .header-inner {
    gap: 12px;
  }
  .header-inner nav {
    gap: 1px;
  }
  .header-inner nav a {
    padding: 0.58rem 0.65rem;
  }
  .hero-copy {
    padding: 34px 0 34px 32px;
  }
  .hero h1 {
    font-size: 3.85rem;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    font-size: 0.88rem;
    padding: 0.7rem 0.8rem;
  }
  .hero {
    min-height: 355px;
  }
  .path-copy {
    width: 68%;
    padding: 19px 0 20px 20px;
  }
  .path-art {
    width: 34%;
  }
  .workspace {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  .header-inner,
  main,
  .footer-inner {
    width: calc(100% - 30px);
  }
  .header-inner {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
  }
  .brand {
    font-size: 1.7rem;
    margin: 12px 0;
  }
  .brand-mark {
    width: 29px;
    height: 32px;
  }
  .notation {
    padding: 0.45rem 0.68rem;
    font-size: 0.85rem;
  }
  .header-inner nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin: 0 0 8px;
  }
  .header-inner nav a {
    flex: auto;
    gap: 5px;
    font-size: 0.86rem;
  }
  .hero {
    grid-template-columns: 1fr 0.86fr;
    border-radius: 18px;
    min-height: 315px;
  }
  .hero-copy {
    padding: 25px 0 25px 23px;
  }
  .hero h1 {
    font-size: 3.1rem;
  }
  .hero-copy > p {
    font-size: 0.95rem;
  }
  .hero-kicker {
    font-size: 0.68rem;
  }
  .hero-stage {
    min-height: 270px;
  }
  .hero-actions {
    margin-top: 1rem;
  }
  .hero-actions .btn {
    min-height: 38px;
  }
  .stage-tools {
    bottom: 10px;
    padding-left: 7px;
  }
  .stage-tools span {
    font-size: 0.7rem;
  }
  .view-label {
    right: 12px;
    top: 12px;
  }
  .path-list {
    gap: 10px;
  }
  .path-card {
    min-height: 205px;
  }
  .path-copy {
    width: 74%;
    padding: 15px 0 15px 16px;
  }
  .path-art {
    width: 31%;
    right: -2%;
  }
  .path-card p {
    font-size: 0.88rem;
  }
  .workspace,
  .start-guide {
    grid-template-columns: 1fr;
  }
  .work-stage,
  .start-guide > .stage {
    height: clamp(275px, 50vw, 355px);
  }
  .workspace:has(#edit-panel) > section:first-child .note {
    margin-top: 4px;
  }
  .guide-panel {
    order: 0;
  }
  .lesson-dots i {
    width: 9px;
  }
  .note {
    padding: 16px;
  }
  .paths {
    margin-top: 27px;
  }
  .section-head {
    margin-bottom: 13px;
  }
}
@media (max-width: 550px) {
  main {
    padding-top: 15px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 24px 22px 0;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 10.9vw, 3.65rem);
    margin: 0.7rem 0;
  }
  .hero-copy > p {
    max-width: 370px;
    font-size: 0.94rem;
  }
  .hero-stage {
    min-height: 220px;
    height: clamp(220px, 53vw, 260px);
  }
  .hero-stage .view-label {
    right: 12px;
    top: 9px;
    font-size: 0.62rem;
  }
  .hero-stage .main-cube {
    inset: -7px 0 0;
    height: calc(100% - 6px);
  }
  .hero-stage .stage-tools {
    bottom: 8px;
  }
  .hero-stage .axes {
    bottom: 19%;
    left: 8%;
    width: 35px;
  }
  .hero-stage:before {
    mask-image: linear-gradient(transparent, #000 19%);
  }
  .hero-actions .btn {
    font-size: 0.85rem;
    padding: 0.65rem 0.76rem;
  }
  .path-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .path-card {
    min-height: 169px;
  }
  .path-copy {
    width: 65%;
    padding: 16px 0 18px 18px;
  }
  .path-art {
    width: 35%;
    right: 0;
  }
  .path-icon {
    width: 29px;
    height: 29px;
    margin-bottom: 8px;
  }
  .path-icon svg {
    width: 18px;
  }
  .path-card p {
    font-size: 0.89rem;
  }
  .card-link {
    padding-top: 9px;
  }
  .section-head h2 {
    font-size: 1.55rem;
  }
  .section-head {
    gap: 10px;
  }
  .footer-inner {
    margin-top: 23px;
    padding: 15px 0;
  }
  .footer-inner > span:last-child {
    font-size: 0.72rem;
  }
  .lesson-bar {
    flex-wrap: wrap;
  }
  .lesson-bar label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .lesson-bar select {
    min-width: 0;
    flex: 1;
  }
  .lesson-dots {
    display: none;
  }
  .palette {
    gap: 2px;
  }
  .swatch {
    font-size: 0.75rem;
  }
  .header-inner nav a .icon {
    width: 15px;
  }
  .header-inner nav a {
    padding: 0.45rem 0.34rem;
  }
  .workspace .tools-row {
    gap: 2px;
  }
  .tools-row .quiet {
    font-size: 0.84rem;
  }
  .stage-tools span {
    font-size: 0.75rem;
  }
  .hero-kicker {
    letter-spacing: 0.065em;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .path-card:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .workspace:has(.guide-panel) > section:first-child,
  .workspace:has(#explore) > section:first-child {
    display: contents;
  }
  .workspace:has(.guide-panel) .note {
    order: 2;
  }
}
@media (max-width: 760px) and (min-height: 610px) {
  .workspace:has(.guide-panel) .viewer,
  .workspace:has(#explore) .viewer {
    position: sticky;
    top: 0;
    z-index: 4;
  }
  .workspace:has(.guide-panel) .work-stage,
  .workspace:has(#explore) .work-stage {
    height: clamp(210px, 32dvh, 320px);
  }
}
