/* ==========================================================================
   NDC Accounting Solutions
   Design system: "Quiet authority"
   Warm paper, navy ink, restrained orange. Tokens first, then components.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --paper: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-warm: #fdf5ea;
  --warm: #fdf3e6;

  /* Ink */
  --ink: #1d2c49;
  --ink-strong: #131d31;
  --muted: #55617a;

  /* Brand */
  --primary: #4164a5;
  --primary-strong: #37548b;
  --primary-soft: #e9eef8;
  --accent: #f2a24c;
  --accent-strong: #d48f36;
  --accent-text: #8e4f0b;
  --accent-soft: #fceede;
  --accent-line: #f3ddbe;

  /* Dark band */
  --dark: #1a2742;
  --dark-2: #223250;
  --dark-muted: #b7c2d8;
  --on-dark: #ffffff;
  --on-dark-muted: #e7ebf4;

  /* Lines & shadow */
  --border: #e5e8ee;
  --border-strong: #7789b2;
  --focus: #1d2c49;
  --shadow-0: 0 1px 3px rgb(29 44 73 / 0.05);
  --shadow-1: 0 1px 3px rgb(29 44 73 / 0.06), 0 4px 12px rgb(29 44 73 / 0.06);
  --shadow-2: 0 2px 8px rgb(29 44 73 / 0.08), 0 14px 34px rgb(29 44 73 / 0.1);
  --shadow-float: 0 10px 30px rgb(29 44 73 / 0.16), 0 2px 6px rgb(29 44 73 / 0.08);

  /* Space */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(4rem, 3rem + 4vw, 7rem);
  --space-3xl: clamp(5rem, 4rem + 5vw, 8.5rem);

  /* Fluid type scale */
  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 1rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --step-3: clamp(2rem, 1.65rem + 1.75vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.1rem);

  /* Radius */
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --container: 74rem;
  --header-h: 5.05rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

html:has(.subnav) {
  scroll-padding-top: 10rem;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img,
picture,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

/* eleventy-img wraps every <img> in a <picture>; let the image own the box
   so grid/flex sizing and percentage constraints apply as written. */
picture {
  display: contents;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 var(--space-xs);
  color: var(--ink-strong);
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-s);
  max-width: 68ch;
}

a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ink);
}

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

::selection {
  background: var(--accent-soft);
  color: var(--ink-strong);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tint {
  background: var(--surface-2);
}

.section--warm {
  background: var(--surface-warm);
}

.section--snug {
  padding-block: var(--space-xl);
}

.grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.grid-2 {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: start;
}

.grid-2--center {
  align-items: center;
}

.section-head {
  max-width: 60ch;
  margin: 0 auto var(--space-l);
  text-align: center;
}

.section-head p {
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin: 0 0 var(--space-xs);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.icon {
  display: inline-flex;
  flex-shrink: 0;
}

.icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--on-dark);
}

main:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  background: var(--primary-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  color: var(--ink);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button--primary {
  background: var(--accent);
  color: var(--ink-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(29 44 73 / 0.12);
}

.button--primary:hover {
  background: var(--accent-strong);
  color: var(--ink-strong);
}

.button--ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--primary-strong);
  background: var(--surface);
}

.button--large {
  font-size: var(--step-1);
  padding: 0.95rem 2.1rem;
  min-height: 3.4rem;
}

.button .icon svg {
  width: 1.05em;
  height: 1.05em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar {
  background: var(--ink);
  color: var(--dark-muted);
  font-size: var(--step--1);
}

.topbar__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-m);
  padding-block: 0.45rem;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.55rem;
  color: var(--dark-muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.topbar__link:hover {
  color: var(--on-dark);
}

.topbar__spacer {
  flex: 1;
}

.topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-s);
  color: var(--dark-muted);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.topbar__icon:hover {
  color: var(--on-dark);
  background: rgb(255 255 255 / 0.1);
}

.mainbar {
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled .mainbar {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 20px rgb(29 44 73 / 0.06);
}

.mainbar__row {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding-block: var(--space-xs);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  height: 3.5rem;
  width: auto;
}

.brand__name {
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar {
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

@media (max-width: 40rem) {
  .topbar {
    display: none;
  }
}

@media (max-width: 62rem) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
  }

  .site-nav.is-open {
    max-height: 26rem;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.5rem;
  }

  .site-nav__link {
    display: block;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--primary-strong);
  }
}

