/* Approved professional homepage pass.
   Active component rules live here so the retained base stylesheet remains a safe design backup. */

:root {
  --surface-glass: rgba(255, 253, 247, .84);
  --surface-paper: #fffaf1;
  --focus-ring: #087f7b;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 62%, transparent);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 100;
  border-bottom-color: transparent;
  transition: padding 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-block: .72rem;
  border-bottom-color: rgba(23, 50, 67, .12);
  background: rgba(255, 253, 247, .88);
  box-shadow: 0 10px 32px rgba(16, 39, 51, .08);
  backdrop-filter: blur(18px) saturate(1.12);
}

.site-nav a {
  font-size: .82rem;
}

.brand small,
.spark-l10n-control summary span {
  font-size: .62rem;
}

.hero-channels {
  width: min(72rem, calc(100% - 3rem));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .72rem;
}

.hero-channel-group {
  min-width: 0;
  display: grid;
  gap: 0;
}

.hero-channel-group__label {
  display: none;
}

.hero-channel-group__cards {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .62rem;
}

.hero-channel-group--journey .hero-channel-group__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-channel--lab { --channel-accent: #6f5a9e; }

.hero-channel {
  min-height: 4.8rem;
  padding-top: .9rem;
  padding-right: .65rem;
}

.hero {
  min-height: max(46rem, calc(100svh - 4rem));
}

.route-story {
  min-height: 2.8rem;
  align-content: center;
  padding: .45rem .72rem;
}

.route-story__copy {
  color: rgba(23, 50, 67, .78);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.38;
}

.hero-channel__status {
  position: absolute;
  z-index: 3;
  top: .34rem;
  right: .42rem;
  padding: .22rem .38rem;
  border: 1px solid color-mix(in srgb, var(--channel-accent) 38%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--channel-accent) 80%, var(--ink));
  background: rgba(255, 253, 247, .84);
  font: 700 .48rem/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.channel-stage {
  padding-top: clamp(5.8rem, 8vw, 8.4rem);
  padding-bottom: clamp(3.4rem, 5vw, 5.2rem);
}

.channel-stage__shell {
  width: min(76rem, calc(100% - 3rem));
}

.channel-stage__topline {
  margin-bottom: 1.75rem;
}

.channel-stage__topline h2 {
  letter-spacing: -.045em;
  text-wrap: balance;
}

.channel-workbench {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}

.channel-workbench::before {
  display: none;
}

.channel-picker,
.channel-views {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 1rem;
  background: var(--surface-glass);
  box-shadow: 0 24px 74px rgba(37, 33, 31, .12);
  backdrop-filter: blur(22px) saturate(1.12);
}

.channel-picker {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .72rem;
  overflow: visible;
}

.channel-picker::before,
.channel-views::before {
  border-radius: inherit;
}

.channel-picker__heading {
  min-width: 7.8rem;
  display: grid;
  align-content: center;
  gap: .38rem;
  padding: .25rem .45rem;
  border: 0;
}

.channel-picker__heading span {
  font-size: .84rem;
}

.channel-picker__heading small {
  font-size: .6rem;
  line-height: 1.25;
}

.channel-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  margin: 0;
}

.channel-switcher button {
  --picker-accent: #008f8a;
  min-width: 0;
  min-height: 4.5rem;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: .62rem;
  padding: .62rem .7rem;
  border: 1px solid rgba(37, 33, 31, .13);
  border-radius: .72rem;
  color: #25211f;
  background: rgba(255, 255, 255, .64);
  box-shadow: 0 7px 20px rgba(37, 33, 31, .06);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.channel-switcher button:nth-child(2) { --picker-accent: #bb6652; }
.channel-switcher button:nth-child(3) { --picker-accent: #5369a2; }
.channel-switcher button:nth-child(4) { --picker-accent: #9b722e; }
.channel-switcher button:nth-child(5) { --picker-accent: #6f5a9e; }

.channel-switcher button:hover,
.channel-switcher button:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--picker-accent) 56%, transparent);
  box-shadow: 0 12px 26px rgba(37, 33, 31, .1);
}

.channel-switcher button[aria-selected="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #303971, var(--picker-accent));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--picker-accent) 24%, transparent);
}

.channel-switcher__mark {
  width: 2.25rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--picker-accent) 30%, transparent);
  border-radius: .58rem;
  color: var(--picker-accent);
  background: rgba(255, 255, 255, .78);
  font: 700 1rem/1 var(--display);
}

