/* Casefile Digital — site styles */

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

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

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Italic-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #122033;
  --navy-deep: #0B1520;
  --navy-soft: #3D4A5C;
  --paper: #F4EFE6;
  --paper-warm: #E8E0D2;
  --paper-sheet: #FBF8F2;
  --brass: #B08A4F;
  --brass-deep: #7A5C30;
  --brass-soft: #C4A56D;
  --rule: rgba(18, 32, 51, 0.12);
  --rule-strong: rgba(18, 32, 51, 0.22);
  --text: #122033;
  --muted: #5C584F;
  --header-h: 4.75rem;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-mark {
  width: 1.85rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.mark-body {
  fill: var(--navy);
}

.mark-tab {
  fill: var(--brass);
}

.logo-type {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.logo-casefile {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 0.4, "opsz" 36;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--navy);
}

.logo-digital {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  top: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--navy);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--brass);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--navy-deep);
  padding: 0.85rem 1.35rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brass-deep);
  color: var(--paper-sheet);
}

.btn-secondary {
  color: var(--navy);
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--brass);
  border-radius: 0;
}

.btn-secondary::after {
  content: "→";
  font-size: 0.95em;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.2s ease;
}

.btn-secondary:hover::after,
.btn-secondary:focus-visible::after {
  transform: translateX(3px);
}

/* ---------- Menu toggle ---------- */

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-right: -0.4rem;
}

.menu-toggle-bars {
  position: relative;
  width: 1.25rem;
  height: 0.7rem;
  display: block;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.menu-toggle-bars span:first-child {
  top: 0;
}

.menu-toggle-bars span:last-child {
  top: 0.55rem;
}

body.nav-open .menu-toggle-bars span:first-child {
  top: 0.28rem;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle-bars span:last-child {
  top: 0.28rem;
  transform: rotate(-45deg);
}

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

.hero {
  padding: clamp(2.75rem, 7vh, 5.5rem) 0 clamp(3rem, 8vh, 5.75rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.file-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.file-tab::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
  min-width: 2rem;
  max-width: 7.5rem;
}

.file-tab span {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.58rem 0.3rem;
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: var(--paper-sheet);
  color: var(--navy);
  letter-spacing: 0.16em;
  position: relative;
  top: 1px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 45, "WONK" 0.5, "opsz" 84;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--navy);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 0.8, "opsz" 84;
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.15rem;
}

/* ---------- File visual ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.file-stack {
  position: relative;
  width: min(100%, 24.5rem);
  aspect-ratio: 4 / 5.05;
}

.sheet-back {
  position: absolute;
  inset: 7% 4% 3% 8%;
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  transform: rotate(4.5deg);
  box-shadow: 0 18px 40px rgba(18, 32, 51, 0.08);
}

.folder {
  position: absolute;
  inset: 0 6% 0 0;
  display: flex;
  flex-direction: column;
}

.folder-tab {
  align-self: flex-end;
  width: 5.1rem;
  margin-right: 1.6rem;
  padding: 0.4rem 0 0.3rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--paper-sheet);
  background: var(--navy);
  border-radius: 5px 5px 0 0;
}

.folder-body {
  flex: 1;
  background: var(--paper-sheet);
  border: 1px solid var(--rule-strong);
  border-top-color: var(--navy);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 50px rgba(18, 32, 51, 0.10);
  padding: clamp(1.25rem, 4vw, 1.85rem) clamp(1.2rem, 3.6vw, 1.85rem) clamp(1.2rem, 3vw, 1.6rem);
  display: flex;
  min-height: 0;
}

.brief {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rule);
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1rem, 3vw, 1.4rem) 1.1rem;
}

.brief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brief-mark svg {
  width: 1.35rem;
  height: 1.2rem;
}

.brief-kicker {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brief-title {
  margin-top: 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 0.4, "opsz" 48;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy);
}

.brief-rule {
  width: 2.5rem;
  height: 1px;
  margin: 1.1rem 0 1rem;
  background: var(--brass);
}

.brief-prepared {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.brief-index {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.brief-index li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.brief-index li span {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brass-deep);
  flex-shrink: 0;
}

/* ---------- Values ---------- */

.values {
  border-top: 1px solid var(--rule);
}

.values-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.value {
  padding: 1.75rem 1.75rem 1.85rem 0;
  min-width: 0;
}

.value + .value {
  padding-left: 1.75rem;
  border-left: 1px solid var(--rule);
}

.value-num {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin-bottom: 0.7rem;
}

.value h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 450;
  font-variation-settings: "SOFT" 30, "WONK" 0.3, "opsz" 24;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.value p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Focus ---------- */

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

.nav-list a:focus-visible,
.btn-secondary:focus-visible {
  outline-offset: 4px;
}

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

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .file-stack {
    width: min(100%, 22.5rem);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 9vw, 3.75rem);
  }
}