@media (min-width: 62.01rem) {
  .site-nav {
    max-height: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav {
    transition: max-height 0.3s var(--ease);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  padding-block: var(--space-3xl) clamp(4rem, 3rem + 5vw, 7rem);
  background: linear-gradient(148deg, var(--paper) 42%, var(--warm) 100%);
}

.hero__content {
  max-width: 35rem;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-block: 0 var(--space-s);
}

.hero__lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

.hero__media {
  position: relative;
  width: min(30rem, 100%);
  justify-self: center;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--accent-soft) 10%, var(--warm) 90%);
  border: 1px solid var(--accent-line);
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.hero__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 14%;
}

.hero__chip {
  position: absolute;
  z-index: 2;
  left: -1.1rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem 0.5rem 0.6rem;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
}

.hero__chip img {
  height: 2.5rem;
  width: auto;
}

.hero__chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero__chip-text strong {
  font-size: var(--step--1);
  color: var(--ink-strong);
}

.hero__chip-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .hero__actions .button--ghost {
    display: none;
  }

  .hero__actions .button--primary {
    width: 100%;
  }
}

@media (max-width: 46rem) {
  .hero__media {
    width: min(26rem, 100%);
  }
}

/* --------------------------------------------------------------------------
   Credentials / badges
   -------------------------------------------------------------------------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 8.5rem;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-0);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.badge:hover,
.badge:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

.badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.badge-popover {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: min(90vw, 26rem);
  padding: var(--space-s);
  border: 0;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-float);
}

.badge-popover img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
}

.badge-popover__close {
  position: absolute;
  top: var(--space-2xs);
  right: var(--space-2xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  cursor: pointer;
}

.badge-popover::backdrop {
  background: rgb(19 29 49 / 0.62);
}

/* --------------------------------------------------------------------------
   Cards & service grid
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
}

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-0);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--radius-m);
  background: var(--primary-soft);
  color: var(--primary-strong);
  margin-bottom: 0.25rem;
}

.service-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-card h3 {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-strong);
}

.service-card__link .icon {
  transition: transform 0.2s var(--ease);
}

.service-card:hover .service-card__link .icon {
  transform: translateX(4px);
}

/* Note / callout under a grid */
.note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 54rem;
  margin: var(--space-l) auto 0;
  padding: 1rem 1.25rem;
  background: var(--surface-warm);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-m);
}

.note .icon {
  margin-top: 0.2rem;
  color: var(--accent-text);
  font-size: 1.15rem;
}

.note p {
  margin: 0;
  max-width: none;
  font-size: var(--step-0);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 54rem;
  background: var(--surface-warm);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-m);
  padding: 0.9rem 1.2rem;
}

.callout .icon {
  margin-top: 0.2rem;
  color: var(--accent-text);
  font-size: 1.15rem;
}

.callout p {
  max-width: none;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Team / profile
   -------------------------------------------------------------------------- */

.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-m);
  align-items: start;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
}

.team-card__photo {
  width: clamp(6rem, 24vw, 9.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 2%;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-0);
}

.team-card__body {
  min-width: 0;
}

.team-card h3 {
  margin: 0;
  font-size: var(--step-2);
}

.team-card__role {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.7rem 0;
  padding: 0;
}

.credentials-list li {
  padding: 0.15rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}

.team-card p {
  margin: 0 0 var(--space-s);
}

@media (max-width: 34rem) {
  .team-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .team-card__photo {
    width: 6.5rem;
  }
}

/* --------------------------------------------------------------------------
   Services page: sticky "on this page" nav
   -------------------------------------------------------------------------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

@media (prefers-reduced-motion: no-preference) {
  .subnav {
    transition: top 0.25s var(--ease);
  }
}

.subnav__row {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  overflow-x: auto;
  padding-block: 0.6rem;
  padding-right: 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 3.5rem), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 3.5rem), transparent 100%);
}

.subnav__row::-webkit-scrollbar {
  display: none;
}

.subnav__label {
  flex-shrink: 0;
  padding-right: 0.4rem;
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 34rem) {
  .subnav__label {
    display: none;
  }
}

.subnav a {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.35rem 0.2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.subnav a:hover {
  color: var(--primary-strong);
}

.subnav a.is-active {
  color: var(--primary-strong);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: var(--space-2xl) var(--space-xl);
}

.page-head--center {
  text-align: center;
}

.page-head--center .container {
  max-width: 46rem;
}

.page-head--center .eyebrow {
  justify-content: center;
}

.page-head--center p {
  margin-inline: auto;
}

.page-head--center .callout {
  text-align: left;
}

.about-bio {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.page-head h1 {
  font-size: var(--step-3);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.page-head .lead {
  margin-top: var(--space-2xs);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary-strong);
  margin-bottom: var(--space-s);
  box-shadow: var(--shadow-0);
}

.section-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-section {
  padding-block: var(--space-2xl) var(--space-xl);
}

.service-section h2 {
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.service-section h3 {
  font-size: var(--step-1);
  font-weight: 600;
  margin-top: var(--space-m);
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0 0 var(--space-s);
  padding: 0;
  max-width: 70ch;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-block: 0 0.55rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

@media (min-width: 48rem) {
  .checklist--cols:has(> li:nth-child(5)) {
    columns: 2;
    column-gap: var(--space-l);
    max-width: none;
  }

  .checklist--cols li {
    break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   Contact band
   -------------------------------------------------------------------------- */

