/* ==========================================================================
   Robert J. Lee, P.A. — Trial Attorneys
   Design system + components
   ========================================================================== */

/* Smooth page-to-page morphs between documents (View Transitions L2) */
@view-transition { navigation: auto; }

/* Scroll progress, driven by CSS scroll timelines (or JS fallback) */
@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --ink: #070b14;
  --ink-1: #0b1120;
  --ink-2: #10192c;
  --ink-3: #172238;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .16);
  --text: #f1f2f6;
  --text-2: #b3bac8;
  --text-3: #808a9d;

  --gold: #f5b82e;
  --gold-2: #ffd77a;
  --gold-3: #b9820c;
  --gold-ink: #8a5f00;
  --gold-glow: rgb(245 184 46 / .28);

  --ivory: #f4efe5;
  --ivory-2: #e8e0cf;
  --paper: #0d1424;
  --paper-2: #4b5367;

  --ok: #34d399;
  --err: #c2410c;

  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --radius-xl: clamp(24px, 3vw, 40px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --header-h: 64px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  hanging-punctuation: first last;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.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-link {
  position: fixed; top: 12px; left: 12px; z-index: 400;
  padding: 12px 18px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 600;
  translate: 0 -200%; transition: translate .3s var(--ease-out);
}
.skip-link:focus { translate: 0 0; }

/* ---------- Icons ---------- */
.i {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 26px; height: 26px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(96px, 12vw, 180px); }
.panel { margin-inline: clamp(8px, 1vw, 16px); border-radius: var(--radius-xl); }
.paper { background: var(--ivory); color: var(--paper); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .85em;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.paper .eyebrow { color: var(--gold-ink); }

.display { font-family: var(--font-display); font-weight: 400; line-height: .95; letter-spacing: -.015em; }
.display em { font-style: italic; color: var(--gold); padding-right: .04em; }
.paper .display em { color: var(--gold-ink); }
.h-xl { font-size: clamp(3.4rem, 9.4vw, 9.6rem); line-height: .9; letter-spacing: -.025em; }
.h-lg { font-size: clamp(2.8rem, 6.6vw, 6.6rem); }
.h-md { font-size: clamp(2.1rem, 4.2vw, 3.8rem); line-height: 1; }

.lede { font-size: clamp(1.08rem, 1.35vw, 1.28rem); line-height: 1.6; color: var(--text-2); max-width: 56ch; }
.paper .lede { color: var(--paper-2); }

.gold-text {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 58px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 8px 0 26px; border-radius: 999px;
  font-size: .98rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn__icon {
  display: grid; place-items: center; width: calc(var(--h) - 16px); aspect-ratio: 1; border-radius: 50%;
  transition: transform .5s var(--ease-out);
}
.btn__icon .i { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover .btn__icon .i { transform: rotate(45deg); }

.btn--gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 14px 40px -12px var(--gold-glow), inset 0 1px 0 rgb(255 255 255 / .45);
}
.btn--gold .btn__icon { background: var(--ink); color: var(--gold); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%);
  translate: -120% 0; transition: translate 1s var(--ease-out);
}
.btn--gold:hover::after { translate: 120% 0; }
.btn--gold:hover { box-shadow: 0 18px 50px -10px rgb(245 184 46 / .45), inset 0 1px 0 rgb(255 255 255 / .45); }

.btn--ghost {
  padding: 0 26px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .03);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--ghost .i { color: var(--gold); }

.btn--dark { background: var(--paper); color: var(--ivory); }
.btn--dark .btn__icon { background: var(--gold); color: var(--ink); }
.btn--dark:hover { background: #1a2338; }

.btn--sm { --h: 48px; padding-left: 20px; font-size: .92rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--gold-2);
  background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link-arrow:hover .i { transform: translate(2px, -2px); }

/* ---------- Brand mark ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 40px; color: var(--gold); flex-shrink: 0; }
.brand__mark path { fill: currentColor; stroke: currentColor; stroke-width: 14; }
.brand__text { display: grid; gap: 5px; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; white-space: nowrap; }
.brand__tag {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 60;
  pointer-events: none;
  view-transition-name: site-header;
  transition: translate .6s var(--ease-out);
}

.nav {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 16px; border-radius: 999px;
  background: rgb(9 14 26 / .45); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: background-color .4s, box-shadow .4s, border-color .4s;
}
.site-header.is-scrolled .nav {
  background: rgb(9 14 26 / .8);
  border-color: var(--line-2);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .7);
}

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: .92rem; color: var(--text-2);
  transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold); translate: -50% 0;
}

.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px;
  border-radius: 999px; font-size: .92rem; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color .25s;
}
.nav__phone:hover { background: rgb(255 255 255 / .06); }
.nav__phone .i { color: var(--gold); width: 17px; height: 17px; }
.nav__toggle {
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / .04);
}

/* Mobile menu (Popover API) */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 104px var(--gutter) 32px; border: 0;
  background: rgb(7 11 20 / .97); color: var(--text);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  opacity: 0;
  transition: opacity .45s var(--ease-out), display .45s allow-discrete, overlay .45s allow-discrete;
}
.menu:popover-open { display: flex; opacity: 1; }
@starting-style { .menu:popover-open { opacity: 0; } }
.menu__close {
  position: absolute; top: 22px; right: calc(var(--gutter) + 8px);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2);
}
.menu__links { display: grid; gap: 4px; }
.menu__link {
  display: flex; align-items: baseline; gap: 18px; padding-block: 6px;
  font-family: var(--font-display); font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.05;
  border-bottom: 1px solid var(--line);
  opacity: 0; translate: 0 28px;
  transition: opacity .7s var(--ease-out), translate .8s var(--ease-out), color .3s;
  transition-delay: calc(var(--i, 0) * 55ms + 60ms);
}
.menu__link small { font-family: var(--font-mono); font-size: .72rem; color: var(--gold); letter-spacing: .1em; }
.menu__link:hover { color: var(--gold-2); }
.menu:popover-open .menu__link { opacity: 1; translate: 0 0; }
@starting-style { .menu:popover-open .menu__link { opacity: 0; translate: 0 28px; } }
.menu__foot { display: grid; gap: 14px; }
.menu__foot .btn { justify-content: space-between; }
.menu__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; color: var(--text-3); }

