/*
Theme: DeepDive China (block theme port)
Description: Design system ported verbatim from the original asiadeepdive.com theme,
             plus a thin compatibility layer for the WordPress block theme shell.
*/

:root {
  --snow: #fcfaf7;
  --paper: #f5f2ed;
  --paper-warm: #eee9e0;
  --ink: #1a1714;
  --ink-soft: #3a352d;
  --muted: #7a7468;
  --muted-light: #a8a298;
  --vermillion: #c1272d;
  --vermillion-deep: #9e1f24;
  --vermillion-glow: rgba(193,39,45,0.08);
  --jade: #2d6a5a;
  --jade-soft: #e8f0ed;
  --gold: #8b6914;
  --gold-light: #c9a24d;
  --stroke: rgba(26,23,20,0.06);
  --stroke-md: rgba(26,23,20,0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(26,23,20,0.04);
  --shadow: 0 8px 32px rgba(26,23,20,0.06);
  --shadow-hover: 0 16px 48px rgba(26,23,20,0.1);
  --font-sans: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-heading: "ZCOOL XiaoWei", "Noto Serif SC", "STSong", serif;
  --font-kai: "LXGW WenKai", "KaiTi", "STKaiti", serif;
  --font-brush: "Ma Shan Zheng", "STXingkai", cursive;
  --font-serif: "Noto Serif SC", "LXGW WenKai", Georgia, serif;
  --max: 1080px;
  --max-wide: 1200px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--snow);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.5em;
}

a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--vermillion); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--vermillion-glow); color: var(--ink); }

.wrap { width: min(var(--max), 100% - 3rem); margin-inline: auto; }
.wrap--wide { width: min(var(--max-wide), 100% - 3rem); margin-inline: auto; }

.visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--snow); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--scale { transform: scale(0.96); }
.reveal.is-visible { opacity: 1; transform: translate(0) scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252,250,247,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--stroke);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1rem 0;
}

.brand { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand__en {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 1.15rem; letter-spacing: 0.06em;
}
.brand__dot { color: var(--vermillion); margin: 0 0.15rem; }
.brand__zh {
  font-family: var(--font-brush); font-size: 0.85rem;
  color: var(--muted-light); letter-spacing: 0.3em;
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--stroke-md); border-radius: var(--radius);
  background: transparent; cursor: pointer;
}
.nav-toggle__bar { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--ink); transition: transform 0.25s; }

.nav, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav__list a {
  display: inline-block; padding: 0.4rem 0.75rem;
  color: var(--muted); font-weight: 500; font-size: 0.88rem;
  letter-spacing: 0.02em; border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}
.nav__list a:hover { color: var(--ink); background: rgba(26,23,20,0.03); }
.nav__zh { display: block; font-size: 0.62rem; color: var(--muted-light); letter-spacing: 0.1em; text-align: center; margin-top: -1px; }
.nav__list .nav__account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stroke-md, rgba(26,23,20,0.1));
  background: transparent;
  color: var(--ink-soft, #3a352d) !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.nav__list .nav__account-link:hover {
  border-color: var(--ink, #1a1714);
  color: var(--ink, #1a1714) !important;
  background: transparent;
}
.nav__item--account .nav__zh {
  display: none;
}

/* The 'Contact us' hover dropdown was removed: it held a single link that is
   already present in the floating CTA and the footer, and it rendered as a
   permanent dark bar inside the mobile menu. Contact us is now a plain button. */

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(252,250,247,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke);
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
  }
  .nav--open { max-height: 960px; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.5rem; gap: 0.15rem; }
  .nav__list a { padding: 0.65rem 0; border-radius: 0; }
  .nav__list .nav__account-link {
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--stroke-md, rgba(26,23,20,0.1));
    background: transparent;
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: 999px;
  font-weight: 600; font-size: 0.88rem; letter-spacing: 0.03em;
  border: none; cursor: pointer; transition: all 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--snow); }
.btn--primary:hover { background: var(--vermillion); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--stroke-md); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); }
.btn--ghost:hover { background: rgba(255,255,255,0.25); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--paper); }
.btn--sm { padding: 0.5rem 1.15rem; font-size: 0.82rem; }
.btn--header { background: var(--ink); color: var(--snow) !important; padding: 0.45rem 1rem !important; font-size: 0.82rem !important; }
.btn--header:hover { background: var(--vermillion); color: #fff !important; }
.btn--header-contact { padding: 0.45rem 1rem !important; font-size: 0.82rem !important; color: var(--ink) !important; border-color: var(--stroke-md); }
.btn--header-contact:hover { border-color: var(--ink); background: rgba(26,23,20,0.04); }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%;
  filter: brightness(1.16) contrast(1.08) saturate(1.22);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(26,23,20,0) 0%, rgba(26,23,20,0.02) 35%, rgba(26,23,20,0.35) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(6rem, 14vh, 10rem);
}
.hero__content { max-width: 640px; }

.hero__seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 2px solid var(--vermillion);
  border-radius: 4px;
  font-family: var(--font-brush); font-size: 1.2rem;
  color: var(--vermillion);
  transform: rotate(-8deg);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero__eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: #fff; margin: 0 0 1rem;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 2px 10px rgba(0,0,0,0.55);
}
.hero__eyebrow-zh {
  font-family: var(--font-brush); text-transform: none;
  letter-spacing: 0.25em; font-size: 1.2em; color: var(--gold-light);
}

.hero h1 {
  color: #fffaf0; font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.01em; margin-bottom: 1rem;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 2px 8px rgba(0,0,0,0.7),
    0 10px 30px rgba(0,0,0,0.4);
}

.hero__lead {
  color: #fff; font-size: 1rem;
  line-height: 1.85; margin: 0 0 2rem; max-width: 32rem;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 2px 10px rgba(0,0,0,0.55);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.hero__tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin: 0; padding: 0;
}
.hero__tags li {
  font-size: 0.75rem; padding: 0.3rem 0.75rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.35);
  color: #fff; letter-spacing: 0.03em;
  background: rgba(20,16,12,0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* ─── Ink divider ─── */
.ink-divider {
  position: relative; padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ink); color: var(--snow);
  overflow: hidden;
}
.ink-divider::before {
  content: attr(data-watermark);
  position: absolute; right: -0.5rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-brush); font-size: clamp(5rem, 14vw, 12rem);
  color: rgba(255,255,255,0.025); white-space: nowrap;
  pointer-events: none; letter-spacing: 0.15em;
}
.ink-divider__inner {
  display: block;
  max-width: 52rem;
}
.ink-divider__vertical {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-brush); font-size: 1.6rem;
  letter-spacing: 0.25em; color: var(--vermillion);
  margin: 0; padding-right: 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ink-divider__text {
  margin: 0; font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 2; color: rgba(245,242,237,0.8);
}

/* ─── Photo strip ─── */
.photo-strip { overflow: hidden; padding: 0; background: var(--snow); }
.photo-strip__track { display: flex; gap: 0; animation: strip-scroll 40s linear infinite; }
.photo-strip__track:hover { animation-play-state: paused; }
.photo-strip__item {
  flex: 0 0 auto; width: clamp(240px, 22vw, 360px);
  height: clamp(150px, 15vw, 220px); overflow: hidden;
}
.photo-strip__link {
  display: block; width: 100%; height: 100%;
  color: inherit; text-decoration: none; cursor: pointer;
}
.photo-strip__link:focus-visible {
  outline: 3px solid var(--vermillion);
  outline-offset: -3px;
}
.photo-strip__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease); filter: saturate(0.85);
}
.photo-strip__item:hover img,
.photo-strip__link:hover img { transform: scale(1.06); filter: saturate(1); }

@keyframes strip-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Sections ─── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tinted { background: var(--paper); }
.section--soft { background: var(--jade-soft); }

.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 600px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--wide { max-width: 720px; }

.section__label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted-light); margin: 0 0 0.75rem;
}
.section__label-zh {
  font-family: var(--font-brush); text-transform: none;
  letter-spacing: 0.2em; font-weight: 400; font-size: 1.3em;
  color: var(--muted);
}
.section__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section__sub { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.section__cta { text-align: center; margin-top: 2.5rem; }

.section__divider {
  width: 32px; height: 2px; background: var(--vermillion);
  margin: 0 0 1.25rem; opacity: 0.6;
}
.section__head--center .section__divider { margin-inline: auto; }

/* ─── Horizontal rule with Chinese character ─── */
.hr-char {
  display: flex; align-items: center; gap: 1.5rem;
  margin: clamp(3rem, 6vw, 5rem) 0; color: var(--muted-light);
}
.hr-char::before, .hr-char::after {
  content: ""; flex: 1; height: 1px; background: var(--stroke);
}
.hr-char span {
  font-family: var(--font-brush); font-size: 1.1rem;
  letter-spacing: 0.4em; opacity: 0.5;
}
/* Lighter hr-char variant - used between thematic sections and the
   Chronicles "also read" block at the bottom. */
.hr-char--light { margin: clamp(2rem, 4vw, 3.25rem) 0; }
.hr-char--light span { opacity: 0.35; font-size: 0.95rem; }

/* ─── Grid layouts ─── */
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ─── Cards (tile) ─── */
.tile {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--stroke); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile__img { width: 100%; aspect-ratio: 3/2; overflow: hidden; }
.tile__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease); filter: saturate(0.9);
}
.tile:hover .tile__img img { transform: scale(1.04); filter: saturate(1); }
.tile__body { padding: 1.5rem; }
.tile__tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--vermillion); margin-bottom: 0.5rem;
}
.tile h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.tile p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── Glance items ─── */
.glance-grid { display: grid; gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .glance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .glance-grid { grid-template-columns: repeat(3, 1fr); } }
.glance-item {
  background: #fff; padding: 1.75rem 1.5rem;
  transition: background 0.3s;
}
.glance-item:hover { background: var(--paper); }
.glance-item h3 { font-size: 0.95rem; margin-bottom: 0.4rem; font-family: var(--font-sans); font-weight: 600; }
.glance-item p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ─── Stories ─── */
.story-row { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .story-row { grid-template-columns: repeat(3, 1fr); } }
.story-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--stroke);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story-card__img { aspect-ratio: 3/2; overflow: hidden; }
.story-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease); filter: saturate(0.85);
}
.story-card:hover .story-card__img img { transform: scale(1.04); filter: saturate(1); }
.story-card__body { padding: 1.35rem 1.5rem; }
.story-card__meta {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-light); margin: 0 0 0.6rem;
}
.story-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.story-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ─── Stats ─── */
.stats {
  background: var(--ink); color: var(--snow); padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  position: relative; overflow: hidden;
}
.stats::before {
  content: "Landscape - culture - depth";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-brush); font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(255,255,255,0.025); white-space: nowrap; pointer-events: none; letter-spacing: 0.15em;
}
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 700px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stats__item strong {
  display: block; font-family: var(--font-heading);
  font-size: 1.75rem; font-weight: 400; color: #fff; margin-bottom: 0.25rem;
}
.stats__item span { font-size: 0.8rem; opacity: 0.55; letter-spacing: 0.05em; }

