/* ------------------------------------------------------------------
   Law Office of Thomas Jacob: homepage ("The Arrival")
   Light, living opening; navy where credibility is shown; one star
   particle system that follows the visitor and ends in the gavel.
   ------------------------------------------------------------------ */

:root {
  --navy: #2e3a5f;
  --navy-deep: #222c4a;
  --navy-night: #1b2440;
  --red: #be2a3c;
  --red-bright: #e0485a;
  --paper: #f7f5f0;
  --paper-2: #efece5;
  --white: #ffffff;
  --hair: #e3e0d8;
  --ink: #1f2430;
  --muted: #5f6577;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c2d8;
  --navy-line: rgba(255, 255, 255, .16);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-navy :focus-visible { outline-color: var(--white); }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 50; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
section { position: relative; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.018em; line-height: 1.06; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 52px); color: var(--navy); }
.on-navy h2 { color: var(--on-navy); }
p { margin: 0; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.pill--navy { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px -14px rgba(34, 44, 74, .7); }
.pill--navy:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(34, 44, 74, .75); }
.pill--white { background: var(--white); color: var(--navy-deep); }
.pill--white:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6); }
.link { font-weight: 600; font-size: 15.5px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; color: var(--navy); }
.link:hover { text-decoration-thickness: 2px; }
.on-navy .link { color: var(--on-navy); }

/* Particle canvas: above section grounds, below all content */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------------- Header ---------------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s, box-shadow .3s, transform .35s var(--ease); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 100px; }
.header.is-scrolled { background: rgba(247, 245, 240, .92); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); box-shadow: 0 1px 0 var(--hair); }

