/* ===== tokens ===== */
:root {
  --bg: #FBF6EC;           /* rice paper */
  --bg-2: #F4EBDA;
  --surface: #FFFDF8;
  --text: #241C17;
  --muted: #6E6158;
  --line: #E7DCC8;
  --red: #C8102E;
  --red-2: #A50D26;
  --gold: #B8901C;
  --gold-soft: #F3E3B0;
  --ink-stroke: #241C17;
  --grid: #E9DEC9;
  --ink-bg: #1E1714;       /* dark band */
  --ink-text: #F5ECDD;
  --shadow: 0 1px 2px rgba(60,30,10,.06), 0 10px 30px -12px rgba(60,30,10,.18);
  --r: 18px;
  --f-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-en: "Fraunces", Georgia, serif;
  --f-zh: "Noto Serif SC", "Songti SC", serif;
  --f-brush: "Ma Shan Zheng", "Noto Serif SC", cursive;
  --f-py: "Noto Serif", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110E10; --bg-2: #18131A; --surface: #1D181C; --text: #F3EADB; --muted: #B3A595;
    --line: #2F272C; --red: #EF4A4F; --red-2: #D83A40; --gold: #E2B84A; --gold-soft: #3A2F18;
    --ink-stroke: #F3EADB; --grid: #3A3035; --ink-bg: #0A0809; --ink-text: #F3EADB;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110E10; --bg-2: #18131A; --surface: #1D181C; --text: #F3EADB; --muted: #B3A595;
  --line: #2F272C; --red: #EF4A4F; --red-2: #D83A40; --gold: #E2B84A; --gold-soft: #3A2F18;
  --ink-stroke: #F3EADB; --grid: #3A3035; --ink-bg: #0A0809; --ink-text: #F3EADB;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.zh, .flash__zh, .quiz__zh, .course__zh, .quote__zh, .writer__static { unicode-bidi: isolate; direction: ltr; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.75 var(--f-ar); overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
html[lang="en"] body { line-height: 1.65; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
html[lang="en"] h1, html[lang="en"] h2 { font-family: var(--f-en); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn svg { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--red) 70%, transparent); }
.btn--red:hover { background: var(--red-2); }
.btn--gold { background: var(--gold); color: #1E1714; font-size: 1.1rem; }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--sm { padding: .5em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.iconbtn .i-moon { fill: currentColor; stroke: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }

/* ===== seal ===== */
.seal {
  display: inline-grid; place-items: center; background: var(--red); color: #FFF4E0;
  font-family: var(--f-brush); border-radius: 8px; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.seal--sm { width: 40px; height: 40px; font-size: 26px; transform: rotate(-4deg); }
.seal--stamp {
  position: absolute; inset-inline-end: -14px; bottom: -14px; width: 74px; height: 74px;
  font-size: 22px; text-align: center; line-height: 1.05; transform: rotate(8deg);
  box-shadow: 0 6px 18px -6px rgba(200,16,46,.6), inset 0 0 0 3px rgba(255,255,255,.3);
}

/* ===== nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-size: 1.02rem; }
.brand__txt small { font-family: var(--f-zh); color: var(--muted); font-size: .8rem; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav__links a:hover { color: var(--red); background: var(--bg-2); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; }
@media (max-width: 920px) {
  .nav__links {
    position: absolute; top: 70px; inset-inline: 0; flex-direction: column; padding: 12px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px; font-size: 1.05rem; }
  .nav__tools { margin-inline-start: auto; }
  .nav__burger { display: grid; }
}
@media (max-width: 520px) { .nav__cta { display: none; } .brand__txt small { display: none; } }

/* ===== hero ===== */
.hero { position: relative; overflow: hidden; padding: 64px 0 90px; }
.clouds {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--red) 12%, transparent), transparent 70%),
    radial-gradient(50% 40% at 5% 90%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
}
.clouds::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 45c10 0 10-10 20-10s10 10 20 10 10-10 20-10 10 10 20 10 10-10 20-10 10 10 20 10' fill='none' stroke='%23B8901C' stroke-opacity='.35' stroke-width='1.2'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, transparent, #000 60%, transparent);
}
.lanterns { position: absolute; inset: 0; pointer-events: none; }
.lantern { position: absolute; top: -8px; width: 54px; height: 108px; transform-origin: 50% 0; animation: swing 4.5s ease-in-out infinite; }
.lantern svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255,170,80,.55)) drop-shadow(0 10px 18px rgba(200,16,46,.45)); }
.lantern__glow {
  position: absolute; left: 50%; top: 46%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,214,130,.75) 0%, rgba(255,140,60,.32) 28%, rgba(255,90,40,.12) 48%, transparent 68%);
  animation: flicker 3.2s ease-in-out infinite;
}
:root:not([data-theme="dark"]) .lantern__glow { mix-blend-mode: normal; opacity: .75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lantern__glow { mix-blend-mode: screen; } }
.l1 { inset-inline-start: 4%; }
.l2 { inset-inline-start: 13%; top: -40px; width: 40px; height: 80px; animation-delay: -1.5s, 0s; }
.l2 .lantern__glow { animation-delay: -1.1s; }
.l3 { inset-inline-end: 3%; top: -30px; animation-delay: -3s; }
.l3 .lantern__glow { animation-delay: -2.2s; }
@keyframes swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes flicker {
  0%,100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  55% { opacity: .7; transform: translate(-50%, -50%) scale(.96); }
  75% { opacity: .95; transform: translate(-50%, -50%) scale(1.04); }
}
@media (max-width: 720px) { .l2 { display: none; } .l1 { inset-inline-start: auto; inset-inline-end: 18%; top: -36px; width: 40px; height: 80px; } }

