/* =============================================================================
   Suncoast Law — "Editorial Coast" design system
   One stylesheet. Fraunces (display serif) + Poppins (body/UI).
   ============================================================================

   MINI STYLE GUIDE — components inner pages should use (markup is exact)
   ----------------------------------------------------------------------------
   Rules of the house: hairlines (1px var(--rule)), 2px radii, no pill buttons,
   no box-shadow stacks, sun (#FFBD59) only as fills/rules/dots — never as text
   on a light ground. Dark text on sun. Headings are Fraunces; UI is Poppins.

   PAGE HEAD (every inner page; the only h1 on the page)
     <header class="page-head">
       <div class="container">
         <nav class="breadcrumb" aria-label="Breadcrumb"><ol role="list">
           <li><a href="/index.html">Home</a></li>
           <li><a href="/services.html">Services</a></li>
           <li aria-current="page">Wills &amp; Estates</li>
         </ol></nav>
         <p class="eyebrow">Wills &amp; Estates</p>
         <h1>Heading.</h1>
         <p class="lead">One or two sentences.</p>
       </div>
     </header>
     Modifiers: .page-head--paper (off-white band). .page-head--centre (404, thanks).

   TWO-COLUMN ARTICLE + STICKY ASIDE (services, about, first-meeting, FAQ)
     <section class="section"><div class="container article-layout">
       <article class="article prose"> …h2/h3/p/ul/ol/dl… </article>
       <aside class="aside" aria-label="Contact Suncoast Law">
         <div class="aside-card">
           <p class="eyebrow">Talk to us</p>
           <h2 class="aside-card__title">Heading.</h2>
           <p>Short sentence.</p>
           <div class="btn-row"><a class="btn" href="/contact.html">Contact us</a></div>
           <dl class="details">
             <div><dt>Phone</dt><dd><a href="tel:+16048860004">604-886-0004</a></dd></div>
           </dl>
         </div>
         <nav class="related" aria-labelledby="rel-t">…</nav>   (optional)
       </aside>
     </div></section>
     Use .article-layout--narrow-aside for a slimmer right column.

   PROSE (.prose) — typography for running text: h2, h3, p, ul, ol, dl, a,
     strong, hr, .checklist, .callout, .disclaimer. No blockquotes: firm copy
     must never read as a quotation/testimonial.
     Disclaimer line: <p class="disclaimer">General information, not legal advice.…</p>

   CHECKLIST (first-meeting "what to bring")
     <ul class="checklist" role="list"><li>Item</li></ul>

   FAQ ACCORDION
     <div class="faq">
       <h2 class="faq__group">Group title</h2>          (optional)
       <details><summary>Question?</summary><div><p>Answer.</p></div></details>
     </div>
     Use <details open> to pre-open one item.

   CALLOUT / NOTE
     <div class="callout"><p class="callout__title">Title</p><p>Body.</p></div>
     Modifiers: .callout--paper (off-white), .callout--sun (sun rule, e.g. new-location note).
     Use role="note" when it is an aside to the running text.

   DETAILS LIST (label/value pairs)
     <dl class="details"><div><dt>Phone</dt><dd><a href="tel:…">…</a></dd></div></dl>
     .details--stack for a vertical dt-over-dd layout.

   FORMS (contact)
     <form class="form" novalidate>
       <div class="form-grid">
         <div class="field">
           <label for="name">Name <span class="required">(required)</span></label>
           <input id="name" name="name" type="text" autocomplete="name" required aria-describedby="name-error">
           <p class="field__error" id="name-error" hidden>Please enter your name.</p>
         </div>
         <div class="field field--full"><label for="msg">Message</label><textarea id="msg" name="message"></textarea></div>
         <div class="field field--check"><input id="ok" type="checkbox"><label for="ok">…</label></div>
       </div>
       <div class="form__actions"><button class="btn" type="submit">Send message</button>
         <p class="form__note">…</p></div>
       <p class="form__status" role="status" aria-live="polite"></p>
     </form>
     Invalid: add aria-invalid="true" to the control, .field--invalid to the field, unhide .field__error.
     Result: add .form__status--success or .form__status--error and text to .form__status.
     Honeypot: <div class="field field--hp" aria-hidden="true"><label for="website">Website</label><input id="website" name="website" tabindex="-1" autocomplete="off"></div>

   MAP
     <div class="map-frame"><iframe title="Map showing Suncoast Law, 105 - 641 Mahan Road, Gibsons" src="…" loading="lazy" referrerpolicy="no-referrer-when-downgrade" allowfullscreen></iframe></div>

   RELATED LINKS (compact)
     <nav class="related" aria-labelledby="rel-t">
       <h2 class="related__title" id="rel-t">Related</h2>
       <ul class="related__list" role="list"><li><a href="/faq.html">FAQ</a></li></ul>
     </nav>

   SERVICE / LINK CARDS (whole card clickable)
     <div class="card-grid">
       <article class="card card--link">
         <span class="card__index" aria-hidden="true">01</span>
         <h3><a class="card__title-link" href="/x.html">Title</a></h3>
         <p>Body.</p>
         <span class="link-arrow" aria-hidden="true">Learn more</span>
       </article>
     </div>
     .card--boxed for a bordered stand-alone card.

   CTA BAND (slate, page bottom before the footer) — copy the home-page block:
     <section class="cta-band on-dark" aria-labelledby="cta-title">…</section>

   404
     <section class="section not-found"><div class="container container--narrow">
       <p class="not-found__code" aria-hidden="true">404</p>
       <h1>Page not found.</h1><p class="lead">…</p>
       <div class="btn-row">…</div>
       <nav class="related" …>…</nav>
     </div></section>

   LISTS: any <ul>/<ol> whose bullets are removed (.breadcrumb ol, .checklist,
     .related__list, .details is a <dl> so exempt) MUST carry role="list" so
     Safari/VoiceOver keep announcing it as a list. Prose lists keep their markers.

   Section wrappers: .section, .section--tight, .section--paper, .section--sage,
   .section--rule-top / --rule-bottom; .container, .container--narrow;
   .section__head (+ .section__head--split); .eyebrow; .lead; .btn, .btn--secondary,
   .btn--sun, .btn--small, .btn--block; .link-arrow; .btn-row; .visually-hidden.
   ========================================================================== */

