/* ══════════════════════════════════════════
   CFC Entertainment — styles
   Mobile first: base rules are for phones, @media (min-width) adds desktop.
══════════════════════════════════════════ */

:root {
  /* colours — Full Setup Package theme: ink black + lime */
  --bg: #101110;
  --text: #FAFAF7;
  --accent: #D6E98A;
  --accent-hover: #E4F4A3;
  --soft: #C6C8BF;      /* secondary text */
  --muted: #B4B7AE;     /* labels */
  --dim: #7C7F73;       /* decorative / large text only */
  --line: #32342F;      /* dividers */
  --border: #4B4E45;    /* button outlines */
  --panel: #171816;     /* cards */
  --raised: #1D1F1C;    /* phone frames */
  --void: #090A09;      /* intro shutters */

  /* fonts — DM Sans + Noto Sans SC, as in the Full Setup Package */
  --font-display: 'DM Sans', 'Noto Sans SC', Arial, system-ui, sans-serif;
  --font-body: 'DM Sans', 'Noto Sans SC', Arial, system-ui, sans-serif;
  --font-zh: 'DM Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* layout */
  --max: 1280px;
  --pad: 20px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t0: 0s;   /* hero start time: 4.3s while the intro is playing */
}
html.intro { --t0: 4.3s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;   /* older iPhones (iOS 15 and below) */
  overflow-x: clip;     /* newer browsers: same effect, keeps sticky elements working */
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[lang^="zh"] { font-family: var(--font-zh); }
input, select, textarea { font-size: 16px; }   /* 16px stops iPhones zooming into form fields */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; text-align: center;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-hover); color: var(--bg); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { color: var(--bg); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand-logo { display: block; height: 40px; width: auto; max-width: none; }   /* original CFC ENTERTAINMENT 创趣内容娱乐 wordmark */

.menu-btn { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; width: 100%; }
.nav-link { text-decoration: none; padding: 8px 0; display: inline-flex; align-items: center; min-height: 44px; }
.lang-switch { color: var(--muted); }
.nav-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* Phones get a Menu button only once main.js has set it up (.menu-ready);
   if the script fails to load, the links simply stay visible. */
.menu-ready .menu-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text);
  font: 700 14px var(--font-body); cursor: pointer;
}
.menu-ready .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 4px; }
.menu-ready .site-nav.open { display: flex; }
.menu-ready .site-nav .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.menu-ready .site-nav .nav-cta { margin-top: 12px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-last { padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 32px; }
.section-head-split { max-width: none; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em;
}
.section-title {
  margin: 0; font-family: var(--font-display); font-stretch: 85%; font-weight: 900;
  font-size: clamp(34px, 8vw, 64px); line-height: 1; letter-spacing: -0.02em;
}
.section-intro { margin: 0; color: var(--soft); max-width: 380px; }

.placeholder {
  display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 24px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 14px; text-align: center;
}

/* ---------- hero (Step 3) ---------- */
.hero { position: relative; padding-top: 32px; }
.hero-spot {   /* cursor spotlight (desktop only, see main.js) */
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(214, 233, 138, .13), transparent 65%);
}
.hero.spot-on .hero-spot { opacity: 1; }
.hero-grid { position: relative; display: flex; flex-direction: column; gap: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.word { display: inline-block; }   /* keeps Chinese words together */
.accent { color: var(--accent); }
.hero-title {
  margin: 0; font-weight: 900; font-size: clamp(40px, 11vw, 88px); line-height: 1.12; letter-spacing: 0.01em;
  overflow: hidden; padding-bottom: 6px;
}
.hero-line { margin: 0; font-family: var(--font-display); font-stretch: 85%; font-size: 22px; font-weight: 800; }
.hero-sub { margin: 0; font-size: 19px; font-weight: 500; color: var(--soft); }
.hero-text { margin: 0; font-size: 17px; color: var(--soft); max-width: 520px; }
.hero-stat {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-number {
  font-family: var(--font-display); font-stretch: 80%; font-weight: 900; line-height: 1;
  font-size: clamp(36px, 10vw, 64px); color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 14px; color: var(--muted); }

/* phones */
.hero-media { position: relative; min-width: 0; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.phone-tile { margin: 0; min-width: 0; }
.phone-tile:nth-child(1) { margin-top: 32px; }
.phone-tile:nth-child(3) { margin-top: 56px; }
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: var(--raised); border: 4px solid #232325;
}
.phone-poster, .phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* each phone holds several clients; one at a time is shown, the change is a slow cross-fade */
.phone-face { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); filter: blur(6px);
  transition: opacity 1.4s ease, transform 2.4s var(--ease), filter 1.4s ease; }
.phone-face.is-on { opacity: 1; transform: none; filter: none; }
.phone-face:not([data-mp4]):not([data-webm]) .phone-poster { object-fit: contain; padding: 30% 8%; }
.phone video { opacity: 0; transition: opacity .5s; }
.phone-face.playing video { opacity: 1; }
.phone-ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px; font-size: 10px; color: var(--muted);
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 62%, rgba(0,0,0,.6));
}
.phone-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.phone-tag { background: var(--bg); color: var(--soft); padding: 3px 7px; border-radius: 999px; }
.phone-play {
  align-self: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(242, 238, 230, .12);
  display: flex; align-items: center; justify-content: center; color: var(--text); transition: opacity .3s;
}
.phone.playing .phone-play { opacity: 0; }
.phone-meta { display: flex; flex-direction: column; gap: 2px; }
.phone-meta strong { font-size: 11px; color: var(--text); line-height: 1.3; }

