:root {
  --ink: #173243;
  --ink-deep: #102733;
  --teal: #168a84;
  --teal-soft: #77ccc3;
  --indigo: #46599a;
  --paper: #fff8e9;
  --porcelain: #edf7f5;
  --white: #fffdf7;
  --red: #c62d3c;
  --coral: #e45c4b;
  --gold: #d6aa53;
  --line: rgba(23, 50, 67, .16);
  --shadow: 0 26px 70px rgba(16, 39, 51, .16);
  --display: "Shippori Mincho", "Yu Mincho", Georgia, serif;
  --sans: "DM Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--teal); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.35rem clamp(1.2rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(23, 50, 67, .14);
}
.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand b, .brand small { display: block; line-height: 1.05; }
.brand b { font-size: .95rem; letter-spacing: -.02em; }
.brand small {
  margin-top: .18rem;
  color: rgba(23, 50, 67, .62);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.site-nav a {
  position: relative;
  padding: .5rem 0;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .24rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 260ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.site-language-slot { min-width: 12.25rem; }
.spark-l10n-control {
  position: relative;
  z-index: 99999;
  width: min(13.25rem, calc(100vw - 1.5rem));
  font-family: var(--body);
}
.spark-l10n-control summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .2rem 2.15rem .2rem 1.25rem;
  border: 0;
  border-radius: .55rem;
  color: var(--ink);
  background: url("../site-ui/language-picker-porcelain-v1.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 .45rem .8rem rgba(23, 50, 67, .14));
  cursor: pointer;
  list-style: none;
}
.spark-l10n-control summary::-webkit-details-marker { display: none; }
.spark-l10n-control summary::after {
  position: absolute;
  right: .78rem;
  content: "v";
  color: #fffaf0;
  font: 900 .7rem/1 var(--mono);
  text-shadow: 0 1px 2px rgba(3, 20, 35, .6);
  transition: transform 180ms ease;
}
.spark-l10n-control[open] summary::after { transform: rotate(180deg); }
.spark-l10n-control summary span {
  color: #a64d48;
  font: 600 .5rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.spark-l10n-control summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font: 700 .72rem/1 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spark-l10n-control summary:focus-visible {
  outline: 3px solid rgba(0, 143, 138, .42);
  outline-offset: 3px;
}
.spark-l10n-panel {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  width: min(23rem, calc(100vw - 1.5rem));
  max-height: min(32.5rem, 72vh);
  display: grid;
  gap: .38rem;
  padding: .55rem;
  overflow: auto;
  border: 1px solid rgba(23, 50, 67, .16);
  border-radius: .75rem;
  background: rgba(255, 253, 247, .98);
  box-shadow: 0 1.4rem 3.25rem rgba(23, 50, 67, .2);
}
.spark-l10n-panel a {
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: 0 .75rem;
  border: 1px solid rgba(23, 50, 67, .1);
  border-radius: .45rem;
  background: var(--white);
  text-decoration: none;
}
.spark-l10n-panel a span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.spark-l10n-panel a small { color: rgba(23, 50, 67, .64); font: 600 .58rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.spark-l10n-panel a:hover, .spark-l10n-panel a:focus-visible { border-color: var(--teal); background: rgba(0, 143, 138, .06); }
.spark-l10n-panel a[aria-current="page"] { border-color: var(--ink); color: var(--white); background: var(--ink); }
.spark-l10n-panel a[aria-current="page"] small { color: rgba(255, 255, 255, .7); }
.support-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .72rem 1rem;
  border: 1px solid rgba(23, 50, 67, .22);
  border-radius: 999px;
  background: rgba(255, 253, 247, .54);
  background-image: none;
  backdrop-filter: blur(12px);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 220ms ease, transform 220ms ease;
}
.support-link:hover { background: var(--white); transform: translateY(-2px); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 620px) 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 3.6rem);
  padding: 8rem clamp(1.2rem, 4vw, 4.5rem) 2rem;
  isolation: isolate;
}
.hero-image, .hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-image {
  background: url("./assets/images/torii-threshold.webp") center / cover no-repeat;
  filter: saturate(.88) contrast(.96);
}
.hero-wash {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(237,247,245,.92), rgba(255,248,233,.35) 38%, rgba(255,248,233,.35) 62%, rgba(238,239,251,.9)),
    linear-gradient(180deg, rgba(255,253,247,.35), transparent 56%, rgba(255,253,247,.88));
}
.hero-copy { align-self: center; text-align: center; }
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.6;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.45rem, 6.2vw, 7rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .93;
}
.hero h1 em { color: var(--red); font-weight: 500; }
.hero-tategaki {
  position: absolute;
  top: 10%;
  right: 5%;
  left: auto;
  z-index: 2;
  margin: 0;
  color: rgba(0, 0, 0, .06);
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 8px;
  line-height: 1.8;
  text-orientation: upright;
  writing-mode: vertical-rl;
  pointer-events: none;
  user-select: none;
}
.hero-lede {
  max-width: 34rem;
  margin: 1.65rem auto 0;
  color: rgba(23, 50, 67, .76);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.75;
}
.path {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  padding: 1rem .6rem;
}
.path-practice {
  align-self: end;
  justify-self: center;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.2rem;
  text-align: center;
}
.path-practice > div:not(.sprite-shell) { max-width: 13rem; }
.path-practice .text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .58rem .8rem;
  border: 1px solid rgba(23,50,67,.17);
  border-radius: 999px;
  background: rgba(255,253,247,.72);
  backdrop-filter: blur(10px);
}
.path-practice.is-chosen .text-link { border-color: var(--teal); color: var(--teal); background: rgba(237,247,245,.92); }
.path-journey { justify-content: flex-start; }
.path > div:not(.sprite-shell) { max-width: 12rem; }
.path-kicker {
  color: var(--teal);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.path-journey .path-kicker { color: var(--indigo); }
.path h2 {
  margin: .55rem 0 .4rem;
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1.12;
}
.path p { margin: 0 0 .85rem; color: rgba(23, 50, 67, .68); font-size: .78rem; line-height: 1.55; }
.text-link { font-size: .75rem; font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; transition: transform 220ms ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-shortcut {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.15rem;
  border: 1px solid rgba(23, 50, 67, .13);
  border-radius: 999px;
  color: rgba(23, 50, 67, .66);
  background: rgba(255, 253, 247, .72);
  backdrop-filter: blur(14px);
  font-size: .72rem;
  text-decoration: none;
}
.hero-shortcut span { color: var(--ink); font-weight: 700; }

.sprite-shell { position: relative; flex: 0 0 auto; }
.sprite-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: 4%;
  left: 8%;
  height: 14%;
  border-radius: 50%;
  background: rgba(23, 50, 67, .14);
  filter: blur(9px);
}
.sprite-guide { position: relative; width: 100%; height: 100%; overflow: hidden; }
.sprite-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  opacity: 0;
  will-change: opacity;
}
.sprite-layer:first-child { opacity: 1; }
.sprite-shell-tsuki { width: clamp(175px, 15vw, 230px); height: clamp(175px, 15vw, 230px); }
.sprite-shell-moko { width: clamp(105px, 10vw, 158px); height: clamp(105px, 10vw, 158px); }
.sprite-shell-tsuki::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 12%;
  bottom: 3%;
  left: 12%;
  height: 5px;
  border-radius: 50%;
  background: rgba(23,50,67,.3);
  box-shadow: 0 5px 14px rgba(23,50,67,.2);
}
.sprite-shell-marina { width: clamp(150px, 14vw, 205px); height: clamp(150px, 14vw, 205px); }

.section-pad { padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 7vw, 8rem); }
.section-intro h2, .mofuna h2, .book h2, .modules h2, .nara h2, .learning-directory h2, .support-band h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.03;
}

