@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@200;300;400;500;600&family=Noto+Serif+SC:wght@400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold:        #c9a96e;
  --gold-light:  #e8d5a3;
  --gold-soft:   rgba(201, 169, 110, 0.18);
  --navy:        #0a1628;
  --navy-deep:   #050c19;
  --slate:       #1c2b45;
  --slate-light: #2a3a5a;
  --ink:         #0a1628;
  --paper:       #f7f3ec;
  --paper-warm:  #efe8db;
  --line:        rgba(201, 169, 110, 0.25);
  --text-mute:   rgba(255, 255, 255, 0.55);
  --text-body:   rgba(255, 255, 255, 0.78);
  --transition:  2.2s;
}

html { scroll-behavior: smooth; }

/* ─────────────────────────────────────────────
   SCROLL PROGRESS BAR (top of viewport)
   ───────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.5);
  z-index: 200;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   REVEAL ON SCROLL
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger consecutive children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
}

body {
  background:
    linear-gradient(180deg,
      #141821 0%,
      #1c2230 50%,
      #262d3c 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────────
   TOP NAV
   ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,22,40,0.65) 0%, rgba(10,22,40,0) 100%);
  transition: background 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 60px;
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.nav-brand em {
  font-style: italic;
  color: var(--gold-light);
}
.nav-brand .brand-zh {
  font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.nav-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.nav-title .title-zh {
  font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

/* Generic utility for inline Chinese in mixed-language text */
.zh {
  font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
}

.nav-firm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.3s ease;
}
.nav-firm:hover { color: var(--gold-light); }
.nav-firm .firm-zh {
  font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* Language toggle (EN / 中) */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
.nav-lang a {
  color: var(--text-mute);
  transition: color 0.3s ease;
  padding: 4px 0;
}
.nav-lang a:hover { color: var(--gold-light); }
.nav-lang a.active {
  color: #fff;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.nav-lang .lang-zh {
  font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0;
}
.nav-lang-sep {
  color: var(--text-mute);
  opacity: 0.4;
  font-size: 8px;
}

/* AI badge in nav */
.nav-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201, 169, 110, 0.04);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.nav-ai:hover {
  border-color: var(--gold);
  color: #fff;
  background: rgba(201, 169, 110, 0.10);
}
.nav-ai .ai-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: aiDotPulse 2.4s ease-in-out infinite;
}
@keyframes aiDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

@media (max-width: 720px) {
  .nav { padding: 18px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-right { gap: 0; }
  .nav-ai .ai-text { display: none; }
  .nav-ai { padding: 8px 10px; }
  /* Brand block: shrink and hide the Chinese script half of the firm row
     so the nav doesn't crowd on phones */
  .nav-brand { font-size: 19px; gap: 8px; }
  .nav-brand .brand-zh { font-size: 17px; }
  .nav-title { font-size: 11px; }
  .nav-title .title-zh { display: none; }
  .nav-firm  { font-size: 11px; }
  .nav-firm .firm-zh { display: none; }
}
@media (max-width: 420px) {
  /* Very small phones: drop the supplementary lines */
  .nav-title, .nav-firm { display: none; }
}

/* ─────────────────────────────────────────────
   HERO (cinematic slideshow)
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--navy);
}

.slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity var(--transition) cubic-bezier(0.4, 0, 0.2, 1),
    transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.slide.active { opacity: 1; transform: scale(1.0); }

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(10, 22, 40, 0.50) 0%,
    rgba(10, 22, 40, 0.22) 55%,
    rgba(10, 22, 40, 0.05) 100%
  );
}

/* Fallback slide background — used when no image is present */
.slide-fallback {
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(201,169,110,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(201,169,110,0.06) 0%, transparent 60%),
    linear-gradient(160deg, var(--slate) 0%, var(--navy-deep) 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(5, 12, 25, 0.35) 100%);
  pointer-events: none;
  z-index: 5;
}

.line-top, .line-bottom {
  position: absolute;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  animation: lineReveal 1.2s 0.8s forwards ease-out;
  z-index: 10;
}
.line-top    { top: 96px; }
.line-bottom { bottom: 48px; }
@keyframes lineReveal { to { opacity: 0.5; } }

/* Hero content overlay */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
}

.practice-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s 0.3s ease, transform 0.8s 0.3s ease;
}
.practice-label.visible { opacity: 1; transform: translateY(0); }

.label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.label-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s 0.55s ease, transform 0.9s 0.55s ease;
  max-width: 700px;
}
.heading.visible { opacity: 1; transform: translateY(0); }
.heading em { font-style: italic; color: var(--gold-light); }

