/* ==========================================================================
   Pivnick Firm, PLLC
   Core stylesheet (mobile first). Layout refinements for small screens and
   the mobile navigation live in mobile.css.
   Brand palette taken from the original site: navy #12226C, black, white,
   light gray #f7f7f7 and charcoal #38383b.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #12226C;
  --navy-deep: #0d1950;           /* the brand navy darkened for depth */
  --black: #000;
  --white: #fff;
  --mist: #f7f7f7;
  --charcoal: #38383b;

  --navy-08: rgba(18, 34, 108, .08);
  --navy-14: rgba(18, 34, 108, .14);
  --navy-30: rgba(18, 34, 108, .3);
  --white-14: rgba(255, 255, 255, .14);
  --white-70: rgba(255, 255, 255, .72);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 140px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .05);
  --shadow-lg: 0 24px 48px -16px rgba(18, 34, 108, .28);
}

@supports (color: color-mix(in srgb, red, blue)) {
  :root { --navy-deep: color-mix(in srgb, #12226C 78%, #000); }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--black); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
strong { font-weight: 600; color: var(--black); }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.section--navy :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.site-header :focus-visible,
.site-footer__bar :focus-visible { outline-color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white-70); }
.section--navy h2, .section--navy strong { color: var(--white); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 18px; background: var(--white); color: var(--navy);
  font-weight: 500; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -.015em;
  position: relative;
  padding-top: 28px;
}
.section-title::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; background: var(--navy);
}
.section--navy .section-title::before { background: var(--white); }

.prose .lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--navy);
  font-weight: 300;
}
.section--navy .prose .lead { color: var(--white); }
.prose a { font-weight: 500; }

.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-size: .9rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, var(--navy));
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }
.btn__arrow { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); --btn-fill: var(--navy); }
.btn--light:hover, .btn--light:focus-visible { color: var(--white); border-color: var(--navy); }
.btn--ghost { --btn-fill: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease), height .4s var(--ease);
}
.site-header::before {
  /* soft gradient so the white logo always reads on photography */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent);
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled {
  background: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; flex: none; }
.brand img { height: 48px; width: auto; transition: height .4s var(--ease); }

.site-nav__list { display: flex; }
.site-nav a {
  position: relative; display: block;
  color: var(--white); text-decoration: none;
  font-size: .875rem; font-weight: 400; letter-spacing: .02em;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 120px;
  color: var(--white); overflow: hidden;
  background: var(--navy-deep);
}
.hero__media, .page-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 60%;
  will-change: transform;
}
.hero .hero__img { animation: kenburns 2.4s var(--ease-out) both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 25, 80, .92) 0%, rgba(18, 34, 108, .62) 45%, rgba(0, 0, 0, .25) 100%),
    linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%);
}
.hero__content { position: relative; }
.hero__mark {
  display: block; width: 56px; height: 56px; margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, .55);
  position: relative;
  animation: fadeUp .9s .1s var(--ease-out) both;
}
.hero__mark::after {
  content: ""; position: absolute; inset: 10px; background: var(--white);
  transform: scale(0); animation: markIn .8s .6s var(--ease-out) forwards;
}
.hero__title {
  color: var(--white);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 12ch;
}
.hero__word { display: block; animation: wordUp 1s var(--ease-out) both; }
.hero__word:nth-child(1) { animation-delay: .25s; }
.hero__word:nth-child(2) { animation-delay: .4s; }
.hero__word:nth-child(3) { animation-delay: .55s; }
.hero__sub {
  max-width: 640px; margin: 32px 0 0; padding-left: 20px;
  border-left: 2px solid var(--white);
  font-size: clamp(.95rem, .9rem + .35vw, 1.15rem); font-weight: 400; line-height: 1.7;
  color: var(--white-70);
  animation: fadeUp 1s .8s var(--ease-out) both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; animation: fadeUp 1s .95s var(--ease-out) both; }

