:root {
  --ink: #0f1c2e;
  --ink-2: #16253c;
  --ink-3: #243b5a;
  --paper: #f6f4ef;
  --paper-2: #ece7dd;
  --gold: #a8843c;
  --gold-lt: #c9a961;
  --muted: #616b7d;
  --line: rgba(15, 28, 46, 0.14);
  --serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 30px 70px -34px rgba(15, 28, 46, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 12px clamp(20px, 5vw, 64px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--gold-lt);
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  border-radius: 2px; flex: 0 0 auto;
}
.brand-mark.small { width: 38px; height: 38px; font-size: 19px; }
.brand-text {
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  letter-spacing: 0.14em; color: #fff; line-height: 1.2;
  display: flex; flex-direction: column;
}
.brand-text em {
  font-family: var(--sans); font-style: normal; font-weight: 400;
  font-size: 9px; letter-spacing: 0.26em; color: rgba(255,255,255,0.6);
  margin-top: 3px;
}
.nav.scrolled .brand-text { color: var(--ink); }
.nav.scrolled .brand-text em { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 14.5px; }
.nav-links a { color: rgba(255,255,255,0.85); position: relative; transition: color 0.25s; }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--gold-lt); transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 22px; border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 100px; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav.scrolled .nav-cta { border-color: var(--ink); }
.nav-cta:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--ink) !important; }
.nav-cta::after { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* HERO */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px clamp(20px, 5vw, 64px) 90px; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,18,30,0.95) 0%, rgba(10,18,30,0.82) 42%, rgba(10,18,30,0.45) 75%, rgba(10,18,30,0.3) 100%),
    radial-gradient(800px 500px at 90% 15%, rgba(168,132,60,0.16), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.32em; color: var(--gold-lt);
  margin-bottom: 28px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-lt); }
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 6vw, 82px); line-height: 1.18;
  color: #fff; letter-spacing: 0.01em; margin-bottom: 30px;
}
.hero h1 .hl { color: var(--gold-lt); }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,0.78);
  max-width: 600px; margin-bottom: 44px; line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 34px; font-size: 15px; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 2px; transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-gold { background: var(--gold-lt); color: var(--ink); box-shadow: 0 16px 34px -16px rgba(201,169,97,0.8); }
.btn-gold:hover { transform: translateY(-3px); background: #d8bb78; box-shadow: 0 24px 44px -16px rgba(201,169,97,0.9); }
.btn-line { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-line:hover { border-color: var(--gold-lt); color: var(--gold-lt); background: rgba(201,169,97,0.08); }

.hero-stats {
  list-style: none; display: flex; gap: clamp(24px, 5vw, 72px); flex-wrap: wrap;
  padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700; color: #fff; line-height: 1; letter-spacing: 0.01em;
}
.hero-stats strong span { font-size: 0.5em; color: var(--gold-lt); margin-left: 2px; }
.hero-stats em { font-style: normal; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 10px; letter-spacing: 0.08em; }

/* SECTION */
.section { padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px); max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 76px); }
.sec-num {
  font-family: var(--serif); font-size: 14px; font-weight: 600;
  letter-spacing: 0.34em; color: var(--gold); display: block; margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.24; margin-bottom: 20px;
}
.sec-lead { font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); line-height: 1.9; }

/* PRACTICE */
.practice { border-top: 1px solid var(--line); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.practice-card {
  background: var(--paper); padding: 40px 34px;
  transition: background 0.4s; position: relative; overflow: hidden;
}
.practice-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--gold-lt); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1);
}
.practice-card:hover { background: #fff; }
.practice-card:hover::before { transform: scaleX(1); }
.pc-icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px; color: var(--gold);
  margin-bottom: 26px; transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.practice-card:hover .pc-icon { background: var(--ink); color: var(--gold-lt); border-color: var(--ink); }
.practice-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.practice-card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.practice-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.practice-card li { font-size: 12.5px; color: var(--ink-3); padding: 4px 12px; background: var(--paper-2); border-radius: 100px; }

/* TEAM */
.team { background: var(--ink); color: var(--paper); max-width: none; position: relative; overflow: hidden; }
.team::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 500px at 88% 8%, rgba(168,132,60,0.14), transparent 60%);
  pointer-events: none;
}
.team > * { position: relative; z-index: 1; max-width: 1180px; margin-left: auto; margin-right: auto; }
.team .sec-num { color: var(--gold-lt); }
.team .section-head h2 { color: #fff; }
.team .sec-lead { color: rgba(246,244,239,0.66); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
.lawyer {
  background: rgba(246,244,239,0.04); border: 1px solid rgba(246,244,239,0.12);
  border-radius: 3px; overflow: hidden;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), border-color 0.45s, background 0.45s;
}
.lawyer:hover { transform: translateY(-6px); border-color: rgba(201,169,97,0.5); background: rgba(246,244,239,0.07); }
.lawyer-photo { aspect-ratio: 3 / 3.2; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; }
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.8s cubic-bezier(.22,1,.36,1); }
.lawyer:hover .lawyer-photo img { transform: scale(1.04); }
.lawyer-photo span { font-family: var(--serif); font-size: 90px; color: rgba(201,169,97,0.3); font-weight: 900; }
.lawyer h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; padding: 24px 26px 6px; }
.lawyer-role { font-size: 13px; letter-spacing: 0.12em; color: var(--gold-lt); padding: 0 26px 12px; }
.lawyer-focus { font-size: 13.5px; color: rgba(246,244,239,0.75); padding: 0 26px 12px; border-bottom: 1px solid rgba(246,244,239,0.1); margin-bottom: 14px; }
.lawyer-note { font-size: 14px; color: rgba(246,244,239,0.6); padding: 0 26px 26px; line-height: 1.8; }

