/* ==========================================================================
   An Zhong Mandarin — Taichung
   Warm editorial palette, generous spacing, one accent per section.
   ========================================================================== */

/* Self-hosted subsets (SIL OFL 1.1). See assets/fonts/LICENSES.md.
   The CJK subset deliberately contains only the characters used on the page. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif TC";
  src: url("assets/fonts/noto-serif-tc.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d8;
  --cream: #fbf7ee;
  --white: #fffdf8;

  --ink: #1b2721;
  --ink-soft: #4b574f;

  --jade: #1f5c46;
  --jade-deep: #123b2c;
  --jade-ink: #0c2a20;

  --clay: #bd6544;
  --clay-ink: #9f4b2c;
  --clay-soft: #d9a78f;
  --gold: #c9a45c;

  --line: rgba(27, 39, 33, 0.12);
  --line-strong: rgba(27, 39, 33, 0.22);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cjk: "Noto Serif TC", "Songti TC", "PMingLiU", "SimSun", serif;

  --container: 1160px;
  --header-height: 76px;
}

/* Any inline CJK must use the serif CJK face, not the Latin serif stack. */
[lang="zh-Hant"] {
  font-family: var(--font-cjk);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

p {
  text-wrap: pretty;
}

body,
button,
input,
textarea {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--clay);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact :focus-visible,
.site-footer :focus-visible,
.pain :focus-visible {
  outline-color: var(--gold);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

[hidden] {
  display: none !important;
}

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 + p {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.section-head--center h2 + p {
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--jade);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.7;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.eyebrow--light {
  color: var(--gold);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.85rem, 5.5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
}

h1 em {
  color: var(--clay);
  font-style: italic;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
  border-bottom: 1px solid rgba(31, 92, 70, 0.35);
  padding-bottom: 0.2rem;
  color: var(--jade);
  font-size: 0.9rem;
  font-weight: 500;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  gap: 0.85rem;
  border-color: var(--jade);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary {
  background: var(--jade);
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(31, 92, 70, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--jade-deep);
  box-shadow: 0 16px 34px rgba(31, 92, 70, 0.25);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.35);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--jade);
  background: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: rgba(247, 242, 232, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 242, 232, 0.94);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--jade);
  color: var(--cream);
  line-height: 1;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-text span {
  margin-top: 0.22rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
  font-size: 0.86rem;
  font-weight: 500;
}

.site-nav a:not(.nav-cta) {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--ink);
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  background: var(--jade);
  color: var(--cream);
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--jade-deep);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Illustrations ---------- */

/* Shared inline-SVG sprite. Kept out of the flow and out of the a11y tree. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ill {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(55% 55% at 87% 12%, rgba(201, 164, 92, 0.14), transparent 68%),
    radial-gradient(45% 45% at 4% 72%, rgba(31, 92, 70, 0.07), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-lede {
  max-width: 36rem;
  margin-top: 1.6rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  margin-top: 2.4rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-points li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--clay);
}

/* Portrait */

.portrait-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding: 1.5rem 0 2.5rem;
}

