/* Locally hosted brush lettering: Latin and body copy retain their original fonts. */
@font-face {
  font-family: "Ma Shan Zheng";
  src: url('../fonts/MaShanZheng-Chen.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+9648;
}

/* A calmer editorial language for every public-facing page. */
:root {
  --paper: #faf7f0;
  --paper2: #f1ece3;
  --brown: #302b27;
  --green: #34493d;
  --muted: #6c665e;
  --gold: #ad977b;
  --line: #e1d8ca;
  --accent: #a35e43;
  --brush: "Libian SC", "STLibian", "LiSu", "STKaiti", "Kaiti SC", serif;
}

body {
  background: var(--paper);
  color: var(--brown);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--brush);
  font-synthesis: none;
}

.header nav a {
  font-family: var(--brush);
  font-weight: 400;
  font-synthesis: none;
}

html:lang(zh) .header nav a {
  font-size: 18px;
}

.footer-top h3 {
  font-family: var(--brush);
  font-size: 18px;
}

.header {
  height: 86px;
  padding-inline: clamp(28px, 4vw, 64px);
  background: #f8f4ec;
  border-color: #e8dfd2;
}

.header nav {
  gap: clamp(12px, 1.5vw, 22px);
  font-size: 15px;
}

.header nav a {
  transition: color .2s ease;
}

.header nav a:hover,
.header nav a[aria-current] {
  color: var(--accent);
}

.header nav a[aria-current]:after {
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.home-page .header nav a[aria-current="location"]:after {
  left: 50%;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.brand b {
  font-family: var(--brush);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 5px;
}

.brand small {
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--muted);
}

.brand-seal {
  background: #934e3d;
  border-color: #934e3d;
  outline-color: #934e3d;
}

.button {
  border-radius: 999px;
  padding-inline: 27px;
  background: var(--brown);
  border-color: var(--brown);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--green);
  box-shadow: 0 7px 18px rgba(48, 43, 39, .12);
}

.button.outline {
  border-color: #cfc5b7;
}

.button.outline:hover {
  color: var(--paper);
  border-color: var(--green);
}

.button.light {
  border-color: var(--paper);
}

.header-book {
  background: transparent;
  color: var(--brown);
  border-color: #d7cdbf;
  min-height: 45px;
}

.header-book:hover {
  color: #fff;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .2em;
}

.hero {
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(48px, 5.5vw, 90px);
  padding-top: 38px;
  padding-bottom: 55px;
}

.hero-copy>.eyebrow::before,
.page-intro>.eyebrow::before,
.courses-overview-intro .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--brush);
  font-size: clamp(3.4rem, 5vw, 5.4rem);
  line-height: 1.34;
  letter-spacing: .045em;
}

.hero h1 span {
  color: var(--brown);
}

.hero-intro {
  color: #514c46;
  font-size: 17px;
  line-height: 1.95;
}

.hero-image {
  height: min(610px, 49vw);
  min-height: 505px;
  border-radius: 25px;
  overflow: hidden;
}

.hero-image img {
  object-position: 48% center;
}

.hero-image:after {
  background: linear-gradient(0deg, rgba(29, 30, 26, .48), transparent 35%);
}

.image-label {
  right: auto;
  left: -1px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 0 15px 15px 0;
  padding: 14px 8px;
  background: var(--paper);
  font-size: 16px;
}

.hero-foot {
  margin-top: 37px;
}

.intro-strip {
  border-color: var(--line);
  padding-block: 29px;
}

.intro-strip b {
  color: var(--accent);
}

.intro-strip a,
.text-link {
  color: var(--accent);
}

