@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours are sampled from the Deem Forensic logo. */
  --ink: #15123f;
  --plum: #4a2372;
  --plum-soft: #efe9f5;
  --paper: #f7f5ef;
  --tint: #efece3;
  --card: #ffffff;
  --line: #dcd7ca;
  --text: #23213a;
  --muted: #5b586e;
  --brass: #85590f;
  --gold: #e3bd6a;
  --ok: #17603a;
  --err: #a1261d;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
address {
  font-style: normal;
}
a {
  color: var(--plum);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.skip:focus {
  top: 1rem;
  color: #fff;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.icon--lg {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--plum);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 40rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: 600 0.95rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--plum-soft);
  border-color: var(--plum-soft);
  color: var(--ink);
}
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--plum);
  text-decoration: none;
  white-space: nowrap;
}
a.more:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 2.75rem;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--tint);
  color: var(--ink);
}
.site-nav a[aria-current='page'] {
  color: var(--plum);
  box-shadow: inset 0 -2px 0 var(--plum);
  border-radius: 0;
}
.site-nav li:last-child a {
  margin-left: 0.5rem;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  border-radius: var(--radius);
}
.site-nav li:last-child a:hover {
  background: var(--plum);
}
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: '';
  position: relative;
}
.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}
.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 46rem) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav a {
    padding: 0.8rem 0.5rem;
  }
  .site-nav li:last-child a {
    margin: 0.5rem 0 0;
    text-align: center;
  }
}

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