.hero__cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 14px;
  animation: fadeUpCentered 1s 1.3s var(--ease-out) both;
}
.hero__cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--white); border-radius: 2px;
  animation: cue 1.8s 2s infinite var(--ease);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate;
  min-height: clamp(340px, 52vh, 520px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 clamp(48px, 7vw, 88px);
  color: var(--white); background: var(--navy); overflow: hidden;
}
.page-hero--compact { min-height: clamp(300px, 40vh, 420px); }
.page-hero .hero__img { animation: kenburns 2.4s var(--ease-out) both; }
.page-hero__media::after {
  /* The original about pages present the title on solid navy, so the photo sits under a deep navy wash. */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 34, 108, .86) 0%, rgba(18, 34, 108, .93) 100%);
}
.page-hero--photo .page-hero__media::after {
  background: linear-gradient(100deg, rgba(13, 25, 80, .9) 0%, rgba(18, 34, 108, .55) 55%, rgba(0, 0, 0, .3) 100%),
              linear-gradient(to top, rgba(0, 0, 0, .5), transparent 60%);
}
.page-hero__media::before {
  /* oversized outline square echoing the logo mark */
  content: ""; position: absolute; z-index: 1;
  right: -6vw; bottom: -18vw; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.page-hero__title {
  color: var(--white); font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4.4rem);
  font-weight: 500; letter-spacing: -.03em; line-height: 1.05;
  animation: wordUp 1s .2s var(--ease-out) both;
}
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 18px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400;
  color: var(--white-70);
  animation: fadeUp .9s .05s var(--ease-out) both;
}
.crumbs a { color: var(--white); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.crumbs a:hover { background-size: 100% 1px; }

/* ---------- Home intro ---------- */
.intro__lead {
  position: relative;
  max-width: 1040px;
  margin: 0 0 clamp(56px, 7vw, 96px);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.35rem);
  line-height: 1.45; font-weight: 300; letter-spacing: -.012em;
  color: var(--black);
  padding-top: 36px;
}
.intro__lead::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; background: var(--navy); }
.intro__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.intro__portrait { max-width: 360px; }

/* Portrait with offset navy square frame */
.portrait {
  position: relative; display: block; margin: 0;
  isolation: isolate;
}
.portrait::before {
  content: ""; position: absolute; z-index: -1;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--navy);
  transition: transform .6s var(--ease-out);
}
.portrait::after {
  content: ""; position: absolute; z-index: -1;
  left: -14px; top: -14px; width: 64px; height: 64px; background: var(--navy);
  transition: transform .6s var(--ease-out);
}
.portrait img {
  width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: top center;
  background: var(--mist);
  filter: saturate(.92);
  transition: filter .6s var(--ease), transform .8s var(--ease-out);
}
a.portrait { overflow: visible; }
a.portrait:hover img { filter: saturate(1.05); }
a.portrait:hover::before { transform: translate(-8px, -8px); }
a.portrait:hover::after { transform: translate(6px, 6px); }
.portrait--sm::before { inset: 12px -12px -12px 12px; }
.portrait--sm::after { width: 32px; height: 32px; left: -8px; top: -8px; }

/* ---------- Values band ---------- */
.values {
  background: var(--navy); color: var(--white);
  padding-block: clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.values::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  transform: translateX(-100%);
  animation: sheen 9s 2s infinite var(--ease);
  pointer-events: none;
}
.values__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.values__item {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 500; letter-spacing: .01em;
  cursor: default;
}
.values__mark {
  width: 12px; height: 12px; flex: none;
  border: 1px solid var(--white);
  transition: transform .5s var(--ease-out), background-color .3s var(--ease);
}
.values__item:hover .values__mark { transform: rotate(45deg); background: var(--white); }

/* ---------- Service overview cards ---------- */
.card-grid { display: grid; gap: 28px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(32px, 4vw, 56px);
  background: var(--white);
  border: 1px solid var(--navy-08);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; left: -1px; top: -1px; right: -1px; height: 3px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.svc-card:hover, .svc-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.svc-card:hover::before, .svc-card:focus-within::before { transform: scaleX(1); }
.svc-card__icon {
  width: 60px; height: 60px; margin-bottom: 28px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  transition: transform .6s var(--ease-out);
}
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card:hover .svc-card__icon { transform: rotate(-6deg) scale(1.04); }
.svc-card__title { font-size: var(--fs-h3); font-weight: 600; color: var(--black); max-width: 26ch; }
.svc-card__more { margin: 10px 0 26px; font-weight: 500; color: var(--navy); font-size: .92rem; }
.svc-card__more a { text-decoration: underline; }
.svc-card__more a:hover { text-decoration-thickness: 2px; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-card__arrow {
  width: 26px; height: 26px; margin-top: auto; padding-top: 0;
  align-self: flex-end; color: var(--navy);
  transform: translateX(-8px); opacity: .35;
  transition: transform .5s var(--ease-out), opacity .3s var(--ease);
}
.svc-card .check-list { margin-bottom: 32px; }
.svc-card:hover .svc-card__arrow { transform: none; opacity: 1; }

.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 14px; line-height: 1.7;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; background: var(--navy);
}

/* ---------- Split heading layout ---------- */
.split { display: grid; gap: 28px 64px; }
.split + .container { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Services index (accordion) ---------- */
.svc-index {
  display: grid; gap: 0 48px; align-items: start;
  border-top: 1px solid var(--navy-14);
}
.svc-index__item {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px; padding: 18px 4px;
  border-bottom: 1px solid var(--navy-14);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 500; color: var(--black);
  transition: padding-left .4s var(--ease-out), background-color .3s var(--ease);
  line-height: 1.4;
}
.svc-index__item:not(.svc-index__item--group):hover { padding-left: 14px; }
.svc-index__item--group { display: block; padding: 0; }
.svc-index__mark {
  width: 10px; height: 10px; flex: none; border: 1px solid var(--navy);
  transition: background-color .3s var(--ease), transform .5s var(--ease-out);
}
.svc-index__item:hover .svc-index__mark,
.svc-index__toggle[aria-expanded="true"] .svc-index__mark { background: var(--navy); transform: rotate(45deg); }
.svc-index__toggle {
  width: 100%; min-height: 72px; padding: 18px 4px;
  display: flex; align-items: center; gap: 18px; text-align: left;
  font-weight: 500; color: var(--black);
  transition: padding-left .4s var(--ease-out);
}
.svc-index__toggle:hover { padding-left: 14px; }
.svc-index__label { flex: 1; }
.svc-index__icon {
  position: relative; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--navy-30);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .5s var(--ease-out);
}
.svc-index__icon::before, .svc-index__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--navy);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease);
}
.svc-index__icon::after { transform: rotate(90deg); }
.svc-index__toggle:hover .svc-index__icon { border-color: var(--navy); }
.svc-index__toggle[aria-expanded="true"] .svc-index__icon { background: var(--navy); border-color: var(--navy); transform: rotate(180deg); }
.svc-index__toggle[aria-expanded="true"] .svc-index__icon::before,
.svc-index__toggle[aria-expanded="true"] .svc-index__icon::after { background: var(--white); }
.svc-index__toggle[aria-expanded="true"] .svc-index__icon::after { transform: rotate(0); }

