/* DiLeonardo & Shaw — editorial law firm site */

:root {
  --navy-900: #08111F;
  --navy-800: #0A1628;
  --navy-700: #112237;
  --navy-600: #1A2D45;
  --navy-500: #2A3F5C;
  --gold: #C9A75F;
  --gold-bright: #E0BD75;
  --gold-deep: #9A7E3F;
  --bone: #F5F0E6;
  --bone-warm: #EFE7D6;
  --paper: #FAF7F0;
  --ink: #0A1628;
  --ink-soft: #2A3F5C;
  --rule: rgba(10, 22, 40, 0.12);
  --rule-strong: rgba(10, 22, 40, 0.25);

  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --paper: #08111F;
  --bone: #0A1628;
  --bone-warm: #112237;
  --ink: #F5F0E6;
  --ink-soft: rgba(245, 240, 230, 0.7);
  --rule: rgba(245, 240, 230, 0.12);
  --rule-strong: rgba(245, 240, 230, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font-family: inherit; border: 0; background: none; }

/* ───────── Type scale ───────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.display em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--gold-deep);
}

[data-theme="dark"] .display em { color: var(--gold-bright); }

.h1 { font-size: clamp(54px, 9vw, 168px); }
.h2 { font-size: clamp(40px, 6vw, 96px); }
.h3 { font-size: clamp(28px, 3.5vw, 56px); }

.body-lg { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; font-weight: 400; }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ───────── Layout ───────── */

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 80px);
}

section { position: relative; }

/* ───────── Top nav ───────── */

.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px clamp(24px, 4vw, 80px);
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}

.nav.is-scrolled {
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--rule);
}

.nav.on-dark {
  color: var(--bone);
}

.nav-brand {
  display: inline-flex; align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 400;
  font-variation-settings: "SOFT" 50;
  color: inherit;
  line-height: 1;
}
.nav-brand em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  margin: 0 0.12em;
}
.nav-mark {
  width: auto; height: 30px;
  display: block; flex-shrink: 0;
  transition: filter 0.3s ease;
}
/* On dark sections (transparent nav over navy hero/contact/footer): tint the
   navy artwork white. On scrolled (light cream) nav: show native navy. */
.nav.on-dark:not(.is-scrolled) .nav-mark { filter: brightness(0) invert(1); }
.nav.is-scrolled .nav-mark,
.nav.is-scrolled.on-dark .nav-mark { filter: brightness(0) invert(1); }
.nav.is-scrolled:not(.on-dark) .nav-mark { filter: none; }
@media (max-width: 600px) {
  .nav-mark { height: 26px; }
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--navy-900);
  padding: 11px 18px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }
.nav-cta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--navy-900);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; opacity: 0.85; }
.btn-ghost:hover { opacity: 1; transform: translateY(-2px); }
.btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ───────── Hero ───────── */

.hero {
  background: var(--navy-900);
  color: var(--bone);
  min-height: 100vh;
  padding: 140px clamp(24px, 4vw, 80px) 60px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(201,167,95,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(201,167,95,0.06), transparent 60%);
  pointer-events: none;
}

.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 240, 230, 0.5);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.12);
}
.hero-meta-dot { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s ease-in-out infinite;
}

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: end;
  padding: 80px 0 60px;
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(64px, 11vw, 200px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-variation-settings: "SOFT" 100;
}

/* word-by-word reveal */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes word-up {
  to { transform: translateY(0); }
}

.hero-aside { display: flex; flex-direction: column; gap: 32px; padding-bottom: 12px; }
.hero-lede {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245, 240, 230, 0.75);
  max-width: 38ch;
}
.hero-lede strong { color: var(--bone); font-weight: 500; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  position: relative;
  z-index: 2;
}
.hero-foot-cell { padding-right: 32px; border-right: 1px solid rgba(245, 240, 230, 0.08); }
.hero-foot-cell:last-child { border-right: 0; }
.hero-foot-num {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 300; letter-spacing: -0.02em;
  color: var(--gold);
}
.hero-foot-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245, 240, 230, 0.55);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .hero-foot { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
}