.section {
  padding-top: 105px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2,
.story-slice h2,
.open-learning h2,
.heritage-band h2,
.booking-section h2 {
  font-family: var(--brush);
  letter-spacing: .015em;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-head .muted {
  margin-top: 12px;
}

.story-slice {
  gap: clamp(55px, 7vw, 105px);
}

.story-slice figure {
  height: 520px;
}

.story-slice figure img {
  border-radius: 21px;
}

.home-page .story-slice {
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
}

.home-page .story-slice>figure {
  height: auto;
  align-self: center;
}

.home-page .story-slice>figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.story-slice blockquote,
.philosophy blockquote,
.editorial blockquote {
  font-family: var(--brush);
}

.heritage-band {
  background: #f3eee6;
  color: var(--brown);
  padding-block: 78px;
}

.heritage-band .eyebrow,
.heritage-item>span {
  color: var(--accent);
}

.heritage-item {
  border-color: #d9cfc0;
}

.heritage-item p {
  color: var(--muted);
}

.category-grid {
  border: 0;
  gap: 15px;
}

.category-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px 25px 20px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(48, 43, 39, .08);
}

.card-num {
  color: var(--accent);
  margin-bottom: 13px;
  font-size: 19px;
}

.category-card h3 {
  font-family: var(--brush);
}

.card-audience {
  color: var(--accent);
}

.open-learning {
  border-radius: 25px;
  background: #f1ebe1;
  padding: clamp(40px, 5vw, 75px);
}

.practice-rules>div {
  border-color: #d4c8b8;
}

.venue-card {
  background: #fffdf9;
  border-color: var(--line);
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(48, 43, 39, .03);
}

.venue-photo {
  overflow: hidden;
}

.venue-photo img {
  transition: transform .35s ease;
}

.venue-card:hover .venue-photo img {
  transform: scale(1.025);
}

.venue-content {
  padding: 25px 25px 28px;
}

.venue-index {
  color: var(--brown);
  background: rgba(250, 247, 240, .92);
  border-radius: 99px;
  padding: 1px 9px;
}

.venue-rail {
  padding-bottom: 23px;
}

.venue-rail .venue-card {
  flex-basis: calc(32% - 12px);
}

.english-band {
  background: #f3eee6;
  color: var(--brown);
}

.english-copy .eyebrow {
  color: var(--accent);
}

.english-copy>p:not(.eyebrow) {
  color: var(--muted);
}

.english-options {
  border-color: #d9cfc0;
}

.english-copy .button.light {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

.english-copy .button.light:hover {
  background: var(--green);
}

.english-copy .text-link {
  color: var(--accent);
}

.teacher-photo {
  border-radius: 19px;
}

.teacher-photo img {
  transition: transform .35s ease;
}

.teacher-card:hover .teacher-photo img {
  transform: scale(1.025);
}

.teacher-heading h3 {
  font-family: var(--brush);
}

.teacher-heading span {
  color: var(--accent);
}

.philosophy {
  border-color: var(--line);
}

.gallery-slide>img {
  border-radius: 22px;
}

.gallery-slide h3 {
  font-family: var(--brush);
}

.carousel-controls button:not(.text-button) {
  border-radius: 50%;
}

.booking-form,
.login-form {
  background: #f1ebe1;
  border-radius: 22px;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.login-form input,
.filter-form input,
.filter-form select {
  border-radius: 9px;
}

footer {
  background: #f8f4ec;
  color: var(--brown);
  border-top: 1px solid #e8dfd2;
  margin-top: 52px;
}

main:has(> .booking-section:last-child)+footer {
  margin-top: 0;
}

.footer-top h2 {
  font-family: var(--brush);
}

.footer-top h3 {
  color: #5b5248;
}

.footer-top p,
.footer-bottom {
  color: #6c665e;
}

.footer-top a:not(.button):hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.footer-top .button.light {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

.footer-top .button.light:hover {
  background: var(--green);
}

.footer-bottom {
  border-color: #d8cfc0;
}

.breadcrumb {
  padding-top: 27px;
}

.page-intro {
  padding-top: 42px;
  padding-bottom: 43px;
}

.page-intro .eyebrow {
  margin-bottom: 15px;
}

.page-intro h1 {
  font-family: var(--brush);
  line-height: 1.26;
  letter-spacing: .025em;
}

.page-intro>p:last-child {
  margin-top: 18px;
}

.editorial .wide-image {
  height: 555px;
}

.wide-image>img {
  border-radius: 22px;
}

.editorial h2,
.detail-grid article>h2,
.teacher-bio h2,
.prose h2 {
  font-family: var(--brush);
}

.detail-aside {
  background: #f0e9de;
  border-radius: 20px;
  top: 110px;
}

.detail-aside h3 {
  font-family: var(--brush);
}

.location-detail-photo {
  overflow: hidden;
  border-radius: 21px;
}

.empty-media {
  background: #f2ede4;
  border-radius: 15px;
}

.filter-bar button {
  border-radius: 999px;
}

.filter-bar button[aria-pressed=true] {
  background: var(--brown);
  border-color: var(--brown);
}

.teacher-detail>figure {
  overflow: hidden;
  border-radius: 22px;
}

.teacher-detail h1 {
  font-family: var(--brush);
}

.teacher-profile-intro {
  margin: 24px 0 34px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--green);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.9;
}

.english-hero figure {
  overflow: hidden;
  border-radius: 24px;
}

.english-teacher figure {
  overflow: hidden;
  border-radius: 21px;
}

.learning-path {
  background: #f0eae1;
  border-radius: 21px;
}

.learning-path.green {
  background: #37463a;
}

.english-location {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 25px;
}

.courses-overview-intro h1 {
  font-family: var(--brush);
}

.course-entry-card {
  border-radius: 17px;
}

.course-entry-copy h2 {
  font-family: var(--brush);
}

.home-course-guide .section-head {
  margin-bottom: 28px;
}

.course-catalog {
  padding-top: 75px;
}

.course-catalog .section-head {
  margin-bottom: 42px;
}

.course-catalog .section-head h1 {
  font-family: var(--brush);
  font-size: clamp(3rem, 4.2vw, 4.8rem);
  line-height: 1.3;
}

.course-catalog .section-head .muted {
  font-size: 16px;
}

.course-catalog .category-card {
  min-height: 268px;
  padding: 28px 30px 23px;
}

.course-catalog .card-num {
  margin-bottom: 19px;
}

.course-catalog .category-card h3 {
  font-size: 29px;
}

.course-catalog .category-card p {
  font-size: 15px;
  min-height: 58px;
}

.course-catalog .card-audience {
  margin-top: 24px;
}

.course-catalog .card-bottom {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .header {
    padding-inline: 20px;
    gap: 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand b {
    font-size: 28px;
    letter-spacing: 3px;
  }

  .brand small {
    font-size: 10px;
  }

  .header nav {
    gap: 10px;
    font-size: 14px;
  }

  .header-book {
    font-size: 12px;
    padding-inline: 17px;
    gap: 12px;
  }
}

@media (max-width: 1150px) {
  .hero {
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5vw, 4.7rem);
  }

  .hero-image {
    min-height: 470px;
  }
}

@media (max-width: 900px) {
  .header {
    height: 82px;
  }

  .hero {
    gap: 25px;
  }

  .hero-image {
    min-height: 430px;
    height: 430px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
  }

  .venue-rail .venue-card {
    flex-basis: 48%;
  }
}

@media (max-width: 620px) {
  .header {
    height: 76px;
    padding-inline: 20px;
  }

  .brand b {
    font-size: 27px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero {
    gap: 27px;
    padding-top: 27px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
  }

  .hero-image {
    height: 390px;
    min-height: 0;
    border-radius: 19px;
  }

  .hero-foot {
    margin-top: 28px;
  }

  .image-label {
    top: 50%;
  }

  .section {
    padding-top: 72px;
  }

  .story-slice figure {
    height: 330px;
  }

  .category-grid {
    gap: 9px;
  }

  .category-card {
    padding: 17px 15px;
    border-radius: 13px;
  }

  .course-catalog {
    padding-top: 45px;
  }

  .course-catalog .section-head {
    margin-bottom: 28px;
  }

  .course-catalog .section-head h1 {
    font-size: clamp(2.5rem, 9vw, 3.3rem);
  }

  .course-catalog .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-catalog .category-card {
    min-height: 200px;
    padding: 22px;
  }

  .course-catalog .category-card h3 {
    font-size: 23px;
  }

  .course-catalog .category-card p {
    font-size: 13px;
    min-height: 0;
  }

  .course-catalog .card-audience {
    margin-top: 18px;
  }

  .venue-rail .venue-card {
    flex-basis: 88%;
  }

  .venue-grid {
    gap: 18px;
  }

  .venue-content {
    padding: 23px;
  }

  .page-intro {
    padding-top: 30px;
    padding-bottom: 35px;
  }

  .page-intro h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .editorial .wide-image {
    height: 310px;
  }

  .booking-form {
    border-radius: 17px;
  }

  .mobile-actions {
    background: rgba(250, 247, 240, .98);
  }

  .mobile-actions .button {
    border-radius: 999px;
  }

  footer {
    margin-top: 40px;
  }
}

/* Keep every destination visible at narrower widths without a dropdown. */
.menu-toggle {
  display: none;
}

@media (max-width: 800px) {
  .home-page .story-slice {
    grid-template-columns: 1fr;
  }

  html {
    scroll-padding-top: 145px;
  }

  .header {
    height: auto;
    min-height: 82px;
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 10px 6px;
  }

  .header nav {
    display: grid;
    position: static;
    order: 3;
    flex-basis: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 2px 0 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 13px;
  }

  .header nav a {
    padding: 8px 2px;
  }

  .header-book {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 175px;
  }

  .header {
    min-height: 76px;
    padding-block: 9px 5px;
  }

  .header nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 12px;
  }

  .header nav a {
    padding-block: 4px;
  }
}

/* The homepage opens section by section like a horizontal painted scroll. */
.home-page .header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--reading-progress, 0%);
  height: 2px;
  background: var(--accent);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-motion .home-page .hero-image {
    animation: hero-unfurl 1.25s cubic-bezier(.22, 1, .36, 1) both;
  }

  .scroll-motion .home-page .hero-copy {
    animation: copy-enter .9s .2s ease-out both;
  }

  .scroll-motion .home-page .story-slice figure,
  .scroll-motion .home-page .home-course-guide .course-entry-grid,
  .scroll-motion .home-page #venues .venue-rail,
  .scroll-motion .home-page .english-photo,
  .scroll-motion .home-page .home-teachers .teacher-grid,
  .scroll-motion .home-page .gallery-section .gallery {
    clip-path: inset(0 49% 0 49%);
    opacity: .6;
    transition: clip-path 1.15s cubic-bezier(.22, 1, .36, 1), opacity .8s ease;
  }

  .scroll-motion .home-page .story-slice.is-unfurled figure,
  .scroll-motion .home-page .home-course-guide.is-unfurled .course-entry-grid,
  .scroll-motion .home-page #venues.is-unfurled .venue-rail,
  .scroll-motion .home-page .english-band.is-unfurled .english-photo,
  .scroll-motion .home-page .home-teachers.is-unfurled .teacher-grid,
  .scroll-motion .home-page .gallery-section.is-unfurled .gallery {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  .scroll-motion .home-page .story-slice>div,
  .scroll-motion .home-page .heritage-band>.wrap,
  .scroll-motion .home-page .home-course-guide .section-head,
  .scroll-motion .home-page .open-learning>div,
  .scroll-motion .home-page #venues .section-head,
  .scroll-motion .home-page .english-copy,
  .scroll-motion .home-page .home-teachers .section-head,
  .scroll-motion .home-page .gallery-section .section-head,
  .scroll-motion .home-page .booking-section>div {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .75s ease, transform .85s cubic-bezier(.22, 1, .36, 1);
  }

  .scroll-motion .home-page .is-unfurled.story-slice>div,
  .scroll-motion .home-page .is-unfurled.heritage-band>.wrap,
  .scroll-motion .home-page .is-unfurled.home-course-guide .section-head,
  .scroll-motion .home-page .is-unfurled.open-learning>div,
  .scroll-motion .home-page #venues.is-unfurled .section-head,
  .scroll-motion .home-page .is-unfurled.english-band .english-copy,
  .scroll-motion .home-page .is-unfurled.home-teachers .section-head,
  .scroll-motion .home-page .is-unfurled.gallery-section .section-head,
  .scroll-motion .home-page .is-unfurled.booking-section>div {
    opacity: 1;
    transform: none;
  }

  @keyframes hero-unfurl {
    from {
      clip-path: inset(0 49% 0 49% round 25px);
      opacity: .5;
    }

    to {
      clip-path: inset(0 0 0 0 round 25px);
      opacity: 1;
    }
  }

  @keyframes copy-enter {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* An editorial opening and an in-page chapter index, with the main navigation above. */
.scroll-cover {
  position: relative;
  min-height: max(630px, calc(100svh - 86px));
  overflow: hidden;
  background: #f7f0e3;
  border-bottom: 1px solid #d5c5ab;
}

.scroll-cover-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 240, 227, .96) 0%, rgba(247, 240, 227, .72) 37%, rgba(247, 240, 227, .12) 76%), url('../images/ink-landscape.webp') center bottom / cover no-repeat;
}

.scroll-cover-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr auto;
  width: 100%;
  max-width: none;
  min-height: max(630px, calc(100svh - 86px));
  padding-inline: clamp(28px, 8vw, 160px);
  padding-block: 42px 34px;
}

