/* ==========================================================================
   Law Offices of David S. Fox — Boston & Andover, Massachusetts
   Single stylesheet. System fonts only (no network requests, works offline).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #0b1c2c;
  --navy-800: #102a42;
  --navy-700: #17395a;
  --navy-600: #21507a;
  --navy-100: #e8eef4;

  --gold-600: #8a6634;
  --gold-500: #b3894f;
  --gold-400: #c9a265;
  --gold-200: #e9dcc2;

  --cream: #faf8f4;
  --cream-2: #f3efe7;
  --paper: #ffffff;

  --ink: #161c22;
  --ink-soft: #3b4854;
  --muted: #5f6b78;
  --line: #e4dfd5;
  --line-strong: #d2c9b8;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 28, 44, 0.05), 0 2px 10px rgba(11, 28, 44, 0.05);
  --shadow-md: 0 14px 40px -18px rgba(11, 28, 44, 0.35);
  --shadow-lg: 0 28px 70px -30px rgba(11, 28, 44, 0.45);

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.1rem + 0.25vw, 1.28rem);
  --step-2: clamp(1.38rem, 1.28rem + 0.5vw, 1.62rem);
  --step-3: clamp(1.7rem, 1.5rem + 1vw, 2.15rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3rem);
  --step-5: clamp(2.4rem, 1.7rem + 3.2vw, 3.65rem);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--navy-800);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  color: var(--navy-900);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
}

h4 {
  font-size: var(--step-0);
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--gold-600);
}

strong,
b {
  font-weight: 650;
  color: var(--navy-900);
}

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--gold-500);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

::selection {
  background: var(--gold-200);
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), 820px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.section--cream2 {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}

.section--paper {
  background: var(--paper);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: var(--step-0);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.7rem;
}

.eyebrow--light {
  color: var(--gold-400);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   4. Top bar & header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.79rem;
  letter-spacing: 0.03em;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-block: 0.5rem;
}

.topbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-200);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar__tag::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
}

.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  color: var(--gold-400);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 244, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--gold-500);
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}

.brand__sub {
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 17px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--navy-900);
}

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

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold-500);
  color: #1b1405;
  box-shadow: 0 8px 22px -12px rgba(179, 137, 79, 0.9);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-400);
  color: #1b1405;
}

.btn--navy {
  background: var(--navy-800);
  color: #fff;
}

.btn--navy:hover,
.btn--navy:focus-visible {
  background: var(--navy-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-800);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--navy-700);
  background: var(--paper);
  color: var(--navy-900);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(179, 137, 79, 0.24), transparent 62%),
    radial-gradient(700px 500px at 8% 110%, rgba(33, 80, 122, 0.55), transparent 65%),
    linear-gradient(155deg, var(--navy-900) 0%, #0e2337 46%, var(--navy-700) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 46px;
  pointer-events: none;
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.25rem) clamp(2rem, 4vw, 3rem);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.45em;
}

.hero__lede {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero .eyebrow {
  color: var(--gold-400);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero__phone {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero__phone a {
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.hero__phone a:hover {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}

/* Framed original mark */
.hero__figure {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 430px;
}

.hero__frame {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 0.9rem;
  box-shadow: var(--shadow-lg);
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201, 162, 101, 0.45);
  border-radius: calc(var(--radius) + 6px);
  pointer-events: none;
}

.hero__frame img {
  width: 100%;
  border-radius: 6px;
}