/* ---------- Intro curtain ---------- */
.intro { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: var(--ink); }
html.js .intro { display: grid; }
.intro__inner { display: grid; justify-items: center; gap: 20px; text-align: center; }
.intro__mark { width: 84px; height: 110px; color: var(--gold); overflow: visible; }
.intro__mark path {
  fill: transparent; stroke: currentColor; stroke-width: 16;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: intro-draw 1.05s var(--ease-io) forwards, intro-fill .45s ease forwards;
  animation-delay: calc(var(--i) * 90ms), calc(var(--i) * 60ms + 850ms);
}
.intro__name { font-family: var(--font-display); font-size: 1.7rem; opacity: 0; animation: intro-up .9s .55s var(--ease-out) forwards; }
.intro__tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  opacity: 0; animation: intro-up .9s .7s var(--ease-out) forwards;
}
.intro.is-leaving { animation: intro-out .95s var(--ease-io) forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill: currentColor; } }
@keyframes intro-up { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); } }

/* ---------- Entrance + reveal ---------- */
.line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.line__inner { display: inline-block; transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--i, 0) * 100ms + 80ms); }
html.js:not(.is-ready) .line__inner { transform: translateY(112%); }

[data-hero] { transition: opacity 1.1s var(--ease-out), translate 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
html.js:not(.is-ready) [data-hero] { opacity: 0; translate: 0 22px; }

html.js [data-reveal] {
  opacity: 0; translate: 0 36px;
  transition: opacity 1s var(--ease-out), translate 1.15s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
html.js [data-reveal="clip"] { opacity: 1; translate: none; clip-path: inset(100% 0 0 0 round var(--radius-xl)); transition: clip-path 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
html.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius-xl)); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--header-h) + 88px) 0 72px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 28%) var(--my, 32%), rgb(245 184 46 / .09), transparent 60%);
  transition: background .2s;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob--1 {
  width: 52vw; height: 52vw; left: -14vw; top: -18vw;
  background: radial-gradient(circle, rgb(245 184 46 / .28), transparent 62%);
  animation: drift-1 20s ease-in-out infinite alternate;
}
.blob--2 {
  width: 58vw; height: 58vw; right: -18vw; bottom: -26vw;
  background: radial-gradient(circle, rgb(54 92 178 / .38), transparent 62%);
  animation: drift-2 26s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(10vw, 8vw) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-8vw, -10vw) scale(.92); } }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  gap: clamp(32px, 5vw, 88px); align-items: center;
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / .04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .84rem; color: var(--text-2);
}
.status strong { color: var(--text); font-weight: 500; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--ok); animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse { from { scale: .6; opacity: 1; } to { scale: 2.2; opacity: 0; } }