.scroll-cover-kicker {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
  color: #736b60;
  font-size: 13px;
  letter-spacing: .25em;
}

.scroll-cover-title {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--brush);
  font-size: clamp(34px, min(4.5vw, 4.7vh), 62px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .08em;
  white-space: nowrap;
  padding: 22px 16px;
  background: rgba(248, 243, 233, .6);
  border: 1px solid #c7b391;
  outline: 1px solid #c7b391;
  outline-offset: -9px;
}

.scroll-cover-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 440px;
  padding-bottom: 58px;
}

.scroll-cover-copy>p:not(.scroll-cover-motto) {
  max-width: 25em;
  color: #5b554d;
  font-family: var(--serif);
  font-size: clamp(17px, 1.65vw, 23px);
  line-height: 2;
  letter-spacing: .07em;
}

.scroll-cover-motto {
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .23em;
}

.scroll-cover-copy .actions {
  margin-top: 30px;
}

.scroll-cover-next {
  grid-column: 1 / -1;
  justify-self: center;
  grid-row: 3;
  color: #716a61;
  font-size: 13px;
  letter-spacing: .22em;
  border-bottom: 1px solid #bd9d72;
  padding-bottom: 7px;
}

.chapter-index {
  background: #f8f1e4;
  border-bottom: 1px solid #d9cab5;
  padding-block: 72px 86px;
}

.chapter-index-head .eyebrow {
  margin-bottom: 14px;
}

.chapter-index-head h2 {
  font-family: var(--brush);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.2;
}

.chapter-index-head>p:last-child {
  margin-top: 10px;
  color: var(--muted);
}

.chapter-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 45px;
  border-top: 1px solid #cdbda4;
  border-bottom: 1px solid #cdbda4;
}

.chapter-tile {
  position: relative;
  min-width: 0;
  min-height: 390px;
  display: flex;
  align-items: flex-start;
  gap: clamp(9px, 1vw, 16px);
  padding: 72px clamp(13px, 2vw, 30px) 28px;
  border-left: 1px solid #cdbda4;
  transition: background .3s ease;
}

.chapter-tile:last-child {
  border-right: 1px solid #cdbda4;
}

.chapter-tile:hover,
.chapter-tile:focus-visible {
  background: rgba(255, 255, 255, .4);
}

.chapter-symbol {
  position: absolute;
  top: 30px;
  left: clamp(13px, 2vw, 30px);
  width: 11px;
  height: 11px;
  border: 1px solid #bea982;
  border-radius: 50%;
}

.chapter-tile.is-active .chapter-symbol {
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 0;
  transform: rotate(45deg);
}

.chapter-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif);
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1;
  letter-spacing: .12em;
  white-space: nowrap;
}

.chapter-tile small {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .14em;
  margin-top: 12px;
}

.chapter-tile img {
  width: 0;
  height: 270px;
  flex: 0 0 auto;
  object-fit: cover;
  filter: grayscale(1) sepia(.16);
  opacity: 0;
  transition: width .55s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
}

.chapter-tile.is-active {
  color: var(--accent);
}

.chapter-tile.is-active img {
  width: clamp(54px, 6vw, 84px);
  opacity: .85;
}

