/* Law Office of James A. Saraceni — v3.
   System: white ground, near-black ink, one signal accent used as fills and rules only.
   Newsreader (light, optical size) for headings; Hanken Grotesk for everything else.
   Rhythm comes from type scale, photography and hairlines, not from alternating bands. */

:root {
  --ink: #0E1116;
  --ink-2: #171C24;
  --ink-3: #2A313B;
  --paper: #FFFFFF;
  --stone: #F2F2EE;
  --stone-2: #E6E6E0;
  --line: #D7D7D1;
  --line-dark: #333A45;
  --body: #22272F;
  --mute: #5B616A;      /* 5.6:1 on white, 5.1:1 on stone */
  --dim: #B9BEC6;       /* on ink: 9.3:1 */
  --sig: #E9F03B;       /* signal yellow: fills and rules only. Ink on it 14:1 */
  --sig-ink: #5D6300;   /* the one text-safe shade of the accent, 6.2:1 on white */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 86rem;
  --gut: clamp(1.25rem, 4vw, 4rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--sig); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; margin: 0; color: var(--ink); font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.75rem); line-height: .98; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.04; }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.2; font-weight: 400; font-variation-settings: "opsz" 24; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
p { margin: 0; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--body); max-width: 40em; }
.dark .lede { color: var(--dim); }
.small { font-size: .9rem; color: var(--mute); }
.dark .small { color: var(--dim); }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2rem 0 .6rem; }
.prose ul { margin: 1rem 0; padding-left: 1.2rem; list-style: disc; }
.prose li + li { margin-top: .4rem; }
.link { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.link:hover { text-decoration-thickness: 2px; }
.dark .link { color: #fff; }
.kicker { font-size: .95rem; color: var(--mute); margin-bottom: 1rem; }
.dark .kicker { color: var(--dim); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.sec { padding-block: clamp(4rem, 8vw, 7.5rem); }
.sec--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stone { background: var(--stone); }
.dark { background: var(--ink); color: var(--dim); }
.sec__head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); align-items: end; }
@media (min-width: 60rem) { .sec__head { grid-template-columns: 1.2fr 1fr; } .sec__head .lede { padding-bottom: .4rem; } }
.two { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .two { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; } }
.narrow { max-width: 40rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- buttons: rectangles, not pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .75rem 1.4rem; font-weight: 500; font-size: .98rem; line-height: 1; text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: background .18s, color .18s, border-color .18s; }
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sig { background: var(--sig); border-color: var(--sig); color: var(--ink); }
.btn--sig:hover { background: #F4F86B; border-color: #F4F86B; color: var(--ink); }
.dark .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { min-height: 3.5rem; padding: .9rem 1.7rem; font-size: 1.05rem; }

/* ---------- loader: the name, once, then gone ---------- */
.loader { position: fixed; inset: 0; z-index: 60; background: var(--ink); display: grid; place-content: center; gap: 1.4rem; opacity: 1; transition: opacity .5s var(--ease), visibility 0s .5s; }
.loader__word { display: flex; gap: .04em; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1; color: #fff; letter-spacing: .06em; padding-left: .06em; }
.loader__word span { display: inline-block; opacity: 0; transform: translateY(.35em); animation: lw .7s var(--ease) forwards; }
.loader__word span:nth-child(1) { animation-delay: .05s; } .loader__word span:nth-child(2) { animation-delay: .11s; } .loader__word span:nth-child(3) { animation-delay: .17s; } .loader__word span:nth-child(4) { animation-delay: .23s; } .loader__word span:nth-child(5) { animation-delay: .29s; } .loader__word span:nth-child(6) { animation-delay: .35s; } .loader__word span:nth-child(7) { animation-delay: .41s; } .loader__word span:nth-child(8) { animation-delay: .47s; }
@keyframes lw { to { opacity: 1; transform: none; } }
.loader__bar { width: min(18rem, 60vw); height: 2px; background: var(--ink-3); margin: 0 auto; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--sig); transform: translateX(-100%); animation: lb 1.1s .2s var(--ease) forwards; }
@keyframes lb { to { transform: none; } }
html:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
html.is-loading { overflow: hidden; }
.shot .loader, .no-loader .loader { display: none; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: baseline; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font-size: .8rem; color: var(--mute); white-space: nowrap; }
@media (max-width: 47.99rem) { .brand__sub { display: none; } }
.nav { display: none; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--body); padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.header__cta { display: none; }
@media (min-width: 72rem) { .nav { display: flex; } .header__cta { display: inline-flex; min-height: 2.7rem; padding: .5rem 1.1rem; font-size: .9rem; white-space: nowrap; } }
.burger { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .95rem; min-height: 2.75rem; }
.burger i { width: 1.4rem; height: 1px; background: var(--ink); position: relative; display: block; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink); top: -5px; }
.burger i::after { top: 5px; }
@media (min-width: 72rem) { .burger { display: none; } }
.menu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); z-index: 39; padding: 1.5rem var(--gut) 2rem; overflow: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu ul { display: grid; }
.menu li a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.9rem; font-weight: 300; color: var(--ink); }
.menu li a small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--mute); margin-top: .1rem; }
.menu__foot { margin-top: 1.5rem; display: grid; gap: .75rem; font-size: .95rem; color: var(--mute); }
.menu__foot .btn { justify-self: start; }