/* ---------- 1. Tokens ----------------------------------------------------- */
:root {
  /* Colour — brand */
  --sun: #FFBD59;            /* fills, dots, rules only — never text on light */
  --sun-deep: #E9A43B;       /* hover state for sun fills */
  --grey-blue: #868E98;      /* brand wave — decorative only on light ground */
  --sage: #B0B399;           /* brand wave — decorative */
  --sage-pale: #EEEFE7;      /* band tint */
  --sage-mist: #F6F6F1;

  /* Colour — neutrals */
  --ink: #14181E;
  --ink-2: #2B3340;          /* deep slate: footer + CTA band */
  --ink-3: #1F2632;          /* footer, one step deeper */
  --slate: #2B3340;          /* brand slate (derived from the grey-blue wave) */
  --text: #1C2129;
  --text-muted: #556069;     /* 6.4:1 on white */
  --text-on-dark: #F4F4F2;
  --text-on-dark-muted: #B9C0C9; /* 8:1 on #2B3340 */
  --paper: #F4F4F2;
  --white: #FFFFFF;
  --rule: #D7D9D3;
  --rule-strong: #B8BBB3;
  --rule-on-dark: rgba(255, 255, 255, 0.14);
  --focus: var(--slate);     /* light grounds; dark grounds switch to sun */
  --error: #8E2A18;          /* 7.3:1 on white */
  --error-border: #A8321F;
  --success: #2F5A3A;        /* 7.4:1 on white */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-tiny: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.65;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(4rem, 8vw, 7.5rem);
  --section-tight: clamp(2.5rem, 5vw, 4.5rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 5rem;
  --tap: 2.75rem;            /* 44px minimum tap target */

  /* Shape */
  --radius: 2px;
  --radius-md: 6px;
  --dot: 0.3em;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* ---------- 2. Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
/* Zero-specificity reset so component classes (.nav__list, .hero__meta …) can set their own padding.
   Every list styled list-style:none carries role="list" so Safari/VoiceOver keep list semantics. */
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--sun); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h1, h2, .section__head h2 { text-wrap: balance; }
p, li, address, dd, dt { overflow-wrap: break-word; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }
::selection { background: var(--sun); color: var(--ink); }

/* Focus: always visible, never removed. Slate on light, sun on dark. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .skip-link:focus-visible {
  outline-color: var(--sun);
}

/* ---------- 3. Utilities -------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 1000;
  padding: var(--s-3) var(--s-5);
  background: var(--ink); color: var(--white);
  font-weight: 500; text-decoration: none;
  transform: translateY(-120%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); outline-color: var(--sun); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--12 { grid-template-columns: minmax(0, 1fr); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: var(--rule-strong); flex: none;
}
.eyebrow--sun::before { background: var(--sun); height: 2px; }
.on-dark .eyebrow { color: var(--text-on-dark-muted); }
.on-dark .eyebrow::before { background: var(--sun); }

.sun-dot {
  display: inline-block;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--sun);
  vertical-align: 0.02em;
  margin-left: 0.1em;
}
.sun-dot--small { --dot: 0.5em; margin-left: 0.15em; }
.sun-bar {
  display: block; width: 3rem; height: 3px; background: var(--sun); margin-bottom: var(--s-5);
}

.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; color: var(--text); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }
.text-center { text-align: center; }
.on-dark { background: var(--ink-2); color: var(--text-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }
.on-dark a:not(.btn):hover { text-decoration-color: var(--sun); }

/* Sections and bands */
.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--paper { background: var(--paper); }
.section--sage { background: var(--sage-pale); }
.section--rule-top { border-top: 1px solid var(--rule); }
.section--rule-bottom { border-bottom: 1px solid var(--rule); }
.section__head {
  display: grid; gap: var(--s-4);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 5fr 7fr; align-items: end; gap: var(--s-8); }
}
.section__head h2 { max-width: 20ch; }
.section__head .lead { max-width: 52ch; }

