@charset "utf-8";

/* ============================================================
   DIRECTION CONTRACT — Django Health Pty Ltd

   THESIS: Health services are a pathway, not a product grid. The
   site draws the route a person or programme takes through care.
   It refuses the soft pastel wellness page and the corporate-blue
   consultancy template.

   OWN-WORLD: Clinical wayfinding. Deep teal-ink grounds, cool
   paper, hairline rules on a 64px signage grid, ISO safe-condition
   green as the only signal colour. Sharp shape language: 2-6px
   radii, square icon tiles, tight negative tracking, no pills.

   STORY: A Bendigo employer or care provider sees a coordinator
   that maps, staffs and reports a health programme, then emails.

   FIRST VIEWPORT: Dark full-bleed hero, angled lower edge. Copy
   left with the primary action; a drawn four-node care-pathway
   panel right.

   FORM: Route diagram as the recurring device — hero panel,
   numbered pathway band, station-numbered legal contents.
   ============================================================ */

:root {
  /* --- brand ------------------------------------------------ */
  --primary: #0d3b3e;
  --primary-deep: #08292c;
  --primary-mid: #14545a;
  --primary-tint: #dfeceb;
  --accent: #00b37a;
  --accent-ink: #07715a;
  --accent-soft: #d7f3e8;

  /* --- neutral ramp (cool, 5 steps) ------------------------- */
  --surface: #ffffff;
  --paper: #f4f6f5;
  --surface-2: #eaefed;
  --border: #d8e0dd;
  --border-strong: #b6c5c1;

  /* --- text ------------------------------------------------- */
  --ink: #0f1c1f;
  --text-dark: #21302e;
  --text-light: #5b6b68;
  --on-dark: #eef4f2;
  --on-dark-muted: #a9bfbb;

  /* --- spacing scale --------------------------------------- */
  --s1: .5rem;
  --s2: .75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* --- shape ------------------------------------------------ */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 6px;
  --hairline: 1px;

  /* --- elevation -------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(15, 28, 31, .05);
  --shadow: 0 1px 2px rgba(15, 28, 31, .04), 0 8px 24px rgba(15, 28, 31, .07);
  --shadow-lg: 0 2px 4px rgba(15, 28, 31, .05), 0 18px 40px rgba(15, 28, 31, .13);

  /* --- layout ----------------------------------------------- */
  --container: 1140px;
  --gutter: 1.375rem;
  --measure: 66ch;
  --nav-h: 4.25rem;

  /* --- type ------------------------------------------------- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .78rem;

  /* --- surface treatments ----------------------------------- */
  --grid-dark: rgba(255, 255, 255, .055);
  --grid-light: rgba(13, 59, 62, .05);
  --rule-dark: rgba(255, 255, 255, .16);
  --panel-dark: rgba(8, 41, 44, .55);
  --glow: radial-gradient(58% 78% at 80% 14%, rgba(0, 179, 122, .26), rgba(0, 179, 122, 0) 68%);
  --mask-fade: linear-gradient(to bottom, rgba(0, 0, 0, .95), rgba(0, 0, 0, 0) 88%);
  --scrim: rgba(244, 246, 245, .84);
  --ground-dark: linear-gradient(158deg, var(--primary-deep) 0%, var(--primary) 52%, var(--primary-mid) 100%);

  /* --- motion ----------------------------------------------- */
  --dur: 170ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ============================================================
   BASE
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.14;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent-ink); }

a:hover { color: var(--primary); }

ul, ol { margin: 0; padding: 0; }

svg { max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -6rem;
  z-index: 100;
  padding: var(--s2) var(--s3);
  background: var(--accent-ink);
  color: var(--surface);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: var(--s2); color: var(--surface); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ============================================================
   TYPE HELPERS
   ============================================================ */

.eyebrow {
  display: block;
  margin: 0 0 var(--s2);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow-light { color: var(--accent); }

.section-head { max-width: 46rem; margin-bottom: var(--s5); }

.section-title { font-size: var(--fs-h2); }

.section-intro {
  margin-top: var(--s3);
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-light);
}

.lead {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--text-light);
}