.channel-switcher button[aria-selected="true"] .channel-switcher__mark {
  color: var(--picker-accent);
  border-color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .94);
}

.channel-switcher__copy {
  min-width: 0;
  display: grid;
  gap: .3rem;
}

.channel-switcher__copy strong {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-switcher__copy small {
  display: block;
  overflow: hidden;
  color: rgba(37, 33, 31, .62);
  font: 600 .54rem/1.35 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-switcher button[aria-selected="true"] .channel-switcher__copy small {
  color: rgba(255, 255, 255, .76);
}

.channel-views {
  width: 100%;
  height: clamp(39rem, 53vw, 43rem);
  min-height: 39rem;
  margin: 0;
  overflow: hidden;
}

.channel-views::after {
  right: -1.8rem;
  bottom: -2rem;
  z-index: 1;
  width: clamp(14rem, 22vw, 21rem);
  opacity: .72;
}

.channel-window-maple {
  position: absolute;
  z-index: 1;
  top: -2.6rem;
  left: -3.5rem;
  width: clamp(22rem, 40vw, 35rem);
  aspect-ratio: 1665 / 944;
  background: url("../site-ui/decor-maple-canopy-v2.webp") left top / contain no-repeat;
  opacity: .46;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.channel-view,
.channel-view--default {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(22rem, 1.06fr);
  padding: 0;
  border: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, rgba(0, 143, 138, .052) 0 1px, transparent 1px 31px),
    linear-gradient(90deg, transparent 0 2.2rem, rgba(220, 111, 95, .13) 2.2rem calc(2.2rem + 1px), transparent calc(2.2rem + 1px)),
    rgba(255, 250, 241, .74);
  box-shadow: none;
}

.channel-view[hidden] {
  display: none;
}

.channel-view__art {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 1rem 0 1rem 1rem;
  padding: clamp(1rem, 2vw, 1.7rem);
  overflow: hidden;
  border: 1px solid rgba(0, 143, 138, .18);
  border-radius: .72rem;
  background: linear-gradient(145deg, rgba(247, 251, 250, .96), rgba(226, 241, 239, .92));
  box-shadow: inset 0 0 28px rgba(0, 143, 138, .08), 0 18px 36px rgba(37, 33, 31, .09);
  cursor: pointer;
}

.channel-view__art::before {
  opacity: .1;
}

.channel-art-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}

.channel-art-link:focus-visible {
  outline: 3px solid var(--view-accent);
  outline-offset: -5px;
}

.channel-view__copy {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.3rem, 4vw, 4.2rem) clamp(2.3rem, 4vw, 4.2rem) 5.2rem;
  background: linear-gradient(90deg, rgba(255, 250, 241, .98), rgba(255, 250, 241, .86) 72%, rgba(255, 250, 241, .58));
}

.channel-view h3 {
  max-width: 10ch;
  font-size: clamp(2.9rem, 4.8vw, 4.9rem);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.channel-view__copy > p:not(.eyebrow) {
  max-width: 31rem;
  font-size: clamp(.92rem, 1.15vw, 1.04rem);
}

.channel-facts {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  justify-content: flex-end;
  gap: .3rem;
  margin: 0;
  opacity: .68;
}

.channel-facts li {
  padding: .3rem .45rem;
  font-size: .49rem;
}

.channel-status {
  width: 100%;
  min-height: 4.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  margin-top: 1.35rem;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--view-accent) 72%, #172f3a);
  border-radius: .86rem;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--view-accent) 80%, #172f3a), var(--view-accent));
  box-shadow: 0 13px 28px color-mix(in srgb, var(--view-accent) 24%, transparent);
  font: 800 .82rem/1.3 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
}

.channel-status > span {
  display: grid;
  gap: .2rem;
}