/* pop-up notification cards */
.toasts { position: absolute; inset: 0; pointer-events: none; }
.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: 78%;
  background: var(--text); color: var(--bg); padding: 10px 14px 10px 10px; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden;
}
.toast.show { visibility: visible; animation: pop 2.6s ease forwards; }
.toast-icon {
  width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.toast-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.toast-text strong { font-size: 13px; line-height: 1.3; }
.toast-text span { font-size: 11px; color: #55524C; }
.toast-1 { left: 0; top: 14%; }
.toast-2 { right: 0; top: 44%; }
.toast-3 { left: 12%; bottom: 4%; }
.toast-4 { right: 4%; top: 2%; }

/* hero animations — only when JavaScript is on, so the text is never hidden if scripts fail */
.js .hero-title .word { opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--t0) + .5s + var(--i, 0) * .16s); }
.js .hero .reveal { opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--t0) + var(--d, 0s)); }
.js .phone-tile { opacity: 0; animation: fly-in 1.1s var(--ease) forwards; animation-delay: calc(var(--t0) + .52s + var(--i, 1) * .18s); }
.js .phone-float { animation: float 6s ease-in-out infinite; animation-delay: calc(.7s + var(--i, 1) * 1.3s); }
.btn.pulse { animation: ring 1.8s ease-out infinite; }