.shelf {
  display: grid;
  grid-template-columns: minmax(200px, .7fr) minmax(500px, 1.55fr) minmax(180px, .55fr);
  align-items: center;
  gap: 2rem clamp(1.6rem, 4vw, 4.2rem);
  color: var(--white);
  background: var(--ink-deep);
  overflow: hidden;
}
.shelf-intro { align-self: start; padding-top: 1.2rem; }
.eyebrow-light { color: var(--teal-soft); }
.shelf-intro h2 { font-size: clamp(3rem, 5vw, 5.6rem); }
.shelf-intro > p:last-child { max-width: 29rem; margin: 1.4rem 0 0; color: rgba(255,255,255,.66); line-height: 1.75; }
.shelf-workspace {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 1.5rem;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.lookup-bar { display: grid; grid-template-columns: auto minmax(230px, 1fr) auto; align-items: center; gap: 1rem; }
.lookup-bar label { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.lookup-control { position: relative; }
.lookup-control input {
  width: 100%;
  padding: .95rem 3.5rem .95rem 1rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: .75rem;
  outline: none;
  color: var(--white);
  background: rgba(5,19,27,.34);
}
.lookup-control input::placeholder { color: rgba(255,255,255,.42); }
.lookup-control input:focus { border-color: var(--teal-soft); box-shadow: 0 0 0 3px rgba(119,204,195,.15); }
.lookup-control kbd {
  position: absolute;
  top: 50%;
  right: .7rem;
  transform: translateY(-50%);
  padding: .25rem .45rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .32rem;
  color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.06);
  font-family: var(--mono);
  font-size: .58rem;
}
.lookup-status { margin: 0; color: rgba(255,255,255,.5); font-size: .7rem; }
.kana-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; margin-top: 1.35rem; }
.kana-cell {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: .05rem;
  padding: .65rem .35rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: .75rem;
  cursor: pointer;
  color: var(--white);
  background: rgba(255,255,255,.045);
  transition: border 180ms ease, background 180ms ease, transform 180ms ease;
}
.kana-cell b { font-family: "Noto Sans JP", sans-serif; font-size: 1.7rem; font-weight: 500; }
.kana-cell span { color: rgba(255,255,255,.48); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.kana-cell:hover, .kana-cell:focus-visible, .kana-cell.is-match { border-color: rgba(119,204,195,.65); background: rgba(22,138,132,.26); transform: translateY(-2px); }
.kana-cell[hidden] { display: none; }
.shelf-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.1rem; }
.shelf-actions a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .82rem;
  border-radius: .7rem;
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.045);
  font-size: .68rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}
