/* Nkunja Kaari & Co Advocates */
:root {
  --teal: #008080;
  --teal-deep: #006466;
  --teal-bright: #33a3a3;
  --ink: #0b2526;
  --brand: #008080;        /* logo teal: main background colour */
  --brand-deep: #006e6e;   /* hover / pressed state */
  --ink-2: #123536;
  --text: #1d2b2c;
  --muted: #5b6b6b;
  --line: #d9ddd4;
  --paper: #fbfaf5;
  --cream: #f5f5dc;
  --tint: #f1f1e6;
  --white: #ffffff;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 250, 245, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height .35s var(--ease); }
.scrolled .header-inner { height: 72px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 58px; height: 28px; fill: currentColor; color: var(--white); }
.scrolled .brand-mark { color: var(--teal); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.brand-sub { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; margin-top: 3px; }

.nav ul { display: flex; align-items: center; gap: 36px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; position: relative; padding: 6px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid currentColor; padding: 10px 20px !important; transition: background .25s, color .25s, border-color .25s; }
.nav-cta:hover { background: var(--white); color: var(--brand); border-color: var(--white); }
.scrolled .nav-cta { background: var(--teal); border-color: var(--teal); color: var(--white); }
.scrolled .nav-cta:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--brand);
  color: var(--white);
  padding: 160px 0 0;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 85% 10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(0,60,60,.18), transparent 60%),
    linear-gradient(180deg, #008080 0%, #007878 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-beam {
  position: absolute; z-index: -1; top: -20%; right: 8%;
  width: 70vmax; height: 70vmax;
  background: conic-gradient(from 200deg at 50% 0%, transparent 0deg, rgba(255,255,255,.28) 14deg, transparent 30deg);
  transform-origin: 50% 0%;
  animation: sweep 14s ease-in-out infinite alternate;
  filter: blur(8px);
  pointer-events: none;
}
@keyframes sweep { from { transform: rotate(-16deg); } to { transform: rotate(18deg); } }

.hero-inner { padding-bottom: clamp(56px, 8vw, 96px); }
.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.hero h1 {
  font-size: clamp(42px, 7.6vw, 118px);
  line-height: .94;
  letter-spacing: -0.045em;
  font-weight: 400;
  max-width: 13ch;
}
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-top: clamp(40px, 6vw, 72px); }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--white); max-width: 46ch; margin: 0; }
.lead-dark { color: var(--muted); margin-top: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--brand-deep); }
.btn-light:hover { background: var(--cream); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost:hover { border-color: var(--white); }

.facts {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.28);
}
.facts > div { padding: 28px 24px 36px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.28); }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 10px; max-width: 22ch; line-height: 1.4; }
.facts dd { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--brand); color: var(--white); }

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 28px;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.kicker-light { color: var(--white); }

.display { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 400; color: var(--ink); }
.display-sm { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 400; color: var(--ink); }
.accent { color: var(--teal); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.prose { color: var(--muted); max-width: 60ch; }
.prose .big { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text); letter-spacing: -0.01em; }
.split .prose { padding-top: 54px; }

.link-arrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-weight: 500; font-size: 15px; color: var(--teal); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; margin-top: 8px;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Practice ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .display { max-width: 18ch; }
.section-note { color: var(--muted); font-size: 15px; margin: 0; white-space: nowrap; }

