/* Gross Law Firm: navy and brass from the "G" monogram, warm paper, one serif and one sans. */
:root {
  --ink: #0e1a2b;
  --ink-2: #16253b;
  --ink-3: #22344f;
  --paper: #faf8f4;
  --stone: #f2eee6;
  --white: #fff;
  --line: #e4ded2;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #1c2431;
  --muted: #5d6573;
  --on-dark: #e9e6df;
  --on-dark-muted: #aab2c0;
  --gold: #b68b46;
  --gold-hi: #cfa865;
  --gold-text: #8a6528;
  --gold-soft: #efe5d2;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 12px 32px -12px rgba(14, 26, 43, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-stone { background: var(--stone); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink a:hover { color: var(--gold-hi); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 .75rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.bg-ink .eyebrow { color: var(--gold-hi); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.bg-ink .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.head p:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a27a3b; color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.bg-ink .btn-line, .on-dark .btn-line, .aside-card.dark .btn-line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.bg-ink .btn-line:hover, .on-dark .btn-line:hover, .aside-card.dark .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.bg-ink .link-arrow { color: #fff; }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 3px rgba(76, 195, 138, .2); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(14, 26, 43, .35); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 3px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 600 1.32rem/1 var(--serif); font-variant: small-caps; letter-spacing: .04em; }
.brand-name small { font: 600 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin-top: 6px; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font: 500 .95rem/1 var(--sans); color: var(--text); text-decoration: none; border-radius: var(--radius);
}
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav [aria-current="page"] { color: var(--gold-text); }
.nav .caret { width: 12px; height: 12px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 300px; padding: 10px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown.wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 4px; text-decoration: none; font-size: .93rem; color: var(--text); }
.dropdown a:hover { background: var(--stone); color: var(--ink); }
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown, .has-menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover .caret, .has-menu.open .caret { transform: rotate(180deg); }
.has-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.header-phone small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.header-phone b { font: 600 1.12rem/1.2 var(--sans); color: var(--ink); }
.header-cta .btn { min-height: 46px; padding: 0 20px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel { display: none; }

/* Hero */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .kw { display: block; font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 36px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; color: var(--text); }
.hero-proof svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.portrait { position: relative; }
.portrait > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.portrait-tag {
  position: absolute; left: -28px; bottom: 32px; padding: 18px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 270px;
}
.portrait-tag b { display: block; font: 600 1.15rem/1.2 var(--serif); color: var(--ink); }
.portrait-tag span { font-size: .82rem; color: var(--muted); }
.portrait-tag a { display: inline-flex; margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--gold-text); text-decoration: none; letter-spacing: .02em; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.page-hero .tagline { font: italic 400 clamp(1.25rem, 2vw, 1.55rem)/1.35 var(--serif); color: var(--gold-text); margin: -6px 0 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--gold-text); }
.hero-media { position: relative; }
.hero-media > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.hero-media .portrait-tag { left: -24px; bottom: 24px; }

.toc { position: sticky; top: 78px; z-index: 20; background: rgba(250, 248, 244, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc ul { display: flex; gap: 6px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; padding: 8px 14px; border-radius: 99px; font-size: .86rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.toc a:hover, .toc a.active { background: var(--ink); color: #fff; }

/* Press strip */
.press { background: #fff; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.press .wrap { display: flex; align-items: center; gap: 32px; }
.press p { margin: 0; flex: none; font: 600 .7rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.press img { flex: 1; min-width: 0; max-width: min(720px, 100%); height: auto; filter: grayscale(1); opacity: .62; mix-blend-mode: multiply; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card .num { display: block; font: 500 .82rem/1 var(--sans); letter-spacing: .1em; color: var(--gold-text); margin-bottom: 18px; }
a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
a.card .link-arrow { margin-top: auto; padding-top: 22px; }
.bg-stone .card { border-color: transparent; }

.rule-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.rule-list > * { padding-top: 22px; border-top: 1px solid var(--gold); }
.rule-list h3 { font-size: 1.22rem; }
.rule-list p { color: var(--muted); font-size: .98rem; margin: 0; }
.bg-ink .rule-list p { color: var(--on-dark-muted); }

/* Results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.result { padding: 34px 30px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.result small { display: block; font: 600 .7rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.result b { display: block; font: 500 1.9rem/1.1 var(--serif); color: var(--ink); margin-bottom: 12px; }
.result p { margin: 0; font-size: .95rem; color: var(--text); }
.fineprint { font-size: .8rem; color: var(--muted); margin-top: 18px; }
.bg-ink .fineprint { color: var(--on-dark-muted); }

/* Ledger list (charges) */
.ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: ledger; }
.ledger article { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: ledger; }
.ledger article::before { content: counter(ledger, decimal-leading-zero); font: 500 .85rem/1.9 var(--sans); color: var(--gold-text); letter-spacing: .08em; }
.ledger h3 { grid-column: 2; font-size: 1.28rem; margin-bottom: 8px; }
.ledger p { grid-column: 2; margin: 0; color: var(--muted); }
.sticky-head { position: sticky; top: 150px; }
.callout { margin-top: 32px; padding: 22px 26px; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }
.callout p:last-child { margin: 0; }
.bg-ink .callout { background: rgba(255, 255, 255, .06); color: var(--on-dark); }

/* Consequences */
.conseq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.conseq li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--line-dark); }
.conseq li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; margin-top: 9px; border: 2px solid var(--gold-hi); transform: rotate(45deg); }
.conseq h3 { font-size: 1.2rem; margin: 0; }
.conseq p { margin: 0; color: var(--on-dark-muted); font-size: .97rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.steps li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 400 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Reviews */
.rating { display: inline-flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.rating b { font: 600 1.6rem/1 var(--serif); color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.review { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; break-inside: avoid; }
.review blockquote { margin: 16px 0 22px; font: 400 1.12rem/1.55 var(--serif); color: var(--text); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.review .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 .82rem/1 var(--sans); flex: none; }
.review cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; }
.review time { color: var(--muted); font-size: .8rem; }
.review .g { margin-left: auto; width: 18px; height: 18px; opacity: .8; }
.masonry { columns: 3 320px; column-gap: 24px; }
.masonry .review { margin-bottom: 24px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font: 500 1.22rem/1.3 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--gold-text); border-bottom: 1.5px solid var(--gold-text); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }

/* Consultation form */
.form-card { background: #fff; color: var(--text); border-radius: 6px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h3, .bg-ink .form-card h3 { font-size: 1.55rem; margin-bottom: 6px; color: var(--ink); }
.form-card > p { color: var(--muted); font-size: .95rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 14px; border: 1px solid #d6cfc1; border-radius: var(--radius); background: var(--paper);
  font: 400 1rem/1.4 var(--sans); color: var(--text); transition: border-color .2s, background .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(182, 139, 70, .15); }
.form .btn { width: 100%; }
.form .note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.form .note svg { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--gold); }
.hp { display: none; }

.cta-band { position: relative; overflow: hidden; }
.cta-band .split { align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cta-phone { display: inline-flex; align-items: center; gap: 14px; margin: 10px 0 26px; text-decoration: none; color: #fff; }
.cta-phone .ico { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.cta-phone svg { width: 20px; height: 20px; color: var(--gold-hi); }
.cta-phone small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; }
.cta-phone b { font: 500 1.8rem/1.1 var(--serif); }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.bg-ink .checks svg { color: var(--gold-hi); }
.boroughs { font-size: .85rem; color: var(--on-dark-muted); letter-spacing: .02em; }

/* Prose (posts, legal) */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin: 1.8em 0 .55em; }
.prose h3 { font-size: 1.32rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.prose a:hover { color: var(--gold-text); }
.prose figure { margin: 2em 0; max-width: none; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font: italic 1.2rem/1.5 var(--serif); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; max-width: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--ink); color: #fff; font-weight: 600; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.aside { position: sticky; top: 104px; display: grid; gap: 20px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.aside-card.dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.aside-card.dark h3 { color: #fff; }
.aside-card h3 { font-size: 1.25rem; }
.aside-card p { font-size: .93rem; color: var(--muted); }
.aside-card.dark p { color: var(--on-dark-muted); }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .93rem; }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links svg { width: 14px; height: 14px; color: var(--gold); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .88rem; color: var(--muted); }
.chip { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-text); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
a.chip:hover { background: var(--gold); color: #fff; }
.post-cover { margin-top: clamp(32px, 5vw, 48px); }
.post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card .thumb { overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; background: var(--stone); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.post-card:hover img { transform: scale(1.03); }
.post-card h3 { font-size: 1.32rem; margin: 10px 0 8px; }
.post-card:hover h3 { color: var(--gold-text); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-card .post-meta { font-size: .8rem; }
.post-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; text-decoration: none; color: inherit; margin-bottom: clamp(48px, 7vw, 80px); }
.post-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.post-feature h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 14px 0 12px; }
.post-feature:hover h2 { color: var(--gold-text); }
.post-feature p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; list-style: none; }
.filters a { display: block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--text); background: #fff; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Contact */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-text); }
.info-list .ico svg { width: 18px; height: 18px; }
.info-list small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.info-list b, .info-list a { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); margin-top: 28px; filter: grayscale(.4); }

.cred { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.cred h3 { font: 600 .75rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.cred ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.cred li { padding-left: 18px; position: relative; }
.cred li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: .95rem; }
.related a:hover { border-color: var(--gold); color: var(--ink); }
.related svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* Footer */
.site-footer { background: #0a1322; color: var(--on-dark-muted); font-size: .92rem; padding: clamp(56px, 7vw, 88px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 20px; }
.site-footer .brand-name small { color: var(--gold-hi); }
.site-footer h4 { font: 600 .72rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.footer-contact { display: grid; gap: 6px; margin-top: 16px; }
.footer-contact .big { font: 500 1.5rem/1.2 var(--serif); color: #fff; }
.sl-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius); font-size: .82rem; }
.sl-badge b { color: #fff; }
.footer-bottom { margin-top: clamp(48px, 6vw, 72px); padding: 26px 0 32px; border-top: 1px solid var(--line-dark); font-size: .8rem; line-height: 1.6; }
.footer-bottom .wrap > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.footer-bottom p { margin: 0; max-width: 100ch; }

.callbar { display: none; }

/* Landing page (no full nav) */
.lp-header .wrap { justify-content: space-between; }
.lp-header .header-cta { display: flex; }

/* Responsive */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .nav > ul > li > a, .nav > ul > li > button { padding: 10px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel {
    display: block; position: fixed; inset: 117px 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 120px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .mobile-panel { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel > ul > li > a, .mobile-panel summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font: 500 1.35rem/1.2 var(--serif); color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
  .mobile-panel summary::-webkit-details-marker { display: none; }
  .mobile-panel details ul { padding: 8px 0 12px 4px; }
  .mobile-panel details a { display: block; padding: 10px 0; color: var(--muted); text-decoration: none; }
  .mobile-panel .btns { margin-top: 28px; }
  .mobile-panel .btn { flex: 1 1 100%; }
  .hero-grid, .split, .article-layout, .post-feature { grid-template-columns: 1fr; }
  .hero-grid .portrait, .hero-grid .hero-media { max-width: 520px; }
  .portrait-tag, .hero-media .portrait-tag { left: 16px; }
  .sticky-head, .aside { position: static; }
  .g3, .g4, .rule-list, .results, .posts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li:not(:nth-child(3n+1)) { padding: 28px 24px 30px 0; border-left: 0; }
  .steps li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .dropdown.wide { grid-template-columns: 1fr; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .4);
  }
  .callbar .btn { min-height: 48px; padding: 0 12px; font-size: .9rem; }
  body { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar .addr { display: none; }
  .topbar .wrap { justify-content: center; }
  .site-header .wrap { min-height: 66px; }
  .mobile-panel { inset: 104px 0 0; }
  .toc { top: 66px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name b { font-size: 1.15rem; }
  .g2, .g3, .g4, .rule-list, .results, .posts, .conseq, .cred, .form, .related, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(2n), .steps li:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .ledger article { grid-template-columns: 40px 1fr; gap: 0 12px; }
  .press .wrap { flex-direction: column; gap: 14px; }
  .press img { width: 100%; }
  .lp-header .header-cta { display: none; }
  .btns .btn { flex: 1 1 100%; }
  .portrait::before { inset: 12px -10px -10px 12px; }
  .hero h1 .kw { margin-bottom: 16px; }
  .masonry { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
