/* ==========================================================================
   Perioperative and Rehabilitation Older Adult Care Pty Ltd
   Art direction: "Clinical calm, Western Australian"
   Deep eucalypt + honey accent + cool mineral neutrals. Soft shape language.
   All colours, spacing, radii, shadows and sizes are declared in the token
   block below; nothing beneath it uses a raw value.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand ramp */
  --eucalypt-900: #0E2E2B;
  --eucalypt-800: #14413E;
  --eucalypt-600: #1F5D57;
  --eucalypt-300: #6FA79F;

  /* Accent — honey. Ink variant for light backgrounds, soft variant for dark. */
  --honey-700: #7C5415;
  --honey-600: #8A5E18;
  --honey-500: #C08A34;
  --honey-300: #E3BE72;

  /* Cool mineral neutrals */
  --mineral-50: #F7F9F7;
  --mineral-100: #EDF1EE;
  --mineral-200: #DFE6E1;
  --mineral-300: #CBD5CF;
  --mineral-600: #5B6A64;
  --ink-900: #101614;
  --white: #FFFFFF;

  /* Semantic aliases */
  --primary: var(--eucalypt-800);
  --primary-deep: var(--eucalypt-900);
  --primary-mid: var(--eucalypt-600);
  --primary-soft: var(--eucalypt-300);
  --accent: var(--honey-500);
  --accent-ink: var(--honey-600);
  --accent-deep: var(--honey-700);
  --accent-soft: var(--honey-300);
  --bg: var(--mineral-50);
  --surface: var(--white);
  --surface-alt: var(--mineral-100);
  --border: var(--mineral-200);
  --border-strong: var(--mineral-300);
  --text-dark: var(--ink-900);
  --text-light: var(--mineral-600);
  --text-on-dark: #EAF1EE;
  --text-on-dark-muted: #A9C0BA;

  /* Translucent layers: gradients, rules, overlays, masks */
  --nav-bg: rgba(247, 249, 247, 0.82);
  --glow-mint: rgba(31, 93, 87, 0.15);
  --glow-honey: rgba(192, 138, 52, 0.13);
  --rule: rgba(20, 65, 62, 0.07);
  --rule-dark: rgba(255, 255, 255, 0.13);
  --overlay-card: rgba(255, 255, 255, 0.05);
  --overlay-line: rgba(255, 255, 255, 0.15);
  --tint-primary: rgba(20, 65, 62, 0.08);
  --tint-accent: rgba(192, 138, 52, 0.16);
  --focus-ring: rgba(31, 93, 87, 0.55);
  --mask-a: rgba(0, 0, 0, 1);
  --mask-b: rgba(0, 0, 0, 0);

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: clamp(3.25rem, 7vw, 5.75rem);
  --hero-y: clamp(3rem, 6vw, 5rem);
  --page-hero-y: clamp(2.5rem, 5vw, 3.75rem);
  --pad-x: clamp(1.25rem, 4vw, 1.5rem);
  --btn-py: 0.85rem;
  --btn-px: 1.6rem;

  /* Measures and widths */
  --container: 1140px;
  --measure: 66ch;
  --measure-legal: 74ch;
  --measure-hero: 40ch;
  --measure-lead: 34ch;
  --measure-brand: 46ch;
  --card-min: 260px;
  --hero-min-h: 56vh;

  /* Shape */
  --hair: 1px;
  --bar-h: 2px;
  --bar-gap: 5px;
  --node-border: 2px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shoulder-r: 40px;
  --shoulder-h: 56px;
  --icon-tile: 44px;
  --mark-size: 40px;
  --node-size: 22px;
  --grid-cell: 72px;
  --focus-w: 3px;
  --nav-h: 68px;
  --nav-offset: 96px;
  --textarea-h: 160px;
  --svg-stroke: 2.5;
  --nav-blur: saturate(180%) blur(10px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 22, 20, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 22, 20, 0.04), 0 8px 24px rgba(16, 22, 20, 0.06);
  --shadow-lg: 0 18px 48px rgba(14, 46, 43, 0.14);
  --shadow-nav: 0 1px 0 rgba(20, 65, 62, 0.08);

  /* Type */
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  --fs-hero: clamp(2.3rem, 5.2vw, 4rem);
  --fs-h1: clamp(2rem, 4.2vw, 3.05rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h2-legal: clamp(1.3rem, 2.2vw, 1.7rem);
  --fs-h3: clamp(1.14rem, 1.6vw, 1.34rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-xxs: 0.66rem;
  --fs-eyebrow: 0.78rem;
  --fs-svg: 9px;

  /* Motion */
  --t-fast: 150ms ease;
  --t-med: 200ms ease;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 var(--s3);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-sm); margin: 0 0 var(--s1); }