.hero h1 { margin: 26px 0 30px; }
.hero__sub { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero .lede { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 18px 36px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
}
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgb(245 184 46 / .08); border: 1px solid rgb(245 184 46 / .18); color: var(--gold);
}
.trust__item strong { display: block; font-weight: 500; font-size: .95rem; line-height: 1.2; }
.trust__item span { font-size: .8rem; color: var(--text-3); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .i { width: 13px; height: 13px; }

/* Infinite portrait columns */
.hero__people {
  position: relative; height: min(78svh, 780px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.people-col { overflow: hidden; }
.people-track { display: flex; flex-direction: column; gap: 14px; animation: scroll-y 50s linear infinite; }
.people-col:nth-child(2) .people-track { animation-direction: reverse; animation-duration: 58s; }
.hero__people:hover .people-track,
.hero__people:focus-within .people-track { animation-play-state: paused; }
@keyframes scroll-y { to { transform: translateY(calc(-50% - 7px)); } }
@keyframes scroll-x { to { transform: translateX(calc(-50% - 7px)); } }

.person {
  position: relative; display: block; overflow: hidden; flex-shrink: 0; color: inherit;
  aspect-ratio: 4 / 5; border-radius: 22px; background: var(--ink-2);
}
.person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: scale 1.2s var(--ease-out); }
.person:hover img { scale: 1.06; }
.person__caption {
  position: absolute; inset: auto 0 0; display: grid; gap: 2px;
  padding: 48px 16px 14px; background: linear-gradient(transparent, rgb(7 11 20 / .88));
}
.person__caption b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.person__caption span {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2);
}

/* ==========================================================================
   PRACTICE INDEX (static)
   ========================================================================== */
.areas-strip { padding-block: clamp(56px, 7vw, 104px); border-block: 1px solid var(--line); text-align: center; }
.areas-strip .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.areas-strip__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px .55em;
  max-width: 1180px; margin: 28px auto 0;
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.7vw, 3.5rem); line-height: 1.22; letter-spacing: -.01em;
}
.areas-strip__list a { color: var(--text-2); transition: color .3s; }
.areas-strip__list li:nth-child(even) a { font-style: italic; color: rgb(245 184 46 / .78); }
.areas-strip__list a:hover { color: var(--text); }
.areas-strip__list li:nth-child(even) a:hover { color: var(--gold-2); }

/* ==========================================================================
   ABOUT (scroll-lit manifesto)
   ========================================================================== */
.about { padding-block: clamp(72px, 9vw, 140px); }
.about__statement {
  margin-top: 36px; max-width: 25ch;
  font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 5.7rem); line-height: 1.04; letter-spacing: -.015em;
}
.about__statement em { font-style: italic; color: var(--gold-ink); }
.w {
  opacity: clamp(.13, calc((var(--p) - .1) / .4 * (var(--n) + 6) - var(--i)), 1);
  transition: opacity .25s linear;
}
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 110px); margin-top: clamp(56px, 7vw, 110px);
  padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgb(13 20 36 / .12);
}
.about__copy p { font-size: 1.12rem; color: var(--paper-2); max-width: 46ch; }
.about__copy .btn { margin-top: 32px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.fact { padding: 18px 0; border-bottom: 1px solid rgb(13 20 36 / .12); }
.fact dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-2);
}
.fact dd { margin-top: 4px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }

/* ==========================================================================
   OFFICE PHOTO PANEL
   ========================================================================== */
.office {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(84svh, 820px); margin-top: clamp(8px, 1vw, 16px);
  display: flex; align-items: flex-end;
}
.office > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.office::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(7 11 20 / .15), transparent 30%, rgb(7 11 20 / .55) 62%, rgb(7 11 20 / .94)),
    linear-gradient(90deg, rgb(7 11 20 / .6), transparent 60%);
}
.office__caption { padding-block: clamp(48px, 8vw, 110px); }
.office__caption .h-lg { margin: 20px 0 22px; max-width: 14ch; }
.office__caption .btn { margin-top: 32px; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: clamp(32px, 4.5vw, 64px) clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display); font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: .95; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}

