/* AAABM — Advocates & Legal Consultants
   Layout: dark chambers palette, centred 1280px column, editorial serif display over geometric sans,
   gold taken from the firm's logo used as the single accent. */
:root {
  --ink: #0B1118;
  --ink-2: #121A23;
  --ink-3: #18222D;
  --paper: #EEE9E0;
  --mist: #A9B0B8;
  --mist-2: #C4C9CF;
  --gold: #C9A45C;
  --gold-lt: #E0C27E;
  --gold-dk: #A8843A;
  --gold-grad: linear-gradient(100deg, #A8843A 0%, #D8B672 100%);
  --line: rgba(238, 233, 224, 0.13);
  --line-2: rgba(238, 233, 224, 0.28);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-lt); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }

.wrap {
  width: 100%; max-width: 1280px; margin-inline: auto;
  padding-left: max(48px, env(safe-area-inset-left, 0px));
  padding-right: max(48px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 130px; }
.section--tint { background: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; transform-origin: left; }
.h-xl { font-size: clamp(44px, 6.2vw, 80px); line-height: 1.04; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; }
.h-md { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.h-xl em, .h-lg em, .h-md em { font-style: italic; font-weight: 400; color: var(--gold); }
.lead { font-size: 16px; color: var(--mist-2); max-width: 58ch; }
.muted { color: var(--mist); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.head-row > div { display: flex; flex-direction: column; gap: 18px; }
.head-row p { max-width: 420px; color: var(--mist); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; font-family: var(--body); font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.04em; border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn--gold { background: var(--gold-grad); color: var(--ink); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--gold:hover { color: var(--ink); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--line { border-color: var(--line-2); color: var(--paper); }
.btn--line::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn--line:hover { color: var(--ink); border-color: var(--paper); }
.btn--line:hover::before { transform: scaleY(1); }
.btn--outline-gold { border-color: var(--gold); color: var(--gold); }
.btn--outline-gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.btn--outline-gold:hover { color: var(--ink); }
.btn--outline-gold:hover::before { transform: scaleX(1); }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-arrow { font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* Header */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: transform .5s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(11, 17, 24, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--paper); }
.brand img { height: 44px; width: auto; }
.brand__rule { width: 1px; height: 34px; background: var(--line-2); }
.brand__text { font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); line-height: 1.55; }
.nav { display: flex; gap: 30px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; }
.nav a { position: relative; color: var(--paper); padding-block: 6px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"], .nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 13px; font-weight: 600; color: var(--paper); }
.header-actions .btn { min-height: 46px; padding: 0 22px; font-size: 12.5px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); background: transparent; color: var(--paper);
  cursor: pointer; position: relative; z-index: 70;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  padding: calc(var(--header-h) + 40px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--display); font-size: 40px; line-height: 1.25; color: var(--paper);
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .31s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .37s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .43s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .49s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .55s; }
.mobile-menu nav a[aria-current="page"] { color: var(--gold); font-style: italic; }
.mobile-menu__meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mist); }

/* Loader + page transition */
.loader, .curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.loader { display: none; background: var(--ink); align-items: center; justify-content: center; flex-direction: column; gap: 22px; }
.is-loading .loader { display: flex; pointer-events: auto; }
.loader__mark { width: min(300px, 64vw); clip-path: inset(0 100% 0 0); }
.loader__bar { width: min(300px, 64vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }
.loader__names { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mist); opacity: 0; }
.curtain__layer { position: absolute; inset: 0; transform: translateY(100%); }
.curtain__gold { background: var(--gold-grad); }
.curtain__ink { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.curtain__ink img { width: min(220px, 50vw); opacity: 0.9; }
.is-entering .curtain__layer { transform: translateY(0); }

/* Hero */
.hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 96px; }
.hero__grid { display: flex; gap: 64px; align-items: center; }
.hero__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 1 1 460px; min-width: 0; position: relative; padding: 0 0 28px 28px; }
.hero__frame { position: absolute; left: 0; bottom: 0; width: calc(100% - 28px); height: calc(100% - 28px); border: 1px solid var(--gold); }
.hero__img { position: relative; overflow: hidden; height: 600px; }
.hero__img img { width: 100%; height: 115%; object-fit: cover; object-position: center 30%; }
.hero__badge {
  position: absolute; right: -16px; bottom: 64px; max-width: 290px; background: var(--ink-2); border: 1px solid var(--line);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
}
.hero__badge span { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.hero__badge strong { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.35; }

/* Split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }

/* Names marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 26px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--display); font-size: 30px; letter-spacing: 0.04em; color: var(--mist-2); white-space: nowrap; }
.marquee__group i { font-style: normal; color: var(--gold); font-size: 14px; }
.marquee__group em { font-style: italic; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { padding: 8px 40px; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar__num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--gold); }
.pillar h3 { font-size: 24px; }
.pillar p { color: var(--mist); }

/* Split layouts */
.split { display: flex; gap: 72px; align-items: center; }
.split > * { flex: 1 1 520px; min-width: 0; }
.split__copy { display: flex; flex-direction: column; gap: 24px; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.collage__col { display: flex; flex-direction: column; gap: 16px; padding-top: 64px; }
.img-box { overflow: hidden; background: var(--ink-3); }
.img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.img-box:hover img { transform: scale(1.04); }
.stat-tile { background: var(--gold-grad); color: var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile strong { font-family: var(--display); font-size: 48px; font-weight: 600; line-height: 1; }
.stat-tile span { font-size: 13px; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: 44px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--mist); }

/* Practice areas */
.practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 1px solid var(--line); }
.prow { position: relative; display: flex; gap: 24px; padding: 30px 48px 30px 0; border-bottom: 1px solid var(--line); }
.prow::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.prow:hover::after { transform: scaleX(1); }
.prow__num { flex: none; width: 36px; font-family: var(--display); font-size: 18px; color: var(--gold); padding-top: 2px; transition: transform .5s var(--ease); }
.prow:hover .prow__num { transform: translateX(6px); }
.prow h3 { font-size: 22px; line-height: 1.3; transition: color .4s var(--ease); }
.prow:hover h3 { color: var(--gold-lt); }
.prow p { color: var(--mist); font-size: 14px; margin-top: 8px; }
.prow__arrow { position: absolute; right: 8px; top: 32px; color: var(--gold); opacity: 0; transform: translate(-10px, 10px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.prow:hover .prow__arrow { opacity: 1; transform: none; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; border: 1px solid var(--line); background: var(--ink); padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-grad); transform: scaleX(var(--line-x, 1)); transform-origin: left; }
.step__num { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--gold); }
.step h3 { font-size: 24px; }
.step p { color: var(--mist); }
.center-head { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; margin-bottom: 56px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.member { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.member__photo { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--ink-3); position: relative; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top;  }
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.04); }
.member__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.member:hover .member__photo::after { transform: scaleX(1); }
.member h3 { font-size: 20px; line-height: 1.3; }
.member span { font-size: 12px; color: var(--mist); }

.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.profile { display: flex; border: 1px solid var(--line); background: var(--ink-2); min-width: 0; transition: border-color .5s var(--ease), transform .6s var(--ease); }
.profile:hover { border-color: rgba(201, 164, 92, 0.55); transform: translateY(-4px); }
.profile__photo { flex: 0 0 220px; min-height: 300px; overflow: hidden; background: var(--ink-3); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; , transform 1s var(--ease); }
.profile:hover .profile__photo img { ; transform: scale(1.04); }
.profile__body { flex: 1 1 auto; min-width: 0; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.profile__role { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.profile h3 { font-size: 23px; line-height: 1.25; }
.profile p { color: var(--mist); font-size: 13.5px; line-height: 1.75; }
.profile ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.profile li { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.profile li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--gold); }
.placeholder { color: var(--gold); font-style: italic; }

/* Gallery teaser */
.gal-teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 16px; }
.gal-teaser .img-box:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal-teaser .img-box:nth-child(3) { grid-row: span 2; }
.rule-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.rule-head h2 { font-size: 36px; }
.rule-head .rule { flex: 1 1 60px; height: 1px; background: var(--line); }

/* Gallery page */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry button {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--ink-3); overflow: hidden;
  cursor: zoom-in; break-inside: avoid; position: relative;
}
.masonry img { width: 100%; height: auto; filter: saturate(0.85); transition: transform 1s var(--ease), filter .6s var(--ease); }
.masonry button:hover img { transform: scale(1.04); filter: saturate(1); }
.masonry button::after {
  content: "View"; position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; background: var(--ink); color: var(--gold);
  font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.masonry button:hover::after, .masonry button:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 12, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.lightbox__stage { display: flex; align-items: center; gap: 20px; max-width: 100%; }
.lightbox__img { max-width: calc(100vw - 200px); max-height: calc(100vh - 150px); width: auto; height: auto; border: 1px solid rgba(201,164,92,0.35); transform: scale(0.96); opacity: 0; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.lightbox.is-open .lightbox__img.is-ready { transform: none; opacity: 1; }
.icon-btn { flex: none; width: 52px; height: 52px; border: 1px solid var(--gold); background: transparent; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.icon-btn:hover { background: var(--gold); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.lightbox__close { position: absolute; top: max(20px, env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); border-color: var(--line-2); color: var(--paper); }
.lightbox__count { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--mist); font-variant-numeric: tabular-nums; }
.lightbox__cap { font-size: 13px; color: var(--mist-2); text-align: center; max-width: 60ch; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + 110px); padding-bottom: 110px; border-bottom: 1px solid var(--line); }
.page-hero__bg { position: absolute; inset: -10% 0 0 0; }
.page-hero__bg img { width: 100%; height: 120%; object-fit: cover; object-position: center 30%; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 17, 24, 0.84); }
.page-hero .wrap { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.crumbs { display: flex; gap: 10px; font-size: 12px; font-weight: 500; color: var(--mist); }
.crumbs a { color: var(--mist); }
.crumbs [aria-current] { color: var(--gold); }
.page-hero p { max-width: 380px; color: var(--mist-2); }

.logo-panel { display: flex; justify-content: center; align-items: center; padding: 56px; border: 1px solid var(--line); background: var(--ink); }
.logo-panel img { width: 100%; max-width: 440px; }
.values { border-top: 1px solid var(--line); }
.value { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.value__num { flex: none; width: 40px; font-family: var(--display); font-size: 26px; line-height: 1.2; color: var(--gold); }
.value h3 { font-size: 22px; }
.value p { color: var(--mist); font-size: 14px; margin-top: 6px; }

/* Contact */
.contact { border-top: 1px solid rgba(201, 164, 92, 0.4); }
.contact__grid { display: flex; gap: 72px; align-items: flex-start; }
.contact__info { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.details { border-top: 1px solid var(--line); }
.detail { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail__label { flex: 0 0 110px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); padding-top: 4px; }
.detail__value { font-size: 16px; color: var(--paper); min-width: 0; overflow-wrap: anywhere; }
.detail__value a { color: var(--paper); }
.detail__value a:hover { color: var(--gold); }
.form { flex: 1 1 520px; min-width: 0; background: var(--ink); border: 1px solid var(--line); padding: 44px; display: flex; flex-direction: column; gap: 22px; position: relative; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { position: relative; display: flex; flex-direction: column; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--paper); font-family: var(--body); font-size: 15px; padding: 20px 2px 6px; border-radius: 0; outline: none;
  transition: border-color .4s var(--ease);
}
.field select { background: var(--ink); padding-top: 22px; }
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 2px; top: 18px; font-size: 13px; color: var(--mist); pointer-events: none; transition: top .35s var(--ease), font-size .35s var(--ease), color .35s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 0; font-size: 11px; color: var(--gold); letter-spacing: 0.06em; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #E08A7E; }
.field__err { font-size: 12px; color: #E8A398; margin-top: 6px; }
.form__note { font-size: 12px; color: var(--mist); }
.form__done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form__done h3 { font-size: 30px; }
.form__done p { color: var(--mist-2); }
.check { width: 56px; height: 56px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.check svg { width: 26px; height: 26px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.cta-band { border-top: 1px solid rgba(201, 164, 92, 0.4); padding-block: 100px; background: var(--ink-2); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band__copy { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.cta-band__copy p { color: var(--mist); }
.cta-band__copy .nums { color: var(--paper); font-weight: 600; }

/* Footer */
.footer { padding-block: 64px 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 44px; }
.footer__top img { width: 240px; height: auto; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; font-weight: 500; }
.footer nav a { color: var(--paper); }
.footer nav a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mist); }

/* Back to top */
.to-top {
  position: fixed; right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); z-index: 40;
  width: 54px; height: 54px; border: 0; background: var(--ink-2); color: var(--gold); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke-width: 1.5; }
.to-top .ring__bg { stroke: var(--line-2); }
.to-top .ring__fg { stroke: var(--gold); stroke-dasharray: 157; stroke-dashoffset: 157; }
.to-top .arrow { width: 18px; height: 18px; }

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

/* Responsive */
@media (max-width: 1100px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-block; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .section { padding-block: 80px; }
  .brand__rule, .brand__text { display: none; }
  .brand img { height: 36px; }
  .header-actions .btn { display: none; }
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 64px; }
  .hero__grid, .split, .contact__grid, .head-row, .cta-band .wrap, .page-hero .wrap { flex-direction: column; align-items: stretch; }
  .hero__grid > *, .split > *, .contact__grid > * { flex-basis: auto; }
  .hero__img { height: 440px; }
  .hero__badge { right: 12px; bottom: 44px; max-width: 240px; }
  .pillars, .steps, .practice, .profiles, .form__row { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; padding-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat:first-child { padding: 28px 16px; border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat strong { font-size: 44px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .collage__col { padding-top: 40px; }
  .gal-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .profile { flex-direction: column; }
  .profile__photo { flex-basis: auto; height: 320px; min-height: 0; }
  .form { padding: 28px 20px; }
  .marquee__group { font-size: 22px; gap: 28px; padding-right: 28px; }
  .lightbox__img { max-width: calc(100vw - 32px); max-height: calc(100vh - 220px); }
  .lightbox__stage { flex-direction: column; }
  .lightbox__nav { display: flex; gap: 14px; }
  .page-hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 64px; }
  .logo-panel { padding: 32px; }
  .to-top { width: 48px; height: 48px; }
}
@media (min-width: 901px) {
  .lightbox__nav { display: contents; }
}
@media (max-width: 480px) {
  .collage { grid-template-columns: minmax(0, 1fr); }
  .collage__col { padding-top: 0; }
  .hero__img { height: 380px; }
  .detail { flex-direction: column; gap: 4px; }
  .detail__label { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; }
}

/* Additions */
.member { color: var(--paper); }
.member:hover { color: var(--paper); }
.member:hover h3 { color: var(--gold-lt); }
.member h3 { transition: color .4s var(--ease); }
@media (min-width: 901px) {
  .lightbox__prev { order: 0; }
  .lightbox__img { order: 1; }
  .lightbox__next { order: 2; }
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 16px; color: var(--ink); }
[hidden] { display: none !important; }
.nav a, .header-phone, .btn { white-space: nowrap; }
.curtain { visibility: hidden; }
.is-entering .curtain, .curtain.is-active { visibility: visible; }
@media (max-width: 1360px) { .header-phone { display: none; } .nav { gap: 26px; } }
.btn--line, .btn--outline-gold { background: transparent; }

/*.wrap{*/
/*    padding-bottom: 77px;*/
/*}*/

/* Chambers Gallery */
.chambers-gallery {
  display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    grid-template-rows: repeat(2, 204px);
    gap: 14px;
    width: 100%;
    margin-top: 28px;
    margin-block: 43px;
}

/* Gallery Items */
.chambers-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #15191c;
    border-radius: 0;
}

/* Image Settings */
.chambers-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* Individual Layout */
.chambers-meeting {
    grid-column: 1;
    grid-row: 1 / 3;
}

.chambers-talk {
    grid-column: 2;
    grid-row: 1;
}

.chambers-banyan {
    grid-column: 3;
    grid-row: 1 / 3;
}

.chambers-lawn {
    grid-column: 2;
    grid-row: 2;
}

/* Image Position Adjustments */
.chambers-meeting img {
    object-position: center center;
}

.chambers-talk img {
    object-position: center 25%;
}

.chambers-banyan img {
    object-position: center center;
}

.chambers-lawn img {
    object-position: center center;
}

/* Hover Effect */
.chambers-item:hover img {
    transform: scale(1.045);
}

/* Tablet */
@media (max-width: 900px) {
    .chambers-gallery {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 260px 200px 200px;
        gap: 12px;
    }

    .chambers-meeting {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .chambers-talk {
        grid-column: 2;
        grid-row: 1;
    }

    .chambers-banyan {
        grid-column: 2;
        grid-row: 2;
    }

    .chambers-lawn {
        grid-column: 1 / 3;
        grid-row: 3;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .chambers-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 230px 160px 160px;
        gap: 9px;
        margin-top: 20px;
    }

    .chambers-meeting {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .chambers-talk {
        grid-column: 1;
        grid-row: 2;
    }

    .chambers-banyan {
        grid-column: 2;
        grid-row: 2;
    }

    .chambers-lawn {
        grid-column: 1 / 3;
        grid-row: 3;
    }
}
