/* VELA 纬澜 — editorial advisory aesthetic.
   System fonts only. No external dependencies. */

:root {
  --ink: #0e1a26;
  --ink-soft: #1b2a3a;
  --paper: #f4efe5;
  --paper-deep: #e9e1d3;
  --cream: #fffdf8;
  --clay: #b45132;
  --clay-bright: #d97752;
  --sea: #1f5b56;
  --muted: #6d6558;
  --line: #d8cfc0;
  --line-strong: #b9ad9a;
  --line-dark: rgba(244, 239, 229, 0.16);
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --shadow: 0 18px 50px rgba(14, 26, 38, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

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

body.admin-body,
body.admin-login-body {
  background: #f0ece4;
}

::selection {
  background: var(--clay);
  color: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--clay-bright);
  outline-offset: 3px;
}

.muted {
  color: var(--muted);
}

.block {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 229, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-word {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.brand-cn {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
  padding-left: 2px;
}

.brand-footer {
  color: var(--cream);
}

.brand-footer .brand-cn {
  color: rgba(244, 239, 229, 0.55);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 18px;
}

.desktop-nav a {
  position: relative;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.mobile-panel {
  position: absolute;
  right: 0;
  top: 50px;
  width: min(320px, 86vw);
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 4px;
}

.mobile-panel a {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.mobile-panel .btn {
  margin-top: 12px;
  border-bottom: 0;
  text-align: center;
}

/* ---------------- Buttons & links ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-accent {
  background: var(--clay);
  color: var(--cream);
  border-color: var(--clay);
}

.btn-accent:hover {
  background: var(--clay-bright);
  border-color: var(--clay-bright);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 12.5px;
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 650;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.text-link-light {
  color: var(--cream);
  border-color: rgba(244, 239, 229, 0.35);
}

.text-link-light:hover {
  color: var(--clay-bright);
  border-color: var(--clay-bright);
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid currentColor;
}

.link-button.danger {
  color: #a33a2a;
}

/* ---------------- Typography helpers ---------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.eyebrow-light {
  color: rgba(244, 239, 229, 0.62);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--clay);
  border-radius: 50%;
  flex: 0 0 auto;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
  font-weight: 650;
}

.kicker-light {
  color: var(--clay-bright);
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 660px;
}

.lede-light {
  color: rgba(244, 239, 229, 0.72);
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 56px 0 96px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 760px;
}

.section-lede {
  margin-top: 16px;
  color: var(--muted);
  max-width: 620px;
  font-size: 16px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(180, 81, 50, 0.26), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(31, 91, 86, 0.32), transparent 42%),
    var(--ink);
  color: var(--cream);
  padding: 88px 0 76px;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(244, 239, 229, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 229, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(54px, 8.4vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--cream);
  max-width: 760px;
}

.hero h1 em {
  color: var(--clay-bright);
  font-style: italic;
}

html[lang="zh-CN"] .hero h1 {
  font-size: clamp(46px, 6.6vw, 86px);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

html[lang="zh-CN"] .hero h1 em {
  font-style: normal;
  color: var(--clay-bright);
}

.hero .lede {
  margin-top: 30px;
  max-width: 590px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  flex-wrap: wrap;
}

.hero-proof li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--line-dark);
}

.hero-proof li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-proof strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--cream);
}

.hero-proof span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 229, 0.56);
  text-transform: uppercase;
}

.hero-panel {
  border: 1px solid var(--line-dark);
  background: rgba(244, 239, 229, 0.035);
  padding: 24px;
  backdrop-filter: blur(6px);
}

.hero-panel-head,
.hero-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.5);
}

.hero-panel-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.hero-practice-list {
  margin: 8px 0 18px;
}

.hero-practice-list a {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s ease, padding 0.2s ease;
}

.hero-practice-list a:hover {
  color: var(--clay-bright);
  padding-left: 4px;
}

.hero-practice-index {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(244, 239, 229, 0.4);
}

.hero-practice-name {
  font-size: 15px;
  font-weight: 600;
}

.hero-practice-arrow {
  font-size: 15px;
  color: var(--clay-bright);
}

.hero-panel-foot {
  justify-content: flex-start;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fb7a8;
  box-shadow: 0 0 0 0 rgba(127, 183, 168, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 183, 168, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(127, 183, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 183, 168, 0); }
}

/* ---------------- Practices ---------------- */

.practices-section {
  border-bottom: 1px solid var(--line);
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  border-top: 1px solid var(--line-strong);
}

.practice-card {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 18px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}

.practice-card:hover {
  padding-left: 10px;
  background: rgba(255, 253, 248, 0.5);
}

.practice-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--clay);
  padding-top: 8px;
}

.practice-card h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 8px;
}

.practice-card p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 380px;
}

.practice-arrow {
  font-size: 22px;
  color: var(--clay);
  padding-top: 2px;
  transition: transform 0.2s ease;
}

.practice-card:hover .practice-arrow {
  transform: translate(3px, -3px);
}

/* ---------------- Expert cards ---------------- */

.experts-section {
  background: var(--paper);
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.expert-card {
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.expert-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}

.avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper-deep);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

img.avatar {
  object-fit: cover;
  object-position: center 25%;
}

.avatar-lg {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  font-size: 64px;
}

.avatar-xl {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  font-size: 84px;
}

.avatar-md {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.avatar-sm {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.avatar-clay { background: linear-gradient(145deg, #ba6042, #8f3c27); }
.avatar-sea { background: linear-gradient(145deg, #2b706a, #15413e); }
.avatar-sand { background: linear-gradient(145deg, #b59a72, #7f6848); }
.avatar-slate { background: linear-gradient(145deg, #3f5368, #223140); }
.avatar-moss { background: linear-gradient(145deg, #647a58, #3e5038); }

.expert-card-rate {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.demo-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14, 26, 38, 0.8);
  color: var(--cream);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 7px;
  max-width: calc(100% - 24px);
}

.demo-flag-profile {
  top: 14px;
  left: 14px;
}

.expert-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.expert-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.expert-card-heading h3 {
  font-size: 23px;
}

.expert-card-heading h3 a:hover {
  color: var(--clay);
}

.expert-country {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.expert-card-title {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 38px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
}

.tag-link:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.tag-small {
  font-size: 9px;
  padding: 3px 6px;
  margin-right: 3px;
}

.expert-card-bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.expert-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.expert-card-foot .text-link {
  font-size: 11.5px;
  border-bottom: 0;
  white-space: nowrap;
}

/* ---------------- Process ---------------- */

.process-section {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.process-step {
  padding: 28px 32px 28px 0;
  border-right: 1px solid var(--line);
}

.process-step + .process-step {
  padding-left: 32px;
}

.process-step:last-child {
  border-right: 0;
}

.process-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--clay);
}

.process-step h3 {
  margin-top: 24px;
  font-size: 24px;
}

.process-step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.process-note {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.note-mark {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--clay);
}

.process-note p {
  color: var(--muted);
  font-size: 14px;
  max-width: 660px;
}

/* ---------------- Why ---------------- */

.why-section {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 100px);
}

.why-intro h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--cream);
  max-width: 460px;
}

.why-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}

.why-number {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--clay-bright);
  padding-top: 5px;
}

.why-item h3 {
  font-size: 20px;
  color: var(--cream);
}

.why-item p {
  margin-top: 6px;
  color: rgba(244, 239, 229, 0.64);
  font-size: 14px;
}

/* ---------------- CTA ---------------- */

.cta-section {
  background: var(--clay);
  color: var(--cream);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  color: var(--cream);
  font-size: clamp(30px, 4vw, 46px);
  max-width: 680px;
}

.cta-inner p {
  color: rgba(255, 253, 248, 0.78);
  margin-top: 12px;
  max-width: 620px;
}

.cta-inner .kicker {
  color: rgba(255, 253, 248, 0.7);
}

/* ---------------- Page hero ---------------- */

.page-hero {
  background:
    radial-gradient(circle at 92% 10%, rgba(180, 81, 50, 0.12), transparent 32%),
    linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 76px 0 54px;
}

.page-hero-compact {
  padding: 64px 0 44px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  max-width: 900px;
}

.page-hero .lede {
  margin-top: 20px;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
}

.hero-stat strong {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--clay);
}

.hero-stat span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------------- Services list ---------------- */

.service-list {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 220px;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--clay);
  padding-top: 7px;
}

.service-main h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 10px;
}

.service-main h2 a:hover {
  color: var(--clay);
}

.service-main p {
  color: var(--muted);
  max-width: 700px;
  font-size: 14.5px;
}

.service-main .text-link {
  margin-top: 16px;
}

.service-side {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  padding-top: 8px;
}

/* ---------------- Filter bar ---------------- */

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 160px;
  min-width: 0;
}

.field > span {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field > span em {
  font-style: normal;
  color: var(--clay);
  font-size: 10px;
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: #fff;
}

.field small {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
}

.field-help {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: -4px 0 16px;
}

.field-search {
  flex: 2 1 260px;
}

.filter-bar .btn {
  flex: 0 0 auto;
  min-height: 44px;
}

.filter-clear {
  flex: 0 0 auto;
  padding-bottom: 12px;
  border-bottom: 0;
  color: var(--muted);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 18px;
}

/* ---------------- Profile ---------------- */

.profile-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(180, 81, 50, 0.2), transparent 30%),
    var(--ink);
  color: var(--cream);
  padding: 42px 0 64px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.45);
  margin-bottom: 34px;
}

.breadcrumb a:hover {
  color: var(--cream);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: end;
}

.profile-media {
  position: relative;
  border: 1px solid var(--line-dark);
}

.profile-copy h1 {
  font-size: clamp(48px, 6vw, 78px);
  color: var(--cream);
  margin: 10px 0 10px;
}

.profile-title {
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(244, 239, 229, 0.82);
  max-width: 720px;
}

.profile-company {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 229, 0.45);
  margin-top: 8px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 11.5px;
  color: rgba(244, 239, 229, 0.56);
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.profile-rate {
  font-size: 12px;
  color: rgba(244, 239, 229, 0.56);
}

.profile-rate strong {
  color: var(--cream);
  font-size: 16px;
}

.profile-body {
  padding-top: 72px;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 38px 0 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.75;
}

.prose-long {
  max-width: 780px;
}

.prose-long h2 {
  font-size: 25px;
  margin-top: 34px;
}

.prose-small p {
  font-size: 14px;
}

.expect-list {
  counter-reset: expect;
  margin: 10px 0 22px;
  border-top: 1px solid var(--line);
}

.expect-list li {
  counter-increment: expect;
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.expect-list li::before {
  content: counter(expect, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--clay);
}

.profile-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.side-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
}

.side-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.detail-list {
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  text-align: right;
  font-weight: 600;
}

.detail-list a:hover {
  color: var(--clay);
}

.detail-list-wide > div {
  font-size: 13.5px;
}

.side-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

.side-note-card {
  border: 1px solid var(--line);
  padding: 18px;
  background: transparent;
}

.side-note-card p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.65;
}

