/* ==========================================================================
   Marsh Lane Accountants
   Point of view: the well-kept ledger. A pale page, deep plum ink, ruled
   columns and one vermilion "totals" double rule, the mark an accountant
   draws under a figure once it balances.
   ========================================================================== */

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

:root {
  /* Brand palette */
  --primary:      #4a1942;
  --primary-mid:  #6b2d5f;
  --primary-dark: #2c0e27;
  --accent:       #c0401a;
  --accent-mid:   #e2643a;

  /* Neutrals */
  --bg:          #f8f4f3;
  --bg-deep:     #f0e8ea;
  --surface:     #ffffff;
  --border:      #ddd0d6;
  --border-strong: #b49fab;
  --text:        #22131e;
  --text-soft:   #5a4a55;
  --text-muted:  #74636d;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

  /* Spacing and shape */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      3px;
  --radius-lg:   6px;
  --ease:        cubic-bezier(.2, .7, .2, 1);
  --header-h:    4.5rem;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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; }
[hidden] { display: none !important; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--primary); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--primary); color: #fff; padding: .7rem 1rem;
  text-decoration: none; border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

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

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--primary-dark);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--primary-mid); }

p { max-width: 62ch; }
p + p { margin-top: 1em; }

.lead { font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--text-soft); }

.label {
  font-family: var(--font-body);
  line-height: 1.4;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.num { font-variant-numeric: tabular-nums; color: var(--accent); }

/* The memorable detail: the accountant's double "totals" rule */
.tally {
  white-space: nowrap;
  padding-bottom: .1em;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 2px;
  background-position: 0 100%, 0 calc(100% - 5px);
}

@media (max-width: 359px) { .tally { white-space: normal; } }

.double-rule {
  display: block;
  height: 7px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform-origin: left center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 600 1rem/1.2 var(--font-body);
  padding: 1rem 1.4rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-line { background: transparent; color: var(--primary); }
.btn-line:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

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

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: .15rem;
  transition: color .2s, border-color .2s;
}
.text-link:hover { border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 243, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(248, 244, 243, .88); backdrop-filter: blur(10px); }
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgba(44, 14, 39, .5); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--primary-dark);
}
.brand:hover { color: var(--primary-dark); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  border-radius: var(--radius);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: .5rem; right: .5rem; bottom: .38rem;
  height: 4px;
  border-top: 1px solid var(--accent-mid);
  border-bottom: 1px solid var(--accent-mid);
}
.brand-mark span { transform: translateY(-.12rem); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; }
.brand-sub { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-top: .3rem; }

.primary-nav { display: flex; align-items: center; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  font: 600 .9rem/1 var(--font-body);
  color: var(--primary-dark);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-toggle:hover { border-color: var(--primary); background: var(--surface); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle-box { position: relative; width: 1.1rem; height: .8rem; display: block; }
.nav-toggle-box span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle-box span:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(.3rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-.3rem) rotate(-45deg); }

.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--primary);
  padding: .25rem clamp(1rem, 5vw, 2rem) 1.25rem;
  box-shadow: 0 18px 30px -24px rgba(44, 14, 39, .6);
  counter-reset: nav;
}
.nav-links.open { display: flex; }
.nav-links li { border-bottom: 1px solid var(--border); }
.nav-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--primary-dark);
  text-decoration: none;
}
.nav-links a::before {
  counter-increment: nav;
  content: "0" counter(nav);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 1.5rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--primary); font-style: italic; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    gap: clamp(1.1rem, 2.6vw, 2.25rem);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-links li { border: 0; }
  .nav-links a {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 500;
    padding: .45rem 0 .55rem;
    color: var(--text);
    background-image:
      linear-gradient(var(--accent), var(--accent)),
      linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0 1px, 0 1px;
    background-position: 0 100%, 0 calc(100% - 4px);
    transition: color .2s, background-size .3s var(--ease);
  }
  .nav-links a::before { content: none; }
  .nav-links a:hover { color: var(--primary); background-size: 100% 1px, 100% 1px; }
  .nav-links a[aria-current="page"] {
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
    background-size: 100% 1px, 100% 1px;
  }
  .nav-links .nav-cta a {
    padding: .6rem 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    background-image: none;
    transition: background-color .2s, border-color .2s;
  }
  .nav-links .nav-cta a:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; }
  .nav-links .nav-cta a[aria-current="page"] { background-color: var(--primary-dark); color: #fff; }
}