.svc-index__panel { display: grid; grid-template-rows: 1fr; }
.js .svc-index__panel { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.js .svc-index__panel.is-open { grid-template-rows: 1fr; }
.svc-index__inner { overflow: hidden; }
.js .svc-index__panel:not(.is-open) .svc-index__inner { visibility: hidden; transition: visibility 0s .5s; }
.svc-index__sub { padding: 0 4px 24px 32px; }
.svc-index__sub li {
  position: relative; padding: 8px 0 8px 22px;
  font-size: .98rem; font-weight: 300; color: var(--charcoal);
}
.svc-index__sub li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 1px; background: var(--navy); }

/* Founder callout */
.callout {
  display: grid; gap: 28px; align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(32px, 5vw, 56px);
  background: var(--mist);
  border-left: 3px solid var(--navy);
}
.callout p { font-size: var(--fs-lead); line-height: 1.6; color: var(--navy); margin: 0; }
.callout__portrait { width: 120px; }

/* Tiles (responsibility lists, affiliate lists) */
.tile-grid { display: grid; gap: 20px; }
.tile {
  position: relative; padding: 32px 28px 28px;
  border: 1px solid var(--white-14);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease-out);
}
.tile p { margin: 0; line-height: 1.7; }
.tile__mark { display: block; width: 14px; height: 14px; margin-bottom: 22px; background: var(--white); transition: transform .5s var(--ease-out); }
.section--navy .tile:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); transform: translateY(-4px); }
.tile:hover .tile__mark { transform: rotate(45deg); }
.tile-grid--light .tile { border-color: var(--navy-14); background: var(--white); }
.tile-grid--light .tile__mark { background: var(--navy); }
.tile-grid--light .tile:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prose .tile-grid { margin: 8px 0 36px; }

.closing {
  max-width: 900px; margin: clamp(48px, 6vw, 80px) 0 0;
  padding-top: 32px; border-top: 1px solid var(--white-14);
  font-size: var(--fs-lead); line-height: 1.6; color: var(--white);
}

/* ---------- Bio pages ---------- */
.bio__grid { display: grid; gap: 56px; align-items: start; }
.bio__aside { display: grid; gap: 32px; }
.bio__portrait { max-width: 340px; margin-bottom: 18px; }
.creds { padding: 32px 28px; background: var(--mist); border-top: 3px solid var(--navy); }
.creds__title { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 18px; }
.creds__list li {
  position: relative; padding: 12px 0 12px 22px;
  font-size: .94rem; line-height: 1.55;
  border-bottom: 1px solid var(--navy-08);
}
.creds__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.creds__list li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 7px; height: 7px; background: var(--navy); }

.quick-contact { display: grid; gap: 2px; }
.quick-contact a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; min-height: 56px;
  background: var(--navy); color: var(--white); text-decoration: none;
  font-size: .92rem; font-weight: 400; overflow-wrap: anywhere;
  transition: background-color .3s var(--ease), padding-left .4s var(--ease-out);
}
.quick-contact a:hover { background: var(--black); padding-left: 24px; }

