/* =========================================================
   Anni Family Lawyers — site styles
   Brand colours sampled from the logo: burgundy #782432, navy #013563
   ========================================================= */

/* Self-hosted (SIL Open Font License) so pages render fast even where Google Fonts is blocked.
   Chinese text falls back to the system CJK fonts listed in the font stacks below. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #013563;
  --navy-800: #012b51;
  --navy-900: #01213f;
  --navy-100: #d9e4f0;
  --navy-50: #edf2f8;
  --burgundy: #782432;
  --burgundy-700: #5f1c28;
  --rose-200: #ecbec7;
  --rose-50: #f9eff1;
  --paper: #faf7f2;
  --sand: #f1ebe2;
  --ink: #1b2432;
  --muted: #5a6474;
  --line: #e7e1d8;
  --line-strong: #cdc6bb;
  --error: #b42318;
  --error-bg: #fef3f2;
  --focus: #d99100;

  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* CJK: Songti on Apple devices, Noto/Source Han Serif where installed, otherwise YaHei (avoids SimSun on Windows). */
  --font-serif: "Fraunces", Georgia, "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Microsoft YaHei", serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 18px 40px -20px rgba(1, 33, 63, .28);
  --shadow-lg: 0 34px 70px -32px rgba(1, 33, 63, .5);

  --container: 1180px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --header-h: 76px;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-lang="zh"] body { line-height: 1.8; letter-spacing: .01em; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }
a[href^="tel:"] { white-space: nowrap; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy);
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }
h3 { font-size: 1.3rem; }

html[data-lang="zh"] :is(h1, h2, h3, h4) { line-height: 1.35; letter-spacing: .02em; }
html[data-lang="zh"] h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
html[data-lang="zh"] h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--rose-200); color: var(--ink); }

/* ---------- Language toggle ----------
   Paired content is marked lang="en" / lang="zh-Hans"; the inactive one is hidden. */
html[data-lang="en"] [lang="zh-Hans"],
html[data-lang="zh"] [lang="en"] { display: none !important; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 12px;
  z-index: 200;
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 8vw, 112px); }
.section--paper { background: var(--paper); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p:last-child { margin-bottom: 0; }

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.head-row .section-head { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
html[data-lang="zh"] .eyebrow { font-size: .85rem; letter-spacing: .2em; }

.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--muted); }
.muted { color: var(--muted); }
.fineprint { margin: 1.5rem 0 0; font-size: .9rem; color: var(--muted); }

/* Highlights copy that still needs the firm's real details — remove the class once filled in. */
.todo {
  padding: .05em .3em;
  border-radius: 4px;
  background: #fff3c4;
  color: #6b5200;
  font-size: .92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(120, 36, 50, .75);
}
.btn--primary:hover { background: var(--burgundy-700); color: #fff; transform: translateY(-1px); }

.btn--outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--rose-50); color: var(--burgundy); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Safety bar ---------- */
.safety-bar { background: var(--navy-900); color: rgba(255, 255, 255, .86); font-size: .85rem; }
.safety-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding-block: 6px;
  text-align: center;
}
.safety-bar p { margin: 0; }
.safety-bar a { color: #fff; font-weight: 600; text-underline-offset: 2px; }
.safety-bar a:hover { color: var(--rose-200); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(10px); }
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(1, 33, 63, .4); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 50px; }

.site-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  position: relative;
  display: inline-block;
  padding: .4rem 0;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.site-nav ul a:hover { color: var(--navy); }
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { font-weight: 600; color: var(--navy); }

.header-tools { display: flex; align-items: center; gap: .75rem; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
}
.lang-switch button {
  min-width: 46px;
  padding: .35rem .7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang-switch button:not([aria-pressed="true"]):hover { background: var(--navy-50); color: var(--navy); }

.nav-toggle {
  position: relative;
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--navy);
}
.nav-toggle__bar { top: 50%; left: 50%; margin: -1px 0 0 -10px; transition: background-color .2s; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; left: 0; transition: transform .2s; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.site-header.is-open .nav-toggle__bar { background: transparent; }
.site-header.is-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .brand img { height: 42px; }
  .nav-toggle { display: inline-block; }
  .header-tools { margin-left: auto; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(1, 33, 63, .35);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--burgundy); }
}

@media (max-width: 400px) {
  .brand img { height: 36px; }
  .lang-switch button { min-width: 40px; padding-inline: .55rem; }
}

/* ---------- Decorative brand mark ---------- */
.has-mark { position: relative; overflow: hidden; }
.has-mark::before {
  content: "";
  position: absolute;
  aspect-ratio: 358 / 338;
  background: url("../img/mark-a.png") no-repeat center / contain;
  pointer-events: none;
}

/* ---------- Hero (home) ---------- */
.hero {
  padding-block: clamp(56px, 8vw, 112px);
  background:
    radial-gradient(1100px 480px at 88% 0%, rgba(120, 36, 50, .07), transparent 62%),
    linear-gradient(180deg, var(--paper), #fff 88%);
}
.hero::before { right: -4%; bottom: -14%; width: min(52vw, 640px); opacity: .055; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--burgundy); }
html[data-lang="zh"] .hero h1 em { font-style: normal; font-weight: 600; }
.hero .lead { max-width: 36em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 2.25rem; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  margin: 0; padding: 0;
  list-style: none;
  font-size: .95rem;
  color: var(--muted);
}
.trust-list li { display: inline-flex; align-items: center; gap: .5rem; }
.trust-list svg { width: 20px; height: 20px; color: var(--burgundy); }