/* ==========================================================================
   SECTION HEAD
   ========================================================================== */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end;
  gap: 28px 64px; margin-bottom: clamp(44px, 6vw, 84px);
}
.section-head__title .display { margin-top: 22px; }
.section-head .lede { max-width: 44ch; }

/* ==========================================================================
   PRACTICE BENTO
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 6; min-height: 420px;
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 44px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / .04), rgb(255 255 255 / .012));
  border: 1px solid var(--line);
  container-type: inline-size;
  transition: border-color .4s, background-color .4s;
}
.tile--7 { grid-column: span 7; }
.tile--5 { grid-column: span 5; }
.tile--12 { grid-column: span 12; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgb(245 184 46 / .1), transparent 45%);
  opacity: 0; transition: opacity .45s;
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(245 184 46 / .75), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s;
}
.bento:hover .tile::after, .tile:hover::before { opacity: 1; }

.tile__top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.tile__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: rgb(245 184 46 / .09); border: 1px solid rgb(245 184 46 / .2); color: var(--gold);
}
.tile__icon .i { width: 26px; height: 26px; }
.tile__go {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color .35s, color .35s, border-color .35s, rotate .6s var(--ease-out);
}
.tile:hover .tile__go { background: var(--gold); color: var(--ink); border-color: var(--gold); rotate: 45deg; }
.tile__count { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-top: auto; padding-top: 56px; }
.tile h3 { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 3.3rem); line-height: 1; margin: 10px 0 14px; }
.tile p { color: var(--text-2); max-width: 50ch; }
@container (min-width: 620px) { .tile h3 { font-size: clamp(2.6rem, 4vw, 3.8rem); } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .84rem; color: var(--text-2); white-space: nowrap;
  transition: border-color .3s, color .3s;
}
.tile:hover .tag { border-color: rgb(245 184 46 / .35); }

.tile--cta {
  min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--gold); color: var(--ink); border-color: transparent;
}
.tile--cta::before, .tile--cta::after { display: none; }
.tile--cta h3 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.4rem); }
.tile--cta p { color: rgb(7 11 20 / .72); margin-top: 6px; }

/* ==========================================================================
   PROCESS (sticky stacking cards)
   ========================================================================== */