/* ---------- Load entrance (orchestrated, CSS only, finishes visible) ---------- */
@keyframes rise   { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
@keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tally  { from { background-size: 0 2px, 0 2px; } to { background-size: 100% 2px, 100% 2px; } }
@keyframes grow   { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tick   { from { opacity: 0; transform: translateX(-.6rem); } to { opacity: 1; transform: none; } }

.load      { animation: rise .75s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.load-fade { animation: fade .8s ease both; animation-delay: calc(var(--d, 0) * 1ms); }
.load-tick { animation: tick .55s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.rule-draw {
  height: 1px;
  background: var(--primary);
  transform-origin: left center;
  animation: draw 1s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
.load-unveil { animation: unveil 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.tally.load-tally { animation: tally .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.double-rule.load-draw { animation: draw .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }

/* ---------- Scroll reveal ---------- */
/* Only hidden on wider screens; on phones content is always fully visible. */
@media (min-width: 768px) {
  .js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(1.75rem, 4vw, 3.5rem); }
.hero-grid { display: grid; gap: 2rem; }
.hero-folio { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; }
.hero-copy h1 { margin-block: 1.4rem 1.5rem; max-width: 17ch; }
.hero-copy .lead { margin-bottom: 2rem; }
.hero-call { font-size: .98rem; color: var(--text-soft); }
.hero-call a { font-weight: 600; white-space: nowrap; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 100% 60%;
  border-radius: var(--radius);
  filter: saturate(.85) contrast(1.02);
}

.statement-wrap { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.statement-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-bottom: .9rem; }
.statement { list-style: none; border-top: 1px solid var(--primary); }
.statement-head, .statement-row, .statement-total {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.statement-head { padding-block: .65rem; }
.statement-head .col-suits { display: none; }
.statement-row { padding-block: 1rem; align-items: baseline; }
.statement-row .num { font-size: .85rem; font-weight: 600; }
.statement-row .svc { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.15; color: var(--primary-dark); }
.statement-row .suits { grid-column: 2; color: var(--text-soft); font-size: .98rem; margin-top: .2rem; }
.statement-row a { color: inherit; text-decoration: none; }
.statement-row a:hover { color: var(--accent); }
.statement-total { border-bottom: 0; padding-top: 1.25rem; row-gap: .4rem; }
.statement-total .label { grid-column: 1 / -1; }
.statement-total .val { grid-column: 1 / -1; justify-self: start; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.2; color: var(--primary); }
.statement-total .val .double-rule { margin-top: .35rem; }

@media (min-width: 768px) {
  .hero-figure img { aspect-ratio: 4 / 3; }
  .statement-head, .statement-row, .statement-total { grid-template-columns: 4.5rem 1.1fr 1fr; column-gap: 1.5rem; }
  .statement-head .col-suits { display: block; }
  .statement-row .suits { grid-column: auto; margin-top: 0; }
  .statement-total { align-items: baseline; }
  .statement-total .label { grid-column: 1 / 3; }
  .statement-total .val { grid-column: 3; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: stretch; }
  .hero-copy { grid-column: 1 / 8; padding-right: clamp(2rem, 4vw, 3.5rem); border-right: 1px solid var(--border); padding-bottom: 1rem; }
  .hero-figure { grid-column: 8 / 13; padding-left: clamp(1.5rem, 3vw, 2.5rem); }
  .hero-figure { align-self: end; }
  .hero-figure img { aspect-ratio: 4 / 5; }
  .hero-copy h1 { margin-top: 2.25rem; }
}

/* ---------- Ruled sheets (sections) ---------- */
.sheet { border-top: 1px solid var(--border); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.sheet-index {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.sheet-index .num { font-size: .78rem; font-weight: 600; letter-spacing: .1em; }
.sheet-body { padding-block: var(--section-pad); min-width: 0; }
.sheet-body.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.sheet-body > h2 { max-width: 20ch; }
.sheet-body > h2 + .lead, .sheet-body > h2 + p { margin-top: 1.25rem; }

@media (min-width: 1024px) {
  .sheet .container, .hero .container, .page-head .container { border-inline: 1px solid var(--border); }
  .sheet-grid { grid-template-columns: 12rem minmax(0, 1fr); }
  .sheet-index {
    flex-direction: column;
    gap: .4rem;
    border-bottom: 0;
    border-right: 1px solid var(--border);
    padding-block: var(--section-pad);
    padding-right: 1.5rem;
  }
  .sheet-body { padding-left: clamp(2rem, 4vw, 4rem); }
}

/* ---------- Split ledger (home: who the practice looks after) ---------- */
.split { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--primary); }
.split-col { padding-block: 2rem; border-bottom: 1px solid var(--border); }
.split-col h3 { margin-bottom: .9rem; }
.split-col p { color: var(--text-soft); }
.mini-ledger { list-style: none; margin-top: 1.5rem; border-top: 1px solid var(--border); }
.mini-ledger li { display: grid; grid-template-columns: 2.5rem 1fr; padding-block: .7rem; border-bottom: 1px solid var(--border); }
.mini-ledger .num { font-size: .82rem; font-weight: 600; }
.mini-ledger a { text-decoration: none; color: var(--primary-dark); font-weight: 500; }
.mini-ledger a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-col:first-child { padding-right: 2.5rem; border-right: 1px solid var(--border); }
  .split-col:last-child { padding-left: 2.5rem; }
}

/* ---------- Fee terms ---------- */
.fee-statement { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.08; color: var(--primary-dark); max-width: 18ch; }
.terms { display: grid; margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--primary); }
.term { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--border); }
.term dt { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--primary); }
.term dd { color: var(--text-soft); }
.terms + .btn-row { margin-top: 2rem; }

@media (min-width: 768px) {
  .terms { grid-template-columns: repeat(3, 1fr); }
  .term { display: block; padding: 1.75rem 1.5rem 2rem; border-right: 1px solid var(--border); }
  .term:first-child { padding-left: 0; }
  .term:last-child { border-right: 0; }
  .term dt { margin-bottom: .6rem; }
}

/* ---------- Area (contour panel) ---------- */
.area { display: grid; gap: 2rem; align-items: center; }
.contour {
  position: relative;
  min-height: 17rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-deep);
  background-image:
    repeating-radial-gradient(ellipse 120% 90% at 58% 48%, transparent 0 1.05rem, rgba(74, 25, 66, .17) 1.05rem calc(1.05rem + 1px)),
    linear-gradient(rgba(74, 25, 66, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 25, 66, .06) 1px, transparent 1px);
  background-size: auto, 2.5rem 2.5rem, 2.5rem 2.5rem;
  overflow: hidden;
}
.contour .pin {
  position: absolute; left: 58%; top: 48%;
  width: .85rem; height: .85rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 .4rem rgba(192, 64, 26, .18);
  transform: translate(-50%, -50%);
}
.contour .pin-label {
  position: absolute; left: calc(58% + 1rem); top: 48%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.35rem; color: var(--primary-dark);
  background: rgba(240, 232, 234, .85); padding: 0 .3rem;
}
.contour .corner-label {
  position: absolute; left: 1rem; bottom: .9rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft);
  background: rgba(240, 232, 234, .85); padding: .1rem .3rem;
}
@media (min-width: 768px) {
  .area { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .contour { min-height: 21rem; }
}

/* ---------- CTA band ---------- */
.cta { background: var(--primary); color: #f1e6ec; }
.cta-grid { display: grid; gap: 2.5rem; padding-block: var(--section-pad); }
.cta h2 { color: #fff; max-width: 15ch; }
.cta h2 em { color: #f6c9b6; }
.cta p { color: #e6d5de; margin-top: 1.1rem; }
.cta .label { color: #e6d5de; }
.contact-rows { border-top: 1px solid rgba(255, 255, 255, .35); }
.contact-rows div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding-block: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.contact-rows dd a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-rows dd a:hover { color: #f6c9b6; }
.cta .btn { background: var(--accent); border-color: var(--accent); margin-top: 1.75rem; }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--primary-dark); }
.cta .btn:focus-visible { outline-color: #fff; }

@media (min-width: 768px) {
  .contact-rows div { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: end; }
}

/* ---------- Inner page head ---------- */
.page-head { padding-top: clamp(1.75rem, 4vw, 3.5rem); }
.page-head-grid { display: grid; gap: 2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-folio { display: flex; gap: .75rem; align-items: baseline; padding-bottom: .9rem; }
.page-folio .num { font-size: .78rem; font-weight: 600; letter-spacing: .1em; }
.page-head h1 { margin-block: 1.6rem 1.25rem; max-width: 15ch; }
.page-head .lead + .btn-row { margin-top: 2rem; }
.page-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 40% 60%;
  border-radius: var(--radius);
  filter: saturate(.8) contrast(1.02);
}

@media (min-width: 1024px) {
  .page-head-grid.has-aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; }
  .page-head-grid.has-aside > .page-head-copy { padding-right: clamp(2rem, 4vw, 3.5rem); border-right: 1px solid var(--border); }
  .page-head-grid.has-aside > .page-aside { padding-left: clamp(1.5rem, 3vw, 2.5rem); align-self: end; }
}

/* ---------- Services list ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--primary); }
.svc-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 1.1rem;
  padding-block: clamp(1.9rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.svc-item > .num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.svc-head h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.svc-head .label { display: block; margin-top: .7rem; }
.svc-head .text-link { display: inline-block; margin-top: 1.1rem; font-size: .95rem; }
.svc-body { grid-column: 2; }
.svc-body > p { color: var(--text-soft); }
.svc-covers { list-style: none; margin-top: 1.4rem; border-top: 1px solid var(--border); }
.svc-covers li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .5rem; padding-block: .65rem; border-bottom: 1px solid var(--border); font-size: .98rem; }
.svc-covers li::before {
  content: "";
  width: .7rem; height: 5px; margin-top: .65em;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

@media (min-width: 1024px) {
  .svc-item { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 2.5rem; }
  .svc-body { grid-column: 3; grid-row: 1; }
}

/* ---------- Which services (guide table) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin-top: 2rem; border-top: 1px solid var(--primary); }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table caption { text-align: left; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--border); }
.data-table thead th { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); padding-block: .75rem; }
.data-table tbody th { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--primary-dark); width: 38%; }
.data-table td { color: var(--text-soft); }
.data-table td:last-child, .data-table th:last-child { padding-right: 0; }

/* ---------- Fixed fee months graphic ---------- */
.months { display: grid; gap: .9rem; }
.months-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.25rem, 1vw, .5rem);
  align-items: end;
  height: clamp(6rem, 18vw, 9rem);
  border-bottom: 1px solid var(--primary);
}
.months-bars span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: grow .6s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
.months-bars span:nth-child(even) { background: var(--primary-mid); }
.months-labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.25rem, 1vw, .5rem); text-align: center; font-size: .72rem; font-weight: 600; color: var(--text-soft); }
.months-level { display: flex; align-items: center; gap: .75rem; }
.months-level .double-rule { flex: 1; }
.months-level .label { color: var(--accent); white-space: nowrap; }
.months figcaption { font-size: .92rem; color: var(--text-soft); }

/* ---------- Fee enquiry sheet ---------- */
.fee-sheet { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.fee-sheet fieldset { border: 0; min-width: 0; }
.fee-sheet fieldset + fieldset { margin-top: 2.25rem; }
.fee-sheet legend { padding-bottom: .8rem; }
.opts { border-top: 1px solid var(--primary); }
.opt {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  padding: 1rem .75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
}
.opt:hover { background: var(--surface); }
.opt:has(input:checked) { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.opt input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--primary); cursor: pointer; }
.opt-title { display: block; font-weight: 600; color: var(--primary-dark); }
.opt-note { display: block; font-size: .92rem; color: var(--text-soft); }

.fee-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  align-self: start;
}
.fee-summary h3 { margin-bottom: 1rem; }
.fee-summary dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding-block: .85rem; border-top: 1px solid var(--border); }
.fee-summary dd { color: var(--primary-dark); font-weight: 500; }
.fee-summary ol { list-style: none; }
.fee-summary ol li { display: grid; grid-template-columns: 2rem 1fr; padding-block: .2rem; }
.fee-summary ol li .num { font-size: .82rem; font-weight: 600; }
.fee-summary .empty { color: var(--text-muted); font-weight: 400; }
.fee-summary .summary-total dd { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--primary); line-height: 1.2; }
.fee-summary .summary-total .double-rule { margin-top: .35rem; max-width: 16rem; }
.fee-summary .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

@media (min-width: 1024px) {
  .fee-sheet { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; }
  .fee-summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Questions ---------- */
.questions { margin-top: 2rem; border-top: 1px solid var(--primary); }
.questions details { border-bottom: 1px solid var(--border); }
.questions summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: center;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  color: var(--primary-dark);
  transition: color .2s;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--accent); }
