/* Greenberg Law, P.A. — site styles */
:root {
  --ink: #1b1719;
  --ink-2: #252022;
  --ink-3: #322c2e;
  --green: #497159;
  --green-600: #3c5f4a;
  --green-700: #2f4b3b;
  --green-900: #1c2e24;
  --green-100: #e5ede7;
  --green-50: #f1f5f2;
  --paper: #f6f3ec;
  --paper-2: #ece6d8;
  --manila: #e9dcbc;
  --manila-2: #dccb9f;
  --brass: #a88a55;
  --text: #1b1719;
  --muted: #5d5755;
  --line: #ddd6c8;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(27, 23, 25, .06), 0 8px 24px rgba(27, 23, 25, .08);
  --shadow-lg: 0 2px 4px rgba(27, 23, 25, .08), 0 24px 48px rgba(27, 23, 25, .16);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-600); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.icon { width: 1em; height: 1em; flex: none; }

h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); }
p { margin: 0 0 1.1em; }

.cite { font-family: var(--mono); font-size: .85rem; letter-spacing: .02em; color: #9fc0ab; margin: 0 0 14px; }
.case-no { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); }

/* Buttons */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 24px; border-radius: var(--radius); border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .25s;
  position: relative; white-space: nowrap;
}
.btn:hover { color: var(--fg); background: var(--green-600); border-color: var(--green-600); }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { --fg: #fff; background: var(--ink); border-color: var(--ink); box-shadow: none; }
.on-dark .btn-ghost { --fg: #fff; border-color: rgba(255, 255, 255, .5); }
.on-dark .btn-ghost:hover { --fg: var(--ink); background: #fff; border-color: #fff; }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-light:hover { --fg: var(--ink); background: var(--paper); border-color: var(--paper); }
.text-link { font-weight: 600; color: var(--green-700); text-decoration: underline; text-decoration-thickness: 1px; }
.on-dark .text-link, .cta-band .text-link { color: #fff; }
.on-dark .text-link:hover, .cta-band .text-link:hover { color: #cfe0d5; }

/* Top bar + header */
.topbar { background: var(--ink); color: #cfc9c3; font-size: .84rem; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar span { display: inline-flex; gap: 8px; align-items: center; }
.topbar .icon { width: 15px; height: 15px; color: #8fb39c; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.topbar a:hover { color: #b8d4c2; }
.topbar .tb-addr { margin-right: auto; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(27, 23, 25, .08); }
.nav-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: auto; }
.brand-word { font-family: var(--serif); font-variant: small-caps; font-weight: 600; font-size: 1.72rem; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.brand-word small { font-size: 1em; }
.brand:hover { color: var(--ink); }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .mega-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; background: none; border: 0;
}
.main-nav > ul > li > a:hover, .mega-toggle:hover, .main-nav a[aria-current="page"] { background: var(--green-50); color: var(--green-700); }
.mega-toggle .icon { width: 16px; height: 16px; transition: transform .25s; }
.has-mega.open .mega-toggle .icon { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(980px, 92vw);
  transform: translate(-42%, 8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 26px; padding: 26px 28px 22px;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-mega.open .mega, .has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-42%, 0); }
.mega h4 { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: 8px 0 6px; font-weight: 500; }
.mega ul { list-style: none; margin: 0 0 10px; padding: 0; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin-inline: -8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.mega a .icon { width: 22px; height: 22px; color: var(--green); transition: transform .25s var(--ease); }
.mega a:hover { background: var(--green-50); }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.mega-foot a { display: inline-flex; margin: 0; padding: 0; font-weight: 600; color: var(--green-600); }
.mega-foot a:hover { background: none; text-decoration: underline; }
.header-cta { display: inline-flex; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.menu-btn .icon { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(27, 23, 25, .5); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: #fff; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; padding: 20px 22px 110px; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-close { background: none; border: 0; padding: 8px; color: var(--ink); }
.drawer-close .icon { width: 26px; height: 26px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .icon { width: 18px; height: 18px; transition: transform .25s; }
.drawer details[open] summary .icon { transform: rotate(180deg); }
.drawer ul { list-style: none; margin: 0 0 12px; padding: 0; }
.drawer li a { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.drawer li a .icon { width: 22px; height: 22px; color: var(--green); }
.drawer .drawer-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); text-decoration: none; }
.drawer .btn { width: 100%; margin-top: 18px; }

/* Mobile call bar */
.callbar { display: none; }

/* ============ HOME HERO ============ */
.hero {
  position: relative; background: var(--ink); color: #e9e4de; overflow: hidden; isolation: isolate;
}
.hero-pattern {
  position: absolute; inset: 0; z-index: -1; color: #fff; opacity: .5;
  -webkit-mask-image: radial-gradient(circle 420px at 78% 35%, #000 0%, rgba(0, 0, 0, .3) 45%, transparent 75%);
  mask-image: radial-gradient(circle 420px at 78% 35%, #000 0%, rgba(0, 0, 0, .3) 45%, transparent 75%);
}
.hero-pattern svg { width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, rgba(27, 23, 25, .6)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 96px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: #a9cbb5; font-weight: 500; }
.hero-lead { font-size: 1.15rem; color: #d3ccc5; max-width: 34em; }
.hero-cta { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; margin: 30px 0 18px; }
.hero-note { font-size: .95rem; color: #bdb5ae; margin: 0; }

/* Logo-frame photo: the monogram's four bars wrap the attorney photo */
.hero-photo { position: relative; padding: 22px 22px 30px 24px; }
.hero-photo .frame { position: absolute; background: var(--green); transform-origin: left; }
.hero-photo .f-left { left: 0; top: 0; width: 14px; bottom: 34px; transform-origin: top; }
.hero-photo .f-top { top: 0; left: 24px; right: 0; height: 14px; background: #f3efe8; }
.hero-photo .f-right { right: 0; top: 22px; bottom: 34px; width: 14px; background: #f3efe8; transform-origin: top; }
.hero-photo .f-bottom { left: 0; right: 0; bottom: 0; height: 16px; }
.js .reveal-frame .frame { transform: scaleX(0); transition: transform .9s var(--ease); }
.js .reveal-frame .f-left, .js .reveal-frame .f-right { transform: scaleY(0); }
.reveal-frame.in .frame { transform: none; }
.reveal-frame.in .f-top { transition-delay: .15s; } .reveal-frame.in .f-right { transition-delay: .3s; } .reveal-frame.in .f-bottom { transition-delay: .45s; }
.hero-photo figure { margin: 0; position: relative; aspect-ratio: 1200 / 760; background: #ece9e4; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 36px 16px 12px; background: linear-gradient(transparent, rgba(27, 23, 25, .75)); color: #fff; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.tag {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 30px;
  background: var(--manila); color: var(--ink); border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow-lg);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase;
}
.tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--manila-2); }
.tag b { display: block; font-family: var(--serif); font-size: 1.35rem; text-transform: none; letter-spacing: 0; font-weight: 700; }
.hero-photo .tag { left: -34px; bottom: 64px; transform: rotate(-3deg); }



/* Sections */
.section { padding: 100px 0; }
.section-tight { padding: 72px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #ddd6cf; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.section-head { margin-bottom: 40px; }
.section-head p { max-width: 40em; color: var(--muted); margin: 14px 0 0; }
.bg-ink .section-head p { color: #b9b1aa; }
.section-head h2 { margin: 0; max-width: 18em; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* Docket index: statute, charge, one line, arrow */
.entry {
  display: grid; grid-template-columns: 200px minmax(0, 15rem) minmax(0, 1fr) 22px; grid-template-areas: "cite name note go";
  gap: 6px 32px; align-items: baseline; padding: 20px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: background .2s;
}
.index > .entry:first-child, .index-group + .entry { border-top: 2px solid var(--ink); }
.entry:hover { background: var(--paper); color: var(--ink); }
.entry-cite { grid-area: cite; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.entry-name { grid-area: name; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.entry-note { grid-area: note; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.entry-go { grid-area: go; width: 20px; height: 20px; color: var(--green); align-self: center; transition: transform .2s; }
.entry:hover .entry-go { transform: translateX(4px); }
.index-group { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 64px 0 14px; }
.index > .index-group:first-child { margin-top: 0; }
.index-more { margin: 26px 0 0; }
.index-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-700); }
.index-more .icon { width: 18px; height: 18px; }

/* Prosecutor split + redacted rights */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-tight { gap: 48px; }
.ruled { list-style: none; padding: 0; margin: 24px 0 30px; counter-reset: r; border-top: 1px solid var(--line); }
.ruled li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ruled li::before { content: counter(r) "."; font-family: var(--mono); font-size: .85rem; color: var(--green-700); padding-top: 3px; }

.doc {
  position: relative; background: #fffdf8; color: var(--ink); border-radius: 4px; padding: 44px 40px 36px; box-shadow: var(--shadow-lg);
  background-image: repeating-linear-gradient(#fffdf8 0 31px, #ece7da 31px 32px); background-position: 0 14px;
}
.doc::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: rgba(168, 70, 70, .25); }
.doc-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.doc h3 { font-size: 1.7rem; margin-bottom: 18px; }
.doc ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; line-height: 1.55; }
.doc .hint { margin: 22px 0 0; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.doc .hint .icon { width: 16px; height: 16px; }
.redact {
  cursor: pointer; border-radius: 2px; outline: none; color: var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat right center / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 3px; margin: 0 -1px;
  transition: background-size .6s var(--ease);
}
.redact:hover, .redact:focus, .redact.shown { background-size: 0% 100%; background-color: rgba(73, 113, 89, .12); }


/* Attorneys */
.attorneys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.attorney { padding-top: 22px; border-top: 2px solid var(--ink); }
.attorney .role { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 6px; }
.attorney h3 { font-size: 2rem; margin-bottom: 14px; }
.attorney ul { margin: 18px 0 0; padding: 0; list-style: none; font-size: .94rem; }
.attorney li { padding: 8px 0; border-top: 1px dashed var(--line); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; }
.quote { margin: 0; padding-top: 22px; border-top: 1px solid var(--ink); }
.quote:first-child { grid-column: 1 / -1; }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: var(--ink); text-indent: -.35em; }
.quote:first-child blockquote { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.25; max-width: 26em; }
.quote figcaption { font-weight: 600; font-size: .95rem; }
.quote figcaption span { font-weight: 400; color: var(--muted); }
.quote figcaption span::before { content: "· "; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 26px; }
.bg-ink .fine { color: #9c948d; }

/* Masked statement band: skyline photo shows through the type */
.masked-band { position: relative; background: var(--ink); padding: 70px 0 74px; overflow: hidden; }
.masked-band svg.mask-type { width: 100%; height: auto; overflow: visible; }
.masked-band .pan { animation: pan 26s ease-in-out infinite alternate; }
@keyframes pan { to { transform: translateX(-70px); } }
.masked-band .band-copy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-top: 26px; color: #cfc8c1; }
.masked-band .band-copy p { margin: 0; }
.towns { margin: 0; font-size: .95rem; color: #e6e0da; }

/* Office / contact */
.office { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.office-info { padding: 44px; }
.office-map { min-height: 420px; position: relative; background: var(--paper-2); }
.office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.info-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 16px; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.info-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--green-700); }
.info-list b { display: block; font-size: .78rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--green-600); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }

/* Forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(73, 113, 89, .15); }
.form .hp { display: none; }
.form .note { font-size: .78rem; color: var(--muted); margin: 0; }
.form .btn { width: 100%; }
.form-status { font-size: .92rem; padding: 12px 14px; border-radius: var(--radius); background: var(--green-100); color: var(--green-900); display: none; }
.form-status.show { display: block; }
.form-card { background: #fff; border-radius: 12px; padding: 34px; box-shadow: var(--shadow-lg); position: relative; }
.form-card h3 { font-size: 1.8rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .95rem; }

/* ============ INNER PAGES ============ */
.page-hero { position: relative; background: var(--ink); color: #ddd6cf; overflow: hidden; isolation: isolate; }
.page-hero .hero-pattern { opacity: .35; }
.page-hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 60px; align-items: center; padding: 56px 0 74px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 4.8vw, 3.9rem); margin-bottom: 18px; }
.page-hero .lead { font-size: 1.12rem; color: #d0c9c2; max-width: 38em; }
.page-hero .cta-row { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.crumbs { font-size: .84rem; margin-bottom: 28px; color: #a49c95; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #6f6863; }
.crumbs a { color: #cfc8c1; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.case-card { position: relative; background: var(--manila); color: var(--ink); border-radius: 0 10px 10px 10px; padding: 30px 28px 26px; box-shadow: var(--shadow-lg); margin-top: 22px; }
.case-card::before { content: attr(data-tab); position: absolute; top: -26px; left: 0; height: 27px; padding: 5px 16px 0; background: var(--manila); border-radius: 8px 8px 0 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #7a6a45; }
.case-card h2 { font-size: 1.25rem; font-family: var(--mono); font-weight: 500; letter-spacing: .02em; margin-bottom: 18px; color: #6b5c39; text-transform: uppercase; font-size: .78rem; }
.case-card dl { margin: 0; display: grid; gap: 0; }
.case-card dl > div { padding: 12px 0; border-top: 1px dashed rgba(122, 106, 69, .45); }
.case-card dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #7a6a45; }
.case-card dd { font-variant-numeric: lining-nums; margin: 2px 0 0; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.25; }
.case-card .stamp-big { position: absolute; right: 18px; bottom: -18px; background: var(--green); color: #fff; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; transform: rotate(-5deg); box-shadow: var(--shadow); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding: 76px 0 90px; align-items: start; }
.prose { max-width: 760px; }
.prose section { margin-bottom: 50px; scroll-margin-top: 110px; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); position: relative; padding-top: 18px; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 4px; background: var(--green); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.3em; list-style: none; display: grid; gap: 10px; }
.prose ul > li { position: relative; padding-left: 30px; }
.prose ul > li::before { content: "–"; position: absolute; left: 4px; top: 0; color: var(--green); font-weight: 600; }
.prose ol { counter-reset: n; }
.prose ol > li { position: relative; padding-left: 32px; counter-increment: n; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: .85rem; color: var(--green-700); }
.prose a { font-weight: 600; }
.toc { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-bottom: 46px; background: var(--paper); }
.toc p { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; gap: 6px; }
.toc ol > li { padding-left: 28px; font-size: .95rem; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--green-600); text-decoration: underline; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 46px 20px 0; position: relative; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; margin-top: -.6em; font-family: var(--sans); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--green-700); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: #3b3537; }

/* Sidebar */
.sidebar { position: sticky; top: 108px; display: grid; gap: 22px; }
.side-card { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: #fff; }
.side-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.side-card p { font-size: .92rem; color: var(--muted); }
.side-cta { background: var(--green-700); color: #e2ece5; border: 0; position: relative; overflow: hidden; }
.side-cta h3 { color: #fff; }
.side-cta p { color: #c8dacd; }
.side-cta .btn { width: 100%; margin-top: 4px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a .icon { width: 24px; height: 24px; color: var(--green); }
.side-list a:hover { color: var(--green-600); }

/* ============ WIDGETS ============ */
.widget { margin: 30px 0 34px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); padding: 28px; position: relative; }
.widget-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.widget-head .icon { width: 42px; height: 42px; color: var(--green-700); }
.widget-head h3 { margin: 0; font-size: 1.55rem; }
.widget-head p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.widget .fineprint { font-size: .78rem; color: var(--muted); margin: 16px 0 0; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 30px; padding: 9px 16px; font-size: .9rem; font-weight: 600; color: var(--ink); transition: all .2s; }
.seg button:hover { border-color: var(--green); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; margin: 0 18px 8px 0; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.calc-out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.calc-out > div { background: #fff; border-radius: 8px; padding: 14px 16px; border: 1px solid var(--line); }
.calc-out dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc-out dd { margin: 4px 0 0; font-weight: 700; font-size: 1.02rem; }
.calc-level { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: 4px; background: var(--green-100); color: var(--green-900); }
.calc-level.felony { background: #3a2224; color: #fff; }
.flash { animation: flash .5s var(--ease); }
@keyframes flash { from { background: #fff7d6; } to { background: #fff; } }

/* 10-day clock */
.clock-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.ring { position: relative; width: 180px; height: 180px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: #e2dccd; }
.ring .bar { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease), stroke .3s; }
.ring.urgent .bar { stroke: #b3472f; }
.ring .ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .ring-num b { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 3.4rem; line-height: 1; }
.ring .ring-num span { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.clock-msg { font-size: 1rem; }
.clock-msg strong { font-weight: 700; }
.clock-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.clock-form label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; }
.clock-form input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Severity ladder */
.ladder { display: grid; gap: 6px; }
.rung {
  display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 14px; transition: border-color .2s, transform .25s var(--ease);
}
.rung:hover { border-color: var(--green); transform: translateX(4px); }
.rung[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--ink); }
.rung-name { font-weight: 700; font-size: .95rem; color: var(--ink); }
.rung-bar { height: 10px; border-radius: 10px; background: #ece6d8; overflow: hidden; }
.rung-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--green), var(--green-700)); border-radius: 10px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.in .rung-bar i, html:not(.js) .rung-bar i { transform: scaleX(1); }
.rung.felony .rung-bar i { background: linear-gradient(90deg, #6d4b4f, #3a2224); }
.rung-detail { margin-top: 16px; background: var(--ink); color: #e9e4de; border-radius: 10px; padding: 20px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rung-detail dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #9c948d; }
.rung-detail dd { font-variant-numeric: lining-nums; margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; line-height: 1.25; }
.rung-detail .ex { grid-column: 1 / -1; font-size: .9rem; color: #c9c2bb; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }

/* Sealing checker */
.quiz-q { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 14px; line-height: 1.3; }
.quiz-step { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.quiz-progress { height: 4px; background: #e2dccd; border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; background: var(--green); width: 0; transition: width .4s var(--ease); }
.quiz-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-result { border-left: 4px solid var(--green); background: #fff; padding: 16px 18px; border-radius: 0 8px 8px 0; }
.quiz-result.no { border-color: #b3472f; }
.quiz-result h4 { font-size: 1.4rem; margin-bottom: 6px; }
.quiz-reset { background: none; border: 0; color: var(--green-600); font-weight: 600; padding: 0; margin-top: 10px; text-decoration: underline; }

/* Case timeline */
.timeline { position: relative; }
.tl-steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; list-style: none; padding: 0; margin: 0 0 18px; position: relative; }
.tl-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.tl-fill { position: absolute; left: 6%; top: 22px; height: 2px; background: var(--green); width: 0; transition: width .5s var(--ease); }
.tl-steps li { position: relative; text-align: center; }
.tl-steps button { background: none; border: 0; padding: 0 2px; display: grid; justify-items: center; gap: 8px; width: 100%; color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.25; }
.tl-steps .dot { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; color: var(--muted); transition: all .3s var(--ease); position: relative; z-index: 1; }
.tl-steps button:hover .dot { border-color: var(--green); color: var(--green); }
.tl-steps .done .dot { background: var(--green-100); border-color: var(--green); color: var(--green-700); }
.tl-steps [aria-selected="true"] { color: var(--ink); }
.tl-steps [aria-selected="true"] .dot { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.1); }
.tl-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; min-height: 150px; }
.tl-panel[hidden] { display: none; }
.tl-panel h4 { font-size: 1.55rem; margin-bottom: 6px; }
.tl-panel p { margin: 0; color: #3b3537; }
.tl-panel .when { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.tl-nav { display: flex; gap: 8px; }
.tl-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
.tl-nav button:hover { border-color: var(--green); color: var(--green); }
.tl-nav .icon { width: 18px; height: 18px; }
.tl-nav .prev .icon { transform: rotate(180deg); }
.bg-ink .widget, .widget.dark { background: var(--ink-2); border-color: var(--ink-3); color: #ddd6cf; }
.bg-ink .widget-head .icon { color: #8fb39c; }
.bg-ink .widget-head p { color: #a39b94; }
.bg-ink .tl-steps button { color: #a39b94; }
.bg-ink .tl-steps [aria-selected="true"] { color: #fff; }
.bg-ink .tl-steps [aria-selected="true"] .dot { background: var(--green); border-color: var(--green); }
.bg-ink .tl-steps .dot { background: var(--ink-3); border-color: #4a4345; color: #cfc8c1; }
.bg-ink .tl-steps .done .dot { background: var(--green-900); border-color: var(--green); color: #b8d4c2; }
.bg-ink .tl-steps::before { background: repeating-linear-gradient(90deg, #4a4345 0 8px, transparent 8px 14px); }
.bg-ink .widget .fineprint { color: #8b837c; }

/* Related & CTA */
.related { padding: 84px 0 96px; border-top: 1px solid var(--line); }
.related .index { margin-top: 26px; }
.cta-band { background: var(--green-700); color: #e2ece5; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 70px 0; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; color: #c8dacd; max-width: 34em; }
.cta-band .cta-actions { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

/* Footer */
.site-footer { background: var(--ink); color: #b1a9a2; font-size: .92rem; padding: 78px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; }
.site-footer h4 { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #8fb39c; margin-bottom: 16px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #ddd6cf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-mark rect[fill="#1B1719"], .site-footer .brand-mark path[stroke="#1B1719"] { fill: #fff; }
.foot-legal { border-top: 1px solid var(--ink-3); padding: 22px 0 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: #8b837c; }
.foot-legal p { margin: 0; max-width: 70em; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
/* line drawing */
.js .draw path, .js .draw circle, .js .draw rect { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 2.2s var(--ease); }
.draw.in path, .draw.in circle, .draw.in rect { stroke-dashoffset: 0; }

/* Simple page body */
.page-body { padding: 76px 0 90px; }
.page-body .prose { margin-inline: auto; }
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.bio:first-of-type { border-top: 0; }
.bio-card { position: sticky; top: 110px; background: var(--manila); border-radius: 0 10px 10px 10px; padding: 26px; position: relative; }
.bio-card::before { content: attr(data-tab); position: absolute; top: -24px; left: 0; height: 25px; padding: 4px 14px 0; background: var(--manila); border-radius: 7px 7px 0 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #7a6a45; }
.bio-card h2 { font-size: 2.2rem; margin-bottom: 4px; }
.bio-card .role { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); margin-bottom: 16px; }
.bio-card dl { margin: 0; }
.bio-card dl > div { padding: 10px 0; border-top: 1px dashed rgba(122, 106, 69, .45); }
.bio-card dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #7a6a45; }
.bio-card dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
.team-photo { position: relative; margin: 0 0 20px; }
.team-photo img { border-radius: 4px; }
.not-found { text-align: center; padding: 120px 0; }
.not-found .icon { width: 90px; height: 90px; color: var(--green); margin: 0 auto 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .tl-steps { grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
  .tl-steps::before, .tl-fill { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .split, .masked-band .band-copy, .office, .cta-band .wrap { grid-template-columns: 1fr; }
  .hero-grid { padding: 56px 0 70px; gap: 40px; }
  .hero-photo .tag { left: -8px; }
  .page-hero-grid { padding: 40px 0 70px; gap: 30px; }
  .entry { grid-template-columns: minmax(0, 1fr) 22px; grid-template-areas: "cite go" "name go" "note go"; padding: 18px 2px; }
  .quotes { grid-template-columns: 1fr; }
  .attorneys { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .cta-band .cta-actions { justify-content: flex-start; }
  .bio { grid-template-columns: 1fr; gap: 28px; }
  .bio-card { position: relative; top: 0; }
  .topbar .tb-hours { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .tb-addr { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav-row { min-height: 70px; gap: 12px; }
  .brand-word { font-size: 1.36rem; }
  .brand-mark { width: 36px; }
  .menu-btn span { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .office-info, .form-card { padding: 26px 20px; }
  .doc { padding: 36px 22px 30px 40px; }
  .calc-out, .rung-detail { grid-template-columns: 1fr; }
  .rung { grid-template-columns: 1fr; gap: 8px; }
  .clock-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tl-steps { grid-template-columns: repeat(4, 1fr); }
  .tl-steps button span.lbl { display: none; }
  .tl-panel { grid-template-columns: 1fr; }
  .widget { padding: 22px 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .page-hero .cta-row .btn { width: 100%; }
  .hero-cta .text-link, .page-hero .cta-row .text-link { padding: 6px 0; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; color: #fff; font-weight: 700; text-decoration: none; font-size: .95rem; }
  .callbar a:first-child { background: var(--green); }
  .callbar .icon { width: 18px; height: 18px; }
  .site-footer { padding-bottom: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .callbar, .site-footer, .sidebar, .cta-band, .related, .hero-pattern { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}
@media (max-width: 640px) {
  .hero-photo .tag { left: auto; right: -4px; bottom: -18px; padding: 8px 12px 8px 24px; }
  .hero-photo .tag b { font-size: 1.1rem; }
}
/* Standalone links get a full-size tap area */
.text-link, .index-more a, .topbar a, .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