.process {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px); align-items: start;
}
.process__intro { position: sticky; top: 130px; }
.process__intro .display { margin: 22px 0 24px; }
.process__intro .btn { margin-top: 36px; }
.steps { display: grid; gap: 22px; }
.step {
  position: sticky; top: calc(120px + var(--i) * 26px);
  min-height: 380px; display: flex; flex-direction: column;
  padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid var(--line);
  box-shadow: 0 -24px 60px -24px rgb(0 0 0 / .7);
}
.step:nth-child(2) { background: #131d33; }
.step:nth-child(3) { background: #16213a; }
.step:nth-child(4) { background: linear-gradient(160deg, #1d2944, #121a2e); border-color: rgb(245 184 46 / .25); }
.step__head { display: flex; justify-content: space-between; align-items: start; }
.step__num {
  font-family: var(--font-display); font-size: clamp(4.4rem, 7.5vw, 7rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgb(245 184 46 / .7);
}
.step__tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.step h3 { margin-top: auto; padding-top: 48px; font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.02; }
.step p { margin-top: 14px; color: var(--text-2); max-width: 50ch; }

/* ==========================================================================
   TEAM (homepage grid)
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.attorney {
  position: relative; isolation: isolate; overflow: hidden; display: block;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--ivory-2);
}
.attorney--feature { grid-row: span 2; aspect-ratio: auto; min-height: 560px; }
.attorney img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 14%;
  filter: grayscale(.3) contrast(1.03);
  transition: scale 1.3s var(--ease-out), filter .8s;
}
.attorney:hover img { scale: 1.06; filter: none; }
.attorney::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, transparent 48%, rgb(7 11 20 / .88));
}
.attorney__info {
  position: absolute; inset: auto 0 0; z-index: 1;
  display: flex; align-items: end; justify-content: space-between; gap: 14px;
  padding: clamp(18px, 2vw, 28px); color: #fff;
}
.attorney__name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1; }
.attorney--feature .attorney__name { font-size: clamp(2.3rem, 3.8vw, 3.6rem); }
.attorney__role {
  display: block; margin-top: 8px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2);
}
.attorney__go {
  flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .35s, color .35s, rotate .6s var(--ease-out);
}
.attorney:hover .attorney__go { background: var(--gold); color: var(--ink); rotate: 45deg; }

.staff-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 16px; padding: 18px 18px 18px 18px; border-radius: var(--radius-lg);
  border: 1px solid rgb(13 20 36 / .12); background: rgb(255 255 255 / .45);
}
.staff-strip__who { display: flex; align-items: center; gap: 16px; }
.staff-strip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.staff-strip b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.staff-strip span { font-size: .9rem; color: var(--paper-2); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.testimonials .display { margin: 22px 0 24px; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.badge { padding: 20px 22px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.badge span { display: block; margin-top: 6px; font-size: .86rem; color: var(--text-2); }

.quotes {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4.4vw, 64px); border-radius: var(--radius-xl);
  background: radial-gradient(120% 80% at 100% 0%, rgb(245 184 46 / .12), transparent 50%), linear-gradient(160deg, var(--ink-3), var(--ink-1));
  border: 1px solid var(--line);
}
.quotes__mark { width: 56px; height: 56px; color: var(--gold); margin-bottom: 28px; }
.quotes__stack { display: grid; }
.quote {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 18px;
  transition: opacity .6s var(--ease-out), translate .9s var(--ease-out), visibility 0s .6s;
}
.quote.is-active { opacity: 1; visibility: visible; translate: 0 0; transition-delay: .1s, .1s, 0s; }
.quote p { font-family: var(--font-display); font-size: clamp(1.75rem, 2.9vw, 2.8rem); line-height: 1.14; letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.avatar {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-family: var(--font-display); font-size: 1.5rem;
}
.quote__who { display: grid; gap: 2px; }
.quote__who b { font-weight: 500; }
.quote__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-3); }
.quotes__nav { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.qbtn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  transition: border-color .3s, color .3s, background-color .3s;
}
.qbtn:hover { border-color: var(--gold); color: var(--gold); }
.qbars { flex: 1; display: flex; gap: 8px; }
.qbar { flex: 1; height: 28px; display: grid; align-items: center; }
.qbar span { display: block; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.qbar span::after { content: ""; display: block; height: 100%; background: var(--gold); transform-origin: left; scale: 0 1; }
.qbar.is-done span::after { scale: 1 1; }
.qbar.is-active span::after { animation: qfill 8s linear forwards; }
.quotes:hover .qbar.is-active span::after,
.quotes:focus-within .qbar.is-active span::after { animation-play-state: paused; }
.quotes.is-static .qbar.is-active span::after { animation: none; scale: 1 1; }
@keyframes qfill { to { scale: 1 1; } }

/* ==========================================================================
   FAQ (exclusive accordion, animated with ::details-content)
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__intro { position: sticky; top: 130px; }
.faq__intro .display { margin: 22px 0 24px; }
.faq__call { display: inline-flex; flex-direction: column; margin-top: 36px; }
.faq__call small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.faq__call a { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); color: var(--gold); line-height: 1.2; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.2;
  transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--gold-2); }
.faq__icon {
  flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: rotate .5s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.faq__list details[open] .faq__icon { rotate: 45deg; background: var(--gold); border-color: var(--gold); color: var(--ink); }
.faq__list details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete;
}
.faq__list details[open]::details-content { block-size: auto; }
.faq__answer { padding: 0 66px 28px 0; color: var(--text-2); }
.faq__answer p + p { margin-top: .8em; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.contact-head .display { margin-top: 22px; }
.bigphone {
  justify-self: end; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right;
}
.bigphone small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.bigphone a {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1; color: var(--gold);
  background: linear-gradient(currentColor 0 0) 100% 100% / 0 2px no-repeat; padding-bottom: 6px;
  transition: background-size .6s var(--ease-out);
}
.bigphone a:hover { background-size: 100% 2px; background-position-x: 0; }

.contact { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 16px; }
.form-card { padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-xl); background: var(--ivory); color: var(--paper); }
.form-card h3 { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; }
.form-card > p { color: var(--paper-2); margin-top: 8px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgb(13 20 36 / .14); background: #fff; color: var(--paper); font-size: 1rem;
  appearance: none; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; field-sizing: content; line-height: 1.5; }
.field select {
  padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1424' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #8a90a0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 4px rgb(245 184 46 / .28);
}
.field :user-invalid { border-color: var(--err); }
.field__error { display: none; font-size: .82rem; color: var(--err); }
.field:has(:user-invalid) .field__error { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; }
.form__note { font-size: .84rem; color: var(--paper-2); max-width: 42ch; }
.form__note .i { display: inline-block; vertical-align: -3px; margin-right: 4px; width: 15px; height: 15px; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form__status { grid-column: 1 / -1; display: none; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 14px; font-size: .95rem; }
.form__status.is-success { display: flex; background: #e7f6ee; color: #0f5132; }
.form__status.is-error { display: flex; background: #fdecea; color: #8a1c0b; }

.info-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--ink-1); }
.info-list { display: grid; gap: 24px; padding: clamp(24px, 3.2vw, 44px); }
.info-row { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.info-row__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgb(245 184 46 / .09); border: 1px solid rgb(245 184 46 / .18); color: var(--gold);
}
.info-row small { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.info-row a, .info-row p { font-size: 1.05rem; line-height: 1.45; }
.info-row a:hover { color: var(--gold-2); }
.map { position: relative; flex: 1; min-height: 300px; border-top: 1px solid var(--line); background: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.88) brightness(.95); }
.map .btn { position: absolute; left: 16px; bottom: 16px; z-index: 1; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px);
  border-radius: var(--radius-xl); background: var(--gold); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px 64px; align-items: end;
}
.cta-band::before {
  content: ""; position: absolute; right: 5%; top: 50%; z-index: -1;
  height: 135%; aspect-ratio: 1130 / 1480; translate: 0 -50%;
  background: url("../img/logo-ink.svg") center / contain no-repeat; opacity: .07;
}
.cta-band .display em { color: var(--ink); }
.cta-band .eyebrow { color: var(--ink); }
.cta-band .display { margin-top: 20px; }
.cta-band p { margin-top: 18px; font-size: 1.12rem; color: rgb(7 11 20 / .75); max-width: 48ch; }
.cta-band__actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-band__actions .btn { justify-content: space-between; }
.cta-band .btn--ghost { justify-content: center; gap: 10px; border-color: rgb(7 11 20 / .25); background: transparent; color: var(--ink); }
.cta-band .btn--ghost .i { color: var(--ink); }
.cta-band .btn--ghost:hover { border-color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; overflow: hidden; padding-top: clamp(80px, 10vw, 140px); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__about p { margin-top: 22px; color: var(--text-2); max-width: 34ch; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--text-2); transition: color .3s; }
.footer__social:hover { color: var(--gold-2); }
.footer h4 { margin-bottom: 18px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); transition: color .25s; }
.footer ul a:hover { color: var(--text); }
.footer address { font-style: normal; color: var(--text-2); display: grid; gap: 10px; }
.footer address a:hover { color: var(--text); }
.footer__big {
  margin-top: clamp(64px, 8vw, 120px); text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--font-display); font-size: clamp(4rem, 15.6vw, 16.5rem); line-height: .78; letter-spacing: -.035em;
  background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .015) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  padding-block: 28px 36px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--text-3);
}
.footer__bottom nav { display: flex; gap: 22px; }
.footer__bottom a:hover { color: var(--text); }
.disclaimer { max-width: 92ch; }

/* Mobile action bar */
.actionbar { display: none; }

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--header-h) + 120px) 0 clamp(56px, 7vw, 100px); }
.page-hero .hero__bg::before { mask-image: radial-gradient(ellipse 70% 80% at 20% 20%, #000 10%, transparent 75%); }
.page-hero h1 { margin: 26px 0 28px; max-width: 14ch; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); top: calc(var(--header-h) + 70px);
  height: min(62vh, 560px); aspect-ratio: 1130 / 1480;
  background: url("../img/logo-mark.svg") center / contain no-repeat; opacity: .09;
  mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}
.crumbs { display: flex; gap: 10px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--gold); }

/* Attorney jump strip */
.jump { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.jump a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(255 255 255 / .03);
  transition: border-color .3s, background-color .3s;
}
.jump a:hover { border-color: var(--gold); background: rgb(245 184 46 / .06); }
.jump img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex-shrink: 0; }
.jump b { display: block; font-weight: 500; font-size: .92rem; line-height: 1.2; }
.jump span { font-size: .74rem; color: var(--text-3); }

/* Profiles */
.profile {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 100px); padding-block: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line);
}
.profile--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.profile--flip .profile__media { order: 2; }
.profile__media { position: sticky; top: 104px; align-self: start; }
.profile__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); background: var(--ink-2); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.profile__badge {
  position: absolute; left: 16px; top: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgb(7 11 20 / .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2);
}
.glance { margin-top: 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.glance div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.glance div:first-child { border-top: 0; }
.glance dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.glance dd { color: var(--text-2); }
.profile__index { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; color: var(--text-3); }
.profile__index b { color: var(--gold); font-weight: 500; }
.profile h2 { margin-top: 18px; font-size: clamp(3rem, 6vw, 5.8rem); }
.profile__lede { margin: 16px 0 36px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.2; color: var(--gold); }
.profile__bio p { font-size: 1.08rem; color: var(--text-2); max-width: 64ch; }
.profile__bio p + p { margin-top: 1.15em; }
.profile__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.meta-card { padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.meta-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.meta-card ul { display: grid; gap: 10px; }
.meta-card li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .96rem; line-height: 1.5; }
.meta-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.meta-card .tags { margin-top: 0; }

/* Staff card */
.staff-card {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-xl); background: var(--ivory); color: var(--paper);
}
.staff-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: calc(var(--radius-xl) - 10px); }
.staff-card .eyebrow { color: var(--gold-ink); }
.staff-card h3 { margin-top: 16px; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.staff-card p { margin-top: 14px; color: var(--paper-2); max-width: 48ch; }
.staff-card__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.staff-card .btn--ghost { border-color: rgb(13 20 36 / .2); background: transparent; }
.staff-card .btn--ghost .i { color: var(--gold-ink); }
.staff-card .btn--ghost:hover { border-color: var(--paper); color: var(--paper); }

/* ==========================================================================
   PRACTICE AREAS PAGE
   ========================================================================== */
.filters {
  position: sticky; top: 94px; z-index: 20;
  display: flex; gap: 6px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 6px; margin-bottom: 32px; border-radius: 999px;
  background: rgb(9 14 26 / .75); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: .92rem; color: var(--text-2); white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.chip sup { font-family: var(--font-mono); font-size: .66rem; color: var(--text-3); top: 0; }
.chip:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] sup { color: rgb(7 11 20 / .6); }

.pa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.pa-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 320px;
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / .04), rgb(255 255 255 / .012));
  border: 1px solid var(--line);
  view-transition-class: pa-card;
  container-type: inline-size;
}
.pa-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(245 184 46 / .1), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.pa-card:hover::before { opacity: 1; }
.pa-card:hover { border-color: rgb(245 184 46 / .3); }
.pa-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pa-card__cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.pa-card__cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--gold)); }
.pa-card[data-cat="injury"] { --dot: #f5b82e; }
.pa-card[data-cat="insurance"] { --dot: #6aa5ff; }
.pa-card[data-cat="business"] { --dot: #c9a7ff; }
.pa-card[data-cat="defense"] { --dot: #ff8f6b; }
.pa-card__num { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); }
.pa-card h3 { margin: 0 0 12px; padding-top: 52px; font-family: var(--font-display); font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.02; }
.pa-card p { color: var(--text-2); font-size: .98rem; margin-bottom: 24px; }
.pa-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.pa-more { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--text); }
.pa-more .i { width: 16px; height: 16px; color: var(--gold); transition: rotate .4s var(--ease-out); }
.pa-more:hover .i { rotate: 90deg; }
.pa-card .link-arrow { font-size: .92rem; }
@container (min-width: 440px) { .pa-card h3 { font-size: 2.7rem; } }

::view-transition-group(*.pa-card) { animation-duration: .55s; animation-timing-function: var(--ease-out); }

/* Practice dialogs */
.sheet {
  width: min(780px, 100% - 24px); max-height: min(88svh, 920px);
  margin: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius-xl);
  background: var(--ink-1); color: var(--text);
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / .8);
  opacity: 0; translate: 0 40px; scale: .98;
  transition: opacity .4s var(--ease-out), translate .6s var(--ease-out), scale .6s var(--ease-out), display .6s allow-discrete, overlay .6s allow-discrete;
}
.sheet[open] { opacity: 1; translate: 0 0; scale: 1; }
@starting-style { .sheet[open] { opacity: 0; translate: 0 40px; scale: .98; } }
.sheet::backdrop {
  background: rgb(3 6 12 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background-color .5s, backdrop-filter .5s, display .5s allow-discrete, overlay .5s allow-discrete;
}
.sheet[open]::backdrop { background: rgb(3 6 12 / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@starting-style { .sheet[open]::backdrop { background: rgb(3 6 12 / 0); backdrop-filter: blur(0); } }
.sheet__body { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: clamp(26px, 4.4vw, 56px); }
.sheet__close {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 16px; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--ink-1);
}
.sheet__close:hover { border-color: var(--gold); color: var(--gold); }
.sheet h2 { margin: 18px 0 22px; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.sheet h3 { margin: 32px 0 12px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.sheet p { color: var(--text-2); }
.sheet p + p { margin-top: 1em; }
.sheet ul { display: grid; gap: 10px; }
.sheet li { position: relative; padding-left: 26px; color: var(--text-2); }
.sheet li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: rgb(245 184 46 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b82e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.sheet li b { color: var(--text); font-weight: 500; }
.sheet .tags { margin-top: 0; }
.sheet__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
body:has(dialog[open]) { overflow: hidden; }

/* ==========================================================================
   SCROLL-DRIVEN ANIMATIONS (progressive enhancement)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-scroll] { animation: scroll-progress linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes scroll-progress { from { --p: 0; } to { --p: 1; } }

/* Cross-document view transition styling */
::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; translate: 0 -24px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 32px; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
}

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__people {
    height: auto; grid-template-columns: 1fr; gap: 12px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .people-track { flex-direction: row; width: max-content; animation-name: scroll-x; gap: 12px; }
  .person { width: clamp(150px, 26vw, 220px); }
  .bento .tile--7, .bento .tile--5 { grid-column: span 12; }
  .tile { min-height: 340px; }
  .process, .testimonials, .faq, .about__grid, .contact, .contact-head, .cta-band, .section-head { grid-template-columns: 1fr; }
  .process__intro, .faq__intro { position: static; }
  .bigphone { justify-self: start; align-items: flex-start; text-align: left; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .attorney--feature { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3.4; min-height: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .profile, .profile--flip { grid-template-columns: 1fr; }
  .profile--flip .profile__media { order: 0; }
  .profile__media { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .glance { margin-top: 0; }
  .jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hero::after { opacity: .05; height: 50vh; }
  .staff-card { grid-template-columns: 1fr; }
  .staff-card img { max-width: 420px; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav { padding-left: 14px; }
  .nav .btn, .nav__phone span { display: none; }
  .nav__phone { width: 48px; padding: 0; justify-content: center; border: 1px solid var(--line-2); }
  .brand__name { font-size: 1.14rem; }
  .brand__mark { width: 26px; height: 34px; }
  .hero { padding-top: calc(var(--header-h) + 64px); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; gap: 10px; }
  .trust { gap: 18px 24px; }
  .trust__item { flex: 1 1 calc(50% - 12px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .office { min-height: 78svh; }
  .form { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .attorney { border-radius: 20px; }
  .attorney__go { display: none; }
  .attorney__name { font-size: 1.3rem; }
  .attorney__role { font-size: .56rem; letter-spacing: .12em; }
  .faq__answer { padding-right: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .profile__media { grid-template-columns: 1fr; }
  .profile__meta { grid-template-columns: 1fr; }
  .jump {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .jump::-webkit-scrollbar { display: none; }
  .jump a { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .filters { top: 88px; }
  .step { min-height: 320px; top: calc(96px + var(--i) * 18px); }

  .actionbar {
    position: fixed; inset: auto 12px max(12px, env(safe-area-inset-bottom)); z-index: 55;
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; padding: 7px; border-radius: 999px;
    background: rgb(9 14 26 / .85); border: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -10px rgb(0 0 0 / .7);
    translate: 0 160%; transition: translate .6s var(--ease-out);
  }
  .actionbar.is-visible, html:not(.js) .actionbar { translate: 0 0; }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 999px; font-size: .95rem; font-weight: 500; }
  .actionbar__call { background: rgb(255 255 255 / .08); }
  .actionbar__call .i { color: var(--gold); }
  .actionbar__cta { background: var(--gold); color: var(--ink); }
  .footer { padding-bottom: 80px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .people-track, .blob { animation: none !important; }
  .w { opacity: 1; }
  html.js [data-reveal] { opacity: 1; translate: none; clip-path: none; }
}