p { margin: 0 0 var(--s3); max-width: var(--measure); }

a { color: var(--primary-mid); text-decoration-thickness: var(--hair); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }

ul, ol { margin: 0 0 var(--s3); padding-left: var(--s4); }
li { margin-bottom: var(--s1); }

strong { font-weight: 700; }

:focus-visible {
  outline: var(--focus-w) solid var(--focus-ring);
  outline-offset: var(--bar-h);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(var(--s1) * -8);
  z-index: 60;
  background: var(--primary);
  color: var(--white);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s2); color: var(--white); }

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 var(--s2);
}
.eyebrow-dark { color: var(--accent-soft); }

.section-head { max-width: var(--measure); margin-bottom: var(--s5); }
.section-head p { color: var(--text-light); font-size: var(--fs-lead); margin-bottom: 0; }

.lead { font-size: var(--fs-lead); color: var(--text-light); }
.u-break { overflow-wrap: anywhere; word-break: break-word; }
.u-mono { font-family: var(--font-mono); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-pill);
  border: var(--hair) solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-med), background-color var(--t-med),
              color var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-mid); color: var(--white); transform: translateY(calc(var(--hair) * -1)); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--surface); color: var(--primary); transform: translateY(calc(var(--hair) * -1)); }

.btn-light { background: var(--white); color: var(--primary-deep); }
.btn-light:hover { background: var(--accent-soft); color: var(--primary-deep); transform: translateY(calc(var(--hair) * -1)); }

.btn-ghost-dark { background: transparent; color: var(--text-on-dark); border-color: var(--overlay-line); }
.btn-ghost-dark:hover { border-color: var(--accent-soft); color: var(--accent-soft); transform: translateY(calc(var(--hair) * -1)); }

.btn-sm { padding: var(--s2) var(--s3); font-size: var(--fs-xs); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; }

.navbar {
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
  border-bottom: var(--hair) solid var(--border);
  box-shadow: var(--shadow-nav);
}

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

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

.wordmark-mark {
  display: grid;
  place-items: center;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: 0 0 var(--mark-size);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wordmark-text { display: flex; flex-direction: column; line-height: 1.2; }
.wordmark-line1 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: -0.01em; }
.wordmark-line2 { font-family: var(--font-mono); font-size: var(--fs-xxs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); }

.nav-links { display: flex; align-items: center; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--primary-mid); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--focus-w);
  border-radius: var(--radius-pill);
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--t-med);
}
.nav-link:hover::after { transform: scaleX(0.4); }
.nav-link.is-active { color: var(--primary); font-weight: 700; }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { margin-left: var(--s1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--bar-gap);
  width: var(--icon-tile);
  height: var(--icon-tile);
  padding: 0 var(--s2);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar { display: block; height: var(--bar-h); width: 100%; background: var(--primary); border-radius: var(--radius-pill); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: var(--hero-y) 0 calc(var(--section-y) + var(--shoulder-h));
  background:
    radial-gradient(1100px 520px at 80% -14%, var(--glow-mint), transparent 62%),
    radial-gradient(760px 420px at 2% 106%, var(--glow-honey), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(to right, var(--rule) 0 var(--hair), transparent var(--hair) var(--grid-cell)),
    repeating-linear-gradient(to bottom, var(--rule) 0 var(--hair), transparent var(--hair) var(--grid-cell));
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, var(--mask-a) 28%, var(--mask-b) 80%);
  mask-image: radial-gradient(120% 92% at 50% 0%, var(--mask-a) 28%, var(--mask-b) 80%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--hair) * -1);
  height: var(--shoulder-h);
  z-index: -1;
  background: var(--bg);
  border-radius: var(--shoulder-r) var(--shoulder-r) 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: var(--s6);
  align-items: center;
  min-height: var(--hero-min-h);
}