.chapter-tile[data-chapter="story"] img {
  object-position: 100% center;
}

.chapter-tile.is-active small {
  color: #655c51;
}

.home-page .story-slice,
.home-page .home-course-guide,
.home-page .home-teachers {
  scroll-margin-top: 96px;
}

.home-page .heritage-band {
  scroll-margin-top: 86px;
}

@media (max-width: 800px) {

  .scroll-cover,
  .scroll-cover-inner {
    min-height: 690px;
  }

  .scroll-cover-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  }

  .scroll-cover-title {
    font-size: clamp(34px, 5.5vw, 43px);
  }

  .scroll-cover-copy {
    padding-bottom: 35px;
  }

  .chapter-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-tile:nth-child(3) {
    border-top: 1px solid #cdbda4;
  }

  .chapter-tile:nth-child(4) {
    border-top: 1px solid #cdbda4;
  }
}

@media (max-width: 620px) {

  .scroll-cover,
  .scroll-cover-inner {
    min-height: 660px;
  }

  .scroll-cover-inner {
    display: flex;
    flex-direction: column;
    padding-block: 25px 30px;
  }

  .scroll-cover-wash {
    background-position: 55% bottom;
  }

  .scroll-cover-kicker {
    font-size: 11px;
  }

  .scroll-cover-title {
    align-self: flex-start;
    margin: 26px 0 0;
    padding: 14px 16px;
    max-width: 9em;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: normal;
    font-size: clamp(35px, 9vw, 42px);
    line-height: 1.35;
  }

  .scroll-cover-copy {
    padding: 0;
    margin-top: auto;
    max-width: 100%;
  }

  .scroll-cover-copy>p:not(.scroll-cover-motto) {
    font-size: 15px;
    line-height: 1.75;
    background: rgba(248, 243, 233, .76);
  }

  .scroll-cover-motto {
    margin-bottom: 9px;
  }

  .scroll-cover-copy .actions {
    margin-top: 16px;
  }

  .scroll-cover-copy .button {
    font-size: 12px;
    padding-inline: 16px;
    gap: 8px;
  }

  .scroll-cover-next {
    margin-top: 20px;
  }

  .chapter-index {
    padding-block: 48px 55px;
  }

  .chapter-index-head h2 {
    font-size: 50px;
  }

  .chapter-index-grid {
    margin-top: 28px;
  }

  .chapter-tile {
    min-height: 230px;
    padding: 47px 12px 18px;
    gap: 7px;
  }

  .chapter-symbol {
    left: 13px;
    top: 20px;
  }

  .chapter-name {
    font-size: 26px;
  }

  .chapter-tile small {
    font-size: 11px;
  }

  .chapter-tile.is-active img {
    width: 40px;
    height: 155px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-motion .scroll-cover-wash {
    animation: cover-unfurl 1.4s cubic-bezier(.22, 1, .36, 1) both;
  }

  .scroll-motion .scroll-cover-title {
    animation: copy-enter .9s .25s ease-out both;
  }

  @keyframes cover-unfurl {
    from {
      clip-path: inset(0 49% 0 49%);
    }

    to {
      clip-path: inset(0 0 0 0);
    }
  }
}

.scroll-ending {
  min-height: 460px;
  margin-top: 80px;
  padding-block: 76px 68px;
  border-top: 1px solid #d5c5ab;
  border-bottom: 1px solid #d5c5ab;
  background: linear-gradient(90deg, rgba(248, 241, 228, .97), rgba(248, 241, 228, .75) 65%, rgba(248, 241, 228, .48)), url('../images/ink-landscape.webp') center 65% / cover no-repeat;
}

.scroll-ending .wrap {
  position: relative;
  min-height: 310px;
}

.scroll-ending h2 {
  font-family: var(--brush);
  font-size: clamp(54px, 6vw, 88px);
  line-height: 1.35;
}

.scroll-ending .wrap>p:last-of-type {
  max-width: 34em;
  color: #5b554d;
  font-family: var(--serif);
  font-size: 18px;
}

.scroll-ending a {
  display: inline-flex;
  gap: 22px;
  margin-top: 34px;
  padding-bottom: 7px;
  border-bottom: 1px solid #bb9d77;
  font-size: 16px;
  letter-spacing: .18em;
}

.home-page footer {
  margin-top: 0;
}

@media (max-width: 620px) {
  .scroll-ending {
    min-height: 370px;
    margin-top: 55px;
    padding-block: 54px;
  }

  .scroll-ending h2 {
    font-size: clamp(48px, 12vw, 62px);
  }

  .scroll-ending .wrap>p:last-of-type {
    font-size: 15px;
  }
}

/* Primary sections stay visible at the top of the scroll. */
.header {
  height: 94px;
  padding: 0 clamp(18px, 2.8vw, 44px);
  gap: clamp(15px, 2vw, 34px);
  background: #f8f4ec;
}

.header .brand {
  min-width: 0;
}

.header .brand b {
  white-space: nowrap;
}

.header nav {
  display: grid;
  position: static;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  flex: 1 1 auto;
  max-width: 850px;
  height: 100%;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: .1em;
}

.header nav a {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 3px 8px;
  border-left: 1px solid #d7cab8;
  color: #6e655b;
  line-height: 1.2;
}

.header nav a:last-child {
  border-right: 1px solid #d7cab8;
}

.header nav a::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid #bea982;
  border-radius: 50%;
}

.header nav a[aria-current]::before {
  border-radius: 0;
  border-color: var(--accent);
  background: var(--accent);
}

.header nav a[aria-current]::after,
.home-page .header nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 24px;
  height: 2px;
  border-radius: 0;
  transform: translateX(-50%);
  background: var(--accent);
}

.header nav a:hover,
.header nav a[aria-current] {
  color: var(--accent);
}

.header::after {
  pointer-events: none;
}

html {
  scroll-padding-top: 118px;
}

.home-page .story-slice,
.home-page .home-course-guide,
.home-page .home-teachers,
.home-page .heritage-band,
.home-page .principles-section {
  scroll-margin-top: 118px;
}

.principles-section {
  max-width: 1320px;
  padding: clamp(65px, 7vw, 110px) clamp(30px, 6vw, 95px);
  border-top: 1px solid #d5c5ab;
  border-bottom: 1px solid #d5c5ab;
  background: #f5efe4;
}

.principles-section h2 {
  max-width: 15em;
  font-family: var(--brush);
  font-size: clamp(36px, 4vw, 62px);
}

.principles-section>p:not(.eyebrow) {
  max-width: 38em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.principles-section .text-link {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 5px;
  border-bottom: 1px solid #bb9d77;
}

.video-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 45px;
  padding: 31px 36px;
  border: 1px solid #d5c5ab;
  background: #f5efe4;
}