/* Dark panels (home hero and inner page heads) share one backdrop: ink, a plum glow and a faint ledger grid. */
.hero,
.page-head {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(60rem 32rem at 85% 10%, rgba(122, 63, 184, 0.42), transparent 62%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(74, 35, 114, 0.5), transparent 65%),
    #0e0c2c;
  color: #cfcbe6;
  overflow: hidden;
}
.hero::before,
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero h1,
.page-head h1 {
  color: #fff;
}
.hero .eyebrow,
.page-head .eyebrow,
.page-head .eyebrow a {
  color: var(--gold);
}
.hero .lede,
.page-head .lede {
  color: #cfcbe6;
}
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5.5rem, 10vw, 8rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.hero-copy .lede {
  margin-top: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-copy > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

/* The map: every state the firm works in, lit up. */
.map {
  margin: 0;
}
.map svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 1.5rem 2.5rem rgba(0, 0, 0, 0.45));
}
.map path {
  stroke: #0e0c2c;
  stroke-width: 1;
  stroke-linejoin: round;
}
.map-base path {
  fill: rgba(255, 255, 255, 0.09);
}
.map-active path {
  fill: #8f5fd6;
  transition: fill 0.15s;
  animation: light-up 0.6s ease-out both;
  animation-delay: calc(0.3s + var(--i, 0) * 55ms);
}
.map-active a {
  outline: none;
}
.map-active a:hover path,
.map-active a:focus-visible path {
  fill: var(--gold);
}
@keyframes light-up {
  from {
    fill: rgba(255, 255, 255, 0.09);
  }
}
.map-hq circle {
  fill: var(--gold);
  stroke: #0e0c2c;
  stroke-width: 1.5;
}
.map-hq .map-hq-pulse {
  stroke: none;
  opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  to {
    r: 18px;
    opacity: 0;
  }
}
.map figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.map-label {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fff;
}
.map-key {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.map-key-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Stats card, pulled up over the bottom edge of the hero. */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(-4rem, -6vw, -3rem) 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 50px -28px rgba(14, 12, 44, 0.45);
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
}
.stats div + div {
  border-left: 1px solid var(--line);
}
.stats dt {
  font-size: 0.85rem;
  color: var(--muted);
}
.stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.page-head {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.section--flush {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.page-head h1 {
  max-width: 18ch;
}
.page-head .lede {
  margin-top: 1.25rem;
}
.h-small {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.h-sub {
  font-size: 1.5rem;
  margin: 3.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
}
.cards--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.card h3 a {
  color: inherit;
  text-decoration: none;
}
/* Whole card is the link target. */
.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card:has(h3 a):hover {
  border-color: var(--plum);
}
.card--case .more {
  margin-top: auto;
  padding-top: 0.5rem;
}
.tag {
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass) !important;
}

/* ---------- Logos ---------- */

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  flex: none;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.logo-tile--lg {
  width: 9rem;
  height: 9rem;
  padding: 1rem;
}
.logo-tile--initials {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--plum);
  background: var(--plum-soft);
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}
.logo-wall a {
  display: block;
}
.logo-wall .logo-tile {
  width: 100%;
  height: 6rem;
  padding: 0.9rem;
  transition: border-color 0.15s;
}
.logo-wall a:hover .logo-tile {
  border-color: var(--plum);
}

/* ---------- People ---------- */

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
  background: var(--tint);
}
.people {
  display: grid;
  gap: 1.5rem;
}
.people--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
}
.people--5 {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}
.person h3 {
  font-size: 1.05rem;
  margin-top: 0.85rem;
}
.person h3 a {
  color: inherit;
  text-decoration: none;
}
.person h3 a:hover {
  text-decoration: underline;
}
.person-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  margin-top: 0.2rem;
}
.person-cred {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.person--row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person--row .portrait {
  width: 6.5rem;
  flex: none;
}
.person--row h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.partners {
  display: grid;
  gap: 3rem;
}
.partner {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.partner h3 {
  font-size: 1.6rem;
}
.cred {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Prose, split layouts ---------- */

.prose > * + * {
  margin-top: 1rem;
}
.prose h2 {
  font-size: 1.5rem;
}
.prose h2:not(:first-child) {
  margin-top: 2.5rem;
}
.prose p {
  max-width: 44rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.timeline {
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 1.5rem 1.5rem;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--plum);
}
.timeline-year {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}

/* ---------- Services ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem clamp(1.5rem, 5vw, 4rem);
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}
.service:first-child {
  border-top: 0;
  padding-top: 0;
}
.service-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.service h2 {
  font-size: 1.6rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.chips li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  color: var(--ink);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Cases ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--plum), #8f5fd6 60%, var(--gold));
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -24px rgba(14, 12, 44, 0.5);
}
.case-card header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.logo-tile--md {
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.6rem;
}
.case-name {
  margin-top: 0.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.case-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.25;
}
.case-card > p {
  color: var(--muted);
}
.state-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.state-top .logo-tile {
  width: 5.5rem;
}
.state-sub {
  font-size: 0.8rem !important;
  margin-top: 0.1rem;
}
.state-title {
  font-family: var(--serif);
  font-size: 1.08rem !important;
  line-height: 1.35;
  color: var(--ink) !important;
}
.chips--small {
  margin-top: 0;
  gap: 0.4rem;
}
.chips--small li {
  padding: 0.15rem 0.6rem;
  font-size: 0.76rem;
  background: var(--plum-soft);
  border-color: transparent;
  color: var(--plum);
}
.card--state details {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.card--state summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum);
}
.card--state details p {
  margin-top: 0.6rem;
}
/* Arriving from the map or the home page: mark the client that was asked for. */
.card--state:target,
.case-card:target {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--plum-soft), 0 18px 36px -24px rgba(14, 12, 44, 0.5);
}
.hero--page {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero--page h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.filter label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.filter-empty {
  margin-top: 1.5rem;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1.25rem;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #b9b3a3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea {
  resize: vertical;
  min-height: 8rem;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
  border-color: var(--plum);
}
.field--hp {
  position: absolute;
  left: -200vw;
}
.form .btn {
  justify-self: start;
}
.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  font-size: 0.95rem;
}
.form-status.is-ok {
  color: var(--ok);
  background: #edf6f0;
}
.form-status.is-err {
  color: var(--err);
  background: #fbefed;
}
.contact-list {
  display: grid;
  gap: 1.5rem;
}
.contact-list li {
  display: flex;
  gap: 0.9rem;
}
.contact-list .icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: var(--plum);
}
.contact-list div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-list strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA + footer ---------- */

.cta {
  background: var(--ink);
  color: #d9d6ea;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta h2 {
  color: #fff;
}
.cta p {
  margin-top: 0.5rem;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-footer {
  background: #0e0c2c;
  color: #b9b6cf;
  font-size: 0.92rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-brand img {
  height: 3.25rem;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.footer-note {
  margin-top: 0.5rem;
  max-width: 22rem;
}
.site-footer h2 {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.9rem;
}
.site-footer li + li,
.site-footer address + p {
  margin-top: 0.4rem;
}
.site-footer a {
  color: #d9d6ea;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-base {
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

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

.card,
.news-card,
.person--row {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:has(h3 a):hover,
.news-card:hover,
.person--row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -24px rgba(14, 12, 44, 0.5);
}
.card--service {
  overflow: hidden;
}
.card--service::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum), #8f5fd6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card--service:hover::before {
  transform: scaleX(1);
}
/* Added by site.js, so content is never hidden when JavaScript is off. */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Client logo marquee ---------- */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding-block: 0.5rem;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee .logo-tile {
  width: 9rem;
  height: 6rem;
  padding: 0.9rem;
  transition: border-color 0.15s;
}
.marquee a {
  display: block;
}
.marquee a:hover .logo-tile {
  border-color: var(--plum);
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
  gap: 1.25rem;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.news-card:hover {
  border-color: var(--plum);
}
.news-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--tint);
}
.news-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  padding: 1.5rem;
}
.news-body > p:not(.news-meta) {
  color: var(--muted);
  font-size: 0.95rem;
}
.news-body .more {
  margin-top: auto;
  padding-top: 0.5rem;
}
.news-card h3 a {
  color: inherit;
  text-decoration: none;
}
.news-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.news-label {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Home page: the newest post leads, on ink. */
.news-grid--home {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.news-card--featured {
  grid-row: span 2;
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgba(122, 63, 184, 0.45), transparent 65%),
    var(--ink);
  border-color: var(--ink);
}
.news-card--featured h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
}
.news-card--featured .news-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  justify-content: flex-end;
}
.news-card--featured .news-body .more {
  margin-top: 0;
}
.news-card--featured .news-body > p:not(.news-meta),
.news-card--featured .news-meta {
  color: #cfcbe6;
}
.news-card--featured .news-body > p:not(.news-meta) {
  font-size: 1.02rem;
  max-width: 36rem;
}
.news-card--featured .news-label {
  background: var(--gold);
  color: var(--ink);
}
.news-card--featured .more {
  color: var(--gold);
}
.page-head .news-meta {
  margin-top: 1.5rem;
  color: #cfcbe6;
}
.page-head .news-label {
  background: var(--gold);
  color: var(--ink);
}
.page-head h1.article-title {
  max-width: 26ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.article {
  max-width: 48rem;
}
.article-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 2rem;
}
.article-body .lede {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
}
.article-body .more {
  margin-top: 1.5rem;
}
.icon--back {
  transform: rotate(180deg);
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(14, 12, 44, 0.7);
  cursor: pointer;
  animation: rise 0.25s ease both;
}
.to-top:hover {
  background: var(--plum);
}
.to-top .icon {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 56rem) {
  .case-grid,
  .news-grid--home {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid,
  .split,
  .service {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 40rem) {
  .partner {
    grid-template-columns: minmax(0, 1fr);
  }
  .partner .portrait {
    max-width: 14rem;
  }
  .brand-text span {
    display: none;
  }
  .stats dt {
    font-size: 0.78rem;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats div:nth-child(3) {
    border-left: 0;
  }
  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

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