/* Layout: Saltiel Law Group's black-and-white system, one red rule as the only accent; one reading column per view. */
:root {
  --bg: #000000;
  --band: #111212;
  --surface: #1a1a1a;
  --line: #333333;
  --ink: #ffffff;
  --muted: #b1b1b1;
  --red: #e1251b;
  --teal: #4b878f;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --wide: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
main:focus { outline: none; }

.lang-switch { border: 1px solid var(--line); margin-left: 6px; letter-spacing: 0.06em; font-weight: 600; }
.lang-switch:hover { border-color: var(--red); }

/* Masthead */
.masthead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-block: 16px;
}
.wordmark { color: var(--ink); text-decoration: none; display: grid; gap: 4px; }
.wordmark b { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; line-height: 1.1; }
.wordmark small {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding-top: 5px; border-top: 2px solid var(--red); width: max-content;
}
.nav-scroll { overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
nav a {
  display: block; padding: 8px 12px; font-size: 0.9rem; font-weight: 500;
  color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* Views */
main { padding-block: 64px 80px; }
.view { display: grid; gap: 64px; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; max-width: 17ch; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
.lede { font-size: 1.18rem; max-width: var(--measure); color: var(--ink); }
.prose { display: grid; gap: 1.05em; max-width: var(--measure); color: #e6e6e6; }
.muted { color: var(--muted); }
.section-head { display: grid; gap: 12px; margin-bottom: 28px; max-width: var(--measure); }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

.hero { display: grid; gap: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn {
  display: inline-block; padding: 13px 22px; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid var(--ink);
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.secondary { color: var(--ink); background: transparent; }
.btn:hover { border-color: var(--red); }
.badge { font-size: 0.86rem; color: var(--muted); }
.badge b { color: var(--ink); font-weight: 600; }

/* Home hero with photo */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: end; }
.photo { background: #ffffff; max-width: 100%; aspect-ratio: 560 / 548; overflow: hidden; border-bottom: 4px solid var(--red); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-grid .photo { max-width: 300px; order: -1; } }

/* Coral Gables photo */
body { overflow-x: clip; }
.hero-band, .photo-band {
  position: relative; margin-inline: calc(50% - 50vw);
  padding-left: max(16px, calc(50vw - var(--wide) / 2 + 16px), env(safe-area-inset-left, 0px));
  padding-right: max(16px, calc(50vw - var(--wide) / 2 + 16px), env(safe-area-inset-right, 0px));
  background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.88) 45%, rgba(0,0,0,0.55) 100%), url("/img/coral-gables.jpg");
  background-size: cover; background-position: center 35%;
}
.hero-band { margin-top: -64px; padding-block: 72px 56px; border-bottom: 1px solid var(--line); }
.photo-band { height: 220px; background-image: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.75)), url("/img/coral-gables.jpg"); background-position: center 30%; border-block: 1px solid var(--line); }
.photo-credit { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 10px; font-size: 0.7rem; color: rgba(255,255,255,0.75); text-shadow: 0 1px 2px #000; }
.photo-band .photo-credit { right: max(16px, calc(50vw - var(--wide) / 2 + 16px)); }
.badge a { color: var(--ink); text-decoration-color: var(--red); }
@media (max-width: 820px) {
  .hero-band { background-image: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.92) 45%, rgba(0,0,0,0.97) 100%), url("/img/coral-gables.jpg"); background-position: center top; background-size: 100% auto; background-repeat: no-repeat; }
  .photo-band { height: 150px; }
}

/* Service icons */
.svc-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); margin-bottom: 6px; }
.svc-icon svg { width: 22px; height: 22px; }
.practice-grid article:hover .svc-icon { border-color: var(--red); }
.halves h3 .svc-icon { display: none; }

