/* ============================================================
   LexPartners Limited · 律合咨询
   黑白极简 · 法律人才中介
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --paper: #ffffff;
  --paper-alt: #f5f5f3;
  --grey-90: #e8e8e5;
  --grey-70: #9a9a96;
  --grey-50: #6b6b68;
  --hairline: rgba(10, 10, 10, 0.12);
  --hairline-strong: rgba(10, 10, 10, 0.28);

  --serif: "Cormorant Garamond", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --max: 1280px;
  --gut: 48px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 var(--gut); }

section { position: relative; }

.rule { height: 1px; background: var(--hairline); border: 0; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(46px, 7.4vw, 112px);
}
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-size: clamp(34px, 4.6vw, 66px);
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-size: clamp(27px, 3.1vw, 44px);
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(20px, 2vw, 28px);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--grey-50);
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.62;
  color: var(--ink-soft);
  font-weight: 300;
}
.body { font-size: 16px; line-height: 1.75; color: var(--grey-50); }
.small { font-size: 14px; line-height: 1.7; color: var(--grey-50); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.header.scrolled { border-bottom-color: var(--hairline); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 40px; width: auto; }
.brand-cn {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--grey-50);
  padding-left: 14px;
  border-left: 1px solid var(--hairline-strong);
}

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.active::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 11px 24px !important;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.menu-btn { display: none; width: 26px; height: 14px; position: relative; }
.menu-btn span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 6.5px; }
.menu-btn span:nth-child(3) { top: 13px; }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 96px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
}
.hero h1 { margin-bottom: 34px; }
.hero h1 em {
  font-style: italic;
  color: var(--grey-50);
}
.hero-lede { max-width: 480px; }

.hero-meta {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-meta-item .k {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-70);
  margin-bottom: 6px;
}
.hero-meta-item .v {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
}

.scroll-hint {
  position: absolute;
  bottom: 40px; left: var(--gut);
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grey-70);
}
.scroll-hint .line { width: 48px; height: 1px; background: var(--grey-70); }

/* ---------- Marquee ---------- */
.marquee {
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 26px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--grey-70);
  white-space: nowrap;
}
.marquee span::after {
  content: "·";
  margin-left: 80px;
  color: var(--grey-90);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.sec-head .eyebrow { margin-bottom: 18px; display: block; }
.sec-note { max-width: 380px; font-size: 14px; color: var(--grey-50); line-height: 1.7; }

section.band { padding: 120px 0; }
section.band-tight { padding: 88px 0; }
section.alt { background: var(--paper-alt); }

/* ---------- Intro statement ---------- */
.statement {
  padding: 150px 0;
  border-bottom: 1px solid var(--hairline);
}
.statement h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 1080px;
  font-weight: 400;
}
.statement h2 em { font-style: italic; color: var(--grey-70); }

/* ---------- Practice cards ---------- */
.practices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.practice {
  background: var(--paper);
  padding: 52px 46px 56px;
  position: relative;
  transition: background .5s var(--ease);
}
.practice:hover { background: var(--ink); }
.practice .num {
  font-size: 11px; letter-spacing: 0.2em; color: var(--grey-70);
  transition: color .5s var(--ease);
  margin-bottom: 26px; display: block;
}
.practice h3 { margin-bottom: 16px; transition: color .5s var(--ease); }
.practice p { font-size: 14.5px; color: var(--grey-50); line-height: 1.72; transition: color .5s var(--ease); }
.practice:hover .num, .practice:hover p { color: rgba(255,255,255,.6); }
.practice:hover h3 { color: var(--paper); }
.practice ul { list-style: none; margin-top: 22px; }
.practice li {
  font-size: 13.5px; color: var(--grey-50);
  padding: 9px 0 9px 16px;
  position: relative;
  transition: color .5s var(--ease);
}
.practice li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 5px; height: 1px; background: currentColor;
}
.practice:hover li { color: rgba(255,255,255,.78); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat .n {
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 16px;
}
.stat .n sup { font-size: 0.34em; vertical-align: super; letter-spacing: 0; }
.stat .l {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey-50); line-height: 1.6;
  padding-top: 16px; border-top: 1px solid var(--hairline);
  display: block;
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.split .visual {
  aspect-ratio: 4/5;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  text-align: center;
}
.split .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 55%);
}
/* Large watermark monogram */
.split .visual .wm {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 300px;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,.07);
  font-weight: 300;
  user-select: none;
  pointer-events: none;
}
/* hairline frame inset inside the black block */
.split .visual::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}
.split .visual .cap {
  position: relative; z-index: 2; color: #fff;
  max-width: 330px;
}
.split .visual .cap .t {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.24;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.split .visual .cap .s {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.04em;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.2);
  display: block;
}

