/* =========================================================================
   弘厚 HONGHOU — Design System  ·  "Gallery White" v2
   Premium, rigorous: warm gallery-white canvas, warm charcoal ink, aluminum
   silver as material, one confident azure accent drawn from the logo.
   Clean sans throughout (Manrope / Noto Sans SC) — no decorative serif.
   Disciplined CJK typesetting (keep-all phrasing, balanced wraps).
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Manrope:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  /* type — sans only; legacy --f-serif aliases kept for existing rules */
  --f-sans:  'Manrope', 'Noto Sans SC', system-ui, sans-serif;
  --f-serif: var(--f-sans);
  --f-serif-cjk: var(--f-sans);
  --f-num: 'Archivo', 'Manrope', system-ui, sans-serif;  /* serious display numerals */

  /* warm near-white canvas; logo's white bg disappears into it */
  --canvas:   oklch(0.987 0.004 80);
  --panel:    oklch(0.962 0.005 78);
  --panel-2:  oklch(0.945 0.006 76);
  --white:    #ffffff;

  --ink:      oklch(0.22 0.008 60);   /* warm charcoal */
  --ink-soft: oklch(0.36 0.008 60);
  --muted:    oklch(0.50 0.007 60);
  --faint:    oklch(0.64 0.006 65);
  --line:     oklch(0.885 0.005 70);
  --line-soft:oklch(0.93 0.004 72);

  /* confident azure accent, drawn from the blue logo (#3A99DB) */
  --accent:   oklch(0.56 0.142 248);
  --accent-d: oklch(0.47 0.13 248);
  --accent-soft: oklch(0.95 0.03 248);

  /* dark editorial moment */
  --ink-deep: oklch(0.205 0.009 65);
  --ink-deep2:oklch(0.175 0.009 65);
  --deep-line:oklch(0.33 0.008 65);
  --on-deep:  oklch(0.92 0.004 75);
  --on-deep-m:oklch(0.66 0.006 70);

  /* brushed-aluminum sheen for hairlines / marks */
  --metal: linear-gradient(135deg, oklch(0.82 0.006 250), oklch(0.95 0.003 250) 45%, oklch(0.74 0.008 250) 70%, oklch(0.9 0.004 250));

  --container: 1320px;
  --gutter: clamp(22px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-sans); color: var(--ink); background: var(--canvas);
  font-weight: 400; line-height: 1.7; font-size: 17px; letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; color: var(--ink); text-wrap: pretty; }
/* rigorous CJK typesetting: kinsoku (no punctuation orphaned at line head/tail) */
:lang(zh) :is(h1,h2,h3,h4,p,li,dd,dt,span) { line-break: strict; }
/* phrase-keeping: CJK lines never break mid-phrase; Latin wraps normally */
.nb { white-space: nowrap; }
:lang(en) .nb, :lang(it) .nb { white-space: normal; }
/* serif display */
.serif, h1.display, .sec-head h2, .hero h1 { font-family: var(--f-serif); font-weight: 600; letter-spacing: -0.005em; }
:lang(zh) .serif, :lang(zh) h1.display { font-family: var(--f-serif-cjk); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 150px); }
.section--tight { padding-block: clamp(52px, 7vw, 104px); }
.panel-sec { background: var(--panel); }
.deep-sec { background: var(--ink-deep); color: var(--on-deep); }
.deep-sec h1, .deep-sec h2, .deep-sec h3 { color: var(--white); }

/* kicker — tracked uppercase sans with accent tick */
.kicker {
  font-family: var(--f-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.deep-sec .kicker { color: oklch(0.74 0.12 248); }

/* section heading */
.sec-head { max-width: 800px; margin-bottom: clamp(44px, 5vw, 72px); }
.sec-head h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; }
.sec-head p { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 62ch; line-height: 1.7; }
.deep-sec .sec-head p { color: var(--on-deep-m); }
.sec-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: none; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-sans);
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em; padding: 15px 28px;
  border-radius: 2px; border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; }
.deep-sec .btn--ghost { color: var(--on-deep); border-color: var(--deep-line); }
.deep-sec .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.tlink { font-family: var(--f-sans); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--line); transition: .22s; }
.tlink svg { width: 15px; height: 15px; transition: transform .22s; }
.tlink:hover { color: var(--accent); border-color: var(--accent); }
.tlink:hover svg { transform: translateX(4px); }
.deep-sec .tlink { color: var(--on-deep); border-color: var(--deep-line); }