/* ---------- hero: split, solid panel beside an edge-to-edge photograph ---------- */
.hero { display: grid; background: var(--ink); color: var(--dim); }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); } }
.hero__panel { display: grid; align-content: center; gap: 1.6rem; padding: clamp(3rem, 6vw, 5.5rem) var(--gut); }
@media (min-width: 60rem) { .hero__panel { padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); padding-right: clamp(2rem, 5vw, 5rem); } }
.hero__panel > * { min-width: 0; }
.hero__panel h1 { color: #fff; }
.hero__panel .lede { color: var(--dim); }
.hero__meta { font-size: .95rem; color: var(--dim); }
.hero__meta a { color: #fff; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; will-change: transform; }
.hero__media { position: relative; overflow: hidden; background: var(--ink-2); min-height: 56vw; }
@media (min-width: 60rem) { .hero__media { min-height: 0; } }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem var(--gut); font-size: .8rem; color: #fff; background: rgba(14, 17, 22, .78); }
@media (min-width: 60rem) { .hero__cap { left: auto; right: 0; padding: .55rem .9rem; } }
.shot .hero { min-height: 0; }

/* photo hero: the aerial full-bleed and darkened, the text on its own plate (RULES.md #3b) */
.hero--photo { position: relative; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); align-items: center; isolation: isolate; }
.hero--photo .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; z-index: 0; }
.hero--photo .hero__tint { position: absolute; inset: 0; background: rgba(14, 17, 22, .48); z-index: 1; }
.hero--photo .hero__panel { position: relative; z-index: 2; max-width: 44rem; background: rgba(14, 17, 22, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin: clamp(2rem, 6vw, 5rem) var(--gut); padding: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 60rem) { .hero--photo .hero__panel { margin-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); } }
.hero--photo .hero__cap { z-index: 2; left: auto; right: 0; }
.shot .hero--photo { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .hero--photo .hero__panel { backdrop-filter: none; } }

/* Video hero (RULES #38): darken the clip itself via `filter`, never a tint layer on top of it.
   No card behind the headline either — Will, 2026-09-29: remove the panel background, let the
   text sit straight on the darkened footage, bigger. Legibility comes from text-shadow instead. */