/* ---------- 4. Buttons ---------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem;
  padding: 0.8em 1.5em;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--ink-2); --btn-border: var(--ink-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .sun-dot { --dot: 0.5em; margin: 0; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--secondary {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink);
}
.btn--secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-border: var(--ink); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: transparent;
  padding-inline: 0.5em;
}
.btn--ghost:hover { --btn-bg: transparent; --btn-border: transparent; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }

.btn--sun {
  --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-border: var(--sun);
}
.btn--sun:hover { --btn-bg: var(--sun-deep); --btn-border: var(--sun-deep); --btn-fg: var(--ink); }

.btn--small { min-height: var(--tap); padding: 0.6em 1.1em; font-size: 0.875rem; }
.btn--block { width: 100%; }

.on-dark .btn { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-border: var(--white); }
.on-dark .btn:hover { --btn-bg: var(--paper); --btn-border: var(--paper); }
.on-dark .btn--secondary { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255,255,255,0.55); }
.on-dark .btn--secondary:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-border: var(--white); }
.on-dark .btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-border: var(--sun); }
.on-dark .btn--sun:hover { --btn-bg: var(--sun-deep); --btn-border: var(--sun-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; }

/* Arrow link (text link with a drawn arrow) */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; font-size: 0.9375rem;
  color: var(--ink); text-decoration: none;
  min-height: var(--tap);
}
.link-arrow::after {
  content: ""; width: 1.25rem; height: 1px; background: currentColor;
  position: relative;
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { width: 2rem; background: var(--sun-deep); }
.link-arrow--back::after { display: none; }
.link-arrow--back::before { content: "\2190"; }

/* ---------- 5. Header / nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: var(--header-h);
}
.site-header__brand { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.site-header__brand img { height: 44px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 480px) {
  .site-header__brand img { height: 36px; }
}

/* Mobile-only actions: tel icon button + Menu toggle */
.site-header__actions { display: none; align-items: center; gap: var(--s-2); flex: none; }
.header-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  background: var(--sun); color: var(--ink);
  border: 1px solid var(--sun); border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header-call:hover { background: var(--sun-deep); border-color: var(--sun-deep); }
.header-call svg { width: 1.25rem; height: 1.25rem; }

.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1rem);
}
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0.5rem 0.75rem;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.35rem;
  height: 2px; background: var(--sun);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__item--cta { margin-left: clamp(0.25rem, 1.5vw, 1rem); }

/* Services dropdown (desktop: hover via CSS, focus/click/Escape via JS .is-open) */
.nav__item--has-sub .nav__link { padding-right: 0.25rem; }
.nav__sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; min-height: var(--tap);
  color: var(--ink);
  border-radius: var(--radius);
}
.nav__sub-toggle svg { transition: transform var(--dur) var(--ease); }
.nav__sub {
  list-style: none; margin: 0;
  position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 14rem;
  padding: var(--s-2) 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--sun);
  box-shadow: 0 18px 40px -20px rgba(20, 24, 30, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
/* keep the hover bridge between link and panel */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.75rem; height: 0.75rem; }
.nav__sub-link {
  display: block; padding: 0.7rem 1.1rem;
  font-size: 0.9375rem; font-weight: 400; color: var(--ink); text-decoration: none;
  min-height: var(--tap);
}
.nav__sub-link:hover, .nav__sub-link:focus-visible { background: var(--paper); }
.nav__sub-link:focus-visible { outline-offset: -2px; }
.nav__sub-link[aria-current="page"] { font-weight: 500; box-shadow: inset 3px 0 0 var(--sun); }

@media (hover: hover) and (min-width: 981px) {
  .nav__item--has-sub:hover .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
  .nav__item--has-sub:hover .nav__sub-toggle svg { transform: rotate(180deg); }
}
.nav__item--has-sub.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
}
.nav__item--has-sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }

/* Mobile toggle */
.nav-toggle {
  display: none; align-items: center; gap: var(--s-3); flex: none;
  min-height: var(--tap); min-width: var(--tap); padding: 0.5rem 0.25rem 0.5rem 0.75rem;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink);
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; flex: none; }
.nav-toggle__bars span { display: block; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .site-header__actions { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(20, 24, 30, 0.35);
    display: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.nav-open .nav { display: block; }
  .nav__list {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-3) var(--gutter) var(--s-6);
  }
  .nav__item { flex-wrap: wrap; border-top: 1px solid var(--rule); }
  .nav__item:first-child { border-top: 0; }
  .nav__link { flex: 1 1 auto; padding: 0.9rem 0; font-size: 1.0625rem; }
  .nav__link::after { left: 0; right: auto; width: 1.5rem; bottom: 0.6rem; }
  .nav__item--has-sub .nav__link { padding-right: 0; }
  /* Services sub-links are always listed inline on mobile: no chevron tap. */
  .nav__sub-toggle { display: none; }
  .nav__sub {
    position: static; flex: 1 1 100%;
    display: block;
    min-width: 0; padding: 0 0 var(--s-4);
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    transition: none;
  }
  .nav__sub::before { display: none; }
  .nav__sub-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; font-size: 1rem; color: var(--text);
  }
  .nav__sub-link::before { content: ""; width: 1rem; height: 1px; background: var(--rule-strong); flex: none; }
  .nav__sub-link:hover, .nav__sub-link:focus-visible { background: none; }
  .nav__sub-link[aria-current="page"] { box-shadow: none; }
  .nav__sub-link[aria-current="page"]::before { background: var(--sun); height: 2px; }
  .nav__item--cta { margin: var(--s-4) 0 0; border-top: 0; }
  .nav__item--cta .btn { width: 100%; min-height: 3rem; }
}