/* ABOUT */
.about { border-top: 1px solid var(--line); }
.about-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px, 6vw, 90px); align-items: center; }
.about-media { position: relative; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; margin: 10px 0 24px; }
.about-copy p { font-size: clamp(15.5px, 1.3vw, 17.5px); color: var(--ink-2); margin-bottom: 20px; line-height: 1.95; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 34px; }
.fact { background: var(--paper); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.fact .k { font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; }
.fact .v { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }

/* INSIGHTS */
.insights { border-top: 1px solid var(--line); }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s, border-color 0.4s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(168,132,60,0.4); }
.tag {
  align-self: flex-start; font-size: 12px; letter-spacing: 0.1em; color: var(--gold);
  border: 1px solid rgba(168,132,60,0.4); padding: 4px 13px; border-radius: 100px; margin-bottom: 22px;
}
.article-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; transition: color 0.3s; }
.article-card:hover h3 { color: var(--gold); }
.article-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; flex: 1; }
.date { font-size: 12.5px; color: #94a0b0; letter-spacing: 0.04em; }

/* CONTACT */
.contact { background: var(--ink); color: var(--paper); max-width: none; }
.contact-wrap {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 90px); align-items: start;
}
.contact-copy .sec-num { color: var(--gold-lt); }
.contact-copy h2 { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; color: #fff; margin: 12px 0 24px; }
.contact-copy > p { font-size: clamp(15px, 1.3vw, 17px); color: rgba(246,244,239,0.72); line-height: 1.95; margin-bottom: 34px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(246,244,239,0.8); }
.contact-list svg { color: var(--gold-lt); flex: 0 0 auto; }
.contact-list b { color: #fff; font-weight: 500; }

.contact-form { background: rgba(246,244,239,0.05); border: 1px solid rgba(246,244,239,0.12); border-radius: 4px; padding: clamp(28px, 3vw, 42px); }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.field > span { font-size: 13px; color: rgba(246,244,239,0.72); letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: #fff;
  background: rgba(10,18,30,0.5); border: 1px solid rgba(246,244,239,0.18);
  border-radius: 3px; padding: 13px 16px; transition: border-color 0.3s, background 0.3s;
  width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246,244,239,0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-lt); background: rgba(10,18,30,0.7); }
.field select option { color: #111; }
.form-submit { width: 100%; border: none; margin-top: 6px; }
.form-note { font-size: 12px; color: rgba(246,244,239,0.45); margin-top: 16px; line-height: 1.7; text-align: center; }
.form-success { color: var(--gold-lt); font-size: 14px; text-align: center; margin-top: 14px; }

/* FOOTER */
.footer { background: #0a1220; color: var(--paper); padding: 60px clamp(20px, 5vw, 64px) 40px; }
.footer-main { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(246,244,239,0.12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.fb-name { font-family: var(--serif); font-size: 19px; font-weight: 700; color: #fff; letter-spacing: 0.08em; }
.fb-sub { font-size: 12.5px; color: rgba(246,244,239,0.5); letter-spacing: 0.2em; margin-top: 3px; }
.footer-nav { display: flex; gap: clamp(16px, 2.5vw, 34px); font-size: 14px; flex-wrap: wrap; }
.footer-nav a { color: rgba(246,244,239,0.7); transition: color 0.25s; }
.footer-nav a:hover { color: var(--gold-lt); }
.footer-bottom { max-width: 1180px; margin: 28px auto 0; text-align: center; }
.footer-bottom p { font-size: 12.5px; color: rgba(246,244,239,0.45); }
.disclaimer { margin-top: 12px; max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.8; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.85s cubic-bezier(.22,1,.36,1), transform 0.85s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 26px; padding: 40px 36px; background: var(--ink);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(.22,1,.36,1);
    font-size: 18px; box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .nav.scrolled .nav-links a { color: rgba(255,255,255,0.85) !important; }
  .nav-links .nav-cta { border-color: rgba(255,255,255,0.5) !important; }
  .nav-toggle { display: flex; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .team-grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: clamp(34px, 9vw, 52px); }
}
@media (max-width: 560px) {
  .practice-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
