/* Harvey & Co. Attorneys — main stylesheet
   Palette: ink (base) · bone (light sections) · claret (accent) · silver (lines/muted) */
:root {
  --ink: #0D0E11;
  --ink-2: #15171C;
  --ink-3: #1E2128;
  --bone: #F1ECE4;
  --bone-2: #E6DFD3;
  --silver: #A9AFB7;
  --muted: #6B6F78;
  --claret: #8C2232;
  --claret-hi: #B5374A;
  --line-d: rgba(241, 236, 228, .12);
  --line-l: rgba(13, 14, 17, .14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; color: var(--claret-hi); }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--claret-hi); outline-offset: 3px; }
::selection { background: var(--claret); color: var(--bone); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bone); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--silver); display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--claret-hi); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.lead { font-size: 1.125rem; color: var(--silver); max-width: 54ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; background: var(--claret); color: var(--bone); border: 1px solid var(--claret); font: 600 .9rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--claret-hi); border-color: var(--claret-hi); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-d); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-sm { padding: 11px 18px; font-size: .8rem; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { background: var(--ink-2); border-bottom: 1px solid var(--line-d); font-size: .8rem; color: var(--silver); }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { text-decoration: none; color: var(--bone); font-weight: 600; }
.topbar a:hover { color: var(--claret-hi); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(13, 14, 17, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.hdr.is-scrolled { background: rgba(13, 14, 17, .94); border-color: var(--line-d); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-txt { font: 400 1.45rem/1 var(--serif); display: flex; flex-direction: column; gap: 5px; }
.brand-txt small { font: 600 .6rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--silver); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .9rem; color: var(--silver); position: relative; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--claret-hi); transition: right .3s var(--ease); }
.nav a:not(.btn):hover { color: var(--bone); }
.nav a:not(.btn):hover::after { right: 0; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-d); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--bone); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 88px 0 0; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(140, 34, 50, .22), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(241, 236, 228, .035) 119px 120px),
    var(--ink); }
.hero-in { display: grid; grid-template-columns: 1.35fr .9fr; gap: 64px; align-items: center; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); font-weight: 300; margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.case-card { background: var(--bone); color: var(--ink); padding: 36px 34px; position: relative; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.case-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--claret); }
.cc-label { font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--claret); }
.cc-title { font: 400 1.6rem/1.2 var(--serif); margin: 14px 0 6px; }
.cc-phone { display: inline-block; font: 500 2rem/1.2 var(--serif); text-decoration: none; color: var(--claret); margin-bottom: 22px; }
.cc-phone:hover { color: var(--claret-hi); }
.cc-list { margin: 0 0 26px; border-top: 1px solid var(--line-l); }
.cc-list div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-l); font-size: .92rem; }
.cc-list dt { font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.cc-list dd { margin: 0; }

.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); margin-bottom: 0; }
.hero-facts li { padding: 26px 24px 30px 0; display: flex; flex-direction: column; gap: 4px; }
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line-d); }
.hero-facts strong { font: 400 1.25rem/1.2 var(--serif); }
.hero-facts span { font-size: .88rem; color: var(--silver); }

/* Ticker */
.ticker { background: var(--claret); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font: italic 300 1.35rem/1 var(--serif); white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 56px; }
.ticker span::after { content: "§"; font-style: normal; opacity: .55; margin-right: -28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* The Firm */
.firm { background: var(--bone); color: var(--ink); padding: 120px 0; }
.firm .eyebrow { color: var(--muted); }
.firm .eyebrow::before, .process .eyebrow::before { background: var(--claret); }
.firm em, .process em { color: var(--claret); }
.firm-in { display: grid; grid-template-columns: 220px 1fr; gap: 64px; }
.firm-side { position: sticky; top: 120px; align-self: start; }
.firm-mark { width: 120px; height: auto; opacity: .9; }
.statement { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; max-width: 22ch; }
.firm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 40px 0 64px; color: #3B3E45; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.pillars li { padding: 28px 28px 0 0; }
.pillars li + li { padding-left: 28px; border-left: 1px solid var(--line-l); }
.pillars span { font: italic 400 1rem/1 var(--serif); color: var(--claret); }
.pillars h3 { font-size: 1.6rem; margin: 10px 0 10px; }
.pillars p { font-size: .95rem; color: #4A4D55; }

/* Practice */
.practice { background: var(--ink-2); padding: 120px 0; }
.practice-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .8rem/1 var(--sans); padding: 11px 16px; background: transparent; color: var(--silver); border: 1px solid var(--line-d); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--bone); border-color: var(--silver); }
.chip.is-on { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.pa { background: var(--ink-2); padding: 34px 30px 30px; display: flex; flex-direction: column; position: relative; transition: background .3s; }
.pa::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--claret-hi); transition: width .4s var(--ease); }
.pa:hover { background: var(--ink-3); }
.pa:hover::before { width: 100%; }
.pa.is-hidden { display: none; }
.pa-n { font: italic 400 .95rem/1 var(--serif); color: var(--claret-hi); }
.pa h3 { font-size: 1.5rem; margin: 16px 0 12px; }
.pa p { font-size: .93rem; color: var(--silver); flex: 1; }
.pa a { margin-top: 22px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; align-self: flex-start; }
.pa a::after { content: "→"; transition: transform .25s var(--ease); }
.pa a:hover { color: var(--claret-hi); }
.pa a:hover::after { transform: translateX(4px); }