/* ─── Team ─── */
.team-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  text-align: center; padding: 2rem 1.25rem 1.75rem;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  transition: transform 0.35s, box-shadow 0.35s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-card__avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 1rem; overflow: hidden;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 8px rgba(45, 74, 62, 0.12);
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__avatar--placeholder { background: linear-gradient(135deg, #2d4a3e, #5a8a78); }
.team-card__avatar--2 { background: linear-gradient(135deg, #8b3a2f, #c45c4a); }
.team-card__avatar--3 { background: linear-gradient(135deg, #4a6670, #7a9bab); }
.team-card__avatar--4 { background: linear-gradient(135deg, #b8860d, #d4a84b); }
.team-card h3 { font-size: 0.92rem; margin-bottom: 0.3rem; font-family: var(--font-sans); font-weight: 600; }
.team-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ─── Guilin section ─── */
.guilin { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; overflow: hidden; }
.guilin__bg { position: absolute; inset: 0; z-index: 0; }
.guilin__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.guilin__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(252,250,247,0.96) 0%, rgba(252,250,247,0.85) 45%, rgba(252,250,247,0.3) 100%);
}
.guilin__grid { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: start; }
@media (min-width: 880px) { .guilin__grid { grid-template-columns: 1.2fr 0.8fr; } }
.guilin__copy p { color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.9; }
.guilin__quote {
  margin: 0; padding: 2rem; background: #fff;
  border-left: 3px solid var(--vermillion);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow);
}
.guilin__quote p {
  font-family: var(--font-kai); font-size: 1.1rem;
  color: var(--ink); margin: 0 0 0.75rem; line-height: 1.8;
}
.guilin__quote cite { font-style: normal; font-size: 0.82rem; color: var(--muted-light); }

/* ─── Week timeline ─── */
.week-section { max-width: 720px; margin-inline: auto; }
.week-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--stroke-md); }
.week-timeline li {
  position: relative; padding: 0 0 2rem 2rem;
}
.week-timeline li:last-child { padding-bottom: 0; }
.week-timeline li::before {
  content: ""; position: absolute; left: -5px; top: 0.4rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--vermillion); border: 2px solid var(--snow);
  transition: transform 0.3s;
}
.week-timeline li:hover::before { transform: scale(1.4); }
.week-timeline__d {
  display: block; font-weight: 600; color: var(--ink);
  font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 0.15rem;
}

/* ─── Testimonial ─── */
.testimonial {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--paper); text-align: center;
}
.testimonial blockquote {
  margin: 0 auto; max-width: 580px;
  font-family: var(--font-kai);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink); line-height: 1.85;
}
.testimonial blockquote::before {
  content: "\201C"; display: block;
  font-family: var(--font-brush); font-size: 3.5rem;
  line-height: 1; color: var(--vermillion); opacity: 0.3; margin-bottom: -0.25rem;
}
.testimonial cite {
  display: block; margin-top: 1.25rem;
  font-style: normal; font-size: 0.82rem;
  color: var(--muted-light); letter-spacing: 0.05em;
}

/* ─── Guest feedback rail ─── */
.section--feedback {
  padding-top: clamp(3rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--snow);
}
.section--feedback .section__head {
  margin-bottom: 1.35rem;
}
.ddc-feedback-rail {
  overflow: hidden;
  width: 100%;
  padding: 0.25rem 0 0.5rem;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}
.ddc-feedback-rail__track {
  display: flex;
  gap: 0.95rem;
  width: max-content;
  animation: ddc-feedback-scroll 48s linear infinite;
}
.ddc-feedback-rail:hover .ddc-feedback-rail__track {
  animation-play-state: paused;
}
.ddc-feedback-card {
  width: min(310px, calc(100vw - 2.8rem));
  min-height: 168px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: var(--shadow-sm);
}
.ddc-feedback-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.72rem;
}
.ddc-feedback-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ddc-feedback-card__initials {
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ddc-feedback-card__avatar--tone-1 {
  background: #ebe4d8;
  color: #4a4338;
}
.ddc-feedback-card__avatar--tone-2 {
  background: #dde6df;
  color: #2f3d33;
}
.ddc-feedback-card__avatar--tone-3 {
  background: #d8e0e8;
  color: #35404c;
}
.ddc-feedback-card__avatar--tone-4 {
  background: #ead9cf;
  color: #5c3d32;
}
.ddc-feedback-card__avatar--tone-5 {
  background: #e3e0dc;
  color: #4a4844;
}
.ddc-feedback-card__stars {
  color: var(--gold-light);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  line-height: 1;
}
.ddc-feedback-card__quote {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.ddc-feedback-card__meta {
  margin: 0.8rem 0 0;
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes ddc-feedback-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.475rem)); }
}

/* ─── Contact CTA ─── */
.contact-cta {
  background: var(--ink); color: var(--snow);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative; overflow: hidden;
}
.contact-cta::before {
  content: "Contact us";
  position: absolute; right: 2rem; bottom: -0.5rem;
  font-family: var(--font-brush); font-size: clamp(4rem, 10vw, 8rem);
  color: rgba(255,255,255,0.025); pointer-events: none; letter-spacing: 0.2em;
}
.contact-cta__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 800px) {
  .contact-cta__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}
.contact-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.contact-cta p { margin: 0.5rem 0 0; color: rgba(245,242,237,0.65); max-width: 36rem; line-height: 1.8; }
.contact-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  text-align: left;
  width: min(100%, 900px);
}
@media (min-width: 800px) {
  .contact-cta__actions {
    align-items: flex-end;
    text-align: right;
    justify-self: end;
  }
}
.contact-cta__fine { margin-top: 0.75rem !important; font-size: 0.82rem !important; opacity: 0.45 !important; }
.contact-cta__notice {
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.contact-cta__notice--success {
  color: #c8f3d8;
  background: rgba(36, 211, 102, 0.16);
  border: 1px solid rgba(36, 211, 102, 0.45);
}
.contact-cta__notice--error {
  color: #ffd4d4;
  background: rgba(193, 39, 45, 0.2);
  border: 1px solid rgba(193, 39, 45, 0.45);
}
.contact-inquiry-form {
  width: 100%;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(245,242,237,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(4px);
}
.contact-inquiry-form__title {
  display: none;
}
.contact-inquiry-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}
.contact-inquiry-form__full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .contact-inquiry-form__grid {
    grid-template-columns: 1fr;
  }
  .contact-inquiry-form__full {
    grid-column: auto;
  }
}
.contact-inquiry-form input,
.contact-inquiry-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.78rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(245,242,237,0.2);
  background: rgba(15,15,15,0.45);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
.contact-inquiry-form input::placeholder,
.contact-inquiry-form textarea::placeholder {
  color: rgba(245,242,237,0.6);
  font-size: 0.95rem;
  line-height: 1.45;
}
.contact-inquiry-form input:focus,
.contact-inquiry-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}
.contact-inquiry-form textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-inquiry-form .btn {
  width: fit-content;
  min-width: 200px;
  min-height: 56px;
  padding: 0.8rem 1.6rem;
}
.btn--inquiry {
  border-radius: 999px;
  background: linear-gradient(135deg, #d3353b, #b9222a);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}
.btn--inquiry:hover {
  color: #fff;
  background: linear-gradient(135deg, #dd3e44, #c32931);
}

/* ─── Floating CTA stack (WhatsApp above free consultation) ─── */
.ddc-floating-cta-stack {
  position: fixed;
  left: 16px;
  bottom: 110px;
  z-index: 91;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.ddc-floating-cta-stack > * + * {
  margin-top: 2rem;
}
.ddc-freeclass-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c83c3c, #a52626);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 10px 24px rgba(165, 38, 38, 0.32);
  animation: ddc-whatsapp-bounce 2.2s ease-in-out infinite;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
  max-width: min(320px, calc(100vw - 32px));
}
.ddc-freeclass-fab:hover {
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(165, 38, 38, 0.42);
  transform: translateY(-1px);
}
.ddc-freeclass-fab__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #c83c3c;
  flex-shrink: 0;
}
.ddc-freeclass-fab__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.ddc-freeclass-fab__lines {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.ddc-freeclass-fab__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.ddc-freeclass-fab__sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  opacity: 0.92;
  white-space: normal;
}
@media (max-width: 540px) {
  .ddc-floating-cta-stack {
    left: 12px;
    bottom: 88px;
  }
  .ddc-floating-cta-stack > * + * {
    margin-top: 1.5rem;
  }
  .ddc-freeclass-fab {
    padding-right: 0.65rem;
  }
  .ddc-freeclass-fab__title {
    font-size: 0.76rem;
  }
  .ddc-freeclass-fab__sub {
    font-size: 0.62rem;
  }
  .ddc-whatsapp-fab {
    padding-right: 8px;
  }
}

/* ─── WhatsApp floating inquiry (often nested in .ddc-floating-cta-stack) ─── */
.ddc-whatsapp-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #24d366, #12b551);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 10px 24px rgba(18,181,81,0.32);
  animation: ddc-whatsapp-bounce 2.2s ease-in-out infinite;
}
.ddc-whatsapp-fab:hover {
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(18,181,81,0.42);
}
.ddc-whatsapp-fab__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #24d366;
  flex-shrink: 0;
}
.ddc-whatsapp-fab__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.ddc-whatsapp-fab__text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ddc-whatsapp-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  min-width: 220px;
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  border-radius: 16px;
  background: rgba(18, 21, 18, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}