.subline {
  margin-top: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-mute);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s 0.85s ease, transform 0.8s 0.85s ease;
}
.subline.visible { opacity: 1; transform: translateY(0); }

/* Slide indicators */
.indicators {
  position: absolute;
  bottom: 64px;
  right: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 15;
}
.indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.indicator.active { opacity: 1; }
.ind-bar {
  width: 2px;
  height: 28px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.ind-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--gold);
  border-radius: 1px;
}
.indicator.active .ind-fill {
  height: 100%;
  transition: height 6s linear;
}
.ind-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Grain texture */
.grain {
  position: absolute;
  inset: -200%;
  width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  animation: grainShift 0.8s steps(1) infinite;
  pointer-events: none;
  z-index: 20;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-2%,-3%); }
  20%  { transform: translate(3%,1%); }
  30%  { transform: translate(-1%,4%); }
  40%  { transform: translate(4%,-1%); }
  50%  { transform: translate(-3%,2%); }
  60%  { transform: translate(2%,3%); }
  70%  { transform: translate(-4%,-2%); }
  80%  { transform: translate(1%,-4%); }
  90%  { transform: translate(-2%,3%); }
  100% { transform: translate(3%,-3%); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 48px;
  left: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  z-index: 15;
  opacity: 0;
  animation: cueIn 1s 1.6s forwards ease;
}
@keyframes cueIn { to { opacity: 0.7; } }
.scroll-cue-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.scroll-cue-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: cueDrop 2.4s ease-in-out infinite;
}
@keyframes cueDrop {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%      { transform: scaleY(0.4); opacity: 0.4; }
}

@media (max-width: 720px) {
  .overlay        { padding: 0 24px; }
  .line-top,
  .line-bottom    { left: 24px; right: 24px; }
  .line-top       { top: 88px; }
  .indicators     { right: 20px; bottom: 28px; gap: 8px; }
  .ind-label      { display: none; }
  .scroll-cue     { left: 24px; bottom: 28px; }
  .practice-label { margin-bottom: 18px; }
  .heading        { font-size: clamp(38px, 10vw, 56px); }
  .subline        { font-size: 11px; letter-spacing: 1.5px; margin-top: 18px; }
}

/* ─────────────────────────────────────────────
   SHARED SECTION SCAFFOLD
   ───────────────────────────────────────────── */
section {
  position: relative;
  padding: 96px 80px 104px;
}
.section-inner { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: #fff;
  margin-bottom: 44px;
  max-width: 760px;
}
.section-title em { font-style: italic; color: var(--gold-light); }

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--gold-light);
  margin-top: -28px;
  margin-bottom: 44px;
  max-width: none;
}

@media (max-width: 720px) {
  section { padding: 90px 28px; }
  .section-title { margin-bottom: 40px; }
}

/* ─────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────── */
#about {
  background: transparent;
  border-top: 1px solid var(--line);
}
/* New About layout:
   - Top row: eyebrow + title on the left, small portrait on the right
   - Below: bio paragraphs span the full section width */
.about-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.about-header-text { min-width: 0; }
.about-header .section-title { margin-bottom: 0; }

.about-portrait {
  display: none;  /* hidden unless an <img> is added */
}
.about-header:has(.about-portrait img) .about-portrait {
  display: block;
  position: relative;
  width: 260px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  justify-self: end;
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-body { max-width: none; }
.about-body p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 24px;
}
.about-body p:first-of-type::first-letter {
  font-size: 64px;
  float: left;
  line-height: 0.9;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--gold-light);
}
.about-meta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.about-meta-item--full { grid-column: 1 / -1; }
.about-meta-item-value a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.about-meta-item-value a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}
.about-meta-item-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.about-meta-item-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text-body);
}

@media (max-width: 880px) {
  .about-header { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .about-header:has(.about-portrait img) .about-portrait {
    width: 200px;
    justify-self: start;
    order: -1;  /* portrait sits above title on narrow screens */
  }
}
@media (max-width: 720px) {
  .about-body p { font-size: 18px; line-height: 1.55; }
  .about-body p:first-of-type::first-letter { font-size: 52px; }
  .about-meta { gap: 24px; }
  .section-title { font-size: clamp(28px, 7vw, 40px); margin-bottom: 32px; }
  .eyebrow { font-size: 9px; letter-spacing: 3px; margin-bottom: 18px; }
}

/* ─────────────────────────────────────────────
   PRACTICE AREAS
   ───────────────────────────────────────────── */
#practice {
  background: transparent;
  border-top: 1px solid var(--line);
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.practice-card {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.4);
  transition: background 0.5s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.practice-card:nth-child(2n)   { border-right: none; }
.practice-card:nth-last-child(-n+2) { border-bottom: none; }
.practice-card:hover           { background: rgba(28, 43, 69, 0.65); transform: translateY(-4px); }
.practice-card:hover .practice-number { color: var(--gold-light); }

.practice-number {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  transition: color 0.5s ease;
}
.practice-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}
.practice-card h3 em { font-style: italic; color: var(--gold-light); }
.practice-card p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 24px;
}
.practice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.practice-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { border-right: none !important; }
  .practice-card:nth-last-child(1) { border-bottom: none; }
  .practice-card:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .practice-card { padding: 36px 24px; }
  .practice-card h3 { font-size: 26px; }
  .practice-card p { font-size: 13.5px; }
}

