/* Nangamso Mentjies Inc. — site styles
   Tokens first; components use tokens only. */

:root {
  /* Palette from the firm's business card and NM logo: black, white and signal red */
  --ink: #111111;
  --ink-2: #1b1b1b;
  --ink-3: #2b2b2b;
  --red: #d90a20;          /* logo red: buttons and fills, white text on top */
  --brass: #ff4757;        /* bright red accent, readable on black */
  --brass-deep: #c00a1c;   /* deeper red, readable on white */
  --paper: #ffffff;
  --mist: #f4f4f4;
  --line: #e3e3e3;
  --text: #1a1a1a;
  --muted: #555555;
  --on-ink: #ffffff;
  --on-ink-muted: #c8c8c8;
  --error: #b42318;
  --success: #1f6f43;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  --wrap: 72rem;
  --measure: 38rem;
  --radius: 4px;
  --header-h: 4.5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.01em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.25; }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

a { color: var(--brass-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute; left: var(--space-2); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-2); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: color 320ms ease, border-color 320ms ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* Hover: colour rises from the bottom of the button and the label changes colour */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: -1;
  transition: height 320ms cubic-bezier(0.3, 0.7, 0.2, 1);
}
.btn:hover::after, .btn:focus-visible::after { height: 100%; }
.btn-primary::after { background: var(--on-ink); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--ink); }
.btn-dark::after { background: var(--red); }
.btn-dark:hover, .btn-dark:focus-visible { color: #fff; }
.btn-ghost::after { background: var(--red); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; border-color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid rgba(227, 23, 43, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--on-ink); text-decoration: none; line-height: 1.1; }
.brand-logo { width: 2.75rem; height: 2.75rem; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.brand-sub { font-size: 0.75rem; color: var(--brass); letter-spacing: 0.08em; margin-top: 0.2rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 0.9rem;
  background: transparent; color: var(--on-ink); border: 1px solid rgba(243, 245, 248, 0.35); border-radius: var(--radius);
  font: 600 0.9375rem var(--sans); cursor: pointer;
}

.primary-nav { display: none; }
.primary-nav.is-open {
  display: block; position: absolute; inset: var(--header-h) 0 auto 0;
  background: var(--ink); border-top: 1px solid rgba(227, 23, 43, 0.35);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding: var(--space-2) 1rem var(--space-4);
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li + li { margin-top: 0; }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 3rem; padding: 0.5rem 0;
  color: var(--on-ink); text-decoration: none; font: 500 1.0625rem var(--sans);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-link, .submenu a, .header-phone .num, .site-footer a, .aside-links a, .practice-row .more, .prose a, .split a:not(.btn) { transition: color 400ms ease; }
.nav-link[aria-current="page"] { color: var(--brass); }
.nav-link:hover { color: var(--brass); }
.submenu { display: none; list-style: none; margin: 0 0 var(--space-2); padding: 0 0 0 var(--space-2); border-left: 1px solid rgba(227, 23, 43, 0.5); }
.submenu.is-open { display: block; }
.submenu a { display: block; padding: 0.55rem 0; color: var(--on-ink-muted); text-decoration: none; }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--on-ink); }
.nav-cta { margin-top: var(--space-3); display: grid; gap: var(--space-1); }
.nav-caret { transition: transform 160ms ease; }
.has-sub [aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.header-phone { display: none; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.is-open { display: block; position: static; padding: 0; border: 0; max-height: none; overflow: visible; background: none; }
  .nav-list { display: flex; align-items: center; gap: var(--space-3); }
  .nav-link { width: auto; font-size: 0.975rem; gap: 0.35rem; }
  .has-sub { position: relative; }
  .submenu {
    display: none; position: absolute; top: 100%; left: -1rem; min-width: 16rem;
    margin: 0; padding: var(--space-1) 0; border: 1px solid rgba(227, 23, 43, 0.35); border-radius: var(--radius);
    background: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  .submenu a { padding: 0.6rem 1rem; }
  .submenu.is-open { display: block; }
  .nav-cta { display: none; }
  .header-phone { display: flex; align-items: center; gap: var(--space-2); }
  .header-phone .num { color: var(--on-ink); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; }
  .header-phone .btn { min-height: 2.75rem; padding: 0.6rem 1.1rem; }
}

/* ---------- Home hero ---------- */
/* Lamp-light glow, as in the photography */
.hero, .page-hero {
  background:
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(200, 16, 36, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(227, 23, 43, 0.14), transparent 70%),
    #0a0a0a;
  color: var(--on-ink);
}
.hero { padding: var(--space-5) 0 var(--space-6); }
.hero-grid { display: grid; gap: var(--space-5); align-items: center; }
/* Display type: wide-tracked engraved capitals with a gold italic line beneath */
.hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 5.2vw, 5.75rem); font-weight: 400; line-height: 1.04;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--space-4);
}
.hero h1 .line2 {
  display: block; font-style: italic; font-weight: 400; color: var(--brass);
  text-transform: none; letter-spacing: 0.01em; font-size: 0.42em; margin-top: 0.5em;
}
.hero-kicker {
  display: flex; align-items: center; gap: 1rem; margin-bottom: var(--space-4);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-ink-muted);
}
.hero-kicker::before { content: ""; width: 2.5rem; height: 1px; background: var(--brass); }
.hero-lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); color: #d6d6d6; }