.video-callout .eyebrow {
  margin: 0 0 8px;
}

.video-callout h3 {
  font-family: var(--brush);
  font-size: 29px;
}

.video-callout p:last-child {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 9px 19px;
  border: 1px solid #bda686;
  color: var(--accent);
  font-size: 14px;
}

.video-link:hover {
  background: #ece1d0;
}

.editorial .wide-image img {
  object-position: center 42%;
}

.lineage-figure {
  margin: 34px 0 42px;
}

.lineage-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lineage;
}

.lineage-map li {
  min-width: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid #d3c2a7;
  border-top: 2px solid #c4a775;
  background: #f4eee3;
  color: #302a24;
}

.lineage-map .lineage-generation {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .15em;
  color: #9d5c42;
}

.lineage-map strong {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 500;
  line-height: 1.35;
}

.lineage-map small {
  margin-top: 5px;
  color: #766d62;
  font-size: 12px;
}

.lineage-map .is-origin,
.lineage-map .is-current {
  background: #eadfcb;
}

.lineage-map .is-current {
  border-top-color: #a34f35;
}

.lineage-map .is-current strong {
  font-size: clamp(17px, 1.7vw, 22px);
}

.lineage-figure figcaption {
  margin-top: 15px;
  color: #766d62;
  font-size: 13px;
  line-height: 1.7;
}

.story-source {
  margin-top: 45px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.story-source a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .lineage-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 470px) {
  .lineage-map {
    gap: 8px;
  }

  .lineage-map li {
    min-height: 100px;
    padding: 13px;
  }

  .lineage-map strong {
    font-size: 20px;
  }

  .lineage-map .is-current strong {
    font-size: 16px;
  }
}

@media (max-width: 1050px) {
  .header {
    gap: 15px;
    padding-inline: 16px;
  }

  .header .brand b {
    font-size: 25px;
    letter-spacing: 2px;
  }

  .header .brand small {
    font-size: 9px;
  }

  .header nav {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .header {
    height: auto;
    min-height: 118px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 0;
    padding: 8px 0 0;
  }

  .header .brand {
    height: 49px;
    margin-inline: 17px;
  }

  .header .brand b {
    font-size: 24px;
  }

  .header .brand small {
    font-size: 9px;
  }

  .header nav {
    display: grid;
    position: static;
    order: 3;
    flex: 0 0 100%;
    max-width: none;
    height: 60px;
    grid-template-columns: repeat(7, minmax(76px, 1fr));
    overflow-x: auto;
    border-top: 1px solid #d7cab8;
    font-size: 13px;
    scrollbar-width: none;
  }

  .header nav::-webkit-scrollbar {
    display: none
  }

  .header nav a {
    gap: 5px;
    padding: 6px 1px;
  }

  .header nav a:first-child {
    border-left: 0;
  }

  .header nav a:last-child {
    border-right: 0;
  }

  .header nav a::before {
    width: 7px;
    height: 7px;
  }

  .header nav a[aria-current]::after,
  .home-page .header nav a[aria-current="location"]::after {
    bottom: 3px;
    width: 17px;
  }

  html {
    scroll-padding-top: 128px;
  }

  .home-page .story-slice,
  .home-page .home-course-guide,
  .home-page .home-teachers,
  .home-page .heritage-band,
  .home-page .principles-section {
    scroll-margin-top: 128px;
  }
}

@media (max-width: 620px) {
  .header {
    min-height: 116px;
    padding-block: 8px 0;
  }

  .header nav {
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    height: 59px;
    font-size: 12px;
  }

  .header nav a {
    padding: 6px 1px;
  }

  .video-callout {
    display: block;
    padding: 24px;
  }

  .video-callout .video-link {
    margin-top: 21px;
  }

  .principles-section {
    padding: 57px 22px;
  }

  .principles-section>p:not(.eyebrow) {
    font-size: 16px;
  }
}

.english-auto-stage {
  position: relative;
  height: clamp(360px, 60vw, 760px);
  background: #f0e9dd;
  border-radius: 24px;
  overflow: hidden;
  touch-action: pan-y
}

.english-auto-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .85s ease
}

.english-auto-stage img.is-active {
  opacity: 1
}

@media(prefers-reduced-motion:reduce) {
  .english-auto-stage img {
    transition: none
  }
}

.english-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 12px;
  background: rgba(48, 42, 35, .55);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s
}

.english-image-arrow:hover,
.english-image-arrow:focus-visible {
  background: rgba(48, 42, 35, .85)
}

.english-image-arrow.previous {
  left: 16px
}

.english-image-arrow.next {
  right: 16px
}

@media(max-width:620px) {
  .english-image-arrow {
    width: 38px;
    height: 52px;
    font-size: 34px
  }

  .english-image-arrow.previous {
    left: 8px
  }

  .english-image-arrow.next {
    right: 8px
  }
}

.brand-area {
  flex: 0 0 auto;
  min-width: 0;
  position: relative
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  color: #756c61;
  line-height: 1.3
}

.brand-area>.language-switch {
  margin: 4px 0 0 49px
}

.language-switch a {
  padding: 3px 1px
}

.language-switch a[aria-current],
.language-switch a:hover {
  color: #a34f35
}

.footer-language {
  margin: 24px 0 12px
}

.brand-area .brand {
  gap: 12px
}

@media(max-width:620px) {
  .brand-area>.language-switch {
    margin-left: 0;
    font-size: 10px;
    gap: 5px
  }
}

html[lang="de"] .header nav,
html[lang="en"] .header nav {
  letter-spacing: 0;
  font-size: clamp(11px, 1.1vw, 15px)
}

html[lang="en"] .scroll-cover-title,
html[lang="de"] .scroll-cover-title {
  writing-mode: horizontal-tb;
  max-width: 10em;
  font-family: Georgia, serif;
  font-size: clamp(35px, 5vw, 68px);
  line-height: 1.15;
  letter-spacing: 0
}

.international-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 40px
}

.international-photo-grid figure {
  min-width: 0;
  margin: 0
}

.international-photo-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px
}

.international-photo-grid figcaption {
  line-height: 1.65;
  padding-top: 9px
}

.international-photo-grid figure:first-child,
.international-photo-grid figure:last-child {
  grid-column: 1/-1
}

@media(max-width:620px) {
  .international-photo-grid {
    grid-template-columns: 1fr;
    gap: 22px
  }
}

.teacher-recommendations {
  padding-bottom: 25px
}

.teacher-recommendations .teacher-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 950px
}

.teacher-recommendations .text-link {
  margin-top: 12px
}

@media(max-width:620px) {
  .teacher-recommendations .teacher-grid {
    grid-template-columns: 1fr
  }
}

.teacher-recommendations-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line)
}

@media(max-width:620px) {
  .teacher-recommendations-return {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px
  }
}

