/* ==========================================================================
   Stainton, Murray & Lam — v3 design system
   Heritage-editorial: warm paper, deep burgundy, brass accents.
   ========================================================================== */

:root {
  --paper:        #F8F5EE;
  --paper-warm:   #F2ECE1;
  --paper-deep:   #EAE2D3;
  --ink:          #201A18;
  --ink-soft:     #57504C;
  --ink-faint:    #8C837D;
  --primary:        #5C2233;
  --primary-deep:   #3A1220;
  --brass:        #96793F;
  --brass-soft:   #B39A63;
  --line:         rgba(32, 26, 24, 0.14);
  --line-strong:  rgba(32, 26, 24, 0.32);
  --line-light:   rgba(248, 245, 238, 0.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --w-wide:   1200px;
  --w-text:   680px;

  --dur: 0.7s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary-deep);
  color: var(--paper);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.25; }

em, .em {
  font-style: italic;
  font-variation-settings: "opsz" 72;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.kicker--center { justify-content: center; }
.kicker--center::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.kicker--bare::before, .kicker--bare::after { display: none; }

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

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

.container {
  width: 100%;
  max-width: calc(var(--w-wide) + 3rem);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--warm { background: var(--paper-warm); }
.section--deep { background: var(--paper-deep); }
.section--primary { background: var(--primary-deep); color: var(--paper); }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--solid {
  background: var(--primary);
  color: var(--paper);
}
.btn--solid:hover { background: var(--primary-deep); }

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

.btn--paper {
  background: var(--paper);
  color: var(--primary-deep);
}
.btn--paper:hover { background: var(--paper-deep); }

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-light);
}
.btn--ghost-light:hover { border-color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary);
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 0.3rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.text-link:hover { color: var(--brass); border-color: var(--brass); }
.text-link .arrow { transition: transform 0.3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--primary-deep);
  color: rgba(247, 244, 237, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.5rem;
  gap: 1rem;
}
.topbar a { color: var(--paper); text-decoration: none; }
.topbar a:hover { color: var(--brass-soft); }
.topbar__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar__group { display: flex; gap: 2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 24px rgba(29, 28, 23, 0.08); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  gap: 2rem;
}

.wordmark {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}
.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  display: block;
  white-space: nowrap;
}
.wordmark__name .amp { color: var(--brass); font-style: italic; }
.wordmark__sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}
.nav .btn { padding: 0.75rem 1.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}
.nav-toggle svg { width: 1.75rem; height: 1.75rem; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.hero h1 { margin-bottom: 2rem; }
.hero .lead { max-width: 34rem; margin-bottom: 3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.hero__frame {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--brass-soft);
  z-index: -1;
}
.hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--paper);
  padding: 0.85rem 1.5rem 0.85rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Two-column feature rows
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.feature--flip .feature__media { order: 2; }

.feature__media { position: relative; }
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature__media--tall img { aspect-ratio: 3 / 4; }
.feature__media--map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: grayscale(1) sepia(0.15) contrast(1.02);
  transition: filter 0.5s ease;
}
.feature__media--map:hover iframe { filter: none; }
.feature__frame {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--brass-soft);
  z-index: -1;
}
.feature--flip .feature__frame { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }

.feature h2, .feature h3 { margin-bottom: 1.5rem; }
.feature p + p { margin-top: 1.25rem; }
.feature .text-link { margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   Practice area cards (home)
   -------------------------------------------------------------------------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.practice-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 2rem 2.75rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: background-color 0.35s ease;
  position: relative;
}
.practice-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.practice-card:hover { background: var(--paper-warm); }
.practice-card:hover::after { transform: scaleX(1); }

.practice-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
  margin-bottom: 2.5rem;
}
.practice-card h3 { margin-bottom: 1rem; font-size: 1.35rem; }
.practice-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.practice-card .text-link { margin-top: 2rem; border-bottom: 0; padding-bottom: 0; }

/* --------------------------------------------------------------------------
   Specialty cards (home — the two core practices)
   -------------------------------------------------------------------------- */

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.specialty-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(58, 18, 32, 0.14);
  border-color: var(--brass-soft);
}