.side-note-card p + p {
  margin-top: 8px;
}

.related-section {
  border-top: 1px solid var(--line);
}

/* ---------------- Booking ---------------- */

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.booking-form-wrap h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 8px;
}

.booking-form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-form .field {
  flex: none;
}

.booking-form .field > span {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

.booking-form .field input,
.booking-form .field select,
.booking-form .field textarea {
  background: var(--cream);
  border-color: var(--line-strong);
  padding: 13px;
  font-size: 14.5px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--clay);
  flex: 0 0 auto;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 18px;
}

.inline-checks {
  display: flex;
  gap: 18px;
  padding: 10px 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.booking-side {
  display: grid;
  gap: 16px;
}

.booking-expert {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
}

.booking-expert-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}

.booking-expert-head h3 {
  font-size: 22px;
}

.booking-expert-head p {
  font-size: 12px;
  color: var(--muted);
}

.alert {
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  border: 1px solid;
}

.alert-error {
  background: #fdf0ec;
  border-color: #e0b3a5;
  color: #8e3420;
}

/* ---------------- Confirmation ---------------- */

.confirm-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 24px;
}

.reference {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  word-break: break-all;
}

.confirm-expert {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.confirm-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.6;
}

.next-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.next-card h2 {
  font-size: 30px;
  margin-bottom: 18px;
}