.body-copy {
  max-width: var(--measure);
  display: grid;
  gap: var(--s3);
}

.body-copy p { color: var(--text-light); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: .8rem 1.6rem;
  border: var(--hairline) solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--surface);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-sm { padding: .55rem 1.05rem; }

.btn-arrow {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn-arrow { transform: translateX(3px); }

/* buttons sitting on a dark ground */
.hero .btn-outline,
.page-hero .btn-outline,
.band-dark .btn-outline {
  border-color: var(--rule-dark);
  color: var(--on-dark);
  background: transparent;
}

.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.band-dark .btn-outline:hover {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.hero .btn-primary,
.page-hero .btn-primary,
.band-dark .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-deep);
}

.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.band-dark .btn-primary:hover {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--primary-deep);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

.actions-tight { margin-top: var(--s4); }

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  position: relative;
  background: var(--scrim);
  border-bottom: var(--hairline) solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--nav-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--surface);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .02em;
}

.wordmark-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.wordmark-sub {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.5rem;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dark);
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover { color: var(--primary); }

.nav-link:hover::after { transform: scaleX(1); }

.nav-link.is-active { color: var(--primary); }

.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { flex: none; }

/* ============================================================
   DARK GROUNDS (hero, page hero, dark bands)
   ============================================================ */

.hero,
.page-hero,
.band-dark {
  position: relative;
  isolation: isolate;
  background: var(--ground-dark);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before,
.page-hero::before,
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-dark) var(--hairline), transparent var(--hairline)),
    linear-gradient(90deg, var(--grid-dark) var(--hairline), transparent var(--hairline));
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: var(--mask-fade);
  mask-image: var(--mask-fade);
}

.hero::after,
.page-hero::after,
.band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glow);
}

.hero h1,
.hero h2,
.hero h3,
.page-hero h1,
.page-hero h2,
.band-dark h2,
.band-dark h3 { color: var(--on-dark); }

.hero p,
.page-hero p,
.band-dark p { color: var(--on-dark-muted); }

.hero a:not(.btn),
.page-hero a:not(.btn),
.band-dark a:not(.btn) { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(5rem, 11vw, 8.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: var(--fs-hero);
  letter-spacing: -.032em;
  line-height: 1.04;
}

.hero-lead {
  margin-top: var(--s4);
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.hero-note {
  margin-top: var(--s4);
  font-size: var(--fs-small);
  letter-spacing: .01em;
}

/* --- drawn care-pathway panel ----------------------------- */

.figure-card {
  border: var(--hairline) solid var(--rule-dark);
  border-radius: var(--radius-lg);
  background: var(--panel-dark);
  padding: var(--s4);
  box-shadow: var(--shadow-lg);
}

.figure-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: var(--hairline) solid var(--rule-dark);
}

.figure-title {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.figure-meta {
  font-size: var(--fs-label);
  letter-spacing: .06em;
  color: var(--on-dark-muted);
}

.figure-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-block: var(--s4) var(--s3);
  color: var(--on-dark-muted);
}

.route-rail {
  stroke: currentColor;
  stroke-width: 1;
  opacity: .3;
}

.route-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-node {
  fill: var(--primary-deep);
  stroke: var(--accent);
  stroke-width: 2;
}

.route-node-end {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 2;
}

.route-halo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: .4;
}

.figure-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2) var(--s3);
  border-top: var(--hairline) solid var(--rule-dark);
  padding-top: var(--s3);
}

.figure-legend li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
}

.legend-index {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--on-dark);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(3.5rem, 7vw, 5.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s4)), 0 100%);
}

.page-hero-inner { max-width: 48rem; }

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -.03em;
}

.page-hero p {
  margin-top: var(--s3);
  max-width: var(--measure);
  font-size: var(--fs-lead);
}

/* ============================================================
   BANDS
   ============================================================ */

.band { padding-block: clamp(3rem, 7vw, 6.5rem); }

.band-paper { background: var(--paper); }

.band-surface { background: var(--surface); }

.band-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.band-dark { padding-block: clamp(2.75rem, 5vw, 4rem); }

.band-rule { border-top: var(--hairline) solid var(--border); }

