/* Singh & Mukherjee Chambers — rebuilt from the Lovable design system */
:root {
  --bg: #f8f6f1;          /* hsl(40 33% 96%) */
  --card: #f0ece4;        /* hsl(40 28% 92%) */
  --fg: #242424;          /* hsl(0 0% 14%) */
  --primary: #262626;     /* hsl(0 0% 15%) */
  --on-primary: #f8f6f1;
  --muted: #616161;       /* hsl(0 0% 38%) */
  --accent: #7c2731;      /* hsl(355 52% 32%) */
  --border: #d6d2c9;      /* hsl(40 15% 82%) */
  --radius: .25rem;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --edge: 1cm;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--on-primary); }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.h2 { font-size: clamp(1.875rem, 3vw + 1rem, 2.25rem); color: var(--fg); margin: .75rem 0; }
.eyebrow { display: inline-block; color: var(--accent); text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; font-weight: 600; }
.eyebrow-sm { color: var(--accent); text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; margin-top: .25rem; }
.label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 400; margin-bottom: .5rem; }
.serif-lg { font-family: var(--serif); font-size: 1.125rem; color: var(--fg); line-height: 1.4; }
.serif-xl { font-family: var(--serif); font-size: 1.25rem; color: var(--fg); line-height: 1.35; }
.serif-2xl { font-family: var(--serif); font-size: 1.5rem; color: var(--fg); font-weight: 500; }
.caps { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; }
.caps a { text-decoration: none; }
.caps a:hover { color: var(--on-primary); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; }
.meta { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; } .mt-lg { margin-top: 2.5rem; } .mb { margin-bottom: 1.5rem; } .mb-lg { margin-bottom: 2.5rem; }
.self-center { align-self: center; }

.link-underline { display: inline-block; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--accent); padding-bottom: .25rem; text-decoration: none; transition: opacity .2s; }
.link-underline:hover { opacity: .7; }
.link-underline--accent { color: var(--accent); font-size: .75rem; letter-spacing: .2em; font-weight: 600; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: 56rem; }
.wrap--article { max-width: 46rem; }
@media (min-width: 768px) { .wrap { padding: 0 3rem; } }
.grid-2, .grid-3 { display: grid; gap: 0 3rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.gap-lg { gap: 2.5rem; } .gap-xl { gap: 4rem; }
.bg-base { background: var(--bg); } .bg-card { background: var(--card); }

.snap { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.snap::-webkit-scrollbar { display: none; }
.section { min-height: 100vh; scroll-snap-align: start; display: flex; align-items: center; padding: 11rem 0 6rem; }
#contact.section { padding: 9rem 0 3rem; }
.footer { scroll-snap-align: start; }

/* bordered rows */
.rows { border-top: 1px solid var(--border); }
.row { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.row h4 a, .row h3 a { text-decoration: none; transition: color .2s; }
.row h4 a:hover, .row h3 a:hover { color: var(--accent); }
.row--btn { display: block; width: 100%; text-align: left; }
.row--btn:hover .serif-xl { color: var(--accent); }
.serif-xl { transition: color .2s; }

/* ---------- fixed chrome ---------- */
.brand { position: fixed; top: var(--edge); left: var(--edge); z-index: 40; color: var(--fg); transition: color .5s; }
.brand__logo { display: block; height: 3.5rem; width: auto; transition: height .5s; }
@media (min-width: 768px) { .brand__logo { height: 4rem; } }
.brand--hero.is-top .brand__logo { height: 6rem; }
@media (min-width: 768px) { .brand--hero.is-top .brand__logo { height: 8rem; } }
.tone-dark .brand, .tone-dark .menu__btn { color: var(--on-primary); }

.menu { position: fixed; top: var(--edge); right: var(--edge); z-index: 50; }
.menu__btn { width: 2rem; height: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: .25rem; color: var(--fg); transition: color .3s; }
.menu__btn span { display: block; height: 1px; width: 1.5rem; background: currentColor; }
.menu__nav { position: absolute; right: 0; top: 100%; padding: .75rem 0; min-width: 220px; opacity: 0; transform: translateY(-.5rem); pointer-events: none; transition: opacity .3s, transform .3s; }
.menu.is-open .menu__nav { opacity: 1; transform: none; pointer-events: auto; }
.menu__nav a { display: block; text-align: right; padding: .225rem .5rem; color: var(--accent); text-decoration: none; text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; font-weight: 600; transition: opacity .2s; }
.menu__nav a:hover { opacity: .7; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; scroll-snap-align: start; display: flex; align-items: center; background: var(--primary); color: var(--on-primary); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,38,38,.55), rgba(38,38,38,.15) 40%, rgba(38,38,38,.7)); }
.hero__inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; padding: 10rem 1.5rem 4rem; text-align: center; }
@media (min-width: 768px) { .hero__inner { padding-top: 12rem; } }
.hero__title { font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem); margin-bottom: 1rem; }
.hero__kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; color: rgba(248,246,241,.6); margin-bottom: 2rem; }
.hero__kicker span { display: block; margin-top: .5rem; font-weight: 700; color: rgba(248,246,241,.8); }
.hero__lede { color: rgba(248,246,241,.75); font-size: clamp(1.125rem, 1vw + .9rem, 1.25rem); max-width: 36rem; margin: 0 auto 2.5rem; }
.hero .link-underline:hover { opacity: 1; color: rgba(248,246,241,.7); }