.ddc-whatsapp-menu__item {
  display: block;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}
.ddc-whatsapp-menu__item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
}
.ddc-whatsapp-menu__item--app {
  background: rgba(36, 211, 102, 0.12);
}
@keyframes ddc-whatsapp-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  18% { transform: translateY(-3px) scale(1.01); }
  36% { transform: translateY(0) scale(1); }
  52% { transform: translateY(-7px) scale(1.015); }
  68% { transform: translateY(0) scale(1); }
}

/* ─── Exit-intent modal (Free class capture) ─── */
.ddc-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.ddc-exit-modal.is-open { display: flex; }
.ddc-exit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 10, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: ddc-exit-fade 0.25s ease-out;
}
.ddc-exit-modal__card {
  position: relative;
  width: min(420px, 92vw);
  max-height: min(92vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.2rem) clamp(1.4rem, 3.6vw, 2rem);
  box-shadow: 0 28px 70px -20px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.2);
  text-align: center;
  animation: ddc-exit-pop 0.32s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.ddc-exit-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.ddc-exit-modal__close:hover {
  background: rgba(26,23,20,0.06);
  color: var(--ink);
}
.ddc-exit-modal__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  font-family: var(--font-brush, "Ma Shan Zheng", serif);
  font-size: 1.5rem;
  color: #a85f1a;
  background: rgba(245, 192, 107, 0.18);
  border: 1px solid rgba(168, 95, 26, 0.45);
  border-radius: 10px;
  transform: rotate(-4deg);
  margin-bottom: 0.6rem;
  letter-spacing: -0.05em;
}
.ddc-exit-modal__eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.ddc-exit-modal__eyebrow-zh {
  font-family: var(--font-brush, "Ma Shan Zheng", serif);
  text-transform: none;
  letter-spacing: 0.2em;
  font-size: 1.2em;
  font-weight: 400;
  margin-left: 0.35rem;
  color: var(--ink-soft);
}
.ddc-exit-modal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
}
.ddc-exit-modal__body {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.ddc-exit-modal__program-wrap {
  margin: -0.35rem 0 1rem;
  text-align: center;
}
.ddc-exit-modal__program {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #c0392b);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.ddc-exit-modal__program:hover {
  color: var(--ink);
}
.ddc-exit-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}
.ddc-exit-modal__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(26,23,20,0.05);
  border: 1px solid rgba(26,23,20,0.08);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.ddc-exit-modal__pill--accent {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.25);
  color: #9a2a1e;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.ddc-exit-modal__cta {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}
.ddc-exit-modal__dismiss {
  display: block;
  margin: 0.85rem auto 0;
  background: transparent;
  border: 0;
  color: var(--muted-light);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s var(--ease);
}
.ddc-exit-modal__dismiss:hover {
  color: var(--ink);
  text-decoration: underline;
}

.ddc-exit-modal__form { margin-top: 0.75rem; }
.ddc-exit-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--stroke-md);
  border-radius: 6px;
  font-size: 1rem;
}
.ddc-exit-modal__consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
  color: var(--muted-light);
}
.ddc-exit-modal__consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.ddc-exit-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ddc-exit-modal__form-msg {
  min-height: 1.25rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  color: var(--vermillion);
}
.ddc-exit-modal__alt {
  margin-top: 1rem;
  font-size: 0.88rem;
}
.ddc-exit-modal__alt a {
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 23, 20, 0.22);
}
.ddc-exit-modal__alt a:hover {
  color: var(--vermillion);
  border-bottom-color: rgba(193, 39, 45, 0.38);
}

body.ddc-exit-modal-open { overflow: hidden; }

@keyframes ddc-exit-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ddc-exit-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ddc-exit-modal__backdrop,
  .ddc-exit-modal__card { animation: none; }
}

/* ─── Floating cart (bottom-right) ─── */
.ddc-cart-fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
}
.ddc-cart-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink, #1a1714);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.28);
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ddc-cart-fab:hover,
.ddc-cart-fab:focus-visible {
  transform: translateY(-2px);
  background: #2b2620;
  box-shadow: 0 14px 30px rgba(26, 23, 20, 0.38);
  color: #fff !important;
}
.ddc-cart-fab:focus-visible {
  outline: 2px solid var(--accent, #c8443c);
  outline-offset: 3px;
}
.ddc-cart-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ddc-cart-fab__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent, #c8443c);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--paper, #f5f1ea);
  box-shadow: 0 2px 6px rgba(200, 68, 60, 0.35);
}
.ddc-cart-fab__count.is-zero { display: none; }
@media (max-width: 540px) {
  .ddc-cart-fab-wrap {
    right: 12px;
    bottom: 16px;
  }
  .ddc-cart-fab {
    width: 58px;
    height: 58px;
  }
}