/* ---------------- About / contact ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.about-aside {
  border-left: 1px solid var(--line-strong);
  padding-left: 28px;
}

.principles {
  counter-reset: principle;
}

.principles li {
  counter-increment: principle;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 13.5px;
  color: var(--muted);
}

.principles li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--clay);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 36px;
}

.contact-card-muted {
  background: transparent;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--ink);
  margin: 8px 0 18px;
}

.contact-email:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.contact-card .text-link {
  margin-top: 18px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--ink);
  color: rgba(244, 239, 229, 0.68);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand p {
  margin-top: 18px;
  font-size: 13px;
  max-width: 300px;
  color: rgba(244, 239, 229, 0.55);
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.4);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 13px;
  padding: 5px 0;
  color: rgba(244, 239, 229, 0.72);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-small {
  font-size: 11px;
  color: rgba(244, 239, 229, 0.4);
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-size: 10.5px;
  color: rgba(244, 239, 229, 0.4);
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a:hover {
  color: var(--cream);
}

/* ---------------- Admin ---------------- */

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-side {
  background: var(--ink);
  color: var(--cream);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 26px;
  border-bottom: 1px solid var(--line-dark);
}

.admin-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.admin-brand span {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  font-size: 18px;
}

.admin-brand small {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.4);
  margin-left: auto;
}

