/* ==========================================================================
   Aurelian Chambers — public site
   Quiet luxury: ivory, ink and champagne. Solid colours only, liquid glass.
   ========================================================================== */
:root {
  --bg: #f5f3ee;
  --bg-2: #ece8df;
  --surface: #ffffff;
  --ink: #0e0e10;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #8e8e93;
  --line: rgba(14, 14, 16, .1);
  --line-2: rgba(14, 14, 16, .06);
  --gold: #a6834a;
  --gold-ink: #8a6b39;
  --gold-soft: #e8dfcd;
  --on-dark: #f5f3ee;
  --on-dark-muted: rgba(245, 243, 238, .62);
  --dark-line: rgba(245, 243, 238, .14);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 30px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(84px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--on-dark); }
.ic { width: 1em; height: 1em; stroke-width: 1.6; flex: none; }
svg.lucide { stroke-width: 1.6; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .muted { color: var(--on-dark-muted); }
.ivory-2 { background: var(--bg-2); }
.white { background: var(--surface); }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow, .on-image .eyebrow, .hero .eyebrow { color: #d9c08f; }
.center .eyebrow::after, .article-head .eyebrow::after, .eyebrow.center::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.04; margin: 0; }
.display { font-size: clamp(48px, 8.4vw, 112px); line-height: .98; letter-spacing: -.025em; }
.h1 { font-size: clamp(42px, 6.4vw, 84px); }
.h2 { font-size: clamp(36px, 4.8vw, 64px); }
.h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--gold); }
.dark .h2 em, .on-image em { color: #cdb27f; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); letter-spacing: -.016em; }
.dark .lead { color: var(--on-dark-muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 18px; max-width: 16ch; }
.section-head.center { flex-direction: column; align-items: center; }
.section-head.center .h2 { max-width: 20ch; }
.section-head p { max-width: 440px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
}
.btn .ic { width: 17px; height: 17px; transition: transform .5s var(--ease); }
.btn:hover .ic-move { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: #2a2a2d; box-shadow: 0 14px 34px rgba(14, 14, 16, .22); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-ink); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink); }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link-arrow:hover .ic { transform: translateX(5px); }
.dark .link-arrow { color: var(--on-dark); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 0 0 0 .5px rgba(255, 255, 255, .1),
    0 24px 60px rgba(0, 0, 0, .28);
  color: #fff;
}
.glass-light {
  position: relative;
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(14, 14, 16, .04), 0 18px 50px rgba(14, 14, 16, .08);
}
.glass-dark {
  background: rgba(18, 18, 20, .42);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 50px rgba(0, 0, 0, .3);
  color: #fff;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter);
  transition: transform .6s var(--ease);
}
.nav.hide { transform: translateY(-120%); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; height: 64px; padding: 0 10px 0 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 20px;
  background: rgba(250, 249, 246, .72);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 #fff, 0 10px 40px rgba(14, 14, 16, .08);
  transition: background-color .5s, border-color .5s, box-shadow .5s, color .5s;
}
.nav-on-hero:not(.scrolled) .nav-inner {
  background: rgba(20, 20, 22, .22); border-color: rgba(255, 255, 255, .18); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 40px rgba(0, 0, 0, .18);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid currentColor; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1;
  color: var(--gold);
}
.nav-on-hero:not(.scrolled) .brand-mark { color: #d9c08f; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; opacity: .6; margin-top: 3px; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 450; opacity: .82;
  transition: opacity .3s, background-color .3s;
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; background: rgba(14, 14, 16, .06); }
.nav-on-hero:not(.scrolled) .nav-links a:hover, .nav-on-hero:not(.scrolled) .nav-links a.is-active { background: rgba(255, 255, 255, .14); }
.nav-on-hero:not(.scrolled) .nav-cta { background: var(--on-dark); color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .5s var(--ease); }
.menu-open .nav-toggle span:first-child { transform: translateY(4.75px) rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

.sheet {
  position: fixed; inset: 0; z-index: 40; padding: 110px var(--gutter) 40px;
  background: rgba(245, 243, 238, .86);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu-open .sheet { opacity: 1; visibility: visible; }
.menu-open .nav-inner { background: rgba(250, 249, 246, .9) !important; color: var(--ink) !important; }
.menu-open .brand-mark { color: var(--gold) !important; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { overflow: hidden; border-bottom: 1px solid var(--line); }
.sheet li a {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 0;
  font-family: var(--serif); font-size: 36px; line-height: 1.1;
  transform: translateY(100%); transition: transform .7s var(--ease);
}
.sheet li a .ic { width: 22px; height: 22px; color: var(--gold); }
.menu-open .sheet li a { transform: none; }
.menu-open .sheet li:nth-child(2) a { transition-delay: .05s; }
.menu-open .sheet li:nth-child(3) a { transition-delay: .1s; }
.menu-open .sheet li:nth-child(4) a { transition-delay: .15s; }
.menu-open .sheet li:nth-child(5) a { transition-delay: .2s; }
.menu-open .sheet li:nth-child(6) a { transition-delay: .25s; }
.sheet-foot { margin-top: auto; display: grid; gap: 12px; }
.sheet-foot .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: #111;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 115%; object-fit: cover; object-position: center 30%;
  transform: scale(1.08); animation: heroZoom 2.6s var(--ease) forwards; will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 9, .58); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(40px, 7vh, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: end; }
.hero .display { margin: 22px 0 26px; max-width: 12ch; }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-actions .glass { height: 52px; }
.hero-card { border-radius: var(--r-lg); padding: 26px; }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #6fcf97; box-shadow: 0 0 0 0 rgba(111, 207, 151, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(111, 207, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 207, 151, 0); } }
.hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .16); border-radius: 16px; overflow: hidden; }
.hero-card-stats div { background: rgba(20, 20, 22, .2); padding: 16px; }
.hero-card-stats strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
.hero-card-stats span { font-size: 12.5px; opacity: .72; }
.hero-card-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; }
.hero-card-foot .avatars { display: flex; }
.hero-card-foot .avatars img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); margin-left: -8px; }
.hero-card-foot .avatars img:first-child { margin-left: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Split-line text reveal */
.split .line { display: block; overflow: hidden; padding-bottom: .06em; }
.split .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.split.in .line > span { transform: none; }
.split .line:nth-child(2) > span { transition-delay: .09s; }
.split .line:nth-child(3) > span { transition-delay: .18s; }
.split .line:nth-child(4) > span { transition-delay: .27s; }

/* ---------- Marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; font-family: var(--serif); font-size: 24px; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-size: 12px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / About split ---------- */
.split-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-grid.reverse > :first-child { order: 2; }
.split-copy .h2 { margin: 20px 0 28px; }
.split-copy p { margin: 0 0 18px; }
.collage { position: relative; aspect-ratio: 4 / 4.6; }
.collage .c1 { position: absolute; inset: 0 18% 14% 0; border-radius: var(--r-lg); overflow: hidden; }
.collage .c2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; border: 8px solid var(--bg); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .badge { position: absolute; left: 24px; bottom: calc(14% + 24px); border-radius: 22px; padding: 18px 22px; display: flex; gap: 14px; align-items: center; }
.badge strong { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; }
.badge span { font-size: 13px; line-height: 1.3; opacity: .85; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.signature strong { display: block; font-weight: 600; font-size: 16px; }
.signature span { font-size: 14px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dark-line); }
.stat { padding: 40px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.stat-num { font-family: var(--serif); font-size: clamp(56px, 7vw, 96px); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.stat-num sup { font-size: .45em; color: #cdb27f; vertical-align: top; position: relative; top: .2em; margin-left: 2px; }
.stat p { margin: 14px 0 0; color: var(--on-dark-muted); font-size: 15px; }

/* ---------- Practice cards ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.area {
  position: relative; background: var(--bg); padding: clamp(28px, 3vw, 44px); min-height: 330px; display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate; transition: color .6s var(--ease);
}
.area-bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .7s var(--ease); }
.area-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.4s var(--ease); }
.area-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, .7); }
.area:hover { color: #fff; }
.area:hover .area-bg { opacity: 1; }
.area:hover .area-bg img { transform: scale(1); }
.area-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); transition: border-color .6s, background-color .6s, color .6s; }
.area-icon .ic { width: 24px; height: 24px; }
.area:hover .area-icon { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #e2cb9d; }
.area-num { position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px); font-family: var(--serif); font-size: 18px; color: var(--muted-2); transition: color .6s; }
.area:hover .area-num { color: rgba(255, 255, 255, .6); }
.area h3 { font-size: 30px; margin: auto 0 12px; padding-top: 40px; }
.area p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; transition: color .6s; }
.area:hover p { color: rgba(255, 255, 255, .8); }
.area .link-arrow { color: inherit; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { display: block; }
.member-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transform: scale(1.02); transition: filter 1s var(--ease), transform 1.2s var(--ease); }
.member:hover .member-photo img { filter: grayscale(0); transform: scale(1.06); }
.member-photo .glass-light { position: absolute; left: 12px; right: 12px; bottom: 12px; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.member:hover .member-photo .glass-light { opacity: 1; transform: none; }
.member h3 { font-size: 26px; margin-top: 20px; }
.member p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.member .cred { font-size: 13px; color: var(--muted-2); margin-top: 2px; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 36px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.value:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(14, 14, 16, .08); }
.value .area-icon { margin-bottom: 40px; }
.value h3 { font-size: 30px; margin-bottom: 10px; }
.value p { margin: 0; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { position: relative; min-height: 340px; }
.quote { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease), visibility 1s; }
.quote.on { opacity: 1; visibility: visible; transform: none; position: relative; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.18; letter-spacing: -.015em; max-width: 24ch; }
.quote blockquote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: #cdb27f; margin-bottom: 10px; }
.quote cite { display: block; margin-top: 36px; font-style: normal; }
.quote cite strong { display: block; font-weight: 600; }
.quote cite span { color: var(--on-dark-muted); font-size: 15px; }
.quote-nav { display: flex; gap: 10px; margin-top: 40px; }
.quote-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--dark-line); background: transparent; color: var(--on-dark); cursor: pointer; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.quote-nav button:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.quote-dots { display: flex; gap: 8px; align-items: center; margin-left: 16px; }
.quote-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--dark-line); transition: width .6s var(--ease), background-color .6s; }
.quote-dots i.on { width: 26px; background: #cdb27f; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: center; }
.testimonial-img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; }
.testimonial-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; }
.post-cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.05); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.post-cover .chip { position: absolute; top: 14px; left: 14px; }
.post-meta { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--muted); margin: 22px 0 10px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .ic { width: 14px; height: 14px; }
.post-card h3 { font-size: 28px; line-height: 1.12; transition: color .3s; }
.post-card:hover h3 { color: var(--gold-ink); }
.post-card p { color: var(--muted); font-size: 15.5px; margin: 12px 0 0; }
.post-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.post-feature .post-cover { aspect-ratio: 16 / 11; border-radius: var(--r-lg); }
.post-feature h2 { font-size: clamp(34px, 3.8vw, 52px); margin: 6px 0 18px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 56px; }
.filters a { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: all .3s; }
.filters a:hover { border-color: var(--ink); }
.filters a.on { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.filters a small { margin-left: 8px; opacity: .55; }
.search { margin-left: auto; position: relative; }
.search input { height: 40px; width: 240px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 18px 0 40px; font: inherit; font-size: 14px; outline: none; transition: border-color .3s, width .5s var(--ease); }
.search input:focus { border-color: var(--ink); width: 280px; }
.search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 72px; }
.pagination a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 14px; }
.pagination a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Article ---------- */
.article-head { padding: 170px 0 56px; text-align: center; }
.article-head .h1 { font-size: clamp(40px, 5.6vw, 74px); margin: 24px auto 28px; max-width: 18ch; }
.byline { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.byline strong { display: block; font-size: 15px; }
.byline span { font-size: 13.5px; color: var(--muted); }
.article-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 72px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 19px; line-height: 1.75; color: #2b2b2e; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-size: 4.4em; line-height: .82; padding: 8px 12px 0 0; color: var(--ink); }
.prose h2 { font-size: 38px; margin: 1.8em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 29px; margin: 1.6em 0 .5em; color: var(--ink); }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 32px; line-height: 1.25; color: var(--ink); }
.prose img { border-radius: var(--r); margin: 2em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .5em; }
.prose pre { background: var(--ink); color: var(--on-dark); padding: 20px; border-radius: var(--r-sm); overflow: auto; font-size: 14px; }
.share { display: flex; align-items: center; gap: 10px; padding: 32px 0; margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { margin-right: auto; font-size: 14px; color: var(--muted); }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; transition: all .3s; }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share .ic { width: 18px; height: 18px; }
.preview-bar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 70; padding: 10px 12px 10px 20px; border-radius: 999px; display: flex; gap: 14px; align-items: center; font-size: 14px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #111; }
.page-hero.short { min-height: 52vh; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 115%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 9, .6); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 64px; }
.page-hero .h1 { margin: 20px 0 20px; max-width: 16ch; }
.page-hero .lead { color: rgba(255, 255, 255, .78); max-width: 560px; }
.crumbs { display: inline-flex; gap: 8px; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; }
.crumbs a { opacity: .75; }
.crumbs a:hover { opacity: 1; }
.crumbs .ic { width: 13px; height: 13px; opacity: .6; }

/* ---------- Practice detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; align-items: start; }
.services { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.services li { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.services li .ic { color: var(--gold); width: 20px; height: 20px; }
.sticky-card { position: sticky; top: 110px; border-radius: var(--r-lg); padding: 34px; background: var(--ink); color: var(--on-dark); }
.sticky-card h3 { font-size: 32px; margin-bottom: 12px; }
.sticky-card p { color: var(--on-dark-muted); font-size: 15.5px; margin: 0 0 26px; }
.sticky-card .btn { width: 100%; }
.sticky-card .contact-line { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--on-dark-muted); }
.sticky-card .contact-line .ic { color: #cdb27f; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 80px; align-items: start; padding-top: 150px; }
.profile-photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 110px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile .h1 { margin: 18px 0 8px; }
.profile-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 40px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.contact-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-item .area-icon { width: 48px; height: 48px; }
.contact-item .area-icon .ic { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item div { white-space: pre-line; }
.form-card { border-radius: var(--r-lg); padding: clamp(26px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(14, 14, 16, .07); }
.form-card h2 { font-size: 40px; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .3s, background-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: none; cursor: pointer; }
.field textarea { height: 150px; padding: 16px 18px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px rgba(166, 131, 74, .14); }
.field .err { color: #b3261e; font-size: 13px; margin-top: 6px; }
.field.has-err input, .field.has-err textarea { border-color: #b3261e; }
.select-wrap { position: relative; }
.select-wrap .ic { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin-top: 20px; }
.form-note .ic { color: var(--gold); }
.success { text-align: center; padding: 30px 0; }
.success .area-icon { margin: 0 auto 24px; width: 72px; height: 72px; color: #2e7d4f; }
.success .area-icon .ic { width: 32px; height: 32px; }
.map { margin-top: 32px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); filter: grayscale(1) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 560px; display: grid; place-items: center; padding: 40px 20px; color: #fff; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 120%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 9, .45); }
.cta-panel { position: relative; max-width: 720px; text-align: center; border-radius: 34px; padding: clamp(36px, 5vw, 64px); }
.cta-panel .h2 { margin: 18px 0 18px; }
.cta-panel p { color: rgba(255, 255, 255, .8); margin: 0 auto 32px; max-width: 480px; }
.cta-panel .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: 100px 0 36px; margin-top: var(--section); }
.footer.flush { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 72px; border-bottom: 1px solid var(--dark-line); }
.footer .brand-name { font-size: 30px; }
.footer p { color: var(--on-dark-muted); font-size: 15px; margin: 20px 0 0; max-width: 340px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #cdb27f; margin: 0 0 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a, .footer address { color: var(--on-dark-muted); font-size: 15px; font-style: normal; white-space: pre-line; transition: color .3s; }
.footer ul a:hover { color: #fff; }
.footer-big { font-family: var(--serif); font-size: clamp(64px, 14vw, 210px); line-height: .9; letter-spacing: -.04em; color: rgba(245, 243, 238, .08); padding: 48px 0 24px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark-muted); }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--dark-line); display: grid; place-items: center; transition: all .3s; }
.socials a:hover { background: var(--on-dark); color: var(--ink); }
.socials .ic { width: 17px; height: 17px; }

.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: transform .5s var(--ease); }
.fab:hover { transform: scale(1.08); }
.fab .ic { width: 24px; height: 24px; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal].in { opacity: 1; transform: none; }
.img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.img-reveal.in { clip-path: inset(0 0 0 0); }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .split .line > span { opacity: 1 !important; transform: none !important; }
  .img-reveal { clip-path: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-inner { padding-right: 8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-grid, .profile { grid-template-columns: 1fr; gap: 48px; }
  .profile-photo, .sticky-card { position: relative; top: 0; }
  .profile-photo { max-width: 480px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .split-grid, .contact-grid, .testimonial-grid, .post-feature { grid-template-columns: 1fr; gap: 48px; }
  .split-grid.reverse > :first-child { order: 0; }
  .areas { grid-template-columns: 1fr 1fr; }
  .posts, .values { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .testimonial-img { display: none; }
  .search { margin-left: 0; width: 100%; }
  .search input, .search input:focus { width: 100%; }
}
@media (max-width: 640px) {
  .nav { inset: 10px 0 auto; padding: 0 12px; }
  .nav-inner { height: 58px; padding-left: 14px; }
  .nav-cta { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 19px; }
  .brand-name { font-size: 19px; }
  .hero-inner { padding-top: 120px; }
  .hero .display { font-size: clamp(44px, 13vw, 64px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-card { display: none; }
  .scroll-cue { display: none; }
  .areas, .posts, .values, .team-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .member h3 { font-size: 20px; margin-top: 14px; }
  .member p { font-size: 13.5px; }
  .member .cred { display: none; }
  .area { min-height: 280px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 14px 0 0; }
  .stat + .stat { padding-left: 14px; }
  .stat p { font-size: 13.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .collage .badge { left: 12px; padding: 14px 16px; }
  .collage .badge strong { font-size: 32px; }
  .article-head { padding-top: 130px; }
  .prose { font-size: 17.5px; }
  .prose h2 { font-size: 30px; }
  .prose blockquote { font-size: 26px; }
  .cta { min-height: 520px; border-radius: 24px; }
  .marquee-track span { font-size: 19px; }
  .section-head { margin-bottom: 36px; }
  .quote-nav { margin-top: 28px; }
}

/* Long chambers names: never push the menu button off-screen */
.nav .brand-text, .nav .brand-name, .nav .brand-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle, .nav-cta { flex: none; }
@media (max-width: 640px) {
  .nav .brand-name { font-size: clamp(15px, 4.6vw, 19px); }
  .nav .brand-sub { font-size: 8.5px; letter-spacing: .2em; }
  .footer .brand-name { white-space: normal; }
  .footer-big { font-size: clamp(56px, 20vw, 120px); }
  .page-hero .h1, .article-head .h1 { overflow-wrap: anywhere; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: none; }
  .filters .search { flex: 0 0 220px; }
  .share { flex-wrap: wrap; }
  .share span { width: 100%; margin-bottom: 6px; }
  .profile { padding-top: 110px; gap: 32px; }
  .sticky-card { padding: 26px; }
  .contact-item { gap: 14px; }
}

/* Hamburger: two lines 6px apart that cross into an X when the menu is open */
.nav-toggle { flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 1100px) { .nav-toggle { display: flex; } }
.nav-toggle span { width: 20px; margin: 0; transform-origin: 50% 50%; }
.menu-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