.hero--vid { position: relative; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); align-items: center; isolation: isolate; background: var(--ink); }
.hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: 0; filter: brightness(.4) contrast(1.08) saturate(.65); }
.hero--vid .hero__panel { position: relative; z-index: 2; max-width: 46rem; background: none; margin: clamp(2rem, 6vw, 5rem) var(--gut); padding: 0; }
@media (min-width: 60rem) { .hero--vid .hero__panel { margin-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); } }
.hero--vid .hero__h1 { font-size: clamp(3.2rem, 7.5vw, 7rem); text-shadow: 0 2px 22px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .7); }
.hero--vid .hero__panel .lede { text-shadow: 0 1px 14px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .75); }
.hero--vid .hero__meta { text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.shot .hero--vid { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .hero__vid { display: none; } .hero--vid { background: var(--ink) url('/vid/hero-poster.jpg') center 35% / cover; } }

/* page hero (inner pages) */
.phero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.phero h1 { max-width: 14em; }
.phero .lede { margin-top: 1.4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--mute); margin-bottom: 1.6rem; }
.crumbs a { color: var(--mute); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.phero--photo { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .phero--photo { grid-template-columns: 1.1fr .9fr; align-items: end; gap: clamp(2rem, 5vw, 5rem); } }

/* photographs */
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone-2); }
.photo--45 img { aspect-ratio: 4 / 5; }
.photo--43 img { aspect-ratio: 4 / 3; }
.photo figcaption { font-size: .85rem; color: var(--mute); padding-top: .6rem; }
.dark .photo figcaption { color: var(--dim); }
.band { position: relative; overflow: hidden; background: var(--ink-2); }
.band img { width: 100%; height: clamp(18rem, 42vw, 34rem); object-fit: cover; }
.band figcaption { position: absolute; left: 0; bottom: 0; padding: .55rem var(--gut); font-size: .8rem; color: #fff; background: rgba(14, 17, 22, .78); }

/* ---------- "just arrested" triptych ---------- */
.trip { display: grid; gap: 2.5rem 0; border-top: 1px solid var(--line); padding-top: 2.5rem; }
@media (min-width: 48rem) {
  .trip { grid-template-columns: repeat(3, 1fr); }
  .trip > .rv { padding-right: 2.4rem; border-left: 1px solid var(--line); padding-left: 2.4rem; }
  .trip > .rv:first-child { border-left: 0; padding-left: 0; }
}
.trip h3 { margin-bottom: .6rem; }
.trip p { color: var(--mute); }
.trip__no { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--sig); color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1; margin-bottom: 1.2rem; }

/* ---------- practice list ---------- */
.plist { border-top: 1px solid var(--line); }
.plist__row { display: grid; gap: .5rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
@media (min-width: 60rem) { .plist__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: baseline; } }
.plist__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.015em; }
.plist__row:hover .plist__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.plist__desc { color: var(--mute); max-width: 48ch; }
.plist__go { font-size: .95rem; font-weight: 500; white-space: nowrap; }
@media (max-width: 59.99rem) { .plist__go { display: none; } }

/* ---------- attorney ---------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.timeline li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.timeline b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.timeline span { color: var(--body); }
.units { display: grid; gap: .5rem; margin-top: 1rem; }
.units li { padding-left: 1.1rem; position: relative; color: var(--body); }
.units li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: .45rem; background: var(--sig); border: 1px solid var(--ink); }

/* ---------- results ---------- */
.results { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 48rem) { .results { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .results--3 { grid-template-columns: repeat(3, 1fr); } }
.result { background: var(--paper); padding: 2rem 0 2rem; display: grid; gap: .8rem; align-content: start; }
@media (min-width: 48rem) { .result { padding: 2rem 2rem 2rem 0; } .result:nth-child(2n) { padding-left: 2rem; } }
@media (min-width: 72rem) { .results--3 .result { padding: 2rem 2rem 2rem 0; } .results--3 .result:nth-child(2n) { padding-left: 0; } .results--3 .result:nth-child(3n+2), .results--3 .result:nth-child(3n) { padding-left: 2rem; } }
.stone .result { background: var(--stone); }
.result__out { display: inline-block; width: max-content; font-size: .85rem; font-weight: 600; padding: .3rem .55rem; background: var(--sig); color: var(--ink); }
.result h3 { margin: .2rem 0 0; }
.result p { color: var(--mute); }
.disclaimer { font-size: .82rem; color: var(--mute); max-width: 70ch; margin-top: 1.5rem; }
.dark .disclaimer { color: var(--dim); }

/* ---------- quotes ---------- */
.quotes { display: grid; gap: 2rem 3rem; }
@media (min-width: 48rem) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .quotes--3 { grid-template-columns: repeat(3, 1fr); } }
.quote { border-top: 1px solid var(--ink); padding-top: 1.4rem; display: grid; gap: 1.2rem; align-content: start; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.35; font-weight: 300; color: var(--ink); }
.quote figcaption { font-size: .9rem; color: var(--ink); font-weight: 500; }
.quote figcaption span { display: block; font-weight: 400; color: var(--mute); }