/* hero scrolling marquee */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bone-warm);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "SOFT" 100;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ───────── Section heading ───────── */

.sec {
  padding: clamp(80px, 12vw, 160px) clamp(24px, 4vw, 80px);
  max-width: 1440px; margin: 0 auto;
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.sec-head-meta { display: flex; flex-direction: column; gap: 16px; }
.sec-head-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sec-head-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
}
[data-theme="dark"] .sec-head-tag { color: var(--gold-bright); }

@media (max-width: 800px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ───────── Practice areas ───────── */

.practice {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.practice-tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 4px;
  background: var(--bone-warm);
}
.practice-tab {
  padding: 10px 22px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}
.practice-tab.is-active {
  background: var(--navy-900);
  color: var(--bone);
}

.practice-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule-strong);
}

.practice-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 40px;
  padding: 32px 0;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 0.4s ease, background 0.4s ease;
  position: relative;
}
.practice-row:hover { padding-left: 24px; padding-right: 24px; }
.practice-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--gold);
  transition: width 0.4s ease;
}
.practice-row:hover::before { width: 4px; }

.practice-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.practice-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: transform 0.4s ease;
}
.practice-row:hover .practice-name { transform: translateX(8px); }
.practice-name em { font-style: italic; color: var(--gold-deep); }
[data-theme="dark"] .practice-name em { color: var(--gold-bright); }

.practice-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 50ch;
}
.practice-arrow {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--ink-soft);
  transition: transform 0.4s ease, color 0.4s ease;
}
.practice-row:hover .practice-arrow { transform: translateX(8px); color: var(--gold-deep); }

@media (max-width: 800px) {
  .practice-row { grid-template-columns: auto 1fr; gap: 16px; }
  .practice-num { grid-row: 1; }
  .practice-name { grid-row: 1; grid-column: 2; }
  .practice-desc { grid-row: 2; grid-column: 1 / -1; }
  .practice-arrow { display: none; }
}

/* ───────── Manifesto / scroll-driven ───────── */

.manifesto {
  background: var(--navy-900);
  color: var(--bone);
  padding: clamp(120px, 16vw, 200px) clamp(24px, 4vw, 80px);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 50%, rgba(201,167,95,0.08), transparent 60%);
  pointer-events: none;
}

.manifesto-text {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.5vw, 110px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  position: relative;
  z-index: 2;
}
.manifesto-text .word {
  display: inline-block;
  transition: color 0.3s ease, opacity 0.3s ease;
  color: rgba(245, 240, 230, 0.18);
}
.manifesto-text .word.lit { color: var(--bone); }
.manifesto-text .word.gold { color: var(--gold); font-style: italic; }

.manifesto-foot {
  display: flex; justify-content: space-between; align-items: end;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 240, 230, 0.15);
  position: relative; z-index: 2;
  flex-wrap: wrap; gap: 32px;
}
.manifesto-foot-block { max-width: 36ch; }
.manifesto-foot-block-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.manifesto-foot-block-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.75);
}

/* ───────── Case results ───────── */

.results {
  background: var(--bone);
  border-top: 1px solid var(--rule);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.result-cell {
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s ease;
}
.result-cell:hover { background: var(--bone-warm); }
.result-cell:nth-child(4n) { border-right: 0; }

.result-amount {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.result-amount em {
  font-size: 0.55em; vertical-align: top;
  font-style: normal;
  color: var(--gold-deep);
  margin-right: 4px;
}
[data-theme="dark"] .result-amount em { color: var(--gold-bright); }

.result-type {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  margin-top: 16px;
  letter-spacing: -0.01em;
}
.result-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

.results-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 32px;
  max-width: 80ch;
  line-height: 1.6;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .result-cell:nth-child(4n) { border-right: 1px solid var(--rule); }
  .result-cell:nth-child(2n) { border-right: 0; }
}

/* ───────── Attorneys ───────── */

.attorneys {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.attorneys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.attorney-card {
  position: relative;
  background: var(--bone-warm);
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
}
.attorney-portrait {
  aspect-ratio: 4/5;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center 12%;
  position: relative;
  overflow: hidden;
}
.attorney-portrait--gabriel {
  background-image: linear-gradient(180deg, rgba(8,17,31,0.20) 0%, rgba(8,17,31,0.55) 55%, rgba(8,17,31,0.92) 100%), url('/img/gabriel-dileonardo.png');
}
.attorney-portrait--kevin {
  background-image: linear-gradient(180deg, rgba(8,17,31,0.20) 0%, rgba(8,17,31,0.55) 55%, rgba(8,17,31,0.92) 100%), url('/img/kevin-shaw.jpg');
  background-position: center 8%;
}
.attorney-portrait::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(201,167,95,0.05) 0,
    rgba(201,167,95,0.05) 1px,
    transparent 1px,
    transparent 16px);
  pointer-events: none;
}
.attorney-portrait-label {
  position: absolute; left: 24px; top: 24px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,230,0.55);
}
.attorney-portrait-name {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1;
}
.attorney-portrait-name em { font-style: italic; color: var(--gold); }