.header.on-dark:not(.is-open) { background: rgba(27, 36, 64, .9); box-shadow: 0 1px 0 var(--navy-line); }
.header.on-dark:not(.is-open) .nav a:not(.pill) { color: var(--on-navy); }
.header.on-dark:not(.is-open) .brand-logo { filter: brightness(0) invert(1); }
.header.on-dark:not(.is-open) .pill--navy { background: var(--white); color: var(--navy-deep); }
.header.on-dark:not(.is-open) .nav-toggle { color: var(--on-navy); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-logo { width: 164px; height: auto; transition: filter .3s; }
.nav { display: flex; align-items: center; gap: clamp(24px, 3.2vw, 48px); }
.nav a:not(.pill) { font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .3s; }
.nav a:not(.pill):hover { background-size: 100% 1px; }
.nav .pill { min-height: 46px; padding: 0 26px; font-size: 15px; margin-left: clamp(4px, 1vw, 12px); }
.nav-toggle { display: none; appearance: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--navy); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: calc(100px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 24px; background: var(--paper); box-shadow: 0 24px 40px -24px rgba(34, 44, 74, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .header.is-open .nav { opacity: 1; transform: none; visibility: visible; }
  .header.is-open { background: var(--paper); }
  .nav a:not(.pill) { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav .pill { margin-top: 20px; min-height: 52px; }
  .brand-logo { width: 128px; }
}

/* ---------------- Hero ---------------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(124px + env(safe-area-inset-top, 0px)) 0 calc(40px + env(safe-area-inset-bottom, 0px)); overflow: hidden; background: var(--paper); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media video { opacity: 0; transition: opacity 1.4s ease; }
.hero-media video.is-on { opacity: 1; }
.hero-media .poster { animation: drift 24s ease-in-out infinite alternate; transform-origin: 70% 40%; filter: saturate(.92) sepia(.08); }
.hero-media video { filter: saturate(.92) sepia(.08); }
@keyframes drift { to { transform: scale(1.06) translateX(-1.2%); } }
.hero-wash { position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(90deg, rgba(247, 245, 240, .96) 0%, rgba(247, 245, 240, .9) 32%, rgba(247, 245, 240, .45) 52%, rgba(247, 245, 240, .05) 72%),
  linear-gradient(180deg, rgba(247, 245, 240, .35) 0%, rgba(247, 245, 240, 0) 30%, rgba(247, 245, 240, 0) 70%, rgba(247, 245, 240, .9) 100%); }
.hero .wrap { flex: 1; display: grid; grid-template-rows: 1fr auto; align-items: center; gap: 40px; }
.hero-copy { display: grid; gap: 22px; max-width: 620px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -.028em; color: var(--navy-deep); font-weight: 500; }
.hero .lede { font-size: clamp(17px, 1.5vw, 19px); color: #3f4659; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 4vw, 52px); }
.proof li { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.proof strong { font-size: 14.5px; font-weight: 600; color: var(--navy-deep); }
@media (max-width: 760px) {
  .hero { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
  .hero-wash { background: linear-gradient(180deg, rgba(247, 245, 240, .9) 0%, rgba(247, 245, 240, .82) 55%, rgba(247, 245, 240, .96) 100%); }
  .proof { display: grid; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero-media .poster { animation: none; } }

/* ---------------- Practice areas ---------------- */
.practice { padding: var(--section) 0; background: var(--paper); }
.practice .head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.practice .head p { color: var(--muted); max-width: 52ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--hair); }
.tabs button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 18px 16px; font: 600 15.5px var(--sans); color: var(--muted); cursor: pointer; transition: color .2s, border-color .3s var(--ease); border-radius: 0; }
.tabs button:first-child { padding-left: 0; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .n { margin-left: 8px; font-weight: 500; color: #6b7083; font-variant-numeric: tabular-nums; }
.panel { padding-top: 18px; }
.panel[hidden] { display: none; }
.panel .intro { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } .tabs button { padding: 12px 12px 14px; } }
.svc { border-bottom: 1px solid var(--hair); }
.svc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; font-weight: 500; font-size: 16.5px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary:hover { color: var(--navy); }
.pm { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); color: var(--navy); transition: transform .35s var(--ease), background-color .25s, border-color .25s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.pm::before { width: 10px; height: 1.5px; }
.pm::after { width: 1.5px; height: 10px; }
.svc[open] .pm { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); color: var(--white); }
.svc .body { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.svc .body a { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--navy); text-underline-offset: 4px; }
.panel .more { display: inline-block; margin-top: 28px; }

/* ---------------- Navy block: steps + attorney ---------------- */
.on-navy { color: var(--on-navy); }
.steps { padding: var(--section) 0 calc(var(--section) * .4); background: var(--navy-deep); }
.steps .sub { margin-top: 14px; color: var(--on-navy-muted); font-size: 18px; }
.constel { --draw: 0; --gap: clamp(24px, 3vw, 40px); position: relative; list-style: none; margin: clamp(52px, 7vw, 84px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.constel::before { content: ""; position: absolute; left: 13px; right: calc((100% - 3 * var(--gap)) / 4 - 13px); top: 13px; height: 1px; background: rgba(255, 255, 255, .55); transform-origin: left center; transform: scaleX(var(--draw)); }
.constel li { position: relative; padding-top: 52px; }
.constel .star { position: absolute; top: 0; left: 0; width: 26px; height: 26px; fill: rgba(255, 255, 255, .35); transition: fill .5s ease, filter .5s ease, transform .5s var(--ease); }
.constel li.is-lit .star { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55)); transform: scale(1.06); }
.constel .num { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; color: var(--on-navy-muted); margin-bottom: 10px; }
.constel h3 { font-family: var(--sans); font-size: 18.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; text-wrap: pretty; }
.constel p { margin-top: 10px; color: var(--on-navy-muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .constel { grid-template-columns: 1fr; --gap: 40px; }
  .constel::before { left: 13px; right: auto; top: 13px; bottom: 40px; width: 1px; height: auto; transform-origin: center top; transform: scaleY(var(--draw)); }
  .constel li { padding: 0 0 0 56px; }
}
.steps .pill { margin-top: clamp(40px, 5vw, 56px); }
@media (max-width: 900px) {
  .constel { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 560px) {
  .constel { grid-template-columns: 1fr; }
  .constel li { padding: 0 0 0 52px; }
  .constel li .star, .constel li:nth-child(n) .star { top: 0; left: 0; }
}

.attorney { padding: calc(var(--section) * .4) 0 var(--section); background: var(--navy-deep); }
.attorney .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.attorney .rule { display: block; width: 48px; height: 2px; background: var(--red); margin: 20px 0 24px; }
.attorney .kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); }
.attorney .prose p { color: var(--on-navy-muted); font-size: 16.5px; max-width: 60ch; }
.attorney .prose p + p { margin-top: 14px; }
.cred { display: flex; align-items: center; gap: 14px; margin: 26px 0 30px; padding: 14px 0; border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); font-size: 14.5px; }
.cred .badge { width: 40px; height: 40px; flex: none; background: var(--white); -webkit-mask: url("../img/aila.png") center / contain no-repeat; mask: url("../img/aila.png") center / contain no-repeat; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (max-width: 860px) { .attorney .grid { grid-template-columns: 1fr; } }

/* The existing layered 3D card, unchanged in construction */
.attorney-photo { margin: 0 auto; position: relative; aspect-ratio: 4 / 5; width: min(100%, 380px); --d: 30px; --r: 18px; transform-style: preserve-3d; animation: rock 9s ease-in-out infinite alternate; }
.attorney-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); transform: translateZ(calc(var(--d) / 2)); backface-visibility: hidden; }
.attorney-photo::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; transform: translateZ(calc(var(--d) / 2 + 1px)); background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 30%, rgba(255,255,255,0) 55%, rgba(18,22,36,.34)); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 2px 0 0 rgba(255,255,255,.3), inset -22px -26px 48px rgba(18,22,36,.34), inset 0 -2px 0 rgba(18,22,36,.25); }
.slice { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; transform: translateZ(calc(var(--d) / 2 - var(--z) * 2px)); backface-visibility: hidden; filter: brightness(calc(1 - var(--z) * 0.022)); }
.slice::before { content: ""; position: absolute; inset: -40px; background: url("../img/thomas-jacob-2026.jpg") center 30% / cover no-repeat; filter: blur(22px) brightness(.9); }
.slice-last { box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .55), 0 0 90px 10px rgba(120, 150, 220, .16), 0 0 30px rgba(255, 255, 255, .08); }
@keyframes rock { from { transform: perspective(1500px) rotateX(-3deg) rotateY(5deg); } to { transform: perspective(1500px) rotateX(-3deg) rotateY(17deg); } }
@media (prefers-reduced-motion: reduce) { .attorney-photo { animation: none; transform: perspective(1500px) rotateX(-3deg) rotateY(11deg); } }