.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-title { font-size: var(--fs-hero); line-height: 1.06; margin-bottom: var(--s3); }
.hero-title em { font-style: normal; color: var(--primary-mid); }
.hero-lead { font-size: var(--fs-lead); color: var(--text-light); max-width: var(--measure-lead); }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s4);
  margin-bottom: 0;
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-pill);
  background: var(--tint-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--primary);
}

/* Hero visual anchor — schematic of the care pathway */
.hero-visual { min-width: 0; transform: translateY(var(--s3)); }

.pathway-card {
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s4);
}

.pathway-card-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-bottom: var(--s3);
  border-bottom: var(--hair) solid var(--border);
  margin-bottom: var(--s3);
}
.pathway-card-title { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }

.pathway-svg { display: block; width: 100%; height: auto; }
.pathway-svg .ps-grid { stroke: var(--border); stroke-width: var(--hair); }
.pathway-svg .ps-axis { stroke: var(--border-strong); stroke-width: var(--hair); }
.pathway-svg .ps-curve { fill: none; stroke: var(--primary); stroke-width: var(--svg-stroke); stroke-linecap: round; stroke-linejoin: round; }
.pathway-svg .ps-node { fill: var(--surface); stroke: var(--accent); stroke-width: var(--svg-stroke); }
.pathway-svg .ps-label { fill: var(--text-light); font-family: var(--font-mono); font-size: var(--fs-svg); letter-spacing: 0.04em; }
.pathway-svg .ps-axis-label { fill: var(--text-light); font-family: var(--font-mono); font-size: var(--fs-svg); letter-spacing: 0.08em; text-transform: uppercase; }

.pathway-card-note { margin: var(--s3) 0 0; font-size: var(--fs-xs); color: var(--text-light); }

/* --------------------------------------------------------------------------
   7. Page hero (inner pages) — same craft, shorter
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: var(--page-hero-y) 0 calc(var(--s6) + var(--shoulder-h));
  background:
    radial-gradient(900px 420px at 88% -30%, var(--glow-mint), transparent 62%),
    radial-gradient(620px 340px at 0% 118%, var(--glow-honey), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(to right, var(--rule) 0 var(--hair), transparent var(--hair) var(--grid-cell)),
    repeating-linear-gradient(to bottom, var(--rule) 0 var(--hair), transparent var(--hair) var(--grid-cell));
  -webkit-mask-image: radial-gradient(110% 100% at 50% 0%, var(--mask-a) 20%, var(--mask-b) 82%);
  mask-image: radial-gradient(110% 100% at 50% 0%, var(--mask-a) 20%, var(--mask-b) 82%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--hair) * -1);
  height: var(--shoulder-h);
  z-index: -1;
  background: var(--bg);
  border-radius: var(--shoulder-r) var(--shoulder-r) 0 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: var(--measure-hero); }
.page-hero-inner p { color: var(--text-light); font-size: var(--fs-lead); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Generic bands
   -------------------------------------------------------------------------- */
.band { padding: var(--section-y) 0; }
.band-alt { padding: var(--section-y) 0; background: var(--surface); border-top: var(--hair) solid var(--border); border-bottom: var(--hair) solid var(--border); }

/* Two-column split — value propositions and process lists */
.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: var(--s6); align-items: start; }
.split-aside { position: sticky; top: var(--nav-offset); min-width: 0; }
.split-aside p { color: var(--text-light); margin-bottom: 0; }

.prop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); min-width: 0; }
.prop-list li { margin: 0; }

.prop {
  display: grid;
  grid-template-columns: var(--icon-tile) 1fr;
  gap: var(--s3);
  align-items: start;
  padding-bottom: var(--s4);
  border-bottom: var(--hair) solid var(--border);
}
.prop-list li:last-child .prop { border-bottom: 0; padding-bottom: 0; }
.prop h3 { margin-bottom: var(--s1); }
.prop p { margin: 0; color: var(--text-light); font-size: var(--fs-sm); }