.practice-list { border-top: 1px solid var(--ink); }
.practice { border-bottom: 1px solid var(--line); }
.practice summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 16px;
  padding: 30px 0;
  transition: color .25s var(--ease), padding .35s var(--ease);
}
.practice summary::-webkit-details-marker { display: none; }
.practice summary:hover { color: var(--teal); padding-left: 12px; }
.num { font-family: var(--display); font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.p-title { font-family: var(--display); font-size: clamp(21px, 2.1vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }
.plus { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: background .25s, border-color .25s, transform .35s var(--ease); justify-self: end; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.practice[open] .plus { background: var(--teal); border-color: var(--teal); color: var(--white); }
.practice[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.practice[open] summary { color: var(--teal); }
.p-body { padding: 0 56px 36px 96px; max-width: 920px; color: var(--muted); font-size: 17px; animation: drop .45s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tags li { font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* ---------- People ---------- */
.person { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.portrait {
  position: sticky; top: 112px;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(400px 300px at 70% 20%, rgba(0,128,128,.35), transparent 70%),
    var(--brand);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.portrait-mark { width: 70%; height: auto; aspect-ratio: 380 / 182; fill: var(--white); opacity: .95; }
.portrait-cap { position: absolute; left: 24px; bottom: 20px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.role { color: var(--teal); font-weight: 500; font-size: 15px; letter-spacing: .02em; margin: 14px 0 40px; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.creds h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.creds li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.creds strong { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.creds span { font-size: 15px; color: var(--muted); }

/* ---------- Approach ---------- */
.vision {
  margin: 0; max-width: 22ch;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(28px, 3.9vw, 58px); line-height: 1.08; letter-spacing: -0.035em;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid rgba(255,255,255,.28); }
.pillars article { padding: 36px 32px 8px 0; }
.pillars article + article { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.28); }
.pill-num { font-family: var(--display); font-size: 14px; color: var(--white); }
.pillars h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; margin: 20px 0 14px; }
.pillars p { color: var(--white); max-width: 34ch; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-card { background: var(--white); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.c-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.c-row:first-child { padding-top: 0; }
.c-row:last-child { border-bottom: 0; padding-bottom: 0; }
.c-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.c-row address, .c-row p { font-style: normal; font-family: var(--display); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; color: var(--ink); letter-spacing: -0.015em; margin: 0 0 6px; }
.todo { color: #b0782a !important; font-style: italic !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: var(--white); padding: 88px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-mark { width: 120px; height: 58px; fill: var(--white); margin-bottom: 20px; }
.footer-name { font-family: var(--display); font-size: 19px; color: var(--white); margin: 0 0 4px; letter-spacing: -0.01em; }
.footer-tag { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; margin: 0; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 56px; align-content: start; }
.footer-nav a { text-decoration: none; font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.88); }
.footer-legal p { margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-foot { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .split .prose { padding-top: 0; }
  .person { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 420px; aspect-ratio: 16 / 10; }
  .section-head { flex-direction: column; align-items: start; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav ul {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    padding: 0 var(--gutter);
    background: var(--brand); color: var(--white);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav ul.open { opacity: 1; visibility: visible; }
  .nav ul a { font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: -0.03em; }
  .nav ul .nav-cta { border: 0; padding: 6px 0 !important; background: none !important; color: var(--white) !important; }
  .site-header.menu-open { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header.menu-open .brand-mark { color: var(--white); }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.28); }
  .pillars { grid-template-columns: 1fr; }
  .pillars article + article { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.28); }
  .pillars article { padding-bottom: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 46px; height: 22px; }
  .eyebrow { font-size: 11px; letter-spacing: .16em; }
  .btn { width: 100%; justify-content: center; }
  .practice summary { grid-template-columns: 40px 1fr 36px; padding: 24px 0; }
  .plus { width: 36px; height: 36px; }
  .p-body { padding: 0 0 28px 56px; }
  .creds { grid-template-columns: 1fr; gap: 32px; }
  .section-note { white-space: normal; }
  .facts > div { padding-right: 12px; }
  .facts > div + div { padding-left: 12px; }
  .facts > div:nth-child(3) { padding-left: 0; }
}

/* fixes */
.hero > .wrap { width: 100%; }
.facts > div { display: flex; flex-direction: column; justify-content: space-between; }
.facts dt { max-width: none; }

/* =========================================================
   Multi-page additions
   ========================================================= */

/* Nav state */
.nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.nav-phone { display: none; }
@media (min-width: 1180px) {
  .nav-phone { display: list-item; }
  .nav-phone a { opacity: .8; font-variant-numeric: tabular-nums; }
}

/* Page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand); color: var(--white);
  padding: clamp(150px, 18vw, 210px) 0 clamp(72px, 9vw, 120px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 600px at 90% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(180deg, #008080 0%, #007878 100%);
}
.page-hero .hero-beam { top: -40%; right: 4%; width: 60vmax; height: 60vmax; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; font-size: 13px; color: rgba(255,255,255,.85); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--white); }
.crumbs li:last-child a { color: var(--white); pointer-events: none; }
.page-title {
  font-size: clamp(36px, 5.3vw, 84px); line-height: .98; letter-spacing: -0.045em; font-weight: 400;
  max-width: 16ch;
}
.page-lede { margin-top: clamp(28px, 3vw, 40px); max-width: 58ch; }
.page-hero-compact .page-lede { color: var(--white); font-size: 16px; letter-spacing: .02em; }

/* Photo */
.photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #e7e7e5; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.02); }
.photo-sticky { position: sticky; top: 112px; }
.feature-person { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.feature-person .photo { max-width: 480px; }

.focus { margin-top: 48px; }
.focus h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tags a { text-decoration: none; }
.focus .tags li { transition: border-color .2s, color .2s; }
.focus .tags li:hover { border-color: var(--teal); color: var(--teal); }

/* Practice overview grid */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.p-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; min-height: 320px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.p-card h2 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.12; color: var(--ink); transition: color .35s; }
.p-card p { color: var(--muted); font-size: 16px; margin: 0; transition: color .35s; }
.p-card-go { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 500; color: var(--teal); transition: color .35s; }
.p-card-go span { display: inline-block; transition: transform .3s var(--ease); }
.p-card:hover { background: var(--brand); }
.p-card:hover h2, .p-card:hover .p-card-go { color: var(--white); }
.p-card:hover p, .p-card:hover .num { color: var(--white); }
.p-card:hover .p-card-go span { transform: translateX(4px); }

/* Practice detail */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(48px, 8vw, 120px); align-items: start; }
.prose-article { max-width: 68ch; }
.prose-article p { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose-article p:first-child { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }
.h-services { font-size: clamp(24px, 2.3vw, 32px); color: var(--ink); margin: 56px 0 24px; padding-top: 48px; border-top: 1px solid var(--line); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.service-list li {
  position: relative; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line);
  font-size: 16px; color: var(--ink);
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 8px;
  border-left: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); transform: rotate(-45deg);
}
.aside { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 24px; }
.aside-card { background: var(--brand); color: var(--white); padding: 36px 32px; }
.aside-card .c-label { color: var(--white); }
.aside-title { font-family: var(--display); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 24px; }
.aside-line { display: block; text-decoration: none; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.28); color: var(--white); font-size: 15px; word-break: break-word; transition: color .2s; }
.aside-line:hover { color: var(--white); }
.btn-block { width: 100%; justify-content: center; margin-top: 20px; }
.aside-card .btn-dark { background: var(--white); color: var(--brand-deep); }
.aside-card .btn-dark:hover { background: var(--cream); }
.aside-other { border: 1px solid var(--line); padding: 28px 32px; }
.aside-other ul { margin-top: 8px; }
.aside-other a { display: block; text-decoration: none; padding: 9px 0; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--line); transition: color .2s, padding .3s var(--ease); }
.aside-other li:last-child a { border-bottom: 0; }
.aside-other a:hover { color: var(--teal); padding-left: 6px; }

.pager { border-top: 1px solid var(--line); }
.pager-inner { display: grid; grid-template-columns: 1fr 1fr; }
.pager a { text-decoration: none; padding: 40px 0; display: flex; flex-direction: column; gap: 6px; transition: color .25s; }
.pager-next { text-align: right; border-left: 1px solid var(--line); padding-left: 32px !important; }
.pager-prev { padding-right: 32px !important; }
.pager-title { font-family: var(--display); font-size: clamp(19px, 2vw, 28px); letter-spacing: -0.03em; color: var(--ink); transition: color .25s; }
.pager a:hover .pager-title { color: var(--teal); }

/* Buttons */
.btn-dark { background: var(--brand); color: var(--white); }
.btn-dark:hover { background: var(--brand-deep); }

/* CTA band */
.cta-band { background: var(--cream); padding: clamp(80px, 10vw, 136px) 0; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.cta-inner .display { font-size: clamp(30px, 3.7vw, 54px); max-width: 15ch; }
.cta-actions { display: flex; flex-direction: column; gap: 0; }
.cta-actions .btn { align-self: flex-start; margin-bottom: 28px; }
.cta-line { display: block; text-decoration: none; padding: 16px 0; border-top: 1px solid rgba(11,37,38,.15); font-family: var(--display); font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.015em; color: var(--ink); transition: color .2s; word-break: break-word; }
.cta-line .c-label { margin-bottom: 4px; }
.cta-line:hover { color: var(--teal); }

/* About: expectations */
.expect { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.expect li { padding: 28px 0; border-top: 1px solid var(--line); }
.expect h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.expect p { color: var(--muted); margin: 0; font-size: 16px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.contact-list .c-row:first-child { padding-top: 0; }
.c-big { display: block; font-style: normal; text-decoration: none; font-family: var(--display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; word-break: break-word; }
a.c-big:hover { color: var(--teal); }
.map { min-height: 460px; background: var(--tint); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* Social */
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social-light { margin-top: 28px; }
.social-light a { border-color: rgba(255,255,255,.5); color: var(--white); }
.social-light a:hover { background: var(--white); color: var(--brand); border-color: var(--white); }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.6fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.28); }
.f-head { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); margin: 8px 0 20px; }
.f-list li { margin-bottom: 10px; }
.f-list a, .f-contact a { text-decoration: none; font-size: 15px; transition: color .2s; }
.f-list a:hover, .f-contact a:hover { color: var(--white); }
.f-list-cols { columns: 2; column-gap: 32px; }
.f-list-cols li { break-inside: avoid; }
.f-contact { font-style: normal; font-size: 15px; line-height: 1.6; }

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .p-grid { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 1024px) {
  .feature-person, .cta-inner, .contact-grid { grid-template-columns: 1fr; }
  .photo-sticky { position: relative; top: 0; max-width: 420px; }
  .cta-inner { align-items: start; }
}
@media (max-width: 700px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-card { min-height: 0; }
  .service-list, .expect { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .f-list-cols { columns: 1; }
  .pager-inner { grid-template-columns: 1fr; }
  .pager-next { text-align: left; border-left: 0; border-top: 1px solid var(--line); padding-left: 0 !important; }
  .pager a { padding: 28px 0; }
  .map, .map iframe { min-height: 340px; }
  .page-title { font-size: clamp(32px, 9vw, 46px); }
}
.p-card-cta { grid-column: span 2; background: var(--brand); }
.p-card-cta .num { color: var(--white); }
.p-card-cta h2 { color: var(--white); max-width: 22ch; }
.p-card-cta .p-card-go { color: var(--white); }
.p-card-cta:hover { background: var(--brand-deep); }
@media (max-width: 700px) { .p-card-cta { grid-column: auto; } }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.page-hero-404 .crumbs { display: none; }

/* =========================================================
   Blog / Insights
   ========================================================= */
@media (max-width: 1120px) and (min-width: 861px) { .nav ul { gap: 22px; } .nav a { font-size: 13.5px; } }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; background: var(--paper);
  transition: background .35s var(--ease);
}
.section-tint .post-card { background: var(--white); }
.post-card h3 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; color: var(--ink); letter-spacing: -0.025em; transition: color .3s; }
.post-card p { color: var(--muted); font-size: 16px; margin: 0; }
.post-card .p-card-go { margin-top: auto; }
.post-card:hover h3 { color: var(--teal); }
.post-card:hover .p-card-go span { transform: translateX(4px); }
.post-meta { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

.post-feature {
  display: block; text-decoration: none; background: var(--brand); color: var(--white);
  padding: clamp(36px, 5vw, 72px); margin-bottom: clamp(40px, 5vw, 64px);
  position: relative; overflow: hidden; isolation: isolate;
}
.post-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 100% 0%, rgba(255,255,255,.14), transparent 70%); }
.post-feature .post-meta { color: var(--white); }
.post-feature h2 { font-size: clamp(26px, 3.3vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 400; max-width: 22ch; margin: 18px 0 20px; }
.post-feature p { color: var(--white); max-width: 60ch; font-size: 17px; }
.post-feature .p-card-go { color: var(--white); display: inline-block; margin-top: 12px; }
.post-feature:hover .p-card-go span { transform: translateX(4px); }

.page-hero-post .page-title { font-size: clamp(29px, 3.8vw, 54px); line-height: 1.06; max-width: 22ch; }
.page-hero-post .crumbs li:last-child { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section-post { padding-top: clamp(48px, 6vw, 80px); }
.post-byline, .post-body, .post-foot { max-width: 720px; margin-left: auto; margin-right: auto; }
.post-byline { font-size: 14px; color: var(--muted); padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-body { font-size: 18px; line-height: 1.75; color: var(--text); }
.post-body p { margin: 0 0 1.25em; }
.post-body .post-lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); letter-spacing: -0.012em; margin-bottom: 1.4em; }
.post-body h2 { font-size: clamp(21px, 1.9vw, 26px); color: var(--ink); letter-spacing: -0.025em; line-height: 1.2; margin: 1.9em 0 .6em; }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding: 0; }
.post-body li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.post-body ul li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 1.5px; background: var(--teal); }
.post-body ol { counter-reset: n; }
.post-body ol li { counter-increment: n; }
.post-body ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--display); font-size: 14px; color: var(--teal); }

.post-foot { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.post-disclaimer { font-size: 14px; color: var(--muted); background: var(--tint); border-left: 2px solid var(--teal); padding: 18px 22px; margin: 0; }
.post-related { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border: 1px solid var(--line); padding: 28px 32px; transition: border-color .25s; }
.post-related:hover { border-color: var(--teal); }
.post-related-title { font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.post-related-text { color: var(--muted); font-size: 15px; }
.post-related .p-card-go { margin-top: 8px; }

.aside-post { display: flex; flex-direction: column; gap: 8px; text-decoration: none; border: 1px solid var(--line); padding: 28px 32px; background: var(--tint); transition: border-color .25s; }
.aside-post:hover { border-color: var(--teal); }
.aside-post-title { font-family: var(--display); font-size: 18px; line-height: 1.25; color: var(--ink); letter-spacing: -0.015em; }

.credit a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); transition: color .2s, border-color .2s; }
.credit a:hover { color: var(--white); border-color: var(--white); }

@media (max-width: 1024px) { .post-grid { grid-template-columns: 1fr 1fr; } .post-grid > :nth-child(3) { display: none; } .post-grid-2 > :nth-child(3) { display: flex; } }
@media (max-width: 700px) {
  .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .post-grid > :nth-child(3) { display: flex; }
  .post-body { font-size: 17px; }
  .page-hero-post .crumbs li:last-child { display: none; }
}

/* =========================================================
   Formatted text from the editor (articles, extra pages, bios)
   ========================================================= */
.post-body li p, .prose li p { margin: 0; }
.post-body h3, .prose-article h3, .prose h3 { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; margin: 1.6em 0 .5em; }
.post-body a, .prose a:not(.link-arrow) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover, .prose a:not(.link-arrow):hover { color: var(--ink); }
.post-body blockquote, .prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--teal); font-family: var(--display); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--ink); }
.post-body blockquote p:last-child, .prose blockquote p:last-child { margin-bottom: 0; }
.post-body img, .prose img { max-width: 100%; height: auto; display: block; margin: 1.6em 0; }
.post-image { margin: 0 0 2em; }
.post-image img { width: 100%; height: auto; display: block; margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