/* ---------- 6. Hero ------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] repeat(12, minmax(0, calc(var(--container) / 12)))
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  align-items: stretch;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.hero__copy {
  grid-column: content-start / span 6;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  padding-right: clamp(1rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__copy h1 { max-width: 13ch; margin-bottom: var(--s-5); }
.hero__copy h1 .sun-dot { --dot: 0.28em; margin-left: 0.18em; vertical-align: 0.06em; }
.hero__copy .lead { max-width: 40ch; margin-bottom: var(--s-6); }
.hero__meta {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-size: var(--fs-tiny); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero__meta li { white-space: nowrap; }
.hero__figure {
  grid-column: 8 / full-end;
  position: relative;
  min-height: 100%;
  margin: 0;
}
.hero__figure picture, .hero__figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 48%;
}
.hero__figure img { min-height: 34rem; }
.hero__figure figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: 0.55rem 0.9rem;
  background: var(--white);
  font-size: var(--fs-tiny); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero__figure figcaption::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sun); }

@media (max-width: 1200px) {
  .hero__copy { grid-column: content-start / span 7; }
  .hero__copy h1 { max-width: 13ch; }
  .hero__figure { grid-column: 9 / full-end; }
}
@media (max-width: 980px) {
  .hero__copy { grid-column: content-start / content-end; padding-right: 0; }
  .hero__figure { grid-column: full-start / full-end; }
  .hero__figure img { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 480px) {
  /* Stack the meta list cleanly: one item per ruled row, no orphan wrap. */
  .hero__meta { display: grid; gap: 0; padding-top: 0; letter-spacing: 0.05em; }
  .hero__meta li { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.6rem; border-bottom: 1px solid var(--rule); }
  .hero__meta li::before { content: ""; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--sun); flex: none; }
}
@media (min-width: 981px) {
  .hero { min-height: min(46rem, calc(100vh - var(--header-h))); }
}

/* Notice (hairline strip, not a banner) */
.notice {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.notice__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  padding-block: var(--s-4);
  font-size: var(--fs-small);
}
.notice__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.5rem; height: 1.5rem; color: var(--ink);
  align-self: flex-start; margin-top: -0.05rem;
}
.notice__icon svg { width: 1.25rem; height: 1.25rem; }
.notice__text { flex: 1 1 12rem; min-width: 0; color: var(--text); }
.notice__text strong { font-weight: 600; color: var(--ink); }
.notice__link { font-weight: 500; white-space: nowrap; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---------- 7. Cards ------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.card {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem) clamp(1.75rem, 3vw, 2.5rem) 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.card + .card { padding-left: clamp(1.25rem, 2.5vw, 2.25rem); }
.card:last-child { border-right: 0; padding-right: 0; }
.card__index {
  font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: 0.08em;
  color: var(--text-muted);
}
.card__icon { width: 3.5rem; height: 3.5rem; color: var(--ink); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-top: var(--s-2); }
.card p { color: var(--text-muted); flex: 1 1 auto; }
.card .link-arrow { margin-top: var(--s-2); }
.card::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--sun);
  transition: width 400ms var(--ease);
}
.card:hover::after, .card:focus-within::after { width: 3rem; }

/* Whole-card link: the h3 link stretches over the card */
.card--link { cursor: pointer; }
.card--link .card__title-link { color: inherit; text-decoration: none; }
.card--link .card__title-link::after { content: ""; position: absolute; inset: 0; }
.card--link .card__title-link:focus-visible { outline: none; }
.card--link:focus-within { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius); }
.card--link:hover .link-arrow::after { width: 2rem; background: var(--sun-deep); }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(2n) { border-right: 0; padding-right: 0; }
  .card:nth-child(2n + 1) { padding-left: 0; }
  .card:nth-child(2n) { padding-left: clamp(1.25rem, 2.5vw, 2.25rem); }
  .card:last-child { padding-left: 0; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .card + .card, .card:nth-child(2n) { border-right: 0; padding-inline: 0; }
}

/* Boxed card (stand-alone, inner pages) */
.card--boxed {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-6);
  background: var(--white);
}

/* ---------- 8. Editorial list (Why us) ------------------------------------ */
.split {
  display: grid; gap: var(--s-7);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
  .split__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.split__aside h2 { max-width: 14ch; }
.split__aside .lead { margin-top: var(--s-5); max-width: 36ch; }

.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.points__item {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-4);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}
.points__num {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--text-muted);
  line-height: var(--lh-snug); padding-top: 0.15em;
  display: flex; align-items: flex-start; gap: 0.35rem;
}
.points__num::after { content: ""; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--sun); margin-top: 0.55em; }
.points__item h3 { margin-bottom: var(--s-2); }
.points__item p { color: var(--text-muted); max-width: 52ch; }

/* ---------- 9. About teaser + profile card -------------------------------- */
.about-teaser { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) {
  .about-teaser { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
}
.about-teaser h2 { max-width: 14ch; }
.about-teaser .lead { margin-top: var(--s-5); max-width: 44ch; }
.about-teaser .btn-row { margin-top: var(--s-6); gap: var(--s-4) var(--s-6); }

.profile {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.profile::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 3rem; height: 2px; background: var(--sun);
}
.profile__head { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; }
.profile__mark {
  width: 4.5rem; height: 4.5rem; border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1;
  position: relative; overflow: hidden;
}
.profile__mark::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 1.1rem; height: 1.1rem;
  background: var(--sun); border-radius: 100% 0 0 0; transform: translate(0.2rem, 0.2rem);
}
.profile__name { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--ink); }
.profile__role { font-size: var(--fs-small); color: var(--text-muted); margin-top: 0.15rem; }
.profile__bio {
  margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule);
  color: var(--text); font-size: var(--fs-body);
}
.profile__link { margin-top: var(--s-4); }