/* ---------------- Reviews ---------------- */
.reviews { padding: var(--section) 0; background: var(--navy); }
.reviews .inner { max-width: 1120px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: clamp(22px, 3vw, 34px); }
.reviews .inner > h2 { color: var(--white); }
.reviews .inner > .redrule { margin: -10px auto 0; }
.reviews .rating { margin-top: -4px; }
.rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; font-size: 14.5px; color: var(--on-navy-muted); }
.rating .five { display: flex; gap: 3px; }
.rating .five svg { width: 17px; height: 17px; fill: var(--white); }
.rating b { color: var(--white); font-weight: 600; }
.rating a { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.quote::before { content: "\201C"; } .quote::after { content: "\201D"; }
.quote { margin: 0; font: 400 clamp(18px, 1.55vw, 21px)/1.42 var(--serif); letter-spacing: -.01em; color: var(--white); text-wrap: pretty; transition: opacity .35s ease, transform .5s var(--ease); }
.quote mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: rgba(255, 255, 255, .45); }
.who { display: grid; gap: 2px; justify-items: center; transition: opacity .35s ease; }
.who strong { font-weight: 600; }
.who span { color: var(--on-navy-muted); font-size: 14px; }
.qbar { display: flex; justify-content: center; }
.qctrl { display: flex; align-items: center; gap: 12px; }
.count { min-width: 3.4em; text-align: center; font-size: 13.5px; color: var(--on-navy-muted); font-variant-numeric: tabular-nums; order: 1; }
.qctrl button:first-of-type { order: 0; }
.qctrl button:last-of-type { order: 2; }
.qctrl button { appearance: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.qctrl button:hover { background: rgba(255, 255, 255, .22); }
.qctrl svg { width: 20px; height: 20px; }
.is-fading { opacity: 0; }

/* ---------------- Book panel ---------------- */
.book { padding: var(--section) 0; background: var(--paper); text-align: center; }
.book .center { display: grid; justify-items: center; max-width: 760px; margin: 0 auto; }
.book h2 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.028em; color: var(--navy-deep); }
.book .center > p { margin-top: 22px; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 48ch; text-wrap: balance; }
.pill--lg { min-height: 56px; padding: 0 34px; font-size: 16.5px; margin-top: 34px; }
.facts { list-style: none; margin: clamp(48px, 6vw, 64px) 0 0; padding: 28px 0 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--hair); }
.facts li { display: grid; gap: 4px; font-size: 14.5px; color: var(--muted); }
.facts li + li { border-left: 1px solid var(--hair); }
.facts strong { font-weight: 600; font-size: 15.5px; color: var(--navy-deep); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 18px; } .facts li + li { border-left: 0; } }