.shelf-actions a:hover { color: white; background: rgba(255,255,255,.09); }
.shelf-actions span { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; font-family: var(--display); }
.marina-note {
  min-height: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  justify-content: center;
  gap: .4rem;
  margin: 0;
  border: 0;
}
.marina-note-copy { align-self: stretch; max-width: 16rem; }
.micro-label { color: var(--teal-soft); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.marina-note p { margin: .55rem 0 0; color: rgba(255,255,255,.7); font-family: var(--display); font-size: clamp(.92rem, 1.2vw, 1.14rem); line-height: 1.45; }
.marina-note p strong { color: white; font-weight: 600; }

.mofuna {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  background: var(--paper);
  overflow: hidden;
}
.mofuna-art {
  position: absolute;
  inset: 0;
  background: url("./assets/images/mofuna-cozy.webp") center / cover no-repeat;
}
.mofuna-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,248,233,.06), rgba(255,248,233,.26) 48%, rgba(255,248,233,.96) 68%, var(--paper) 100%);
}
.mofuna-copy { position: relative; grid-column: 2; max-width: 34rem; }
.mofuna h2 { font-size: clamp(3.3rem, 5.5vw, 6rem); }
.mofuna-copy > p:not(.eyebrow) { margin: 1.5rem 0; color: rgba(23,50,67,.72); line-height: 1.8; }
.sound-sample { display: flex; gap: .7rem; margin: 1.8rem 0 2rem; }
.sound-sample span {
  width: 5.3rem;
  height: 5.3rem;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(22,138,132,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  box-shadow: 0 10px 30px rgba(54,91,79,.07);
}
.sound-sample b { font-family: "Noto Sans JP", sans-serif; font-size: 1.55rem; font-weight: 500; }
.sound-sample small { color: var(--teal); font-family: var(--mono); font-size: .56rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.15rem;
  padding: .8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.button:hover { transform: translateY(-3px); }
.button-teal { color: white; background: var(--teal); box-shadow: 0 14px 30px rgba(22,138,132,.2); }
.button-teal:hover { box-shadow: 0 17px 34px rgba(22,138,132,.28); }

.book {
  display: grid;
  grid-template-columns: minmax(320px, .76fr) minmax(520px, 1.24fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  min-height: 790px;
  color: #24483a;
  background:
    radial-gradient(circle at 18% 75%, rgba(198,45,60,.08), transparent 28%),
    linear-gradient(135deg, #fff9ef, #f3faf7 62%, #fff9f1);
  border-block: 1px solid rgba(36,72,58,.12);
  overflow: hidden;
}
.eyebrow-red { color: var(--red); }
.book h2 { font-size: clamp(3.6rem, 6vw, 6.8rem); }
.book h2 em { color: var(--red); font-weight: 500; }
.book-lede { margin: 1.5rem 0 0; font-family: var(--display); font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.75; }
.book-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.2rem 0; border-block: 1px solid rgba(36,72,58,.18); }
.book-facts div { padding: 1rem .8rem 1rem 0; }
.book-facts div + div { padding-left: 1rem; border-left: 1px solid rgba(36,72,58,.18); }
.book-facts dt { font-family: var(--display); font-size: 2rem; font-weight: 700; }
.book-facts div:last-child dt { font-size: clamp(1.45rem, 2.1vw, 2rem); }
.book-facts dd { margin: .2rem 0 0; color: rgba(36,72,58,.66); font-family: var(--mono); font-size: .57rem; letter-spacing: .09em; text-transform: uppercase; }
.book-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button-red { color: white; background: var(--red); box-shadow: 0 14px 34px rgba(198,45,60,.2); }
.button-paper { border-color: rgba(36,72,58,.25); background: rgba(255,255,255,.62); }
.button-orientation {
  flex-basis: 100%;
  align-self: flex-start;
  width: fit-content;
  min-height: 2rem;
  padding: .35rem .15rem;
  border: 0;
  border-bottom: 1px solid rgba(36,72,58,.2);
  border-radius: 0;
  color: rgba(36,72,58,.66);
  background: transparent;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .05em;
}
.button-orientation:hover { color: var(--ink); box-shadow: none; transform: translateY(-1px); }
.support-promise { display: flex; gap: .6rem; margin: 1.2rem 0 0; color: rgba(36,72,58,.63); font-size: .7rem; line-height: 1.55; }
.support-promise span { color: var(--red); font-size: 1rem; }
.book-author-note {
  margin: .75rem 0 0;
  padding: .78rem 0 0 1.55rem;
  border-top: 1px solid rgba(36,72,58,.14);
  color: rgba(36,72,58,.72);
  font-size: .72rem;
  line-height: 1.6;
}
.book-stage { position: relative; min-height: 610px; perspective: 1800px; }
.page-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(285px, 30vw, 450px);
  margin: 0;
  border: 1px solid rgba(36,72,58,.15);
  background: #fff;
  box-shadow: 0 30px 70px rgba(24,57,47,.2);
  overflow: hidden;
}
.page-sheet img { width: 100%; }
.page-sheet-back { transform: translate(-22%, -53%) rotate(8deg); }
.page-sheet-mid { transform: translate(-88%, -48%) rotate(-6deg); }
.page-sheet-front { transform: translate(-55%, -50%) rotate(.8deg); box-shadow: 0 38px 90px rgba(24,57,47,.28); }
.page-sheet-front figcaption {
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  left: 1rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(36,72,58,.18);
  color: rgba(36,72,58,.62);
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.modules { background: var(--porcelain); }
.modules-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 3rem; }
.modules h2 { font-size: clamp(3.4rem, 6vw, 6.4rem); }
.modules-heading > p { max-width: 32rem; margin: 0 0 .5rem; color: rgba(23,50,67,.68); line-height: 1.8; }
.module-ledger { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.module-row {
  display: grid;
  grid-template-columns: 4rem 6rem minmax(250px, 1fr) 8rem 2rem;
  align-items: center;
  gap: 1rem;
  min-height: 9rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 240ms ease, padding 240ms ease;
}
.module-row:hover { padding-inline: 1rem; background: rgba(255,255,255,.48); }
.module-number, .module-kind { color: rgba(23,50,67,.48); font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.module-glyph { font-family: var(--display); font-size: 3.6rem; }
.module-name b { display: block; font-family: var(--display); font-size: 1.65rem; }
.module-name small { display: block; margin-top: .35rem; color: rgba(23,50,67,.6); font-size: .76rem; }
.module-arrow { justify-self: end; font-size: 1.25rem; transition: transform 220ms ease; }
.module-row:hover .module-arrow { transform: translate(4px, -4px); }
.button-ink { color: white; background: var(--ink); }
.module-cta { margin-top: 2rem; }

.nara {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  background: var(--paper);
}
.nara-image {
  min-height: 550px;
  background: url("./assets/images/nara-scenes-route.webp") center / contain no-repeat;
  filter: saturate(.84);
}
.nara h2 { font-size: clamp(3.5rem, 6vw, 6.2rem); }
.nara-copy > p:not(.eyebrow) { max-width: 32rem; margin: 1.4rem 0 1.8rem; color: rgba(23,50,67,.68); font-family: var(--display); font-size: 1.16rem; line-height: 1.75; }
.development-tag { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid rgba(23,50,67,.16); border-radius: 999px; color: rgba(23,50,67,.7); font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.development-tag i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(214,170,83,.16); }

.learning-directory {
  background:
    radial-gradient(circle at 12% 20%, rgba(119,204,195,.13), transparent 24%),
    linear-gradient(145deg, #edf7f5, #f7fbfa 52%, #eef2fb);
}
.directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(2.5rem, 4vw, 4.2rem);
}
.learning-directory h2 { max-width: 48rem; font-size: clamp(3.2rem, 5.5vw, 6rem); }
.directory-heading > p {
  max-width: 34rem;
  margin: 0 0 .5rem;
  color: rgba(23,50,67,.67);
  line-height: 1.8;
}
.learning-deck {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(390px, 1.28fr) minmax(250px, .88fr);
  align-items: stretch;
  gap: clamp(.85rem, 1.7vw, 1.55rem);
}
.learning-door {
  --door-accent: var(--teal);
  position: relative;
  min-width: 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid rgba(23,50,67,.14);
  border-radius: 1.35rem;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 50px rgba(23,50,67,.08);
  text-decoration: none;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease, border-color 300ms ease;
}
a.learning-door:hover, a.learning-door:focus-visible {
  border-color: color-mix(in srgb, var(--door-accent) 62%, var(--ink));
  box-shadow: 0 28px 65px rgba(23,50,67,.14);
  transform: translateY(-7px);
}
.learning-door::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--door-accent);
}
.learning-door--mofuna { --door-accent: var(--teal); margin-top: 2rem; }
.learning-door--modules { --door-accent: var(--red); }
.learning-door--nara { --door-accent: var(--gold); margin-top: 3.5rem; }
.learning-door__topline,
.learning-door__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(23,50,67,.56);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.learning-door__copy { display: grid; gap: .85rem; }
.learning-door__title {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.learning-door--modules .learning-door__title { font-size: clamp(2.5rem, 3.8vw, 4.5rem); }
.learning-door__summary { max-width: 33rem; color: rgba(23,50,67,.66); font-size: .86rem; line-height: 1.65; }
.learning-door__window {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: auto;
  border: 1px solid rgba(23,50,67,.12);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,.66);
}
.learning-door__window--mofuna {
  background:
    linear-gradient(rgba(255,248,233,.6), rgba(255,248,233,.6)),
    url("./assets/images/mofuna-cozy.webp") center / cover no-repeat;
}
.mini-kana {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(22,138,132,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(23,50,67,.07);
}
.mini-kana b { font-family: "Noto Sans JP", sans-serif; font-size: 1.25rem; font-weight: 500; }
.mini-kana small { color: var(--teal); font-family: var(--mono); font-size: .48rem; }
.learning-door__window--modules {
  align-items: stretch;
  gap: 0;
  min-height: 205px;
  border-radius: .8rem;
  background: var(--ink-deep);
}
.learning-door__window--modules > span {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .5rem;
  color: white;
}
.learning-door__window--modules > span + span { border-left: 1px solid rgba(255,255,255,.12); }
.learning-door__window--modules b { font-family: var(--display); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 500; }
.learning-door__window--modules small { color: var(--teal-soft); font-family: var(--mono); font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
.learning-door__window--nara {
  min-height: 205px;
  background:
    linear-gradient(rgba(255,248,233,.08), rgba(255,248,233,.08)),
    url("./assets/images/nara-scenes-route.webp") center / contain no-repeat,
    #fffaf0;
}
.learning-door__action { justify-content: flex-start; margin-top: .15rem; color: var(--door-accent); }
.learning-door__action > span { font-size: 1rem; transition: transform 220ms ease; }
a.learning-door:hover .learning-door__action > span { transform: translateX(4px); }
.learning-door__action--waiting { color: rgba(23,50,67,.6); }
.learning-door__action--waiting i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(214,170,83,.15); }

.support-band {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 4rem;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  color: white;
  background:
    radial-gradient(circle at 78% 45%, rgba(119,204,195,.14), transparent 28%),
    var(--ink-deep);
}
.support-band h2 { max-width: 47rem; font-size: clamp(3rem, 5vw, 5.7rem); }
.support-band-actions p { max-width: 31rem; margin: 0 0 1.5rem; color: rgba(255,255,255,.62); line-height: 1.75; }
.button-coral {
  min-height: 3.7rem;
  padding-inline: 1.65rem;
  border: 0;
  color: white;
  background: linear-gradient(145deg, #ee7766, var(--red));
  background-image: linear-gradient(145deg, #ee7766, var(--red));
  box-shadow: 0 14px 34px rgba(228,92,75,.24);
  text-shadow: 0 1px rgba(89,24,25,.38);
}

.art-divider {
  position: relative;
  z-index: 2;
  width: min(58rem, calc(100% - 2rem));
  height: clamp(3.2rem, 7vw, 5.5rem);
  margin: clamp(-2.7rem, -4vw, -1.6rem) auto clamp(-2.2rem, -3vw, -1rem);
  background: url("../site-ui/divider-indigo-maple-v1.webp") center / contain no-repeat;
  filter: drop-shadow(0 8px 14px rgba(35,55,75,.08));
  pointer-events: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem clamp(1.2rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.site-footer p { margin: 0; color: rgba(23,50,67,.58); font-size: .72rem; }
.footer-note { justify-self: end; font-family: var(--mono); font-size: .55rem !important; letter-spacing: .1em; text-transform: uppercase; }
.learning-lab-link {
  grid-column: 1 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: rgba(23,50,67,.62);
  font: 700 .58rem/1.4 var(--mono);
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.learning-lab-link__icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  transition: transform 300ms cubic-bezier(.16,1,.3,1);
}
.learning-lab-link:hover,
.learning-lab-link:focus-visible { color: var(--teal); }
.learning-lab-link:hover .learning-lab-link__icon,
.learning-lab-link:focus-visible .learning-lab-link__icon { transform: translateY(-3px) rotate(-8deg); }

[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr minmax(360px, 1.5fr) 1fr; gap: 1rem; }
  .path { flex-direction: column; text-align: center; }
  .path-practice { flex-direction: column; }
  .shelf { grid-template-columns: minmax(190px, .65fr) minmax(470px, 1.35fr); }
  .shelf-intro { max-width: 38rem; }
  .marina-note { grid-column: 1 / -1; min-height: 170px; flex-direction: row-reverse; align-items: end; justify-content: center; border-top: 1px solid rgba(255,255,255,.12); }
  .marina-note-copy { max-width: 25rem; align-self: center; }
  .book { grid-template-columns: 1fr; }
  .book-copy { max-width: 50rem; }
  .book-stage { min-height: 620px; }
  .page-sheet { width: clamp(280px, 43vw, 420px); }
  .learning-deck { grid-template-columns: minmax(230px, .82fr) minmax(350px, 1.18fr); }
  .learning-door--nara { grid-column: 1 / -1; min-height: 390px; margin-top: 0; }
  .learning-door--nara .learning-door__window { min-height: 180px; background-size: 220px auto; }
}

@media (max-width: 760px) {
  .site-header { padding: .95rem 1rem; }
  .site-header__actions { gap: .35rem; }
  .site-language-slot { min-width: 0; }
  .spark-l10n-control { width: 9.75rem; }
  .spark-l10n-control summary { padding-left: 1rem; }
  .spark-l10n-control summary span { display: none; }
  .support-link { padding: .62rem .75rem; font-size: .64rem; }
  .support-link span { display: none; }
  .hero {
    min-height: 900px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    padding: 7.5rem 1rem 1.2rem;
  }
  .hero-copy { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.1rem); }
  .hero-lede { max-width: 27rem; }
  .path { align-self: end; min-width: 0; padding: 0; }
  .path-practice { flex-direction: column; padding-bottom: 0; }
  .path > div:not(.sprite-shell) { max-width: 10rem; }
  .path p { display: none; }
  .sprite-shell-tsuki, .sprite-shell-moko { width: min(38vw, 150px); height: min(38vw, 150px); }
  .hero-shortcut { grid-column: 1 / -1; align-self: end; }
  .section-pad { padding: 4.5rem 1rem; }
  .shelf { grid-template-columns: 1fr; gap: 2rem; }
  .shelf-intro h2 { font-size: clamp(3rem, 14vw, 4.3rem); }
  .shelf-workspace { padding: 1rem; border-radius: 1rem; }
  .lookup-bar { grid-template-columns: 1fr; gap: .55rem; }
  .lookup-status { display: none; }
  .kana-grid { gap: .35rem; }
  .kana-cell { min-height: 66px; }
  .kana-cell b { font-size: 1.35rem; }
  .shelf-actions { grid-template-columns: 1fr; }
  .marina-note { min-height: 205px; flex-direction: row; gap: 0; justify-content: space-between; }
  .marina-note-copy { width: 52%; }
  .marina-note p { font-size: 1rem; }
  .sprite-shell-marina { width: 47vw; height: 47vw; margin-right: -1rem; }
  .mofuna { min-height: 680px; grid-template-columns: 1fr; align-items: end; }
  .mofuna-art::after { background: linear-gradient(180deg, rgba(255,248,233,.08), rgba(255,248,233,.62) 55%, var(--paper) 78%); }
  .mofuna-copy { grid-column: 1; padding-top: 17rem; }
  .mofuna h2 { font-size: clamp(3.2rem, 14vw, 4.5rem); }
  .sound-sample span { width: 4.7rem; height: 4.7rem; }
  .book { gap: 1rem; min-height: 1080px; }
  .book h2 { font-size: clamp(3.1rem, 14vw, 4.6rem); }
  .book-actions { flex-direction: column; align-items: stretch; }
  .book-stage { min-height: 530px; margin-inline: -1rem; }
  .page-sheet { width: min(68vw, 340px); }
  .page-sheet-back { transform: translate(-12%, -53%) rotate(8deg); }
  .page-sheet-mid { transform: translate(-88%, -48%) rotate(-6deg); }
  .page-sheet-front { transform: translate(-52%, -50%) rotate(.8deg); }
  .modules-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .modules h2 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .module-row { grid-template-columns: 2rem 3.4rem 1fr 1.5rem; min-height: 7rem; gap: .6rem; }
  .module-kind { display: none; }
  .module-glyph { font-size: 2.6rem; }
  .module-name b { font-size: 1.2rem; }
  .module-name small { font-size: .68rem; }
  .nara { grid-template-columns: 1fr; min-height: 780px; padding: 4.5rem 1rem; gap: 1rem; }
  .nara-image { min-height: 430px; }
  .nara h2 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .directory-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .learning-directory h2 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .learning-deck { grid-template-columns: 1fr; gap: 1rem; }
  .learning-door,
  .learning-door--nara { min-height: 390px; margin-top: 0; }
  .learning-door--modules { min-height: 430px; }
  .learning-door--modules .learning-door__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .learning-door__window { min-height: 145px; }
  .learning-door__window--modules { min-height: 170px; }
  .learning-door--nara .learning-door__window { min-height: 170px; background-size: 190px auto; }
  .support-band { grid-template-columns: 1fr; gap: 2rem; padding: 4.5rem 1rem; }
  .support-band h2 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .site-footer { grid-template-columns: 1fr auto; padding: 1.5rem 1rem; }
  .site-footer > p:not(.footer-note) { display: none; }
  .learning-lab-link { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* The threshold scene uses the same anchored guide stage as the approved route design. */
.guide-stage {
  position: absolute;
  left: 50%;
  bottom: 3%;
  z-index: 6;
  width: min(82%, 54rem);
  height: 38%;
  transform: translateX(-50%);
}
.actor-track {
  position: absolute;
  bottom: 0;
  width: clamp(8rem, 15vw, 12.5rem);
  aspect-ratio: 1;
}
.actor-track--tsuki { left: 22%; }
.actor-track--moko { left: 60%; width: clamp(6.6rem, 11.5vw, 9.5rem); }
.sprite-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: strict;
  filter: drop-shadow(0 12px 12px rgba(23, 40, 57, .18));
}
.sprite-sheet {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 400% 400%;
  image-rendering: pixelated;
}
#tsukiSprite { background-image: url("./assets/mascots/tsuki-idle-v1.webp"); }
#mokoSprite { background-image: url("./assets/mascots/moko-lop-rabbit-cheer-v1-4x4.webp"); }
.actor-name {
  position: absolute;
  left: 50%;
  bottom: -.1rem;
  z-index: 3;
  padding: .25rem .45rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 254, 249, .84);
  font: 600 .56rem/1.25 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.route-guide {
  position: absolute;
  bottom: 15%;
  z-index: 8;
  width: clamp(10rem, 21vw, 15rem);
  min-height: 4.7rem;
  display: grid;
  align-content: center;
  gap: .1rem;
  border: 0;
  padding: .7rem 1.7rem;
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 40, 57, .2);
  text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.72,.24,1), filter .2s ease;
}
.route-guide strong { font-size: 1.05rem; letter-spacing: .01em; }
.route-guide span {
  font: 600 .58rem/1.35 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .88;
}
.route-guide--practice {
  left: 3.2%;
  justify-items: start;
  padding-left: 2.8rem;
  border-radius: .35rem .8rem .8rem .35rem;
  background: var(--teal);
  clip-path: polygon(0 50%, 16% 0, 100% 0, 100% 100%, 16% 100%);
  text-align: left;
}
.route-guide--journey {
  right: 3.2%;
  justify-items: end;
  padding-right: 2.8rem;
  border-radius: .8rem .35rem .35rem .8rem;
  background: var(--indigo);
  clip-path: polygon(0 0, 84% 0, 100% 50%, 84% 100%, 0 100%);
  text-align: right;
}
.route-guide:hover { filter: saturate(1.08) brightness(1.04); }
.route-guide--practice:hover { transform: translateX(-5px); }
.route-guide--journey:hover { transform: translateX(5px); }
.route-guide[data-opening="true"] { pointer-events: none; filter: saturate(1.08) brightness(1.04); }
.path-status {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 9;
  width: min(34rem, calc(100% - 2rem));
  margin: 0;
  color: rgba(23, 50, 67, .64);
  text-align: center;
  font: 600 .64rem/1.4 var(--mono);
  transform: translateX(-50%);
}
.hero-lede {
  margin-top: .7rem;
  font-family: "Noto Sans JP", var(--sans);
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  line-height: 1.4;
}

.path-gallery {
  position: relative;
  background:
    linear-gradient(135deg, rgba(237,247,245,.84), rgba(255,253,248,.78) 48%, rgba(250,232,226,.8)),
    url("./assets/images/mofuna-cozy.webp") center / cover no-repeat;
  isolation: isolate;
  overflow: hidden;
}
.path-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .38;
  background:
    radial-gradient(circle at 11% 18%, rgba(18,132,124,.24), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(203,96,116,.2), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,.5), transparent 28%, transparent 72%, rgba(255,255,255,.46));
}
.path-gallery__kana {
  position: absolute;
  right: -2.5rem;
  top: -5.8rem;
  z-index: 0;
  color: rgba(18,132,124,.065);
  font-family: var(--display);
  font-size: clamp(17rem, 32vw, 34rem);
  font-weight: 700;
  line-height: 1;
  transform: rotate(7deg);
  pointer-events: none;
  user-select: none;
}
.path-gallery__heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(360px, 1.35fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.path-gallery__heading .eyebrow { margin-bottom: .45rem; }
.path-gallery__heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5.4vw, 6rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}
.path-gallery__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: start;
}
.path-card {
  --card-accent: var(--teal);
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-column: auto;
  grid-template-rows: auto auto 1fr auto;
  gap: .85rem;
  padding: clamp(1.1rem, 2vw, 1.65rem);
  border: 1px solid rgba(23,50,67,.14);
  border-radius: 2rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255,253,248,.78), rgba(244,250,248,.68));
  box-shadow: 0 26px 60px rgba(29,43,58,.13), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(18px) saturate(1.05);
  overflow: hidden;
  transition: transform 320ms cubic-bezier(.2,.72,.24,1), box-shadow 320ms ease, border-color 320ms ease;
}
.path-card::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: -3.7rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 11%, transparent);
  pointer-events: none;
}
.path-card__room-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--room-art) center / cover no-repeat;
  opacity: .12;
  filter: saturate(1.04) contrast(.94);
  pointer-events: none;
}
.path-card--shelf { --card-accent: var(--coral); }
.path-card--modules { --card-accent: var(--indigo); }
.path-card--nara { --card-accent: var(--gold); }
.path-card:hover,
.path-card:has(.path-card__click:focus-visible) {
  border-color: color-mix(in srgb, var(--card-accent) 58%, var(--ink));
  box-shadow: 0 30px 68px rgba(23,50,67,.16), inset 0 1px rgba(255,255,255,.9);
  transform: translateY(-7px);
}
.path-card:has(.path-card__click:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--card-accent) 76%, white);
  outline-offset: 5px;
}
.path-card__click {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
}
.path-card__click:focus-visible { outline: none; }
.path-card__signal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: color-mix(in srgb, var(--card-accent) 76%, var(--ink));
  font: 700 .62rem/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.path-card__signal i {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--red);
  font-style: normal;
}
.path-card__signal i::before {
  content: "";
  width: .42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 .24rem rgba(198,39,54,.09);
}
.path-card__label {
  position: relative;
  z-index: 1;
  min-height: 2.7rem;
  display: flex;
  align-items: end;
  color: rgba(23,50,67,.75);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}