.hero-card {
  position: relative;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(28px, 3.5vw, 44px);
  width: 56px; height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--rose-200);
}
.hero-card__kicker {
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-200);
}
.hero-card h2 { margin: .4rem 0 .6rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); color: #fff; }
.hero-card ul { display: grid; gap: .9rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.hero-card li { display: flex; align-items: flex-start; gap: .8rem; }
.hero-card li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--rose-200); }
.hero-card .btn { width: 100%; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Split layout & values ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.split--faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.sticky-head { position: sticky; top: calc(var(--header-h) + 32px); }

@media (max-width: 900px) {
  .split, .split--faq { grid-template-columns: 1fr; }
  .sticky-head { position: static; }
}

.values { display: grid; margin: 0; padding: 0; list-style: none; }
.value {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.value:first-child { padding-top: 0; }
.value:last-child { border-bottom: 0; }
.value h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.value p { margin: 0; color: var(--muted); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--burgundy);
}
.icon-badge svg { width: 24px; height: 24px; }

.about-copy p { color: var(--ink); }

/* ---------- Practice areas ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.practice-card {
  height: 100%;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.practice-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.practice-card .icon-badge { margin-bottom: 20px; }
.practice-card h3 { margin-bottom: .45rem; font-size: 1.2rem; }
.practice-card p { margin: 0; font-size: .98rem; color: var(--muted); }

@media (max-width: 1100px) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .practice-grid { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { position: relative; padding-top: 76px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 1.5px solid var(--burgundy);
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--burgundy);
}
.step::after {
  content: "";
  position: absolute;
  top: 27px; left: 66px; right: -16px;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 54px; padding: 4px 0 0 76px; }
}

/* ---------- Team teaser ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0; padding: 0;
  list-style: none;
}
.team-card { display: block; color: inherit; text-decoration: none; }
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
  transition: transform .3s, box-shadow .3s;
}
.team-card:hover img { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card h3 { margin: 1rem 0 .15rem; font-size: 1.15rem; }
.team-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.team-card:hover h3 { color: var(--burgundy); }

@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%; right: .5rem;
  width: 11px; height: 11px;
  border-right: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--burgundy); }
.faq .answer { padding: 0 3rem 1.5rem 0; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(56px, 7vw, 88px);
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
}
.cta-band::before { top: 50%; right: 3%; width: 300px; opacity: .08; filter: brightness(0) invert(1); transform: translateY(-50%); }
.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { margin-bottom: .35em; color: #fff; }
.cta-band p { max-width: 40em; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 80px);
  background: var(--navy-900);
  font-size: .95rem;
  color: rgba(255, 255, 255, .72);
}
.site-footer a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { width: 190px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 26em; }
.footer-title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-200);
}
.footer-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 .55rem; }

.footer-legal {
  display: grid;
  gap: .75rem;
  padding-block: 28px 96px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .62);
}
.footer-legal p { margin: 0; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Quick exit ---------- */
.quick-exit {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55);
}
.quick-exit:hover { background: #000; color: #fff; }
.quick-exit svg { width: 16px; height: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-block: clamp(56px, 7vw, 96px) clamp(44px, 5vw, 72px);
  background: linear-gradient(180deg, var(--paper), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero::before { top: -18%; right: -3%; width: min(40vw, 460px); opacity: .05; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { max-width: 44em; margin-bottom: 0; }

.jump-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
}
.jump-nav a:hover { border-color: var(--navy); color: var(--navy); }
.jump-nav .muted { font-size: .85rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- People ---------- */
.profiles { padding-block: clamp(16px, 3vw, 32px) clamp(64px, 8vw, 104px); }
.profile {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.profile:last-child { border-bottom: 0; }
.profile:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); }
.profile:nth-child(even) .profile__photo { order: 2; }

.profile__photo { position: relative; isolation: isolate; }
.profile__photo::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1.5px solid var(--rose-200);
  border-radius: var(--radius-lg);
}
.profile__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--sand);
  box-shadow: var(--shadow-md);
}

.profile__role {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.profile__body h2 { margin-bottom: .35rem; }
.profile__creds { margin-bottom: 1.25rem; font-size: .98rem; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.tags li {
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--navy-50);
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy);
}

.profile__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.profile__meta dt {
  margin-bottom: .25rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile__meta dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .profile,
  .profile:nth-child(even) { grid-template-columns: 1fr; }
  .profile:nth-child(even) .profile__photo { order: 0; }
  .profile__photo { max-width: 300px; }
  .profile__meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .profile__meta { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.contact-grid > div > h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 1.5rem; }

.info-list { margin: 0; padding: 0; list-style: none; }
.info-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-item:first-child { padding-top: 0; }
.info-item:last-child { border-bottom: 0; }
.info-item .icon-badge { width: 44px; height: 44px; border-radius: 50%; }
.info-item .icon-badge svg { width: 20px; height: 20px; }
.info-item h3 {
  margin: 0 0 .25rem;
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-item p, .info-item address { margin: 0; font-style: normal; }
.info-item a { font-weight: 600; }
.info-item .link-arrow { margin-top: .35rem; font-size: .92rem; }

.map-frame {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--sand);
  box-shadow: var(--shadow-md);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