.admin-nav {
  display: grid;
  gap: 3px;
  padding-top: 20px;
}

.admin-nav a {
  padding: 10px 8px;
  font-size: 13px;
  color: rgba(244, 239, 229, 0.62);
  border-left: 2px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--cream);
  background: rgba(244, 239, 229, 0.06);
  border-left-color: var(--clay-bright);
}

.admin-side-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 18px 8px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: rgba(244, 239, 229, 0.55);
}

.admin-side-foot a:hover {
  color: var(--cream);
}

.admin-main {
  padding: 34px 38px 60px;
  min-width: 0;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-top h1 {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.admin-top p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
}

.admin-env {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 5px 8px;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 18px;
}

.stat-card > span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 8px;
}

.stat-card small {
  font-size: 10.5px;
  color: var(--muted);
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.progress {
  height: 5px;
  background: var(--paper-deep);
  margin: 18px 0 10px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--clay);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quick-link:hover {
  border-color: var(--clay);
  background: #fdf8f2;
}

.quick-link strong {
  color: var(--clay);
}

.notice {
  background: #fbf5e9;
  border-left: 3px solid #c39b4e;
  padding: 12px 14px;
  font-size: 12px;
  color: #6d5726;
  margin-top: 14px;
  line-height: 1.6;
}

.flash {
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  border: 1px solid;
}

.flash-ok {
  background: #edf6ef;
  border-color: #b7d4bd;
  color: #2d6439;
}

.flash-error {
  background: #fdf0ec;
  border-color: #e0b3a5;
  color: #8e3420;
}

.admin-footnote {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 24px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-toolbar p {
  font-size: 12.5px;
}

.tab-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab-row a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 11.5px;
  color: var(--muted);
}

.tab-row a span {
  color: var(--line-strong);
  margin-left: 4px;
}

.tab-row a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.tab-row a.active span {
  color: rgba(244, 239, 229, 0.6);
}

.admin-filter {
  margin-bottom: 18px;
  padding: 12px;
}

.admin-filter .field {
  flex: 1;
}

.admin-filter .btn {
  min-height: 42px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.admin-table th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #fdfaf4;
}

.admin-table small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.table-primary {
  font-weight: 650;
  color: var(--ink);
}

.table-primary:hover {
  color: var(--clay);
}

.table-action {
  font-size: 11px;
  color: var(--clay);
  white-space: nowrap;
}

.table-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status,
.payment {
  display: inline-block;
  padding: 3px 7px;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  border: 1px solid;
  white-space: nowrap;
}

.status-new { background: #fbf3e3; border-color: #dcc28f; color: #785b1e; }
.status-contacted { background: #edf3f8; border-color: #b8cbdc; color: #355b7a; }
.status-scheduled { background: #eef5f2; border-color: #b4d0c5; color: #2e6353; }
.status-completed { background: #edf6ef; border-color: #b7d4bd; color: #2d6439; }
.status-cancelled { background: #f5efee; border-color: #d5b9b3; color: #7b4439; }
.status-converted { background: #f1ecf8; border-color: #c9b8df; color: #5c3d7e; }
.status-published { background: #edf6ef; border-color: #b7d4bd; color: #2d6439; }
.status-draft { background: #f5f1e8; border-color: #d8cbb1; color: #77643d; }
.status-archived { background: #f1efeb; border-color: #ccc4b8; color: #6f665b; }

.payment-not_applicable { background: #f4f1ea; border-color: #d8cfc0; color: #6d6558; }
.payment-unpaid { background: #fbf3e3; border-color: #dcc28f; color: #785b1e; }
.payment-paid { background: #edf6ef; border-color: #b7d4bd; color: #2d6439; }
.payment-refunded { background: #f5efee; border-color: #d5b9b3; color: #7b4439; }

.mini-flag {
  display: inline-block;
  font-size: 9px;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.mini-flag-warn {
  border-color: #d6b36d;
  color: #7a5a1a;
}

.admin-form .field {
  flex: none;
  margin-bottom: 16px;
}

.admin-form .form-row .field {
  margin-bottom: 0;
}

.admin-form .form-row {
  margin-bottom: 16px;
}

.admin-form .field input,
.admin-form .field select,
.admin-form .field textarea {
  background: #fffdf9;
}

.expert-form .panel {
  padding: 26px;
}

.expert-form .panel-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.expert-photo-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.expert-photo-preview {
  width: 140px;
  flex: 0 0 auto;
}

.expert-photo-fields {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.danger-form {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-detail-grid {
  align-items: start;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-head h2 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  word-break: break-all;
}

.detail-head-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ok { color: #2d6439; font-weight: 600; }
.warn { color: #8e5b18; font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(14, 26, 38, 0.06);
  padding: 1px 4px;
}

/* ---------------- Login ---------------- */

.login-shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 80% 10%, rgba(180, 81, 50, 0.16), transparent 34%),
    var(--ink);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
}

.login-brand .brand-word {
  font-size: 25px;
}

.login-brand .brand-cn {
  color: rgba(244, 239, 229, 0.5);
}

.login-brand small {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.38);
  margin-left: 8px;
}

.login-card {
  width: min(420px, 92vw);
  background: var(--cream);
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.login-card h1 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-card .muted {
  font-size: 12.5px;
  margin-bottom: 22px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.login-note {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 18px;
  text-align: center;
}

.login-back {
  font-size: 12px;
  color: rgba(244, 239, 229, 0.55);
}

.login-back:hover {
  color: var(--cream);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  .expert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .profile-grid {
    grid-template-columns: 260px 1fr;
  }

  .booking-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-book {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .expert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .why-grid,
  .about-grid,
  .profile-content-grid,
  .booking-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-side {
    position: static;
  }

  .booking-side {
    order: -1;
  }

  .profile-grid {
    grid-template-columns: 180px 1fr;
    gap: 28px;
  }

  .service-row {
    grid-template-columns: 44px 1fr;
  }

  .service-side {
    display: none;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    height: auto;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .admin-brand {
    padding: 0;
    border: 0;
  }

  .admin-nav {
    display: flex;
    padding: 0;
    gap: 2px;
    flex-wrap: wrap;
  }

  .admin-nav a {
    padding: 7px 9px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .admin-nav a.active {
    border-left: 0;
    border-bottom-color: var(--clay-bright);
  }

  .admin-side-foot {
    display: none;
  }

  .admin-main {
    padding: 24px 20px 50px;
  }

  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 40px 0 64px;
  }

  .hero {
    padding: 60px 0 52px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 70px);
  }

  .hero-proof {
    gap: 14px 0;
  }

  .hero-proof li {
    padding-right: 18px;
    margin-right: 18px;
  }

  .hero-proof strong {
    font-size: 21px;
  }

  .hero-proof span {
    font-size: 9px;
  }

  .section-head {
    display: block;
  }

  .section-head .btn {
    margin-top: 18px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step + .process-step {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-note {
    grid-template-columns: 52px 1fr;
  }

  .process-note .text-link {
    grid-column: 2;
  }

  .cta-inner {
    display: block;
  }

  .cta-inner .btn {
    margin-top: 24px;
  }

  .page-hero {
    padding: 52px 0 40px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-bar .btn,
  .filter-bar .text-link {
    width: 100%;
    text-align: center;
    padding-bottom: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-media {
    max-width: 220px;
  }

  .profile-copy h1 {
    font-size: clamp(40px, 11vw, 60px);
  }

  .form-row,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .footer-legal {
    margin-top: 8px;
  }

  .confirm-card {
    padding: 24px;
  }

  .admin-top {
    display: block;
  }

  .admin-env {
    display: inline-block;
    margin-top: 10px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card strong {
    font-size: 30px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .expert-photo-row {
    display: block;
  }

  .expert-photo-preview {
    width: 120px;
    margin-bottom: 16px;
  }

  .detail-head {
    display: block;
  }

  .detail-head-badges {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .expert-grid {
    grid-template-columns: 1fr;
  }

  .brand-cn {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .practice-card {
    grid-template-columns: 32px 1fr 20px;
    gap: 12px;
  }

  .practice-card h3 {
    font-size: 22px;
  }

  .service-row {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .service-main h2 {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-col:last-child {
    grid-column: auto;
  }

  .expert-card-heading h3 {
    font-size: 21px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .profile-actions .btn {
    width: 100%;
  }

  .tab-row a {
    padding: 6px 8px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
