/* c2me.co static site — single stylesheet.
   Brand CI: deep teal #0F3A3D / turquoise #5DBFC9 (LOCKED).
   Sections: 1 tokens+base  2 header/nav/lang  3 Avada-equivalent layout (fw/col/t/tx/btn/img/checklist)
             4 cui-* component system  5 motion  6 footer  7 404 */

/* ---------- 1. tokens + base ---------- */
:root {
  --c2me-teal: #0F3A3D;
  --c2me-turquoise: #5DBFC9;
  --c2me-mid: #3A95A0;
  --c2me-ice: #E8F4F5;
  --c2me-mist: #F7FBFC;
  --c2me-ink: #374151;
  --c2me-ink-soft: #4B5563;
  --c2me-ink-muted: #6B7280;
  --c2me-line: #dbeef0;
  --c2me-radius-card: 12px;
  --c2me-radius-btn: 8px;
  --c2me-shadow-card: 0 1px 3px rgba(15, 58, 61, 0.08);
  --c2me-shadow-lift: 0 8px 24px rgba(15, 58, 61, 0.14);
  --c2me-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --awb-color1: #ffffff; --awb-color2: #F3F4F6; --awb-color3: #E8F4F5; --awb-color4: #5DBFC9;
  --awb-color5: #0F3A3D; --awb-color6: #6B7280; --awb-color7: #3A95A0; --awb-color8: #1F2937;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", "Noto Sans SC", sans-serif;
  --site-width: 1320px;
  --hdr-h: 117px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #ffffff; color: #374151;
  font-family: var(--font); font-size: 17px; line-height: 1.7; font-weight: 400; letter-spacing: -0.01em;

}
img { max-width: 100%; height: auto; }
a { color: #3a95a0; text-decoration: none; transition: color .2s; }
a:hover { color: #0f3a3d; }
p { margin: 0 0 20px; }
/* heading weights/spacing mirror the live computed styles (Avada's .post-content hN rules won the cascade there) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 400; color: #0F3A3D; }
h1 { font-size: 56px; line-height: 1.15; letter-spacing: -0.02em; margin: .67em 0; }
h2 { font-size: 44px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1.1em; }
h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; margin: 1em 0; }
h4 { font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; margin: 1.33em 0; }
strong, b { font-weight: bolder; }
th { font-weight: 400; }
main ul, main ol { margin: 0 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #0F3A3D; color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- 2. header / nav / language menu ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #ffffff; transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 1px 0 #e5e7eb; }
.hdr-inner { max-width: var(--site-width); margin: 0 auto; padding: 0 30px; min-height: var(--hdr-h);
  display: flex; align-items: center; gap: 24px; }
.hdr-logo { display: block; margin: 10px 0; flex: 0 0 auto; line-height: 0; }
.hdr-logo img { max-height: 56px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 42px; }
.main-nav a { display: block; font-size: 15px; font-weight: 400; letter-spacing: 0; color: #1F2937; line-height: 1.4; text-align: center; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #0F3A3D; }
.hdr-tools { display: flex; align-items: center; gap: 6px; }
.lang { position: relative; }
.lang-toggle, .nav-toggle { appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #1F2937; border-radius: 8px; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { color: #0F3A3D; background: #E8F4F5; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: #ffffff; border: 1px solid #dbeef0; border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 58, 61, 0.14); z-index: 1100; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; padding: 9px 14px; border-radius: 6px; color: #1F2937; font-size: 15px; line-height: 1.4; white-space: nowrap; }
.lang-menu a:hover, .lang-menu a:focus { background: #E8F4F5; color: #0F3A3D; }
.lang-menu a[aria-current="true"] { color: #0F3A3D; font-weight: 700; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
  :root { --hdr-h: 76px; }
  .hdr-inner { padding: 0 20px; gap: 12px; }
  .hdr-tools { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--hdr-h) 0 0 0; margin: 0; background: #ffffff; z-index: 999;
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; overflow-y: auto; }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 8px; padding: 24px; }
  .main-nav a { font-size: 24px; padding: 10px 12px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 400px) { .hdr-logo img { max-height: 44px; } }

/* ---------- 3. Avada-equivalent layout primitives (driven by inline --awb-* vars) ---------- */
/* Avada-style vars are set inline per element; stop them inheriting into nested elements
   (inline declarations on an element always win over this rule). */
main *:not(.col-in) {
  --awb-padding-top: initial; --awb-padding-right: initial; --awb-padding-bottom: initial; --awb-padding-left: initial;
  --awb-background-color: initial; --awb-bg-color: initial; --awb-bg-color-hover: initial;
  --awb-border-color: initial; --awb-border-style: initial; --awb-border-radius: initial;
  --awb-border-top: initial; --awb-border-right: initial; --awb-border-bottom: initial; --awb-border-left: initial;
  --awb-overflow: initial; --awb-box-shadow: initial;
  --awb-width-large: initial; --awb-width-medium: initial; --awb-width-small: initial;
  --awb-margin-top-large: initial; --awb-margin-bottom-large: initial;
  --awb-spacing-left-large: initial; --awb-spacing-right-large: initial;
  --awb-spacing-left-medium: initial; --awb-spacing-right-medium: initial;
  --awb-spacing-left-small: initial; --awb-spacing-right-small: initial;
  --awb-text-color: initial; --awb-margin-top: initial; --awb-margin-bottom: initial;
  --awb-content-alignment: initial; --awb-font-size: initial; --awb-line-height: initial;
}
.fw { display: flex; justify-content: center; width: 100%;
  padding: var(--awb-padding-top, 0px) var(--awb-padding-right, 24px) var(--awb-padding-bottom, 0px) var(--awb-padding-left, 24px);
  background-color: var(--awb-background-color, transparent); }
.fw-row { display: flex; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; margin-left: auto; margin-right: auto; }
.col { position: relative; display: flex; min-width: 0;
  width: var(--awb-width-large, 100%);
  margin-top: var(--awb-margin-top-large, 0px); margin-bottom: var(--awb-margin-bottom-large, 0px);
  padding-left: var(--awb-spacing-left-large, 0px); padding-right: var(--awb-spacing-right-large, 0px); }
.col-in { display: block; width: 100%; min-height: 1px;
  padding: var(--awb-padding-top, 0px) var(--awb-padding-right, 0px) var(--awb-padding-bottom, 0px) var(--awb-padding-left, 0px);
  background-color: var(--awb-bg-color, transparent);
  border-style: var(--awb-border-style, solid); border-color: var(--awb-border-color, transparent);
  border-width: var(--awb-border-top, 0) var(--awb-border-right, 0) var(--awb-border-bottom, 0) var(--awb-border-left, 0);
  border-radius: var(--awb-border-radius, 0); overflow: var(--awb-overflow, visible);
  box-shadow: var(--awb-box-shadow, none); transition: transform .2s ease, background-color .2s; }
.col-in[style*="justify-content:center"], .col-in[style*="justify-content:flex-end"], .col-in[style*="justify-content:space"] { display: flex; flex-direction: column; }
.col-in:hover { background-color: var(--awb-bg-color-hover, var(--awb-bg-color, transparent)); }
.fw .col-in[style*="justify-content:center"], .col-in[style*="justify-content:flex-end"], .col-in[style*="justify-content:space"] { display: flex; flex-direction: column; }
.col-in:hover { transform: translateY(-2px); }
@media (max-width: 1024px) {
  .col { width: var(--awb-width-medium, 100%); padding-left: var(--awb-spacing-left-medium, 0px); padding-right: var(--awb-spacing-right-medium, 0px); }
}
@media (max-width: 640px) {
  .col { width: var(--awb-width-small, 100%); padding-left: var(--awb-spacing-left-small, 0px); padding-right: var(--awb-spacing-right-small, 0px); }
  .fw { padding-left: min(var(--awb-padding-left, 20px), 20px); padding-right: min(var(--awb-padding-right, 20px), 20px); }
}
/* title */
.t { margin-top: var(--awb-margin-top, 0px); margin-bottom: var(--awb-margin-bottom, 31px); color: var(--awb-text-color, #0f3a3d); }
.t > h1, .t > h2, .t > h3, .t > h4, .t > h5, .t > h6 { color: inherit; margin: 0; }
.t-center { text-align: center; }
/* text block */
.tx { text-align: var(--awb-content-alignment); font-size: var(--awb-font-size);
  line-height: var(--awb-line-height); color: var(--awb-text-color);
  margin-top: var(--awb-margin-top, 0px); margin-bottom: var(--awb-margin-bottom, 0px); }
.tx > :last-child { margin-bottom: 0; }
.tx-nm > p { margin: 0; }
.tx h1, .tx h2, .tx h3, .tx h4 { color: inherit; }
/* buttons */
.ac { text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 18px; line-height: 21px; letter-spacing: 0;
  padding: 14px 28px; border-radius: 8px; text-transform: var(--button_text_transform, capitalize);
  color: var(--button_accent_color, #ffffff);
  background-image: linear-gradient(180deg, var(--button_gradient_top_color, #5dbfc9) 0%, var(--button_gradient_bottom_color, #3a95a0) 100%);
  border: var(--button_border_width-top, 0px) solid var(--button_border_color, #ffffff);
  box-shadow: 0 2px 4px rgba(15, 58, 61, 0.08), 0 1px 2px rgba(15, 58, 61, 0.04); transition: all .18s ease; }
.btn:hover, .btn:focus { color: var(--button_accent_hover_color, #ffffff);
  background-image: linear-gradient(180deg, var(--button_gradient_top_color_hover, #3a95a0) 0%, var(--button_gradient_bottom_color_hover, #0f3a3d) 100%);
  border-color: var(--button_border_hover_color, #ffffff);
  box-shadow: 0 4px 12px rgba(15, 58, 61, 0.16), 0 2px 4px rgba(15, 58, 61, 0.08); transform: translateY(-1px); }
.btn-lg { font-size: 14px; }
/* images */
.img-el { margin-bottom: var(--awb-margin-bottom, 0px); line-height: 0; }
.img-frame { display: inline-block; max-width: var(--awb-max-width, 100%); width: 100%; overflow: hidden; vertical-align: middle; }
.img-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 1024px) { .img-el.md-center { text-align: center !important; } }
@media (max-width: 640px) { .img-el.sm-center { text-align: center !important; } }
/* checklist */
.checklist { list-style: none; margin: 0 0 20px; padding: 0; font-size: var(--awb-size, 16px); line-height: var(--awb-line-height, 1.7); }
.checklist > li { display: flex; align-items: flex-start; padding-top: var(--awb-item-padding-top, 0px); padding-bottom: var(--awb-item-padding-bottom, 0px); }
.ck-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  width: var(--awb-icon-width, 27px); height: var(--awb-icon-height, 27px); margin-right: var(--awb-icon-margin, 11px);
  background: var(--awb-circlecolor, #e8f4f5); color: var(--awb-iconcolor, #5dbfc9); }
.ck-ic svg { width: var(--awb-circle-yes-font-size, 14px); height: var(--awb-circle-yes-font-size, 14px); }
.ck-tx { flex: 1 1 auto; min-width: 0; }
/* separator */
.sep { border-top: 1px solid rgba(168, 201, 205, 0.25); height: 0; margin: 24px auto 0; }
/* founder photo ring (home) */
.c2me-founder-photo { display: block; width: 280px; height: 280px; padding: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #E8F4F5 0%, #ffffff 60%); border: 1px solid rgba(93, 191, 201, 0.28);
  box-shadow: 0 0 0 8px rgba(93, 191, 201, 0.10), 0 0 32px 0 rgba(93, 191, 201, 0.18), 0 16px 40px rgba(15, 58, 61, 0.18);
  margin: 0 auto; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.c2me-founder-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* aesthetic hero */
.c2me-medspa-hero {
  background-color: #FBF6F0;
  background-image:
    radial-gradient(ellipse 800px 600px at 15% 25%, rgba(93, 191, 201, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 700px 500px at 88% 15%, rgba(212, 168, 140, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 900px 700px at 80% 85%, rgba(58, 149, 160, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(232, 217, 196, 0.40) 0%, transparent 50%),
    linear-gradient(135deg, #FBF6F0 0%, #EEF6F6 100%);
}
@media (max-width: 768px) {
  .c2me-medspa-hero {
    background-image:
      radial-gradient(ellipse 400px 300px at 15% 25%, rgba(93, 191, 201, 0.18) 0%, transparent 50%),
      radial-gradient(ellipse 350px 250px at 88% 15%, rgba(212, 168, 140, 0.16) 0%, transparent 50%),
      radial-gradient(ellipse 500px 400px at 80% 85%, rgba(58, 149, 160, 0.14) 0%, transparent 50%),
      linear-gradient(135deg, #FBF6F0 0%, #EEF6F6 100%);
  }
}
/* tables never force page scroll */
main table { max-width: 100%; }

/* ---------- 4. cui-* component system (ported from c2me-ui.css) ---------- */
/* full-bleed band + inner wrap */
.cui-section { width: 100%; padding: clamp(52px, 9vw, 104px) clamp(20px, 4vw, 40px); }
.cui-section--dark  { background: var(--c2me-teal); color: #cfe4e3; }
.cui-section--mist  { background: var(--c2me-mist); }
.cui-section--white { background: #ffffff; }
.cui-section--tight { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.cui-wrap { max-width: 1160px; margin: 0 auto; }
.cui-wrap--narrow { max-width: 820px; }

/* typography */
.cui-eyebrow { display: inline-block; background: var(--c2me-ice); color: var(--c2me-teal);
  padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.cui-section--dark .cui-eyebrow { background: var(--c2me-turquoise); }
.cui-h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; font-weight: 800;
  color: var(--c2me-teal); margin: 0 0 18px; }
.cui-section--dark .cui-h1 { color: #ffffff; }
.cui-h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; font-weight: 800;
  color: var(--c2me-teal); margin: 0 0 16px; }
.cui-section--dark .cui-h2 { color: #ffffff; }
.cui-lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: var(--c2me-ink);
  max-width: 70ch; }
.cui-section--dark .cui-lead { color: #cfe4e3; }

/* split hero (text | image), collapses fluidly */
.cui-split { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: center; }
.cui-split > * { flex: 1 1 380px; min-width: 0; }
.cui-split img { max-width: 100%; height: auto; border-radius: 14px; display: block; }

/* image that overlaps into the next band (de-island trick) */
.cui-overlap { margin-bottom: calc(-1 * clamp(48px, 7vw, 96px)); position: relative; z-index: 2; }
.cui-overlap img { box-shadow: 0 24px 64px rgba(15, 58, 61, 0.35); }
.cui-after-overlap { padding-top: calc(clamp(52px, 9vw, 104px) + clamp(48px, 7vw, 96px)); }

/* responsive card grid */
.cui-grid { display: grid; gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.cui-card { background: #ffffff; border: 1px solid var(--c2me-line);
  border-radius: var(--c2me-radius-card); padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--c2me-shadow-card);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.cui-card:hover { transform: translateY(-2px); box-shadow: var(--c2me-shadow-lift); }
.cui-card-title { font-weight: 700; color: var(--c2me-teal); font-size: 18px; margin: 0 0 8px; }
.cui-card p { margin: 0; color: var(--c2me-ink-soft); font-size: 15px; line-height: 1.7; }
.cui-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--c2me-ice);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* stat row */
.cui-stats { display: grid; gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); text-align: center; }
.cui-stat { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--c2me-radius-card);
  background: rgba(93, 191, 201, 0.08); border: 1px solid var(--c2me-line); }
.cui-section--dark .cui-stat { background: rgba(255, 255, 255, 0.06);
  border-color: rgba(93, 191, 201, 0.25); }
.cui-stat-num { font-size: clamp(30px, 3.6vw, 44px); }
.cui-section--dark .cui-stat-num { color: var(--c2me-turquoise); }
.cui-stat-label { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--c2me-ink-muted); margin-top: 6px; }
.cui-section--dark .cui-stat-label { color: #9bbab8; }

/* buttons */
.cui-btn { display: inline-block; min-height: 44px; padding: 13px 30px; border-radius: var(--c2me-radius-btn);
  background: linear-gradient(135deg, var(--c2me-turquoise), var(--c2me-mid));
  color: #ffffff !important; font-weight: 700; font-size: 16px; text-decoration: none !important;
  transition: filter 0.2s, transform 0.2s; cursor: pointer; }
.cui-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cui-btn--ghost { background: transparent; border: 1.5px solid var(--c2me-turquoise);
  color: var(--c2me-teal) !important; }
.cui-section--dark .cui-btn--ghost { color: #ffffff !important; }

/* accent summary box */
.cui-note { background: var(--c2me-mist); border-left: 4px solid var(--c2me-turquoise);
  border-radius: 8px; padding: 18px 22px; font-size: 15px; line-height: 1.7; color: var(--c2me-ink); }
.cui-section--dark .cui-note { background: rgba(255, 255, 255, 0.06); color: #cfe4e3; }

/* CTA band that flows into the (dark) footer with zero seam */
.cui-cta-band { text-align: center; }
.cui-cta-band .cui-lead { margin-left: auto; margin-right: auto; }

/* ---- v2.1 balance fixes ---- */
/* cards flex so trailing media/figures sit flush at the bottom (equal-height balance) */
.cui-card { display: flex; flex-direction: column; }
.cui-card > :last-child { margin-bottom: 0; }
.cui-card .cui-card-media { margin-top: auto; padding-top: 16px; }

/* exactly-2-per-row grid for 4-item sets (2x2 on desktop, 1-col on phones) */
.cui-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* bio split: fixed portrait rail, content takes the rest */
.cui-split--bio > :first-child { flex: 0 1 300px; text-align: center; }
.cui-split--bio > :last-child { flex: 1 1 480px; }
/* card/stat helpers shared with c2me-ui */
.c2me-card { transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; box-shadow: var(--c2me-shadow-card); border-radius: var(--c2me-radius-card); }
.c2me-card:hover { transform: translateY(-2px); box-shadow: var(--c2me-shadow-lift); }
.c2me-stat-num { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--c2me-teal); line-height: 1.1; }
.cui-section > .cui-wrap > :last-child { margin-bottom: 0; }

/* ---------- 5. motion (only once JS marks <html class="c2me-js">) ---------- */
html.c2me-js .c2me-reveal { opacity: 0; transform: translateY(26px);
  transition: opacity 0.6s var(--c2me-ease), transform 0.6s var(--c2me-ease); will-change: opacity, transform; }
html.c2me-js .c2me-reveal.c2me-in { opacity: 1; transform: none; }
html.c2me-js .c2me-reveal[data-delay="1"] { transition-delay: 0.08s; }
html.c2me-js .c2me-reveal[data-delay="2"] { transition-delay: 0.16s; }
html.c2me-js .c2me-reveal[data-delay="3"] { transition-delay: 0.24s; }
html.c2me-js .c2me-reveal[data-delay="4"] { transition-delay: 0.32s; }
html.c2me-js .c2me-fade-up { opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
html.c2me-js .c2me-fade-up.is-visible { opacity: 1; transform: none; }
html.c2me-js .c2me-delay-1.is-visible { transition-delay: 0.1s; }
html.c2me-js .c2me-delay-2.is-visible { transition-delay: 0.2s; }
html.c2me-js .c2me-delay-3.is-visible { transition-delay: 0.3s; }
html.c2me-js .c2me-delay-4.is-visible { transition-delay: 0.4s; }
html.c2me-js main > .fw:not(:first-child) > .fw-row { opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
html.c2me-js main > .fw.is-visible > .fw-row { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.c2me-js .c2me-reveal, html.c2me-js .c2me-fade-up, html.c2me-js main > .fw > .fw-row {
    opacity: 1 !important; transform: none !important; transition: none !important; }
  .c2me-card, .c2me-card:hover, .cui-card:hover, .fw .col-in:hover, .btn:hover { transform: none; transition: none; }
}

/* ---------- 6. footer ---------- */
.site-footer { font-size: 14px; letter-spacing: 0; }
.ftr-widgets { background: #0f3a3d; color: #cfe4e3; padding: 80px 30px 64px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr-widgets > .ftr-col { min-width: 0; }
@supports (width: min(1px, 2px)) {
  .ftr-widgets { padding-left: max(30px, calc((100% - var(--site-width)) / 2)); padding-right: max(30px, calc((100% - var(--site-width)) / 2)); }
}
.ftr-title { color: #5DBFC9; font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; margin: 0 0 18px; line-height: 1.5; }
.ftr-list { list-style: none; padding: 0; margin: 0; line-height: 2.4; }
.ftr-note { color: #9bbab8; font-size: 13px; margin-top: 8px; line-height: 1.8; }
.site-footer a { color: #5DBFC9; }
.site-footer a:hover { color: #ffffff; }
.ftr-copy { background: #0a2729; color: #9bbab8; padding: 30px 30px 36px; font-size: 14px; line-height: 1.7; }
.ftr-copy-inner { max-width: var(--site-width); margin: 0 auto; }
@media (max-width: 800px) {
  .ftr-widgets { grid-template-columns: 1fr; padding: 56px 20px 40px; gap: 32px; }
  .ftr-copy { padding: 24px 20px 30px; }
}

/* ---------- 7. 404 ---------- */
.nf { padding: clamp(64px, 12vw, 140px) 20px; text-align: center; background: var(--c2me-mist); }
.nf-line { margin: 0 0 18px; font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: #0F3A3D; line-height: 1.4; }
.nf-line a { font-size: 16px; font-weight: 600; margin-left: 12px; white-space: nowrap; }
main div:has(> table) { overflow-x: auto !important; }

/* live cascade: Avada .post-content h1/h2 (0,1,1) overrode c2me-ui .cui-h1/.cui-h2 weight + h2 size */
main .cui-h1 { font-weight: 400; letter-spacing: -0.02em; }
main .cui-h2 { font-weight: 400; letter-spacing: -0.02em; }

/* Responsive heading sizes = live Avada responsive-typography output:
   size = S - (S - 19.55) * k, k = 0 at >=1024px, rising linearly to 0.4735 at <=500px (19.55 = 17px body x 1.15). */
main h1 { --hs: 56; } main h2 { --hs: 44; } main h3 { --hs: 28; } main h4 { --hs: 22; }
main .t > :is(h1, h2, h3, h4) { --hs: var(--fontSize); }
main :is(h1, h2, h3, h4, .cui-h1, .cui-h2) {
  font-size: clamp(calc(var(--hs) * 1px - (var(--hs) - 19.55) * 0.4735px),
                   calc(var(--hs) * 1px - (var(--hs) - 19.55) * (1024px - 100vw) * 0.0009036),
                   calc(var(--hs) * 1px));
}
/* legal-page section headings carry inline font-size:24px; Avada scaled those too */
main h2[style*="font-size:24px"] { --hs: 24;
  font-size: clamp(calc(var(--hs) * 1px - (var(--hs) - 19.55) * 0.4735px),
                   calc(var(--hs) * 1px - (var(--hs) - 19.55) * (1024px - 100vw) * 0.0009036),
                   calc(var(--hs) * 1px)) !important; }
@media (max-width: 500px) { main h2[style*="clamp(22px,2.6vw,30px)"] { font-size: 20.84px !important; } }

/* ---------- no-JS globe menu (site.js adds html.c2me-js; without it the menu opens on hover / keyboard focus) ---------- */
html:not(.c2me-js) .lang:hover .lang-menu[hidden],
html:not(.c2me-js) .lang:focus-within .lang-menu[hidden] { display: block; }
html:not(.c2me-js) .lang-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }

/* ---------- CJK font fallback per language (Inter has no CJK glyphs; pin the right regional font) ---------- */
:root:lang(zh-Hant-TW) { --font: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
:root:lang(zh-Hans-CN) { --font: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }

/* ---------- 8. contact form (W8 redesign: /contact/ + /contact/thanks/, all three languages) ----------
   page-header band -> two-column body (form card | sticky sidebar) -> single column <= 960px.
   Every single-line control (input, radio chip) is exactly --cf-h tall with the same border + radius. */
.page-contact, .page-contact-thanks { --cf-h: 48px; --cf-border: #c9dfe1; --cf-gap: 22px; }
.cf-hero { background: linear-gradient(180deg, var(--c2me-ice) 0%, var(--c2me-mist) 100%);
  border-bottom: 1px solid var(--c2me-line); padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px) clamp(32px, 5vw, 56px); }
.cf-hero .cui-eyebrow { background: #ffffff; margin-bottom: 14px; }
main .cf-hero .cui-h1 { --hs: 44; margin: 0 0 10px; }
.cf-hero .cui-lead { margin: 0; max-width: 62ch; color: var(--c2me-ink-soft); }
.cf-body { background: #ffffff; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.cf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.cf-main { min-width: 0; }

/* form card */
.cf { background: #ffffff; border: 1px solid var(--c2me-line); border-radius: var(--c2me-radius-card);
  box-shadow: var(--c2me-shadow-card); padding: clamp(20px, 3.4vw, 40px); }
main .cf .cf-title { --hs: 24; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--c2me-teal); margin: 0 0 6px; }
.cf-reqnote { margin: 0 0 26px; font-size: 14px; line-height: 1.5; color: var(--c2me-ink-muted); }
.cf-req { color: #b42318; font-weight: 700; }
.cf-fields { display: flex; flex-direction: column; gap: var(--cf-gap); }
.cf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-label, .cf-field > legend { display: block; padding: 0; margin: 0; font-size: 15px; font-weight: 600;
  line-height: 1.4; color: var(--c2me-teal); }
fieldset.cf-field > legend { float: left; width: 100%; } /* float -> ordinary flex item, so the 8px gap applies like <label> */
.cf-hint { font-weight: 400; color: var(--c2me-ink-muted); font-size: 13px; }
.cf-input { display: block; width: 100%; height: var(--cf-h); margin: 0; padding: 0 14px; font: inherit; font-size: 16px; line-height: 1.4;
  color: var(--c2me-ink); background: #ffffff; border: 1px solid var(--cf-border); border-radius: var(--c2me-radius-btn);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
textarea.cf-input { height: auto; min-height: 168px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.cf-input::placeholder { color: #9aa5b1; opacity: 1; }
.cf-input:hover { border-color: #a9cdd1; }
.cf-input:focus { outline: none; border-color: var(--c2me-mid); box-shadow: 0 0 0 3px rgba(58, 149, 160, 0.22); }
.cf-input:user-invalid { border-color: #b42318; }

/* radio chips (real radio inputs, visually replaced) */
.cf-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cf-chip { position: relative; display: block; margin: 0; cursor: pointer; }
.cf-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cf-chip span { display: flex; align-items: center; gap: 10px; height: var(--cf-h); padding: 0 14px;
  font-size: 15px; line-height: 1.3; color: var(--c2me-ink); background: #ffffff;
  border: 1px solid var(--cf-border); border-radius: var(--c2me-radius-btn);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.cf-chip span::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #9fc3c7; background: #ffffff; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.cf-chip:hover span { border-color: #a9cdd1; background: var(--c2me-mist); }
.cf-chip input:checked + span { border-color: var(--c2me-mid); background: var(--c2me-ice); color: var(--c2me-teal); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--c2me-mid); }
.cf-chip input:checked + span::before { border-color: var(--c2me-mid); box-shadow: inset 0 0 0 4px #ffffff; background: var(--c2me-mid); }
.cf-chip input:focus-visible + span { outline: 2px solid var(--c2me-mid); outline-offset: 2px; }

/* actions */
.cf-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cf-recaptcha { margin-top: 28px; min-height: 78px; } /* W9: v2 checkbox slot, left edge = the fields above */
.cf-recaptcha[hidden] { display: none; }
.cf-submit { min-height: var(--cf-h); padding: 0 36px; border: 0; font-family: inherit; font-size: 16px; line-height: 1.2; }
.cf-submit[disabled] { opacity: 0.6; cursor: progress; }
.cf-privacy { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--c2me-ink-muted); }
.cf-notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 8px; border-left: 4px solid #b42318;
  background: #fef3f2; color: #7a271a; font-size: 15px; line-height: 1.6; }
.cf-notice[hidden] { display: none; }
/* honeypot: wrapper moved off-screen (input itself is not display:none) */
.cf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* sidebar */
.cf-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--hdr-h) + 24px); }
.cf-card { background: #ffffff; border: 1px solid var(--c2me-line); border-radius: var(--c2me-radius-card);
  box-shadow: var(--c2me-shadow-card); padding: 26px 26px 24px; }
.cf-card--accent { background: var(--c2me-mist); }
main .cf-card .cf-card-title { --hs: 19; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--c2me-teal); margin: 0 0 6px; }
.cf-card p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--c2me-ink-soft); }
.cf-card .cui-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--cf-h);
  padding: 0 18px; font-size: 15px; text-align: center; }
.cf-contact { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--c2me-line);
  display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--c2me-ink-soft); }
.cf-contact li { display: flex; align-items: center; gap: 10px; margin: 0; }
.cf-contact svg { flex: 0 0 18px; color: var(--c2me-mid); }
.cf-contact a { font-weight: 600; }
.cf-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cf-check li { position: relative; margin: 0; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--c2me-ink); }
.cf-check li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c2me-mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.page-contact .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; }

/* thanks page */
main .cf-thanks .cui-h1 { --hs: 38; }
/* wrap = same box as .hdr-inner (site width, 30px / 20px gutters) so the card's left edge lines up with the header logo */
.cf-thanks { min-height: 56vh; display: flex; align-items: center; padding: clamp(64px, 9vw, 112px) 0; }
.cf-thanks-wrap { width: 100%; max-width: var(--site-width); margin: 0 auto; padding: 0 30px; }
.cf-thanks-card { width: 100%; max-width: 720px; margin: 0 auto; text-align: center; background: #ffffff;
  border: 1px solid var(--c2me-line); border-radius: var(--c2me-radius-card); box-shadow: var(--c2me-shadow-card);
  padding: clamp(32px, 5vw, 56px) clamp(22px, 4vw, 48px); }
.cf-thanks-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--c2me-ice);
  color: var(--c2me-mid); display: flex; align-items: center; justify-content: center; }
.cf-thanks-card .cui-lead { margin: 0 auto; max-width: 56ch; }
.cf-thanks-card .cf-actions { justify-content: center; }
.cf-thanks-card .cui-btn { min-height: var(--cf-h); display: inline-flex; align-items: center; padding: 0 28px; }

@media (max-width: 1024px) { .cf-thanks-wrap { padding: 0 20px; } }
@media (max-width: 960px) {
  .cf-layout { grid-template-columns: minmax(0, 1fr); }
  .cf-side { position: static; }
}
@media (max-width: 640px) {
  .cf-chips { grid-template-columns: minmax(0, 1fr); }
  .cf-chip span { white-space: normal; }
  .cf-actions { flex-direction: column; align-items: stretch; }
  .cf-submit, .cf-thanks-card .cui-btn { width: 100%; justify-content: center; }
}