/* ---------- 10. Communities band ----------------------------------------- */
.communities { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) {
  .communities { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
}
.communities__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem);
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.25; color: var(--ink);
}
.communities__list li {
  display: flex; align-items: center; gap: 0.6em;
  padding-block: 0.75em;
  border-bottom: 1px solid rgba(20, 24, 30, 0.14);
}
.communities__list li:nth-child(-n + 2) { border-top: 1px solid rgba(20, 24, 30, 0.14); }
.communities__list li::before {
  content: ""; width: 0.4em; height: 0.4em; border-radius: 50%; background: var(--sun); flex: none;
}
.communities__list li.is-office::before {
  background: var(--slate); box-shadow: 0 0 0 2px var(--sage-pale), 0 0 0 3px var(--sun);
}
.communities__list .tag {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-left: auto; padding-left: 0.5rem;
}
@media (max-width: 560px) {
  .communities__list { grid-template-columns: minmax(0, 1fr); }
  .communities__list li:nth-child(2) { border-top: 0; }
}
.communities__note { margin-top: var(--s-5); color: var(--text-muted); max-width: 48ch; }

/* ---------- 11. CTA band --------------------------------------------------- */
.cta-band { background: var(--ink-2); color: var(--text-on-dark); }
.cta-band__inner {
  display: grid; gap: var(--s-7);
  padding-block: var(--section);
}
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 6vw, 6rem); align-items: end; }
}
.cta-band h2 { color: var(--white); max-width: 16ch; }
.cta-band .lead { color: var(--text-on-dark-muted); max-width: 44ch; margin-top: var(--s-4); }
.cta-band .btn-row { margin-top: var(--s-6); }
.cta-band__note { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--text-on-dark-muted); }
.cta-band__note a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); text-underline-offset: 0.2em; }
.cta-band__note a:hover { text-decoration-color: var(--sun); }
.cta-band__details { margin: 0; border-top: 1px solid var(--rule-on-dark); }
.cta-band__details > div {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-4); align-items: baseline;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule-on-dark);
}
.cta-band__details dt {
  font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-dark-muted);
}
.cta-band__details dd {
  margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; color: var(--white);
}
.cta-band__details dd a { color: var(--white); text-decoration: none; }
.cta-band__details dd a:hover { text-decoration: underline; text-decoration-color: var(--sun); }

/* ---------- 12. Page head, breadcrumb, article layout ------------------- */
.page-head {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.page-head--paper { background: var(--paper); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: var(--s-5); max-width: 52ch; }
.page-head--centre { text-align: center; }
.page-head--centre h1, .page-head--centre .lead { margin-inline: auto; }
.page-head--centre .eyebrow { justify-content: center; }
.page-head--centre .breadcrumb ol { justify-content: center; }

.breadcrumb { margin: 0 0 var(--s-5); font-size: var(--fs-tiny); color: var(--text-muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 1.75rem; }
.breadcrumb li + li::before { content: ""; width: 1px; height: 0.9em; background: var(--rule-strong); transform: rotate(18deg); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; padding-block: 0.25rem; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

.article-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); }
  .article-layout--narrow-aside { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); }
  .aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.article { min-width: 0; }
.aside { display: grid; gap: var(--s-6); min-width: 0; }
.aside-card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}
.aside-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 3rem; height: 2px; background: var(--sun); }
.aside-card__title { font-size: var(--fs-h3); max-width: 16ch; }
.aside-card > p { margin-top: var(--s-3); color: var(--text-muted); }
.aside-card .btn-row { margin-top: var(--s-5); }
.aside-card .btn { width: 100%; }
.aside-card .details { margin-top: var(--s-5); }