/* ============================================================
   PROPOSITION ROW (hairline columns, not cards)
   ============================================================ */

.props {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--hairline) solid var(--border);
}

.prop {
  padding: var(--s5) var(--s4) var(--s2);
  border-right: var(--hairline) solid var(--border);
}

.prop:last-child { border-right: 0; }

.prop:first-child { padding-left: 0; }

.prop-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s2);
}

.prop p {
  color: var(--text-light);
  font-size: var(--fs-small);
  line-height: 1.62;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--s4);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s2);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.icon-tile svg { width: 24px; height: 24px; }

.service-title { font-size: var(--fs-h3); }

.service-text {
  color: var(--text-light);
  font-size: var(--fs-small);
  line-height: 1.65;
}

.service-points {
  list-style: none;
  margin-top: var(--s2);
  padding-top: var(--s3);
  border-top: var(--hairline) solid var(--border);
  display: grid;
  gap: var(--s1);
}

.service-points li {
  position: relative;
  padding-left: var(--s3);
  font-size: var(--fs-small);
  color: var(--text-light);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--accent);
}

/* ============================================================
   TWO-COLUMN SPLIT + PATHWAY
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }

.pathway-steps {
  list-style: none;
  display: grid;
  gap: var(--s4);
}

.pathway-step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s3);
  padding-bottom: var(--s4);
  border-bottom: var(--hairline) solid var(--border);
}

.pathway-step:last-child { border-bottom: 0; padding-bottom: 0; }

.step-node {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: var(--hairline) solid var(--border-strong);
  background: var(--surface);
  color: var(--accent-ink);
  font-size: var(--fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s1);
}

.step-body p {
  color: var(--text-light);
  font-size: var(--fs-small);
  line-height: 1.65;
}

/* --- monogram panel --------------------------------------- */

.panel {
  padding: var(--s5);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--grid-light) var(--hairline), transparent var(--hairline)),
    linear-gradient(90deg, var(--grid-light) var(--hairline), transparent var(--hairline)),
    var(--surface);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow-sm);
}

.panel-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--s4);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--surface);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.panel-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s2);
}

.panel p {
  color: var(--text-light);
  font-size: var(--fs-small);
  line-height: 1.65;
}

.panel-list {
  list-style: none;
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: var(--hairline) solid var(--border);
  display: grid;
  gap: var(--s2);
}

.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--fs-small);
  color: var(--text-dark);
}

.panel-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: .18rem;
  color: var(--accent-ink);
}

/* ============================================================
   FACTS STRIP (registration details — factual only)
   ============================================================ */

.facts-intro {
  margin-bottom: var(--s4);
  max-width: var(--measure);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  border-top: var(--hairline) solid var(--rule-dark);
  padding-top: var(--s4);
}

.fact {
  display: grid;
  gap: var(--s1);
}

.fact-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.fact-value {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   CTA STRIP
   ============================================================ */

.cta-strip {
  background: var(--surface);
  border-top: var(--hairline) solid var(--border);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--grid-light) var(--hairline), transparent var(--hairline)),
    linear-gradient(90deg, var(--grid-light) var(--hairline), transparent var(--hairline)),
    var(--paper);
  background-size: 32px 32px, 32px 32px, auto;
}

.cta-copy { max-width: 34rem; }

.cta-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.cta-copy p {
  margin-top: var(--s2);
  color: var(--text-light);
  font-size: var(--fs-small);
}

.cta-inner .actions { margin-top: 0; }

/* ============================================================
   PROSE (legal + long-form pages)
   ============================================================ */

.prose { max-width: var(--measure); }

.prose h2 {
  margin-top: var(--s6);
  margin-bottom: var(--s3);
  padding-top: var(--s4);
  border-top: var(--hairline) solid var(--border);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  scroll-margin-top: var(--s7);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: var(--s4);
  margin-bottom: var(--s2);
  font-size: var(--fs-h3);
}

.prose p {
  margin-bottom: var(--s3);
  color: var(--text-dark);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--s4);
  padding-left: var(--s4);
  display: grid;
  gap: var(--s1);
}