/* Animated smoke canvas behind dark headers (injected by main.js) */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1200ms ease; }
.smoke.is-ready { opacity: 1; }

/* Framed photograph with offset gilt border */
.frame { position: relative; margin: 0 10px 10px 0; }
.frame::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 1px solid var(--brass); pointer-events: none; }
.frame img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-2); }
@media (min-width: 62rem) {
  .frame { margin: 0 18px 18px 0; }
  .frame::before { inset: 18px -18px -18px 18px; }
}

/* Situations band */
.situations-band { background: var(--ink-2); color: var(--on-ink); padding: var(--space-6) 0; border-top: 1px solid rgba(227, 23, 43, 0.25); }
.situations-grid { display: grid; gap: var(--space-4); }
.situations-band h2 { font-size: var(--step-4); color: var(--on-ink); margin-bottom: var(--space-2); }
.situations-band .intro { color: var(--on-ink-muted); }
@media (min-width: 62rem) { .situations-grid { grid-template-columns: 4fr 8fr; gap: var(--space-6); } }
.hero-lede { color: var(--on-ink-muted); font-size: var(--step-1); line-height: 1.5; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero-actions .btn-ghost { color: var(--on-ink); }
.hero-note { margin-top: var(--space-3); font-size: var(--step--1); color: var(--on-ink-muted); }
.hero-note a { color: var(--on-ink); font-weight: 600; }

.situation-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(227, 23, 43, 0.45); }
.situation-list li { margin: 0; border-bottom: 1px solid rgba(227, 23, 43, 0.45); }
.situation {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2);
  padding: 1.1rem 0; color: var(--on-ink); text-decoration: none;
}
.situation-text { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25; }
.situation-area { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: var(--step--1); color: var(--on-ink-muted); }
.situation .icon { width: 1.5rem; height: 1.5rem; color: var(--brass); transition: transform 180ms ease; }
.situation:hover .situation-text { color: #fff; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 0.2em; }
.situation:hover .icon { transform: translateX(4px); }

@media (min-width: 62rem) {
  .hero { padding: var(--space-6) 0 var(--space-7); }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--space-6); }
}

/* Phone layout: calls to action within thumb reach, photography as a short banner
   so "What has happened?" is reached in one scroll */
@media (max-width: 47.99rem) {
  .hero { padding: var(--space-4) 0 var(--space-5); }
  .hero-grid { gap: var(--space-4); }
  .hero-kicker { margin-bottom: var(--space-3); }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; min-height: 3.25rem; }
  .hero-photo { order: -1; margin-bottom: 4px; }
  .hero .hero-photo img { aspect-ratio: 16 / 9; object-position: 50% 42%; }
  .situations-band { padding: var(--space-5) 0; }
  .situation { padding: 1rem 0; min-height: 3.5rem; }
}