/* Fly-to-cart feedback (AJAX add-to-cart → corner FAB) */
.ddc-fly-to-cart {
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--ink, #1a1714);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 8px 28px rgba(26, 23, 20, 0.35);
  transform: translate(0, 0) scale(1);
  opacity: 1;
}
.ddc-cart-fab-wrap.ddc-fly-land .ddc-cart-fab {
  animation: ddc-cart-fab-land 0.95s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ddc-cart-fab-land {
  0% { transform: scale(1); box-shadow: 0 10px 24px rgba(26, 23, 20, 0.28); }
  40% { transform: scale(1.14); box-shadow: 0 14px 32px rgba(200, 68, 60, 0.45); }
  100% { transform: scale(1); box-shadow: 0 10px 24px rgba(26, 23, 20, 0.28); }
}

/* Small "added to cart" dialog (after fly animation) */
.ddc-added-popup {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ddc-added-popup.is-open {
  pointer-events: auto;
  opacity: 1;
}
body.ddc-added-popup-open {
  overflow: hidden;
}
.ddc-added-popup__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(15, 13, 10, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ddc-added-popup__card {
  position: relative;
  z-index: 1;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 16px;
  background: var(--paper, #f5f1ea);
  border: 1px solid var(--stroke-md, rgba(26, 23, 20, 0.1));
  box-shadow: 0 24px 56px rgba(26, 23, 20, 0.22);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.ddc-added-popup.is-open .ddc-added-popup__card {
  transform: translateY(0) scale(1);
}
.ddc-added-popup__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-light, #7a7468);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.ddc-added-popup__close:hover {
  background: rgba(26, 23, 20, 0.06);
  color: var(--ink, #1a1714);
}
.ddc-added-popup__icon {
  display: flex;
  justify-content: center;
  margin: 0.15rem auto 0.65rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  align-items: center;
  background: rgba(200, 68, 60, 0.12);
  color: var(--accent, #c8443c);
}
.ddc-added-popup.is-loading .ddc-added-popup__icon svg {
  animation: ddc-added-popup-spin 0.85s linear infinite;
}
@keyframes ddc-added-popup-spin {
  to { transform: rotate(360deg); }
}
.ddc-added-popup__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink, #1a1714);
}
.ddc-added-popup__hint {
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft, #3a352d);
}
.ddc-added-popup__actions {
  display: flex;
  justify-content: center;
}
.ddc-added-popup__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: var(--ink, #1a1714);
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.2s ease;
}
.ddc-added-popup__primary:hover {
  background: var(--vermillion, #c1272d);
  color: #fff !important;
}
@media (prefers-reduced-motion: reduce) {
  .ddc-fly-to-cart {
    transition: none !important;
    display: none !important;
  }
  .ddc-cart-fab-wrap.ddc-fly-land .ddc-cart-fab {
    animation: none;
  }
  .ddc-added-popup,
  .ddc-added-popup__card {
    transition: opacity 0.2s ease;
  }
  .ddc-added-popup.is-open .ddc-added-popup__card {
    transform: none;
  }
  .ddc-added-popup.is-loading .ddc-added-popup__icon svg {
    animation: none;
  }
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink); color: rgba(245,242,237,0.55);
  padding: 3rem 0 0; font-size: 0.88rem;
}
.site-footer__grid {
  display: grid; gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer__tagline { margin: 0.75rem 0 0; line-height: 1.75; max-width: 24rem; }
.site-footer__h {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(245,242,237,0.35); margin: 0 0 0.85rem;
}
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 0.45rem; }
.site-footer__links a { color: rgba(245,242,237,0.6); transition: color 0.2s; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; padding: 1.5rem 0 2rem;
  font-size: 0.78rem;
}
.site-footer__fine {
  font-family: var(--font-brush); letter-spacing: 0.2em; opacity: 0.4;
}

/* ─── Text links ─── */
.text-link {
  font-weight: 600; color: var(--ink-soft); position: relative;
  font-size: 0.88rem;
}
.text-link::after {
  content: ""; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: var(--ink-soft);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s;
}
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.text-link:hover { color: var(--vermillion); }
.text-link:hover::after { background: var(--vermillion); }

/* ─── Programs hub page ─── */
.ddc-program-teaser { text-decoration: none; color: inherit; display: block; }
.ddc-program-teaser:hover { color: inherit; }
.ddc-program-teaser:focus-visible { outline: 2px solid var(--vermillion); outline-offset: 4px; border-radius: var(--radius-lg); }
.ddc-program-teaser__hint {
  display: block; margin-top: 0.5rem; font-size: 0.82rem;
  font-weight: 600; color: var(--vermillion); letter-spacing: 0.03em;
}

.ddc-programs-hub__hero { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.ddc-programs-hub__hero-inner { max-width: 44rem; }
.ddc-programs-hub__lead { margin: 0; font-size: clamp(1rem, 1.8vw, 1.1rem); line-height: 1.85; color: rgba(245,242,237,0.85); }
.ddc-programs-hub__note { margin: 1rem 0 0; font-size: 0.88rem; line-height: 1.75; color: rgba(245,242,237,0.55); max-width: 42rem; }
.ddc-programs-hub__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; }
.ddc-programs-hub__catalog .section__cta { margin-top: 2rem; }

/* ─── Blog index ─── */
.ddc-blog-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .ddc-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1160px) {
  .ddc-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ddc-blog-card {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f9f6f1 100%);
  border: 1px solid rgba(26,23,20,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0 0 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ddc-blog-card.reveal {
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), box-shadow 0.35s var(--ease);
}
.ddc-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ddc-blog-card::before {
  content: "Read";
  position: absolute;
  right: 0.75rem;
  top: 0.6rem;
  font-family: var(--font-brush);
  font-size: 1.15rem;
  color: rgba(193,39,45,0.25);
  z-index: 2;
}

.ddc-blog-card__cover {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #efe8de, #e4ddd3);
  border-bottom: 1px solid var(--stroke);
}
.ddc-blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.08);
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.ddc-blog-card.reveal.is-visible .ddc-blog-card__cover img,
.ddc-blog-card:not(.reveal) .ddc-blog-card__cover img {
  opacity: 1;
  transform: scale(1);
}
.ddc-blog-card:hover .ddc-blog-card__cover img { transform: scale(1.05); }
.ddc-blog-card__cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-brush);
  font-size: 3rem;
  color: rgba(26,23,20,0.35);
  letter-spacing: 0.2em;
}
.ddc-blog-card__meta {
  margin: 1.05rem 1.2rem 0.35rem;
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ddc-blog-card__title {
  margin: 0 1.2rem 0.55rem;
  font-size: 1.1rem;
  line-height: 1.45;
}
.ddc-blog-card__title a { color: var(--ink); }
.ddc-blog-card__title a:hover { color: var(--vermillion); }
.ddc-blog-card__excerpt {
  color: var(--ink-soft);
  margin: 0 1.2rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.8;
}
.ddc-blog-card__excerpt p { margin: 0; }
.ddc-blog-card .text-link { margin-left: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  .ddc-blog-card,
  .ddc-blog-card.reveal,
  .ddc-blog-card__cover img {
    transition: none;
  }

  .ddc-blog-card,
  .ddc-blog-card__cover img {
    transform: none !important;
  }
}

.ddc-blog-pagination { margin-top: 1.25rem; }
.ddc-blog-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ddc-blog-pagination .page-numbers a,
.ddc-blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--stroke-md);
  border-radius: 999px;
  font-size: 0.82rem;
}
.ddc-blog-pagination .page-numbers .current {
  background: var(--ink);
  color: var(--snow);
  border-color: var(--ink);
}

.page-template-page-blog .section__head {
  max-width: 46rem;
}
.page-template-page-blog .section__head .seal {
  margin-bottom: 0.85rem;
}

/* ─── Why section ─── */
.section--why {
  background: var(--paper);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

/* ─── Seal / stamp ─── */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 2px solid var(--vermillion);
  border-radius: 4px;
  font-family: var(--font-brush); font-size: 1.2rem;
  color: var(--vermillion); transform: rotate(-8deg);
  margin-bottom: 1.25rem; opacity: 0.7;
}

/* ─── Page templates ─── */
.page-content { max-width: 70ch; }
.page-content p { margin-bottom: 1.25rem; }

body.woocommerce-cart .page-content,
body.woocommerce-checkout .page-content,
body.woocommerce-account .page-content {
  max-width: none;
}
.page-content h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }

/* ─── Generic band helpers ─── */
.band { position: relative; overflow: hidden; }
.band--ink { background: var(--ink); color: var(--snow); }
.band--ink h1, .band--ink h2, .band--ink h3 { color: #fff; }

/* ─── Contact page ─── */
.ddc-contact-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.ddc-contact-hero__inner { max-width: 46rem; }
.ddc-contact-hero__inner .seal { background: rgba(255,255,255,0.04); color: #f5c06b; border-color: rgba(245,192,107,0.6); opacity: 1; }
.ddc-contact-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; margin: 0.25rem 0 1rem; }
.ddc-contact-hero__lead {
  color: rgba(245,242,237,0.82); font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.85; max-width: 38rem; margin: 0;
}

.ddc-contact-body { padding: clamp(3rem, 6vw, 5rem) 0; }
.ddc-contact-body__grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .ddc-contact-body__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
}

.ddc-contact-body__head { margin-bottom: 1.5rem; }
.ddc-contact-body__intro { color: var(--ink-soft); line-height: 1.85; margin: 0.75rem 0 0; max-width: 38rem; }

.ddc-contact-form { background: #fff; border: 1px solid var(--stroke); border-radius: 12px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.ddc-contact-form__grid {
  display: grid; gap: 1.1rem 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ddc-contact-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ddc-contact-field { display: flex; flex-direction: column; gap: 0.4rem; }
.ddc-contact-field--full { grid-column: 1 / -1; }
.ddc-contact-field__label {
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  letter-spacing: 0.01em;
}
.ddc-contact-field__req { color: var(--vermillion); font-weight: 700; margin-left: 0.15rem; }
.ddc-contact-form input, .ddc-contact-form textarea {
  border: 1px solid var(--stroke); border-radius: 8px; padding: 0.75rem 0.95rem;
  font: inherit; color: var(--ink); background: #fdfcf9; width: 100%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ddc-contact-form input::placeholder, .ddc-contact-form textarea::placeholder {
  color: rgba(26,23,20,0.38); font-size: 0.92em;
}
.ddc-contact-form input:focus, .ddc-contact-form textarea:focus {
  outline: none; border-color: var(--ink); background: #fff;
}
.ddc-contact-form button[type="submit"] { margin-top: 1.25rem; }
.ddc-contact-form__fine { margin: 0.9rem 0 0; font-size: 0.78rem; color: var(--muted-light); }

.ddc-contact-body__side { display: flex; flex-direction: column; gap: 1.25rem; }
.ddc-contact-card {
  background: #fff; border: 1px solid var(--stroke);
  border-radius: 12px; padding: clamp(1.25rem, 2.5vw, 1.6rem);
}
.ddc-contact-card--muted { background: var(--paper); }
.ddc-contact-card h3 {
  font-size: 1rem; letter-spacing: 0.02em; margin: 0 0 0.4rem;
  text-transform: uppercase; color: var(--ink); font-weight: 600;
}
.ddc-contact-card p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 0.75rem; }
.ddc-contact-card p:last-child { margin-bottom: 0; }
.ddc-contact-card__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.ddc-contact-card__list { list-style: none; margin: 0; padding: 0; }
.ddc-contact-card__list li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.7rem 0; border-top: 1px solid var(--stroke);
  font-size: 0.95rem;
}
.ddc-contact-card__list li:first-child { border-top: none; padding-top: 0; }
.ddc-contact-card__label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted-light);
}
.ddc-contact-card__list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ddc-contact-card__list a:hover { color: var(--vermillion); }
.ddc-contact-card__cta { margin-top: 0.5rem; }

/* ─── Utility ─── */
.brand--footer { display: flex; align-items: baseline; gap: 0.5rem; }
.brand--footer .brand__zh { letter-spacing: 0.2em; }

.eyebrow {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted-light); margin: 0 0 0.75rem;
}
.eyebrow__zh {
  font-family: var(--font-brush); text-transform: none;
  letter-spacing: 0.25em; font-weight: 400; font-size: 1.2em;
}

/* ─── Long-form article (ddc-article) ─── */
.ddc-article {
  max-width: 44rem;
  margin: 0 auto;
  font-family: var(--font-serif);
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 1.06rem;
}
.ddc-article p { margin: 0 0 1.35rem; }
.ddc-article a { color: var(--vermillion); border-bottom: 1px solid rgba(193,39,45,0.25); }
.ddc-article a:hover { border-bottom-color: var(--vermillion); }
.ddc-article h2, .ddc-article h3 { color: var(--ink); font-family: var(--font-serif); font-weight: 600; }
.ddc-article h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; margin: 3rem 0 1rem; }
.ddc-article h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.35; margin: 2rem 0 0.75rem; }
.ddc-article blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--vermillion);
  background: #fff;
  font-size: 1.1rem; line-height: 1.7; color: var(--ink);
}
.ddc-article ul, .ddc-article ol { margin: 0 0 1.5rem 1.2rem; padding: 0; }
.ddc-article li { margin-bottom: 0.55rem; }
.ddc-article hr { border: 0; height: 1px; background: var(--stroke-md); margin: 2.5rem 0; }