.specialty-card__media {
  position: relative;
  overflow: hidden;
}
.specialty-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.specialty-card:hover .specialty-card__media img { transform: scale(1.045); }
.specialty-card__num {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--paper);
  padding: 0.5rem 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
}

.specialty-card__body { padding: 2.25rem 2.25rem 2.5rem; }
.specialty-card__body h3 { margin-bottom: 0.85rem; }
.specialty-card__body p { font-size: 0.96rem; color: var(--ink-soft); }
.specialty-card__body .text-link { margin-top: 1.75rem; }

/* Engraved plates — typographic stand-ins for photography */
.plate {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse 90% 75% at 50% 42%, #4E1C2C 0%, var(--primary-deep) 78%);
  color: var(--brass-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}
.plate--wide { aspect-ratio: 16 / 9; }
.plate::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(179, 154, 99, 0.45);
  pointer-events: none;
  transition: border-color 0.4s ease;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 1.45rem;
  border: 1px solid rgba(179, 154, 99, 0.2);
  pointer-events: none;
}
.specialty-card:hover .plate::before { border-color: rgba(179, 154, 99, 0.8); }

/* engraved guilloché rings, fading toward the edges */
.plate__texture {
  position: absolute;
  inset: -40%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(179, 154, 99, 0.055) 0 1px,
    transparent 1px 10px
  );
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 20%, transparent 78%);
  pointer-events: none;
}

/* certificate corner flourishes */
.plate__corner {
  position: absolute;
  width: 2.1rem;
  height: 2.1rem;
  color: rgba(179, 154, 99, 0.8);
  pointer-events: none;
}
.plate__corner svg { width: 100%; height: 100%; display: block; }
.plate__corner--tl { top: 0.82rem; left: 0.82rem; }
.plate__corner--tr { top: 0.82rem; right: 0.82rem; transform: rotate(90deg); }
.plate__corner--br { bottom: 0.82rem; right: 0.82rem; transform: rotate(180deg); }
.plate__corner--bl { bottom: 0.82rem; left: 0.82rem; transform: rotate(270deg); }

.plate__icon {
  width: 4rem;
  height: 4rem;
  display: block;
  position: relative;
}
.plate__over {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(248, 245, 238, 0.42);
}
.plate__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.plate__year-svg {
  width: min(72%, 19rem);
  overflow: visible;
}
.plate__year-svg text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 100px;
  font-variation-settings: "opsz" 72;
  fill: var(--brass-soft);
  stroke: var(--brass-soft);
  stroke-width: 1;
}
.reveal.is-visible .plate__year-svg text {
  animation: year-draw 2.6s var(--ease) 0.45s both;
}
@keyframes year-draw {
  0% {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    fill-opacity: 0;
  }
  62% {
    stroke-dasharray: 600;
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
  100% {
    stroke-dasharray: 600;
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}
.plate__label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248, 245, 238, 0.55);
}

/* Plate motion: strokes draw themselves in when revealed */
.plate [pathLength] { stroke-dasharray: 1; }
.reveal.is-visible .plate__corner [pathLength] {
  animation: plate-draw 1.2s var(--ease) 0.25s both;
}
.reveal.is-visible .plate__icon [pathLength] {
  animation: plate-draw 1.7s var(--ease) 0.5s both;
}
.reveal.is-visible .plate :is(.plate__label, .plate__over, .plate__year, .gem-divider) {
  animation: plate-fade 0.9s ease 0.9s both;
}
@keyframes plate-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes plate-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* the guilloché breathes, almost imperceptibly */
.plate__texture { animation: guilloche-drift 36s ease-in-out infinite; }
@keyframes guilloche-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(1.2%, 0.9%) scale(1.025); }
}

/* pointer tilt + brass sheen (variables set by site.js on fine pointers) */
.plate {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
}
.plate__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 45%),
    rgba(255, 238, 200, 0.14),
    transparent 62%
  );
}
.plate:hover .plate__sheen { opacity: 1; }