.prose li { color: var(--text-dark); }

.prose a { font-weight: 600; }

.legal-layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s3));
  padding: var(--s4);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.toc-title {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--s2);
}

.toc ol {
  list-style: none;
  display: grid;
  gap: var(--s1);
  counter-reset: toc;
}

.toc li { counter-increment: toc; }

.toc a {
  display: block;
  padding: .2rem 0 .2rem var(--s2);
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--text-dark);
  border-left: var(--hairline) solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.toc a::before {
  content: counter(toc, decimal-leading-zero) " ";
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--accent-ink);
  border-left-color: var(--accent);
}

.meta-note {
  margin-bottom: var(--s5);
  padding: var(--s3) var(--s4);
  border-left: var(--hairline) solid var(--accent);
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--text-light);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}

.contact-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding-bottom: var(--s3);
  border-bottom: var(--hairline) solid var(--border);
}

.contact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--s1);
}

.contact-value {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-dark);
  word-break: break-word;
}

a.contact-value {
  color: var(--accent-ink);
  text-decoration: none;
}

a.contact-value:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-form {
  padding: var(--s5);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s3);
}

.field {
  display: grid;
  gap: var(--s1);
  margin-bottom: var(--s3);
}

.field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: inherit;
  font-size: var(--fs-small);
  color: var(--text-dark);
  background: var(--paper);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--surface);
  border-color: var(--accent-ink);
}

.field-hint {
  font-size: var(--fs-label);
  color: var(--text-light);
}

.form-note {
  margin-top: var(--s3);
  font-size: var(--fs-label);
  line-height: 1.55;
  color: var(--text-light);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--primary-deep);
  color: var(--on-dark-muted);
  border-top: var(--hairline) solid var(--primary-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.footer-brand .wordmark { color: var(--on-dark); }

.footer-brand .wordmark-mark {
  background: var(--accent);
  color: var(--primary-deep);
}

.footer-brand .wordmark-sub { color: var(--on-dark-muted); }

.footer-blurb {
  margin-top: var(--s3);
  max-width: 30rem;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.footer-reg {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: var(--hairline) solid var(--rule-dark);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--on-dark-muted);
  font-variant-numeric: tabular-nums;
}

.footer-heading {
  margin-bottom: var(--s3);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer-list {
  list-style: none;
  display: grid;
  gap: var(--s2);
}

.footer-list a,
.footer-list span {
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color var(--dur) var(--ease);
  word-break: break-word;
}

.footer-list a:hover { color: var(--accent); }

.footer-bottom {
  border-top: var(--hairline) solid var(--rule-dark);
  background: var(--primary);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  padding-block: var(--s3);
  font-size: var(--fs-label);
  color: var(--on-dark-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  list-style: none;
}

.footer-legal a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }

  .split,
  .split-reverse,
  .contact-grid,
  .legal-layout { grid-template-columns: minmax(0, 1fr); }

  .toc { position: static; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .props { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .prop:nth-child(2) { border-right: 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: var(--s4) var(--gutter) var(--s5);
    background: var(--surface);
    border-bottom: var(--hairline) solid var(--border);
    box-shadow: var(--shadow);
  }

  .navbar.open .nav-menu { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li { border-bottom: var(--hairline) solid var(--border); }

  .nav-link {
    padding: var(--s3) 0;
    font-size: var(--fs-body);
  }

  .nav-link::after { bottom: 0; }

  .nav-cta { justify-content: center; }

  .hero-figure { display: none; }

  .props { grid-template-columns: minmax(0, 1fr); }

  .prop {
    border-right: 0;
    border-bottom: var(--hairline) solid var(--border);
    padding: var(--s4) 0;
  }

  .prop:last-child { border-bottom: 0; }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }

  .cta-inner { padding: var(--s4); }

  .contact-form { padding: var(--s4); }

  .footer-bottom-inner { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .figure-legend { grid-template-columns: minmax(0, 1fr); }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .service-card:hover { transform: none; }
}

@media print {
  .site-header,
  .cta-strip,
  .hero-figure { display: none; }

  body {
    background: var(--surface);
    color: var(--ink);
  }
}