/* Details list (label / value pairs) */
.details { margin: 0; border-top: 1px solid var(--rule); }
.details > div {
  display: grid; grid-template-columns: 5rem 1fr; gap: var(--s-3); align-items: baseline;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.details dt { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.details dd { margin: 0; color: var(--ink); }
.details dd a { text-decoration: none; }
.details dd a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.details--stack > div { grid-template-columns: 1fr; gap: var(--s-1); }

/* ---------- 13. Prose (running text) ------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: var(--fs-h3); max-width: 24ch; }
.prose h3 { margin-top: 1.8em; font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose .lead { margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--sun-deep); }
.prose ul ul, .prose ol ol { margin-top: 0.4em; }
.prose dl { border-top: 1px solid var(--rule); }
.prose dl > div { padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.prose dt { font-weight: 600; color: var(--ink); }
.prose dd { margin: 0.25em 0 0; color: var(--text); }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.prose a:not(.btn):hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 600; }
.prose hr { margin: 2em 0; }
.prose .checklist, .prose .callout { margin-top: 1.4em; }
.prose figure { margin-block: 1.4em; }
.disclaimer {
  font-size: var(--fs-small); color: var(--text-muted);
  border-top: 1px solid var(--rule); padding-top: var(--s-4); margin-top: var(--s-7);
}
.prose .disclaimer { margin-top: var(--s-7); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s-3); align-items: start; }
.checklist li::before {
  content: ""; width: 1.125rem; height: 1.125rem; margin-top: 0.2em; justify-self: center;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%2314181E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.prose .checklist li + li { margin-top: 0; }

/* Callout / note */
.callout {
  border: 1px solid var(--rule); border-left: 2px solid var(--ink); border-radius: var(--radius);
  padding: var(--s-5) clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white);
}
.callout--paper { background: var(--paper); }
.callout--sun { border-left-color: var(--sun); }
.callout__title { font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); }
.callout > * + * { margin-top: 0.6em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 14. Forms ---------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field--full { grid-column: 1 / -1; }
}
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label, .field__label {
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em; color: var(--ink);
}
.field .hint, .field__hint { font-size: var(--fs-tiny); color: var(--text-muted); }
.field .required { color: var(--text-muted); font-weight: 400; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2314181E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #7A838C; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"],
.field--invalid input, .field--invalid textarea, .field--invalid select { border-color: var(--error-border); }
.field--invalid label { color: var(--error); }
.field__error { font-size: var(--fs-small); color: var(--error); display: flex; gap: 0.4rem; align-items: baseline; }
.field__error::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--error-border); flex: none; transform: translateY(-0.05em); }
.field__error[hidden] { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-3); }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--ink); }
.field--check label { font-weight: 400; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); align-items: center; margin-top: var(--s-2); }
.form__note { font-size: var(--fs-tiny); color: var(--text-muted); max-width: 52ch; }
.form__status {
  font-size: var(--fs-small); padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule); border-left: 3px solid var(--sun); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.form__status:empty { display: none; }
.form__status--success { border-left-color: var(--success); color: var(--success); }
.form__status--error { border-left-color: var(--error-border); color: var(--error); }
.btn[aria-busy="true"], .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- 15. FAQ accordion --------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 2rem; gap: var(--s-4); align-items: center;
  padding: var(--s-5) 0;
  font-family: var(--font-display); font-size: var(--fs-h4); color: var(--ink);
  min-height: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; justify-self: end;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 0.75rem 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 0.75rem no-repeat;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sun); border-color: var(--sun); }
.faq summary:hover { color: var(--ink-2); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details > :not(summary) { max-width: 62ch; }
.faq details > div { padding-bottom: var(--s-6); color: var(--text); }
.faq details > div > * + * { margin-top: 0.8em; }
.faq details > div a:not(.btn) { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.faq details > div ul, .faq details > div ol { padding-left: 1.4em; }
.faq__group, .faq h2 { margin: var(--s-8) 0 var(--s-4); font-size: var(--fs-h3); }
.faq__group:first-child, .faq h2:first-child { margin-top: 0; }
.faq__group + details { border-top: 1px solid var(--rule); }

/* ---------- 16. Map, related links, 404 ---------------------------------- */
.map-frame {
  aspect-ratio: 4 / 3; width: 100%; max-width: 100%;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
}
@media (min-width: 900px) { .map-frame { aspect-ratio: 16 / 9; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed { aspect-ratio: 4 / 3; width: 100%; border: 1px solid var(--rule); background: var(--paper); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.related { border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.related__title {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--s-2);
}
.related__list { list-style: none; margin: 0; padding: 0; }
.related__list li { border-bottom: 1px solid var(--rule); }
.related__list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: var(--tap); padding-block: 0.5rem;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink); text-decoration: none;
}
.related__list a::after { content: ""; width: 1rem; height: 1px; background: currentColor; flex: none; transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.related__list a:hover::after { width: 1.5rem; background: var(--sun-deep); }
.related__list a:hover { text-decoration: underline; text-decoration-color: var(--sun); }

.not-found { text-align: center; }
.not-found__code {
  font-family: var(--font-display); font-size: var(--fs-display); line-height: 1;
  color: var(--text-muted); letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 0.25em; margin-bottom: var(--s-4);
}
.not-found__code::after { content: ""; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--sun); }
.not-found h1 { margin-inline: auto; }
.not-found .lead { margin: var(--s-5) auto 0; max-width: 44ch; }
.not-found .btn-row { justify-content: center; margin-top: var(--s-6); }
.not-found .related { margin-top: var(--s-8); text-align: left; }

.stat-rule { display: flex; align-items: center; gap: var(--s-4); color: var(--text-muted); font-size: var(--fs-tiny); letter-spacing: 0.1em; text-transform: uppercase; }
.stat-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- 17. Footer ---------------------------------------------------- */
.site-footer {
  background: var(--ink-3); color: var(--text-on-dark);
  border-top: 1px solid var(--rule-on-dark);
  padding-block: clamp(3rem, 6vw, 5rem) var(--s-6);
  font-size: var(--fs-small);
}
.site-footer a:not(.btn) { color: var(--white); text-decoration: none; }
.site-footer a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--sun); }
.site-footer__top {
  display: grid; gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--rule-on-dark);
}
@media (min-width: 40.0625em) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .site-footer__top { grid-template-columns: 1.6fr 1.2fr 1fr; gap: var(--s-8); }
  .site-footer__brand { grid-column: auto; }
}
@media (max-width: 40em) { .footer-col--office, .site-footer__col--office { grid-column: 1 / -1; } }
.site-footer__logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.site-footer__logo img { width: 44px; height: auto; }
.site-footer__wordmark {
  font-family: var(--font-body); font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 1.0625rem; color: var(--white);
}
.site-footer__tagline {
  margin-top: var(--s-5); text-wrap: balance;
  font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; color: var(--white);
  max-width: 18ch;
}
.site-footer__heading {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-on-dark-muted);
  margin-bottom: var(--s-4);
}
.site-footer__address { line-height: 1.7; color: var(--white); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer__list--nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
@media (min-width: 1000px) { .site-footer__list--nav { grid-template-columns: 1fr; } }
.site-footer__list a, .site-footer__list span { display: inline-block; padding-block: 0.15rem; }
.site-footer__list--contact { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule-on-dark); }
.site-footer__label {
  display: inline-block; width: 3.25rem; color: var(--text-on-dark-muted); font-size: var(--fs-tiny); letter-spacing: 0.08em; text-transform: uppercase;
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-5);
  padding-top: var(--s-5);
  color: var(--text-on-dark-muted);
}
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-5); }
.site-footer__legal a:not(.btn) { color: var(--text-on-dark-muted); }
.site-footer__legal a:not(.btn):hover { color: var(--white); }