/* jewel divider: line · lozenge · line */
.gem-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(179, 154, 99, 0.85);
}
.gem-divider::before,
.gem-divider::after {
  content: "";
  width: 2.4rem;
  height: 1px;
}
.gem-divider::before { background: linear-gradient(to left, currentColor, transparent); }
.gem-divider::after { background: linear-gradient(to right, currentColor, transparent); }
.gem-divider .gem {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  position: relative;
}
.gem-divider .gem::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
  opacity: 0.55;
}

/* Supporting practices — compact aside cards */
.aside-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.aside-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  padding: 1.75rem 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.aside-card:hover { background: var(--paper); border-color: var(--brass-soft); border-left-color: var(--brass); }
.aside-card__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  flex: none;
  padding-top: 0.15rem;
}
.aside-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.aside-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Process / numbered list
   -------------------------------------------------------------------------- */

.numbered { display: grid; gap: 2.5rem; }
.numbered--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2.5rem;
}
.numbered--row .numbered__item {
  flex-direction: column;
  gap: 1.25rem;
}
.numbered__item { display: flex; gap: 1.75rem; align-items: flex-start; }
.numbered__badge {
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
}
.numbered__item h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.numbered__item p { font-size: 0.95rem; color: var(--ink-soft); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 1.25rem; }
.cta-band p { max-width: 36rem; margin-inline: auto; color: rgba(247, 244, 237, 0.7); }
.cta-band__actions {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

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

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}
.page-hero .container {
  padding-block: clamp(4rem, 7vw, 6.5rem);
  max-width: 56rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: 1.5rem; }
.page-hero .lead { max-width: 40rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Practice areas page
   -------------------------------------------------------------------------- */

.practice-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.practice-index a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1.25rem;
  transition: all 0.3s ease;
}
.practice-index a:hover {
  color: var(--paper);
  background: var(--primary);
  border-color: var(--primary);
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 2rem;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--paper-warm);
  border-left: 2px solid var(--brass);
}
.section--warm .service-list { background: var(--paper); }
.service-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.service-list li::before {
  content: "—";
  color: var(--brass);
  flex: none;
}
.service-list__title {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-list__title::before { display: none; }

.footnote {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-faint);
}

/* Notary feature panel */
.notary-panel {
  background: var(--primary-deep);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.notary-panel::before {
  content: "";
  position: absolute;
  top: -6rem; right: -6rem;
  width: 22rem; height: 22rem;
  border: 1px solid rgba(179, 154, 99, 0.25);
  border-radius: 50%;
}
.notary-panel::after {
  content: "";
  position: absolute;
  top: -3rem; right: -3rem;
  width: 16rem; height: 16rem;
  border: 1px solid rgba(179, 154, 99, 0.35);
  border-radius: 50%;
}
.notary-panel .kicker { color: var(--brass-soft); }
.notary-panel h2 { margin-bottom: 1.5rem; }
.notary-panel p { color: rgba(247, 244, 237, 0.75); max-width: 42rem; }
.notary-panel .btn { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   The Firm page
   -------------------------------------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.profile__media { position: sticky; top: 7.5rem; }
.profile__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.profile__name { margin-bottom: 0.35rem; }
.profile__name .credentials {
  font-size: 0.6em;
  font-style: italic;
  color: var(--brass);
  white-space: nowrap;
}
.profile__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}
.profile__body p + p { margin-top: 1.25rem; }
.profile__contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}
.profile__contact a, .profile__contact span {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}
.profile__contact a:hover { color: var(--brass); }
.profile__contact .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line-strong);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.42rem;
  top: 0.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  background: var(--paper);
}
.timeline__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.4rem;
}
.timeline__item h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.timeline__item p { font-size: 0.95rem; color: var(--ink-soft); max-width: 34rem; }