/* Article hero cover */
.ddc-article-hero {
  position: relative; margin: 0 0 2.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 4px;
  background: var(--ink);
}
.ddc-article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ddc-article-hero__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem; letter-spacing: 0.04em;
}

/* Article lead + byline */
.ddc-article-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.7; color: var(--ink);
  margin: 0 0 2rem; font-weight: 500;
}
.ddc-article-byline {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  font-size: 0.82rem; color: var(--ink-soft);
  letter-spacing: 0.04em; text-transform: uppercase;
  border-top: 1px solid var(--stroke-md);
  border-bottom: 1px solid var(--stroke-md);
  padding: 0.9rem 0; margin: 0 0 2.25rem;
}
.ddc-article-byline span + span::before {
  content: "-"; margin-right: 1.1rem; color: var(--stroke-md);
}

/* In-page table of contents */
.ddc-toc {
  background: #fff; border: 1px solid var(--stroke-md);
  padding: 1.25rem 1.5rem; margin: 0 0 2.25rem;
  border-radius: 4px;
}
.ddc-toc__label {
  font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.ddc-toc ol { margin: 0; padding-left: 1.1rem; }
.ddc-toc li { margin-bottom: 0.3rem; font-size: 0.98rem; }
.ddc-toc a { color: var(--ink); border: none; }
.ddc-toc a:hover { color: var(--vermillion); }

/* Editorial tables inside long-form posts */
.ddc-article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.ddc-article-table th,
.ddc-article-table td {
  border: 1px solid var(--stroke-md);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
}
.ddc-article-table th {
  background: rgba(26, 23, 20, 0.04);
  text-align: left;
  font-weight: 600;
}
@media (max-width: 640px) {
  .ddc-article-table { font-size: 0.88rem; }
  .ddc-article-table th,
  .ddc-article-table td { padding: 0.5rem 0.6rem; }
}

/* Section anchor heading with label */
.ddc-section-head {
  margin: 3rem 0 1.5rem;
}
.ddc-section-head .section__divider {
  width: 2rem; height: 2px; background: var(--vermillion);
  margin-bottom: 0.75rem;
}
.ddc-section-head .ddc-kicker {
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.ddc-section-head .ddc-kicker-zh {
  font-family: var(--font-brush); margin-left: 0.45rem;
  color: var(--vermillion); letter-spacing: 0.15em;
}
.ddc-section-head h2 { margin: 0.35rem 0 0; }

/* Editor's pick / info callout */
.ddc-callout {
  background: var(--vermillion-glow);
  border: 1px solid rgba(193,39,45,0.18);
  padding: 1.25rem 1.4rem; border-radius: 4px;
  margin: 2rem 0;
}
.ddc-callout__label {
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--vermillion);
  margin: 0 0 0.4rem; font-weight: 700;
}
.ddc-callout h3 {
  margin: 0 0 0.6rem; font-size: 1.1rem; color: var(--ink);
}
.ddc-callout ul { margin: 0.5rem 0 0 1.1rem; }
.ddc-callout ul li { margin-bottom: 0.45rem; }
.ddc-callout .ddc-video-placeholder {
  display: block; margin-top: 0.9rem;
  padding: 0.75rem 1rem; background: #fff;
  border: 1px dashed rgba(193,39,45,0.35);
  color: var(--ink-soft); font-size: 0.9rem;
  border-radius: 3px;
}

/* Inline product "pill" with hover popover */
.ddc-prodlink {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.05rem 0.55rem; border: 1px solid rgba(193,39,45,0.35);
  border-radius: 999px; color: var(--vermillion) !important;
  background: #fff; font-size: 0.9em; line-height: 1.5;
  text-decoration: none !important; white-space: nowrap;
  position: relative; border-bottom: 1px solid rgba(193,39,45,0.35) !important;
  transition: background 0.2s, color 0.2s;
}
.ddc-prodlink::before {
  content: "→"; font-size: 0.85em; opacity: 0.7;
}
.ddc-prodlink:hover {
  background: var(--vermillion); color: #fff !important;
  border-color: var(--vermillion);
}
.ddc-prodlink .ddc-pop {
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: 280px; background: #fff;
  border: 1px solid var(--stroke-md);
  box-shadow: 0 12px 32px rgba(26,23,20,0.12);
  border-radius: 4px; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  text-align: left; z-index: 40;
}
.ddc-prodlink:hover .ddc-pop,
.ddc-prodlink:focus .ddc-pop {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.ddc-pop__img { display: block; width: 100%; height: 130px; object-fit: cover; }
.ddc-pop__body { padding: 0.75rem 0.9rem 0.9rem; font-family: var(--font-serif); }
.ddc-pop__title {
  font-size: 0.95rem; color: var(--ink); font-weight: 600;
  line-height: 1.3; margin: 0 0 0.3rem; white-space: normal;
}
.ddc-pop__meta {
  font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.55rem;
  white-space: normal; letter-spacing: 0.02em;
}
.ddc-pop__cta {
  display: inline-block; background: var(--vermillion); color: #fff !important;
  padding: 0.35rem 0.8rem; font-size: 0.8rem;
  border-radius: 3px; border: none !important; letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .ddc-prodlink .ddc-pop { width: 240px; }
}

/* Product CTA card (end of each section, library-style) */
.ddc-product-cta {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 1.25rem; align-items: stretch;
  background: #fff; border: 1px solid var(--stroke-md);
  border-radius: 4px; overflow: hidden;
  margin: 2rem 0 2.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.ddc-product-cta:hover {
  box-shadow: 0 12px 28px rgba(26,23,20,0.08);
  transform: translateY(-1px);
}
.ddc-product-cta__img {
  display: block; width: 100%; height: 100%;
  min-height: 150px; object-fit: cover;
}
.ddc-product-cta__body {
  padding: 1.1rem 1.25rem 1.2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.ddc-product-cta__kicker {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--vermillion);
  margin: 0 0 0.35rem; font-weight: 700;
}
.ddc-product-cta__title {
  color: var(--ink); font-size: 1.1rem; font-weight: 600;
  line-height: 1.3; margin: 0 0 0.4rem;
  font-family: var(--font-serif);
}
.ddc-product-cta__title a { color: var(--ink); border: none; }
.ddc-product-cta__title a:hover { color: var(--vermillion); }
.ddc-product-cta__desc {
  color: var(--ink-soft); font-size: 0.92rem;
  line-height: 1.55; margin: 0 0 0.85rem;
}
.ddc-product-cta__row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.2rem;
  align-items: center; font-size: 0.85rem;
}
.ddc-product-cta__price {
  color: var(--ink); font-weight: 600; font-size: 1rem;
}
.ddc-product-cta__price small { color: var(--ink-soft); font-weight: 400; }
.ddc-product-cta__btn {
  display: inline-block; background: var(--vermillion); color: #fff !important;
  padding: 0.5rem 1.05rem; font-size: 0.85rem; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase; border: none !important;
}
.ddc-product-cta__btn:hover { background: var(--vermillion-deep); }
@media (max-width: 640px) {
  .ddc-product-cta { grid-template-columns: 1fr; }
  .ddc-product-cta__img { height: 200px; min-height: 0; }
}

/* Quiet "future" CTA (for products not yet live) */
.ddc-product-cta--future {
  background: var(--snow);
  border-style: dashed;
}
.ddc-product-cta--future .ddc-product-cta__kicker { color: var(--ink-soft); }
.ddc-product-cta--future .ddc-product-cta__btn {
  background: transparent; color: var(--vermillion) !important;
  border: 1px solid var(--vermillion) !important;
}
.ddc-product-cta--future .ddc-product-cta__btn:hover {
  background: var(--vermillion); color: #fff !important;
}

/* References */
.ddc-refs {
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid var(--stroke-md);
  font-size: 0.88rem; color: var(--ink-soft);
}
.ddc-refs h2 { font-size: 1.1rem; letter-spacing: 0.02em; margin: 0 0 1rem; }
.ddc-refs ol { margin: 0 0 0 1.15rem; padding: 0; }
.ddc-refs li { margin-bottom: 0.45rem; line-height: 1.55; }
.ddc-refs a { color: var(--ink-soft); border-bottom: 1px dotted var(--stroke-md); }
.ddc-refs a:hover { color: var(--vermillion); border-bottom-color: var(--vermillion); }

/* Widen single-article page container over .page-content base */
body.single-post .page-content { max-width: none; }

/* Single post: founder sidebar + article - grid areas place Eddie beside title+body on wide screens; on narrow phones stack title → Eddie → body */
body.single-post .ddc-post-main {
	min-width: 0;
	max-width: min(72rem, 100%);
	margin-left: auto;
	margin-right: auto;
}
body.single-post .ddc-post-article--with-sidebar {
	display: grid;
	grid-template-columns: minmax(168px, 200px) minmax(0, 1fr);
	grid-template-areas:
		"side head"
		"side body";
	column-gap: clamp(1.15rem, 3vw, 2rem);
	row-gap: 0;
	align-items: start;
}
body.single-post .ddc-post-article--with-sidebar > .ddc-post-article__head {
	grid-area: head;
}
body.single-post .ddc-post-article--with-sidebar > .ddc-post-sidebar {
	grid-area: side;
	position: sticky;
	top: calc(var(--header-offset, 5rem) + 1rem);
	align-self: start;
}
body.single-post .ddc-post-article--with-sidebar > .page-content {
	grid-area: body;
	min-width: 0;
}
@media (max-width: 900px) {
	body.single-post .ddc-post-article--with-sidebar {
		grid-template-columns: 1fr;
		grid-template-areas:
			"head"
			"side"
			"body";
		row-gap: clamp(0.65rem, 2vw, 1rem);
		column-gap: 0;
	}
	/* 700-900px: restore left sidebar + reading column (readable line length still OK). */
	@media (min-width: 700px) {
		body.single-post .ddc-post-article--with-sidebar {
			grid-template-columns: minmax(152px, 188px) minmax(0, 1fr);
			grid-template-areas:
				"side head"
				"side body";
			column-gap: clamp(0.85rem, 2.5vw, 1.35rem);
			row-gap: 0;
		}
		body.single-post .ddc-post-article--with-sidebar > .ddc-post-sidebar {
			top: calc(var(--header-offset, 5rem) + 0.75rem);
		}
	}
	@media (max-width: 699px) {
		body.single-post .ddc-post-article--with-sidebar > .ddc-post-sidebar {
			position: static;
		}
	}
}
.ddc-eddie-card {
	background: #fff;
	border: 1px solid var(--stroke, rgba(26, 23, 20, 0.08));
	border-radius: 10px;
	padding: 0.95rem 0.75rem 1rem;
	box-sizing: border-box;
	max-width: 100%;
}
.ddc-eddie-card__photo {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 0.65rem;
	border: 2px solid rgba(26, 23, 20, 0.06);
}
.ddc-eddie-card__eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted, #7a7468);
	text-align: center;
}
.ddc-eddie-card__name {
	font-family: var(--font-heading, "ZCOOL XiaoWei", serif);
	font-size: 1.12rem;
	font-weight: 400;
	margin: 0 0 0.2rem;
	text-align: center;
	color: var(--ink, #1a1714);
	line-height: 1.2;
}
.ddc-eddie-card__role {
	margin: 0 0 0.45rem;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ink-soft, #3a352d);
	line-height: 1.35;
}
.ddc-eddie-card__social {
	margin: 0 0 0.65rem;
	padding: 0;
	border: none;
}
.ddc-eddie-card__social-icons {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
}
.ddc-eddie-card__social-icons li {
	margin: 0;
	padding: 0;
}
.ddc-eddie-card__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	color: #fff !important;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 8px rgba(26, 23, 20, 0.14);
}
.ddc-eddie-card__social-icon:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(26, 23, 20, 0.2);
	color: #fff !important;
}
.ddc-eddie-card__social-icon svg {
	display: block;
	flex-shrink: 0;
}
.ddc-eddie-card__social-icon--linkedin {
	background: #0a66c2;
}
.ddc-eddie-card__social-icon--whatsapp {
	background: #25d366;
}
.ddc-eddie-card__social-icon--instagram {
	background: linear-gradient(
		35deg,
		#f58529,
		#dd2a7b 35%,
		#8134af 65%,
		#515bd4
	);
}
.ddc-eddie-card__social-icon--email {
	background: var(--ink-soft, #3a352d);
}
.ddc-eddie-card__wechat {
	display: block;
	margin: 0.4rem 0 0;
	width: 100%;
	text-align: center;
	font-size: 0.68rem;
	line-height: 1.35;
	color: var(--ink-soft, #3a352d);
}
.ddc-eddie-card__wechat-id {
	font-weight: 600;
	letter-spacing: 0.02em;
}
.ddc-eddie-card__quote {
	margin: 0 0 0.65rem;
	padding: 0 0 0 0.65rem;
	border-left: 2px solid var(--vermillion, #c45c3e);
	font-size: 0.76rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--ink-soft, #3a352d);
}
.ddc-eddie-card__bio {
	font-size: 0.74rem;
	line-height: 1.55;
	color: var(--ink-soft, #3a352d);
}
.ddc-eddie-card__bio p {
	margin: 0 0 0.5rem;
}
.ddc-eddie-card__bio p:last-child {
	margin-bottom: 0;
}

/* Single post - phones: compact founder strip (avatar + headline block) before article body */
@media (max-width: 699px) {
	body.single-post .ddc-eddie-card {
		overflow: auto;
		text-align: left;
		padding: 0.85rem 0.65rem 0.95rem;
	}
	body.single-post .ddc-eddie-card__photo {
		float: left;
		margin: 0 0.75rem 0.35rem 0;
	}
	body.single-post .ddc-eddie-card__eyebrow,
	body.single-post .ddc-eddie-card__name,
	body.single-post .ddc-eddie-card__role {
		text-align: left;
	}
	body.single-post .ddc-eddie-card__social {
		margin: 0 0 0.5rem;
	}
	body.single-post .ddc-eddie-card__social-icons {
		justify-content: flex-start;
	}
	body.single-post .ddc-eddie-card__wechat {
		text-align: left;
	}
	body.single-post .ddc-eddie-card__quote {
		clear: both;
		margin-top: 0.35rem;
	}
}

/* ─── Blog index - library-style themed sections ─── */
.page-template-page-blog .section.ddc-blog-library {
  padding: clamp(2.4rem, 5.4vw, 4.2rem) 0 clamp(2.2rem, 5vw, 3.8rem);
}
.page-template-page-blog .section__head {
  margin-bottom: clamp(1.35rem, 2.8vw, 2.1rem);
}
.page-template-page-blog .section__head .seal {
  margin-bottom: 0.65rem;
}
.ddc-blog-library .section__head--wide {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.ddc-blog-library .section__head--wide .section__label {
  justify-content: center;
}
.ddc-blog-library .section__head--wide h1 {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}
.ddc-blog-library .section__sub {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
}
.ddc-blog-library .seal { margin-left: auto; margin-right: auto; }
.ddc-blog-library .hr-char {
  margin: clamp(1.8rem, 3.8vw, 2.8rem) 0;
}

/* ─── Free class page ─── */
.ddc-free-class-page { background: var(--paper); }
.ddc-free-class-hero {
  padding: clamp(2.8rem, 6vw, 4.8rem) 0 clamp(2.4rem, 5vw, 3.8rem);
  position: relative;
}
.ddc-free-class-hero__grid {
  display: grid;
  gap: clamp(1.8rem, 3.5vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .ddc-free-class-hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .ddc-free-class-hero__copy { grid-column: 2; grid-row: 1; }
  .ddc-free-class-hero .ddc-free-class-form-wrap { grid-column: 1; grid-row: 1; }
}

.ddc-free-class-hero__copy { max-width: 40rem; }
.ddc-free-class-hero__copy .seal {
  background: rgba(255,255,255,0.05);
  color: #f5c06b;
  border-color: rgba(245,192,107,0.6);
  opacity: 1;
}
.ddc-free-class-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.6vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0.35rem 0 1rem;
}
.ddc-free-class-hero__lead {
  color: rgba(245,242,237,0.88);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.8;
  max-width: 36rem;
  margin: 0 0 1.3rem;
}
.ddc-free-class-hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: grid;
  gap: 0.55rem;
}
.ddc-free-class-hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(245,242,237,0.85);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.65;
}
.ddc-free-class-hero__points li strong {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.ddc-free-class-hero__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245,192,107,0.18);
  color: #f5c06b;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
}
.ddc-free-class-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.ddc-free-class-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(245,242,237,0.9);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.ddc-free-class-hero__pill--accent {
  background: rgba(245,192,107,0.18);
  border-color: rgba(245,192,107,0.4);
  color: #f5c06b;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.ddc-free-class-body {
  padding: clamp(2.4rem, 5.5vw, 4.2rem) 0 clamp(3rem, 6.5vw, 5rem);
}
.ddc-free-class-supporting {
  display: grid;
  gap: clamp(1.8rem, 3.5vw, 2.8rem);
}
@media (min-width: 980px) {
  .ddc-free-class-supporting {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.ddc-free-class-main__head { margin-bottom: 1.5rem; }
.ddc-free-class-main__head .section__label { margin: 0 0 0.35rem; }
.ddc-free-class-main__intro {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.85;
  max-width: 38rem;
}

.ddc-free-class-benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 0 0 0.5rem;
  counter-reset: ddc-benefit;
}
@media (min-width: 700px) {
  .ddc-free-class-benefits { grid-template-columns: 1fr 1fr; }
}
.ddc-free-class-benefit {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  padding: 1.25rem 1.3rem 1.2rem;
  counter-increment: ddc-benefit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ddc-free-class-benefit:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -22px rgba(26,23,20,0.45);
}
.ddc-free-class-benefit::before {
  content: counter(ddc-benefit, decimal-leading-zero);
  position: absolute;
  top: 0.9rem; right: 1.1rem;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--vermillion, #c0392b);
  opacity: 0.85;
}
.ddc-free-class-benefit h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
}
.ddc-free-class-benefit p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.75;
}

.ddc-free-class-form-wrap {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.55), 0 2px 0 rgba(0,0,0,0.05);
  color-scheme: light;
}
@media (min-width: 900px) {
  .ddc-free-class-form-wrap {
    position: relative;
    top: -0.5rem;
  }
}
.ddc-free-class-form-wrap h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  color: var(--ink);
}
.ddc-free-class-form-wrap h2::after {
  content: "";
  display: block;
  width: 2.1rem;
  height: 2px;
  background: var(--vermillion, #c0392b);
  margin: 0.7rem 0 0.35rem;
  opacity: 0.8;
}
.ddc-free-class-form-wrap__sub {
  margin: 0.35rem 0 1.3rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 34rem;
}
.ddc-free-class-form-wrap .contact-cta__notice {
  margin: 0 0 1.2rem;
  border-radius: 10px;
}

.ddc-free-class-form { display: block; }
.ddc-free-class-form__grid {
  display: grid;
  gap: 1.1rem 1.3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .ddc-free-class-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ddc-free-class-form__tz-note {
  grid-column: 1 / -1;
  margin: -0.35rem 0 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted-light);
}

.ddc-free-class-form__tz-detect {
  grid-column: 1 / -1;
  margin: -0.15rem 0 0;
}
.ddc-free-class-form__tz-detect-btn {
  cursor: pointer;
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
}
.ddc-free-class-form__tz-detect-msg {
  grid-column: 1 / -1;
  margin: -0.35rem 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-light);
}