.hero__caption {
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

/* Stats strip */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stat {
  padding: 1.4rem 1.2rem 1.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero__stat dt {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
  color: var(--gold-400);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.hero__stat dd {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.68);
}

/* --------------------------------------------------------------------------
   7. Cards — practice areas
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1.15rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.55rem 1.5rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: var(--gold-200);
  box-shadow: var(--shadow-md);
}

.card__index {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-500);
}

.card h3 {
  margin: 0;
  font-size: 1.13rem;
  color: var(--navy-900);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.62;
}

.card__more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.card__more::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.22s ease;
}

.card:hover .card__more::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Value pillars
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem 2.5rem;
}

.pillar {
  padding-top: 1.2rem;
  border-top: 2px solid var(--navy-800);
}

.pillar__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}

.pillar h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.pillar p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Split (about / credentials)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.quote-card {
  position: relative;
  padding: clamp(2rem, 4vw, 2.9rem);
  background: linear-gradient(152deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -1.9rem;
  left: 1.1rem;
  font-family: var(--font-serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(201, 162, 101, 0.22);
}

.quote-card blockquote {
  position: relative;
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.4;
  color: #fff;
}

.quote-card figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--gold-500);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   10. Office cards
   -------------------------------------------------------------------------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.office-grid--lead {
  margin-bottom: 2.75rem;
}

.office-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.office-card .btn-row {
  margin-top: auto;
}

.office-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}

.office-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.office-card address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.office-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
}

.office-card dt {
  color: var(--muted);
  font-weight: 600;
}

.office-card dd {
  margin: 0;
}

.office-card .btn-row {
  margin-top: auto;
}

.office-card--dark {
  background: linear-gradient(152deg, var(--navy-900), var(--navy-700));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.office-card--dark h3,
.office-card--dark strong {
  color: #fff;
}

.office-card--dark address,
.office-card--dark .office-card__label {
  color: rgba(255, 255, 255, 0.8);
}

.office-card--dark .office-card__label {
  color: var(--gold-400);
}

.office-card--dark a {
  color: #fff;
}

.office-card--dark dt {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 860px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--gold-200);
}

.faq summary {
  position: relative;
  padding: 1.05rem 3.2rem 1.05rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold-600);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: var(--gold-600);
}

.faq__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq__body p {
  margin-bottom: 0.8em;
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(700px 320px at 82% 0%, rgba(179, 137, 79, 0.28), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.cta-band p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   13. Breadcrumbs & page head
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding-block: 0.9rem;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--navy-800);
  font-weight: 600;
}

.page-head {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
}

.page-head__inner {
  max-width: 780px;
}

.page-head h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.05rem, 1.55rem + 2vw, 3rem);
}

.page-head__lede {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.16rem);
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Prose & article layout
   -------------------------------------------------------------------------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.prose {
  min-width: 0;
  max-width: 72ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-2);
}

.prose h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  background: var(--gold-500);
}

.prose h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

.prose ul,
.prose ol {
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose .lead {
  font-size: 1.12rem;
  color: var(--ink);
}

.prose a {
  color: var(--navy-700);
  font-weight: 550;
}

.prose a:hover {
  color: var(--gold-600);
}

/* Buttons keep their own colour scheme inside article copy. */
.prose .btn {
  font-weight: 650;
  text-decoration: none;
}

.prose .btn--navy,
.prose .btn--ghost {
  color: #fff;
}

.prose .btn--primary {
  color: #1b1405;
}

.prose .btn--outline {
  color: var(--navy-800);
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.5rem;
  border-left: 3px solid var(--gold-500);
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy-800);
}

.callout {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy-900);
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: var(--paper);
}

caption {
  caption-side: bottom;
  padding-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: var(--cream-2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Aside */
.aside-card {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.aside-card h2,
.aside-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.6rem;
}

.aside-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.aside-card .btn {
  width: 100%;
}

.aside-card .btn + .btn {
  margin-top: 0.55rem;
}

.aside-card--dark {
  background: linear-gradient(152deg, var(--navy-900), var(--navy-700));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.aside-card--dark h2,
.aside-card--dark h3 {
  color: #fff;
}

.aside-card--dark p {
  color: rgba(255, 255, 255, 0.74);
}

.aside-card--dark a:not(.btn) {
  color: var(--gold-400);
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.aside-list li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.aside-list li:first-child {
  border-top: 0;
}

.aside-list a {
  display: block;
  padding: 0.55rem 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.aside-list a:hover {
  color: var(--gold-600);
}

.aside-list a[aria-current="page"] {
  color: var(--navy-900);
  font-weight: 650;
}

.aside {
  position: sticky;
  top: 6rem;
}

/* --------------------------------------------------------------------------
   15. Inline components
   -------------------------------------------------------------------------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.tag-row li {
  margin: 0;
  padding: 0.34rem 0.8rem;
  font-size: 0.8rem;
  color: var(--navy-800);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
}

.updated {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.05rem;
}

.site-footer p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-400);
  text-decoration: underline;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #fff;
  text-decoration: none;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand .brand__mark {
  border-color: rgba(201, 162, 101, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
}

.footer-brand__sub {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.75;
}

.footer-address strong {
  color: #fff;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem;
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.55);
}

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

.footer-bottom p {
  margin: 0;
  max-width: 78ch;
  font-size: 0.79rem;
  line-height: 1.65;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom li {
  margin: 0;
}

/* --------------------------------------------------------------------------
   17. Not-found page
   -------------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  text-align: center;
  padding-block: 4rem;
}

.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--gold-200);
  margin: 0;
}

.error-page p {
  color: var(--muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}

.error-page__links a {
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-300);
  padding-bottom: 1px;
}

.error-page__links a:hover {
  color: var(--gold-600);
  border-bottom-color: var(--gold-500);
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav ul {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

  .aside {
    position: static;
  }

  .hero__grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__figure {
    justify-self: start;
    max-width: 390px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.15rem;
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--gold-600);
  }

  .site-nav .btn {
    margin-top: 1rem;
    width: 100%;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 720px) {
  .topbar__tag {
    display: none;
  }

  .topbar .container {
    justify-content: center;
    padding-block: 0.45rem;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__stat {
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero__stat:first-child {
    border-top: 0;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-row {
    width: 100%;
  }

  .hero__actions .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .brand__sub {
    display: none;
  }

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

  .office-card dt {
    margin-top: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   19. Motion, print, forced colours
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card:hover,
  .card:focus-within {
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .cta-band,
  .site-footer,
  .breadcrumbs,
  .aside {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero {
    background: none !important;
    color: #000;
  }

  .hero h1,
  .hero__lede,
  .hero .eyebrow {
    color: #000 !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .page-grid {
    display: block;
  }
}