/* ---------------- Contact (navy close) ---------------- */
.contact { padding: var(--section) 0 clamp(120px, 12vw, 160px); background: var(--navy-deep); }
@media (max-width: 859px) { .contact { padding-bottom: clamp(260px, 28vw, 340px); } }
.contact .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact .lede { margin-top: 16px; color: var(--on-navy-muted); max-width: 44ch; }
.clist { list-style: none; margin: 32px 0 0; padding: 0; }
.clist li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--navy-line); font-size: 16px; }
.clist .k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); padding-top: 3px; }
.clist small { display: block; color: var(--on-navy-muted); font-size: 15px; }
.clist a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; }
.form input, .form textarea { width: 100%; font: 16px var(--sans); color: var(--white); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 13px 15px; caret-color: var(--white); transition: border-color .2s, background-color .2s; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:hover, .form textarea:hover { border-color: rgba(255, 255, 255, .35); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--white); background: rgba(255, 255, 255, .09); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #f0a4ae; }
.form .note { grid-column: 1 / -1; font-size: 13.5px; color: var(--on-navy-muted); line-height: 1.55; }
.form .note a { color: var(--white); text-underline-offset: 3px; }
.form .send { grid-column: 1 / -1; justify-self: start; appearance: none; border: 0; cursor: pointer; }
@media (max-width: 860px) { .contact .grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------------- Footer (matches the services page) ---------------- */
.footer { position: relative; overflow: hidden; background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 10vw, 160px); font-size: 15px; }
.footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .name { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--white); }
.footer .tag { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ec6f7e; }
.footer address { margin-top: 20px; font-style: normal; font-size: 14px; line-height: 1.6; }
.footer h4 { margin: 0 0 14px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 4px; }
.footer-legal { padding-top: 24px; display: grid; gap: 10px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .5); }
.footer-legal p { max-width: 90ch; }
.footer-mark { position: absolute; left: 0; right: 0; bottom: -.22em; text-align: center; font-family: var(--serif); font-size: clamp(72px, 12vw, 190px); line-height: 1; white-space: nowrap; letter-spacing: -.03em; color: rgba(255, 255, 255, .035); pointer-events: none; user-select: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Entrance: content is visible by default; JS only adds a gentle lift */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

/* Review list: stacked without JS, one at a time with JS */
.qlist { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.qlist li { display: grid; justify-items: start; align-content: space-between; gap: 22px; text-align: left; padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px) clamp(20px, 2.2vw, 26px); border-radius: 20px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qlist li .who { justify-items: start; text-align: left; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); width: 100%; }
.js .qlist li { display: none; }
.js .qlist li.is-current { display: grid; animation: qin .5s var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .qlist { grid-template-columns: 1fr; } }

/* ---------------- Seams: clean edges between sections ----------------
   Each section is a solid block. Where the color changes, the next block has a softly
   rounded top edge and sits a little over the one above, so the change reads as designed. */
.seam { --fade: 0px; }
.practice.seam { background: var(--paper); }
.attorney.seam { background: var(--navy-deep); padding-bottom: calc(var(--section) * 1.05 + 36px) !important; }
.reviews.seam { background: var(--navy); }
.book.seam { background: var(--paper); }
.practice, .steps, .attorney, .reviews, .book, .contact { position: relative; }
.steps, .reviews, .book, .contact { --cap: 36px; border-radius: var(--cap) var(--cap) 0 0; margin-top: calc(var(--cap) * -1); z-index: 0; }
.steps { padding-top: calc(var(--section) * .55 + var(--cap)); }
.reviews { padding-top: calc(var(--section) * 1.05 + var(--cap)); padding-bottom: calc(var(--section) * 1.1); }
.book { padding-top: calc(var(--section) + var(--cap)); }
.contact { padding-top: calc(var(--section) * .55 + var(--cap)); }
@media (max-width: 700px) { .steps, .reviews, .book, .contact { --cap: 24px; } }

/* Reviews map layer */
.reviews .map { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--fade)); z-index: 1; pointer-events: none; }
@media (max-width: 760px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; }
  .clist li { grid-template-columns: 64px 1fr; font-size: 15px; }
}

/* ---------------- Red accents ---------------- */
.redrule { display: block; width: 48px; height: 2px; background: var(--red); }
.hero .redrule { margin: -4px 0 2px; }
.practice .head .redrule, .contact .redrule { margin: 4px 0 2px; }
.steps .redrule { margin: 18px 0 0; }
.book .redrule { margin: 22px auto 0; }
.contact .redrule { margin-top: 18px; }
.on-navy .redrule { background: var(--red-bright); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--red); }
.svc[open] .pm { background: var(--red); border-color: var(--red); }
.link { text-decoration-color: var(--red); }
.on-navy .link { text-decoration-color: var(--red-bright); }
.rating .five svg { fill: var(--red-bright); }
.constel li:last-child.is-lit .star { fill: var(--red-bright); filter: drop-shadow(0 0 7px rgba(224, 72, 90, .6)); }
.pill--navy:hover { background: var(--red); box-shadow: 0 16px 30px -16px rgba(190, 42, 60, .55); }
::selection { background: var(--red); color: var(--white); }