.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 20%, transparent); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); margin: 22px 0 18px; }
.hero h1 > span { display: block; }
.ink { color: var(--red); position: relative; width: fit-content; }
.ink::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: .02em; height: .32em; z-index: -1;
  background: var(--gold); opacity: .28; border-radius: 40% 60% 50% 40%; transform: rotate(-1deg);
}
.hero__zh { width: fit-content; font-family: var(--f-brush); font-weight: 400; font-size: .72em; color: var(--gold); margin-top: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.lead b { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__cta.center { justify-content: center; }
.hero__cta--main { margin-bottom: 92px; align-items: flex-start; }
.cta-wrap { position: relative; display: inline-flex; }
.btn--glow { animation: ctaGlow 2.4s ease-in-out infinite; }
@keyframes ctaGlow { 0%,100% { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--red) 70%, transparent), 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent); } 50% { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--red) 70%, transparent), 0 0 0 10px transparent; } }
.cta-arrow { position: absolute; top: calc(100% + 2px); inset-inline-start: 58%; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; white-space: nowrap; }
.cta-arrow svg { width: 96px; height: 72px; flex: none; color: var(--gold); transform: scaleX(-1); }
html[dir="ltr"] .cta-arrow svg { transform: none; }
.cta-arrow path { stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-arrow__line { stroke-dasharray: 160; stroke-dashoffset: 160; animation: drawArrow 1.1s .6s ease-out forwards, nudge 2.4s 2s ease-in-out infinite; }
.cta-arrow__head { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawArrow .35s 1.6s ease-out forwards; }
.cta-arrow__txt { font-family: "Aref Ruqaa", var(--f-ar); font-weight: 700; font-size: 1.35rem; color: var(--red); transform: rotate(-4deg) translateY(10px); opacity: 0; animation: fadeIn .5s 1.7s forwards; }
html[lang="en"] .cta-arrow__txt { font-family: "Caveat", cursive; font-size: 1.6rem; transform: rotate(-4deg) translateY(12px); }
.cta-arrow svg { animation: bobArrow 2.4s 2s ease-in-out infinite; }
@keyframes drawArrow { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes nudge { 0%,100% { stroke-dashoffset: 0; } }
@keyframes bobArrow { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 420px) { .cta-arrow { inset-inline-start: 40%; } .cta-arrow svg { width: 76px; height: 58px; } .cta-arrow__txt { font-size: 1.15rem; } }
.hint { font-size: .9rem; color: var(--muted); }

.hero__art { display: flex; justify-content: center; }
.scroll-card {
  position: relative; width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 18px 18px 22px; box-shadow: var(--shadow);
}
.scroll-card::before, .scroll-card::after { /* scroll rods */
  content: ""; position: absolute; inset-inline: -10px; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #7A4B1E, #B67A36, #7A4B1E);
}
.scroll-card::before { top: -6px; } .scroll-card::after { bottom: -6px; }
.scroll-card__top { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); margin: 6px 4px 10px; }
.replay { border: 0; background: none; padding: 4px 8px; margin: -4px -8px; border-radius: 8px; color: var(--red); font-weight: 600; font-size: .88rem; }
.replay:hover { background: var(--bg-2); }
.tag { direction: ltr; font-family: var(--f-en); font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); }
.writer {
  display: flex; justify-content: center; gap: 8px; min-height: 170px; align-items: center; direction: ltr;
}
.writer__slot {
  border-radius: 10px;
  background:
    linear-gradient(var(--grid), var(--grid)) center/1px 100% no-repeat,
    linear-gradient(var(--grid), var(--grid)) center/100% 1px no-repeat,
    color-mix(in srgb, var(--bg-2) 60%, transparent);
  outline: 1.5px solid color-mix(in srgb, var(--red) 35%, transparent);
}
.writer__static { font-family: var(--f-zh); font-size: 120px; line-height: 1.2; color: var(--ink-stroke); }
.writer__info { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 12px; }
.py { font-family: var(--f-py); font-size: 1.5rem; color: var(--red); font-style: italic; }
.mean { color: var(--muted); }