.contact-band {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: var(--space-2xl);
}

.contact-band h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: var(--step-2);
  font-weight: 600;
}

.contact-band p {
  color: var(--on-dark-muted);
}

.contact-band a {
  color: var(--on-dark);
}

.contact-band .lead {
  color: var(--dark-muted);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
}

.contact-row .icon {
  color: var(--accent);
  font-size: 1.05rem;
}

.contact-row a,
.contact-row span {
  color: var(--on-dark-muted);
}

.contact-row a {
  text-decoration-color: rgb(255 255 255 / 0.4);
}

.contact-band__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: var(--space-s);
}

.contact-band__social .button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  background: var(--dark-2);
  color: var(--on-dark);
  border: 1px solid rgb(255 255 255 / 0.14);
}

.contact-band__social .button:hover {
  background: var(--accent);
  color: var(--ink-strong);
}

.contact-band__cta {
  margin-top: var(--space-s);
}

.contact-band__cta .button {
  width: 100%;
}

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  display: block;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-float);
  background: var(--dark-2);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-text p {
  margin: 0 0 var(--space-s);
}

.about-text .button {
  margin-top: var(--space-s);
}

.about-card {
  overflow: hidden;
}

.about-card .about-card__media {
  padding: clamp(0.85rem, 2vw, 1.35rem);
  background: linear-gradient(150deg, var(--accent-soft) 0%, var(--warm) 42%, var(--primary-soft) 100%);
}

.about-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 6%;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}

.about-card .card__body {
  padding: 1.6rem;
}

.about-card h2 {
  margin: 0;
  font-size: var(--step-2);
}

.about-card__role {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.about-card .badges {
  justify-content: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-s);
}

.about-card .badge-item {
  width: auto;
}

.about-card .badge {
  width: 4.75rem;
  height: 4.75rem;
  padding: 0.6rem;
}

@media (min-width: 62rem) {
  .about-card--sticky {
    position: sticky;
    top: 7.5rem;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl);
  text-align: center;
}

.site-footer p {
  margin-inline: auto;
}

.site-footer__title {
  margin: 0 0 var(--space-s);
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink-strong);
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-m);
  margin-bottom: var(--space-s);
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__contact a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
  list-style: none;
  margin: 0 0 var(--space-s);
  padding: 0;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__nav a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-s);
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.site-footer__social a:hover {
  background: var(--ink);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.site-footer hr {
  margin-block: var(--space-m);
}

.site-footer__legal {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Mobile action bar
   -------------------------------------------------------------------------- */

.action-bar {
  display: none;
}

@media (max-width: 40rem) {
  .action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    gap: var(--space-2xs);
    padding: var(--space-2xs) clamp(1rem, 0.5rem + 2vw, 2rem)
      calc(var(--space-2xs) + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgb(29 44 73 / 0.08);
  }

  .action-bar .button {
    flex: 1;
    min-height: 3rem;
  }

  body {
    padding-bottom: 5rem;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }

    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(1.6rem);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* stagger for grids */
    .reveal--stagger > * {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
      animation-delay: calc(var(--i, 0) * 70ms);
    }
  }
}

@supports (view-transition-name: main) {
  @media (prefers-reduced-motion: no-preference) {
    @view-transition {
      navigation: auto;
    }

    main {
      view-transition-name: main;
    }

    ::view-transition-old(main) {
      animation: fade-out 0.2s ease both;
    }

    ::view-transition-new(main) {
      animation: fade-in 0.25s ease both;
    }

    @keyframes fade-out {
      to {
        opacity: 0;
      }
    }

    @keyframes fade-in {
      from {
        opacity: 0;
        transform: translateY(0.5rem);
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .button,
  .card,
  .service-card,
  .badge,
  .site-footer__social a,
  .service-card__link .icon,
  .site-nav__link::after {
    transform: none !important;
  }
}