.path-card__art {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 4;
  display: block;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 1.45rem;
  background: #0d2630;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--card-accent) 72%, transparent),
    0 0 18px color-mix(in srgb, var(--card-accent) 30%, transparent),
    0 22px 38px rgba(29,43,58,.17);
  overflow: hidden;
}
.path-card__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: color-mix(in srgb, var(--card-accent) 10%, #f8f3ea);
  transition: transform 700ms cubic-bezier(.2,.72,.24,1), filter 320ms ease;
}
.path-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), inset 0 -34px 54px rgba(7,38,45,.08);
  pointer-events: none;
}
.path-card__scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .14;
  background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,45,49,.18) 50%);
  background-size: 100% 4px;
  box-shadow: inset 0 0 36px rgba(4,39,43,.2);
  pointer-events: none;
}
.path-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #fff;
  background: color-mix(in srgb, var(--card-accent) 68%, rgba(8,35,42,.82));
  backdrop-filter: blur(4px);
  opacity: 0;
  text-align: center;
  font: 700 .72rem/1.6 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity 220ms ease;
}
.path-card:hover .path-card__cover,
.path-card:has(.path-card__click:focus-visible) .path-card__cover { transform: scale(1.025); filter: saturate(1.04); }
.path-card:hover .path-card__overlay,
.path-card:has(.path-card__click:focus-visible) .path-card__overlay { opacity: 1; }
.path-card__cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--card-accent);
  font-size: .78rem;
  letter-spacing: .02em;
}
.path-card__cta span { font-size: 1.05rem; transition: transform 220ms ease; }
.path-card:hover .path-card__cta span,
.path-card:has(.path-card__click:focus-visible) .path-card__cta span { transform: translateX(4px); }