/* Headline words rise in one after another (words are wrapped by main.js) */
@media (prefers-reduced-motion: no-preference) {
  .split-words .word {
    display: inline-block; opacity: 0; transform: translateY(0.45em);
    animation: word-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: calc(150ms + var(--i) * 110ms);
  }
}
@keyframes word-rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 2.5rem + 6vw, 8.5rem) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); max-width: 44rem; }
/* Gilt hairline above section titles */
.section-head h2::before, .situations-band h2::before, .split-media h2::before, .cta-band h2::before {
  content: ""; display: block; width: 3rem; height: 1px; background: var(--brass); margin-bottom: 1.5rem;
}
.split-media { align-items: center; }
.split-media .facts { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
@media (min-width: 62rem) { .split-media { grid-template-columns: 5fr 7fr; } }
.hero-photo img { aspect-ratio: 1 / 1; }
@media (min-width: 62rem) { .hero-photo img { aspect-ratio: 4 / 5; } }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section-ink .section-head p { color: var(--on-ink-muted); }

/* Steps — a genuine sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
.steps li { margin: 0; counter-increment: step; padding-top: var(--space-3); border-top: 1px solid var(--brass); }
.steps li::before { content: counter(step, upper-roman); display: block; font-family: var(--serif); font-style: italic; font-size: var(--step-4); color: var(--brass-deep); line-height: 1; margin-bottom: var(--space-3); }
.steps h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Practice index */
.practice-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.practice-index li { margin: 0; border-top: 1px solid var(--line); }
.practice-index li:last-child { border-bottom: 1px solid var(--line); }
.practice-row { display: grid; gap: 0.5rem var(--space-4); padding: var(--space-3) 0; text-decoration: none; color: var(--text); }
.practice-row h3 { margin: 0; font-size: var(--step-3); color: var(--ink); }
.practice-row p { margin: 0; color: var(--muted); }
.practice-row .more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--brass-deep); }
.practice-row:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
@media (min-width: 62rem) {
  .practice-row { grid-template-columns: 22rem 1fr auto; align-items: baseline; padding: var(--space-4) 0; }
}

/* Two column text block */
.split { display: grid; gap: var(--space-5); }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.facts li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; }
.facts .icon { color: var(--brass-deep); margin-top: 0.2rem; }
.section-ink .facts .icon { color: var(--brass); }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--muted); }
.section-ink .facts span { color: var(--on-ink-muted); }

/* Team */
.team { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; gap: var(--space-2); }
.portrait {
  aspect-ratio: 4 / 5; background: var(--ink-2); color: var(--brass);
  display: grid; place-items: center; font-family: var(--serif); font-size: 3.5rem; border-radius: var(--radius);
}
.person h3 { margin: 0; font-size: var(--step-2); }
.person .role { color: var(--brass-deep); font-weight: 600; margin: 0; }
.person p { color: var(--muted); margin: 0; }

/* Director profile */
.director { display: grid; gap: var(--space-4); align-items: start; }
.director .portrait { max-width: 20rem; width: 100%; font-size: 4rem; letter-spacing: 0.08em; }
.director + .director { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.director-photo { max-width: 20rem; width: calc(100% - 10px); }
.director-photo img { object-position: 50% 12%; }
.director h3 { font-size: var(--step-4); margin-bottom: 0.25rem; }
.director .role { color: var(--brass-deep); font-weight: 600; margin-bottom: var(--space-3); }
.director-body > p:not(.role) { color: var(--text); }
.credentials { margin: var(--space-4) 0 0; border-top: 1px solid var(--brass); max-width: var(--measure); }
.credentials > div { display: grid; gap: 0.25rem; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.credentials dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-deep); }
.credentials dd { margin: 0; }
@media (min-width: 48rem) { .credentials > div { grid-template-columns: 9rem 1fr; gap: var(--space-3); } }
@media (min-width: 62rem) { .director { grid-template-columns: 20rem 1fr; gap: var(--space-6); } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: 1.15rem 0; font-weight: 600; font-size: var(--step-0); min-height: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brass-deep); transition: transform 180ms ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--space-3); color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: radial-gradient(ellipse 60% 90% at 15% 0%, rgba(200, 16, 36, 0.38), transparent 70%), var(--ink-2);
  border-top: 1px solid rgba(227, 23, 43, 0.3);
  color: var(--on-ink); padding: clamp(4rem, 2.5rem + 5vw, 7rem) 0;
}
.cta-band p { color: #d6d6d6; }
.cta-grid { display: grid; gap: var(--space-4); align-items: center; }
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { color: var(--on-ink-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cta-actions .btn-ghost { color: var(--on-ink); }
@media (min-width: 62rem) { .cta-grid { grid-template-columns: 1fr auto; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; border-bottom: 1px solid rgba(227, 23, 43, 0.35); }
.page-hero-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 62rem) { .page-hero-grid { grid-template-columns: 7fr 4fr; gap: var(--space-6); } }
.page-hero .frame img { aspect-ratio: 3 / 2; }
@media (min-width: 62rem) { .page-hero .frame img { aspect-ratio: 4 / 5; } }
.breadcrumb { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--step--1); color: var(--on-ink-muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--brass); }
.breadcrumb a { color: var(--on-ink-muted); }
.page-hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); font-weight: 400; color: var(--on-ink); line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.page-hero .lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-ink-muted); max-width: 38rem; }
.page-hero .hero-actions .btn-ghost { color: var(--on-ink); }