.steps { list-style: none; margin-top: 40px; }
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps .n { font-family: var(--serif); font-size: 15px; color: var(--grey-70); padding-top: 2px; }
.steps .t { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.steps .d { font-size: 14px; color: var(--grey-50); line-height: 1.7; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.member {
  background: var(--paper);
  padding: 0 0 40px;
}
.member .ph {
  aspect-ratio: 1/1;
  background: var(--grey-90);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.member .ph .ini {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 60px; color: var(--grey-70);
}
.member h3 { font-size: 22px; margin-bottom: 6px; }
.member .role { font-size: 12.5px; letter-spacing: 0.1em; color: var(--grey-50); margin-bottom: 18px; text-transform: uppercase; }
.member .m { font-size: 13.5px; color: var(--grey-50); line-height: 1.7; }
.member .links { margin-top: 20px; display: flex; gap: 16px; }
.member .links a {
  font-size: 12px; letter-spacing: 0.08em; color: var(--grey-50);
  border-bottom: 1px solid var(--hairline-strong); padding-bottom: 2px;
  transition: color .3s;
}
.member .links a:hover { color: var(--ink); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.quote { border-top: 1px solid var(--hairline); padding-top: 34px; }
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}
.quote .who { font-size: 13px; color: var(--grey-50); line-height: 1.6; }
.quote .who b { font-weight: 500; color: var(--ink); }

/* ---------- Jobs ---------- */
.job {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .4s var(--ease);
}
.job:hover { padding-left: 14px; }
.job .jt { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.job .jm { font-size: 13.5px; color: var(--grey-50); margin-top: 6px; }
.job .jl { font-size: 13px; color: var(--grey-50); }
.job .arrow { font-size: 18px; color: var(--grey-70); transition: transform .4s var(--ease), color .3s; }
.job:hover .arrow { transform: translateX(7px); color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.contact-list { list-style: none; margin-top: 40px; }
.contact-list li {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 24px; padding: 20px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--hairline); }
.contact-list .k {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey-70); padding-top: 4px;
}
.contact-list a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-list a:hover { border-bottom-color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey-50);
}
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px;
  padding: 13px 0;
  border: 0; border-bottom: 1px solid var(--hairline-strong);
  background: transparent; color: var(--ink);
  border-radius: 0;
  transition: border-color .35s;
  outline: none;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; cursor: pointer; }
.field select option { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 44px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
  align-self: flex-start;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.form-note { font-size: 12.5px; color: var(--grey-70); line-height: 1.6; }
.form-status {
  font-size: 13.5px; padding: 13px 16px;
  border: 1px solid var(--ink);
  display: none;
}
.form-status.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 110px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); margin-bottom: 22px; }
.cta-band p { color: rgba(255,255,255,.62); max-width: 520px; margin: 0 auto 42px; font-size: 15.5px; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); align-self: center; }
.cta-band .btn:hover { background: transparent; color: var(--paper); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-brand img { height: 44px; margin-bottom: 22px; }
.footer h4 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.42); margin-bottom: 20px; font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: 14px; transition: color .3s; }
.footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 12.5px; color: rgba(255,255,255,.4);
  flex-wrap: wrap;
}
.footer-bottom a { transition: color .3s; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 170px 0 90px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero .eyebrow { margin-bottom: 22px; display: block; }
.page-hero h1 { margin-bottom: 26px; }
.page-hero .lede { max-width: 620px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --gut: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-meta { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 32px; flex-direction: row; flex-wrap: wrap; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .job { grid-template-columns: 1fr auto; gap: 12px 24px; }
  .job .jl { grid-column: 1; }
  .job .arrow { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 760px) {
  :root { --gut: 24px; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 20px var(--gut) 40px;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-120%);
    transition: transform .5s var(--ease);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 0; width: 100%; border-bottom: 1px solid var(--hairline); font-size: 15px; }
  .nav .nav-cta { border: 1px solid var(--ink); margin-top: 26px; text-align: center; padding: 15px 24px !important; }
  .menu-btn { display: block; z-index: 110; position: relative; }
  .hero { padding: 140px 0 90px; min-height: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .practices { grid-template-columns: 1fr; }
  .practice { padding: 38px 28px 42px; }
  .team-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .contact-list li { grid-template-columns: 1fr; gap: 6px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .statement { padding: 90px 0; }
  section.band { padding: 80px 0; }
  .marquee span { font-size: 20px; }
  .brand-cn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