/* Reviews ticker — a CSS marquee, right to left, pauses on hover/focus (RULES: it carries real
   content, not decoration, so a visitor has to be able to stop it and read at their own pace). */
.rticker { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); margin-bottom: -1rem; }
.rticker:focus { outline: none; }
.rticker__track { display: flex; width: max-content; animation: rticker 48s linear infinite; }
.rticker:hover .rticker__track, .rticker:focus .rticker__track, .rticker:focus-within .rticker__track { animation-play-state: paused; }
.rticker__set { display: flex; gap: 1.75rem; padding: 0 var(--gut) 2.5rem .875rem; }
@keyframes rticker { to { transform: translateX(-50%); } }
.rcard { flex: 0 0 auto; width: min(84vw, 340px); border-top: 1px solid var(--ink); padding-top: 1.4rem; display: grid; gap: 1rem; align-content: start; }
.rcard blockquote { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; font-weight: 300; color: var(--ink); }
.rcard figcaption { font-size: .85rem; color: var(--ink); font-weight: 500; }
.rcard figcaption span { display: block; font-weight: 400; color: var(--mute); }
@media (prefers-reduced-motion: reduce) {
  .rticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rticker__track { animation: none; width: auto; }
  .rticker__set[aria-hidden] { display: none; }
}