.layout { display: grid; gap: var(--space-5); padding-block: var(--space-5) var(--space-6); }
@media (min-width: 62rem) { .layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-6); } }

.prose h2 { font-size: var(--step-3); color: var(--ink); margin-top: var(--space-5); }
.prose h2:first-child { margin-top: 0; }
.prose > p, .prose > ul { max-width: var(--measure); }
.prose ul li::marker { color: var(--brass-deep); }

.checklist { list-style: none; padding: 0; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.checklist .icon { color: var(--brass-deep); margin-top: 0.2rem; }

.process { list-style: none; margin: 0 0 var(--space-2); padding: 0; counter-reset: p; max-width: var(--measure); }
.process li { counter-increment: p; position: relative; padding: 0 0 var(--space-3) 3rem; margin: 0; }
.process li::before {
  content: counter(p); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1.5px solid var(--brass-deep); border-radius: 50%;
  font: 600 0.875rem var(--sans); color: var(--brass-deep);
}
.process li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 0.75px); top: 2.25rem; bottom: 0.25rem; width: 1.5px; background: var(--line); }
.process strong { display: block; color: var(--ink); }
.process span { color: var(--muted); }

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-2);
  background: #fdf0f1; border-left: 4px solid var(--brass); padding: var(--space-3); border-radius: var(--radius);
  margin: var(--space-3) 0; max-width: var(--measure);
}
.notice .icon { color: var(--brass-deep); margin-top: 0.15rem; }
.notice strong { display: block; color: var(--ink); margin-bottom: 0.25rem; }
.notice p { margin: 0; color: var(--text); }