/* ---------- Mobile nav & layout ---------- */

@media (max-width: 860px) {
  :root {
    --header-h: 3.85rem;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 50;
  }

  .nav-cta {
    display: none;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    border-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 2rem;
    overflow: auto;
    z-index: 45;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.95rem 0;
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 400;
    font-variation-settings: "SOFT" 40, "WONK" 0.4, "opsz" 36;
    letter-spacing: -0.02em;
    border-bottom: 0;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    border-bottom-color: transparent;
    color: var(--brass-deep);
  }

  .nav .nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 1.35rem;
  }

  .values-inner {
    grid-template-columns: 1fr;
    padding-top: 0.25rem;
    padding-bottom: 1.5rem;
  }

  .value {
    padding: 1.4rem 0;
  }

  .value + .value {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .hero {
    padding: 1.65rem 0 1.85rem;
  }

  .lede {
    font-size: 1.05rem;
    max-width: none;
    margin-top: 1.2rem;
  }

  .hero-actions {
    margin-top: 1.4rem;
  }

  .file-stack {
    aspect-ratio: 4 / 4.5;
  }
}

@media (max-width: 420px) {
  .logo-casefile {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .file-stack {
    aspect-ratio: 4 / 4.45;
  }

  .brief-index li {
    font-size: 0.7rem;
  }
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 100;
  background: var(--navy);
  color: var(--paper-sheet);
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 0.65rem;
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Page hero (interior) ---------- */

.page-hero {
  padding: clamp(3rem, 8vh, 5.25rem) 0 clamp(2.75rem, 6vh, 4.25rem);
  border-bottom: 1px solid var(--rule);
}

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

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 45, "WONK" 0.5, "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy);
  text-wrap: balance;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 0.8, "opsz" 72;
}

.page-hero .lede {
  margin-top: 1.35rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

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

.section {
  padding: clamp(3rem, 7vh, 5.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

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

.section-intro {
  max-width: 38rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.section-intro h2,
.block-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 35, "WONK" 0.35, "opsz" 36;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-intro p,
.prose p {
  color: var(--muted);
  max-width: 38rem;
}

.prose p + p {
  margin-top: 1rem;
}

.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--brass);
  padding: 0.2rem 0;
}

.link-more::after {
  content: "→";
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Numbered lists (services / steps) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.6rem 1.75rem 1.7rem 0;
  border-top: 1px solid var(--rule);
  min-width: 0;
}

.card-grid .card:nth-child(even) {
  padding-left: 1.75rem;
  padding-right: 0;
  border-left: 1px solid var(--rule);
}

.card-grid.cols-3 .card {
  padding: 1.6rem 1.5rem 1.7rem 0;
  border-left: 0;
}

.card-grid.cols-3 .card + .card {
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}

.card-grid:not(.cols-3) .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-left: 0;
  padding-right: 0;
  border-left: 0;
}

.card-grid:not(.cols-3) .card:last-child:nth-child(odd) p {
  max-width: 36rem;
}

.card-num,
.step-num,
.service-num {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin-bottom: 0.65rem;
}

.card h3,
.step h3,
.service-block h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 450;
  font-variation-settings: "SOFT" 30, "WONK" 0.3, "opsz" 24;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card p,
.step p {
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--muted);
}

.card .link-more {
  margin-top: 1rem;
}

/* Steps on the approach page: single column, more room */

.steps-stack .step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding: 1.85rem 0;
  border-top: 1px solid var(--rule);
  max-width: 46rem;
}