.portrait-halo {
  position: absolute;
  inset: 8% 3% 10% 9%;
  z-index: 0;
  border-radius: 260px 260px 30px 30px;
  background: linear-gradient(155deg, #e6c1a8 0%, var(--clay-soft) 55%, #c98f6f 100%);
  transform: rotate(3.5deg);
}

.portrait-halo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 253, 248, 0.4);
  border-radius: 250px 250px 22px 22px;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 8px solid rgba(255, 253, 248, 0.92);
  border-radius: 260px 260px 28px 28px;
  background: var(--paper-2);
  box-shadow: 0 30px 70px rgba(24, 35, 29, 0.2);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.portrait-pill {
  position: absolute;
  top: 2.4rem;
  right: -0.5rem;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(24, 35, 29, 0.12);
  color: var(--jade);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.flashcard {
  position: absolute;
  bottom: 1.6rem;
  left: -1rem;
  z-index: 3;
  display: grid;
  min-width: 156px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.2rem 1.1rem;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(24, 35, 29, 0.16);
  transform: rotate(-6deg);
}

.flashcard-label {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flashcard-hanzi {
  margin-top: 0.35rem;
  color: var(--ink);
  font-family: var(--font-cjk);
  font-size: 2rem;
  line-height: 1.1;
}

.flashcard-pinyin {
  margin-top: 0.25rem;
  color: var(--jade);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.flashcard-meaning {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

/* ---------- Trust band ---------- */

.trust-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.52);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  padding-block: 1.3rem;
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.trust-row span::before {
  content: "✓";
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 92, 70, 0.1);
  color: var(--jade);
  font-size: 0.6rem;
  font-weight: 600;
}

/* ---------- Pain section ---------- */

.pain {
  position: relative;
  overflow: hidden;
  background: var(--jade-deep);
  color: var(--cream);
}

.pain::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -45%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.17), transparent 66%);
  pointer-events: none;
}

.pain h2 {
  color: var(--cream);
}

.pain .section-head p {
  color: rgba(251, 247, 238, 0.68);
}

.pain-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.pain-card {
  border-top: 1px solid rgba(251, 247, 238, 0.22);
  padding-top: 1.5rem;
}

.pain-index {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.85rem;
}

.pain-art {
  width: min(100%, 300px);
  margin: 1.1rem 0 1.35rem;
}

