/* ==========================================================
   Tanisha M. Davis, Attorney at Law
   v5: glass. Floating glass controls (iOS-style) over a soft
   blue backdrop; heavily frosted panels for reading.
   Two heroes: A (the cover) and B (the portrait).
   ========================================================== */
:root {
  --blue: #22339F;        /* her brand blue */
  --blue-hi: #2E46C4;
  --blue-deep: #172370;
  --ink: #15172B;
  --ink-2: #2B2F45;
  --muted: #464B5E;
  --rule: rgba(21, 23, 43, .12);

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --masthead: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* glass */
  --glass-panel: rgba(255, 255, 255, .62);   /* reading surfaces: frosted, still high-contrast */
  --glass-card: rgba(255, 255, 255, .5);
  --glass-clear: rgba(255, 255, 255, .14);   /* controls over the blue/photos */
  --glass-blur: blur(28px) saturate(180%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .3), inset 0 0 28px rgba(255, 255, 255, .32);
  --glass-drop: 0 30px 70px -36px rgba(23, 35, 112, .45), 0 10px 24px -14px rgba(23, 35, 112, .22);
  --r-panel: 36px;
  --r-card: 26px;
  --r-tile: 18px;

  --gutter: clamp(16px, 3.6vw, 56px);
  --max: 1240px;
  --nav-h: 84px;
  --ease: cubic-bezier(.2, .75, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: #CDD5F4; color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, figure, blockquote { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 12px; }

/* ---------- The backdrop the glass refracts ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 34% at 8% 14%, rgba(46, 70, 196, .62), transparent 70%),
    radial-gradient(34% 40% at 92% 8%, rgba(120, 144, 245, .8), transparent 70%),
    radial-gradient(42% 46% at 82% 72%, rgba(34, 51, 159, .55), transparent 70%),
    radial-gradient(36% 40% at 14% 86%, rgba(150, 132, 236, .55), transparent 70%),
    radial-gradient(30% 32% at 50% 46%, rgba(196, 186, 250, .7), transparent 70%),
    radial-gradient(26% 26% at 36% 70%, rgba(110, 160, 245, .45), transparent 70%),
    linear-gradient(180deg, #D3DAF6 0%, #C4CDF1 100%);
}

/* ---------- Glass material ---------- */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-drop);
}
.glass::before { /* lit rim: brighter at the top-left, like light catching an edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .2) 38%, rgba(255, 255, 255, .06) 62%, rgba(255, 255, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass::after { /* soft sheen; follows the pointer on desktop */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 18%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 60%);
  opacity: .55; transition: opacity .4s;
}
.glass:hover::after { opacity: 1; }
.panel { background: var(--glass-panel); border-radius: var(--r-panel); padding: clamp(28px, 5vw, 72px); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .93); }
  .nav { background: rgba(23, 35, 112, .92) !important; }
  .nav.solid { background: rgba(255, 255, 255, .96) !important; }
}

/* ---------- Buttons: capsules ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; font-family: var(--text); font-size: 15.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer; position: relative;
  transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: var(--blue); box-shadow: inset 0 -2px 0 rgba(34, 51, 159, .08), 0 10px 24px -12px rgba(10, 16, 60, .5); }
.btn-light:hover { background: #F1F3FC; }
.btn-ghost { /* clear glass on dark */
  color: #fff; background: var(--glass-clear);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-blue { background: linear-gradient(180deg, #2C3FB6, var(--blue)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 26px -14px rgba(23, 35, 112, .8); }