@keyframes rise   { from { opacity: 0; transform: translateY(60%) skewY(6deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fly-in { from { opacity: 0; transform: translateY(120px) rotate(-8deg) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ring   { 0% { box-shadow: 0 0 0 0 rgba(214, 233, 138, .55); } 100% { box-shadow: 0 0 0 18px rgba(214, 233, 138, 0); } }
@keyframes pop    { 0% { opacity: 0; transform: translateY(16px) scale(.9); } 12% { opacity: 1; transform: none; } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- client marquee (Step 4) ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; }
.marquee-inner { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-ready .marquee:not(.playing) .marquee-inner { animation-play-state: paused; }   /* pause off-screen */
.marquee-track {
  display: flex; flex: none; gap: 56px; margin: 0; padding: 0 56px 0 0; list-style: none; white-space: nowrap;
  font-family: var(--font-display); font-stretch: 90%; font-weight: 800; font-size: 22px; color: var(--dim);
}
.marquee-track li::after { content: '✦'; margin-left: 56px; color: var(--line); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- The CFC System (Step 4) ---------- */
.funnel { position: relative; }
.funnel-steps { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.funnel-step { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.step-num {
  grid-row: span 2; position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); color: #8A857C;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
}
.step-en { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.step-zh { font-size: 15px; color: var(--muted); }

/* phones: vertical line through the circles, from the first circle's centre to the last */
.funnel-line { position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; background: var(--line); }
.funnel-runner {
  position: absolute; left: -5px; top: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px 4px rgba(214, 233, 138, .6); opacity: 0;
}
/* animation starts when the section is on screen (main.js adds .started / .playing) */
.funnel.started .funnel-runner { animation: travel-y 5s linear infinite; }
.funnel.started .step-num { animation: step-on 5s linear infinite; animation-delay: calc((var(--i, 1) - 1) * 1s); }
.funnel.started:not(.playing) .funnel-runner,
.funnel.started:not(.playing) .step-num { animation-play-state: paused; }
/* dot reaches step 1 at 0s, step 2 at 1s ... step 5 at 4s, rests, then loops */
@keyframes travel-y { 0% { top: 0; opacity: 1; } 80% { top: 100%; opacity: 1; } 92% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes travel-x { 0% { left: 0; opacity: 1; } 80% { left: 100%; opacity: 1; } 92% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes step-on {
  0%, 18% { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 6px rgba(214, 233, 138, .14); }
  24%, 100% { border-color: var(--line); color: #8A857C; box-shadow: none; }
}

/* ---------- scroll reveals: sections fade up ~30px as they enter the screen ---------- */
.rv-ready .rv { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv-ready .rv.in { opacity: 1; transform: none; }

/* ---------- closing banner ---------- */
.book-banner {
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
  padding: 32px 24px; border-radius: var(--radius); background: var(--accent); color: var(--bg);
}
.book-copy { display: flex; flex-direction: column; gap: 8px; }
.book-title { margin: 0; font-weight: 900; font-size: clamp(26px, 7vw, 42px); line-height: 1.25; }
.book-line { margin: 0; font-family: var(--font-display); font-stretch: 85%; font-size: 17px; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand-logo { height: 46px; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-copy { margin: 0; color: var(--muted); }


/* ---------- shared pieces for the inner pages ---------- */
.accent { color: var(--accent); }
.section-alt { background: #121213; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-hero { padding-top: 40px; }
.badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--soft);
}
.chip { background: var(--text); color: var(--bg); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; }
.page-title {
  margin: 0 0 22px; font-family: var(--font-display); font-stretch: 85%; font-weight: 900;
  font-size: clamp(38px, 9vw, 80px); line-height: 1; letter-spacing: -0.02em; max-width: 900px;
}
.page-lead { margin: 0 0 14px; font-size: 18px; color: var(--soft); max-width: 680px; }
.page-lead.strong { color: var(--text); font-weight: 700; font-size: 21px; }
.section-intro.wide { max-width: 680px; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; }

.stat-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.stat-card-n { font-family: var(--font-display); font-stretch: 80%; font-weight: 900; font-size: 44px; line-height: 1; color: var(--accent); }
.stat-card-l { font-weight: 700; }
.stat-card-s { font-size: 14px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.card { padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.card p { margin: 0; color: var(--soft); }
.card-title { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.card-icon { display: block; font-size: 28px; margin-bottom: 12px; }
.card-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--accent); margin-bottom: 10px; letter-spacing: .08em; }

.principle { margin-bottom: 14px; padding: 32px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); text-align: center; }
.principle-chain { margin: 0 0 10px; font-family: var(--font-display); font-stretch: 85%; font-weight: 900; font-size: clamp(20px, 4.4vw, 36px); line-height: 1.25; }
.principle-sub { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.principle-text { margin: 0 auto; max-width: 620px; color: var(--soft); }

/* packages */
.pkg-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 30px 24px 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.pkg-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pkg-badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.pkg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pkg-name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 24px; }
.pkg-idx { color: var(--dim); font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.pkg-price { margin: 12px 0 0; font-family: var(--font-display); font-stretch: 85%; font-weight: 900; font-size: 38px; line-height: 1.1; }
.pkg-per { font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--soft); }
.pkg-note { margin: 4px 0 0; font-size: 14px; color: var(--soft); }
.pkg-includes { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 6px; }
.pkg-includes li { font-size: 15px; color: var(--soft); }
.pkg-includes li::before { content: '· '; color: var(--accent); font-weight: 900; }
.pkg-label { margin: 20px 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pkg-highlights { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pkg-highlights li { position: relative; padding-left: 22px; }
.pkg-highlights li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.pkg-best { margin: 20px 0; font-size: 15px; color: var(--muted); font-style: italic; }
.pkg-btn { margin-top: auto; width: 100%; }
.consult { margin-top: 18px; padding: 28px 24px; border-radius: 24px; border: 1px dashed var(--border); text-align: center; }
.consult .eyebrow { justify-content: center; margin-bottom: 8px; }
.consult-title { margin: 0 0 10px; font-size: 22px; }
.consult p:last-child { margin: 0 auto; max-width: 620px; color: var(--soft); }
.process-list .card { position: relative; }

/* portfolio */
.client-list { display: grid; gap: 18px; }
.client { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 20px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.client-img { width: 100%; max-width: 260px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 4px solid #232325; background: var(--raised); }
.client-body { min-width: 0; }
.client-body .eyebrow { margin-bottom: 8px; }
.client-idx { color: var(--accent); font-weight: 700; }
.client-name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1.15; }
.client-handle { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.client-headline { margin: 14px 0 0; font-size: 17px; }
.client-stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client-stats div { display: flex; flex-direction: column; }
.client-stat-n { font-family: var(--font-display); font-stretch: 85%; font-weight: 900; font-size: 30px; color: var(--accent); line-height: 1.1; }
.client-stat-l { font-size: 13px; color: var(--muted); }
.client-wins { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.client-wins li { position: relative; padding-left: 22px; color: var(--soft); }
.client-wins li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.client-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.client-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.client-social a:hover { color: var(--text); border-color: var(--text); }
/* platform brand colours (icons are white on the brand colour) */
.brand-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.brand-dot.has-logo { background: none !important; border: 0 !important; }
.brand-dot.has-logo img { width: 30px; height: 30px; object-fit: contain; }
.brand-whatsapp { background: #25D366; }
.brand-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); }
.brand-tiktok { background: #000; box-shadow: inset 0 0 0 2px #25F4EE, 2px 0 0 #FE2C55; }
.brand-facebook { background: #1877F2; }
.brand-youtube { background: #FF0000; }
.brand-xhs { background: #FF2442; }

/* contact form */
.form-box { margin-top: 28px; max-width: 720px; padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: 16px/1.4 var(--font-body);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { display: none; }
.form-submit { width: 100%; }
.form-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 700; }
.form-msg.ok { color: #6BD69B; }
.form-msg.err { color: #FF8A70; }
.contact-meta { display: grid; gap: 16px; margin: 32px 0 0; }
.contact-meta div { display: flex; flex-direction: column; gap: 2px; }
.contact-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-meta dd { margin: 0; font-size: 17px; }

/* ---------- case studies (Step 5) ---------- */
.case-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.case-tab {
  min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font: 700 15px var(--font-body); cursor: pointer;
}
.case-tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.case-panel { margin-bottom: 18px; padding: 20px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.case-panel:focus-visible { outline-offset: 4px; }
.example-flag { margin: 0 0 14px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: #3A2A10; color: #FFC98A; font-size: 13px; font-weight: 700; }
.case-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.case-video {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden;
  background: var(--raised); border: 6px solid var(--line);
}
.case-poster, .case-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* until a real 9:16 video exists, show the client's square logo/photo whole, centred */
.case-video:not(.has-video) .case-poster { object-fit: contain; padding: 12%; background: var(--raised); }
.case-video-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; font-size: 14px; }
.case-video-ui span:last-child { font-size: 12px; color: var(--muted); }
.case-play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.case-video.playing .case-video-ui { display: none; }
.unmute { position: absolute; left: 12px; bottom: 12px; z-index: 2; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 0; background: rgba(14,14,15,.8); color: var(--text); font: 700 13px var(--font-body); cursor: pointer; }
.case-body { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.case-head .eyebrow { margin-bottom: 8px; }
.case-name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 6vw, 40px); line-height: 1.1; }
.case-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.case-stats .case-stat { flex: 1 1 0; min-width: 120px; }
.case-summary { margin: 12px 0 0; font-size: 17px; color: var(--soft); }
.case-stat { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--bg); min-width: 0; }
.lbl { font-size: 12px; color: var(--muted); }
.case-stat .val { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 5vw, 32px); color: var(--soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.case-stat .val-now { color: var(--accent); }
.case-stat .val:not(.val-before):not(.val-now) { color: var(--text); }
.case-chart { display: flex; flex-direction: column; gap: 10px; }
.chart-box { position: relative; height: 140px; margin-top: 28px; }
.chart-box svg { display: block; width: 100%; height: 140px; overflow: visible; }
.chart-base { stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-end { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); }
.chart-end-label {
  position: absolute; right: -4px; margin-top: -42px; line-height: 20px; padding: 2px 8px; border-radius: 999px;   /* sits just above the end dot (no transform: the pop-in animation uses it) */
  background: var(--accent); color: var(--bg); font: 800 13px var(--font-display); white-space: nowrap;
}
.cases-ready .case-panel.drawing .chart-end-label { animation: dot-pop 1.8s ease both; }
.chart-note { font-size: 12px; color: var(--muted); font-style: italic; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.case-result { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-result p { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 500; }
.case-result .owner { font-size: 14px; color: var(--muted); }
/* drawing animation: only once main.js has taken over (.cases-ready), so the line is never left hidden */
.cases-ready .case-panel[hidden] { display: none; }
.cases-ready .case-panel.drawing .chart-box svg { animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) both; }
.cases-ready .case-panel.drawing .chart-end { animation: dot-pop 1.8s ease both; }
@keyframes draw { from { clip-path: inset(-10px 100% -10px 0); } to { clip-path: inset(-10px 0 -10px 0); } }   /* reveals the line left to right at any width */
@keyframes dot-pop { 0%, 82% { opacity: 0; transform: scale(0); } 92% { opacity: 1; transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- contact button, bottom right (Step 7) ---------- */
.fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; transition: opacity .25s, transform .25s; }
.fab.fab-hidden:not([open]) { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }
.fab-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  list-style: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent;
  /* dark disc behind the spinning "CLICK ME • CONTACT US" text, so it stays readable on light sections too */
  background: var(--bg); box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(250, 250, 247, .16);
}
.fab[open] .fab-btn { background: transparent; box-shadow: none; }
.fab-btn::-webkit-details-marker { display: none; }
.fab-btn::marker { content: ''; }
.fab-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.fab-ring text { font: 800 10.5px var(--font-display); letter-spacing: 1.6px; fill: var(--text); }
.fab-mark, .fab-close {
  position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--text); color: var(--bg); font: 900 17px var(--font-display); box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}
.fab-close { display: none; font-size: 20px; background: var(--accent); }
.fab[open] .fab-mark { display: none; }
.fab[open] .fab-close { display: flex; }
.fab[open] .fab-ring { opacity: 0; }
.fab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fab-menu { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab[open] .fab-menu li { animation: fab-in .25s var(--ease) both; }
.fab[open] .fab-menu li:nth-child(2) { animation-delay: .04s; }
.fab[open] .fab-menu li:nth-child(3) { animation-delay: .08s; }
.fab[open] .fab-menu li:nth-child(4) { animation-delay: .12s; }
.fab-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 18px 7px 8px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text); font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}
.fab-link:hover { color: var(--text); border-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fab-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.site-footer { padding-bottom: 110px; }

/* home page packages summary */
.pkg-mini .pkg-highlights { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pkg-mini .pkg-best { margin-bottom: 0; }
.pkg-more { margin: 22px 0 0; text-align: center; }

/* case tabs: one swipeable row on phones instead of several rows of buttons */
.case-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
.case-tabs::-webkit-scrollbar { display: none; }
.case-tab { flex: none; scroll-snap-align: start; white-space: nowrap; }

/* ---------- film grain (whole page, 7%) ---------- */
body::after {
  content: ''; position: fixed; inset: -10%; z-index: 60; pointer-events: none; opacity: .07;
  background: url('/assets/noise.png') repeat; animation: grain .5s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }

/* ---------- cinematic intro (Step 2) — only when <head> added .intro to <html> ---------- */
.intro-ov, .intro-skip { display: none; }
html.intro .intro-ov { display: block; position: fixed; inset: 0; z-index: 50; overflow: hidden; animation: intro-gone 0s linear 5.5s forwards; }
html.intro .intro-skip {
  display: inline-flex; align-items: center; position: fixed; right: 64px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(242,238,230,.4); background: rgba(5,5,5,.6);
  color: var(--text); font: 700 14px var(--font-body); cursor: pointer; animation: intro-gone 0s linear 4.3s forwards;
}
html.intro body { overflow: hidden; }
html.intro .site-header, html.intro main { animation: page-in 1.4s var(--ease) 4.3s both; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--void); }
.intro-top { top: 0; animation: curtain-up 1.15s cubic-bezier(.75, 0, .2, 1) 4.3s forwards; }
.intro-bot { bottom: 0; animation: curtain-down 1.15s cubic-bezier(.75, 0, .2, 1) 4.3s forwards; }
.intro-content { position: absolute; inset: 0; color: var(--text); animation: zoom-away .7s ease-in 4.3s forwards; }
.vf { position: absolute; width: 32px; height: 32px; border: 0 solid rgba(242,238,230,.55); }
.vf-tl { top: 20px; left: 20px; border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: 20px; right: 20px; border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: 20px; left: 20px; border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: 20px; right: 20px; border-bottom-width: 2px; border-right-width: 2px; }
.intro-scan { position: absolute; left: 0; right: 0; height: 1px; background: rgba(242,238,230,.08); animation: scan 2.6s linear infinite; }
.intro-rec { position: absolute; top: 30px; left: 64px; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.intro-rec .intro-tc { color: var(--muted); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; animation: blink 1s steps(1) infinite; }
.intro-spec { position: absolute; top: 30px; right: 64px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.intro-place { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.intro-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; }
.intro-question { opacity: 0; font-family: var(--font-zh); font-weight: 900; font-size: clamp(38px, 9vw, 80px); letter-spacing: .04em; animation: question 1.7s cubic-bezier(.3, .7, .3, 1) .2s forwards; }
.intro-wordmark { display: block; width: min(76vw, 620px); height: auto; opacity: 0; animation: letter 1.2s var(--ease) 1.95s forwards; }   /* original wordmark */
.intro-sub { opacity: 0; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .5em; color: var(--soft); animation: fade-up .8s ease 2.9s forwards; }
.intro-load { width: 240px; max-width: 70vw; height: 2px; background: var(--line); overflow: hidden; }
.intro-load span { display: block; width: 0; height: 100%; background: var(--accent); animation: load 2.3s cubic-bezier(.6, 0, .2, 1) 1.8s forwards; }
.intro-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: flash .7s ease-out 4.3s forwards; }
@keyframes intro-gone { to { visibility: hidden; pointer-events: none; } }
@keyframes page-in { from { transform: scale(1.08); filter: blur(10px); opacity: .3; } to { transform: none; filter: none; opacity: 1; } }
@keyframes curtain-up { to { transform: translateY(-101%); } }
@keyframes curtain-down { to { transform: translateY(101%); } }
@keyframes zoom-away { to { opacity: 0; transform: scale(1.3); filter: blur(10px); } }
@keyframes scan { from { top: -2%; } to { top: 102%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes question { 0% { opacity: 0; transform: scale(1.15); filter: blur(14px); } 18% { opacity: 1; transform: none; filter: none; } 78% { opacity: 1; transform: scale(.98); filter: none; } 100% { opacity: 0; transform: scale(.92); filter: blur(10px); } }
@keyframes letter { from { opacity: 0; transform: scale(1.7); filter: blur(16px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes load { from { width: 0; } to { width: 100%; } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }


/* ---------- landing page (/landingpage/): English and Chinese side by side ---------- */
.zh { color: var(--muted); }
p.zh { margin-top: 6px; }
.zh-inline { font-size: .8em; font-weight: 500; color: var(--muted); }
.lp-title { max-width: 980px; }
.lp-hero .page-lead.zh { font-size: 16px; margin-top: -6px; }
.lp-hero .btn-row { margin: 26px 0 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px !important; }
.tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--soft); }
.truth-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.truth { padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.truth-new { border-color: rgba(214, 233, 138, .5); }
.truth-title { margin: 0 0 14px; font-size: 19px; }
.truth-old .truth-title { color: var(--muted); }
.truth-new .truth-title { color: var(--accent); }
.truth ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.truth li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; color: var(--soft); }
.truth li .zh { display: block; margin-top: 4px; font-size: 14px; }
.truth .mk { color: var(--accent); font-weight: 900; }
.truth strong { color: var(--text); }
.lp-chain { margin-top: 14px; }
.lp-banner-title { font-family: var(--font-display); font-stretch: 85%; }
.book-banner .zh { color: rgba(14, 14, 15, .75); }
.lp-cases { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lp-case-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.lp-case-head .card-title { margin: 0; }
.lp-case-img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--raised); border: 2px solid var(--line); }
.lp-case-head .lp-role { margin: 4px 0 0 !important; }
.lp-role { margin: -4px 0 10px !important; font-size: 13px; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .08em; }
.lp-res { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lp-res div { display: flex; flex-direction: column; }
.lp-res b { font-family: var(--font-display); font-size: 20px; color: var(--accent); }
.lp-res small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.lp-faq { grid-template-columns: 1fr; }
.lp-offer-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.lp-offer { padding: 28px 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(214, 233, 138, .4); font-size: 13px; font-weight: 700; }
.lp-offer .pkg-price { margin-top: 0; }
.lp-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.lp-row-icon { font-size: 20px; }
.lp-row strong { display: block; margin-bottom: 4px; }
.lp-row p { margin: 0; color: var(--soft); font-size: 15px; }
.lp-row p.zh { font-size: 14px; color: var(--muted); }
.lp-note { margin-top: 8px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; font-size: 14px; color: var(--soft); }
.lp-note p { margin: 0; }
.lp-form { margin-top: 0; max-width: none; }
.lp-form .consult-title { margin-bottom: 0; }
.lp-form label .q { display: block; margin-top: 4px; font-weight: 500; color: var(--text); }
.lp-form label .q-en { font-size: 13px; color: var(--muted); font-weight: 400; }
.lp-nopay { color: var(--text) !important; font-weight: 700; }
.lp-final-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.lp-final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lp-wa-line { color: var(--bg); font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.lp-wa-line:hover { color: var(--bg); text-decoration: underline; }

/* ══════════ tablet / desktop ══════════ */
@media (min-width: 900px) {
  :root { --pad: 24px; }
  .header-row { flex-wrap: nowrap; padding-top: 24px; padding-bottom: 24px; }
  .menu-ready .menu-btn { display: none; }
  .site-nav, .menu-ready .site-nav { display: flex; flex-direction: row; align-items: center; width: auto; gap: 28px; padding: 0; }
  .menu-ready .site-nav .nav-link { padding: 8px 0; border-bottom: 0; }
  .menu-ready .site-nav .nav-cta { margin-top: 0; }

  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
  .section-head-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .hero { padding-top: 48px; }
  .hero-grid { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
  .hero-copy { flex: 1 1 460px; }
  .hero-media { flex: 1 1 520px; }
  .phones { gap: 16px; }
  .phone-tile:nth-child(1) { margin-top: 48px; }
  .phone-tile:nth-child(3) { margin-top: 80px; }
  .phone { border-radius: 22px; border-width: 6px; }
  .phone-ui { padding: 14px; font-size: 11px; }
  .phone-meta strong { font-size: 13px; }
  .phone-play { width: 52px; height: 52px; }
  .toast { max-width: none; padding: 12px 18px 12px 12px; }
  .toast-icon { width: 34px; height: 34px; }
  .toast-text strong { font-size: 14px; }
  .toast-text span { font-size: 12px; }
  .toast-1 { left: -28px; top: 18%; }
  .toast-2 { right: -16px; top: 46%; }
  .toast-3 { left: 18%; bottom: 6%; }
  .toast-4 { right: 6%; top: 4%; }
  .hero-line { font-size: 24px; }
  .hero-sub { font-size: 20px; }
  .hero-text { font-size: 18px; }

  .marquee-track { font-size: 28px; }
  .funnel-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .funnel-step { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .step-num { width: 76px; height: 76px; font-size: 22px; }
  /* horizontal line from the centre of step 1 (10%) to the centre of step 5 (90%) */
  .funnel-line { left: 10%; right: 10%; top: 37px; bottom: auto; width: auto; height: 2px; }
  .funnel-runner { top: -5px; left: 0; margin-top: 0; margin-left: -6px; }
  .funnel.started .funnel-runner { animation-name: travel-x; }

  .book-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; }
  .footer-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .page-hero { padding-top: 64px; }
  .truth-grid { grid-template-columns: 1fr 1fr; }
  .lp-cases { grid-template-columns: 1fr 1fr; }
  .lp-faq { grid-template-columns: 1fr 1fr; }
  .lp-offer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-offer { padding: 36px; }
  .lp-final-actions { align-items: flex-end; flex: none; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle { padding: 44px 40px; }
  .pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 28px; }
  .form-box { padding: 32px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-meta { grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; }
  .case-panel { padding: 40px; }
  .case-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
  .case-stat { padding: 20px; }
  .intro-rec { top: 46px; left: 88px; font-size: 13px; }
  .intro-spec { top: 46px; right: 88px; font-size: 13px; }
  .vf { width: 40px; height: 40px; }
  .vf-tl, .vf-tr { top: 32px; } .vf-bl, .vf-br { bottom: 32px; }
  .vf-tl, .vf-bl { left: 32px; } .vf-tr, .vf-br { right: 32px; }
  .intro-place { bottom: 46px; font-size: 12px; }
  .intro-sub { font-size: 13px; }
  html.intro .intro-skip { right: 96px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .fab { right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .case-tabs { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title .word, .js .hero .reveal, .js .phone-tile { opacity: 1; animation: none; }
  .js .phone-float, .btn.pulse { animation: none; }
  .hero-spot { display: none; }
  .marquee-inner { animation: none; width: auto; }
  .marquee-copy { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 0 var(--pad); white-space: normal; }
  .marquee-track li::after { display: none; }
  .funnel-runner { display: none; }
  .funnel.started .step-num { animation: none; }
  body::after { animation: none; }
  .phone-face { transition: none; }
  .fab-ring { animation: none; }
  .fab[open] .fab-menu li { animation: none; }
  .cases-ready .case-panel.drawing .chart-box svg, .cases-ready .case-panel.drawing .chart-end, .cases-ready .case-panel.drawing .chart-end-label { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* footer wordmark caption */
.footer-brand .brand-zh { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* intro on narrow phones: keep the corner labels and the Skip button from overlapping */
@media (max-width: 520px) {
  .intro-spec { display: none; }
  .intro-place { bottom: 96px; }
}

.footer-line { margin: 0; text-align: left; font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }

/* footer on phones: tidy, left-aligned, links in a compact grid */
@media (max-width: 719px) {
  .footer-row { gap: 14px; }
  .footer-brand .brand-logo { height: 36px; align-self: flex-start; }
  .footer-links { gap: 0 20px; }
  .footer-links a { min-height: 40px; }
}
@media (min-width: 720px) { .footer-line { text-align: center; } }

/* keep the wordmark proportions when the footer text next to it is long (landing page footer stretched it) */
.footer-brand .brand-logo { width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; }
.brand-logo { width: auto; }
.footer-links a { min-width: 44px; justify-content: center; }