.attorney-meta {
  padding: 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
}
.attorney-bars { display: flex; gap: 6px; flex-wrap: wrap; }
.attorney-bar {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}
.attorney-role {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
[data-theme="dark"] .attorney-role { color: var(--gold-bright); }
.attorney-bio {
  font-size: 14px; line-height: 1.6; color: var(--ink-soft);
  max-width: 44ch;
}
.attorney-cta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px; align-self: start;
  white-space: nowrap;
}
.attorney-bottom {
  padding: 0 28px 28px;
}

@media (max-width: 900px) {
  .attorneys-grid { grid-template-columns: 1fr; }
}

/* ───────── Testimonials ───────── */

.testimonials {
  background: var(--bone-warm);
  border-top: 1px solid var(--rule);
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.t-card {
  background: var(--paper);
  padding: 36px 32px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  min-height: 360px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.t-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(10, 22, 40, 0.18);
}
.t-stars {
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 20px;
}
.t-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
}
.t-quote::before { content: '“'; color: var(--gold); margin-right: 4px; }
.t-quote::after { content: '”'; color: var(--gold); margin-left: 4px; }
.t-foot {
  display: flex; justify-content: space-between; align-items: end;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.t-name { font-weight: 600; font-size: 14px; }
.t-case {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
.t-source {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .t-grid { grid-template-columns: 1fr; }
}

/* ───────── Insights ───────── */

.insights {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.insights-list { display: grid; grid-template-columns: 1fr; }
.insight-row {
  display: grid;
  grid-template-columns: 120px 1fr 2fr 100px;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease, padding 0.3s ease;
}
.insight-row:hover { padding-left: 16px; }
.insight-row:last-child { border-bottom: 1px solid var(--rule); }
.insight-date {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft);
}
.insight-cat {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
}
[data-theme="dark"] .insight-cat { color: var(--gold-bright); }
.insight-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.insight-arrow { text-align: right; color: var(--ink-soft); font-family: var(--font-serif); font-size: 24px; }

@media (max-width: 900px) {
  .insight-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .insight-arrow { display: none; }
}

/* ───────── FAQ ───────── */

.faq {
  background: var(--bone);
  border-top: 1px solid var(--rule);
}
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq-row {
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.faq-q {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 24px;
  padding: 28px 0;
  align-items: center;
}
.faq-q-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--ink-soft); }
.faq-q-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.faq-q-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: transform 0.3s ease, background 0.3s ease;
}
.faq-row.is-open .faq-q-toggle {
  transform: rotate(45deg);
  background: var(--navy-900); color: var(--bone); border-color: var(--navy-900);
}
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.faq-row.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  padding-left: 84px; padding-right: 60px;
}
.faq-a-text {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  padding-bottom: 28px;
  max-width: 70ch;
}

@media (max-width: 700px) {
  .faq-q { grid-template-columns: 36px 1fr 36px; gap: 12px; }
  .faq-a-inner { padding-left: 48px; padding-right: 0; }
}

/* ───────── Contact CTA ───────── */