.btn-blue:hover { background: linear-gradient(180deg, #3247C4, #24369F); }
.btn-outline { /* glass on light */
  color: var(--ink); background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(21, 23, 43, .1);
}
.btn-outline:hover { background: rgba(255, 255, 255, .85); }

/* ---------- Nav: a floating glass capsule ---------- */
.nav {
  position: fixed; z-index: 80; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1260px); height: 60px; border-radius: 999px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 8px 0 22px; color: #fff;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 18px 40px -24px rgba(5, 10, 40, .6);
  transition: background .35s, color .35s, box-shadow .35s;
}
.nav.solid { background: rgba(255, 255, 255, .66); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 18px 40px -24px rgba(23, 35, 112, .45); }
.logo { justify-self: start; display: block; }
.logo-crop { display: block; position: relative; overflow: hidden; width: 64px; aspect-ratio: 216 / 108; }
.logo-crop img { position: absolute; max-width: none; width: 133.333%; left: -16.667%; top: -42.6%; filter: brightness(0) invert(1); transition: filter .35s; }
.nav.solid .logo-crop img { filter: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 14px; border-radius: 999px; opacity: .9; transition: background .2s, opacity .2s; }
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, .16); }
.nav.solid .nav-links a:hover { background: rgba(34, 51, 159, .08); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-cta { height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; background: #fff; color: var(--blue); transition: background .25s, color .25s; }
.nav.solid .nav-cta { background: var(--blue); color: #fff; }
.nav-menu { display: none; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.nav.solid .nav-menu { background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(21, 23, 43, .1); }

.menu {
  position: fixed; inset: 0; z-index: 70; color: #fff;
  background: radial-gradient(60% 50% at 80% 10%, var(--blue-hi), transparent 70%), linear-gradient(180deg, var(--blue), #18257A);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .nav { background: rgba(255, 255, 255, .1); color: #fff; }
.menu-open .nav .logo-crop img { filter: brightness(0) invert(1); }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 8.5vw, 64px); line-height: 1.14; text-decoration: none; padding: 4px 0; transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .5s; }
.menu-open .menu-links a { transform: none; opacity: 1; }
.menu-open .menu-links a:nth-child(2) { transition-delay: .04s; }
.menu-open .menu-links a:nth-child(3) { transition-delay: .08s; }
.menu-open .menu-links a:nth-child(4) { transition-delay: .12s; }
.menu-open .menu-links a:nth-child(5) { transition-delay: .16s; }
.menu-open .menu-links a:nth-child(6) { transition-delay: .2s; }
.menu-open .menu-links a:nth-child(7) { transition-delay: .24s; }
.menu-foot { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.menu-foot a { text-decoration: none; opacity: .9; }

/* ==========================================================
   HERO A — the cover
   ========================================================== */
.cover {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  background:
    radial-gradient(55% 65% at 50% 42%, var(--blue-hi) 0%, rgba(46, 70, 196, 0) 70%),
    linear-gradient(180deg, var(--blue) 0%, #1E2E92 100%);
}
.cover-name {
  position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--nav-h) - 6px); text-align: center;
  font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(19px, 1.2vw + .6vh, 26px); line-height: 1;
}
.masthead {
  position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--nav-h) + 22px);
  display: flex; justify-content: center;
  font-family: var(--masthead); font-weight: 600; font-size: min(24vw, 33vh); line-height: .8; letter-spacing: .015em;
  white-space: nowrap; will-change: transform;
}
.masthead span { display: inline-block; }
.cover-figure { position: absolute; z-index: 2; bottom: 0; left: 50%; height: 88%; transform: translateX(-50%); will-change: transform; }
.cover-figure img {
  height: 100%; width: auto; max-width: none;
  -webkit-mask-image: url("assets/img/tanisha-cutout-mask.png"); mask-image: url("assets/img/tanisha-cutout-mask.png");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.cover-lead { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(32px, 7vh, 84px); width: min(34vw, 470px); }
.cover-lead h1 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 2vw + 1.3vh, 48px); line-height: 1.12; letter-spacing: -.012em; }
.cover-lead p { font-size: 17.5px; line-height: 1.55; color: rgba(255, 255, 255, .92); margin-top: 18px; max-width: 38ch; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cover-side { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(32px, 7vh, 84px); width: min(22vw, 290px); }
.triad { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(28px, 1.8vw + 1.2vh, 46px); line-height: 1.06; }
.cover-side p:not(.triad) { font-size: 16.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); margin-top: 18px; max-width: 28ch; }

.js .masthead span { transform: translateY(32%); opacity: 0; transition: transform 1.2s var(--ease), opacity .9s; }
.js .cover-name { opacity: 0; transition: opacity 1s .5s; }
.js .cover-figure img { transform: translateY(5%); opacity: 0; transition: transform 1.5s var(--ease) .25s, opacity 1.1s .25s; }
.js .cover-lead, .js .cover-side { opacity: 0; transform: translateY(14px); transition: opacity 1s .85s, transform 1.1s var(--ease) .85s; }
.ready .masthead span, .ready .cover-figure img { transform: none; opacity: 1; }
.ready .masthead span:nth-child(2) { transition-delay: .07s; }
.ready .masthead span:nth-child(3) { transition-delay: .14s; }
.ready .masthead span:nth-child(4) { transition-delay: .21s; }
.ready .masthead span:nth-child(5) { transition-delay: .28s; }
.ready .cover-name, .ready .cover-lead, .ready .cover-side { opacity: 1; transform: none; }

/* ==========================================================
   HERO B — the portrait (default)
   ========================================================== */
.hero-b { display: none; }
html[data-hero="b"] .hero-a { display: none; }
html[data-hero="b"] .hero-b {
  display: block; position: relative; overflow: hidden; color: #fff;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  background:
    radial-gradient(55% 65% at 68% 42%, var(--blue-hi) 0%, rgba(46, 70, 196, 0) 70%),
    linear-gradient(180deg, var(--blue) 0%, #1E2E92 100%);
}
.hb-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%; margin: 0;
}
.hb-photo-inner { /* the photo and its colour grade share one mask: left fade, bottom fade, top-left dissolve */
  position: absolute; inset: 0; animation: hbPhotoIn 1.6s var(--ease) both;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 18%, #000 40%),
    linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 42%),
    radial-gradient(120% 95% at 72% 62%, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 18%, #000 40%),
    linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 42%),
    radial-gradient(120% 95% at 72% 62%, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 100%);
          mask-composite: intersect, intersect;
}
.hb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hb-photo-inner::after { /* grade the near-black backdrop and the lower half toward the brand blue */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 51, 159, .8) 0%, rgba(34, 51, 159, .42) 22%, rgba(34, 51, 159, 0) 42%),
    linear-gradient(180deg, rgba(30, 46, 146, .5) 0%, rgba(30, 46, 146, 0) 30%),
    linear-gradient(0deg, rgba(30, 46, 146, .78) 0%, rgba(30, 46, 146, .35) 26%, rgba(30, 46, 146, 0) 52%);
}
.hb-photo figcaption { /* a clear-glass chip over the photo */
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(32px, 6vh, 72px);
  padding: 16px 22px; border-radius: 22px; font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .95);
  background: rgba(20, 28, 80, .22); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .2), 0 20px 40px -24px rgba(0, 0, 0, .6);
}
.hb-photo figcaption em { display: block; font-family: var(--display); font-style: normal; font-weight: 500; font-size: clamp(21px, 1.2vw + .5vh, 26px); color: #fff; margin-bottom: 2px; }
.hb-text { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(40px, 8vh, 96px); width: min(60%, 880px); }
.hb-text > * { animation: hbRise 1s var(--ease) both; }
.hb-text > :nth-child(2) { animation-delay: .08s; }
.hb-text > :nth-child(3) { animation-delay: .16s; }
.hb-text > :nth-child(4) { animation-delay: .24s; }
.hb-name { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 22px; margin-bottom: 22px; }
.hero-b h1 { font-family: var(--display); font-weight: 500; font-size: clamp(54px, 5.2vw + 1.4vh, 120px); line-height: .98; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(10, 16, 60, .35); }
.hb-sub { font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .92); margin-top: 26px; max-width: 42ch; }
.hero-b .cover-actions { margin-top: 34px; }
@keyframes hbRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hbPhotoIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ---------- Hero texture: pinstripe + grain (both heroes) ---------- */
.hero-texture { position: absolute; inset: 0; pointer-events: none; }
.hero-texture::before { /* pinstripes, like suiting and the striped T and M in her logo */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 11px);
}
.hero-texture::after { /* film grain for depth */
  content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* B: stripes strongest behind the headline, gone before her face */
.hero-b .hero-texture { z-index: 1; }
.hero-b .hero-texture::before {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .85) 36%, transparent 58%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .85) 36%, transparent 58%);
}
/* A: stripes behind the masthead, fading toward the edges */
.cover .hero-texture { z-index: 0; }
.cover .hero-texture::before {
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 90%);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 90%);
}
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .hero-texture::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 9px); }
  .hero-b .hero-texture::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 70%);
            mask-image: linear-gradient(180deg, transparent 35%, #000 70%);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .hero-texture { display: none; }
}