.channel-status small {
  color: rgba(255, 255, 255, .72);
  font: 700 .56rem/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.channel-status strong {
  font-size: .92rem;
  letter-spacing: .01em;
}

.channel-status b { margin-left: auto; font-size: 1.25rem; }

a.channel-status {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

a.channel-status:hover,
a.channel-status:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--view-accent) 90%, #172f3a);
  background: linear-gradient(135deg, color-mix(in srgb, var(--view-accent) 70%, #102632), color-mix(in srgb, var(--view-accent) 88%, white));
  box-shadow: 0 17px 34px color-mix(in srgb, var(--view-accent) 32%, transparent);
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

.channel-view--lab {
  --view-accent: #6f5a9e;
  --view-soft: #e9e3f3;
}

.channel-status i {
  width: .62rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff0b7;
  box-shadow: 0 0 0 5px rgba(255, 240, 183, .18);
}

.channel-demo {
  position: relative;
  z-index: 3;
  width: min(100%, 29rem);
  display: grid;
  align-content: center;
  gap: 1rem;
  pointer-events: none;
}

.channel-demo button {
  pointer-events: auto;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(23, 50, 67, .14);
}

.demo-toolbar strong {
  font-size: .76rem;
}

.demo-toolbar span,
.channel-demo > p {
  color: rgba(23, 50, 67, .62);
  font: 700 .58rem/1.3 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.demo-paper,
.demo-sound-card,
.demo-module-card,
.demo-note-card,
.demo-lab-map,
.demo-lab-experiment {
  position: relative;
  border: 1px solid rgba(23, 50, 67, .14);
  border-radius: .85rem;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 22px 50px rgba(23, 50, 67, .12);
}

.demo-paper--chart {
  align-content: stretch;
  justify-items: stretch;
  gap: 1rem;
}

.demo-chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(187, 96, 79, .2);
}

.demo-chart-title strong {
  font-size: .8rem;
}

.demo-chart-title span {
  color: rgba(23, 50, 67, .55);
  font: 700 .55rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-kana-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 50, 67, .11);
  border-left: 1px solid rgba(23, 50, 67, .11);
}

.demo-kana-chart span {
  min-height: 6.4rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .18rem;
  border-right: 1px solid rgba(23, 50, 67, .11);
  border-bottom: 1px solid rgba(23, 50, 67, .11);
  background: rgba(255, 255, 255, .54);
}

.demo-kana-chart b {
  color: #a24e40;
  font: 600 clamp(1.55rem, 3vw, 2.3rem)/1 var(--display);
}

.demo-kana-chart small {
  color: #51649b;
  font: 600 1rem/1 var(--display);
}

.demo-kana-chart i {
  color: rgba(23, 50, 67, .5);
  font: 700 .48rem/1 var(--mono);
  font-style: normal;
}

.demo-lab-experiment {
  min-height: 25rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .75rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 50% 28%, rgba(119, 204, 195, .18), transparent 9rem),
    linear-gradient(145deg, rgba(255, 253, 247, .96), rgba(236, 231, 247, .96));
  text-align: center;
}

.demo-lab-experiment > small {
  color: #6f5a9e;
  font: 700 .56rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-lab-experiment > strong {
  color: #6f5a9e;
  font: 600 clamp(5rem, 9vw, 7.5rem)/1 var(--display);
}

.demo-lab-experiment > p {
  margin: 0;
  color: rgba(23, 50, 67, .82);
  font-size: .86rem;
}

.demo-lab-experiment > p span {
  font-family: var(--display);
  font-size: 1.25rem;
}

.demo-lab-experiment > em {
  max-width: 18rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(111, 90, 158, .2);
  color: rgba(79, 66, 111, .78);
  font-size: .72rem;
  line-height: 1.5;
}

.demo-lab-map {
  min-height: 25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  align-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 50% 22%, rgba(119, 204, 195, .2), transparent 10rem),
    linear-gradient(145deg, rgba(255, 253, 247, .96), rgba(236, 231, 247, .96));
}

.demo-lab-map span {
  min-height: 7rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .55rem;
  padding: 1rem;
  border: 1px solid rgba(111, 90, 158, .18);
  border-radius: .75rem;
  color: #4f426f;
  background: rgba(255, 255, 255, .72);
  font: 700 .66rem/1.35 var(--mono);
  text-align: center;
}

.demo-lab-map b {
  width: 2.15rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6f5a9e;
  font-size: .72rem;
}

.demo-paper {
  min-height: 25rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .4rem;
  padding: 2rem;
  background:
    repeating-linear-gradient(0deg, rgba(187, 96, 79, .075) 0 1px, transparent 1px 29px),
    rgba(255, 253, 247, .96);
}

.demo-paper__seal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: #bb6652;
  font-family: var(--display);
}