/* ---------- 18. Motion / preferences ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
@media (forced-colors: active) {
  .btn, .header-call, .nav__sub, .card--boxed, .aside-card, .profile, .callout, .field input, .field select, .field textarea { border: 1px solid CanvasText; }
  .sun-dot, .sun-bar, .eyebrow::before, .checklist li::before { forced-color-adjust: none; }
}

/* ---------- 19. Print ------------------------------------------------------ */
@media print {
  :root { --section: 2rem; --section-tight: 1.5rem; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .nav-toggle, .skip-link, .hero__figure, .cta-band .btn-row, .btn, .notice, .site-footer__list--nav, .site-footer__legal, .map-frame, .aside { display: none !important; }
  .site-footer, .cta-band, .on-dark { background: none !important; color: #000 !important; border-top: 1px solid #000; }
  .site-footer a, .cta-band a, .on-dark a, .site-footer *, .cta-band * { color: #000 !important; }
  .hero { display: block; }
  .article-layout { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: none; }
  .faq details { break-inside: avoid; }
  .faq details > div { display: block !important; }
  h1, h2, h3 { break-after: avoid; }
}


/* ===== page: 404 ===== */
/* 404 — keep the page to one screen; the page head carries the h1, this section only the links */
.page-404 .not-found .btn-row { margin-top: 0; }
.page-404 .not-found__phone {
  margin: var(--s-5) auto 0; max-width: 44ch;
  font-size: var(--fs-small); color: var(--text-muted);
}
.page-404 .not-found__phone a {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px;
}
.page-404 .not-found__phone a:hover { text-decoration-color: var(--ink); }
.page-404 .not-found .related { margin-top: var(--s-7); max-width: 28rem; margin-inline: auto; }
.page-404 .page-head h1 .sun-dot { --dot: 0.28em; margin-left: 0.18em; vertical-align: 0.06em; }


/* ===== page: conner-wear ===== */
/* Conner Wear profile — initials plate beside the bio, practice list */
.page-conner-wear .lawyer-intro {
  display: grid; gap: var(--s-6); align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 640px) {
  .page-conner-wear .lawyer-intro { grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); }
}
.page-conner-wear .lawyer-intro__figure { display: grid; gap: var(--s-3); justify-items: start; }
.page-conner-wear .lawyer-plate {
  width: clamp(8.5rem, 26vw, 12rem); aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(3.25rem, 10vw, 4.75rem);
  letter-spacing: -0.03em; line-height: 1;
  position: relative; overflow: hidden;
}
.page-conner-wear .lawyer-plate::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3rem; height: 2px; background: var(--sun);
}
.page-conner-wear .lawyer-plate::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 2.75rem; height: 2.75rem;
  background: var(--sun); border-radius: 100% 0 0 0; transform: translate(0.5rem, 0.5rem);
}
.page-conner-wear .lawyer-intro__caption {
  font-size: var(--fs-tiny); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  line-height: 1.5;
}
.page-conner-wear .lawyer-intro__bio > * + * { margin-top: 1.1em; }
.page-conner-wear .lawyer-intro__bio .lead { margin-bottom: 0; }

.page-conner-wear .practice-list dt a { text-decoration: none; }
.page-conner-wear .practice-list dt a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.page-conner-wear .practice-list dd { color: var(--text-muted); max-width: 60ch; }

@media (forced-colors: active) {
  .page-conner-wear .lawyer-plate { border: 1px solid CanvasText; }
}


/* ===== page: contact ===== */
/* Contact page — details + map on the left, message form on the right.
   Scoped under .page-contact (body class set by build.js). */
/* DOM order is info → panel → more, so on phones the form comes right after the
   contact details. On wide screens the panel takes the right column and spans
   both left-column rows, sticking as the visitor scrolls (same as .aside). */
.page-contact .contact-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) {
  .page-contact .contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto;
    column-gap: clamp(3rem, 6vw, 5.5rem);
    row-gap: var(--s-6);
  }
  .page-contact .contact-info { grid-column: 1; grid-row: 1; }
  .page-contact .contact-more { grid-column: 1; grid-row: 2; }
}

