/* Kestrel Accounts: ledger-ruled, forest green with a ledger-red accent */

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

:root {
  /* Brand palette */
  --primary:      #1f4d36;
  --primary-mid:  #2f6b4c;
  --primary-dark: #143325;
  --accent:       #c8361d;
  --accent-mid:   #e5664c;

  /* Neutrals */
  --bg:        #f4f5ef;
  --surface:   #ffffff;
  --border:    #dde2d8;
  --rule:      #b9c2b5;
  --text:      #18241d;
  --text-soft: #46544b;
  --text-muted:#5b675f;
  --grid:      rgba(31, 77, 54, 0.08);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Instrument Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      6px;
  --radius-lg:   10px;

  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23c8361d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.2s; }
a:hover { color: var(--accent); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); }

p { max-width: 65ch; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Visible ledger grid ---------- */
.gridlines {
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to left, var(--grid) 1px, transparent 1px);
  background-size: 25% 100%, 100% 100%;
  background-origin: content-box;
  background-clip: content-box;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 239, 0.97);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--primary-dark);
}
.brand:hover { color: var(--primary); }
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; white-space: nowrap; }

.site-nav { margin-left: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: 500 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: var(--surface); border-color: var(--primary); }

.bars, .bars::before, .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background 0.2s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 16px 30px -24px rgba(20, 51, 37, 0.5);
}
.nav-links.open { display: flex; }

.nav-links a {
  display: block;
  padding: 0.95rem clamp(1rem, 5vw, 2rem);
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--bg); }
.nav-links a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--accent);
}

.header-phone { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-line { background: transparent; color: var(--primary-dark); border-color: var(--rule); }
.btn-line:hover { background: var(--surface); color: var(--primary-dark); border-color: var(--primary); }

.btn-light { background: var(--bg); border-color: var(--bg); color: var(--primary-dark); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--primary-dark); }
.btn-light:focus-visible { outline-color: #fff; }

/* ---------- Ticked lists (the accountant's tick) ---------- */
.ticks { list-style: none; }
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  margin-top: 0.6rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--tick) center / contain no-repeat;
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero-grid { display: grid; gap: 2.75rem; align-items: end; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: '';
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  background: var(--tick) center / contain no-repeat;
}

.hero h1 { max-width: 15ch; }

.lede {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 36rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Ledger panel */
.ledger-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 22px 44px -32px rgba(20, 51, 37, 0.45);
  max-width: 34rem;
  width: 100%;
}

.lc-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--primary-dark);
}

.lc-rows { list-style: none; }
.lc-rows li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 2.5rem;
  gap: 0.75rem;
  align-items: center;
  padding-block: 0.7rem;
}
.lc-rows li::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--border);
  transform-origin: left center;
}
.lc-name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; color: var(--primary-dark); }
.lc-for  { font-size: 0.875rem; line-height: 1.35; color: var(--text-soft); }
.lc-tick {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(200, 54, 29, 0.45);
  margin-block: -0.7rem;
}
.lc-tick svg { width: 1.35rem; height: 1.35rem; }
.lc-tick path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.lc-total {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-block: 0.95rem 0.8rem;
}
.lc-total span { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.lc-total strong { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--primary-dark); }
.lc-total::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  border-top: 1px solid var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
  transform-origin: left center;
}

/* ---------- Entrance (home first screen) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes ink  { from { stroke-dashoffset: 24; } }

.intro .kicker        { animation: fade 0.5s ease 0.1s both; }
.intro h1             { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
.intro .lede          { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }
.intro .hero-actions  { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 1.05s both; }
.intro .lc-caption    { animation: fade 0.4s ease 0.15s both; }
.intro .lc-rows li    { animation: fade 0.35s ease calc(0.2s + var(--i) * 0.08s) both; }
.intro .lc-rows li::after { animation: draw 0.5s ease calc(0.2s + var(--i) * 0.08s) both; }
.intro .lc-tick path  { animation: ink 0.3s ease-out calc(1s + var(--i) * 0.15s) both; }
.intro .lc-total      { animation: fade 0.35s ease 1.85s both; }
.intro .lc-total::after { animation: draw 0.4s ease 2s both; }

/* ---------- Photo band ---------- */
.photo-band { border-bottom: 1px solid var(--rule); }
.photo-grid { display: grid; }
.photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--border);
  border-inline: 1px solid var(--rule);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-note {
  padding-block: 2rem 2.5rem;
  display: grid;
  gap: 0.9rem;
  align-content: center;
}
.photo-note p { color: var(--text-soft); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--surface); }