/* Fact strip */
.facts-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts-strip div { padding: 18px 18px 20px 0; min-width: 0; }
.facts-strip dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts-strip dd { margin: 6px 0 0; font-size: 0.98rem; font-weight: 500; }
dl { margin: 0; }
@media (max-width: 860px) { .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Two halves */
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.halves article { padding: 32px; display: grid; gap: 12px; align-content: start; background: var(--band); }
.halves article + article { border-left: 1px solid var(--line); }
.halves ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
@media (max-width: 760px) { .halves { grid-template-columns: 1fr; } .halves article + article { border-left: 0; border-top: 1px solid var(--line); } .halves article { padding: 24px; } }

/* Client reviews marquee */
.reviews-band { display: grid; gap: 18px; }
.marquee { overflow: hidden; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; }
.review {
  width: min(380px, 78vw); flex: none; margin: 0; background: var(--band); border: 1px solid var(--line);
  padding: 24px; display: grid; gap: 14px; align-content: space-between;
}
.review .stars { color: var(--red); letter-spacing: 0.18em; font-size: 0.9rem; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: #e8e8e8; }
.review figcaption { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 70s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track .dup { display: none; }
}
.marquee-controls { display: flex; justify-content: flex-end; }
.marquee.paused .marquee-track { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .marquee-controls { display: none; } }
.reviews-note { font-size: 0.82rem; color: var(--muted); max-width: 80ch; }

/* Result entries */
.entries { display: grid; border-top: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 8px 32px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.entry .tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.entry p { max-width: var(--measure); }
@media (max-width: 680px) { .entry { grid-template-columns: 1fr; } }
.group-title { margin: 48px 0 14px; }
.group-title:first-of-type { margin-top: 8px; }

/* Practice grid */
.practice-block + .practice-block { margin-top: 56px; }
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.practice-grid article { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.practice-grid p { color: #e0e0e0; }
.practice-grid ul { margin: 2px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) { .practice-grid { grid-template-columns: 1fr; } }

/* About */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
@media (max-width: 820px) { .about-top { grid-template-columns: 1fr; } .about-top .photo { max-width: 280px; order: -1; } }
.title-line { color: var(--muted); font-size: 1.05rem; font-weight: 500; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 6px 32px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: 0.85rem; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline .what { display: grid; gap: 4px; }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 44px; }
.facts section { display: grid; gap: 10px; align-content: start; }
.facts h3 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--red); width: max-content; }
.facts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.97rem; }

/* Insights */
.articles { display: grid; border-top: 1px solid var(--line); }
.article { padding-block: 26px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.article .meta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.article h2, .article h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.article p { max-width: var(--measure); color: #e0e0e0; }

.article .read-more { font-size: 0.88rem; font-weight: 600; }

/* Article pages */
.post { display: grid; gap: 40px; max-width: 760px; }
.crumbs { font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.post-head { display: grid; gap: 14px; }
.post-head h1 { max-width: 22ch; }
.post-sub { font-size: 1.25rem; color: #e0e0e0; }
.post-meta { font-size: 0.88rem; color: var(--muted); }
.post-meta a { color: var(--ink); }
.post-body { display: grid; gap: 1.15em; font-size: 1.06rem; line-height: 1.72; color: #e6e6e6; }
.post-body h2 { margin-top: 1.2em; padding-top: 18px; border-top: 2px solid var(--red); width: 100%; font-size: clamp(1.4rem, 2.8vw, 1.8rem); }
.post-body ul, .post-body ol { margin: 0; padding-left: 1.4em; display: grid; gap: 0.6em; }
.post-body a { color: var(--ink); }
.post-body strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.94rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--surface); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.table-wrap tbody th { color: var(--ink); font-weight: 600; width: 28%; }
.article-figure { margin: 0.6em 0; display: grid; gap: 12px; }
.article-figure figcaption { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.chart { background: var(--band); border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; }
.chart-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.bar-row, .bar-axis { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 0.9rem; }
.bar { display: flex; justify-content: flex-end; align-items: center; width: var(--w); background: #3a3a3a; color: var(--ink); padding: 6px 10px; font-size: 0.86rem; font-variant-numeric: tabular-nums; min-width: 0; }
.bar-row.hl .bar { background: var(--red); }
.bar-row.hl span:first-child { color: var(--ink); font-weight: 600; }
.ticks { position: relative; height: 18px; font-size: 0.72rem; color: var(--muted); font-style: normal; border-top: 1px solid var(--line); }
.ticks i { position: absolute; top: 4px; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.ticks i:first-child { transform: none; }
.ticks i:last-child { transform: translateX(-100%); }
.bar-axis .ticks i:last-child { transform: translateX(-50%); }
.span-row, .span-axis { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 0.86rem; }
.span-label { color: #e0e0e0; line-height: 1.3; }
.span-bar { display: flex; min-height: 40px; }
.seg { width: var(--w); display: flex; align-items: center; justify-content: center; text-align: center; font-style: normal; font-size: 0.78rem; line-height: 1.25; padding: 4px 6px; min-width: 0; }
.seg.dark { background: #555; color: #fff; }
.seg.red { background: var(--red); color: #fff; font-weight: 600; }
.seg.black { background: #f2f2f2; color: #000; font-weight: 600; }
.seg.grey { background: #8a8a8a; color: #000; }
.seg.hatch { background: repeating-linear-gradient(135deg, transparent 0 8px, #444 8px 10px); border: 1px solid #555; color: var(--muted); }
.flow { gap: 18px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.flow-steps li { background: var(--surface); border: 1px solid var(--line); padding: 14px; font-weight: 600; font-size: 0.92rem; line-height: 1.35; color: var(--ink); position: relative; }
.flow-steps li.key { background: var(--ink); color: var(--bg); }
.flow-steps li + li::before { content: "→" / ""; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%); color: var(--muted); }
.flow-mid { font-size: 0.92rem; color: #e0e0e0; }
.flow-grounds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-grounds li { border-left: 4px solid var(--red); background: var(--surface); padding: 12px 14px; font-size: 0.9rem; line-height: 1.4; }
@media (max-width: 640px) {
  .chart { padding: 16px; }
  .flow-steps, .flow-grounds { grid-template-columns: 1fr; }
  .flow-steps li + li::before { content: "↓" / ""; left: 50%; top: -12px; }
  .bar-row, .bar-axis, .span-row, .span-axis { grid-template-columns: 1fr; gap: 4px; }
  .bar-axis > span:first-child, .span-axis > span:first-child { display: none; }
  .bar-row { margin-bottom: 4px; }
  .span-row { margin-bottom: 8px; }
  .span-bar { min-height: 48px; }
  .seg { font-size: 0.7rem; padding: 3px 4px; }
  .seg.dark { font-size: 0; }
  .ticks i.minor { display: none; }
}
.post-cta { background: var(--band); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 24px; display: grid; gap: 12px; }
.post-author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; border-top: 1px solid var(--line); padding-top: 28px; }
.post-author img { width: 96px; height: 96px; object-fit: cover; background: #fff; }
.post-author p { color: #e0e0e0; font-size: 0.95rem; }
.post-author .who { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.post-sources h2 { font-size: 1.1rem; margin-bottom: 10px; }
.post-sources ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.post-sources a { color: #e0e0e0; }
.post-disclaimer { font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.faq-group { font-size: 1.25rem; margin: 40px 0 6px; }
.faq-group:first-of-type { margin-top: 0; }
.faq + .faq-group { margin-top: 44px; }
.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.12rem; font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.5rem; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 24px; max-width: var(--measure); color: #e0e0e0; }

/* Contact */
.contact-card { background: var(--band); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 30px; display: grid; gap: 22px; max-width: 660px; }
.contact-row { display: grid; gap: 4px; }
.contact-row .label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-row .value { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 500; }
.contact-row .value span { user-select: all; overflow-wrap: anywhere; }
.copy { font: 600 0.74rem var(--sans); letter-spacing: 0.06em; padding: 5px 10px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.copy:hover { color: var(--ink); border-color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--band); }
footer .wrap { padding-block: 34px 42px; display: grid; gap: 14px; font-size: 0.85rem; color: var(--muted); }
footer .wrap p { max-width: 82ch; }
footer strong { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .view:not([hidden]) { animation: rise 0.35s ease-out both; }
  @keyframes rise { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