.demo-kana {
  color: #bb6652;
  font: 600 clamp(5.5rem, 10vw, 8rem)/1 var(--display);
}

.demo-paper > p:not(.eyebrow) {
  margin: .2rem 0 0;
  font: 600 clamp(1.2rem, 2vw, 1.65rem)/1.15 var(--display);
  text-align: center;
}

.demo-paper em {
  color: #bb6652;
}

.demo-actions {
  display: flex;
  gap: .4rem;
  margin-top: 1rem;
}

.demo-actions span {
  min-width: 2.5rem;
  padding: .42rem .55rem;
  border: 1px solid rgba(187, 96, 79, .28);
  border-radius: 999px;
  color: #8c4d42;
  background: rgba(187, 96, 79, .07);
  font: 700 .55rem/1 var(--mono);
  text-align: center;
}

.demo-sound-card {
  min-height: 25rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .48rem;
  padding: 2rem;
  background: radial-gradient(circle at 50% 38%, rgba(119, 204, 195, .19), transparent 9rem), rgba(255, 253, 247, .96);
}

.demo-sound-card > strong {
  color: #168a84;
  font: 600 clamp(6rem, 11vw, 9rem)/1 var(--display);
}

.demo-sound-card > span {
  color: rgba(23, 50, 67, .64);
  font: 700 .8rem/1 var(--mono);
}

.demo-play {
  width: 3.25rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #168a84;
  box-shadow: 0 10px 24px rgba(22, 138, 132, .24);
}

.demo-wave {
  height: 2.5rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: .75rem;
}

.demo-wave i {
  width: .22rem;
  height: 35%;
  border-radius: 999px;
  background: #77ccc3;
}

.demo-wave i:nth-child(2), .demo-wave i:nth-child(6) { height: 58%; }
.demo-wave i:nth-child(3), .demo-wave i:nth-child(5) { height: 82%; }
.demo-wave i:nth-child(4) { height: 100%; }

.demo-module-card {
  min-height: 25rem;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 80% 14%, rgba(119, 204, 195, .3), transparent 10rem),
    linear-gradient(145deg, #27335f, #5369a2);
}

.demo-module-card .eyebrow {
  color: #b9eee8;
}

.demo-module-card > strong {
  font: 600 clamp(4rem, 8vw, 6.5rem)/1 var(--display);
}

.demo-module-card > span {
  max-width: 24rem;
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
  line-height: 1.55;
}

.demo-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .35rem;
  margin-top: .4rem;
}

.demo-progress i {
  height: .25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.demo-progress i:first-child,
.demo-progress i:nth-child(2) {
  background: #77ccc3;
}

.demo-note-card {
  min-height: 25rem;
  display: grid;
  grid-template-columns: minmax(7rem, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(90deg, transparent 0 2rem, rgba(155, 114, 46, .14) 2rem calc(2rem + 1px), transparent calc(2rem + 1px)),
    repeating-linear-gradient(0deg, rgba(155, 114, 46, .07) 0 1px, transparent 1px 28px),
    rgba(255, 253, 247, .96);
}

.demo-note-card > strong {
  color: #9b722e;
  font: 600 clamp(5.5rem, 10vw, 8rem)/1 var(--display);
  text-align: center;
}

.demo-note-card div span {
  display: block;
  margin-top: .7rem;
  color: rgba(23, 50, 67, .66);
  font-size: .8rem;
  line-height: 1.55;
}

.channel-product-sample {
  width: 100%;
  margin: .55rem 0 1rem;
  padding: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--view-accent) 22%, transparent);
  border-radius: .82rem;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 12px 30px rgba(23, 50, 67, .07);
}