/* Combined home principles beneath roots and legacy. */
.home-page .principles-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  background: transparent;
  padding-block: 78px;
}

.principles-art {
  margin: 0;
}

.principles-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 0;
}

.principles-copy h2 {
  margin: 14px 0 24px;
  font-size: clamp(42px, 5vw, 68px);
}

.principles-copy blockquote {
  margin: 0 0 30px;
  color: var(--green, #354e40);
  font-family: var(--brush);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.65;
}

.principle-explanation {
  margin-top: 25px;
}

.principle-explanation h3 {
  font-size: 21px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.principle-explanation p {
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}

@media(max-width:760px) {
  .home-page .principles-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 48px;
  }

  .principles-art {
    max-width: 330px;
    margin: auto;
  }

  .principles-copy h2 {
    margin-top: 10px;
  }

  .principle-explanation h3 {
    font-size: 20px;
  }

  .principle-explanation p {
    font-size: 16px;
  }
}

.practice-gallery-frame {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper2);
  touch-action: pan-y;
  cursor: grab
}

.practice-gallery-frame:active {
  cursor: grabbing
}

.practice-gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  user-select: none
}

.practice-gallery-image.is-active {
  opacity: 1;
  visibility: visible
}

.practice-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(35, 40, 33, .65);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center
}

.practice-arrow:hover {
  background: rgba(35, 40, 33, .9)
}

.practice-prev {
  left: 16px
}

.practice-next {
  right: 16px
}

.practice-gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  color: var(--muted)
}

.practice-gallery:focus-visible,
.practice-arrow:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px
}

@media(max-width:620px) {
  .practice-gallery-frame {
    aspect-ratio: 4/3;
    border-radius: 16px
  }

  .practice-arrow {
    width: 40px;
    height: 40px;
    font-size: 23px
  }

  .practice-prev {
    left: 8px
  }

  .practice-next {
    right: 8px
  }
}

@media(prefers-reduced-motion:reduce) {
  .practice-gallery-image {
    transition: none
  }
}

/* Quotations are part of the existing text, not the new heading treatment. */
.story-slice blockquote,
.philosophy blockquote,
.editorial blockquote,
.principles-copy blockquote {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
}

/* Use the original brush-lettering artwork and replace its traditional Chen glyph. */
html:lang(zh) .scroll-cover-title {
  position: relative;
  writing-mode: horizontal-tb;
  height: clamp(460px, 69vh, 700px);
  width: clamp(110px, 12vw, 156px);
  background: rgba(248, 243, 233, .6);
  container-type: size;
  padding: 0;
}

html:lang(zh) .scroll-cover-title::before {
  content: "";
  position: absolute;
  inset: 16px 0;
  background: url('../images/hero-lettering-d.png') center / auto 100% no-repeat;
  mask-image: linear-gradient(to bottom, #000 0 67.2%, transparent 67.2% 77.4%, #000 77.4% 100%);
}

html:lang(zh) .scroll-cover-title::after {
  content: "陈";
  position: absolute;
  top: calc(68.1% - 4px);
  left: 50%;
  transform: translateX(-50%);
  font-family: "Ma Shan Zheng", serif;
  font-weight: 400;
  font-size: calc((100cqh - 32px) * .095);
  line-height: 1;
  letter-spacing: 0;
  color: #151411;
}

html:lang(zh) .scroll-cover-title>span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media(max-width:620px) {
  html:lang(zh) .scroll-cover-title {
    height: 460px;
    width: 110px;
    align-self: center;
    flex: 0 0 auto;
    margin: 20px 0 28px;
  }
}

/* Principles: connected teaching framework. */
.principles-system {
  scroll-margin-top: 120px;
  padding-block: 80px;
}

.principles-system header {
  text-align: center;
  margin-bottom: 54px;
}

.principles-system h2 {
  font-family: var(--brush);
  font-size: clamp(38px, 5vw, 66px);
  margin: 16px 0;
}

.principles-lead {
  color: #354e40;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.9;
}

.principles-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.principles-rings {
  position: sticky;
  top: 130px;
  margin: 0;
}

.principles-rings svg {
  display: block;
  width: 100%;
  height: auto;
}

.principles-rings svg text {
  font-family: serif;
}

.principles-rings figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.principles-flow {
  list-style: none;
  padding: 0;
  margin: 0;
}

.principles-flow li {
  position: relative;
  padding: 0 0 36px 27px;
  border-left: 1px solid #c7b899;
}

.principles-flow li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.principles-flow li:not(:last-child)::after {
  content: '↓';
  position: absolute;
  left: -7px;
  bottom: 12px;
  background: #faf7ef;
  color: #a76a46;
}

.principle-index {
  color: #a76a46;
  font-size: 13px;
  letter-spacing: .13em;
}

.principles-flow h3 {
  font-family: var(--brush);
  font-size: 29px;
  margin: 8px 0;
}

.principles-flow small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.principles-flow p {
  line-height: 1.9;
  margin: 8px 0;
  color: var(--muted);
}

.principles-flow .principle-question {
  color: #354e40;
  margin-top: 18px;
}

.principles-cycle {
  margin-top: 54px;
  padding: 22px;
  text-align: center;
  border-block: 1px solid #d8cbb3;
  color: #354e40;
  line-height: 2;
}

.principles-cycle span {
  display: inline-block;
  margin-inline: 7px;
  color: #a76a46;
}

.principles-cycle p:last-child {
  font-size: 15px;
  color: var(--muted);
}

.principles-statement {
  text-align: center;
  font-family: var(--brush);
  font-size: clamp(27px, 3.4vw, 44px);
  line-height: 1.7;
  margin: 42px 0 14px;
}

.principles-attribution {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media(max-width:760px) {
  .principles-system {
    padding-block: 48px;
  }

  .principles-layout {
    grid-template-columns: 1fr;
  }

  .principles-rings {
    position: static;
    max-width: 400px;
    margin: auto;
  }

  .principles-system header {
    margin-bottom: 24px;
  }

  .principles-flow {
    margin-top: 16px;
  }

  .principles-flow h3 {
    font-size: 25px;
  }

  .principles-cycle {
    padding: 16px 6px;
  }

  .principles-cycle p {
    font-size: 15px;
  }
}

.wang-le-teacher figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.principles-summary {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-block: 60px;
  scroll-margin-top: 120px;
}

.principles-summary .principles-rings {
  position: static;
  max-width: 360px;
  margin: auto;
  width: 100%;
}

.principles-summary .principles-rings figcaption {
  display: none;
}

.principles-summary h2 {
  font-family: var(--brush);
  font-size: clamp(34px, 4vw, 54px);
  margin: 10px 0 20px;
}

.principles-summary blockquote {
  font-family: var(--brush);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.75;
  margin: 0 0 20px;
}

.principles-summary-meaning {
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.principles-summary .text-link {
  margin-top: 16px;
}

@media(max-width:760px) {
  .principles-summary {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 42px;
  }

  .principles-summary .principles-rings {
    max-width: 260px;
  }

  .principles-summary>div {
    text-align: center;
  }

  .principles-summary h2 {
    font-size: 34px;
  }
}

.principles-summary .principles-video {
  margin: 0;
  width: 100%;
  align-self: center
}

.principles-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #28332d;
  border-radius: 4px
}

.principles-video-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px
}

.principles-video-actions button {
  border: 1px solid #b6ab99;
  background: transparent;
  color: var(--brown);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 3px
}

.principles-video-actions button:hover {
  border-color: #9a543d;
  color: #9a543d
}

.principles-video figcaption {
  margin-top: 5px;
  text-align: right;
  color: var(--muted);
  font-size: 12px
}

.home-course-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 24px 28px;
  background: #e9e2d4;
  border: 1px solid #d9ccba;
  border-radius: 10px
}