.bio__body .pull {
  position: relative; margin: 40px 0; padding: 4px 0 4px 28px;
  border-left: 3px solid var(--navy);
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.65; color: var(--black); font-weight: 400;
}

/* Attorney switcher */
.team-nav { background: var(--mist); padding-block: clamp(48px, 6vw, 80px); }
.team-nav__list { display: grid; gap: 16px; }
.team-nav__link {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px 14px 14px; background: var(--white);
  border: 1px solid var(--navy-08);
  color: var(--black); text-decoration: none; font-weight: 500;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s var(--ease);
}
.team-nav__link:hover, .team-nav__link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.team-nav__thumb { width: 64px; height: 64px; flex: none; overflow: hidden; background: var(--navy); display: grid; place-items: center; }
.team-nav__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-nav__mono { color: var(--white); font-size: 1.6rem; font-weight: 500; line-height: 1; border: 1px solid rgba(255, 255, 255, .6); width: 40px; height: 40px; display: grid; place-items: center; }
.team-nav__label { flex: 1; }
.team-nav__arrow { width: 22px; height: 22px; color: var(--navy); transition: transform .4s var(--ease-out); }
.team-nav__link:hover .team-nav__arrow { transform: translateX(5px); }

/* ---------- Legal page ---------- */
.legal__grid { display: grid; gap: 48px; align-items: start; }
.legal__toc { display: none; }
.legal__toc ul { border-left: 1px solid var(--navy-14); }
.legal__toc a {
  display: block; padding: 8px 0 8px 18px; margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: .88rem; font-weight: 400; color: var(--charcoal); text-decoration: none;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.legal__toc a:hover, .legal__toc a.is-active { color: var(--navy); border-left-color: var(--navy); font-weight: 500; }
.legal__body p { margin-bottom: 1.6em; }
.legal__body p[id] { padding-top: 24px; border-top: 1px solid var(--navy-08); }
.legal__caps { font-size: .9rem; letter-spacing: .01em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--navy-08); }
.site-footer__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--navy-14);
}
.site-footer__title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.4rem); font-weight: 500; letter-spacing: -.03em; }
.site-footer__logo img { width: 200px; height: auto; }
.contact-grid { display: grid; gap: 20px; }
.contact-card {
  padding: 30px 28px; background: var(--white);
  border: 1px solid var(--navy-08);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.contact-card__name { font-size: 1.02rem; font-weight: 600; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--navy-08); }
.contact-card__list { display: grid; gap: 6px; font-size: .92rem; }
.contact-card__list a, .contact-card__addr {
  display: flex; align-items: flex-start; gap: 12px; padding: 6px 0;
  color: var(--charcoal); text-decoration: none; line-height: 1.55; overflow-wrap: anywhere;
}
.contact-card__list .ico { margin-top: 2px; color: var(--navy); transition: transform .4s var(--ease-out); }
.contact-card__list a span { background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .3s var(--ease); }
.contact-card__list a:hover { color: var(--navy); }
.contact-card__list a:hover span { background-size: 100% 1px; }
.contact-card__list a:hover .ico { transform: scale(1.15); }

.site-footer__bar { margin-top: clamp(56px, 7vw, 104px); background: var(--navy); color: var(--white-70); padding-block: 26px; font-size: .85rem; }
.site-footer__bar p { margin: 0; }
.site-footer__bar a { color: var(--white); }

/* ---------- Floating controls ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s, background-color .3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--black); }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 110; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: background-color .3s var(--ease); }
.progress.on-dark span { background: var(--white); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes wordUp { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes markIn { to { transform: scale(1); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes sheen { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@keyframes fadeUpCentered { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Breakpoints (min width) ---------- */
@media (min-width: 640px) {
  .values__list { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .callout { grid-template-columns: auto 1fr; gap: 44px; }
  .team-nav__list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 92px; }
  .brand img { height: 58px; }
  .site-header.is-scrolled { height: 74px; }
  .site-header.is-scrolled .brand img { height: 46px; }

  .intro__grid { grid-template-columns: minmax(260px, 360px) 1fr; }
  .intro__body { padding-top: 8px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 5fr 7fr; }
  .split__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .svc-index { grid-template-columns: repeat(2, 1fr); }
  .tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .bio__grid { grid-template-columns: minmax(280px, 360px) 1fr; gap: clamp(56px, 7vw, 112px); }
  .bio__aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .legal__grid { grid-template-columns: 240px 1fr; gap: 80px; }
  .legal__toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (min-width: 1200px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .values__list { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .values__item + .values__item { position: relative; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .progress, .hero__cue, .team-nav { display: none !important; }
  .hero, .page-hero { min-height: 0; padding: 24px 0; background: none; color: #000; }
  .hero__media, .page-hero__media { display: none; }
  .hero__title, .page-hero__title { color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
