/* ==========================================================================
   Chambers Inn — main stylesheet
   Brand colours carried over from the previous site.
   ========================================================================== */

:root {
	--ink: #040335;
	--navy: #002A42;
	--navy-2: #004167;
	--blue: #0D567D;
	--indigo: #25209B;
	--accent: #4139FC;
	--mist: #F1F5F9;
	--text: #222222;
	--muted: #54595F;
	--line: #E2E8F0;
	--white: #FFFFFF;

	--serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(0, 42, 66, .04), 0 12px 32px -12px rgba(0, 42, 66, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 84px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1400px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--blue); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--light { color: #9FC3DA; }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; }
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .arrow { transform: translateX(4px); }

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

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 42, 66, .5); }
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 13px; transition: margin-top .3s var(--ease); }
.topbar__inner { display: flex; gap: 24px; align-items: center; min-height: 38px; }
.topbar__hours { margin-right: auto; }
.topbar__links { display: flex; gap: 20px; }
.topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.site-header.is-scrolled .topbar { margin-top: -38px; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand__name { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; line-height: 1; }
.brand__name em { font-style: italic; font-weight: 500; color: var(--blue); }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s; }
.menu a:hover { background: var(--mist); color: var(--navy); }
.menu a[aria-current] { background: var(--mist); color: var(--accent); }
.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1000px 600px at 85% 10%, rgba(65, 57, 252, .28), transparent 60%),
		radial-gradient(800px 500px at 0% 100%, rgba(13, 86, 125, .55), transparent 60%),
		linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
	padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 128px);
}
.hero::after { /* fine grid texture */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__title { font-size: clamp(2.9rem, 6.4vw, 5.6rem); font-weight: 600; color: #fff; line-height: 1; margin-bottom: 28px; letter-spacing: -.02em; }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 34em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: clamp(24px, 4vw, 56px); margin: 56px 0 0; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__stats dt { font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: .04em; order: 2; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats dd { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.1; color: #fff; }
.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: 240px 240px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 42, 66, .45), transparent 50%); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__badge {
	position: absolute; left: -28px; bottom: 40px; z-index: 2;
	display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px;
	background: #fff; color: var(--text); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; max-width: 250px;
}
.hero__badge img { width: 40px; height: 40px; flex: none; }
.hero__badge strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--navy); }

/* ---------- Clients marquee ---------- */

.clients { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.clients__label { text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.client { flex: none; height: 64px; display: flex; align-items: center; }
.client img { height: 100%; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.client:hover img { filter: none; opacity: 1; }
.client__name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: linear-gradient(170deg, var(--navy), var(--ink)); color: rgba(255, 255, 255, .8); }
.section--navy .section__title { color: #fff; }
.section--dash { background: var(--mist); padding-top: 40px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 0; }
.section__title--sm { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section__intro { max-width: 30em; color: var(--muted); margin: 0; }
.section__foot { margin-top: 48px; text-align: center; }

/* Legacy */
.legacy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.legacy__media { position: relative; }
.legacy__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.legacy__year { position: absolute; right: -20px; top: -20px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); }
.legacy__year span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.legacy__year strong { font-family: var(--serif); font-size: 40px; line-height: 1; }
.legacy__copy .section__title { margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234139FC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Practice cards */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.practice-card {
	position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
	overflow: hidden;
}
.practice-card::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.practice-card:hover::before { transform: scaleX(1); }
.practice-card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--navy); margin-bottom: 24px; transition: background-color .35s, color .35s; }
.practice-card__icon svg { width: 28px; height: 28px; }
.practice-card:hover .practice-card__icon { background: var(--navy); color: #fff; }
.practice-card__title { font-size: 1.55rem; margin-bottom: 10px; }
.practice-card__text { font-size: 15px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.practice-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.practice-card:hover .practice-card__more { color: var(--accent); }

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 36px 32px 8px 0; }
.why__item + .why__item { padding-left: 32px; border-left: 1px solid var(--line); }
.why__num { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.why__item h3 { font-size: 1.7rem; }
.why__item p { color: var(--muted); font-size: 15.5px; }

/* Lawyer cards */
.lawyer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.lawyer-grid--page { gap: 32px; }
.lawyer-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.lawyer-card__photo { display: block; position: relative; aspect-ratio: 1 / 1.1; overflow: hidden; background: linear-gradient(160deg, var(--blue), var(--navy)); }
.lawyer-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.lawyer-card:hover .lawyer-card__photo img { transform: scale(1.04); }
.lawyer-card__initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 84px; font-weight: 600; color: rgba(255, 255, 255, .9); letter-spacing: .02em; }
.lawyer-card__initials::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; }
.lawyer-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.lawyer-card__role { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.lawyer-card__name { font-size: 1.65rem; margin-bottom: 14px; }
.lawyer-card__name a { color: var(--navy); text-decoration: none; }
.lawyer-card__name a:hover { color: var(--accent); }
.lawyer-card__contact { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14.5px; flex: 1; }
.lawyer-card__contact a { color: var(--muted); text-decoration: none; }
.lawyer-card__contact a:hover { color: var(--accent); }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(160deg, var(--mist), #E3EAF2); }
.post-card__placeholder img { width: 64px; height: 64px; opacity: .35; mix-blend-mode: multiply; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--blue); font-weight: 600; font-size: 12px; }
.post-card__title { font-size: 1.55rem; margin-bottom: 10px; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { font-size: 15px; color: var(--muted); flex: 1; }
.post-card__author { font-size: 13px; font-weight: 600; color: var(--navy); margin: 0; }

/* CTA */
.cta { padding: 0 0 clamp(64px, 9vw, 120px); }
.section--mist + .cta, .section--navy + .cta { padding-top: clamp(64px, 9vw, 120px); }
.cta__inner {
	display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
	padding: clamp(40px, 6vw, 72px); border-radius: calc(var(--radius) + 8px); color: rgba(255, 255, 255, .8);
	background: radial-gradient(600px 300px at 100% 0%, rgba(65, 57, 252, .45), transparent 70%), linear-gradient(135deg, var(--navy-2), var(--navy) 50%, var(--ink));
}
.cta__title { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 10px; }
.cta__text { margin: 0; max-width: 32em; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Inner page hero ---------- */

.page-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy), var(--ink)); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 42, 66, .96) 25%, rgba(0, 42, 66, .55)); }
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 18px; max-width: 14em; }
.page-hero__text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 38em; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; margin-bottom: 28px; color: rgba(255, 255, 255, .5); }
.crumbs a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs--dark, .crumbs--dark span { color: var(--muted); }
.crumbs--dark a { color: var(--muted); }
.crumbs--dark a:hover { color: var(--accent); }

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