.steps-stack .step-num {
  margin: 0.35rem 0 0;
}

.steps-stack .step h3 {
  font-size: 1.5rem;
}

.steps-stack .step p + p {
  margin-top: 0.75rem;
}

/* ---------- Service detail blocks ---------- */

.service-block {
  padding: clamp(2.5rem, 5.5vh, 4.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

.service-block:last-of-type {
  border-bottom: 0;
}

.service-block-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.5rem 2.75rem;
  align-items: start;
}

.service-block h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  margin-bottom: 0.85rem;
}

.service-copy {
  max-width: 42rem;
}

.service-copy p {
  color: var(--muted);
}

.service-copy p + p {
  margin-top: 1rem;
}

.includes {
  margin-top: 1.5rem;
}

.includes-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.includes li {
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
  color: var(--text);
  font-size: 0.975rem;
  padding-left: 0;
}

.includes li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* ---------- Specialists / split section ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.split .prose p {
  max-width: 36rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  border-bottom: 0;
}

.cta-band .file-tab {
  color: rgba(244, 239, 230, 0.62);
}

.cta-band .file-tab span {
  background: var(--navy-deep);
  color: var(--paper-sheet);
  border-color: rgba(244, 239, 230, 0.22);
}

.cta-band .file-tab span::after,
.cta-band .file-tab::after {
  background: rgba(244, 239, 230, 0.22);
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 45, "WONK" 0.5, "opsz" 56;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--paper-sheet);
  max-width: 18ch;
  margin-bottom: 0.9rem;
}

.cta-band p {
  color: rgba(244, 239, 230, 0.72);
  max-width: 32rem;
  margin-bottom: 1.85rem;
}

.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus-visible {
  background: var(--brass-soft);
  color: var(--navy-deep);
}

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

.site-footer {
  background: var(--paper);
  padding: 2.5rem 0 2rem;
}

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

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--navy);
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  border-bottom-color: var(--brass);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

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

.form {
  max-width: 36rem;
  margin-top: 0.5rem;
}

.form-row {
  margin-bottom: 1.2rem;
}

.form label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form .optional {
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  max-width: 100%;
  background: var(--paper-sheet);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  appearance: none;
}

.form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass-deep);
}

.form .hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-actions {
  margin-top: 1.75rem;
}

/* ---------- 404 ---------- */

.not-found {
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(5rem, 14vh, 8rem);
}

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

.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.35rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0.6, "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 1.2rem;
}

.not-found h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 0.8, "opsz" 72;
}

.not-found .lede {
  max-width: 28rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.not-found .hero-actions {
  margin-top: 0;
}

/* ---------- Results note ---------- */

.note-rule {
  width: 2.5rem;
  height: 1px;
  background: var(--brass);
  margin: 0 0 1.15rem;
}

/* ---------- Responsive additions ---------- */

@media (max-width: 980px) {
  .card-grid,
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .card-grid .card:nth-child(even),
  .card-grid.cols-3 .card + .card {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-block-inner {
    grid-template-columns: 1fr;
    gap: 0.35rem 0;
  }

  .steps-stack .step {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 860px) {
  .page-hero {
    padding: 2.15rem 0 2.25rem;
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band h2 {
    max-width: none;
  }
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ---------- Contact form feedback & honeypot ---------- */

.form-banner {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.4rem 1.3rem;
  background: var(--paper-sheet);
  border: 1px solid var(--rule-strong);
}

.form-banner--success {
  border-color: var(--brass);
}

.form-banner--error {
  border-color: var(--rule-strong);
}

.form-banner h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 450;
  font-variation-settings: "SOFT" 30, "WONK" 0.3, "opsz" 24;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.form-banner p {
  color: var(--muted);
}


.hp {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  padding: 0;
  white-space: nowrap;
}