@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(250px, .72fr) minmax(360px, 1.28fr); }
  .hero-copy { justify-self: center; }
  .guide-stage { width: 72%; height: 34%; }
  .actor-track--tsuki { left: 10%; }
  .actor-track--moko { left: 58%; }
  .route-guide { bottom: 4%; }
  .route-guide--practice { left: 2%; }
  .route-guide--journey { right: 2%; }
}

@media (max-width: 1180px) {
  .path-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero {
    min-height: 52rem;
    display: block;
    padding: 6.8rem 1rem 1rem;
  }
  .hero-copy { width: min(30rem, 100%); margin-inline: auto; }
  .hero .eyebrow { margin-bottom: .65rem; }
  .hero-lede { margin-top: 1rem; font-family: "Noto Sans JP", var(--sans); font-size: .9rem; }
  .guide-stage { bottom: 14%; width: 92%; height: 31%; }
  .actor-track { width: clamp(7.5rem, 35vw, 10rem); }
  .actor-track--tsuki { left: 3%; }
  .actor-track--moko { left: 56%; width: clamp(6.25rem, 28vw, 8.25rem); }
  .route-guide { bottom: 4.5%; width: 47%; min-height: 4.25rem; padding: .6rem 1.25rem; }
  .route-guide strong { font-size: .9rem; }
  .route-guide span { font-size: .49rem; }
  .route-guide--practice { left: 1%; }
  .route-guide--journey { right: 1%; }
  .path-status { bottom: .25rem; font-size: .51rem; }
  .path-gallery__heading { grid-template-columns: 1fr; gap: .7rem; }
  .path-gallery__heading h2 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .path-gallery__grid { display: grid; grid-template-columns: 1fr; }
  .path-card,
  .path-card--mofuna,
  .path-card--shelf,
  .path-card--modules,
  .path-card--nara { grid-column: 1; min-height: 0; }
  .path-card__label { min-height: auto; }
  .path-card__art { min-height: 0; }
  .hero-tategaki {
    top: 7rem;
    right: .8rem;
    left: auto;
    font-size: 14px;
    letter-spacing: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-guide:hover,
  .path-card:hover,
  .path-card:has(.path-card__click:focus-visible),
  .path-card:hover .path-card__cover,
  .path-card:has(.path-card__click:focus-visible) .path-card__cover { transform: none; }
  .path-card__overlay { transition: none; }
}

/* Quiet curriculum choices and the Web Modules-inspired WAAPI sprite stack. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.guide-stage { bottom: 17%; height: 36%; }
.actor-track::before {
  content: "";
  position: absolute;
  inset: 15%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,204,195,.2), transparent 69%);
  filter: blur(9px);
  animation: guide-halo-breathe 6.2s ease-in-out infinite;
}
.actor-track--moko::before {
  background: radial-gradient(circle, rgba(214,170,83,.2), rgba(70,89,154,.07) 48%, transparent 70%);
  animation-delay: -3.1s;
}
.sprite-sheet {
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.sprite-facing,
.sprite-motion,
.sprite-film {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.sprite-facing {
  transform: scaleX(var(--sprite-facing, 1));
  transform-origin: 50% 96%;
}
.actor-track--moko .sprite-facing { --sprite-facing: -1; }
.sprite-motion { transform-origin: 50% 96%; }
.sprite-film {
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: 0 0;
  image-rendering: pixelated;
  opacity: 0;
  transition: none;
  will-change: opacity;
}
.route-story {
  --story-accent: var(--teal);
  position: absolute;
  left: 40.2%;
  bottom: 1.2rem;
  z-index: 9;
  width: clamp(12rem, 18vw, 16rem);
  display: grid;
  gap: .26rem;
  padding: .72rem .85rem .2rem;
  border-top: 1px solid color-mix(in srgb, var(--story-accent) 58%, transparent);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,253,247,.46), transparent);
  text-align: center;
  text-decoration: none;
  transform: translateX(-50%);
  transition: border-color 220ms ease, background 220ms ease;
}
.route-story--journey { --story-accent: var(--indigo); left: 61.2%; }
.route-story__kicker {
  color: var(--story-accent);
  font: 600 .55rem/1.35 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.route-story strong {
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  font-weight: 600;
  line-height: 1.08;
}
.route-story__copy {
  color: rgba(23,50,67,.68);
  font-size: .7rem;
  line-height: 1.45;
}
.route-story:hover,
.route-story:focus-visible {
  border-top-color: var(--story-accent);
  background: linear-gradient(180deg, rgba(255,253,247,.78), transparent);
  outline: none;
}
.route-story:focus-visible { box-shadow: 0 -3px 0 rgba(255,253,247,.9); }
.route-story[data-opening="true"] { pointer-events: none; border-top-color: var(--story-accent); }

@keyframes guide-halo-breathe {
  0%, 100% { opacity: .48; transform: scale(.96); }
  50% { opacity: .88; transform: scale(1.035); }
}

@media (max-width: 1040px) {
  .guide-stage { bottom: 18%; }
  .route-story--practice { left: 29%; }
  .route-story--journey { left: 60%; }
}

@media (max-width: 760px) {
  .hero { min-height: 54rem; }
  .guide-stage { bottom: 10rem; width: 92%; height: 31%; }
  .route-story {
    left: 1rem;
    bottom: 1rem;
    width: calc(50% - 1.3rem);
    min-height: 8.7rem;
    align-content: start;
    padding: .65rem .35rem 0;
    transform: none;
  }
  .route-story--journey { right: 1rem; left: auto; }
  .route-story strong { font-size: clamp(1.02rem, 5vw, 1.25rem); }
  .route-story__copy { font-size: .64rem; line-height: 1.4; }
  .route-story__kicker { font-size: .48rem; }
}

@media (prefers-reduced-motion: reduce) {
  .actor-track::before { animation: none; }
}

/* Hero learning channels and the five-state introduction stage. */
.hero {
  min-height: 100svh;
  overflow: hidden;
}

.guide-stage {
  bottom: calc(12.8% + 5rem);
  height: 35%;
}

.route-story {
  bottom: 12.8%;
  width: clamp(11.5rem, 17vw, 15rem);
  min-height: 4.8rem;
  align-content: start;
  padding: .5rem .75rem .35rem;
  border-top-color: color-mix(in srgb, var(--story-accent) 52%, transparent);
  background: linear-gradient(180deg, rgba(255,253,247,.66), rgba(255,253,247,.08));
  pointer-events: none;
}

.route-story--practice { left: 40.2%; }
.route-story--journey { left: 61.2%; }
.route-story__kicker { font-size: .5rem; }
.route-story strong { font-size: clamp(1.05rem, 1.45vw, 1.35rem); }
.route-story strong { white-space: nowrap; }
.route-story__copy { font-size: .64rem; line-height: 1.36; }

.hero-channels {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 1.05rem;
  width: min(70rem, calc(100% - 3rem));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  transform: translateX(-50%);
}

.hero-channel {
  --channel-accent: #187f78;
  position: relative;
  min-width: 0;
  min-height: 5rem;
  display: block;
  overflow: hidden;
  padding: .82rem .7rem .68rem 45%;
  border: 1px solid rgba(30,69,79,.15);
  border-radius: .82rem;
  color: var(--ink);
  background: rgba(255,253,248,.83);
  box-shadow: 0 10px 28px rgba(32,59,67,.1), inset 0 1px rgba(255,255,255,.84);
  backdrop-filter: blur(13px) saturate(1.1);
  text-align: left;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform 240ms cubic-bezier(.2,.75,.24,1), border-color 200ms ease, box-shadow 240ms ease, background 200ms ease;
}
.hero-channel--shelf { --channel-accent: #bb6652; }
.hero-channel--modules { --channel-accent: #5369a2; }
.hero-channel--nara { --channel-accent: #9b722e; }
.hero-channel::after {
  content: "";
  position: absolute;
  inset: auto .8rem 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--channel-accent);
  opacity: .55;
}
.hero-channel:hover,
.hero-channel:focus-visible,
.hero-channel[aria-pressed="true"] {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--channel-accent) 58%, transparent);
  background: rgba(255,255,252,.94);
  box-shadow: 0 19px 34px rgba(32,59,67,.2), inset 0 1px rgba(255,255,255,.92);
  outline: none;
}
.hero-channel:focus-visible { box-shadow: 0 0 0 3px rgba(255,253,248,.9), 0 0 0 5px var(--channel-accent); }
.hero-channel__art {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  overflow: hidden;
  background: color-mix(in srgb, var(--channel-accent) 18%, #f8f4e9);
}
.hero-channel__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 35%, rgba(255,253,248,.94) 100%);
  pointer-events: none;
}
.hero-channel__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(.88) contrast(.98);
  transition: transform 420ms cubic-bezier(.2,.75,.24,1), filter 240ms ease;
}
.hero-channel:hover .hero-channel__art img,
.hero-channel:focus-visible .hero-channel__art img,
.hero-channel[aria-pressed="true"] .hero-channel__art img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1);
}
.hero-channel__mark {
  position: absolute;
  z-index: 2;
  left: .45rem;
  bottom: .42rem;
  width: 2.25rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  color: color-mix(in srgb, var(--channel-accent) 84%, #5d2330);
  background: url("../site-ui/badge-plum-washi-v1.webp") center / contain no-repeat;
  font: 700 .8rem/1 var(--display);
  text-shadow: 0 1px rgba(255,255,255,.82);
  filter: drop-shadow(0 4px 7px rgba(20,46,54,.2));
}
.hero-channel__name {
  display: block;
  overflow: hidden;
  font: 700 .82rem/1.15 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-channel__purpose {
  display: block;
  margin-top: .28rem;
  color: color-mix(in srgb, var(--channel-accent) 78%, var(--ink));
  font: 600 .54rem/1.35 var(--mono);
  letter-spacing: .01em;
}

.channel-stage {
  position: relative;
  scroll-margin-top: 4.5rem;
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 8% 8%, rgba(126,196,190,.17), transparent 25rem),
    linear-gradient(180deg, #f7f9f5 0%, #edf3f1 100%);
}
.channel-stage__topline {
  width: min(76rem, calc(100% - 3rem));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 1.25rem;
}
.channel-stage__topline h2 {
  max-width: 19ch;
  margin: 0;
  font: 600 clamp(2.2rem, 4.4vw, 4.5rem)/.96 var(--display);
  letter-spacing: -.045em;
}
.channel-switcher {
  display: flex;
  gap: .4rem;
  padding: .35rem;
  border: 1px solid rgba(30,69,79,.14);
  border-radius: 999px;
  background: rgba(255,255,252,.62);
  backdrop-filter: blur(12px);
}
.channel-switcher button {
  min-width: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  padding: .6rem .72rem;
  border: 0;
  border-radius: 999px;
  color: rgba(23,50,67,.68);
  background: transparent;
  font: 700 .68rem/1 var(--sans);
  cursor: pointer;
}
.channel-switcher button span { font-size: .62rem; }
.channel-switcher button:hover,
.channel-switcher button:focus-visible,
.channel-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  outline: none;
}

.channel-views {
  width: min(76rem, calc(100% - 3rem));
  min-height: clamp(34rem, 59vw, 43rem);
  margin: 0 auto;
}
.channel-view {
  --view-accent: #207f78;
  --view-soft: #dcefeb;
  min-height: clamp(34rem, 59vw, 43rem);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  overflow: hidden;
  border: 1px solid rgba(30,69,79,.15);
  border-radius: clamp(1.4rem, 2.6vw, 2.5rem);
  background: rgba(255,255,252,.84);
  box-shadow: 0 30px 75px rgba(27,58,67,.14), inset 0 1px rgba(255,255,255,.88);
}
.channel-view[hidden] { display: none; }
.channel-view--shelf { --view-accent: #b7604f; --view-soft: #f2ded4; }
.channel-view--modules { --view-accent: #5369a2; --view-soft: #e0e5f4; }
.channel-view--nara { --view-accent: #9b722e; --view-soft: #efe5c9; }
.channel-view__art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--view-soft);
}
.channel-view__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--view-accent) 35%, transparent));
  mix-blend-mode: multiply;
  opacity: .28;
  pointer-events: none;
}
.channel-view__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(.98);
}
.channel-view__kanji {
  position: absolute;
  right: 1.4rem;
  bottom: -.12em;
  z-index: 2;
  color: rgba(255,255,255,.74);
  font: 600 clamp(6rem, 13vw, 11rem)/1 var(--display);
  text-shadow: 0 8px 32px rgba(13,43,52,.2);
}
.channel-view__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 100% 0, var(--view-soft), transparent 44%),
    rgba(255,255,252,.9);
}
.channel-view__copy::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3.4rem;
  height: 3.4rem;
  border-top: 1px solid var(--view-accent);
  border-right: 1px solid var(--view-accent);
  opacity: .45;
}
.channel-view__index {
  margin-bottom: clamp(2rem, 4vw, 4.6rem);
  color: var(--view-accent);
  font: 600 .58rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.channel-view__copy .eyebrow { color: var(--view-accent); }
.channel-view h3 {
  margin: .55rem 0 1.25rem;
  color: var(--ink);
  font: 600 clamp(2.8rem, 5vw, 5.2rem)/.91 var(--display);
  letter-spacing: -.052em;
}
.channel-view h3 em { color: var(--view-accent); font-weight: 500; }
.channel-view__copy > p:not(.eyebrow) {
  max-width: 40rem;
  margin: 0;
  color: rgba(23,50,67,.74);
  font-size: clamp(.9rem, 1.25vw, 1.05rem);
  line-height: 1.72;
}
.channel-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.6rem 0 1.7rem;
  padding: 0;
  list-style: none;
}
.channel-facts li {
  padding: .45rem .64rem;
  border: 1px solid color-mix(in srgb, var(--view-accent) 24%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--view-accent) 82%, var(--ink));
  background: color-mix(in srgb, var(--view-soft) 48%, white);
  font: 600 .56rem/1 var(--mono);
  letter-spacing: .04em;
}
.channel-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.55rem;
  padding: .9rem 1.45rem;
  border-radius: .65rem;
  color: #fff;
  background:
    linear-gradient(rgba(31,61,78,.08), rgba(31,61,78,.08)),
    url("../site-ui/button-indigo-celadon-v1.webp") center / 100% 100% no-repeat;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--view-accent) 24%, transparent);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.channel-cta:hover,