.contact {
  background: var(--navy-900);
  color: var(--bone);
  padding: clamp(100px, 14vw, 180px) clamp(24px, 4vw, 80px);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201,167,95,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(201,167,95,0.08), transparent 60%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  position: relative; z-index: 2;
}
.contact-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.contact-headline em { color: var(--gold); font-style: italic; }
.contact-lede {
  margin-top: 32px;
  font-size: 18px; line-height: 1.55;
  color: rgba(245, 240, 230, 0.75);
  max-width: 50ch;
}
.contact-side { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
.contact-card {
  border: 1px solid rgba(245, 240, 230, 0.18);
  padding: 28px;
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-card:hover { border-color: var(--gold); background: rgba(201,167,95,0.06); }
.contact-card-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 240, 230, 0.6);
}
.contact-card-value {
  font-family: var(--font-serif);
  font-size: 28px; letter-spacing: -0.02em;
}
.contact-card-sub {
  font-size: 13px; color: rgba(245, 240, 230, 0.6);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ───────── Footer ───────── */

.foot {
  background: var(--navy-900);
  color: var(--bone);
  padding: 60px clamp(24px, 4vw, 80px) 32px;
  border-top: 1px solid rgba(245, 240, 230, 0.1);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 60px;
}
.foot-brand {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 32ch;
}
.foot-brand-mark { width: 56px; height: 56px; }
.foot-brand-text {
  font-family: var(--font-serif);
  font-size: 28px; letter-spacing: -0.02em;
  font-weight: 400;
}
.foot-brand-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 240, 230, 0.5);
}
.foot-blurb { font-size: 14px; line-height: 1.55; color: rgba(245, 240, 230, 0.65); }
.foot-col-title {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.foot-col-list { display: flex; flex-direction: column; gap: 10px; }
.foot-col-list a {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.7);
  transition: color 0.2s;
}
.foot-col-list a:hover { color: var(--bone); }
.foot-bar {
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245, 240, 230, 0.45);
}
.foot-disclaimer {
  margin-top: 24px;
  font-size: 11px; line-height: 1.6;
  color: rgba(245, 240, 230, 0.4);
  max-width: 100ch;
}

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ───────── Modal ───────── */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 17, 31, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); }
.modal-side {
  background: var(--navy-900);
  color: var(--bone);
  padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.modal-side::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(201,167,95,0.15), transparent 60%);
}
.modal-side-content { position: relative; z-index: 2; }
.modal-side-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.65);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.15);
}
.modal-side-eyebrow em { font-style: italic; color: var(--gold); }
.modal-side-title {
  font-family: var(--font-serif);
  font-size: 30px; line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 400;
  margin-top: 24px;
}
.modal-side-title em { color: var(--gold); font-style: italic; }
.modal-side-list {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-side-list-item {
  font-size: 13px; color: rgba(245,240,230,0.85);
  display: flex; gap: 10px; align-items: start;
}
.modal-side-list-item::before {
  content: ''; width: 8px; height: 1px;
  background: var(--gold); margin-top: 9px;
  flex-shrink: 0;
}

.modal-form {
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(245, 240, 230, 0.08);
  color: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  z-index: 3;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(245, 240, 230, 0.18); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field-input, .field-select, .field-textarea {
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  transition: border-color 0.2s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: var(--gold);
}
.field-textarea { resize: vertical; min-height: 80px; }
.field-options {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.field-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  text-align: left;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.field-chip.is-active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--bone);
}
.modal-submit {
  background: var(--gold);
  color: var(--navy-900);
  padding: 14px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  margin-top: 8px;
  transition: background 0.2s;
}
.modal-submit:hover { background: var(--gold-bright); }

.modal-success {
  padding: 60px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  grid-column: 1 / -1;
  background: var(--paper);
  color: var(--ink);
}
.modal-success-mark {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900);
  font-size: 28px;
}