/* ---------- about ---------- */
.about { max-width: 48rem; margin: 0 auto; }
.about__text { color: var(--muted); text-align: center; }
.about__text > * + * { margin-top: 1.25rem; }
.about__text > p { text-align: justify; text-align-last: center; }
.values { display: grid; gap: 1rem 2rem; padding-top: 1rem; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
.value { border-top: 1px solid var(--border); padding-top: .75rem; }
.about__photo img, .careers__photo img, .team-photo img { width: 100%; height: auto; border: 1px solid var(--border); }
.about__photo { margin-top: 2.5rem; }
.about__photo img { aspect-ratio: 16/9; object-fit: cover; object-position: center 35%; }
figcaption { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-top: .75rem; text-align: center; }

/* ---------- practice / people ---------- */
.forums { margin-top: 3rem; text-align: center; }
.forums .serif-lg { max-width: 48rem; margin: 0 auto; }
.team-photo { margin-bottom: 2.5rem; }
.team-photo img { aspect-ratio: 21/9; object-fit: cover; object-position: center 30%; }
.person { display: flex; align-items: center; gap: 1rem; }
.person__id { flex: 1; }
.person__thumb { width: 3.5rem; height: 3.5rem; object-fit: cover; object-position: center 15%; border-radius: 50%; filter: grayscale(.2); }
.readmore { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; transition: color .2s; align-self: baseline; }
.readmore:hover { color: var(--accent); }
.careers__photo { margin-top: 2rem; }
.careers__photo img { aspect-ratio: 16/9; object-fit: cover; }
.prose-muted { color: var(--muted); }
.prose-muted p { margin-bottom: 1rem; }
.prose-muted strong { color: var(--fg); }
.prose-muted a { color: var(--accent); }

/* ---------- contact ---------- */
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__details { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .contact__details { grid-template-columns: repeat(3, 1fr); } .detail--full { grid-column: span 3; } .detail--wide { grid-column: span 2; } }
.detail { display: flex; gap: .75rem; font-size: .875rem; }
.detail a { text-decoration: none; transition: color .2s; }
.detail a:hover { color: var(--accent); }
.detail svg { width: 1rem; height: 1rem; margin-top: .25rem; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail .label { margin-bottom: .25rem; }
.map { position: relative; height: 260px; border: 1px solid var(--border); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form { background: var(--bg); border: 1px solid var(--border); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.form label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.form input:not([type=checkbox]), .form textarea { display: block; width: 100%; margin-top: .25rem; font: inherit; font-size: .875rem; color: var(--fg); text-transform: none; letter-spacing: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: .5rem .75rem; min-height: 2.5rem; }
.form textarea { resize: vertical; min-height: 5rem; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .ack { display: flex; gap: .75rem; align-items: flex-start; text-transform: none; letter-spacing: 0; line-height: 1.6; cursor: pointer; }
.form .ack input { margin-top: .2rem; accent-color: var(--accent); width: 1rem; height: 1rem; flex-shrink: 0; }
.form__status { font-size: .875rem; min-height: 1.25rem; }
.form__status.is-error { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; padding: 0 2rem; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 600; transition: background .2s, opacity .2s; }
.btn--primary { background: var(--primary); color: var(--on-primary); border-radius: 6px; letter-spacing: .05em; font-size: .875rem; font-weight: 500; }
.btn--primary:hover { background: #3a3a3a; }
.btn--primary[disabled] { opacity: .6; cursor: wait; }
.btn--accent { background: var(--accent); color: var(--on-primary); }
.btn--accent:hover { background: #8d3440; }
.btn--outline { border: 1px solid var(--border); background: var(--bg); }
.btn--outline:hover { background: var(--accent); color: var(--on-primary); }
.btn--block { width: 100%; }

/* ---------- footer ---------- */
.footer { background: var(--primary); color: rgba(248,246,241,.7); font-size: .875rem; }
.footer__inner { padding-top: 3rem; padding-bottom: 3rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; letter-spacing: .025em; }
.footer__logo { display: block; height: 4rem; width: auto; color: var(--on-primary); margin-bottom: .75rem; }
@media (min-width: 768px) { .footer__logo { height: 5rem; } }
.footer__name { font-size: clamp(1.5rem, 2vw + 1rem, 1.875rem); color: var(--on-primary); margin-bottom: .25rem; }
.footer__note { font-size: .75rem; color: rgba(248,246,241,.5); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(248,246,241,.1); max-width: 48rem; line-height: 1.6; }
.footer__copy { font-size: .75rem; color: rgba(248,246,241,.4); margin-top: .75rem; }

/* ---------- disclaimer ---------- */
.disclaimer { position: fixed; inset: 0; z-index: 100; background: rgba(38,38,38,.9); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.disclaimer[hidden] { display: none; }
.disclaimer__box { background: var(--bg); max-width: 42rem; width: 100%; max-height: 90vh; overflow-y: auto; border-radius: 2px; padding: 2rem; border-top: 2px solid var(--accent); text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
@media (min-width: 768px) { .disclaimer__box { padding: 3rem; } }
.disclaimer__logo { display: block; height: 3.5rem; width: auto; margin: 0 auto 1.5rem; color: var(--fg); }
@media (min-width: 768px) { .disclaimer__logo { height: 4rem; } }
.disclaimer__title { font-size: clamp(1.875rem, 3vw + 1rem, 2.25rem); margin: .5rem 0 1rem; }
.rule { width: 3rem; height: 1px; background: var(--accent); margin: 0 auto 1.5rem; }
.disclaimer__text { font-size: .9375rem; color: var(--muted); text-align: justify; text-align-last: center; }
.disclaimer__text p + p { margin-top: 1rem; }
.disclaimer__text strong { color: var(--fg); }
.disclaimer__actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
body.no-scroll { overflow: hidden; }

/* ---------- modals ---------- */
.modal { width: min(42rem, calc(100vw - 2rem)); max-height: 85vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--fg); padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.modal--wide { width: min(48rem, calc(100vw - 2rem)); }
.modal::backdrop { background: rgba(0,0,0,.8); }
.modal[open] { animation: pop .2s ease-out; display: flex; flex-direction: column; gap: 1rem; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.modal__close { position: absolute; top: .75rem; right: 1rem; font-size: 1.5rem; line-height: 1; opacity: .7; }
.modal__close:hover { opacity: 1; }
.modal__title { font-size: 1.875rem; padding-right: 2rem; }
.modal__head { display: flex; gap: 1.25rem; align-items: center; }
.modal__photo { width: 6rem; height: 6rem; object-fit: cover; object-position: center 15%; border-radius: 50%; }
.modal__body { display: grid; gap: 2rem; margin-top: .5rem; }
@media (min-width: 768px) { .modal__body { grid-template-columns: 1fr 2fr; } .modal__body--single { grid-template-columns: 1fr; } .facts { border-right: 1px solid var(--border); padding-right: 1.5rem; } }
.facts { font-size: .875rem; display: flex; flex-direction: column; gap: .75rem; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bio p + p { margin-top: 1rem; }
.list { padding-left: 1.25rem; margin: 0; font-size: .875rem; }
.list li + li { margin-top: .25rem; }
.inline-link { color: var(--accent); }
.inline-link:hover { text-decoration: underline; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(1rem); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .snap { scroll-behavior: auto; } }

/* ---------- inner pages (articles) ---------- */
.page-main { padding: 10rem 0 5rem; min-height: 70vh; }
.crumbs { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article__title { font-size: clamp(2rem, 3vw + 1rem, 2.75rem); margin: .75rem 0 1rem; }
.article__meta { font-size: .875rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article__summary { font-family: var(--serif); font-size: 1.375rem; line-height: 1.5; color: var(--fg); margin-bottom: 2rem; }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.25rem; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 2.25rem 0 .75rem; }
.prose h2 { font-size: 1.75rem; } .prose h3 { font-size: 1.375rem; } .prose h4 { font-size: 1.125rem; }
.prose a { color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.25rem; font-family: var(--serif); font-size: 1.25rem; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose code { font-size: .9em; background: var(--card); padding: .1em .3em; }
.article__disc { margin: 3rem 0 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Post-footer credit (TBBN) */
.credit { background: #1b1b1b; color: rgba(248,246,241,.5); font-size: .75rem; letter-spacing: .04em; scroll-snap-align: end; }
.credit__inner { padding-top: .9rem; padding-bottom: .9rem; text-align: center; }
.credit a { color: rgba(248,246,241,.85); text-decoration: none; border-bottom: 1px solid rgba(248,246,241,.25); transition: color .2s, border-color .2s; }
.credit a:hover { color: #fff; border-color: var(--accent); }
.about__text .h2 { margin: 0; }