.practice-card-tool {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.practice-card-tool-label { color: var(--text-mute); }
.practice-card-tool a {
  color: var(--gold-light);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease, letter-spacing 0.3s ease;
}
.practice-card-tool a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
  letter-spacing: 3px;
}

/* ─────────────────────────────────────────────
   AI / PRODUCTS
   ───────────────────────────────────────────── */
#ai {
  background: transparent;
  border-top: 1px solid var(--line);
}
.ai-lede {
  max-width: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 22px;
}
.ai-lede em { font-style: italic; color: var(--gold-light); }
.ai-lede:last-of-type { margin-bottom: 56px; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 0;
}
.ai-card {
  background: rgba(10, 22, 40, 0.55);
  padding: 44px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.ai-card:nth-child(2n)              { border-right: none; }
.ai-card:nth-last-child(-n+2)       { border-bottom: none; }
.ai-card:hover { background: rgba(28, 43, 69, 0.70); transform: translateY(-4px); }

.ai-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.ai-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
}
.ai-card-status .ai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: aiDotPulse 2.4s ease-in-out infinite;
}
.ai-card-for { color: var(--text-mute); }
.ai-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.ai-card-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--gold-light);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.ai-card-body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}
.ai-card-body:last-of-type { margin-bottom: 24px; }

.ai-card-cta {
  display: block;
  width: fit-content;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease, border-color 0.3s ease, letter-spacing 0.3s ease;
}
.ai-card-cta:hover {
  color: #fff;
  border-bottom-color: var(--gold);
  letter-spacing: 4px;
}
/* Spacing between stacked CTAs in the same card */
.ai-card-cta + .ai-card-cta {
  margin-top: 14px;
}

.ai-hygiene {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
}
.ai-hygiene-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1.15;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 20px;
}
.ai-hygiene-head h3 em { font-style: italic; color: var(--gold-light); }
.ai-hygiene-head p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-body);
}
.ai-hygiene-list { list-style: none; }
.ai-hygiene-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.ai-hygiene-list li:last-child { border-bottom: 1px solid var(--line); }
.ai-hygiene-no {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--gold);
  padding-top: 2px;
}
.ai-hygiene-list h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}
.ai-hygiene-list p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}

@media (max-width: 960px) {
  .ai-grid { grid-template-columns: 1fr; margin-bottom: 64px; }
  .ai-card { border-right: none; border-bottom: 1px solid var(--line); }
  .ai-card:last-child { border-bottom: none; }
  .ai-hygiene { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
}
@media (max-width: 720px) {
  .ai-card { padding: 36px 24px; }
  .ai-card-name { font-size: 28px; }
  .ai-card-head { margin-bottom: 24px; }
  .ai-lede { font-size: 18px; margin-bottom: 48px; }
  .ai-hygiene-head h3 { font-size: 30px; }
  .ai-hygiene-list li { grid-template-columns: 40px 1fr; gap: 16px; }
}

/* ─────────────────────────────────────────────
   ARTICLES (preview on home + index page list)
   ───────────────────────────────────────────── */
#articles {
  background: transparent;
  border-top: 1px solid var(--line);
}
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 32px;
  flex-wrap: wrap;
}
.articles-header .section-title { margin-bottom: 0; }
.articles-view-all {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.articles-view-all:hover {
  color: #fff;
  letter-spacing: 4px;
}

.article-list {
  display: grid;
  gap: 0;
}
.article-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px 100px;
  gap: 32px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s ease;
}
.article-row:last-child { border-bottom: 1px solid var(--line); }
.article-row:hover { padding-left: 16px; }
.article-row:hover .article-title { color: var(--gold-light); }

.article-date {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mute);
  font-feature-settings: 'tnum';
}
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: #fff;
  transition: color 0.4s ease;
}
.article-title em { font-style: italic; color: var(--gold-light); }
.article-area {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.article-read {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: right;
}

@media (max-width: 880px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .article-read { text-align: left; }
}

/* ─────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────── */
#contact {
  background: transparent;
  border-top: 1px solid var(--line);
  padding-bottom: 80px;
}
.contact-grid {
  display: block;
  max-width: 760px;
}