.channel-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 30px color-mix(in srgb, var(--view-accent) 32%, transparent); outline: none; }
.channel-cta:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--view-accent); }
.channel-cta[aria-disabled="true"] { opacity: .58; filter: saturate(.55); pointer-events: none; }

.channel-view--default {
  grid-template-columns: 1fr 1fr;
  padding: clamp(2.4rem, 6vw, 6.5rem);
  background:
    radial-gradient(circle at 18% 22%, rgba(118,196,188,.2), transparent 20rem),
    radial-gradient(circle at 84% 78%, rgba(216,174,91,.18), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,252,.94), rgba(235,243,241,.9));
}
.channel-view__default-copy { align-self: center; max-width: 35rem; }
.channel-view__default-copy h3 { margin-top: .55rem; }
.channel-view__default-copy > p:last-child { max-width: 34rem; color: rgba(23,50,67,.72); line-height: 1.75; }
.channel-default-glyphs {
  display: grid;
  grid-template-columns: repeat(2, minmax(6rem, 9rem));
  gap: .8rem;
  align-self: center;
  justify-content: center;
  padding-left: clamp(1rem, 4vw, 4rem);
  transform: rotate(-3deg);
}
.channel-default-glyphs span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30,69,79,.12);
  border-radius: 1rem;
  color: rgba(23,50,67,.78);
  background: rgba(255,255,252,.58);
  box-shadow: 0 14px 24px rgba(27,58,67,.08), inset 0 1px rgba(255,255,255,.8);
  font: 600 clamp(2.4rem, 5vw, 4.4rem)/1 var(--display);
  backdrop-filter: blur(9px);
}
.channel-default-glyphs span:nth-child(1) { color: #187f78; transform: translateY(.35rem); }
.channel-default-glyphs span:nth-child(2) { color: #bb6652; transform: translateX(.25rem); }
.channel-default-glyphs span:nth-child(3) { color: #5369a2; transform: translateX(-.2rem); }
.channel-default-glyphs span:nth-child(4) { color: #9b722e; transform: translateY(-.25rem); }
.channel-choice-list {
  display: grid;
  gap: .65rem;
  align-self: center;
  padding-left: clamp(1rem, 4vw, 4rem);
}
.channel-choice-list button {
  --choice-accent: #187f78;
  display: grid;
  grid-template-columns: minmax(6.8rem, .72fr) 1.28fr;
  gap: 1rem;
  align-items: center;
  min-height: 4.25rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(30,69,79,.14);
  border-left: 3px solid var(--choice-accent);
  border-radius: .65rem;
  color: var(--ink);
  background: rgba(255,255,252,.72);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.channel-choice-list button:nth-child(2) { --choice-accent: #bb6652; }
.channel-choice-list button:nth-child(3) { --choice-accent: #5369a2; }
.channel-choice-list button:nth-child(4) { --choice-accent: #9b722e; }
.channel-choice-list button:hover,
.channel-choice-list button:focus-visible {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--choice-accent) 55%, transparent);
  background: #fff;
  outline: none;
}
.channel-choice-list button:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--choice-accent) 24%, transparent); }
.channel-choice-list b { font-size: .78rem; }
.channel-choice-list span { color: rgba(23,50,67,.68); font-size: .72rem; line-height: 1.35; }
.channel-compass {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-self: center;
  padding-left: clamp(1rem, 4vw, 4rem);
}
.channel-compass__line {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,69,79,.18), transparent);
}
.channel-compass > span:not(.channel-compass__line) {
  position: relative;
  min-height: 8.5rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .5rem;
  border: 1px solid rgba(30,69,79,.13);
  border-radius: 50%;
  background: rgba(255,255,252,.56);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
}
.channel-compass b { font: 600 2.3rem/1 var(--display); }
.channel-compass small { color: rgba(23,50,67,.55); font: 600 .53rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 1040px) {
  .guide-stage { bottom: calc(12.8% + 5rem); }
  .route-story--practice { left: 30%; }
  .route-story--journey { left: 61%; }
  .hero-channel { padding-right: .5rem; padding-left: 44%; }
  .channel-switcher button span { display: none; }
}

@media (max-width: 760px) {
  .hero { min-height: 100svh; padding-top: 6.4rem; }
  .guide-stage { bottom: 15.15rem; width: 94%; height: 29%; }
  .route-story {
    bottom: 9.1rem;
    width: calc(50% - 1.4rem);
    min-height: 6.4rem;
    padding: .55rem .4rem .3rem;
    transform: none;
  }
  .route-story--practice { left: 1rem; }
  .route-story--journey { right: 1rem; left: auto; }
  .route-story strong { font-size: 1.08rem; }
  .route-story__copy { font-size: .6rem; }
  .hero-channels {
    bottom: .8rem;
    width: calc(100% - 2rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .48rem;
  }
  .hero-channel { min-height: 4rem; padding: .58rem .45rem .48rem 46%; border-radius: .72rem; }
  .hero-channel__art { width: 43%; }
  .hero-channel__mark { left: .34rem; bottom: .3rem; width: 1.45rem; font-size: .66rem; }
  .hero-channel__name { font-size: .69rem; }
  .hero-channel__purpose { margin-top: .2rem; font-size: .4rem; line-height: 1.25; }
  .channel-stage__topline { width: calc(100% - 2rem); display: block; }
  .channel-stage__topline h2 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .channel-switcher { width: fit-content; margin-top: 1.2rem; }
  .channel-views { width: calc(100% - 2rem); min-height: 0; }
  .channel-view,
  .channel-view--default { min-height: 0; grid-template-columns: 1fr; }
  .channel-view__art { min-height: 22rem; }
  .channel-view__copy { padding: 2rem 1.5rem 2.4rem; }
  .channel-view__index { margin-bottom: 2.4rem; }
  .channel-view h3 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .channel-view--default { padding: 2.2rem 1.4rem; }
  .channel-choice-list { padding: 2rem 0 0; }
  .channel-choice-list button { grid-template-columns: 1fr; gap: .25rem; }
  .channel-compass { padding: 2rem 0 0; }
  .channel-compass > span:not(.channel-compass__line) { min-height: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-channel,
  .hero-channel__art img,
  .channel-cta { transition: none; }
  .hero-channel:hover,
  .hero-channel:focus-visible,
  .hero-channel[aria-pressed="true"],
  .channel-cta:hover,
  .channel-cta:focus-visible { transform: none; }
  .hero-channel:hover .hero-channel__art img,
  .hero-channel:focus-visible .hero-channel__art img,
  .hero-channel[aria-pressed="true"] .hero-channel__art img { transform: none; }
}

/* Dojo-inspired learning desk: one clear choice, one clear explanation. */
.channel-stage {
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(4.5rem, 7vw, 7.5rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 14% 12%, rgba(167,255,243,.34), transparent 29rem),
    radial-gradient(circle at 88% 22%, rgba(220,111,95,.14), transparent 27rem),
    linear-gradient(135deg, #fff9f0, #edf7f4 54%, #f6eff7);
}
.channel-stage__aurora,
.channel-stage__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.channel-stage__aurora {
  inset: -15%;
  background:
    radial-gradient(circle at 22% 30%, rgba(0,143,138,.2), transparent 22rem),
    radial-gradient(circle at 78% 24%, rgba(216,162,66,.18), transparent 20rem),
    radial-gradient(circle at 62% 82%, rgba(83,105,162,.13), transparent 24rem);
  filter: blur(24px);
}
.channel-stage__grid {
  background:
    linear-gradient(90deg, rgba(48,57,113,.045) 1px, transparent 1px),
    linear-gradient(rgba(48,57,113,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.channel-stage__shell {
  width: min(76rem, calc(100% - 3rem));
  margin-inline: auto;
}
.channel-stage__topline {
  width: 100%;
  display: block;
  margin: 0 0 1.6rem;
}
.channel-stage__topline .eyebrow { margin-bottom: .7rem; color: #008f8a; }
.channel-stage__topline h2 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: .94;
}
.channel-stage__topline > p:last-child {
  max-width: 43rem;
  margin: 1rem 0 0;
  color: rgba(37,33,31,.66);
  font-size: clamp(.92rem, 1.25vw, 1.06rem);
  line-height: 1.65;
}
.channel-workbench {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(18rem, .82fr) minmax(0, 1.48fr);
  gap: 1.1rem;
  align-items: stretch;
}
.channel-workbench::before {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}
.channel-workbench::before {
  top: -1.6rem;
  left: -11.5rem;
  width: clamp(24rem, 42vw, 39rem);
  aspect-ratio: 1665 / 944;
  background: url("../site-ui/decor-maple-canopy-v2.webp") left top / contain no-repeat;
  opacity: .55;
}
.channel-picker,
.channel-views {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: .75rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,.7), rgba(255,255,255,.34)),
    rgba(255,255,255,.28);
  box-shadow: 0 24px 80px rgba(37,33,31,.14);
  backdrop-filter: blur(24px) saturate(1.18);
}
.channel-picker {
  min-height: 38rem;
  padding: 1rem;
  overflow: hidden;
}
.channel-picker::before,
.channel-views::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(130deg, rgba(255,255,255,.48), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(167,255,243,.22), transparent 20rem);
  content: "";
  pointer-events: none;
}
.channel-views::before { z-index: 0; }
.channel-views::after {
  position: absolute;
  z-index: 0;
  right: -2.8rem;
  bottom: -1.8rem;
  width: clamp(15rem, 25vw, 23rem);
  aspect-ratio: 1023 / 1537;
  background: url("../site-ui/decor-bamboo-grove-v2.webp") right bottom / contain no-repeat;
  content: "";
  opacity: .82;
  pointer-events: none;
}
.channel-picker__heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .25rem 1rem;
  border-bottom: 1px solid rgba(37,33,31,.12);
}
.channel-picker__heading span {
  color: #25211f;
  font: 700 .78rem/1 var(--sans);
}
.channel-picker__heading small {
  color: #008f8a;
  font: 700 .55rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.channel-switcher {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .7rem;
  margin-top: .85rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.channel-switcher button {
  --picker-accent: #008f8a;
  min-width: 0;
  min-height: 7.2rem;
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  justify-content: stretch;
  padding: .7rem .72rem;
  overflow: hidden;
  border: 1px solid rgba(37,33,31,.14);
  border-radius: .55rem;
  color: #25211f;
  background:
    repeating-linear-gradient(0deg, rgba(0,143,138,.06) 0 1px, transparent 1px 26px),
    rgba(255,255,255,.58);
  box-shadow: 0 12px 24px rgba(37,33,31,.07);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 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:hover,
.channel-switcher button:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--picker-accent) 58%, transparent);
  box-shadow: 0 18px 30px rgba(37,33,31,.12);
  outline: none;
}
.channel-switcher button[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 75% 12%, rgba(167,255,243,.2), transparent 44%),
    linear-gradient(135deg, #303971, var(--picker-accent));
  box-shadow: 0 18px 34px color-mix(in srgb, var(--picker-accent) 24%, transparent);
}
.channel-switcher__thumb {
  display: block !important;
  width: 5.4rem;
  height: 5.75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: .42rem;
  background: #edf7f4;
  box-shadow: 0 8px 18px rgba(37,33,31,.12);
}
.channel-switcher__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(.88) contrast(.98);
  transition: transform 260ms ease, filter 180ms ease;
}
.channel-switcher button:hover .channel-switcher__thumb img,
.channel-switcher button:focus-visible .channel-switcher__thumb img,
.channel-switcher button[aria-pressed="true"] .channel-switcher__thumb img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1);
}
.channel-switcher__copy {
  display: grid !important;
  gap: .38rem;
  min-width: 0;
}
.channel-switcher__copy strong {
  overflow: hidden;
  font-size: .82rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-switcher__copy small {
  display: block !important;
  color: rgba(37,33,31,.64);
  font: 600 .58rem/1.45 var(--mono);
}
.channel-switcher button[aria-pressed="true"] .channel-switcher__copy small { color: rgba(255,255,255,.78); }
.channel-switcher__arrow {
  display: block !important;
  color: var(--picker-accent);
  font-size: 1rem;
  transition: transform 180ms ease;
}
.channel-switcher button:hover .channel-switcher__arrow,
.channel-switcher button:focus-visible .channel-switcher__arrow { transform: translateX(3px); }
.channel-switcher button[aria-pressed="true"] .channel-switcher__arrow { color: #fff; }

.channel-views {
  width: auto;
  min-height: 38rem;
  margin: 0;
  overflow: hidden;
}
.channel-view,
.channel-view--default {
  position: relative;
  z-index: 1;
  min-height: 38rem;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  padding: 0;
  border: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, rgba(0,143,138,.065) 0 1px, transparent 1px 31px),
    linear-gradient(90deg, transparent 0 2.2rem, rgba(220,111,95,.14) 2.2rem calc(2.2rem + 1px), transparent calc(2.2rem + 1px)),
    rgba(255,250,241,.72);
  box-shadow: none;
}
.channel-view__art {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-height: 38rem;
  margin: 1rem 1rem 1rem 0;
  border: 1px solid rgba(0,143,138,.2);
  border-radius: .55rem;
  background: linear-gradient(145deg, #f7fbfa, #eaf4f3);
  box-shadow: inset 0 0 24px rgba(0,143,138,.1), 0 18px 36px rgba(37,33,31,.1);
}
.channel-view__art::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,.08) 50%);
  background-size: 100% 4px;
  content: "";
  opacity: .2;
  pointer-events: none;
}
.channel-view__copy {
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  padding: clamp(2.2rem, 4vw, 3.8rem);
  background: transparent;
}
.channel-view__art::after { display: none; }
.channel-view__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  filter: none;
}
.channel-view__copy::before { top: 1.6rem; right: 1.6rem; }
.channel-view h3 { font-size: clamp(2.7rem, 4.5vw, 4.7rem); }
.channel-view__copy > p:not(.eyebrow) { color: rgba(37,33,31,.69); }
.channel-view--default {
  padding: clamp(2rem, 4.5vw, 4rem);
  background:
    repeating-linear-gradient(0deg, rgba(0,143,138,.065) 0 1px, transparent 1px 31px),
    linear-gradient(90deg, transparent 0 2.2rem, rgba(220,111,95,.14) 2.2rem calc(2.2rem + 1px), transparent calc(2.2rem + 1px)),
    rgba(255,250,241,.72);
}
.channel-view__default-copy { padding-left: .7rem; }