/* pinyin tooltip */
.zh[data-py] { position: relative; cursor: help; border-bottom: 2px dotted color-mix(in srgb, var(--gold) 70%, transparent); }
.zh[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  background: #241C17; color: #FFF4E0; box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); font: 500 .85rem/1.3 var(--f-ar); padding: 7px 12px; border-radius: 10px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: .18s; z-index: 20; letter-spacing: 0;
}
.zh[data-tip]:hover::after, .zh[data-tip]:focus::after, .zh.show::after { opacity: 1; transform: translate(-50%, 0); }

/* ===== stats ===== */
.stats { background: var(--red); color: #FFF4E0; position: relative; }
.stats::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 18px 18px; }
.stats__in { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-inline-start: 1px solid rgba(255,255,255,.2); }
.stat b { font-size: 1.6rem; font-family: var(--f-en); }
html[lang="ar"] .stat b { font-family: var(--f-ar); }
.stat span { font-size: .9rem; opacity: .9; }
@media (max-width: 760px) {
  .stats__in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat b { font-size: 1.3rem; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.2); }
}

/* ===== sections ===== */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-2); }
.section--ink { background: var(--ink-bg); color: var(--ink-text); --surface: #241C1F; --line: #3A2F33; --muted: #C2B4A3; --text: #F5ECDD; --bg-2: #2B2226; }
.head { text-align: center; margin-bottom: 48px; }
.head h2, .about h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sub { color: var(--muted); max-width: 40em; margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.kicker .zh { font-family: var(--f-brush); font-size: 1.9rem; line-height: 1; color: var(--red); border-bottom: 0; }
.section--ink .kicker .zh { color: var(--gold); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid4 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== about ===== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about__side { position: sticky; top: 100px; display: grid; gap: 22px; }
.portrait { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--bg-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.portrait figcaption {
  position: absolute; inset: auto 0 0; padding: 60px 18px 16px; color: #FFF4E0; font-size: .88rem; line-height: 1.5;
  background: linear-gradient(transparent, rgba(20,8,8,.85)); display: flex; flex-direction: column; gap: 2px;
}
.portrait__zh { font-family: var(--f-brush); font-size: 1.8rem; line-height: 1.1; color: #F6D77A; }
.seal--photo { position: absolute; top: 14px; inset-inline-end: 14px; width: 54px; height: 54px; font-size: 20px; transform: rotate(6deg); box-shadow: 0 6px 16px -4px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.3); }
.quote { margin: 0; padding: 20px 22px; border-inline-start: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }
html[dir="rtl"] .quote { border-radius: var(--r) 0 0 var(--r); }
.quote__zh { font-family: var(--f-zh); font-size: 1.25rem; color: var(--red); margin-bottom: 6px; }
.quote cite { font-size: .85rem; color: var(--muted); font-style: normal; }
.about__main > p { color: var(--muted); font-size: 1.05rem; }
.about__main b { color: var(--text); }

.timeline { list-style: none; padding: 0; margin: 34px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--gold)); opacity: .5; }
.timeline li { position: relative; padding-inline-start: 36px; padding-bottom: 20px; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--red); }
.timeline li.gold::before { border-color: var(--gold); background: var(--gold); }
.timeline time { unicode-bidi: isolate; font-family: var(--f-en); font-size: .9rem; color: var(--muted); padding-top: 2px; direction: ltr; text-align: start; }
.timeline div { display: flex; flex-direction: column; }
.timeline span { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__side { position: static; grid-template-columns: 1fr 1fr; align-items: center; }
  .portrait { aspect-ratio: 4/5; }
}
@media (max-width: 560px) {
  .about__side { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4/4.4; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

/* ===== moments ===== */
.moments { padding: 0 0 96px; }
.head--sm { margin-bottom: 32px; }
.moments__grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(2, clamp(200px, 22vw, 260px)); gap: 18px; }
.moment { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); min-height: 220px; }
.moment--wide { grid-row: span 2; }
.moment--wide img { object-position: 62% 40%; }
.moment img[src*="poetry"] { object-position: 50% 25%; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.moment:hover img { transform: scale(1.04); }
.moment figcaption { position: absolute; inset: auto 0 0; padding: 48px 16px 14px; color: #FFF4E0; font-size: .9rem; line-height: 1.5; background: linear-gradient(transparent, rgba(20,8,8,.85)); }
@media (max-width: 760px) { .moments__grid { grid-template-columns: 1fr; grid-template-rows: none; } .moment--wide { grid-row: auto; } .moment { aspect-ratio: 3/2; min-height: 0; height: auto; } }

/* ===== video ===== */
.vid__in { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.phone { width: min(340px, 82vw); aspect-ratio: 9/16; border-radius: 38px; padding: 10px; background: #1E1714; box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--gold) 50%, transparent); position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 6px; border-radius: 3px; background: #3A2F33; transform: translateX(-50%); z-index: 2; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #000; display: block; }
.vid__txt h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.vid__txt > p { color: var(--muted); font-size: 1.05rem; }
.idiom { margin: 24px 0 28px; padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--red); }
.idiom__zh { font-family: var(--f-brush); font-size: 3rem; line-height: 1.2; color: var(--red); border-bottom: 0; }
.idiom p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 860px) { .vid__in { grid-template-columns: 1fr; justify-items: center; gap: 40px; } .vid__txt { text-align: center; } .idiom { text-align: start; } }

/* ===== experience strip ===== */
.exp { background: var(--ink-bg); color: var(--ink-text); padding: 80px 0; position: relative; overflow: hidden; --muted: #C2B4A3; }
.exp::before { content: ""; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }
.exp__in { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.exp .kicker .zh { color: var(--gold); }
.exp h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.exp__txt > p { color: var(--muted); }
.exp__chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.exp__chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(226,184,74,.4); color: #F3E3B0; font-size: .88rem; font-weight: 600; direction: ltr; }
.exp__strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.exp__strip .moment { aspect-ratio: 4/3.4; min-height: 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.exp__strip .moment:nth-child(2) { transform: translateY(28px); }
.exp__strip img[src*="agreement"] { object-position: 60% 50%; }
@media (max-width: 900px) { .exp__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .exp__strip { grid-template-columns: 1fr; } .exp__strip .moment:nth-child(2) { transform: none; } }

/* ===== why ===== */
.why { text-align: center; transition: transform .25s, border-color .25s; }
.why:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--red); }
.why__zh { display: inline-block; font-family: var(--f-brush); font-size: 2.8rem; line-height: 1.2; color: var(--red); margin-bottom: 12px; border-bottom: 0; }
.why h3 { font-size: 1.15rem; }
.why p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== courses ===== */
.next {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; justify-content: center;
  padding: 18px 24px; margin: -16px auto 40px; width: fit-content; max-width: 100%;
  border: 1.5px dashed color-mix(in srgb, var(--red) 45%, transparent); border-radius: 16px; background: var(--surface);
}
.next__lbl { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--red); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.next__val { font-weight: 600; }
.countdown { display: flex; gap: 10px; }
.countdown div { text-align: center; background: var(--bg-2); border-radius: 10px; padding: 4px 12px; min-width: 62px; }
.countdown b { display: block; font-family: var(--f-en); font-size: 1.4rem; line-height: 1.2; }
.countdown span { font-size: .75rem; color: var(--muted); }
.next__meta, .course__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.next__meta li, .course__meta li { font-size: .88rem; background: var(--bg-2); border-radius: 999px; padding: 4px 12px; }
.next__meta li span, .course__meta li span { color: var(--muted); margin-inline-end: 6px; }
.next__meta:empty, .course__meta:empty { display: none; }

.course { position: relative; display: flex; flex-direction: column; gap: 16px; transition: transform .25s, box-shadow .25s; }
.course:hover { transform: translateY(-6px); }
.course[data-course="hsk1"] { border: 2px solid var(--red); }
.ribbon { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--red); color: #fff; font-size: .82rem; font-weight: 600; padding: 3px 14px; border-radius: 999px; }
.course__hd { display: flex; align-items: center; gap: 16px; }
.course__zh { width: 70px; height: 70px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--bg-2); font-family: var(--f-brush); font-size: 2rem; color: var(--red); }
.course h3 { font-family: var(--f-en); font-size: 1.7rem; margin: 0; }
.course__hd p { margin: 0; color: var(--muted); }
.course__words { margin: 0; color: var(--muted); }
.course__words b { unicode-bidi: isolate; direction: ltr; display: inline-block; font-family: var(--f-en); font-size: 1.3rem; color: var(--gold); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; flex: 1; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: .97rem; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); font-size: .72rem; font-weight: 700; }
.course__price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 14px; }
.course__price b { font-size: 1.35rem; color: var(--red); }

.steps { margin-top: 72px; text-align: center; }
.steps__title { font-size: 1.5rem; margin-bottom: 30px; }
.steps__title .zh { font-family: var(--f-brush); color: var(--gold); font-weight: 400; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 8px 10px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; inset-inline-start: calc(50% + 44px); width: calc(100% - 68px); border-top: 2px dashed var(--line); }
.num { width: 68px; height: 68px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--red); font-family: var(--f-brush); font-size: 2rem; color: var(--red); }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) { .steps ol { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 480px) { .steps ol { grid-template-columns: 1fr; } }

/* ===== game ===== */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.tab { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; }
.tab.is-on { background: var(--gold); color: #1E1714; border-color: var(--gold); }
.flash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .flash-grid { grid-template-columns: repeat(2, 1fr); } }
.flash { border: 0; padding: 0; background: none; perspective: 900px; aspect-ratio: 1 / 1.05; }
.flash__in { position: relative; display: block; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.flash.flipped .flash__in { transform: rotateY(180deg); }
.flash__f, .flash__b {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.flash__f { background: var(--surface); border: 1px solid var(--line); }
.flash__f::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 12px; }
.flash__zh { font-family: var(--f-zh); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; color: var(--ink-text); }
.flash__f small { color: var(--muted); font-size: .78rem; }
.flash__b { background: linear-gradient(150deg, var(--red), #7A0718); color: #FFF4E0; transform: rotateY(180deg); }
.flash__py { font-family: var(--f-py); font-style: italic; font-size: 1.5rem; }
.flash__m { font-size: 1.2rem; font-weight: 600; }
.flash__sp { opacity: .8; }
.flash:hover .flash__f { border-color: var(--gold); }

.quiz { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; text-align: center; }
.quiz__bar { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.quiz__q { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; }
.quiz__zh { font-family: var(--f-zh); font-size: 4.2rem; font-weight: 700; line-height: 1.2; display: flex; flex-direction: column; align-items: center; }
.quiz__py { font-family: var(--f-py); font-style: italic; color: var(--gold); font-size: 1.2rem; font-weight: 400; }
.speak { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); font-size: 1.2rem; }
.quiz__ask { color: var(--muted); }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-2); font-weight: 600; transition: .2s; }
.opt:hover { border-color: var(--gold); }
.opt.right { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
.opt.wrong { background: var(--red); border-color: var(--red); color: #fff; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz__big { font-family: var(--f-brush); font-size: 4rem; color: var(--gold); line-height: 1.3; }

/* ===== reviews ===== */
.reviews { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; position: relative; }
.review::before { content: "“"; position: absolute; top: -6px; inset-inline-end: 18px; font-family: var(--f-en); font-size: 5rem; color: var(--red); opacity: .18; line-height: 1; }
.reviews .review:nth-child(4) { grid-column: span 2; }
.review--big { grid-row: span 2; background: linear-gradient(160deg, var(--surface), var(--bg-2)); }
.review--big blockquote { font-size: 1.15rem; }
.review blockquote { margin: 0; }
.review .tr { display: block; color: var(--muted); font-size: .8rem; margin-top: 6px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption small { display: block; color: var(--muted); font-size: .85rem; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-family: var(--f-en); }
.reviews .review:nth-child(3) .av { background: var(--gold); color: #1E1714; }
.reviews .review:nth-child(4) .av { background: #1F7A4D; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } .review--big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } .review--big, .reviews .review:nth-child(4) { grid-column: auto; } }

/* ===== faq ===== */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ===== final ===== */
.final { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--red), #7A0718); color: #FFF4E0; text-align: center; padding: 90px 0; }
.final::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 10a30 30 0 1 0 0 60 30 30 0 1 0 0-60m0 10a20 20 0 1 1 0 40 20 20 0 1 1 0-40' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.final__in { position: relative; }
.final__zh { display: inline-block; font-family: var(--f-brush); font-size: clamp(4rem, 10vw, 7rem); line-height: 1.1; color: #F6D77A; border-bottom: 0 !important; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.final h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.final p { opacity: .85; margin-bottom: 28px; }
.final .zh[data-tip]::after { background: #FFF4E0; color: #1E1714; }

/* ===== dragon + pond ===== */
.final { padding: 130px 0; }
.final__dragon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.final__in { z-index: 1; }
.final h2, .final p { text-shadow: 0 2px 12px rgba(80,0,10,.55); }
.pond { position: relative; height: 240px; overflow: hidden; cursor: pointer;
  background: radial-gradient(120% 140% at 30% 20%, #2E8C8A 0%, #16575E 55%, #0D3A42 100%); }
.pond::before, .pond::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; z-index: 1; pointer-events: none; }
.pond::before { top: 0; background: linear-gradient(rgba(0,0,0,.35), transparent); }
.pond::after { bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.3)); }
.pond canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.pond__hint { position: absolute; bottom: 10px; inset-inline-start: 16px; margin: 0; z-index: 2; pointer-events: none;
  color: rgba(255,255,255,.75); font-size: .85rem; display: flex; gap: 8px; align-items: center; }
.pond__hint .zh { font-family: var(--f-brush); font-size: 1.3rem; color: #F6D77A; border-bottom: 0; }
@media (max-width: 560px) { .pond { height: 200px; } .final { padding: 110px 0; } }

/* ===== footer ===== */
.foot { padding: 34px 0 100px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot__links { display: flex; gap: 22px; }
.foot__links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.foot__links a:hover { color: var(--red); }
.foot__c { margin: 0; color: var(--muted); font-size: .88rem; width: 100%; }

/* ===== floating whatsapp ===== */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(37,211,102,.7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ===== responsive hero ===== */
@media (max-width: 900px) {
  .hero { padding: 40px 0 70px; }
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { order: -1; }
  .scroll-card { width: min(340px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* small, slow ambient motion is kept for the lanterns */
  .lantern { animation: swingSoft 6s ease-in-out infinite !important; }
  .lantern__glow { animation: flicker 4s ease-in-out infinite !important; }
  .cta-arrow__line, .cta-arrow__head { stroke-dashoffset: 0; }
  .cta-arrow__txt { opacity: 1; }
}
@keyframes swingSoft { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
