:root {
  --ink: #241c1b;
  --muted: #5c554e;
  --line: #e3dad2;
  --paper: #f4f0ea;
  --white: #ffffff;
  --burgundy: #702828;
  --burgundy-deep: #4e1b1b;
  --burgundy-soft: #f4e8e5;
  --footer: #241c1b;
  --shadow: 0 18px 40px rgba(36, 28, 27, 0.08);
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header: 76px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); }
button, input, textarea { font: inherit; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.35rem, 6vw, 4.35rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
h3 { font-size: 1.45rem; letter-spacing: 0; }

p { margin: 0 0 1rem; }
address { font-style: normal; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

::selection { background: #e7d0cb; color: var(--ink); }

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--burgundy);
  flex: none;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header);
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  overflow: visible;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(36, 28, 27, 0.06);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  height: 46px;
  width: auto;
  max-width: min(230px, 52vw);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.header-phone,
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}

.header-phone:hover,
.btn-primary:hover { background: var(--burgundy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #cfc4ba;
}

.btn-ghost:hover { border-color: var(--burgundy); color: var(--burgundy); }

.btn-light {
  background: var(--white);
  color: var(--burgundy);
}

.btn-light:hover { background: var(--burgundy-soft); }

.nav-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle-box,
.nav-toggle-box span {
  pointer-events: none;
}

.nav-toggle:hover { background: var(--paper); }

.nav-toggle-box {
  width: 20px;
  height: 14px;
  position: relative;
  display: block;
}

.nav-toggle-box span,
.nav-toggle-box span::before,
.nav-toggle-box span::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease, background 0.18s ease;
}

.nav-toggle-box span { top: 6px; }
.nav-toggle-box span::before,
.nav-toggle-box span::after { content: ""; }
.nav-toggle-box span::before { top: -6px; }
.nav-toggle-box span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box span { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span::after { top: 0; transform: rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav ul a:hover { background: var(--burgundy-soft); color: var(--burgundy); }
.site-nav ul a[aria-current="page"] {
  color: var(--burgundy);
  background: var(--burgundy-soft);
}

@media (max-width: 860px) {
  .header-bar { flex-wrap: nowrap; overflow: visible; }
  .js .site-nav {
    display: none;
    position: absolute;
    z-index: 80;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(36, 28, 27, 0.14);
    padding: 8px 8px 16px;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul a { font-size: 1.12rem; }
  .nav-cta { width: 100%; margin-top: 8px; }
}

@media (min-width: 861px) {
  .header-actions { display: none; }
  .site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .site-nav ul { display: flex; align-items: center; }
  .nav-cta { margin-left: 8px; }
}

.hero { padding: 36px 0 12px; }

.hero-grid { display: grid; gap: 28px; }

.hero-photo,
.frame { margin: 0; }

.hero-photo,
.frame {
  border-radius: 18px;
  overflow: hidden;
}

.hero-photo img,
.frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-photo img { aspect-ratio: 16 / 10; }
.frame img { aspect-ratio: 4 / 3; }

.story-grid,
.page-hero-grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.office-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--burgundy);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}

.office-card h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.office-card address { margin-bottom: 14px; }

.contact-lines { display: grid; gap: 12px; margin: 0; }
.contact-lines div { min-width: 0; }
.contact-lines dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-lines dd { margin: 0; }
.contact-lines a { overflow-wrap: anywhere; }

.proof {
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.proof strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.proof span { color: var(--muted); font-size: 0.95rem; }

.section { padding: 42px 0 8px; }

.section-head { margin-bottom: 8px; max-width: 40rem; }

.service-list { margin-top: 18px; border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.service-row:hover { background: rgba(112, 40, 40, 0.045); }
.service-row:hover .service-title { color: var(--burgundy); }
.service-row:hover .service-go { transform: translateX(4px); }

.service-no {
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: 1.2rem;
  width: 2rem;
}

.service-title { display: block; font-weight: 600; font-size: 1.12rem; }
.service-desc { display: block; color: var(--muted); margin-top: 3px; }
.service-go {
  color: var(--burgundy);
  transition: transform 0.18s ease;
}

.about-teaser { display: grid; gap: 16px; }

.text-link {
  font-weight: 600;
  text-underline-offset: 4px;
}

.page-hero { padding: 42px 0 8px; }

.jump-wrap { margin: 8px 0 8px; }

.jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 0 12px;
  margin: 0;
}

.jump a {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.jump a:hover,
.jump a[aria-current="true"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

.services-layout { display: block; }

.service-article {
  scroll-margin-top: 150px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.service-article .index-no {
  font-family: var(--serif);
  color: var(--burgundy);
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.prose { max-width: 68ch; }
.prose ul, .prose ol { margin: 0.4rem 0 1rem; padding-left: 1.15rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--burgundy); }

.split-list { padding-left: 1.15rem; }

.principles {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.principles li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 8px;
}

.pull { margin: 0 0 18px; padding: 0; border: 0; }
.story-grid .pull { margin-top: 0; }
.pull p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: var(--burgundy);
}

.contact-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 12px;
}

.contact-card h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.contact-card a { overflow-wrap: anywhere; }

.note-card {
  background: var(--burgundy-soft);
  border-radius: 18px;
  padding: 20px;
}

.note-card h2 { font-size: 1.5rem; }

.cta-strip { margin-top: 36px; }

.cta-inner {
  background: var(--burgundy);
  color: #f7f1ea;
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.cta-inner p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
  max-width: 26rem;
}

.site-footer {
  margin-top: 48px;
  background: var(--footer);
  color: #f7f1ea;
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer a { color: #f7f1ea; }

.footer-grid {
  display: grid;
  gap: 28px;
  padding: 42px 0 28px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.footer-tag { margin: 0; color: #eadfd8; }

.footer-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eadfd8;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  color: #eadfd8;
  font-size: 0.95rem;
}

.footer-base p { margin: 0; }
.footer-base a { color: #eadfd8; }

@media (max-width: 979px) {
  .jump-wrap {
    position: sticky;
    top: calc(var(--header) + env(safe-area-inset-top));
    z-index: 25;
    background: var(--paper);
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 560px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 36px; max-width: 42vw; }
  .header-phone { padding: 0 12px; }
}

@media (min-width: 800px) {
  .proof { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .about-teaser { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .story-grid,
  .page-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .contact-grid .span-2 { grid-column: 1 / -1; }
  .split-list { columns: 2; column-gap: 36px; }
  .split-list li { break-inside: avoid; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 0.7fr; }
  .hero { padding: 64px 0 20px; }
  .page-hero { padding: 56px 0 12px; }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    grid-template-areas:
      "copy photo"
      "copy card";
    gap: 22px 48px;
    align-items: stretch;
  }
  .hero-copy { grid-area: copy; align-self: center; }
  .hero-photo { grid-area: photo; }
  .office-card { grid-area: card; }
  .services-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .jump-wrap { position: sticky; top: 96px; }
  .jump { flex-direction: column; overflow: visible; padding-top: 0; }
  .jump a { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header, .jump-wrap, .cta-strip, .header-actions { display: none !important; }
  body { background: white; }
  .site-footer { background: white; color: black; }
  .site-footer a, .footer-base, .footer-base a, .footer-tag, .footer-label { color: black; }
  a { text-decoration: underline; }
}