/* Deadline checker */
.checker {
  display: grid; gap: var(--space-3); max-width: var(--measure); margin: var(--space-4) 0 var(--space-5);
  padding: var(--space-4); color: var(--on-ink); border: 1px solid rgba(227, 23, 43, 0.4);
  background: radial-gradient(ellipse 80% 70% at 0% 100%, rgba(200, 16, 36, 0.3), transparent 70%), var(--ink);
}
.prose .checker h2 { color: var(--on-ink); margin: 0; font-size: var(--step-3); }
.checker p { margin: 0; color: var(--on-ink-muted); }
.checker .field label, .checker legend { color: var(--on-ink); font-weight: 600; font-size: 0.975rem; }
.checker input[type=date] { max-width: 16rem; color-scheme: light; }
.checker .error-msg { color: #ffb4a8; }
.checker-options { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.checker-options legend { margin-bottom: 0.5rem; padding: 0; }
.checker-options label { display: flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; cursor: pointer; color: var(--on-ink-muted); }
.checker-options input { width: 1.2rem; height: 1.2rem; accent-color: var(--brass); margin: 0; }
.checker .btn { justify-self: start; }
.checker-minor { display: grid; gap: var(--space-2); }
.checker-toggle { display: flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; cursor: pointer; color: var(--on-ink); font-weight: 600; font-size: 0.975rem; }
.checker-toggle input { width: 1.2rem; height: 1.2rem; accent-color: var(--brass); margin: 0; }
.checker input[type=date] + .error-msg { color: #ffb4a8; }
.checker [hidden] { display: none; }
.checker-result { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid rgba(227, 23, 43, 0.35); outline: none; }
.checker-result[hidden] { display: none; }
.checker-row { display: grid; gap: 0.15rem; }
.checker-label { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); font-weight: 600; }
.checker-date { font-family: var(--serif); font-size: var(--step-3); color: var(--brass); line-height: 1.15; }
.checker-left { font-weight: 600; color: var(--on-ink); }
.checker-row.is-soon .checker-left { color: #f3c77a; }
.checker-row.is-past .checker-date { text-decoration: line-through; text-decoration-thickness: 1px; color: #9a9a9a; }
.checker-row.is-past .checker-left { color: #ffb4a8; }
.checker-note { font-size: var(--step--1); color: var(--on-ink-muted); }
.checker .checker-caution { color: var(--on-ink); font-size: 0.95rem; }
.checker-caution a { color: var(--brass); font-weight: 600; }

/* Privacy notice and PAIA manual */
.legal { padding-block: var(--space-5) var(--space-6); }
.legal .prose { max-width: 46rem; }
.legal .prose h2 { font-size: var(--step-3); }
.legal-updated { font-size: var(--step--1); color: var(--muted); }
.legal .credentials { margin-bottom: var(--space-3); }

.aside { display: grid; gap: var(--space-3); align-content: start; }
@media (min-width: 62rem) { .aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.aside-card.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.aside-card h2 { font-size: var(--step-2); margin-bottom: var(--space-1); }
.aside-card p { font-size: 0.975rem; }
.aside-card.dark p { color: var(--on-ink-muted); }
.aside-card .btn { width: 100%; margin-top: var(--space-1); }
.aside-card .btn-ghost { color: var(--on-ink); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { margin: 0; border-top: 1px solid var(--line); }
.aside-links a { display: flex; justify-content: space-between; align-items: center; min-height: 2.9rem; color: var(--text); text-decoration: none; }
.aside-links a:hover { color: var(--brass-deep); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-5); padding-block: var(--space-5) var(--space-6); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: var(--space-6); } }

.form { display: grid; gap: var(--space-3); }
.form-row { display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.975rem; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  font: 400 1rem/1.4 var(--sans); color: var(--text);
  background: #fff; border: 1.5px solid #767676; border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.error-msg { color: var(--error); font-size: var(--step--1); font-weight: 500; min-height: 0; }
.error-msg:empty { display: none; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; color: var(--muted); }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--ink); }
.form-status { padding: var(--space-2) var(--space-3); border-radius: var(--radius); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { background: #e8f3ec; color: var(--success); }
.form-status.err { background: #fbeceb; color: var(--error); }

.details-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.details-list li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); }
.details-list .icon { color: var(--brass-deep); margin-top: 0.2rem; }
.details-list strong { display: block; }
.details-list a { color: var(--text); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.975rem; margin-bottom: var(--space-4); }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a0a; color: var(--on-ink-muted); padding: var(--space-6) 0 calc(var(--space-4) + 4.5rem); font-size: 0.95rem; }
@media (min-width: 62rem) { .site-footer { padding-bottom: var(--space-4); } }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--on-ink); margin-bottom: var(--space-2); }
.site-footer .brand-name { color: var(--on-ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; }
.footer-legal { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(185, 196, 210, 0.2); display: grid; gap: var(--space-1); font-size: var(--step--1); }
.footer-legal p { max-width: none; margin: 0; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); border-top: 1px solid rgba(227, 23, 43, 0.45);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  min-height: 3.75rem; color: var(--on-ink); text-decoration: none; font-size: 0.8125rem; font-weight: 600;
}
.action-bar a + a { border-left: 1px solid rgba(243, 245, 248, 0.12); }
.action-bar .icon { color: var(--brass); }
@media (min-width: 62rem) { .action-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .action-bar, .cta-band, .aside, .site-footer { display: none; }
}

/* Footer logo */
.footer-logo { width: 3.5rem; height: 3.5rem; margin-bottom: var(--space-2); }