.pain-quote {
  margin-top: 1rem;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.pain-card p:last-child {
  margin-top: 0.95rem;
  color: rgba(251, 247, 238, 0.64);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* ---------- Method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.method-intro {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.method-intro > p:not(.eyebrow) {
  max-width: 34ch;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.method-art {
  width: min(100%, 340px);
  margin-top: 2.2rem;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: clamp(1.6rem, 3vw, 2.1rem);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  padding-top: 0.25rem;
  color: var(--clay-ink);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.step h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
}

.step p {
  max-width: 52ch;
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.78;
}

/* ---------- Features ---------- */

.features {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.4vw, 2.15rem);
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature:nth-child(1) {
  grid-column: span 7;
}

.feature:nth-child(2) {
  grid-column: span 5;
}

.feature:nth-child(3) {
  grid-column: span 5;
}

.feature:nth-child(4) {
  grid-column: span 7;
}

.feature:nth-child(5),
.feature:nth-child(6) {
  grid-column: span 6;
}

.feature:hover {
  border-color: rgba(31, 92, 70, 0.3);
  box-shadow: 0 20px 50px rgba(24, 35, 29, 0.08);
  transform: translateY(-4px);
}

.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: rgba(31, 92, 70, 0.08);
  color: var(--jade);
}

.feature-icon svg {
  width: 34px;
  height: 34px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover .feature-icon svg {
  transform: scale(1.06) rotate(-2deg);
}

.tag {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(31, 92, 70, 0.08);
  color: var(--jade);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
}

.feature p {
  max-width: 52ch;
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.72;
}

.feature--accent {
  border-color: transparent;
  background: linear-gradient(150deg, #23664e 0%, var(--jade) 45%, #174936 100%);
  color: var(--cream);
}

.feature--accent h3 {
  color: var(--cream);
}

.feature--accent p {
  color: rgba(251, 247, 238, 0.88);
}

.feature--accent .feature-icon {
  background: rgba(251, 247, 238, 0.12);
  color: var(--gold);
}

.feature--accent .tag {
  background: rgba(251, 247, 238, 0.12);
  color: var(--cream);
}

.feature--accent:hover {
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(18, 59, 44, 0.28);
}

/* Keep hover lift after the scroll-reveal transform is cleared. */
.js .feature.reveal.is-visible:hover {
  transform: translateY(-4px);
}

/* ---------- Characters ---------- */

.characters {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.characters-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.characters-copy > p:not(.eyebrow) {
  max-width: 42ch;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

.char-build {
  display: grid;
  gap: 1rem;
}

.char-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(0.9rem, 1.8vw, 1.25rem);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(24, 35, 29, 0.06);
}

.char-row:nth-child(2) {
  margin-left: clamp(0rem, 3vw, 2.5rem);
}

.char-tile {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 0.15rem;
  border-radius: 12px;
  padding: 0.75rem 0.4rem 0.7rem;
  background: var(--paper);
}

.char-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.1rem;
}

.char-hanzi {
  color: var(--ink);
  font-family: var(--font-cjk);
  font-size: 2.05rem;
  line-height: 1.15;
}

.char-pinyin {
  color: var(--jade);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.char-meaning {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.char-op {
  color: var(--clay);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1;
}

.char-tile--result {
  background: linear-gradient(150deg, #23664e 0%, var(--jade) 55%, #174936 100%);
}

.char-tile--result .char-hanzi {
  color: var(--cream);
}

.char-tile--result .char-pinyin {
  color: var(--cream);
}

.char-tile--result .char-meaning {
  color: rgba(251, 247, 238, 0.9);
}

.char-note {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.65;
}

/* ---------- Testimonial ---------- */

.testimonial {
  overflow: hidden;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.quote-mark {
  height: 0.7em;
  color: var(--clay);
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.8;
  opacity: 0.45;
}

.quote-wrap blockquote p {
  margin-top: 0.4rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.quote-attrib {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.attrib-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--jade);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.quote-attrib strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}

.quote-attrib div span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.quote-note {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.letter-card {
  display: flex;
  width: 100%;
  max-width: 560px;
  flex-direction: column;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(24, 35, 29, 0.12);
  text-align: left;
  transform: rotate(1.8deg);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.letter-card:hover {
  box-shadow: 0 30px 70px rgba(24, 35, 29, 0.18);
  transform: rotate(0deg) translateY(-4px);
}

.js .letter-card.reveal.is-visible {
  transform: rotate(1.8deg);
}

.js .letter-card.reveal.is-visible:hover {
  transform: rotate(0deg) translateY(-4px);
}

.letter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.3rem 0.9rem;
  color: var(--jade);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.letter-paper {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.letter-paper img {
  width: 100%;
  height: auto;
}

/* ---------- About ---------- */

.about {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.about-media {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 7% -6% 9% 10%;
  border-radius: 180px 180px 20px 20px;
  background: var(--clay-soft);
  transform: rotate(-3deg);
}

.about-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 8px solid rgba(255, 253, 248, 0.9);
  border-radius: 180px 180px 20px 20px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(24, 35, 29, 0.14);
}

.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.about-caption {
  display: block;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.about-copy > p:not(.eyebrow):not(.signature) {
  max-width: 56ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

.signature {
  margin-top: 1.5rem;
  color: var(--clay);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.about-badges li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 253, 248, 0.55);
  color: var(--jade);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.faq-intro p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-intro a {
  border-bottom: 1px solid rgba(31, 92, 70, 0.35);
  color: var(--jade);
}

.faq-intro a:hover {
  border-color: var(--jade);
}

.faq-art {
  width: min(100%, 292px);
  margin-top: 2.4rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 1.35rem 2.6rem 1.35rem 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.3rem;
  color: var(--jade);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  max-width: 62ch;
  padding: 0 2.6rem 1.5rem 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.78;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--jade-deep);
  color: var(--cream);
}

.contact::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -12%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.16), transparent 66%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.contact-aside {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 2rem;
}

.contact h2 {
  max-width: 13ch;
  color: var(--cream);
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
}

.contact-copy > p:not(.eyebrow):not(.contact-note) {
  max-width: 44ch;
  margin-top: 1.2rem;
  color: rgba(251, 247, 238, 0.72);
  font-size: 0.98rem;
  line-height: 1.8;
}

.contact-note {
  margin-top: 1.4rem;
  color: var(--gold);
  font-size: 0.84rem;
  line-height: 1.6;
}

.contact-art {
  width: min(100%, 300px);
  margin-top: -0.4rem;
  justify-self: start;
}

/* Trial lesson form */

.contact-panel {
  border: 1px solid rgba(251, 247, 238, 0.16);
  border-radius: 22px;
  padding: clamp(1.35rem, 2.8vw, 2.3rem);
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(6, 26, 19, 0.35);
  color: var(--ink);
}

.contact-panel .eyebrow {
  color: var(--jade);
}

.contact-panel :focus-visible {
  outline-color: var(--clay);
}

.trial-form-head h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

.trial-form-head > p:not(.eyebrow) {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.trial-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.6rem;
}

.field {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label,
.field legend {
  padding: 0;
  color: var(--jade);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.field-optional {
  color: var(--ink-soft);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(75, 87, 79, 0.62);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(27, 39, 33, 0.34);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--jade);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 92, 70, 0.22);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--clay-ink);
  background: #fffaf7;
}

.field-error {
  color: var(--clay-ink);
  font-size: 0.78rem;
  line-height: 1.5;
}

.field-hint {
  margin-top: -0.35rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.field--choice {
  min-inline-size: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.field--choice legend {
  margin-bottom: 0.45rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field .choice {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.choice:hover {
  border-color: var(--jade);
}

.choice:has(input:checked) {
  border-color: var(--jade);
  background: rgba(31, 92, 70, 0.09);
  color: var(--jade-deep);
  font-weight: 500;
}

.choice input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--jade);
}

.trial-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.trial-turnstile:not([hidden]) {
  margin-block: 0.2rem;
}

.trial-submit {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.trial-submit .btn {
  width: 100%;
}

.trial-submit .btn[disabled] {
  opacity: 0.68;
  cursor: progress;
  transform: none;
}

.trial-privacy {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.trial-status {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

.trial-status:empty {
  display: none;
}

.trial-status[data-tone="error"] {
  color: var(--clay-ink);
}

.trial-status[data-tone="pending"] {
  color: var(--ink-soft);
}

.trial-success {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.4rem;
  border: 1px solid rgba(31, 92, 70, 0.22);
  border-radius: 14px;
  padding: 1.4rem;
  background: rgba(31, 92, 70, 0.06);
}

.trial-success-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--jade);
  color: var(--cream);
  font-size: 1.05rem;
}

.trial-success h3 {
  font-size: 1.4rem;
}

.trial-success p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.trial-success .trial-success-note {
  font-size: 0.8rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-card {
  border: 1px solid rgba(251, 247, 238, 0.14);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 253, 248, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
  border-color: rgba(201, 164, 92, 0.42);
  background: rgba(255, 253, 248, 0.07);
}

.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-label {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-hint {
  color: rgba(251, 247, 238, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.contact-desc {
  margin-top: 0.35rem;
  color: rgba(251, 247, 238, 0.7);
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-reveal {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  border: 1px solid rgba(251, 247, 238, 0.3);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-reveal:hover {
  border-color: rgba(251, 247, 238, 0.55);
  background: rgba(251, 247, 238, 0.1);
}

.contact-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.8rem;
  margin-top: 0.95rem;
}

.contact-value a {
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(201, 164, 92, 0.55);
  color: var(--cream);
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-value a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.copy-btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(251, 247, 238, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: rgba(251, 247, 238, 0.72);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  border-color: rgba(251, 247, 238, 0.5);
  color: var(--cream);
}

.copy-btn svg {
  width: 13px;
  height: 13px;
}

.contact-privacy {
  position: relative;
  z-index: 1;
  margin-top: 2.6rem;
  color: rgba(251, 247, 238, 0.68);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-align: center;
}

.contact-privacy span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: rgba(201, 164, 92, 0.7);
  vertical-align: middle;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(251, 247, 238, 0.08);
  padding-block: 2.3rem;
  background: var(--jade-ink);
  color: rgba(251, 247, 238, 0.55);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer-brand strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
}

.footer-brand span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  font-size: 0.78rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-note {
  font-size: 0.67rem;
  letter-spacing: 0.02em;
}

/* ---------- Letter dialog ---------- */

.letter-modal {
  width: min(860px, 92vw);
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
}

body.modal-open {
  overflow: hidden;
}

.letter-modal::backdrop {
  background: rgba(12, 42, 32, 0.74);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.letter-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 1.5rem;
  background: rgba(247, 242, 232, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.letter-modal-head .eyebrow {
  margin-bottom: 0.55rem;
}

.letter-modal-head h2 {
  font-size: 1.32rem;
}

.icon-btn {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: var(--paper-2);
}

.letter-modal-body {
  padding: 1.2rem 1.5rem 0.6rem;
  background: #fff;
}

.letter-modal-body a {
  display: block;
  cursor: zoom-in;
}

.letter-modal-body img {
  width: 100%;
  height: auto;
}

.letter-caption {
  padding: 0.85rem 1.5rem 1.4rem;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.6;
}

.letter-caption a {
  border-bottom: 1px solid rgba(31, 92, 70, 0.4);
  color: var(--jade);
  font-weight: 500;
}

.letter-caption a:hover {
  border-color: var(--jade);
}

.contact-fallback {
  display: none;
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--cream);
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: center;
}

html:not(.js) .contact-fallback {
  display: block;
}

html:not(.js) .contact-reveal {
  display: none;
}

/* ---------- Accessibility helpers ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  border-radius: 0 0 10px 10px;
  padding: 0.8rem 1.2rem;
  background: var(--jade);
  color: var(--cream);
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Script did not finish initialising: reveal everything without changing the
   JS state, so a slow load never flashes the no-JS layout. */
.js-failsafe .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js-failsafe .contact-fallback {
  display: block;
}

.js-failsafe .contact-reveal {
  display: none;
}

.step:nth-child(2) {
  --reveal-delay: 0.05s;
}

.step:nth-child(3) {
  --reveal-delay: 0.1s;
}

.step:nth-child(4) {
  --reveal-delay: 0.15s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  h1 {
    max-width: 16ch;
  }

  .portrait-stage {
    max-width: 420px;
  }

  .method-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .method-intro,
  .faq-intro {
    position: static;
  }

  .method-intro > p:not(.eyebrow) {
    max-width: 52ch;
  }

  .testimonial-grid,
  .about-grid,
  .contact-grid,
  .characters-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .contact-aside {
    display: contents;
  }

  .contact-copy {
    order: 1;
  }

  .contact-art {
    order: 2;
    max-width: 300px;
  }

  .contact-panel {
    order: 3;
  }

  .contact-cards {
    order: 4;
  }

  .letter-card {
    max-width: 520px;
  }

  .about-media {
    max-width: 330px;
  }

  .feature,
  .feature:nth-child(n) {
    grid-column: span 6;
  }
}

/* The sticky intros now carry illustrations. On short laptop viewports a
   sticky panel taller than the screen would clip the artwork, so let it
   scroll normally instead. */
@media (min-width: 1021px) and (max-height: 820px) {
  .method-intro {
    position: static;
  }
}

@media (min-width: 1021px) and (max-height: 700px) {
  .faq-intro {
    position: static;
  }
}

@media (max-width: 880px) {
  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 24px 1.3rem;
    background: rgba(247, 242, 232, 0.98);
    box-shadow: 0 22px 40px rgba(24, 35, 29, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav a:not(.nav-cta) {
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0.2rem;
    font-size: 0.95rem;
  }

  .js .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.85rem;
    padding: 0.8rem 1rem;
    text-align: center;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  html:not(.js) .site-nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem 1.1rem;
    padding: 0 0 0.9rem;
    font-size: 0.8rem;
  }

  html:not(.js) .nav-cta {
    margin-top: 0;
    padding: 0.45rem 0.8rem;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 1.9rem;
  }

  .pain-card {
    padding-top: 1.3rem;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--container), 100% - 36px);
  }

  .header-inner {
    gap: 1rem;
  }

  .brand-text span {
    font-size: 0.62rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  h1 {
    font-size: clamp(2.5rem, 10.5vw, 3.4rem);
    max-width: 100%;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-points {
    gap: 0.75rem 1.1rem;
    font-size: 0.64rem;
  }

  .portrait-stage {
    max-width: 340px;
  }

  .flashcard {
    bottom: 1.1rem;
    left: 0;
    min-width: 138px;
    padding: 0.8rem 0.95rem 0.9rem;
  }

  .flashcard-hanzi {
    font-size: 1.65rem;
  }

  .portrait-pill {
    top: 1.9rem;
    right: 0;
    font-size: 0.55rem;
  }

  .pain-art {
    max-width: 280px;
  }

  .method-art {
    max-width: 300px;
  }

  .faq-art {
    max-width: 240px;
  }

  .contact-art {
    max-width: 240px;
  }

  .char-icon {
    width: 34px;
    height: 34px;
  }

  .trust-row {
    flex-direction: column;
    gap: 0.7rem;
    padding-block: 1.15rem;
  }

  .steps li {
    grid-template-columns: 2.2rem 1fr;
    gap: 0.9rem;
  }

  .feature,
  .feature:nth-child(n) {
    grid-column: span 12;
  }

  .bento {
    gap: 1rem;
  }

  .testimonial-grid {
    gap: 2.5rem;
  }

  .quote-mark {
    font-size: 4.5rem;
  }

  .letter-card {
    transform: rotate(1deg);
  }

  .js .letter-card.reveal.is-visible {
    transform: rotate(1deg);
  }

  .about-grid {
    gap: 2.5rem;
  }

  .char-row:nth-child(2) {
    margin-left: 0;
  }

  .char-tile {
    padding: 0.65rem 0.3rem 0.6rem;
  }

  .char-hanzi {
    font-size: 1.8rem;
  }

  .faq-list summary {
    padding-right: 2.2rem;
  }

  .contact-grid {
    gap: 2.2rem;
  }

  .contact-panel {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact h2 {
    max-width: 100%;
  }

  .contact-value a {
    font-size: 0.98rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .letter-modal-head {
    padding: 1rem 1.1rem;
  }

  .letter-modal {
    width: min(860px, 96vw);
  }

  .letter-modal-head h2 {
    font-size: 1.1rem;
  }

  .letter-modal-body {
    padding: 0.8rem 1.1rem 0.4rem;
  }

  .letter-caption {
    padding: 0.7rem 1.1rem 1.1rem;
  }
}

/* Very narrow phones: let the character equation wrap the result tile. */
@media (max-width: 420px) {
  .char-row {
    grid-template-columns: 1fr auto 1fr auto;
    gap: 0.5rem 0.45rem;
    padding: 0.8rem 0.7rem;
  }

  .char-tile {
    min-width: 0;
    padding-inline: 0.35rem;
  }

  .char-hanzi {
    font-size: 1.65rem;
  }

  .char-tile--result {
    grid-column: 1 / -1;
  }

  .char-op {
    font-size: 1.05rem;
  }

  .js .site-nav {
    padding-inline: 18px;
  }

  .contact-fallback {
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
  }
}

/* ---------- Phone refinements ----------
   Most visitors arrive on a phone. These rules come after the generic
   max-width: 700px block on purpose, so they win over it. */

.mobile-cta {
  display: none;
}

@media (max-width: 700px) {
  /* Menu: a full-height sheet with large, easy-to-tap links. */
  .js .site-nav {
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    max-height: none;
    padding: 0.4rem 18px calc(1.6rem + env(safe-area-inset-bottom));
    background: var(--paper);
    box-shadow: none;
  }

  .js .site-nav a:not(.nav-cta) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 0.1rem;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.01em;
  }

  .js .site-nav a:not(.nav-cta)::after,
  .js .site-nav a:not(.nav-cta):hover::after {
    display: block;
    position: static;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid var(--clay);
    border-right: 1.5px solid var(--clay);
    background: none;
    transform: rotate(45deg);
  }

  .js .site-nav .nav-cta {
    margin-top: 1.6rem;
    padding: 1.05rem 1rem;
    font-size: 1rem;
  }

  body:has(.site-nav.is-open) {
    overflow: hidden;
  }

  /* Hero */
  .hero-points {
    font-size: 0.7rem;
  }

  .portrait-stage {
    max-width: 310px;
  }

  /* Trust band: a tidy 2 x 2 grid instead of a long column. */
  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
  }

  .trust-row span {
    align-items: flex-start;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  /* Pain points: swipeable cards rather than three tall stacked panels. */
  .pain-grid {
    display: flex;
    gap: 12px;
    margin-inline: -18px;
    padding: 0 18px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
  }

  .pain-grid::-webkit-scrollbar {
    display: none;
  }

  .pain-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
    border: 1px solid rgba(251, 247, 238, 0.16);
    border-radius: 20px;
    padding: 1.3rem 1.25rem 1.45rem;
    background: rgba(251, 247, 238, 0.04);
  }

  .pain-art {
    max-width: 220px;
    margin: 0.5rem auto 0.9rem;
  }

  .pain-quote {
    font-size: 1.2rem;
  }

  /* Illustrations: supporting, not dominating, on a small screen. */
  .method-art {
    max-width: 240px;
  }

  .faq-art,
  .contact-art {
    max-width: 190px;
  }

  /* Features: tighter cards so the six benefits scan quickly. */
  .feature {
    padding: 1.35rem 1.3rem 1.45rem;
  }

  .feature-top {
    margin-bottom: 1rem;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  /* Footer */
  .site-footer {
    padding-bottom: calc(2.3rem + 84px + env(safe-area-inset-bottom));
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0.8rem 1.8rem;
    font-size: 0.86rem;
  }

  /* Floating booking bar */
  .js .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(251, 247, 238, 0.12);
    border-radius: 999px;
    padding: 0.5rem 0.5rem 0.5rem 1.15rem;
    background: rgba(18, 59, 44, 0.94);
    color: var(--cream);
    box-shadow: 0 18px 40px -12px rgba(12, 42, 32, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(calc(100% + 28px));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .js .mobile-cta.is-visible {
    transform: none;
  }

  body:has(.site-nav.is-open) .mobile-cta {
    transform: translateY(calc(100% + 28px));
  }

  html.js-failsafe .mobile-cta {
    display: none;
  }

  .mobile-cta-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
  }

  .mobile-cta-text strong {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 500;
  }

  .mobile-cta-text span {
    margin-top: 0.2rem;
    color: rgba(251, 247, 238, 0.66);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-cta-btn {
    min-height: 46px;
    flex: 0 0 auto;
    padding: 0 1.1rem;
    background: var(--cream);
    color: var(--jade-deep);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
  }
}

/* ---------- Print ---------- */

@media print {
  html,
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .skip-link,
  .nav-toggle,
  .mobile-cta,
  .hero-actions,
  .letter-modal,
  .contact-panel,
  .contact-reveal,
  .copy-btn,
  .contact-fallback,
  .contact-privacy,
  .trial-status,
  .ill,
  .feature-icon {
    display: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .pain,
  .contact,
  .site-footer,
  .feature--accent,
  .char-tile--result {
    background: #fff !important;
    color: #111 !important;
  }

  .pain h2,
  .pain .section-head p,
  .pain-card p,
  .pain-quote,
  .contact h2,
  .contact-copy > p,
  .contact-note,
  .contact-label,
  .contact-hint,
  .contact-desc,
  .site-footer,
  .site-footer strong,
  .feature--accent h3,
  .feature--accent p,
  .feature--accent .tag,
  .pain-index,
  .contact-value a,
  .char-tile--result .char-hanzi,
  .char-tile--result .char-pinyin,
  .char-tile--result .char-meaning {
    color: #111 !important;
  }

  .letter-card {
    transform: none;
    box-shadow: none;
  }

  .letter-caption a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- JS fail-safe ----------
   script.js did not initialise. Content is revealed above; also expose the
   navigation that the JS-only menu button would otherwise hide. */

@media (max-width: 880px) {
  html.js-failsafe .header-inner {
    flex-wrap: wrap;
  }

  html.js-failsafe .nav-toggle {
    display: none;
  }

  html.js-failsafe .site-nav {
    position: static;
    display: flex;
    max-height: none;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 1.1rem;
    overflow: visible;
    border-bottom: 0;
    padding: 0 0 0.9rem;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-size: 0.8rem;
  }

  html.js-failsafe .site-nav a:not(.nav-cta) {
    border-bottom: 0;
    padding: 0.25rem 0;
  }

  html.js-failsafe .nav-cta {
    margin-top: 0;
    padding: 0.45rem 0.8rem;
  }
}

/* ==========================================================================
   Pricing page (/pricing/)
   ========================================================================== */

.faq-list details p a {
  border-bottom: 1px solid rgba(31, 92, 70, 0.35);
  color: var(--jade);
}

.faq-list details p a:hover {
  border-color: var(--jade);
}

.site-nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--ink);
}

.site-nav a[aria-current="page"]:not(.nav-cta)::after {
  transform: scaleX(1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.breadcrumb a {
  border-bottom: 1px solid var(--line-strong);
}

.breadcrumb a:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.price-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.price-lede {
  max-width: 54ch;
  margin-top: 1.6rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--cream);
  box-shadow: 0 24px 60px rgba(18, 59, 44, 0.12);
}

.price-card-label {
  color: var(--jade);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.price-figure {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0 1.6rem;
}

.price-amount {
  color: var(--jade-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-unit {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.price-points {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.8rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.93rem;
}

.price-points li {
  position: relative;
  padding-left: 1.6rem;
}

.price-points li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0.1rem;
  width: 0.5rem;
  height: 0.85rem;
  border-right: 2px solid var(--jade);
  border-bottom: 2px solid var(--jade);
  transform: rotate(40deg);
}

.price-card-cta {
  width: 100%;
}

.price-card-note {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
}

.price-included {
  background: var(--paper-2);
}

.included-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: included;
}

.included-list li {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.5rem;
  background: var(--white);
  counter-increment: included;
}

.included-list li::before {
  content: counter(included, decimal-leading-zero);
  display: block;
  margin-bottom: 1.1rem;
  color: var(--clay);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.included-list h3 {
  font-size: 1.15rem;
}

.included-list p,
.price-plan-copy p:not(.eyebrow),
.compare-card li,
.price-cta-inner p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.75;
}

.included-list p {
  margin-top: 0.6rem;
}

.price-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.price-plan-copy p:not(.eyebrow) {
  max-width: 54ch;
  margin-top: 1rem;
  font-size: 1rem;
}

.price-plan-copy h2 {
  margin-bottom: 0.5rem;
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.price-table caption {
  padding: 1.2rem 1.4rem 0.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.price-table thead th {
  border-top: 0;
  color: var(--jade);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-table tbody th {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.price-compare {
  background: var(--paper-2);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.2rem);
  background: var(--white);
}

.compare-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
}

.compare-card--accent {
  border-color: transparent;
  background: var(--jade-deep);
}

.compare-card--accent h3 {
  color: var(--cream);
}

.compare-card--accent li {
  color: rgba(251, 247, 238, 0.78);
}

.compare-card--accent li::marker {
  color: var(--gold);
}

.price-cta {
  background: var(--paper-2);
  text-align: center;
}

.price-cta-inner {
  max-width: 640px;
}

.price-cta-inner p {
  margin-top: 1rem;
  font-size: 1rem;
}

.price-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 1020px) {
  .price-hero-grid,
  .price-plan-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .price-table {
    font-size: 0.88rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.85rem 0.75rem;
  }

  .price-table thead th {
    white-space: normal;
    letter-spacing: 0.08em;
  }

  .price-table caption {
    padding-inline: 0.75rem;
  }

  .price-cta-actions .btn {
    width: 100%;
  }
}