.ddc-free-class-form .ddc-contact-field { gap: 0.5rem; }
.ddc-free-class-form .ddc-contact-field__label {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--ink);
}
.ddc-free-class-form input,
.ddc-free-class-form textarea {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.72rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.4;
  color: var(--ink);
  background-color: #fdfcf9;
  width: 100%;
  min-height: 2.75rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ddc-free-class-form textarea { line-height: 1.6; min-height: 5.5rem; }
.ddc-free-class-form input::placeholder,
.ddc-free-class-form textarea::placeholder {
  color: rgba(26,23,20,0.4);
}

.ddc-free-class-form input:focus,
.ddc-free-class-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(26,23,20,0.08);
}

/* Select: use solid bg + SVG chevron only (gradient chevrons can render as a full black box in some WebKit builds). */
.ddc-free-class-form select {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.72rem 2.75rem 0.72rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.4;
  color: var(--ink);
  background-color: #fdfcf9;
  width: 100%;
  min-height: 2.75rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1714' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ddc-free-class-form select:focus {
  outline: none;
  border-color: var(--ink);
  background-color: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,23,20,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1714' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.ddc-free-class-form select option {
  background-color: #fff;
  color: var(--ink);
}

.ddc-free-class-form input[type="date"] { cursor: pointer; }