.channel-product-sample > strong {
  color: color-mix(in srgb, var(--view-accent) 82%, var(--ink));
  font-size: .76rem;
}

.sample-study {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.sample-study > strong {
  grid-column: 1 / -1;
}

.sample-study div {
  display: grid;
  gap: .32rem;
  padding: .72rem;
  border: 1px solid rgba(23, 50, 67, .1);
  border-radius: .55rem;
  background: rgba(255, 253, 247, .86);
}

.sample-study div span {
  color: var(--view-accent);
  font: 600 clamp(1.55rem, 2.5vw, 2.1rem)/1 var(--display);
  letter-spacing: .08em;
}

.sample-study div small {
  color: rgba(23, 50, 67, .55);
  font: 700 .5rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sample-audio {
  display: grid;
  gap: .7rem;
}

.sample-audio__keys {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .42rem;
}

.sample-audio__keys button {
  min-width: 0;
  min-height: 4.35rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .25rem;
  padding: .45rem .2rem;
  border: 1px solid rgba(22, 138, 132, .22);
  border-radius: .58rem;
  color: #168a84;
  background: rgba(255, 253, 247, .9);
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sample-audio__keys button:hover,
.sample-audio__keys button:focus-visible,
.sample-audio__keys button.is-playing {
  transform: translateY(-2px);
  color: #fff;
  background: #168a84;
  box-shadow: 0 10px 20px rgba(22, 138, 132, .2);
}

.sample-audio__keys b {
  font: 600 1.65rem/1 var(--display);
}

.sample-audio__keys small {
  font: 700 .52rem/1 var(--mono);
}

.sample-audio__status {
  min-height: 1em;
  margin: 0;
  color: rgba(23, 50, 67, .58);
  font: 700 .53rem/1.3 var(--mono);
}

.demo-play {
  cursor: pointer;
}

.demo-play.is-playing {
  background: #bb6652;
  box-shadow: 0 10px 24px rgba(187, 102, 82, .28);
}

.demo-play.is-playing + strong {
  color: #bb6652;
}

.demo-play.is-playing ~ .demo-wave i {
  animation: preview-wave 680ms ease-in-out infinite alternate;
}

.demo-play.is-playing ~ .demo-wave i:nth-child(2n) { animation-delay: -240ms; }
.demo-play.is-playing ~ .demo-wave i:nth-child(3n) { animation-delay: -420ms; }

@keyframes preview-wave {
  from { transform: scaleY(.35); }
  to { transform: scaleY(1); }
}

.sample-module {
  display: grid;
  gap: .45rem;
}

.sample-module > span {
  color: var(--view-accent);
  font: 600 clamp(2.2rem, 4vw, 3.4rem)/1 var(--display);
}

.sample-module > small {
  color: rgba(23, 50, 67, .54);
  font: 700 .58rem/1 var(--mono);
}

.sample-module details {
  margin-top: .3rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(83, 105, 162, .18);
}

.sample-module summary {
  width: fit-content;
  color: #5369a2;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}

.sample-module details p {
  margin: .55rem 0 0;
  color: rgba(23, 50, 67, .76);
  font-size: .78rem;
}

.sample-kanji {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.sample-kanji > strong {
  color: #9b722e;
  font: 600 clamp(3.5rem, 6vw, 5rem)/1 var(--display);
}

.sample-kanji div {
  min-width: 0;
  display: grid;
  gap: .3rem;
}

.sample-kanji div > span {
  color: #79571f;
  font-size: .8rem;
  font-weight: 800;
}

.sample-kanji div > small {
  color: rgba(23, 50, 67, .58);
  font: 700 .58rem/1 var(--mono);
}

.sample-kanji div > p {
  margin: .25rem 0 0;
  color: rgba(23, 50, 67, .68);
  font-size: .68rem;
  line-height: 1.4;
}

.sample-experiment {
  display: grid;
  gap: .58rem;
  border-color: rgba(111, 90, 158, .22);
  background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(236, 231, 247, .72));
}

.sample-experiment > p {
  margin: 0;
  color: rgba(23, 50, 67, .76);
  font-size: .78rem;
  line-height: 1.5;
}

.sample-experiment > small {
  padding-top: .58rem;
  border-top: 1px solid rgba(111, 90, 158, .17);
  color: #5f4d87;
  font: 700 .56rem/1.45 var(--mono);
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.15rem;
  padding: .7rem 0;
  border-block: 1px solid rgba(23, 50, 67, .08);
}

.credibility-strip > span {
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .25rem 1rem;
  border-left: 1px solid rgba(23, 50, 67, .08);
  color: rgba(23, 50, 67, .62);
  font: 600 .66rem/1.35 var(--mono);
  letter-spacing: .015em;
}

.credibility-strip > span:first-child {
  border-left: 0;
}

.credibility-strip i {
  width: 1.75rem;
  aspect-ratio: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: rgba(23, 50, 67, .72);
  background: rgba(23, 50, 67, .06);
  font: 600 .68rem/1 var(--display);
}

.button-status {
  cursor: default;
}

.art-divider {
  isolation: isolate;
  width: min(48rem, calc(100% - 2rem));
  height: clamp(3.4rem, 5.5vw, 4.8rem);
  margin: clamp(-2.2rem, -2.7vw, -1.2rem) auto clamp(-2rem, -2.5vw, -1.1rem);
}

.art-divider::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: clamp(8rem, 14vw, 12rem);
  background:
    linear-gradient(180deg,
      rgba(255, 249, 239, 0) 0%,
      rgba(255, 251, 244, .92) 35%,
      rgba(246, 250, 247, .96) 68%,
      rgba(243, 250, 247, 0) 100%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.book {
  grid-template-columns: minmax(25rem, .88fr) minmax(34rem, 1.12fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  min-height: 0;
  padding-block: clamp(3.8rem, 5.5vw, 5.8rem) clamp(5.5rem, 8vw, 8rem);
}

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

.book-stage {
  width: 100%;
  max-width: 46rem;
  min-width: 0;
  min-height: 36rem;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(36, 72, 58, .09);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(119, 204, 195, .13), transparent 18rem),
    rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
}

.page-sheet {
  width: min(43%, 20rem);
  max-height: calc(100% - 3.5rem);
  border-radius: .35rem;
}

.page-sheet img {
  width: 100%;
  height: auto;
}

.page-sheet-back {
  left: 73%;
  transform: translate(-50%, -50%) rotate(6deg);
}

.page-sheet-mid {
  left: 29%;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.page-sheet-front {
  left: 51%;
  transform: translate(-50%, -50%) rotate(.7deg);
}

.book-actions {
  align-items: center;
}

.site-footer {
  grid-template-columns: minmax(14rem, 1fr) minmax(20rem, auto) minmax(14rem, 1fr);
  align-items: start;
  gap: 2.5rem;
  padding-block: 2.7rem;
}

.footer-identity {
  display: grid;
  gap: .9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1.35rem;
}

.footer-nav a {
  position: relative;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a::after {
  position: absolute;
  right: 0;
  bottom: -.28rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
  transform: scaleX(1);
}

.footer-credit {
  justify-self: end;
  max-width: 17rem;
  font-family: var(--mono);
  line-height: 1.55;
  text-align: right;
}

/* Progressive enhancement: content is readable until the reveal controller is ready. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .route-story--practice { left: 29%; }
  .route-story--journey { left: 61%; }

  .channel-views {
    height: 40rem;
  }

  .channel-view {
    grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr);
  }

  .channel-view__copy {
    padding: 2.5rem;
  }

  .channel-view h3 {
    font-size: clamp(2.7rem, 5.4vw, 4.1rem);
  }

  .credibility-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credibility-strip > span:nth-child(odd) {
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1.5fr;
  }

  .footer-credit {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 1280px) {
  .book {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .book-copy {
    width: min(100%, 48rem);
    max-width: none;
    margin-inline: auto;
  }

  .book-stage {
    width: min(100%, 52rem);
    min-height: 34rem;
    margin-inline: auto;
  }

  .page-sheet {
    width: min(35%, 18rem);
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: clip;
  }

  .site-header,
  .site-header.is-scrolled {
    padding: .8rem 1rem;
  }

  .site-header {
    gap: .75rem;
  }

  .spark-l10n-control {
    width: min(8.8rem, 42vw);
  }

  .hero {
    min-height: 54rem;
  }

  .hero-copy {
    width: calc(100% - 1rem);
    max-width: 24rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 13.5vw, 4.15rem);
    overflow-wrap: anywhere;
  }

  .hero-channels {
    width: calc(100% - 2rem);
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .hero-channel-group {
    gap: 0;
  }

  .hero-channel-group__label {
    font-size: .5rem;
  }

  .hero-channel-group__cards {
    gap: .45rem;
  }

  .hero-channel {
    min-height: 4rem;
    padding: .78rem .4rem .45rem 46%;
  }

  .hero-channel__status {
    display: none;
  }

  .route-story {
    min-width: 0;
    min-height: 3rem;
    align-content: center;
    overflow: hidden;
  }

  .channel-stage__shell {
    width: calc(100% - 1.25rem);
  }

  .channel-picker {
    grid-template-columns: 1fr;
    gap: .55rem;
    padding: .62rem;
  }

  .channel-picker__heading {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: .25rem .35rem .15rem;
  }

  .channel-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-switcher button {
    min-height: 4rem;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .48rem;
    padding: .5rem;
  }

  .channel-switcher__mark {
    width: 1.9rem;
  }

  .channel-switcher__copy strong {
    font-size: .68rem;
  }

  .channel-switcher__copy small {
    font-size: .48rem;
  }

  .channel-views {
    height: auto;
    min-height: 0;
  }

  .channel-view {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .channel-view__art {
    grid-column: 1;
    grid-row: auto;
    min-height: 26rem;
    margin: .65rem .65rem 0;
    padding: 1rem;
  }

  .channel-view__copy {
    grid-column: 1;
    grid-row: auto;
    padding: 2.3rem 1.45rem 4.4rem;
    background: rgba(255, 250, 241, .9);
  }

  .channel-view h3 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .demo-paper,
  .demo-sound-card,
  .demo-module-card,
  .demo-note-card {
    min-height: 21rem;
  }

  .demo-note-card,
  .demo-lab-experiment {
    grid-template-columns: minmax(6rem, .7fr) minmax(0, 1.3fr);
  }

  .demo-lab-experiment {
    display: grid;
    grid-template-columns: 1fr;
  }

  .channel-views::after {
    right: -3rem;
    bottom: 0;
    width: 15rem;
    opacity: .46;
  }

  .channel-window-maple {
    top: -1.5rem;
    left: -4rem;
    width: 24rem;
    opacity: .36;
  }

  .channel-status { width: 100%; min-height: 4.35rem; }

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

  .credibility-strip > span {
    min-height: 2.7rem;
    border-left: 0;
    border-top: 1px solid rgba(23, 50, 67, .07);
  }

  .credibility-strip > span:first-child {
    border-top: 0;
  }

  .book {
    min-height: 0;
    gap: 1.5rem;
  }

  .book-stage {
    min-height: 28rem;
    margin-inline: 0;
    border-radius: .8rem;
  }

  .page-sheet {
    width: min(46%, 13rem);
  }

  .page-sheet-mid { left: 25%; }
  .page-sheet-back { left: 77%; }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    padding: 2rem 1rem;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-credit {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .route-story {
    min-height: 3.2rem;
  }

  .route-story__copy {
    display: block;
    font-size: .52rem;
  }

  .channel-switcher__copy small {
    display: none;
  }

  .channel-switcher button {
    min-height: 3.45rem;
  }

  .channel-view__art {
    min-height: 23rem;
  }

  .demo-paper,
  .demo-sound-card,
  .demo-module-card,
  .demo-note-card,
  .demo-lab-experiment {
    min-height: 18.5rem;
  }

  .demo-kana-chart span {
    min-height: 4.2rem;
  }

  .channel-facts li {
    font-size: .44rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .channel-switcher button,
  .sample-audio__keys button,
  .footer-nav a::after {
    transition: none;
  }

  .channel-switcher button:hover,
  .channel-switcher button:focus-visible {
    transform: none;
  }

  .demo-play.is-playing ~ .demo-wave i {
    animation: none;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