.icon-tile {
  display: grid;
  place-items: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  border-radius: var(--radius-sm);
  background: var(--tint-primary);
  color: var(--primary);
}
.icon-tile-accent { background: var(--tint-accent); color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr)); gap: var(--s4); }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.service-card:hover { transform: translateY(calc(var(--bar-h) * -1)); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; color: var(--text-light); font-size: var(--fs-sm); }

.service-points { list-style: none; margin: var(--s1) 0 0; padding: 0; display: grid; gap: var(--s1); }
.service-points li {
  position: relative;
  margin: 0;
  padding-left: var(--s4);
  font-size: var(--fs-sm);
  color: var(--text-light);
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: var(--s1);
  height: var(--s1);
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   10. Pathway rail — full-bleed dark band (signature element)
   -------------------------------------------------------------------------- */
.pathway-band {
  padding: var(--section-y) 0;
  background:
    radial-gradient(760px 420px at 88% 8%, var(--overlay-card), transparent 60%),
    linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 62%, var(--primary-mid) 100%);
  color: var(--text-on-dark);
}
.pathway-band h2 { color: var(--text-on-dark); }
.pathway-band .section-head p { color: var(--text-on-dark-muted); }

.rail {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s4);
}
.rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--node-size) / 2);
  height: var(--hair);
  background: var(--rule-dark);
}
.rail li { margin: 0; min-width: 0; }

.rail-step { position: relative; display: flex; flex-direction: column; gap: var(--s2); }

.rail-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node-size);
  height: var(--node-size);
  border-radius: var(--radius-pill);
  background: var(--primary-deep);
  border: var(--node-border) solid var(--accent-soft);
}
.rail-node::after {
  content: "";
  width: var(--s1);
  height: var(--s1);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
}

.rail-index { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); }
.rail-step h3 { margin: 0; color: var(--text-on-dark); font-size: var(--fs-h3); }
.rail-step p { margin: 0; font-size: var(--fs-sm); color: var(--text-on-dark-muted); max-width: none; }

/* --------------------------------------------------------------------------
   11. About strip + audience card
   -------------------------------------------------------------------------- */
.about-strip { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s6); align-items: center; }
.about-strip > * { min-width: 0; }
.about-strip p { color: var(--text-light); }

.audience-card {
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s4);
}
.audience-card h3 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.audience-list li { display: grid; grid-template-columns: var(--icon-tile) 1fr; gap: var(--s3); align-items: center; margin: 0; min-width: 0; }
.audience-list h4 { font-size: var(--fs-sm); font-weight: 700; margin: 0; }
.audience-list p { margin: 0; font-size: var(--fs-xs); color: var(--text-light); }

/* --------------------------------------------------------------------------
   12. Credentials strip — factual only
   -------------------------------------------------------------------------- */
.credentials { padding: var(--s5) 0; background: var(--surface-alt); border-top: var(--hair) solid var(--border); border-bottom: var(--hair) solid var(--border); }
.credentials-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin: 0; }
.credential { display: flex; flex-direction: column; gap: var(--hair); }
.credential dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.credential dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; color: var(--primary); }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band { padding: var(--section-y) 0; background: var(--bg); }
.cta-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: var(--s5);
  align-items: center;
  padding: var(--s5);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 92% 0%, var(--overlay-card), transparent 62%),
    linear-gradient(140deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
}
.cta-inner > * { min-width: 0; }
.cta-inner h2 { color: var(--text-on-dark); margin-bottom: var(--s2); }
.cta-inner p { color: var(--text-on-dark-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* --------------------------------------------------------------------------
   14. Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); align-items: start; }
.contact-grid > * { min-width: 0; }

.contact-card {
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s4);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.contact-list li { display: grid; grid-template-columns: var(--icon-tile) 1fr; gap: var(--s3); align-items: start; margin: 0; min-width: 0; }
.contact-list h3 { font-size: var(--fs-sm); margin: 0 0 var(--hair); }
.contact-list p { margin: 0; font-size: var(--fs-sm); color: var(--text-light); }