.ddc-free-class-form button[type="submit"] {
  margin-top: 1.3rem;
  width: 100%;
  min-height: 52px;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}
.ddc-free-class-form .ddc-contact-form__fine {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted-light);
  line-height: 1.65;
}

.ddc-free-class-faq {
  position: relative;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  align-self: start;
}
.ddc-free-class-faq h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ddc-free-class-faq h2::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 2px;
  background: var(--vermillion, #c0392b);
  margin: 0.6rem 0 0.9rem;
  opacity: 0.75;
}
.ddc-free-class-faq__list { margin: 0; }
.ddc-free-class-faq__list dt {
  margin: 0.9rem 0 0.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--stroke);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}
.ddc-free-class-faq__list dt:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.ddc-free-class-faq__list dd {
  margin: 0 0 0.2rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.78;
}

.ddc-blog-section {
  margin: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.ddc-blog-section + .ddc-blog-section { margin-top: clamp(2.5rem, 5vw, 4.5rem); }

.ddc-blog-section__super {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

.ddc-blog-section__head {
  max-width: 56rem;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: center;
  padding-bottom: 0;
  border-bottom: 0;
}

.ddc-blog-section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.7rem;
}
.ddc-blog-section__title-en { display: inline-block; }
.ddc-blog-section__title-zh {
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: 0.78em;
  color: var(--vermillion);
  letter-spacing: 0.08em;
}
.ddc-blog-section__sub {
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 44rem;
}

/* Decorative hairline that sits directly beneath the section head, acting
   as a soft in-section divider (CLI-library style: centered short rule). */
.ddc-blog-section__head::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: clamp(1.1rem, 2vw, 1.35rem) auto 0;
  background: var(--vermillion);
  opacity: 0.55;
}

/* Section footer - See All link centered (CLI-style text link) */
.ddc-blog-section__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.ddc-blog-section__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vermillion) !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms, color 180ms;
}
.ddc-blog-section__more:hover {
  color: var(--ink) !important;
  border-bottom-color: var(--ink);
}
.ddc-blog-section__more span { transition: transform 180ms; }
.ddc-blog-section__more:hover span { transform: translateX(3px); }

/* Empty-section placeholder */
.ddc-blog-empty {
  border: 1px dashed var(--stroke-md);
  border-radius: 6px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--snow);
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}
.ddc-blog-empty__headline {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.ddc-blog-empty__sub {
  margin: 0 0 1.1rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.ddc-blog-empty__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--vermillion) !important;
  background: #fff;
  border: 1px solid var(--vermillion);
  border-radius: 3px;
  text-decoration: none !important;
  transition: background 160ms, color 160ms;
}
.ddc-blog-empty__btn:hover {
  background: var(--vermillion);
  color: #fff !important;
}

/* ─── Blog index - slim "read then walk" CTA at the very bottom ─── */
.ddc-blog-walkcta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--stroke-md);
  max-width: 42rem;
}
.ddc-blog-walkcta__line {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--ink-soft);
  line-height: 1.55;
}
.ddc-blog-walkcta__line [lang="zh"] {
  font-family: var(--font-brush);
  color: var(--vermillion);
  margin-left: 0.2em;
}
.ddc-blog-walkcta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vermillion) !important;
  text-decoration: none !important;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms, border-color 180ms;
}
.ddc-blog-walkcta__link:hover {
  color: var(--ink) !important;
  border-bottom-color: var(--ink);
}
.ddc-blog-walkcta__link span { transition: transform 180ms; }
.ddc-blog-walkcta__link:hover span { transform: translateX(3px); }

/* ─── Slide-in product CTA (scroll/time-triggered, bottom-right) ─── */
.ddc-floatcta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9100;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--stroke-md);
  border-radius: 6px;
  box-shadow: 0 16px 40px -16px rgba(22,20,18,0.28), 0 2px 6px rgba(22,20,18,0.06);
  font-family: var(--font-sans);
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
}
.ddc-floatcta.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ddc-floatcta__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-soft);
  overflow: hidden;
}
.ddc-floatcta__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ddc-floatcta__body { padding: 0.95rem 1.1rem 1.05rem; }
.ddc-floatcta__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--vermillion); font-weight: 600;
}
.ddc-floatcta__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.08rem; line-height: 1.3; font-weight: 600; color: var(--ink);
}
.ddc-floatcta__desc {
  margin: 0 0 0.85rem;
  font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft);
}
.ddc-floatcta__actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.ddc-floatcta__btn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600; white-space: nowrap; text-decoration: none !important;
  border-radius: 3px; border: 1px solid transparent !important;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.ddc-floatcta__btn--primary {
  background: var(--vermillion); color: #fff !important;
}
.ddc-floatcta__btn--primary:hover { background: var(--vermillion-deep); }
.ddc-floatcta__btn--ghost {
  background: #fff; color: var(--ink) !important;
  border-color: var(--stroke-md) !important;
}
.ddc-floatcta__btn--ghost:hover {
  border-color: var(--ink) !important; color: var(--ink) !important;
}
.ddc-floatcta__close {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--ink);
  border: none; border-radius: 999px;
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 3px rgba(22,20,18,0.18);
  transition: background 160ms, color 160ms;
}
.ddc-floatcta__close:hover { background: var(--ink); color: #fff; }
.ddc-floatcta__close svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .ddc-floatcta {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 520px);
    overflow: auto;
  }
  .ddc-floatcta__media {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .ddc-floatcta__body { padding: 0.75rem 0.9rem 0.85rem; }
  .ddc-floatcta__title { font-size: 1rem; margin-bottom: 0.35rem; }
  .ddc-floatcta__desc {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .ddc-floatcta__actions { gap: 0.45rem; }
  .ddc-floatcta__btn { font-size: 0.76rem; padding: 0.5rem 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ddc-floatcta { transition: opacity 120ms linear; transform: none; }
  .ddc-floatcta.is-open { transform: none; }
}

/* ─── Price Difference page ─── */
.ddc-price-diff-hero__lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.ddc-price-diff__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}
.ddc-price-diff__card,
.ddc-price-diff__notes {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.ddc-price-diff__card h2,
.ddc-price-diff__notes h3 {
  margin-top: 0;
}
.ddc-price-diff__meta {
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--ink-soft);
}
.ddc-price-diff__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.ddc-price-diff__form label {
  font-weight: 600;
  color: var(--ink);
}
.ddc-price-diff__form input[type="number"] {
  width: 100px;
  border: 1px solid var(--stroke-md);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
}
.ddc-price-diff__quick {
  margin-top: 0.9rem;
}
.ddc-price-diff__notes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .ddc-price-diff__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Block theme compatibility layer
   --------------------------------------------------------------------------
   The markup above was authored for a classic PHP theme. The rules below make
   the same class names behave identically inside the block theme shell, and
   neutralise the presets that theme.json injects into body / block wrappers.
   ========================================================================== */

/* Keep the original typographic baseline; theme.json also styles `body`. */
html body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.8;
	color: var(--ink-soft);
	background: var(--snow);
}

/* The block theme wraps every template in these; they must not add spacing. */
.wp-site-blocks,
.wp-block-template-part,
.wp-block-post-content {
	margin: 0;
	padding: 0;
}

/* Raw-markup sections carry their own spacing. */
.wp-block-html,
.wp-block-group.is-layout-flow > .wp-block-html {
	margin: 0;
}