.contact-list { list-style: none; }
.contact-list li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }

/* QR codes row (WeChat + WhatsApp side-by-side) */
.contact-qr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-qr-item .contact-label { margin-bottom: 14px; }
.contact-qr-link {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.contact-qr-link:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.contact-qr {
  display: block;
  width: 100%;
  max-width: 124px;
  height: auto;
}
@media (max-width: 520px) {
  .contact-qr-row { grid-template-columns: 1fr; gap: 20px; }
  .contact-qr     { max-width: 110px; }
}
.contact-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: #fff;
}
.contact-value a { transition: color 0.3s ease; }
.contact-value a:hover { color: var(--gold-light); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer {
  padding: 32px 80px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(5, 12, 25, 0.5);
}
.footer a { transition: color 0.3s ease; }
.footer a:hover { color: var(--gold-light); }
.footer-icp {
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 6px;
}
.footer-icp a { color: var(--text-mute); }
@media (max-width: 720px) { .footer { padding: 24px 28px; } }

/* ─────────────────────────────────────────────
   ARTICLES INDEX PAGE
   ───────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 200px 80px 100px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 800px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p {
  margin-top: 28px;
  max-width: 600px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-body);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.filter-chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mute);
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit;
}
.filter-chip:hover { color: var(--gold-light); }
.filter-chip.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

@media (max-width: 720px) {
  .page-hero { padding: 140px 28px 60px; }
}

/* ─────────────────────────────────────────────
   ARTICLE PAGE (long-form reading, dark theme)
   The article page inherits the global navy gradient from <body>.
   ───────────────────────────────────────────── */

.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 220px 28px 140px;
  position: relative;
}

/* A thin gold line above the meta — marks the start of the read */
.article::before {
  content: '';
  position: absolute;
  top: 180px;
  left: 28px;
  width: 56px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.article-meta-sep {
  width: 24px; height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.article h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: #fff;
  margin-bottom: 32px;
}
.article h1 em { font-style: italic; color: var(--gold-light); }
.article h1 .zh { font-style: normal; }

.article-deck {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.article-deck em { color: var(--gold-light); font-style: normal; }

.article-body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

/* Big gold drop cap */
.article-body > p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 84px;
  font-weight: 400;
  float: left;
  line-height: 0.88;
  padding-right: 14px;
  padding-top: 8px;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(201, 169, 110, 0.25);
}

.article-body p { margin-bottom: 28px; }
.article-body em { font-style: italic; color: var(--gold-light); }
.article-body strong {
  font-weight: 500;
  color: #fff;
}

.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  margin: 64px 0 24px;
  color: #fff;
  letter-spacing: -0.005em;
}
.article-body h2 em { font-style: italic; color: var(--gold-light); }
/* Decorative dot before h2 */
.article-body h2::before {
  content: '·';
  display: inline-block;
  color: var(--gold);
  margin-right: 14px;
  font-size: 1em;
  transform: translateY(-0.05em);
}

.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--gold-light);
}

.article-body blockquote {
  position: relative;
  margin: 48px 0;
  padding: 12px 32px 12px 40px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.45;
  color: var(--gold-light);
}
.article-body blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(201,169,110,0.2) 100%);
}
.article-body blockquote p { margin-bottom: 12px; }
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.article-body a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

.article-body ul, .article-body ol { margin: 0 0 28px 28px; }
.article-body li { margin-bottom: 10px; }
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); }

.article-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
  margin: 56px 0;
}

.article-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.article-footer a {
  color: var(--gold-light);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.article-footer a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

@media (max-width: 720px) {
  .article         { padding: 150px 22px 80px; }
  .article::before { top: 120px; left: 22px; width: 40px; }
  .article-meta    { font-size: 9px; gap: 12px; margin-bottom: 28px; }
  .article-meta-sep { width: 16px; }
  .article h1      { font-size: clamp(32px, 8vw, 44px); margin-bottom: 22px; }
  .article-deck    { font-size: 19px; margin-bottom: 40px; padding-bottom: 32px; }
  .article-body    { font-size: 17px; line-height: 1.65; }
  .article-body > p:first-of-type::first-letter { font-size: 62px; padding-top: 4px; }
  .article-body h2 { font-size: 22px; margin: 44px 0 14px; }
  .article-body h2::before { margin-right: 10px; }
  .article-body blockquote { font-size: 20px; padding: 8px 16px 8px 24px; margin: 32px 0; }
}