.questions summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--accent);
  text-align: center;
  transition: transform .25s var(--ease);
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding-bottom: 1.4rem; color: var(--text-soft); }

/* ---------- Facts (about) ---------- */
.facts { border-top: 1px solid var(--primary); margin-top: 2rem; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding-block: 1.1rem; border-bottom: 1px solid var(--border); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.facts dd { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.25; color: var(--primary-dark); }
.facts dd a { text-decoration: none; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .facts > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
}

.about-brief { display: grid; gap: 2rem; margin-top: 2rem; }
.about-brief .facts { margin-top: 0; min-width: 0; }
.portrait { max-width: 20rem; }
.portrait-frame {
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--bg-deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(74, 25, 66, .07) 0 1px, transparent 1px 12px),
    linear-gradient(rgba(74, 25, 66, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 25, 66, .06) 1px, transparent 1px);
  background-size: auto, 2.5rem 2.5rem, 2.5rem 2.5rem;
}
.portrait-initials { font-family: var(--font-display); font-size: 4rem; color: var(--primary); }
.portrait figcaption { margin-top: .7rem; font-size: .9rem; color: var(--text-soft); }
@media (min-width: 768px) {
  .about-brief { grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}

.guide-title { margin-top: 3rem; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.guide-list { list-style: none; margin-top: 1.25rem; border-top: 1px solid var(--primary); }
.guide-list li { border-bottom: 1px solid var(--border); }
.guide-list a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: .15rem;
  padding-block: 1rem; text-decoration: none; color: var(--primary-dark);
}
.guide-list .num { grid-row: 1 / 3; font-size: .85rem; font-weight: 600; padding-top: .45rem; }
.guide-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.guide-for { color: var(--text-soft); font-size: .95rem; }
.guide-list a:hover .guide-name { color: var(--accent); }
@media (min-width: 768px) {
  .guide-list a { grid-template-columns: 4.5rem 1fr 1fr; align-items: baseline; }
  .guide-list .num { grid-row: auto; padding-top: 0; }
}

.prose-cols { display: grid; gap: 2rem; margin-top: 2rem; }
.prose-cols > div { border-top: 1px solid var(--primary); padding-top: 1.25rem; }
.prose-cols h3 { margin-bottom: .8rem; }
.prose-cols p { color: var(--text-soft); }
@media (min-width: 768px) { .prose-cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-grid .facts { margin-top: 0; }
.contact-note { margin-top: 1.5rem; color: var(--text-soft); font-size: .98rem; }

.enquiry { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); }
.enquiry h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: .5rem; }
.enquiry > p { color: var(--text-soft); margin-bottom: 1.5rem; }
.field { display: grid; gap: .45rem; padding-block: .9rem; border-top: 1px solid var(--border); }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.field .opt-tag { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--primary-mid); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(74, 25, 66, .18); }
.field-pair { display: grid; gap: 0 1.25rem; }
.enquiry .btn { margin-top: 1.25rem; }
.form-small { margin-top: 1rem; font-size: .88rem; color: var(--text-muted); }