.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: #fff; padding: 24px; display: flex; flex-direction: column; }
.facts dt { font-size: 13px; color: var(--muted); order: 2; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.founder { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; }
.founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.founder small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9FC3DA; }
.founder strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.founder:hover { color: #fff; background: var(--navy-2); }

/* ---------- Prose (editor content) ---------- */

.prose { font-size: 17.5px; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.6rem; margin: 1.4em 0 .4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .5em; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--navy); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose a:not(.btn) { color: var(--accent); }

/* ---------- Lawyer profile ---------- */

.profile { background: linear-gradient(160deg, var(--navy), var(--ink)); color: #fff; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.profile__grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.profile__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(160deg, var(--blue), var(--navy-2)); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile__intro { padding-bottom: clamp(40px, 6vw, 72px); }
.profile__name { color: #fff; font-size: clamp(2.6rem, 5.5vw, 4.6rem); margin-bottom: 20px; }
.profile__contact { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.profile__contact a { color: rgba(255, 255, 255, .85); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.profile__contact a:hover { color: #fff; border-color: #fff; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; }
.chips a:hover { background: #fff; color: var(--navy); }
.profile__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); }
.profile__cols { display: grid; gap: 20px; align-content: start; }
.profile__block { padding: 28px; border-radius: var(--radius); background: var(--mist); }
.profile__block h2 { font-size: 1.6rem; margin-bottom: 14px; }
.profile__block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.profile__block li { position: relative; padding-left: 22px; font-size: 15.5px; }
.profile__block li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }

/* ---------- Practice single ---------- */

.practice__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.practice__icon { margin-bottom: 28px; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--navy); color: #fff; }
.practice__icon svg { width: 34px; height: 34px; }
.practice__content .btn { margin-top: 1em; }
.practice__aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.side-card__title { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.mini-lawyer { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; color: var(--text); }
.mini-lawyer + .mini-lawyer { border-top: 1px solid var(--line); }
.mini-lawyer img, .mini-lawyer__initials { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.mini-lawyer__initials { display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.mini-lawyer strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.mini-lawyer small { color: var(--muted); font-size: 13px; }
.mini-lawyer:hover strong { color: var(--accent); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 15px; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--accent); padding-left: 4px; transition: padding .2s; }

/* ---------- Article ---------- */

.article__head { padding: clamp(48px, 7vw, 88px) 0 40px; background: var(--mist); }
.article__title { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 28px; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.byline__img--initials { display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.byline strong { display: block; color: var(--navy); }
.byline a { text-decoration: none; }
.byline small { color: var(--muted); font-size: 14px; }
.article__cover { margin-top: -1px; padding-top: 0; }
.article__cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; margin-top: 40px; }
.article__body { padding-top: 48px; padding-bottom: 48px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__tags a { padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--blue); text-decoration: none; font-size: 13px; }
.author-box { display: flex; gap: 24px; align-items: flex-start; padding: 32px; border-radius: var(--radius); background: var(--mist); margin-bottom: clamp(64px, 9vw, 112px); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.author-box h2 { font-size: 1.8rem; margin-bottom: 8px; }
.author-box p { color: var(--muted); font-size: 15.5px; }
.author-box .eyebrow { margin-bottom: 6px; }

/* Blog listing */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500; }
.filter a:hover { border-color: var(--navy); }
.filter a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; padding: 48px 0; }
.notfound { text-align: center; }
.notfound .eyebrow::before { display: none; }
.notfound .hero__actions { justify-content: center; margin-top: 32px; }

/* ---------- Contact ---------- */

.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card--wide { grid-column: span 2; }
.info-card { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius); background: var(--mist); font-size: 15.5px; }
.info-card__title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.info-card a { color: var(--navy); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--accent); }
.info-card .link-arrow { margin-top: 10px; font-size: 14px; }
.contact__form { padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }

.ci-form { display: grid; gap: 18px; margin-top: 24px; }
.ci-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ci-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.ci-form input, .ci-form select, .ci-form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--mist); font-weight: 400; color: var(--text); transition: border-color .2s, background-color .2s; }
.ci-form input:focus, .ci-form select:focus, .ci-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(65, 57, 252, .15); }
.ci-form textarea { resize: vertical; min-height: 140px; }
.ci-form .btn { justify-self: start; }
.ci-opt { font-weight: 400; color: var(--muted); }
.ci-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ci-notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--mist); margin: 0 0 16px; font-size: 15px; }
.ci-notice--ok { background: #E7F6EC; color: #1B6E3A; }
.ci-notice--err { background: #FDECEC; color: #B42318; }

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

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 15px; padding-top: clamp(56px, 8vw, 96px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr .8fr; gap: 40px; padding-bottom: 56px; }
.footer__brand img { width: 240px; height: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer__brand p { max-width: 26em; }
.footer__title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__title--sub { margin-top: 28px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__map { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: #fff !important; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__list span { display: inline-block; width: 20px; color: rgba(255, 255, 255, .4); font-size: 13px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 1180px) {
	.practice-grid { grid-template-columns: repeat(3, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.menu a { padding: 8px 10px; }
	.nav__menu { gap: 16px; }
}

@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.topbar__hours { display: none; }
	.topbar__inner > .topbar__item:first-child { margin-right: auto; }
	.nav__toggle { display: inline-flex; }
	.nav__menu {
		position: fixed; inset: var(--menu-top, 110px) 0 0; z-index: 40;
		flex-direction: column; align-items: stretch; gap: 24px; padding: 24px var(--gutter) 40px;
		background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
	.menu { flex-direction: column; gap: 0; }
	.menu a { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; font-weight: 600; }
	.menu a:hover, .menu a[aria-current] { background: none; }
	.nav__cta { width: 100%; }
	body.menu-open { overflow: hidden; }
	/* backdrop-filter would make the header the containing block of the fixed menu */
	body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

	.hero__grid, .legacy__grid, .about__grid, .profile__body, .practice__grid, .contact__grid { grid-template-columns: 1fr; }
	.practice-grid { grid-template-columns: 1fr 1fr; }
	.hero__media { max-width: 460px; }
	.hero__badge { left: 16px; }
	.about__aside, .practice__aside { position: static; }
	.why__grid { grid-template-columns: 1fr 1fr; }
	.why__item:nth-child(3) { padding-left: 0; border-left: 0; }
	.post-grid { grid-template-columns: 1fr 1fr; }
	.profile__grid { grid-template-columns: 280px 1fr; }
	.legacy__year { right: 16px; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.topbar__inner > .topbar__item:first-child { display: none; }
	.topbar__links { width: 100%; justify-content: space-between; }
	.brand__name { font-size: 24px; }
	.brand img { width: 38px; height: 38px; }
	.practice-grid, .post-grid, .why__grid { grid-template-columns: 1fr; }
	.practice-grid { gap: 14px; }
	.why__item, .why__item + .why__item { padding: 28px 0 4px; border-left: 0; }
	.why__item + .why__item { border-top: 1px solid var(--line); }
	.hero__stats { gap: 20px; justify-content: space-between; }
	.hero__badge { left: 12px; bottom: 20px; }
	.profile__grid { grid-template-columns: 1fr; }
	.profile__photo { width: 140px; border-radius: 16px; }
	.profile__photo .lawyer-card__initials { font-size: 44px; }
	.profile__photo .lawyer-card__initials::after { inset: 10px; }
	.profile__intro { padding-bottom: 48px; }
	.contact__info, .ci-form__row { grid-template-columns: 1fr; }
	.info-card--wide { grid-column: auto; }
	.footer__grid { grid-template-columns: 1fr; }
	.author-box { flex-direction: column; }
	.cta__actions { width: 100%; }
	.cta__actions .btn { flex: 1 1 100%; }
	.legacy__year { width: 108px; height: 108px; top: -16px; }
	.legacy__year strong { font-size: 30px; }
	.section__head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
	.client[aria-hidden] { display: none; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.site-header, .site-footer, .cta, .hero__actions { display: none; }
	body { font-size: 12pt; }
}