@media (max-width: 960px) {
  .channel-workbench { grid-template-columns: 1fr; }
  .channel-picker { min-height: 0; }
  .channel-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-switcher button { min-height: 6.5rem; grid-template-columns: 4.7rem minmax(0,1fr) auto; }
  .channel-switcher__thumb { width: 4.7rem; height: 5rem; }
}

@media (max-width: 620px) {
  .site-header .support-link { display: none; }
  .channel-stage__shell { width: calc(100% - 1.25rem); }
  .channel-stage__topline h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .channel-switcher { grid-template-columns: 1fr; }
  .channel-switcher button { min-height: 5.8rem; grid-template-columns: 4.25rem minmax(0,1fr) auto; }
  .channel-switcher__thumb { width: 4.25rem; height: 4.6rem; }
  .channel-views,
  .channel-view,
  .channel-view--default { min-height: 0; }
  .channel-view,
  .channel-view--default { grid-template-columns: 1fr; }
  .channel-view__art {
    grid-column: 1;
    grid-row: auto;
    min-height: 19rem;
    margin: .7rem .7rem 0;
  }
  .channel-view__copy { grid-column: 1; grid-row: auto; }
  .channel-view__copy { padding: 2.2rem 1.5rem 2.5rem; }
  .channel-view--default { padding: 2.4rem 1.35rem; }
  .channel-default-glyphs { padding: 1rem 0 0; transform: rotate(-2deg); }
  .channel-workbench::before {
    top: -.8rem;
    left: -7rem;
    width: min(28rem, 95vw);
    opacity: .45;
  }
  .channel-views::after {
    right: -2.4rem;
    bottom: -1.4rem;
    width: min(17rem, 64vw);
    opacity: .72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-switcher button,
  .channel-switcher__thumb img,
  .channel-switcher__arrow { transition: none; }
  .channel-switcher button:hover,
  .channel-switcher button:focus-visible,
  .channel-switcher button:hover .channel-switcher__thumb img,
  .channel-switcher button:focus-visible .channel-switcher__thumb img,
  .channel-switcher button[aria-pressed="true"] .channel-switcher__thumb img,
  .channel-switcher button:hover .channel-switcher__arrow,
  .channel-switcher button:focus-visible .channel-switcher__arrow { transform: none; }
}

/* Soft landing transitions and the secondary Dojo route. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(7rem, 15vw, 13rem);
  background:
    linear-gradient(180deg,
      rgba(237,247,245,0) 0%,
      rgba(232,247,247,.48) 44%,
      rgba(255,249,240,.94) 100%);
  pointer-events: none;
}

.channel-stage {
  margin-top: -1px;
}

.channel-stage::before,
.channel-stage::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.channel-stage::before {
  top: 0;
  height: clamp(5rem, 11vw, 9rem);
  background:
    linear-gradient(180deg,
      rgba(255,249,240,.96) 0%,
      rgba(239,249,246,.48) 58%,
      rgba(239,249,246,0) 100%);
}

.channel-stage::after {
  bottom: 0;
  height: clamp(7rem, 13vw, 12rem);
  background:
    linear-gradient(180deg,
      rgba(255,249,240,0) 0%,
      rgba(255,253,247,.64) 58%,
      rgba(255,249,239,.98) 100%);
}

.channel-stage__shell {
  position: relative;
  z-index: 1;
}

.channel-stage__topline { display: block; }

.channel-stage__topline > div > p:last-child {
  max-width: 43rem;
  margin: 1rem 0 0;
  color: rgba(37,33,31,.66);
  font-size: clamp(.92rem, 1.25vw, 1.06rem);
  line-height: 1.65;
}

.book {
  position: relative;
  border-top: 0;
}

.book::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: clamp(4rem, 9vw, 8rem);
  background: linear-gradient(180deg, rgba(255,249,239,.78), rgba(255,249,239,0));
  pointer-events: none;
}

.book > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .channel-stage__topline { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .learning-lab-link,
  .learning-lab-link__icon {
    transition: none;
  }

  .learning-lab-link:hover .learning-lab-link__icon,
  .learning-lab-link:focus-visible .learning-lab-link__icon {
    transform: none;
  }
}