.thanks { padding-block: 1rem; outline: none; }
.thanks h2 { margin-bottom: .5rem; }
.thanks .double-rule { width: 9rem; margin: .4rem 0 1.25rem; }
.thanks p { color: var(--text-soft); }

@media (min-width: 768px) { .field-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }

/* ---------- Privacy ---------- */
.clauses { list-style: none; border-top: 1px solid var(--primary); }
.clauses li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.clauses .num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.clauses h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: .6rem; }
.clauses p { color: var(--text-soft); }
.clauses a { overflow-wrap: anywhere; }
@media (min-width: 768px) { .clauses li { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #e6d8e0; font-size: .97rem; }
.footer-grid { display: grid; gap: 2.25rem; padding-block: 3.5rem 2.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f6c9b6; text-decoration: underline; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #cdbac5; }
.footer-brand .brand-mark { background: #fff; color: var(--primary-dark); }
.footer-brand p { margin-top: 1.1rem; max-width: 34ch; color: #d7c6cf; }
.footer-head { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #cdbac5; margin-bottom: .9rem; }
.footer-nav ul, .footer-contact ul { list-style: none; display: grid; gap: .45rem; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .86rem;
  color: #cdbac5;
}
.footer-base a { color: #e6d8e0; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 2.5rem; }
}

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

/* ==========================================================================
   Mobile navigation lock. Kept last on purpose: under 768px the links stay
   hidden in every header state (top, scrolled, sticky) until the menu
   button adds the .open class.
   ========================================================================== */
@media (max-width: 767.98px) {
  .site-header .primary-nav .nav-links,
  .site-header.scrolled .primary-nav .nav-links { display: none; }
  .site-header .primary-nav .nav-links.open,
  .site-header.scrolled .primary-nav .nav-links.open { display: flex; }
}