/* ---------- Image placeholders (fallback when no photo) ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--panel-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, oklch(0.92 0.005 75) 12px 13px);
  border: 1px solid var(--line); display: flex; align-items: flex-end; color: var(--muted);
}
.ph::after { content: attr(data-label); font-family: var(--f-sans); font-size: 11.5px; letter-spacing: .03em; padding: 12px 14px; line-height: 1.4; background: linear-gradient(0deg, var(--panel-2), transparent); width: 100%; }
.ph .ph-icon { position: absolute; inset: 0; display: grid; place-items: center; opacity: .45; }
.ph .ph-icon svg { width: 40px; height: 40px; stroke: var(--faint); }
/* real photo frame */
.shot { position: relative; overflow: hidden; background: var(--panel); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .shot img, .cert-card:hover .shot img { transform: scale(1.045); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in oklch, var(--canvas) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-color: var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 30px; height: 84px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand .bn { line-height: 1.04; }
.brand .bn b { font-family: var(--f-serif); font-weight: 600; font-size: 23px; letter-spacing: .01em; display: block; }
.brand .bn span { font-family: var(--f-sans); font-size: 9.5px; font-weight: 600; letter-spacing: .26em; color: var(--muted); text-transform: uppercase; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { font-family: var(--f-sans); font-weight: 500; font-size: 14.5px; color: var(--ink-soft); padding: 9px 15px; transition: .18s; position: relative; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 16px; }
/* language dropdown */
.langbox { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: transparent; padding: 8px 12px; border-radius: 2px; font-family: var(--f-sans); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: .18s; }
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-btn svg:first-child { width: 16px; height: 16px; }
.lang-btn svg:last-child { width: 13px; height: 13px; color: var(--faint); transition: transform .2s; }
.langbox.open .lang-btn svg:last-child { transform: rotate(180deg); }
.lang-menu { list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 8px); right: 0; min-width: 148px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 20px 44px -22px rgba(40,40,40,.4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 120; }
.langbox.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 2px; font-family: var(--f-sans); font-size: 14px; color: var(--ink-soft); transition: .14s; }
.lang-menu button:hover { background: var(--panel); color: var(--ink); }
.lang-menu button.on { color: var(--accent); font-weight: 600; }
.lang-menu button.on::after { content: "·"; margin-left: 6px; }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; border-radius: 2px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep2); color: var(--on-deep-m); padding-block: clamp(64px, 8vw, 100px) 34px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.7fr 1fr 1.5fr; gap: 52px; }
.site-footer h4 { font-family: var(--f-sans); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-deep-m); margin-bottom: 22px; }
.site-footer a { color: var(--on-deep); transition: .18s; }
.site-footer a:hover { color: oklch(0.78 0.06 200); }
.foot-brand b { font-family: var(--f-serif); color: #fff; font-weight: 600; font-size: 27px; letter-spacing: .01em; }
.foot-brand p { margin-top: 16px; max-width: 38ch; font-size: 14px; line-height: 1.7; color: var(--on-deep-m); }
.foot-list { display: flex; flex-direction: column; gap: 13px; font-size: 14.5px; }
.foot-bottom { border-top: 1px solid var(--deep-line); margin-top: 60px; padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; letter-spacing: .02em; color: var(--on-deep-m); }

/* ---------- Stats (editorial, on light) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 38px 30px 34px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.stat:nth-child(4n) { border-right: 0; }
.stat .num { font-family: var(--f-num); font-weight: 700; font-size: clamp(44px, 5.2vw, 66px); line-height: 0.95; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.stat .num .suf { font-size: .34em; color: var(--accent); font-weight: 700; font-family: var(--f-sans); letter-spacing: 0; }
.stat .lbl { margin-top: 16px; font-size: 14px; color: var(--muted); letter-spacing: .01em; }
.deep-sec .stat-grid, .deep-sec .stat { border-color: var(--deep-line); }
.deep-sec .stat .num { color: #fff; }
.deep-sec .stat .lbl { color: var(--on-deep-m); }

/* ---------- Generic card ---------- */
.card { background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 50px -32px rgba(40,40,40,.4); }

/* ---------- Reveal (fail-safe: visible by default, only hidden once JS arms it) ---------- */
[data-reveal] { opacity: 1; transform: none; }
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .stat-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2n) { border-right: 0; } }
@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; background: var(--canvas); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 24px; gap: 2px; }
  .main-nav.open a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { gap: 16px; }
}
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 40px; } .stat-grid { grid-template-columns: 1fr 1fr; } .sec-head--split { flex-direction: column; align-items: flex-start; } body { font-size: 16px; } }