/* People grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.person-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 2.25rem 2rem;
}
.person-card--accent { border-top: 2px solid var(--brass); }
.person-card h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.person-card__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}
.person-card p { font-size: 0.92rem; color: var(--ink-soft); }
.person-card p + p { margin-top: 0.85rem; }
.person-card__contact { margin-top: 1.5rem; display: grid; gap: 0.4rem; }
.person-card__contact a, .person-card__contact span {
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
}
.person-card__contact a:hover { color: var(--brass); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-block { display: grid; gap: 2.5rem; }
.contact-item { display: flex; gap: 1.5rem; }
.contact-item__icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--brass-soft);
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item__icon svg { width: 1.25rem; height: 1.25rem; }
.contact-item h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.contact-item p, .contact-item li { font-size: 0.95rem; color: var(--ink-soft); }
.contact-item ul { list-style: none; display: grid; gap: 0.3rem; }
.contact-item a { color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--brass); }
.contact-item .label {
  display: inline-block;
  min-width: 5.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.notice {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--brass);
  background: var(--paper-warm);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Form */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem);
}
.form-panel h2 { margin-bottom: 0.75rem; }
.form-panel > p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 2rem; }

.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 8rem; }

.form-panel .btn { width: 100%; }
.form-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.form-success {
  padding: 1.5rem;
  border: 1px solid var(--brass-soft);
  border-left: 2px solid var(--brass);
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 0.95rem;
}

/* Map */
.map-wrap {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  position: relative;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 26rem;
  border: 0;
  filter: grayscale(1) sepia(0.15) contrast(1.02);
  transition: filter 0.5s ease;
}
.map-wrap:hover iframe { filter: none; }

/* --------------------------------------------------------------------------
   Legal text pages (privacy / terms)
   -------------------------------------------------------------------------- */

.prose {
  max-width: var(--w-text);
  margin-inline: auto;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 1.25rem; }
.prose .updated {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2.5rem;
}

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

.site-footer {
  background: var(--primary-deep);
  color: rgba(247, 244, 237, 0.65);
}
.site-footer a { text-decoration: none; color: rgba(247, 244, 237, 0.85); transition: color 0.25s ease; }
.site-footer a:hover { color: var(--brass-soft); }

.footer-main {
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
}

.footer-brand .wordmark__name { color: var(--paper); font-size: 1.5rem; }
.footer-brand .wordmark__sub { color: var(--brass-soft); }
.footer-brand p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  max-width: 24rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.75rem; font-size: 0.9rem; }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.8; }

.footer-legal {
  border-top: 1px solid rgba(247, 244, 237, 0.12);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.footer-legal .links { display: flex; gap: 1.75rem; }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

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

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

@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar__group--secondary { display: none; }
  .specialty-grid { grid-template-columns: 1fr; }
  .aside-grid { grid-template-columns: 1fr; }
  .numbered--row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 2rem;
    box-shadow: 0 24px 40px rgba(29, 28, 23, 0.12);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--brass); }
  .nav .btn { margin-top: 1.5rem; }

  .hero .container { grid-template-columns: 1fr; }
  .hero__media { max-width: 34rem; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .profile { grid-template-columns: 1fr; }
  .profile__media { position: static; max-width: 22rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  @page { margin: 2cm; }
  .topbar,
  .skip-link,
  .nav-toggle,
  .nav,
  .btn,
  .hero__actions,
  .cta-band,
  .band,
  .plate,
  .specialty-card__media,
  .hero__frame,
  .feature__frame,
  .form-panel,
  .map-wrap iframe,
  .footer-col:last-child {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .section--warm, .section--deep, .section--primary,
  .page-hero, .stats, .site-footer {
    background: #fff !important;
    color: #000 !important;
    padding-block: 1rem;
  }
  .site-header {
    position: static;
    background: #fff;
    box-shadow: none;
  }
  .site-footer a, .site-footer address, .footer-brand p,
  .kicker, .stat__num, .stat__label, .muted, .lead,
  .footer-col h4, .wordmark__name, .wordmark__sub,
  .site-footer .wordmark__name, .site-footer .wordmark__sub {
    color: #000 !important;
  }
  a { text-decoration: none; color: #000; }
  .hero .container, .feature, .contact-grid, .profile { grid-template-columns: 1fr; }
  .hero__media img { max-width: 60%; }
  .text-link { border-bottom: 0; }
  .text-link .arrow { display: none; }
  h1, h2, h3 { break-after: avoid; }
  .contact-item, .person-card, .timeline__item { break-inside: avoid; }
}

@media (max-width: 600px) {
  .wordmark__sub { font-size: 0.55rem; letter-spacing: 0.22em; white-space: nowrap; }
  .practice-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
}