/* ==========================================================
   Sections: panels and cards floating on the backdrop
   ========================================================== */
.section { padding-block: clamp(14px, 2.2vw, 28px); }
.section:first-of-type, .after-hero { padding-top: clamp(28px, 5vw, 72px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; margin: clamp(28px, 4vw, 56px) 0 clamp(20px, 2.6vw, 32px); padding-inline: clamp(4px, 1vw, 12px); }
.sec-head p { color: var(--ink-2); max-width: 46ch; justify-self: end; }
.sec-title { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.06; letter-spacing: -.02em; }
.lede { font-size: clamp(20px, 1.1vw + .4rem, 24px); line-height: 1.5; color: var(--ink); }

/* Firm */
.firm-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.firm h2 { font-family: var(--display); font-weight: 500; font-size: clamp(46px, 5.6vw, 88px); line-height: 1; letter-spacing: -.025em; margin-bottom: clamp(24px, 3vw, 40px); max-width: 9ch; }
.firm .lede { max-width: 32ch; margin-bottom: 18px; }
.firm-copy > p:not(.lede) { color: var(--muted); max-width: 52ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.chips li { font-size: 14.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; color: var(--blue-deep); background: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .7), 0 4px 10px -6px rgba(23, 35, 112, .3); }
.firm-photo { margin: 0; }
.firm-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 52% 46%; border-radius: var(--r-card); background: #F3F3F3; }
.firm-photo figcaption { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 20px; margin-top: 12px; padding-left: 4px; }

/* Practice cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card { border-radius: var(--r-card); padding: clamp(24px, 2.4vw, 34px); display: flex; flex-direction: column; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(27px, 2vw, 32px); line-height: 1.1; letter-spacing: -.015em; }
.card-desc { margin-top: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.card-when { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.card-when b { display: block; font-size: 13.5px; font-weight: 600; color: var(--blue); margin-bottom: 2px; }
.card .chips { margin-top: auto; padding-top: 20px; gap: 6px; }
.card .chips li { font-size: 13.5px; padding: 5px 11px; }
.also { margin-top: 22px; padding-inline: 12px; color: var(--ink-2); }
.also a { color: var(--blue); font-weight: 600; text-underline-offset: 4px; }

/* How she works */
.day-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.day-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.day-side > p { color: var(--muted); margin: 18px 0 28px; max-width: 34ch; }
.day-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 26%; border-radius: var(--r-card); }
.docket { list-style: none; margin: 0; padding: 0; }
.docket li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--rule); }
.docket li:first-child { border-top: 0; padding-top: 4px; }
.docket time { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 2.3vw, 34px); line-height: 1; color: var(--blue); }
.docket h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.docket p { color: var(--muted); max-width: 46ch; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-card); }
.about-copy .sec-title { margin-bottom: 24px; }
.about-copy .lede { max-width: 34ch; margin-bottom: 20px; }
.about-copy > p:not(.lede) { color: var(--muted); max-width: 58ch; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.tile { border-radius: var(--r-tile); padding: 18px 20px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 20px -14px rgba(23, 35, 112, .3); }
.tile h3 { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.tile p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.tile.wide { grid-column: 1 / -1; }

/* Testimonial: a deep-blue glass card */
.voice-card {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--r-panel); padding: clamp(36px, 7vw, 110px) clamp(28px, 7vw, 110px);
  background: radial-gradient(60% 90% at 25% 30%, var(--blue-hi), transparent 70%), linear-gradient(160deg, #27399F, #18257A);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .12), var(--glass-drop);
}
.voice-card blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.9vw, 44px); line-height: 1.28; letter-spacing: -.015em; max-width: 32ch; text-indent: -.4em; }
.voice-card figcaption { margin-top: 28px; font-size: 17px; color: rgba(255, 255, 255, .9); }