.wp-block-html img,
.section img,
.hero img,
.tile img,
.story-card img,
.team-card img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Headings inside hand-written sections keep the DeepDive scale. */
.section h1,
.section h2,
.section h3,
.section h4,
.ddc-home h1,
.ddc-home h2,
.ddc-home h3,
.ddc-home h4 {
	margin: 0 0 0.75em;
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.25;
	color: var(--ink);
}

.ddc-home h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.ddc-home h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.ddc-home h3 { font-size: 1.15rem; }

.hero h1 {
	font-family: var(--font-heading);
	font-size: clamp(2.75rem, 6.4vw, 4.5rem);
	line-height: 1.12;
	color: #fff;
	margin: 0 0 1.25rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 3px 18px rgba(0, 0, 0, 0.45);
}

.skip-link:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 999;
}

/* --------------------------------------------------------------------------
   Program grid (dynamic JumpWP block)
   -------------------------------------------------------------------------- */

.jumpwp-programs {
	width: 100%;
}

.jumpwp-programs__grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(var(--jumpwp-programs-columns, 3), minmax(0, 1fr));
}

.jumpwp-program-card h3 a {
	color: var(--ink);
	text-decoration: none;
}

.jumpwp-program-card h3 a:hover {
	color: var(--vermillion);
}

.jumpwp-program-card .tile__price {
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--vermillion);
	margin: 0 0 0.75rem;
}

.jumpwp-programs-empty {
	color: var(--muted);
	font-size: 0.92rem;
	padding: 1rem 0;
}

.jumpwp-programs-pagination {
	margin-top: 2.5rem;
}

.jumpwp-programs-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.jumpwp-programs-pagination li a,
.jumpwp-programs-pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.6rem;
	border: 1px solid var(--stroke-md);
	border-radius: var(--radius);
	font-size: 0.85rem;
	color: var(--ink-soft);
	text-decoration: none;
}

.jumpwp-programs-pagination li .current {
	background: var(--ink);
	color: var(--snow);
	border-color: var(--ink);
}

@media (max-width: 900px) {
	.jumpwp-programs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.jumpwp-programs__grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Progressive enhancement guards
   -------------------------------------------------------------------------- */

/* Without JavaScript the reveal animation would leave sections invisible. */
html:not(.ddc-js) .reveal {
	opacity: 1;
	transform: none;
}

/* Honeypot field on the inquiry form. */
.ddc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Status message injected after an inquiry submission. */
.contact-cta__notice {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	line-height: 1.6;
}

.contact-cta__notice--success {
	color: #b7e4d4;
}

.contact-cta__notice--error {
	color: #f0b8b4;
}

/* --------------------------------------------------------------------------
   Blog library - block theme scope
   The source theme scoped these to body.page-template-page-blog, a class
   that does not exist once the page renders through a block template.
   Re-scoped to the template's own wrapper class.
   -------------------------------------------------------------------------- */

.ddc-blog-library.section {
	padding: clamp(2.4rem, 5.4vw, 4.2rem) 0 clamp(2.2rem, 5vw, 3.8rem);
}

.ddc-blog-library .section__head {
	margin-bottom: clamp(1.35rem, 2.8vw, 2.1rem);
}

.ddc-blog-library .section__head .seal {
	margin-bottom: 0.65rem;
}

/* --------------------------------------------------------------------------
   Uniform card cover sizing  --  2026-11-10
   These containers declare aspect-ratio but no explicit height, so
   `height:100%` on the <img> resolves to auto: each photo then renders at
   its own intrinsic ratio and cards in the same row end up different heights.
   Pin the image to the box so every cover is cropped to the same size.
   -------------------------------------------------------------------------- */
.tile__img,
.story-card__img,
.ddc-blog-card__cover {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tile__img img,
.story-card__img img,
.ddc-blog-card__cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.ddc-blog-card__cover-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   Blog card covers - deterministic sizing, pass 2  --  2026-11-10
   Root cause of the "images are still different sizes" report: the scroll
   reveal applied `transform: scale(0.96)` to every `.ddc-blog-card`, and the
   IntersectionObserver never fired for most of the tall sections. So 34 of 43
   cards stayed scaled down and fully transparent while the first 9 rendered
   at full size. Layout geometry must never depend on animation state.
   Keep the hover lift, drop the reveal transform/opacity for blog content.
   -------------------------------------------------------------------------- */
.ddc-blog-section.reveal,
.ddc-blog-card.reveal:not(:hover) {
  opacity: 1;
  transform: none;
}

.ddc-blog-card__cover img {
  transform: none !important;
}

.ddc-blog-card:hover .ddc-blog-card__cover img {
  transform: scale(1.05) !important;
}

/* --------------------------------------------------------------------------
   Free-chat page: the fixed floating CTA stack sits over the booking form's
   left column and covers its time-zone control. This page already is the CTA,
   so the stack is redundant here. `:has()` plus an id-based fallback keeps it
   working on older browsers too.
   -------------------------------------------------------------------------- */
body:has(.ddc-free-class-page) .ddc-floating-cta-stack,
body.page-id-125 .ddc-floating-cta-stack {
  display: none;
}


/* --------------------------------------------------------------------------
   Contact options panel. wa.me is unreachable on some networks (notably
   mainland China), so the WhatsApp button opens a small chooser instead of
   sending the visitor straight into a dead link. The same markup also gives
   desktop users a clean hover-free interaction.
   -------------------------------------------------------------------------- */
.ddc-whatsapp-wrap { position: relative; }
.ddc-whatsapp-fab {
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ddc-whatsapp-menu[hidden] { display: none !important; }
.ddc-whatsapp-menu {
  z-index: 95;
  min-width: min(268px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}
.ddc-whatsapp-menu__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  line-height: 1.35;
  font-size: .82rem;
  padding: .6rem .8rem;
  word-break: break-word;
}
.ddc-whatsapp-menu__hint {
  margin: .1rem .2rem .15rem;
  font-size: .7rem;
  line-height: 1.45;
  color: rgba(255,255,255,.72);
}
@media (max-width: 540px) {
  .ddc-whatsapp-menu { left: 0; bottom: calc(100% + 10px); }
}
.ddc-inquiry-notice-band { margin: 0 0 1rem; }


/* --------------------------------------------------------------------------
   Contact us: hover to reveal, move away to hide. Pure CSS so it behaves the
   same on every page that loads the shared header template part. Touch/mobile
   devices have no hover, so the panel is hidden there entirely instead of
   being pinned open in the hamburger menu.
   The panel sits flush against the button (margin-top:0) so the pointer never
   crosses a dead gap and the :hover state stays stable.
   -------------------------------------------------------------------------- */
.nav__item--contact { position: relative; align-self: center; }
.nav__contact-panel {
  display: none;
  position: absolute; top: 100%; right: 0; margin-top: 0;
  width: 236px; padding: .4rem; z-index: 60;
  background: rgba(252,250,247,.99);
  border: 1px solid var(--stroke, rgba(26,23,20,.12));
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(26,23,20,.08);
}
.nav__item--contact:hover .nav__contact-panel,
.nav__item--contact:focus-within .nav__contact-panel {
  display: block;
  animation: ddc-contact-nav-in 150ms ease-out;
}
@keyframes ddc-contact-nav-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav__contact-panel a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  text-decoration: none; font-size: .8rem; line-height: 1.4;
}
.nav__contact-panel a:hover { background: rgba(26,23,20,.045); }
.nav__contact-panel strong { display: block; font-weight: 600; color: var(--ink, #1a1714); }
.nav__contact-panel span { display: block; margin-top: .1rem; font-size: .73rem; color: rgba(26,23,20,.62); }

/* --------------------------------------------------------------------------
   Robustness layer.
   1) `:hover` alone can be lost when a page was served from an older cached
      HTML/CSS pair (the earlier build revealed this panel on click via
      `.is-open`). Keep both triggers so either DOM generation behaves alike.
   2) `(hover: none)` alone also matches touch-enabled laptops that DO have a
      mouse. Only kill the panel on genuinely coarse-pointer devices.
   3) JS adds `.is-open` on mouseenter as a belt-and-braces fallback in case
      a browser extension or a stacking quirk suppresses the CSS :hover.
   -------------------------------------------------------------------------- */
.nav__item--contact.is-open > .nav__contact-panel {
  display: block;
  animation: ddc-contact-nav-in 150ms ease-out;
}

@media (min-width: 901px) and (hover: hover) {
  .nav__item--contact:hover > .nav__contact-panel {
    display: block !important;
  }
  /* Legacy cached markup still carries the click-only arrow toggle. */
  .nav__contact-more { display: none !important; }
}

/* No hover on real touch devices and no permanent bar in the collapsed menu. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .nav__contact-panel { display: none !important; }
}

/* --------------------------------------------------------------------------
   Blog card title alignment  --  2026-11-10
   The generic `.section h3` rule above (specificity 0,1,1) outranks the
   original `.ddc-blog-card__title` (0,1,0), because the blog <main> carries
   the `section` class. Its `margin: 0 0 .75em` zeroed the title's left/right
   inset, so the h3 sat flush against the card border while the date, excerpt
   and "Read full article" link all kept their 1.2rem inset. Re-assert the
   intended inset with a higher-specificity selector, and restore the
   line-height that the same override had compressed from 1.45 to 1.25.
   -------------------------------------------------------------------------- */
.ddc-blog-library .ddc-blog-card .ddc-blog-card__title,
.section .ddc-blog-card .ddc-blog-card__title {
  margin: 0 1.2rem 0.55rem;
  line-height: 1.45;
}