.form { display: grid; gap: var(--s3); }
.form-row { display: grid; gap: var(--s1); min-width: 0; }
.form label { font-size: var(--fs-sm); font-weight: 600; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-dark);
  background: var(--surface);
  border: var(--hair) solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
}
.form input:hover,
.form select:hover,
.form textarea:hover { border-color: var(--primary-soft); }
.form textarea { min-height: var(--textarea-h); resize: vertical; }
.form-hint { font-size: var(--fs-xs); color: var(--text-light); margin: 0; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

/* --------------------------------------------------------------------------
   15. Legal pages
   -------------------------------------------------------------------------- */
.legal { max-width: var(--measure-legal); }
.legal h2 { font-size: var(--fs-h2-legal); margin-top: var(--s5); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: var(--s4); }
.legal p, .legal li { color: var(--text-light); }
.legal li { font-size: var(--fs-body); }
.legal strong { color: var(--text-dark); }

.legal-meta {
  display: inline-block;
  margin: 0 0 var(--s5);
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: var(--hair) solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-light);
}

.callout {
  padding: var(--s4);
  margin: var(--s4) 0;
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-left: var(--focus-w) solid var(--accent);
  border-radius: var(--radius-sm);
}
.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--primary-deep); color: var(--text-on-dark); border-top: var(--hair) solid var(--rule-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--s5);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}

.footer-brand { min-width: 0; max-width: var(--measure-brand); }
.footer-col { min-width: 0; }

.footer-mark { background: var(--overlay-card); border: var(--hair) solid var(--overlay-line); color: var(--accent-soft); margin-bottom: var(--s3); }
.footer-blurb { color: var(--text-on-dark-muted); font-size: var(--fs-sm); }
.footer-reg { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin: 0; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--accent-soft); }

.footer-heading { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark); margin: 0 0 var(--s3); }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-list li { margin: 0; font-size: var(--fs-sm); color: var(--text-on-dark-muted); overflow-wrap: anywhere; }
.footer-list a { color: var(--text-on-dark-muted); text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-fast); }
.footer-list a:hover { color: var(--accent-soft); text-decoration: underline; }

.footer-bar { background: var(--primary); border-top: var(--hair) solid var(--rule-dark); }
.footer-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); padding-bottom: var(--s3); }
.footer-bar-inner p { margin: 0; font-size: var(--fs-xs); color: var(--text-on-dark-muted); max-width: none; }
.footer-bar-links { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.footer-bar-links li { margin: 0; }
.footer-bar-links a { font-size: var(--fs-xs); color: var(--text-on-dark-muted); text-decoration: none; }
.footer-bar-links a:hover { color: var(--accent-soft); text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail { grid-template-columns: repeat(3, 1fr); row-gap: var(--s5); }
  .rail::before { display: none; }
  .hero-inner { gap: var(--s5); }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + var(--s1));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s1);
    padding: var(--s3);
    background: var(--surface);
    border: var(--hair) solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: var(--s2) var(--s1); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--primary); border-left: var(--focus-w) solid var(--accent); padding-left: var(--s2); }
  .nav-cta { margin-left: 0; margin-top: var(--s1); }

  .hero-inner { grid-template-columns: 1fr; gap: var(--s5); min-height: 0; }
  .hero-lead { max-width: var(--measure); }
  .hero-visual { display: none; }

  .split,
  .about-strip,
  .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .split-aside { position: static; }

  .rail { grid-template-columns: 1fr; gap: var(--s4); }
  .rail::before { display: block; left: calc(var(--node-size) / 2); right: auto; top: 0; bottom: 0; width: var(--hair); height: auto; }
  .rail-step { padding-left: calc(var(--node-size) + var(--s3)); }
  .rail-node { position: absolute; left: 0; top: 0; }

  .cta-inner { grid-template-columns: 1fr; padding: var(--s4); }
  .form-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
}

@media (max-width: 420px) {
  .wordmark-line1 { font-size: var(--fs-xxs); letter-spacing: 0; }
  .wordmark-line2 { font-size: var(--fs-xxs); letter-spacing: 0.02em; }
  .credentials-inner { gap: var(--s3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover,
  .service-card:hover { transform: none; }
}