.home-course-path .eyebrow {
  margin: 0 0 6px
}

.home-course-path h3 {
  font-size: 25px
}

.home-course-path p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px
}

.home-course-path .button {
  flex: none
}

@media(max-width:760px) {
  .home-course-path {
    display: block;
    padding: 22px
  }

  .home-course-path .button {
    margin-top: 18px
  }

  .principles-video figcaption {
    text-align: left
  }
}

.teacher-accounts {
  margin: 30px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.teacher-accounts h3 {
  font-family: var(--brush);
  font-size: 24px;
  margin: 0 0 16px;
}

.teacher-account-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.teacher-account {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .25);
}

.account-platform {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.teacher-account strong {
  display: block;
  color: var(--green);
  font-size: 18px;
}

.teacher-account p {
  margin: 7px 0 0;
}

.account-id {
  user-select: all;
  font-variant-numeric: tabular-nums;
}

.teacher-account .account-qr-link {
  display: block;
  margin: 18px 0 12px;
}

.teacher-account .teacher-account-qr {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto;
}

.english-booking-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: start;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .36)
}

.english-booking-contact h3 {
  margin: 0 0 12px
}

.english-booking-contact p {
  margin: 0 0 12px
}

.english-booking-contact a[href^="tel:"] {
  font-weight: 700;
  white-space: nowrap
}

.english-booking-contact>a {
  display: block
}

.english-booking-contact img {
  display: block;
  width: 100%;
  height: auto
}

@media(max-width:620px) {
  .english-booking-contact {
    grid-template-columns: 1fr
  }

  .english-booking-contact>a {
    max-width: 210px
  }
}

.teacher-account strong {
  overflow-wrap: anywhere;
}

.teacher-account .account-download {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teacher-contact p {
  margin: 8px 0;
}

.teacher-contact .account-phone {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.teacher-team-section {
  padding-bottom: 90px;
  overflow-anchor: none;
}

.teacher-scroll-list {
  display: grid;
  gap: 60px;
}

.teacher-scroll {
  border: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 110px;
}

.teacher-scroll-summary {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 0;
  align-items: center;
  cursor: pointer;
  list-style: none;
  transition: grid-template-columns .85s cubic-bezier(.2, .65, .25, 1);
}

.teacher-scroll[open] .teacher-scroll-summary {
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.teacher-scroll-summary::-webkit-details-marker {
  display: none;
}

.teacher-scroll-summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 8px;
}

.teacher-scroll-photo {
  display: block;
  overflow: hidden;
  background: transparent;
}

.teacher-scroll-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  transition: max-height .85s cubic-bezier(.2, .65, .25, 1);
}

.teacher-scroll[open] .teacher-scroll-photo img {
  max-height: 440px;
  animation: teacher-photo-unfold .9s cubic-bezier(.2, .65, .25, 1) both;
}

@keyframes teacher-photo-unfold {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: .65;
  }

  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

.teacher-scroll-overview {
  display: block;
  min-width: 0;
}

.teacher-scroll-overview .eyebrow {
  display: block;
  line-height: 1.8;
  font-size: 14px;
}

.teacher-scroll-name {
  display: block;
  font-family: var(--brush);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.5;
  margin: 10px 0;
}

.teacher-scroll-core {
  display: block;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

.teacher-scroll-control {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  color: var(--green);
  font-size: 14px;
}

.scroll-toggle-icon {
  font-size: 24px;
  transition: transform .5s;
}

.teacher-scroll[open] .scroll-toggle-icon {
  transform: rotate(45deg);
}

.scroll-close-label,
.teacher-scroll[open] .scroll-open-label {
  display: none;
}

.teacher-scroll[open] .scroll-close-label {
  display: inline;
}

.teacher-scroll-panel {
  padding: 28px 0 0;
}

.teacher-scroll-content {
  padding-top: 0;
  max-width: 850px;
  margin-left: auto;
}

.teacher-scroll-content h3 {
  font-size: 24px;
  margin: 24px 0 12px;
}

.teacher-scroll-content p {
  font-size: 16px;
  line-height: 2;
}

.teacher-scroll-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.teacher-scroll[open] .teacher-scroll-panel {
  animation: teacher-unroll .6s .25s cubic-bezier(.2, .65, .25, 1) both;
  transform-origin: top;
}

@keyframes teacher-unroll {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    clip-path: inset(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:650px) {

  .teacher-scroll-summary,
  .teacher-scroll[open] .teacher-scroll-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 0;
  }

  .teacher-scroll-photo {
    width: 200px;
    max-width: 100%;
    transition: width .85s cubic-bezier(.2, .65, .25, 1);
  }

  .teacher-scroll[open] .teacher-scroll-photo {
    width: 100%;
  }

  .teacher-scroll-photo img {
    max-height: 260px;
  }

  .teacher-scroll[open] .teacher-scroll-photo img {
    max-height: 380px;
  }

  .teacher-scroll-overview .eyebrow {
    font-size: 13px;
    letter-spacing: 0;
  }

  .teacher-scroll-name {
    font-size: 30px;
    margin: 5px 0;
  }

  .teacher-scroll-core {
    font-size: 15px;
    line-height: 1.7;
  }

  .teacher-scroll-control {
    margin-top: 12px;
    gap: 8px;
  }

  .teacher-scroll-panel {
    padding: 20px 0 0;
  }

  .teacher-scroll-list {
    gap: 48px;
  }
}

@media(prefers-reduced-motion:reduce) {

  .teacher-scroll-summary,
  .teacher-scroll-photo,
  .teacher-scroll-photo img,
  .scroll-toggle-icon {
    transition: none;
  }

  .teacher-scroll[open] .teacher-scroll-panel,
  .teacher-scroll[open] .teacher-scroll-photo img {
    animation: none;
  }
}

/* Give the push-hands film more visual weight while keeping the text readable. */
.principles-summary {
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  gap: clamp(34px, 5vw, 72px);
  padding-block: 72px
}

.principles-summary .principles-video video {
  aspect-ratio: 16/9;
  object-fit: cover
}

.english-video-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: stretch;
  margin-top: 34px;
  padding: 0;
  overflow: hidden
}

.english-video-frame {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  background: #e7dfd1
}

.english-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: #e7dfd1
}