.sec-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.sec-head p { color: var(--text-soft); font-size: 1.1rem; }

/* Ledger rows */
.ledger {
  border-top: 1px solid var(--primary-dark);
  border-bottom: 4px double var(--primary-dark);
}
.ledger-head { display: none; }
.ledger-row {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--border);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row p { color: var(--text-soft); }
.ledger-row .for { font-size: 0.95rem; color: var(--text); }
.ledger-row .lbl { font-weight: 600; color: var(--text-muted); }
.row-link {
  justify-self: start;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding-block: 0.25rem;
}
.row-link:hover { text-decoration: underline; }

/* Split columns */
.split { display: grid; border-top: 1px solid var(--primary-dark); }
.split > div { padding-block: 2rem; }
.split > div + div { border-top: 1px solid var(--rule); }
.split h3 { margin-bottom: 0.85rem; }
.split p { color: var(--text-soft); }
.split .ticks { margin-top: 1.1rem; }

/* Facts tables (definition lists) */
.facts {
  border-top: 1px solid var(--primary-dark);
  border-bottom: 4px double var(--primary-dark);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); padding-top: 0.1em; }
.facts dd { overflow-wrap: anywhere; }
.facts dd a { font-weight: 500; }

/* CTA band */
.cta {
  background: var(--primary-dark);
  color: #dbe5de;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.cta-grid > * { min-width: 0; }
.cta .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
.cta .facts dd, .cta .facts dd a { overflow-wrap: anywhere; word-break: break-word; }
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { margin-top: 1rem; }
.cta .facts { border-top-color: rgba(255, 255, 255, 0.5); border-bottom-color: rgba(255, 255, 255, 0.5); }
.cta .facts > div { border-bottom-color: rgba(255, 255, 255, 0.16); }
.cta .facts dt { color: #b9cabe; }
.cta a:not(.btn) { color: #fff; }
.cta a:not(.btn):hover { color: #ffd9cf; }
.cta a:focus-visible { outline-color: #fff; }
.cta .btn { margin-top: 1.75rem; }

/* ---------- Inner page heads ---------- */
.page-head {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-head-grid { display: grid; gap: 2.25rem; align-items: end; }
.page-head h1 { max-width: 16ch; }
.page-head .photo { border: 1px solid var(--rule); border-radius: var(--radius-lg); aspect-ratio: 3 / 2; }

/* Decorative ruled-paper panel (About) */
.ledger-art {
  position: relative;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background-color: #fbfcf8;
  background-image:
    linear-gradient(to right, transparent 3.2rem, rgba(200, 54, 29, 0.55) 3.2rem, rgba(200, 54, 29, 0.55) calc(3.2rem + 1px), transparent calc(3.2rem + 1px), transparent calc(3.2rem + 4px), rgba(200, 54, 29, 0.55) calc(3.2rem + 4px), rgba(200, 54, 29, 0.55) calc(3.2rem + 5px), transparent calc(3.2rem + 5px)),
    linear-gradient(to right, transparent 68%, rgba(31, 77, 54, 0.18) 68%, rgba(31, 77, 54, 0.18) calc(68% + 1px), transparent calc(68% + 1px), transparent 84%, rgba(31, 77, 54, 0.18) 84%, rgba(31, 77, 54, 0.18) calc(84% + 1px), transparent calc(84% + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 1.9rem, rgba(31, 77, 54, 0.16) 1.9rem calc(1.9rem + 1px));
  overflow: hidden;
}
.ledger-art::after {
  content: '';
  position: absolute;
  right: 9%;
  bottom: 18%;
  width: 22%;
  height: 5px;
  border-top: 1px solid var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
}
.ledger-art::before {
  content: '';
  position: absolute;
  right: 10%;
  bottom: calc(18% + 0.9rem);
  width: 2.6rem;
  height: 2.6rem;
  background: var(--tick) center / contain no-repeat;
}

/* Jump list (Services) */
.jump {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.jump ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.jump li { border-right: 1px solid var(--border); }
.jump li:first-child { border-left: 1px solid var(--border); }
.jump a {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s, background 0.2s;
}
.jump a:hover { color: var(--primary); background: var(--bg); }

/* Service entries */
.svc {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 5rem;
}
.svc:last-of-type { border-bottom: 4px double var(--primary-dark); }
.svc-suit { margin-top: 0.75rem; font-size: 0.95rem; color: var(--text-soft); }
.svc-suit strong { color: var(--text); font-weight: 600; }
.svc-body p + p { margin-top: 1rem; }
.svc-body p { color: var(--text-soft); }
.svc-list h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.svc-list .ticks li { font-size: 0.98rem; }

/* Prose blocks */
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--text-soft); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.5rem; margin-bottom: 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { margin-top: 0.8rem; }

.two-col { display: grid; gap: 2.5rem; }

/* Table (Pricing) */
.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--primary-dark);
  border-bottom: 4px double var(--primary-dark);
}
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td {
  text-align: left;
  vertical-align: top;
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.fee-table tbody tr:last-child > * { border-bottom: 0; }
.fee-table thead th {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.fee-table tbody th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--primary-dark);
  width: 34%;
}
.fee-table td { color: var(--text-soft); }

/* ---------- Contact form ---------- */
.form {
  display: grid;
  gap: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.form-title { font-size: clamp(1.6rem, 3vw, 2rem); padding-bottom: 0.75rem; border-bottom: 1px solid var(--primary-dark); }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:hover, .field textarea:hover { border-color: var(--primary-mid); }
.field input:focus, .field textarea:focus { border-color: var(--primary); background: #fff; }
.field textarea { min-height: 9rem; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--text-muted); }
.form .btn { justify-self: start; }

.thanks {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.thanks svg { width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; }
.thanks svg path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 4px double var(--primary-dark);
}
.thanks p { color: var(--text-soft); }
.thanks p + p { margin-top: 0.75rem; }
.thanks:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px double var(--primary-dark);
  background: var(--surface);
  padding-block: 3rem 1.75rem;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2.25rem; }
.footer-about p { margin-top: 0.9rem; color: var(--text-soft); max-width: 32ch; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.site-footer ul { list-style: none; }
.site-footer li { padding-block: 0.3rem; overflow-wrap: anywhere; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.35s ease, transform 0.35s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .gridlines { background-size: calc(100% / 8) 100%, 100% 100%; }

  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 0.15rem;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-links a { padding: 0.5rem 0.75rem; border: 0; border-radius: var(--radius); }
  .nav-links a:hover { background: var(--surface); }
  .nav-links a[aria-current="page"] {
    box-shadow: none;
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.4em;
  }

  .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; column-gap: 3rem; }

  .ledger-head {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr) 5rem;
    column-gap: 2rem;
    padding-block: 0.7rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--rule);
  }
  .ledger-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr) 5rem;
    column-gap: 2rem;
    align-items: baseline;
  }
  .ledger-row .lbl { display: none; }
  .row-link { justify-self: end; }

  .split { grid-template-columns: 1fr 1fr; }
  .split > div { padding-block: 2.5rem 0.5rem; }
  .split > div:first-child { padding-right: clamp(1.5rem, 4vw, 3rem); }
  .split > div + div { border-top: 0; border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 4vw, 3rem); }

  .photo-band .photo { aspect-ratio: 16 / 9; }

  .facts > div, .cta .facts > div { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1rem; }

  .jump li:first-child { border-left: 0; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .gridlines { background-size: calc(100% / 12) 100%, 100% 100%; }

  .header-phone {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--primary-dark);
    transition: border-color 0.2s, background 0.2s;
  }
  .header-phone:hover { border-color: var(--primary); background: var(--surface); color: var(--primary-dark); }

  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
  .hero-intro { grid-column: 1 / 8; padding-right: 2.5rem; }
  .ledger-card { grid-column: 8 / 13; justify-self: end; }

  .photo-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .photo-band .photo { aspect-ratio: auto; height: clamp(300px, 30vw, 400px); }
  .photo-note { padding: 2rem 0 2rem 2.5rem; }

  .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; align-items: end; }

  .page-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; }

  .svc { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3.5fr); column-gap: 2.75rem; }

  .two-col { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; align-items: start; }
  .two-col.form-first { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro *, .intro *::before, .intro *::after { animation: none !important; }
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow { transition: none; }
}

/* ---------- Mobile nav: must stay last ----------
   Under 768px the links are hidden unless the menu button has added .open. */
@media (max-width: 767.98px) {
  .site-header .site-nav .nav-links:not(.open) { display: none; }
  .site-header .site-nav .nav-links.open { display: flex; }
}