/* Process */
.process { background: var(--bone-2); color: var(--ink); padding: 120px 0; }
.process .eyebrow { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 0; right: 0; height: 1px; background: var(--line-l); }
.steps li { position: relative; }
.st-n { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: var(--bone-2); border: 1px solid var(--ink); font: 400 1.4rem/1 var(--serif); position: relative; transition: background .3s, color .3s; }
.steps li:hover .st-n { background: var(--claret); border-color: var(--claret); color: var(--bone); }
.steps h3 { font-size: 1.5rem; margin: 24px 0 10px; }
.steps p { font-size: .95rem; color: #4A4D55; }

/* Contact */
.contact { padding: 120px 0; background: radial-gradient(ellipse 50% 60% at 0% 100%, rgba(140, 34, 50, .18), transparent 60%), var(--ink); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .lead { margin-top: 20px; }
.office-list { list-style: none; padding: 0; margin: 36px 0 28px; border-top: 1px solid var(--line-d); }
.office-list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.office-list span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); padding-top: 4px; }
.office-list a { text-decoration: none; word-break: break-word; }
.office-list a:hover { color: var(--claret-hi); }
.map { border: 1px solid var(--line-d); aspect-ratio: 16 / 10; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.9); }

.form { background: var(--ink-2); border: 1px solid var(--line-d); border-top: 5px solid var(--claret); padding: 40px 36px; display: grid; gap: 18px; }
.form-title { font: 400 1.7rem/1.2 var(--serif); margin-bottom: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 8px; }
.fld > span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--silver); }
.fld input, .fld select, .fld textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--bone); background: var(--ink); border: 1px solid var(--line-d); padding: 13px 14px; border-radius: 0; transition: border-color .2s; }
.fld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.fld select option { background: var(--ink); }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--claret-hi); }
.fld.is-bad input, .fld.is-bad textarea, .check.is-bad span { border-color: #E06A7A; color: inherit; }
.check.is-bad span { color: #E8A3AD; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--silver); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--claret-hi); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: .9rem; min-height: 1.4em; }
.form-msg.ok { color: #9FD3AE; }
.form-msg.err { color: #E8A3AD; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.ftr { background: #08090B; border-top: 1px solid var(--line-d); padding: 72px 0 32px; font-size: .9rem; }
.ftr-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-d); }
.ftr-brand img { margin-bottom: 20px; }
.ftr-brand p { color: var(--silver); }
.ftr-brand a { text-decoration: none; color: var(--bone); }
.ftr nav { display: flex; flex-direction: column; gap: 10px; }
.ftr h2 { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--silver); margin-bottom: 8px; }
.ftr nav a { text-decoration: none; color: var(--bone); opacity: .85; }
.ftr nav a:hover { color: var(--claret-hi); opacity: 1; }
.ftr-note { color: var(--muted); font-size: .8rem; margin: 28px 0 10px; max-width: 90ch; }
.ftr-copy { color: var(--muted); font-size: .8rem; }

/* Legal page */
.legal { background: var(--bone); color: var(--ink); padding: 80px 0 110px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; margin-bottom: 14px; }
.legal-toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 50px; }
.legal-toc a { font-size: .85rem; font-weight: 600; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line-l); }
.legal-toc a:hover { border-color: var(--claret); color: var(--claret); }
.legal section { padding-top: 40px; margin-top: 40px; border-top: 2px solid var(--ink); }
.legal h2 { font-size: 2rem; margin-bottom: 18px; }
.legal h3 { font: 600 1rem/1.4 var(--sans); margin: 24px 0 6px; }
.legal p, .legal li { color: #3B3E45; }
.legal p + p { margin-top: 12px; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf h1 { font-size: clamp(5rem, 16vw, 10rem); font-weight: 300; color: var(--claret-hi); }
.nf p { color: var(--silver); margin: 10px 0 30px; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-in, .contact-in { grid-template-columns: 1fr; gap: 48px; }
  .case-card { max-width: 520px; }
  .pa-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .firm-in { grid-template-columns: 1fr; gap: 24px; }
  .firm-side { position: static; }
  .firm-mark { display: none; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-d); padding: 8px 24px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line-d); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-call { margin-top: 18px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar p { display: none; }
  .topbar-in { justify-content: center; }
  .hero { padding-top: 56px; }
  .hero-in { padding-bottom: 56px; }
  .case-card { padding: 30px 22px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-d); }
  .firm, .practice, .process, .contact { padding: 80px 0; }
  .firm-cols, .pillars, .row2 { grid-template-columns: 1fr; }
  .pillars li, .pillars li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-l); }
  .pa-grid, .steps { grid-template-columns: 1fr; }
  .form { padding: 30px 20px; }
  .office-list li { grid-template-columns: 1fr; gap: 4px; }
  .ftr-top { grid-template-columns: 1fr; }
  .brand-txt { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