.english-video-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 54px)
}

.english-video-copy .video-link {
  margin-top: 24px
}

@media(max-width:760px) {
  .english-video-callout {
    grid-template-columns: 1fr
  }

  .english-video-copy {
    padding: 28px 24px
  }
}

@media(max-width:900px) {
  .principles-summary {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr)
  }
}

@media(max-width:760px) {
  .principles-summary {
    grid-template-columns: 1fr;
    padding-block: 48px
  }

  .principles-summary>div {
    text-align: left
  }

  .principles-summary .principles-video {
    width: 100%
  }
}

/* Keep Zhai Qingsheng fully visible in the landscape teacher card. */

/* Let the Start at Your Pace chapter scale with wide viewports like the full-width home chapters. */
.home-page .open-learning.wrap {
  width: 100%;
  max-width: none;
  min-height: clamp(520px, 62vh, 720px);
  margin-top: 90px;
  border-radius: 0;
  padding: clamp(58px, 7vw, 118px) clamp(48px, 10vw, 190px);
  gap: clamp(70px, 10vw, 190px);
  align-items: center
}

.home-page .open-learning>div {
  max-width: 680px;
  width: 100%
}

@media(max-width:800px) {
  .home-page .open-learning.wrap {
    min-height: auto;
    padding: 52px clamp(28px, 7vw, 56px);
    gap: 42px
  }
}

/* Journal and article system. */
.news-intro {
  max-width: 1320px;
  padding-block: clamp(58px, 8vw, 110px)
}

.news-intro h1 {
  max-width: 10em
}

.news-intro>p:last-child {
  max-width: 48em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9
}

.news-index {
  padding-bottom: 70px
}

.news-categories {
  position: sticky;
  top: 94px;
  z-index: 8;
  display: flex;
  gap: 10px;
  padding: 14px 0;
  background: rgba(248, 244, 236, .96);
  overflow-x: auto;
  scrollbar-width: none
}

.news-categories::-webkit-scrollbar {
  display: none
}

.news-categories a {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid #d7cab8;
  border-radius: 999px;
  font-size: 14px
}

.news-categories a:hover {
  background: #e9dfce;
  color: var(--accent)
}

.news-group {
  padding: 65px 0 20px;
  border-top: 1px solid #d7cab8;
  scroll-margin-top: 160px
}

.news-group-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: end;
  margin-bottom: 28px
}

.news-group-heading .eyebrow {
  margin: 0
}

.news-group-heading h2 {
  font-family: var(--brush)
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.news-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 30px;
  border: 1px solid #d7cab8;
  border-radius: 18px;
  background: #faf7f0
}

.news-card .eyebrow {
  margin-bottom: 16px;
  color: var(--accent)
}

.news-card h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.45
}

.news-card h2 a:hover {
  color: var(--accent)
}

.news-card>p:not(.eyebrow) {
  display: -webkit-box;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.85;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.news-card>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid #e1d7c8;
  font-size: 13px;
  color: var(--muted)
}

.home-news {
  padding-block: clamp(70px, 8vw, 120px)
}

.article-page {
  padding-top: clamp(55px, 8vw, 105px)
}

.article-page>header {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 45px;
  text-align: center;
  border-bottom: 1px solid #d7cab8
}

.article-page>header h1 {
  font-family: var(--brush);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.28
}

.article-deck {
  max-width: 760px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9
}

.article-page>header time {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(250px, 320px);
  justify-content: center;
  gap: clamp(55px, 7vw, 105px);
  padding-top: 60px
}

.article-body {
  min-width: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2.05
}

.article-body p {
  margin-top: 24px
}

.article-body h2 {
  margin-top: 68px;
  font-family: var(--brush);
  font-size: clamp(34px, 4vw, 50px)
}

.article-body h3 {
  margin-top: 45px;
  font-size: 28px
}

.article-body strong {
  font-weight: 650;
  color: #2e2923
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px
}

.article-body ul,
.article-body ol {
  margin: 22px 0;
  padding-left: 1.5em
}

.article-body li+li {
  margin-top: 10px
}

.article-body blockquote {
  margin: 36px 0;
  padding: 22px 28px;
  border-left: 3px solid var(--accent);
  background: #eee5d7;
  color: #575047
}

.article-body hr {
  margin: 60px 0 30px;
  border: 0;
  border-top: 1px solid #d7cab8
}

.article-table-wrap {
  max-width: 100%;
  margin: 34px 0;
  overflow-x: auto;
  border: 1px solid #d7cab8
}

.article-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid #dfd4c4;
  border-right: 1px solid #dfd4c4;
  text-align: left;
  vertical-align: top
}

.article-table-wrap th {
  background: #e9dfce;
  color: #594d40;
  font-weight: 600
}

.article-table-wrap tr:last-child td {
  border-bottom: 0
}

.article-aside {
  position: sticky;
  top: 135px;
  align-self: start;
  padding: 30px;
  border: 1px solid #d7cab8;
  background: #f1eadf
}

.article-aside h2 {
  font-family: var(--brush);
  font-size: 34px
}

.article-aside p {
  color: var(--muted)
}

.article-aside .button {
  width: 100%;
  margin-top: 28px
}

.article-aside .text-link {
  display: block;
  margin-top: 18px
}

.article-related {
  padding-top: 100px
}

.article-related .news-card {
  min-height: 300px
}

@media(max-width:980px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px)
  }

  .article-aside {
    position: static
  }
}

@media(max-width:650px) {
  .news-categories {
    top: 116px
  }

  .news-group {
    scroll-margin-top: 190px
  }

  .news-group-heading {
    grid-template-columns: 1fr;
    gap: 5px
  }

  .news-grid {
    grid-template-columns: 1fr
  }

  .news-card {
    min-height: 0;
    padding: 24px
  }

  .article-page {
    width: calc(100% - 40px)
  }

  .article-page>header {
    text-align: left
  }

  .article-deck {
    font-size: 17px
  }

  .article-layout {
    padding-top: 35px
  }

  .article-body {
    font-size: 17px;
    line-height: 1.95
  }

  .article-body h2 {
    margin-top: 50px
  }

  .article-body blockquote {
    padding: 18px
  }

  .article-related {
    padding-top: 70px
  }
}

@media(max-width:620px) {
  .home-page .open-learning.wrap {
    margin-top: 55px;
    padding: 38px 24px;
    gap: 32px
  }
}