@media (max-width: 700px) {
  .modal { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; }
  .modal-side { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ───────── Logo animation ───────── */

.logo-reveal path,
.logo-reveal line,
.logo-reveal circle {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: stroke-draw 2.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}
@keyframes stroke-draw { to { stroke-dashoffset: 0; } }

/* ───────── Scroll reveal ───────── */

.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ───────── Floating contact pill ───────── */

.float-cta {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 50;
  background: var(--gold);
  color: var(--navy-900);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px -8px rgba(10, 22, 40, 0.4);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(80px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
  cursor: pointer;
}
.float-cta.is-visible { transform: translateY(0); }
.float-cta:hover { background: var(--gold-bright); }
.float-cta-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy-900);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ───────── Misc ───────── */

::selection { background: var(--gold); color: var(--navy-900); }

/* ───────── Mobile polish & dark-section nav fix ───────── */

/* Bleed prevention: grid/flex items must be allowed to shrink below content min-width */
.hero-body > *,
.contact-grid > *,
.attorneys-grid > *,
.foot-grid > *,
.practice-row > *,
.results-grid > *,
.t-grid > *,
.insights-list > * { min-width: 0; }

.contact-grid > div,
.contact-headline,
.contact-lede,
.hero-headline { overflow-wrap: break-word; word-break: normal; }

.contact-grid,
.foot-grid,
.attorneys-grid { width: 100%; }

/* Nav: when scrolled over a dark section, use a dark backdrop instead of cream */
.nav.is-scrolled.on-dark {
  background: color-mix(in oklab, var(--navy-900) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(245, 240, 230, 0.10);
}

/* Keep brand and CTA on single lines so neither wraps awkwardly */
.nav-brand,
.nav-cta { white-space: nowrap; }

/* Contact CTA row uses class instead of inline flex so we can target it on mobile */
.contact-cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero CTAs wrap if needed */
.hero-cta-row { flex-wrap: wrap; }

@media (max-width: 720px) {
  /* Hero meta — wrap into a tidy stack rather than crashing into each other */
  .hero-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 18px;
    font-size: 10px;
    padding-bottom: 28px;
  }
  .hero-meta-dot { flex: 1 1 100%; }
  .hero-meta > span { flex: 0 0 auto; }

  /* Hero body cleaner spacing & sizing */
  .hero { padding-top: 96px; }
  .hero-headline { font-size: clamp(48px, 13vw, 80px); }

  /* Marquee — perceived faster motion on small screens */
  .marquee { padding: 16px 0; }
  .marquee-track { animation-duration: 12s; gap: 36px; }
  .marquee-track span { gap: 36px; font-size: clamp(22px, 5vw, 32px); }
  .marquee-dot { width: 6px; height: 6px; }

  /* Buttons stack full-width on mobile to prevent right-edge overflow */
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .contact-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .contact-cta-row .btn { width: 100%; justify-content: center; }

  /* Tighter button padding on mobile */
  .btn { padding: 14px 22px; font-size: 13px; }
}

@media (max-width: 600px) {
  /* Hide brand wordmark text on phones — logo PNG is enough */
  .nav-brand span { display: none; }
  .nav { padding: 14px clamp(16px, 4vw, 24px); }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
  .nav-cta-dot { width: 5px; height: 5px; }
}

/* ─────── Contact section — mobile bleed fix (definitive) ─────── */
@media (max-width: 760px) {
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }
  .contact-grid {
    max-width: 100% !important;
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .contact-grid > * { min-width: 0; max-width: 100%; }

  .contact-headline {
    font-size: clamp(34px, 9vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .contact-lede {
    font-size: 15px;
    line-height: 1.55;
    max-width: 100%;
  }

  .contact-side { width: 100%; }
  .contact-card { max-width: 100%; padding: 22px 20px; }
  .contact-card-value {
    font-size: clamp(18px, 5.4vw, 24px);
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }
  .contact-card-sub { font-size: 12px; }
}

/* Hero headline — tighter mobile cap so it never bleeds right */
@media (max-width: 760px) {
  .hero-headline {
    font-size: clamp(44px, 12vw, 72px);
    line-height: 0.98;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* Manifesto / FAQ / Insights titles — same defensive treatment */
@media (max-width: 760px) {
  .manifesto-text {
    font-size: clamp(32px, 8.5vw, 56px);
    word-break: normal;
    overflow-wrap: break-word;
  }
  .faq-q-text, .insight-title { overflow-wrap: break-word; }
}