/* ---------- courts ---------- */
.courts { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .courts { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); } }
.courtlist { display: grid; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.courtlist li { display: grid; gap: .15rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.courtlist b { font-weight: 500; color: var(--ink); }
.courtlist span { color: var(--mute); font-size: .95rem; }

/* ---------- contact band ---------- */
.cband { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .cband { grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: center; } }
.cband__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1; color: #fff; text-decoration: none; letter-spacing: -.02em; display: inline-block; margin: 1rem 0 1.5rem; }
.cband__num:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.meta { display: grid; gap: 1rem; }
.meta div { display: grid; gap: .15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.meta b { font-weight: 500; color: var(--ink); }
.meta a { color: var(--ink); }
.dark .meta div { border-top-color: var(--line-dark); }
.dark .meta b { color: #fff; }
.dark .meta a { color: #fff; }

/* ---------- practice page layout ---------- */
.ppage { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .ppage { grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(3rem, 6vw, 6rem); align-items: start; } .ppage__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside { border-top: 3px solid var(--ink); padding-top: 1.2rem; display: grid; gap: 1rem; }
.aside h3 { font-size: 1.25rem; }
.aside .meta { gap: .8rem; }
.aside .meta div { padding-top: .8rem; }
.aside .btn { justify-self: start; }
.handles { display: grid; border-top: 1px solid var(--line); margin: 1rem 0 0; }
.handles li { display: grid; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .handles li { grid-template-columns: 14rem 1fr; gap: 1.5rem; } }
.handles b { font-weight: 500; color: var(--ink); }
.handles span { color: var(--body); }
.steps { counter-reset: step; display: grid; gap: 1.2rem; margin-top: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--ink); border-top: 2px solid var(--sig); padding-top: .2rem; height: max-content; }
.steps b { grid-column: 2; display: block; font-weight: 500; color: var(--ink); }
.steps span { grid-column: 2; color: var(--body); }
.steps li::before { grid-row: 1 / span 2; }
.faq { border-top: 1px solid var(--line); margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--mute); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 1.3rem; max-width: 62ch; color: var(--body); }
.faq .a p + p { margin-top: .8em; }

.also { margin-top: 2rem; }
.also h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.also ul { display: grid; gap: .45rem; }
.also a { color: var(--body); text-decoration: none; }
.also a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- form ---------- */
.form { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field .mute { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: .8rem .9rem; min-height: 3.1rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field__err { display: none; font-size: .85rem; color: #A3271E; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #A3271E; }
.field.is-bad .field__err { display: block; }
.hp { position: absolute; left: -10000px; }
.form__foot { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 40rem) { .form__foot { grid-template-columns: auto 1fr; } }
.form__note { font-size: .9rem; color: var(--mute); }
.form__legal { font-size: .82rem; color: var(--mute); max-width: 70ch; }
.form__ok { display: none; border-top: 3px solid var(--sig); padding-top: 1.2rem; }
.form__ok.is-on { display: block; }
.form__ok h3 { margin-bottom: .6rem; }

/* ---------- case modal: the pop-up form, one per page ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(44rem, 100% - 2rem); width: 100%; margin: auto; }
.modal::backdrop { background: rgba(14, 17, 22, .72); backdrop-filter: blur(3px); }
.modal__box { background: var(--paper); padding: clamp(1.5rem, 4vw, 2.75rem); position: relative; max-height: calc(100vh - 3rem); overflow: auto; border-top: 4px solid var(--sig); }
.modal__close { position: absolute; top: .75rem; right: .75rem; min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: var(--ink); }
.modal__close:hover { background: var(--stone); }
.modal h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 1.5rem 0 0; }
.modal .lede { margin: .8rem 0 1.4rem; font-size: 1.05rem; }
.modal .form { gap: .9rem; }

/* ---------- map ---------- */
.map { width: 100%; aspect-ratio: 4 / 3; background: var(--stone-2); border: 1px solid var(--line); }
@media (min-width: 60rem) { .map { aspect-ratio: 5 / 4; } }
.map__fallback { padding: 1rem; font-size: .9rem; color: var(--mute); }
.map__note { font-size: .85rem; color: var(--mute); margin-top: .8rem; }
.pinwrap { background: none; border: 0; }
.pin { width: 12px; height: 12px; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.pin--base { width: 18px; height: 18px; background: var(--sig); }
.leaflet-container { font-family: var(--sans); font-size: .85rem; }
.leaflet-popup-content-wrapper { border-radius: 0; }
.leaflet-control-attribution { background: #fff !important; color: var(--mute) !important; }
.leaflet-control-attribution a { color: var(--ink) !important; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--dim); padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; }
.foot__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 60rem) { .foot__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.foot .brand { color: #fff; }
.foot .brand__sub { color: var(--dim); }
.foot__brand p { margin: 1.2rem 0 1.5rem; max-width: 40ch; }
.foot h4 { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: #fff; margin: 0 0 1rem; }
.foot ul { display: grid; gap: .5rem; }
.foot li a { color: var(--dim); text-decoration: none; }
.foot li a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.foot li span { color: var(--dim); }
.foot__bot { padding-top: 1.5rem; font-size: .82rem; color: var(--dim); display: grid; gap: .8rem; }
.foot__bot a { color: var(--dim); }

/* ---------- call bar (phones) ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.callbar a.callbar__call { background: var(--sig); color: var(--ink); }
@media (min-width: 64rem) { .callbar { display: none; } }
@media (max-width: 63.99rem) { body { padding-bottom: 3.5rem; } .shot .callbar { display: none; } .shot body { padding-bottom: 0; } }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 1.5rem; padding: 6rem var(--gut); }
.nf h1 { font-size: clamp(5rem, 16vw, 12rem); color: var(--ink); }
.shot .nf { min-height: 0; }

/* ---------- reveal (the only scroll reveal; GSAP touches only the hero) ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .line > span { transform: none !important; } }
.shot .rv { opacity: 1; transform: none; transition: none; }

/* ---------- buttons: small size, link-styled button ---------- */
.btn--sm { min-height: 2.4rem; padding: .5rem 1rem; font-size: .88rem; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; }
.linkbtn:hover { color: var(--mute); }

/* ---------- consent checkbox on the contact form ---------- */
.field--check .check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .85rem; color: var(--mute); font-weight: 400; cursor: pointer; }
.field--check input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--ink); }
.field--check a { color: var(--ink); }

/* ---------- switch (cookie banner + privacy choices) ---------- */
.sw { position: relative; display: inline-block; width: 2.6rem; height: 1.5rem; flex: none; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw span:first-of-type { position: absolute; inset: 0; background: var(--line); transition: background .15s; }
.sw span:first-of-type::before { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; background: #fff; transition: transform .15s; }
.sw input:checked + span { background: var(--ink); }
.sw input:checked + span::before { transform: translateX(1.1rem); }
.sw input:disabled + span { opacity: .5; cursor: not-allowed; }

/* ---------- cookie consent banner ---------- */
.cz { position: fixed; inset: auto 0 0 0; z-index: 90; padding: var(--gut); display: flex; justify-content: center; }
.cz[hidden] { display: none; }
.cz__card { background: #fff; border: 1px solid var(--ink); max-width: 42rem; width: 100%; padding: 1.6rem clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 -4px 0 0 var(--sig); }
.cz__card h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.cz__card p { color: var(--mute); font-size: .92rem; margin-bottom: .5rem; }
.cz__gpc { color: var(--ink); font-weight: 500; }
.cz__rows { margin: 1rem 0; display: grid; gap: .9rem; }
.cz__rows[hidden], .cz__gpc[hidden], .cz__acts [hidden] { display: none; }
.cz__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.cz__row strong { display: block; font-size: .92rem; }
.cz__row p { margin: .2rem 0 0; font-size: .85rem; }
.cz__acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cz__more { margin-top: 1rem; font-size: .82rem; }
.cz__more a { color: var(--ink); }

/* ---------- privacy choices page ---------- */
.pc { border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); }
.pc__status:not(:empty) { background: var(--stone); padding: .7rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.pc__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; border-top: 1px solid var(--line); padding: 1.1rem 0; }
.pc__row:first-of-type { border-top: 0; }
.pc__row h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.pc__row p { margin: 0; color: var(--mute); font-size: .9rem; }
.pc__acts { margin-top: 1.2rem; }
.pc__clear { margin-top: 2rem; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.pc__clear h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.pc__clear p { color: var(--mute); font-size: .9rem; margin-bottom: 1rem; }
.pc__list { margin-top: .8rem; font-size: .8rem; color: var(--mute); }

/* ---------- footer legal row + privacy choices badge ---------- */
.foot__legal { display: block; margin-top: .5rem; }
.foot__legal a, .foot__legal .linkbtn { color: inherit; }
.choices { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- map facade button (pre-consent) ---------- */
.map__fallback { padding: 1.5rem; }

/* one-time prompt after real reading (app.js showNudge) */
.nudge { position: fixed; z-index: 45; left: 1rem; bottom: 1rem; width: min(22rem, calc(100vw - 2rem)); background: #fff; color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 10px 30px rgba(14,17,22,.18); padding: 1.1rem 1.2rem 1.15rem; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.nudge.is-on { opacity: 1; transform: none; }
.nudge__x { position: absolute; top: .3rem; right: .45rem; width: 2rem; height: 2rem; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.nudge__t { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.25; margin: 0 1.6rem .35rem 0; }
.nudge__b { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.5; }
.nudge__a { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 760px) { .nudge { left: .75rem; right: .75rem; width: auto; bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; transform: none; } }
.form__err { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; border: 1px solid #b3261e; background: #fdeceb; color: #7a1913; font-size: .95rem; }
.form__err a { color: inherit; font-weight: 600; }