/* Articles */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }
.post { display: flex; flex-direction: column; gap: 10px; border-radius: var(--r-card); padding: clamp(26px, 3vw, 40px); text-decoration: none; transition: transform .35s var(--ease); }
.post:hover { transform: translateY(-3px); }
.post-meta { font-size: 14.5px; font-weight: 600; color: var(--blue); }
.post h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.post p { color: var(--ink-2); max-width: 48ch; }
.post-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(21, 23, 43, .3); }
.post:hover .post-more { text-decoration-color: currentColor; }

/* FAQ: every answer visible */
.faq { margin: clamp(24px, 3vw, 40px) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.faq div { padding: 22px 0; border-top: 1px solid var(--rule); }
.faq dt { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 1.5vw, 24px); line-height: 1.25; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--muted); }
.faq dd a { color: var(--blue); font-weight: 600; text-underline-offset: 4px; }

/* Contact */
.contact-title { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -.025em; max-width: 13ch; margin-bottom: clamp(32px, 4.5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info > p { font-size: clamp(19px, 1vw + .4rem, 22px); line-height: 1.5; max-width: 30ch; margin-bottom: 26px; }
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; overflow-wrap: anywhere; }
.info a { text-decoration: none; font-weight: 500; }
.info a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.form { border-radius: var(--r-card); padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f > span { font-size: 15px; font-weight: 600; }
.f input, .f select, .f textarea {
  width: 100%; font-size: 16px; padding: 13px 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 2px rgba(21, 23, 43, .08), inset 0 0 0 1px rgba(21, 23, 43, .1);
  transition: box-shadow .2s, background .2s; resize: vertical; -webkit-appearance: none; appearance: none;
}
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315172B' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(34, 51, 159, .14); }
.f .bad { box-shadow: inset 0 0 0 2px #B3261E; }
.form .btn { justify-self: start; }
.fine { font-size: 14px; color: var(--muted); line-height: 1.5; }
.status { font-size: 15px; color: var(--blue); font-weight: 500; }
.status:empty { display: none; }
.pay { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--rule); }
.pay p { color: var(--muted); }
.pay strong { color: var(--ink); font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: #fff; margin-top: clamp(48px, 7vw, 96px); padding: clamp(56px, 7vw, 96px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 44px; }
.foot-logo { width: 170px; margin: -26px 0 0 -16px; filter: brightness(0) invert(1); opacity: .92; }
.foot-grid h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: rgba(255, 255, 255, .75); }
.foot-grid p { line-height: 1.8; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { display: flex; justify-content: space-between; gap: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.foot-legal p { max-width: 70ch; }
.foot-legal a { margin-left: 18px; text-decoration: none; }
.foot-legal a:hover { color: #fff; }

/* Phone action bar: floating glass capsule (phones only) */
.action-bar { display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1140px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; align-items: center; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  :root { --nav-h: 76px; --r-panel: 28px; --r-card: 22px; }
  .nav { height: 56px; padding: 0 6px 0 18px; }
  .nav-cta { display: none; }
  .logo-crop { width: 56px; }

  .cover { min-height: 600px; max-height: none; }
  .cover-name { top: calc(var(--nav-h) + 4px); font-size: 18px; }
  .masthead { top: calc(var(--nav-h) + 30px); font-size: 25vw; }
  .cover-figure { height: 86%; }
  .cover::after {
    content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 52%; pointer-events: none;
    background: linear-gradient(180deg, rgba(23, 35, 112, 0) 0%, rgba(23, 35, 112, .78) 42%, rgba(20, 30, 98, .97) 100%);
  }
  .cover-lead { left: var(--gutter); right: var(--gutter); width: auto; max-width: 600px; bottom: calc(26px + env(safe-area-inset-bottom)); }
  .cover-lead h1 { font-size: clamp(28px, 7.6vw, 44px); }
  .cover-lead p { font-size: 16.5px; margin-top: 12px; }
  .cover-actions { margin-top: 20px; flex-wrap: nowrap; }
  .cover-actions .btn { flex: 1 1 auto; padding: 0 18px; }
  .cover-side { display: none; }

  html[data-hero="b"] .hero-b { height: auto; max-height: none; min-height: 100svh; display: flex; flex-direction: column; padding-top: 0; }
  .hb-photo { position: relative; width: 100%; height: calc(50svh + var(--nav-h)); } /* runs up behind the nav and fades in */
  .hb-photo-inner { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 9%, #000 20%, #000 44%, rgba(0, 0, 0, .5) 74%, transparent 100%); -webkit-mask-composite: source-over; mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 9%, #000 20%, #000 44%, rgba(0, 0, 0, .5) 74%, transparent 100%); mask-composite: add; }
  .hb-photo-inner::after { background: linear-gradient(0deg, rgba(30, 46, 146, .9) 0%, rgba(30, 46, 146, .4) 30%, rgba(30, 46, 146, 0) 58%), linear-gradient(180deg, rgba(30, 46, 146, .35) 0%, rgba(30, 46, 146, 0) 22%); }
  .hb-photo figcaption { display: none; }
  .hb-text { position: relative; left: auto; bottom: auto; width: auto; max-width: 640px; margin: -1.6em var(--gutter) 0; padding-bottom: 32px; }
  .hb-name { display: none; }
  .hero-b h1 { font-size: clamp(40px, 11vw, 72px); }
  .hb-sub { font-size: 17px; margin-top: 16px; }

  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .sec-head p { justify-self: start; }
  .firm-grid, .day-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .day-side, .about-photo { position: static; }
  .firm-photo img { aspect-ratio: 1 / 1; object-position: 52% 50%; }
  .day-photo img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .about-photo img { aspect-ratio: 1 / 1.05; }
  .posts, .faq { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-logo { grid-column: 1 / -1; width: 140px; }
  .foot-legal { flex-direction: column; gap: 10px; }
  .foot-legal a { margin: 0 18px 0 0; }

  .action-bar {
    display: flex; gap: 6px; position: fixed; z-index: 75; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 999px; color: #fff;
    background: rgba(23, 35, 112, .55); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 20px 40px -18px rgba(10, 16, 60, .6);
    transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease);
  }
  .action-bar.show { transform: none; }
  .menu-open .action-bar { transform: translateY(calc(100% + 30px)); }
  .action-bar .btn { height: 48px; }
  .action-bar .btn-light { flex: 1; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) and (max-height: 720px) {
  .cover::after { height: 62%; }
}

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .cover-actions .btn-ghost { flex: 0 0 auto; }
  .ghost-long { display: none; }
  .panel { padding: 26px 20px; }
  .docket li { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .docket time { font-size: 26px; }
  .row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .pay { flex-direction: column; align-items: flex-start; }
  .pay .btn { width: 100%; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-transparency: reduce) {
  .glass, .panel, .card, .form, .tile, .chips li { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav { background: var(--blue) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav.solid { background: #fff !important; }
  .btn-ghost, .action-bar, .hb-photo figcaption { background: var(--blue-deep) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass::after { display: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #2B2F45; --rule: rgba(21, 23, 43, .3); }
  .glass, .tile, .chips li { box-shadow: inset 0 0 0 1.5px rgba(21, 23, 43, .45) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .masthead span, .js .cover-figure img, .js .cover-name, .js .cover-lead, .js .cover-side { opacity: 1; transform: none; }
}



/* Without JS, hide the src-less cutout and let the <noscript> copy show */
html:not(.js) .js-src { display: none; }