/* Left column */
.page-contact .contact-info { display: grid; gap: var(--s-6); min-width: 0; }
.page-contact .contact-info__title { font-size: var(--fs-h3); max-width: 20ch; }
.page-contact .contact-more { display: grid; gap: var(--s-6); min-width: 0; }
.page-contact .contact-info__note { margin-top: var(--s-3); color: var(--text-muted); max-width: 44ch; }
.page-contact .contact-info .details dd address { display: inline; }
.page-contact .contact-map { display: grid; gap: var(--s-3); justify-items: start; }
.page-contact .contact-map .map-frame { justify-self: stretch; }
.page-contact .contact-map__link { min-height: var(--tap); display: inline-flex; align-items: center; }

/* Right column: the message panel (same idiom as .aside-card) */
.page-contact .contact-panel {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  min-width: 0;
}
.page-contact .contact-panel::before { content: ""; position: absolute; left: -1px; top: -1px; width: 3rem; height: 2px; background: var(--sun); }
.page-contact .contact-panel__title { font-size: var(--fs-h3); max-width: 18ch; }
.page-contact .contact-panel__note { margin-top: var(--s-3); color: var(--text-muted); max-width: 44ch; }
.page-contact .contact-panel .form { margin-top: var(--s-6); }
.page-contact .contact-panel .form__note { max-width: 40ch; }
.page-contact .contact-panel .form__status a { font-weight: 500; }

/* Desktop placement (after the base rule so sticky wins over position: relative) */
@media (min-width: 900px) {
  .page-contact .contact-panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

@media print {
  .page-contact .contact-panel { display: none; }
}


/* ===== page: faq ===== */
/* FAQ page — "jump to" group list above the accordion. Scoped to .page-faq. */
.page-faq .faq-jump {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-5);
}
.page-faq .faq-jump__label {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  margin: 0;
}
.page-faq .faq-jump ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5);
}
.page-faq .faq-jump li { margin: 0; }
.page-faq .faq-jump a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: var(--fs-small); font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}
.page-faq .faq-jump a:hover { text-decoration-color: var(--ink); }
/* Group headings are anchor targets: the root scroll-padding-top already clears the sticky header. */
.page-faq .faq__group { scroll-margin-top: var(--s-4); }


/* ===== page: first-meeting ===== */
/* first-meeting.html — arrow links to the service pages sit inside .prose, which
   otherwise underlines every link; keep the drawn-arrow treatment instead. */
.page-first-meeting .prose a.link-arrow { text-decoration: none; }
.page-first-meeting .prose a.link-arrow:hover,
.page-first-meeting .prose a.link-arrow:focus-visible { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }


/* ===== page: real-estate ===== */
/* Real Estate page — numbered conveyancing steps (scoped to .page-real-estate) */
.page-real-estate .prose .steps {
  list-style: none; padding: 0; margin-top: 1.4em;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}
.page-real-estate .prose .steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--s-3) var(--s-4);
  align-items: start;
  padding-block: var(--s-4);
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.page-real-estate .prose .steps > li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1;
  letter-spacing: -0.02em; color: var(--text-muted);
  padding-top: 0.1em;
}
.page-real-estate .prose .steps h3 {
  margin: 0; font-size: var(--fs-body); line-height: var(--lh-snug);
}
.page-real-estate .prose .steps p {
  margin-top: 0; color: var(--text);
}


/* ===== page: services ===== */
/* Services overview: sub-topic lists inside the practice-area cards, and the
   numbered "how an engagement works" steps (.points) living inside .prose. */
.page-services .card p { flex: 0 0 auto; }
.page-services .card__list {
  list-style: none; margin: 0; padding: var(--s-3) 0 0;
  border-top: 1px solid var(--rule);
  display: grid; gap: var(--s-2);
  flex: 1 1 auto;
  font-size: var(--fs-small); color: var(--text);
}
.page-services .card__list li { display: flex; align-items: baseline; gap: 0.6rem; }
.page-services .card__list li::before {
  content: ""; width: 0.35rem; height: 0.35rem; border-radius: 50%;
  background: var(--sun); flex: none; transform: translateY(-0.1em);
}

/* Cards and the article read as one flow: close the double section gap. */
.page-services .section--tight + .section { padding-top: var(--section-tight); }

/* Steps list inside running text: neutralise the generic .prose list rules. */
.page-services .prose .points { padding-left: 0; margin-top: 1.4em; }
.page-services .prose .points li + li { margin-top: 0; }
.page-services .prose .points__item h3 { margin-top: 0; }
.page-services .prose .points__item p { margin-top: 0; }
.page-services .prose .points + p { margin-top: 1.4em; }

/* Callout with a button row */
.page-services .callout .btn-row { margin-top: var(--s-4); }


/* ===== page: terms ===== */
/* Terms of use — wider h2 measure for long clause titles.
   Clause headings are anchor targets for the on-page contents nav: the root scroll-padding-top in site.css already clears the sticky header, so only a small breathing margin is added here. */
.page-terms .prose h2 { max-width: 34ch; scroll-margin-top: var(--s-4); }

/* The terms aside (contact card + long on-page contents) is taller than most desktop viewports,
   which would hide its last items when sticky. Let it scroll with the page instead. */
@media (min-width: 900px) { .page-terms .aside { position: static; } }
