/* NSpark v4 editorial — handmade / paper / hand-drawn aesthetic */

:root {
  /* === BUSH PALETTE === (unchanged from v3) */
  --paper: oklch(0.962 0.022 82);
  --paper-2: oklch(0.94 0.03 80);
  --paper-3: oklch(0.91 0.04 76);
  --bone: oklch(0.988 0.01 85);
  --ink: oklch(0.22 0.025 60);
  --ink-2: oklch(0.38 0.022 60);
  --ink-3: oklch(0.44 0.020 60);
  --hairline: oklch(0.84 0.022 75);
  --euc: oklch(0.42 0.06 150);
  --euc-deep: oklch(0.30 0.05 150);
  --euc-wash: oklch(0.93 0.03 150);
  --ochre: oklch(0.74 0.13 70);
  --ochre-deep: oklch(0.44 0.14 50);
  --ochre-wash: oklch(0.93 0.05 80);
  --rose: oklch(0.74 0.08 28);
  --rose-deep: oklch(0.5 0.1 26);
  --rose-wash: oklch(0.94 0.04 25);
  --hi-yellow: oklch(0.92 0.16 95);
  --hi-mint: oklch(0.9 0.1 150);
  --tape: oklch(0.9 0.1 85 / 0.55);

  /* === FOCUS RING === */
  --focus: oklch(0.55 0.18 150);
  --focus-offset: 2px;
  --focus-width: 2px;

  /* === FORM-STATE SEMANTICS === */
  --success: var(--euc);
  --success-text: var(--euc-deep);
  --success-wash: var(--euc-wash);
  --warning: var(--ochre);
  --warning-text: var(--ochre-deep);
  --warning-wash: var(--ochre-wash);
  --error: oklch(0.5 0.18 25);
  --error-text: var(--error);
  --error-wash: var(--rose-wash);

  /* === SPACING (component, fixed 8pt) === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* === SECTION RHYTHM (fluid) === */
  --section-xs: clamp(48px, 6vw, 96px);
  --section-sm: clamp(64px, 8vw, 120px);
  --section-md: clamp(80px, 10vw, 144px);
  --section-lg: clamp(96px, 12vw, 192px);
  --gutter: clamp(20px, 3vw, 36px);
  --container-max: 1240px;

  /* === TYPOGRAPHY === */
  --t-display: clamp(48px, 6.4vw, 96px);
  --t-h2: clamp(32px, 3.8vw, 56px);
  --t-h3: clamp(22px, 2.2vw, 30px);
  --t-h4: 18px;
  --t-lede: 19px;
  --t-body: 17px;
  --t-small: 14px;
  --t-mono: 12px;
  --t-cursive-eyebrow: 24px;
  --t-cursive-note: 22px;
  --lh-display: 1.02;
  --tk-display: -0.025em;
  --lh-h2: 1.08;
  --tk-h2: -0.018em;
  --lh-h3: 1.2;
  --lh-body: 1.6;

  /* === MOTION === */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-quick: 200ms;
  --duration-base: 350ms;
  --duration-slow: 500ms;
  --stagger: 70ms;

  /* === RADII === */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  /* === SHADOWS === */
  --shadow-paper: 0 1px 0 rgba(60,40,20,.06), 0 18px 30px -14px rgba(60,40,20,.22), 0 2px 4px rgba(60,40,20,.05);
  --shadow-paper-lg: 0 2px 0 rgba(60,40,20,.08), 0 28px 44px -16px rgba(60,40,20,.32), 0 4px 8px rgba(60,40,20,.08);
}

/* === RESET & BASE === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.18  0 0 0 0 0.08  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.35  0 0 0 0 0.2  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23c)'/></svg>"),
    radial-gradient(1400px 900px at 70% -10%, oklch(0.94 0.04 75 / 0.55), transparent 60%),
    radial-gradient(1100px 800px at -10% 110%, oklch(0.93 0.03 150 / 0.4), transparent 55%);
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1, h2, h3 {
  font-variation-settings: "opsz" 36;
}
h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* === TYPOGRAPHY === */
.hand { font-family: 'Caveat', cursive; font-weight: 500; color: var(--euc-deep); }
.hand-note {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ochre-deep);
  display: inline-block;
  transform: rotate(-2deg);
  line-height: 1.15;
}

.mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--euc);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.eyebrow::before {
  content: ""; width: 38px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23446644' stroke-width='1.6' stroke-linecap='round'><path d='M2 7 C 8 3, 14 10, 20 6 S 32 3, 38 7'/></svg>") center/contain no-repeat;
}

/* === LAYOUT === */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-md) 0; position: relative; }

.highlight {
  display: inline;
  padding: 0 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 48' preserveAspectRatio='none'><path d='M4 10 C 40 6, 100 14, 196 8 L 198 42 C 140 46, 80 38, 2 44 Z' fill='%23f5d98a' opacity='0.7'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 86%;
  background-position: 0 60%;
}
.highlight.mint {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 48' preserveAspectRatio='none'><path d='M2 10 C 60 4, 120 16, 198 6 L 196 44 C 130 48, 70 36, 4 42 Z' fill='%23bfd8bf' opacity='0.75'/></svg>");
}
/* a11y: on dark surfaces a pastel fill kills contrast — swap to a stroke underline */
.cta-card .highlight,
.accent-box .highlight {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 8 C 30 2, 60 12, 100 6 S 170 2, 198 9' fill='none' stroke='%23e8c468' stroke-width='2.5' stroke-linecap='round'/></svg>");
  background-position: 0 100%;
  background-size: 100% 8px;
  padding: 0 2px;
}

.squiggle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 8 C 30 2, 60 12, 100 6 S 170 2, 198 9' fill='none' stroke='%23b88146' stroke-width='2.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 10px;
  background-position: 0 100%;
  padding-bottom: 8px;
}

/* Buttons — rough hand-drawn outline */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  background: transparent;
  border: 0;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  transition: transform .15s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 56' preserveAspectRatio='none' fill='none' stroke='%233a3025' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M28 5 C 70 3, 140 8, 192 4 C 208 5, 217 18, 215 30 C 217 44, 208 53, 188 52 C 130 54, 70 50, 28 53 C 12 52, 4 40, 6 28 C 3 14, 12 7, 28 5 Z'/></svg>") center/100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}
.btn:hover { transform: translate(-1px,-1px); }
.btn-primary { color: var(--bone); padding: 18px 30px; }
.btn-primary::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 56' preserveAspectRatio='none'><path d='M28 5 C 70 3, 140 8, 192 4 C 208 5, 217 18, 215 30 C 217 44, 208 53, 188 52 C 130 54, 70 50, 28 53 C 12 52, 4 40, 6 28 C 3 14, 12 7, 28 5 Z' fill='%23425e44' stroke='%232b3f2d' stroke-width='1.5'/></svg>") center/100% 100% no-repeat;
}
.btn .arrow {
  width: 22px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M2 10 C 10 9, 18 11, 26 10 M19 4 C 22 6, 24 8, 26 10 C 24 12, 22 14, 19 16'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M2 10 C 10 9, 18 11, 26 10 M19 4 C 22 6, 24 8, 26 10 C 24 12, 22 14, 19 16'/></svg>") center/contain no-repeat;
}
.btn:hover .arrow { transform: translateX(3px); transition: transform .2s; }

/* === NAV === */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--paper), transparent 4%); backdrop-filter: blur(10px); }
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 6' preserveAspectRatio='none'><path d='M2 3 C 100 1, 200 5, 300 2 S 500 5, 600 3 S 800 1, 900 4 S 1100 2, 1198 3' fill='none' stroke='%23b8a88a' stroke-width='1.2' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; color: var(--ink); }
.logo-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='17' fill='none' stroke='%23425e44' stroke-width='1.8' stroke-dasharray='2 3'/><circle cx='20' cy='20' r='9' fill='%23c98b3f'/><circle cx='17' cy='17.5' r='2' fill='%23f7e5c7' opacity='0.6'/></svg>") center/contain no-repeat;
}
.logo small { display: block; font-family: 'Caveat', cursive; font-size: 16px; color: var(--ochre-deep); margin-top: -2px; transform: rotate(-2deg); transform-origin: left; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); position: relative; padding: 8px 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--euc-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 2px; height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 10' preserveAspectRatio='none'><path d='M2 5 C 20 2, 40 8, 60 4 S 78 5, 78 5' fill='none' stroke='%23425e44' stroke-width='2' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
.has-submenu { position: relative; }

/* Submenu trigger — reset native button chrome so it matches sibling nav links */
.nav-submenu-trigger {
  background: transparent; border: 0; padding: 8px 2px;
  font: inherit; font-size: 14.5px; color: var(--ink-2);
  cursor: pointer; position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: inherit;
}
.nav-submenu-trigger:hover { color: var(--ink); }
.nav-submenu-trigger.active { color: var(--euc-deep); }
.nav-submenu-trigger.active::after {
  content: ""; position: absolute; left: -2px; right: 16px; bottom: 2px; height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 10' preserveAspectRatio='none'><path d='M2 5 C 20 2, 40 8, 60 4 S 78 5, 78 5' fill='none' stroke='%23425e44' stroke-width='2' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
.nav-submenu-trigger .caret {
  font-size: 10px; line-height: 1; color: var(--ink-3);
  transition: transform .25s ease, color .25s ease;
  display: inline-block;
}
.has-submenu:hover .nav-submenu-trigger .caret,
.nav-submenu-trigger[aria-expanded="true"] .caret {
  transform: rotate(180deg);
  color: var(--ochre-deep);
}

/* Hover bridge — extends has-submenu's hit area across the visual gap so the
   cursor can travel from trigger to panel without losing hover. Desktop only. */
@media (min-width: 901px) {
  .has-submenu::before {
    content: ""; position: absolute;
    top: 100%; left: -14px; right: -14px; height: 16px;
    pointer-events: auto;
  }
}

.submenu {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 304px;
  background: var(--bone); padding: 8px;
  box-shadow:
    0 18px 36px -18px oklch(0.30 0.04 60 / .32),
    0 4px 12px -4px oklch(0.30 0.04 60 / .14);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.3,1);
  list-style: none; margin: 0;
  transform: translate(-50%, 6px) rotate(-0.6deg);
  border-radius: 6px;
}
/* tiny washi-tape anchor pinning the card to the nav */
.submenu::before {
  content: ""; position: absolute;
  top: -7px; left: 50%; width: 48px; height: 14px;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(180deg, oklch(0.91 0.05 75 / .92), oklch(0.86 0.06 75 / .85));
  border-radius: 1px;
  box-shadow: 0 1px 2px oklch(0.30 0.04 60 / .15);
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu > [aria-expanded="true"] + .submenu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) rotate(-0.6deg);
}
.submenu li { margin: 0; }
.submenu li + li { margin-top: 2px; }
.submenu li a {
  display: block;
  padding: 10px 14px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  line-height: 1.25;
}
.submenu li a:hover,
.submenu li a:focus-visible {
  background: var(--euc-wash);
  color: var(--euc-deep);
  transform: translateX(2px);
}
.submenu li a small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.45;
}
.nav .nav-links a.btn { padding: 11px 22px; font-size: 14px; }
.nav .nav-links a.btn-primary { color: var(--bone); }
.nav .nav-links a.btn-nav-ghost { color: var(--ink); }

.nav:has(.nav-submenu-trigger[aria-expanded="true"]) {
  background: color-mix(in oklch, var(--paper-2) 60%, var(--paper));
}

/* === HERO === */
.hero { padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; container-type: inline-size; }
.hero h1 .accent { font-family: 'Caveat', cursive; font-style: normal; color: var(--euc); font-weight: 600; font-size: 1.18em; line-height: 0.85; }
.hero-lede { margin-top: 28px; font-size: 19px; color: var(--ink-2); max-width: 48ch; }
.hero-ctas { margin-top: 38px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Hero constellation — handmade SVG diagram (Spark · NDIS · Veteran · Senior) */
.hero-art {
  margin: 0;
  display: block;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
}
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bone);
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
  transform: rotate(0.4deg);
  transition: transform .35s ease;
}
.hero-art svg:hover { transform: rotate(0deg); }

/* Thread draw-in: each path starts hidden and strokes itself in.
   Final state restores the stitched (5 4) dasharray for the hand-drawn look. */
.hero-art .thread {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: thread-draw 1.05s cubic-bezier(.22,.7,.3,1) forwards;
}
.hero-art .thread-left   { animation-delay: 0.30s; }
.hero-art .thread-center { animation-delay: 0.45s; }
.hero-art .thread-right  { animation-delay: 0.60s; }

/* === MOTION === */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--duration-slow);
  animation-timing-function: var(--ease-standard);
}

@keyframes thread-draw {
  from { stroke-dashoffset: 320; stroke-dasharray: 320; }
  to   { stroke-dashoffset: 0;   stroke-dasharray: 5 4; }
}

/* Halo breathes gently around the central spark */
.hero-art .spark-halo {
  transform-origin: 300px 230px;
  animation: spark-halo-breathe 4s ease-in-out infinite;
}
@keyframes spark-halo-breathe {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}

/* Destination nodes (sprout / compass / hearth) fade in after the threads land */
.hero-art .node {
  opacity: 0;
  animation: node-fade-in 0.55s ease-out forwards;
}
.hero-art .node-sprout  { animation-delay: 0.95s; }
.hero-art .node-compass { animation-delay: 1.10s; }
.hero-art .node-hearth  { animation-delay: 1.25s; }
@keyframes node-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 900px) {
  .hero-art { max-width: 420px; }
}

/* Founder-note vignette — handmade scene replacing the founder photo on /index.
   Kez's photo lives on /about.html; here we evoke the warmth without the face. */
.founder-vignette {
  margin: 0;
  width: 100%;
  max-width: 440px;
  display: block;
}
.founder-vignette svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  background: var(--bone);
  border-radius: 3px;
  padding: 14px 14px 56px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.5deg);
  transition: transform .35s ease;
}
.founder-vignette svg:hover { transform: rotate(0deg) translateY(-2px); }

/* Polaroid photo card */
.polaroid {
  background: var(--bone);
  padding: 14px 14px 56px;
  box-shadow: var(--shadow-paper);
  position: relative;
  transform: rotate(2deg);
  transition: transform .35s ease;
}
.polaroid:hover { transform: rotate(0.4deg) translateY(-2px); }
.polaroid .photo {
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.78 0.05 75), oklch(0.55 0.06 60) 70%),
    var(--paper-2);
  position: relative;
  overflow: hidden;
}
.polaroid .photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.15  0 0 0 0 0.08  0 0 0 0.25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)' opacity='0.4'/></svg>");
  mix-blend-mode: multiply;
}
.polaroid .photo svg.illustration { position: absolute; inset: 0; width: 100%; height: 100%; }
.polaroid .caption {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink-2);
}
.tape {
  position: absolute;
  width: 110px; height: 28px;
  background: var(--tape);
  box-shadow: 0 2px 5px rgba(60,40,20,.12);
  transform: rotate(-5deg);
  top: -14px; left: 36px;
  z-index: 3;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, rgba(255,255,255,.3), rgba(0,0,0,.05));
  clip-path: polygon(0 22%, 6% 8%, 14% 24%, 22% 6%, 30% 22%, 40% 8%, 50% 22%, 60% 6%, 68% 22%, 76% 8%, 84% 22%, 92% 8%, 98% 22%,
                     98% 78%, 92% 92%, 84% 78%, 76% 92%, 68% 78%, 60% 94%, 50% 78%, 40% 92%, 30% 78%, 22% 94%, 14% 76%, 6% 92%, 0 78%);
}
.tape-right { left: auto; right: 30px; transform: rotate(4deg); top: -12px; }

/* Hero meta strip */
.hero-meta { display: flex; gap: 36px; margin-top: 56px; padding-top: 28px; max-width: 580px; position: relative; }
.hero-meta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 4' preserveAspectRatio='none'><path d='M2 2 C 80 1, 160 3, 240 2 S 400 3, 480 2 S 580 2, 598 2' fill='none' stroke='%23b8a88a' stroke-width='1.4' stroke-dasharray='4 4' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
.hero-meta .mono { font-family: 'Caveat', cursive; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ochre-deep); }

/* Section heads */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.section-head h2 { max-width: 16ch; }
.section-head .desc { max-width: 44ch; color: var(--ink-2); }

/* Service cards = paper sheets, slight rotate */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.svc-card {
  display: flex; flex-direction: column;
  background: var(--bone);
  padding: 0;
  box-shadow: var(--shadow-paper);
  position: relative;
  transition: transform .25s ease;
  border-radius: 2px;
}
/* Subtle per-card rotation for hand-placed feel; aligned to the same top edge (v3 had a staircase offset on card 2 — removed per design feedback) */
.svc-card:nth-child(1) { transform: rotate(-1.2deg); }
.svc-card:nth-child(2) { transform: rotate(0.6deg); }
.svc-card:nth-child(3) { transform: rotate(-0.8deg); }
.svc-card:hover { transform: rotate(0deg) translateY(-4px); }
.svc-card .motif {
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
  border-bottom: 1px dashed var(--hairline);
  /* Background comes from .ph-ochre / .ph-euc / .ph-rose so each card
     matches its corresponding service page hero. */
}
/* The SVG motifs are self-explanatory; hide the data-ph caption tag. */
.svc-card .motif::after { display: none; }
.svc-card .motif svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-card .body { padding: 28px 28px 32px; }
.svc-card .tag { font-family: 'Caveat', cursive; font-size: 20px; color: var(--ochre-deep); margin-bottom: 8px; }
.svc-card h3 { margin-bottom: 14px; }
.svc-card p { color: var(--ink-2); font-size: 15.5px; }
.svc-card .link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: 'Caveat', cursive; font-size: 22px; color: var(--euc-deep); }
.svc-card .link::after { content: "→"; transition: transform .2s; }
.svc-card:hover .link::after { transform: translateX(5px); }

/* Pin */
.pin {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.85 0.14 30), oklch(0.46 0.14 28) 70%);
  box-shadow: 0 2px 4px rgba(0,0,0,.25), inset -2px -2px 4px rgba(0,0,0,.25);
  top: -9px; left: 50%; transform: translateX(-50%);
  z-index: 4;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  text-wrap: balance;
  position: relative;
  padding-left: 22px;
}
.quote::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 200' preserveAspectRatio='none'><path d='M3 4 C 5 60, 1 120, 3 196' fill='none' stroke='%23b88146' stroke-width='2.5' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}

.signature { font-family: 'Caveat', cursive; font-size: 38px; color: var(--ink); transform: rotate(-3deg); display: inline-block; line-height: 1; }

/* Approach steps as notebook lines */
.approach { background: var(--paper-2); position: relative; }
.approach::before, .approach::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px; background-size: cover;
}
.approach::before {
  top: -1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'><path d='M0 16 L 0 8 C 60 4, 120 12, 180 6 S 300 14, 360 8 S 480 4, 540 10 S 660 14, 720 6 S 840 12, 900 8 S 1020 14, 1080 6 S 1180 12, 1200 6 L 1200 16 Z' fill='%23f5e9d5'/></svg>") center/100% 100% no-repeat;
}
.approach::after {
  bottom: -1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'><path d='M0 0 L 0 8 C 60 12, 120 4, 180 10 S 300 4, 360 8 S 480 14, 540 6 S 660 4, 720 12 S 840 4, 900 10 S 1020 4, 1080 12 S 1180 4, 1200 10 L 1200 0 Z' fill='%23f5e9d5'/></svg>") center/100% 100% no-repeat;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 8px 0; }
.step { padding: 36px 28px; border-right: 1px dashed var(--hairline); position: relative; }
.step:last-child { border-right: 0; }
.step .num {
  font-family: 'Caveat', cursive;
  font-size: 38px;
  color: var(--ochre-deep);
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  transform: rotate(-3deg);
}
.step h3 { margin-bottom: 10px; font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 400; line-height: 1.2; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* Testimonials = sticky notes */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 20px; }
.tm-card {
  position: relative;
  padding: 38px 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-paper);
  background: oklch(0.96 0.07 95);
  font-family: 'Inter', sans-serif;
  min-height: 320px;
}
.tm-card:nth-child(1) { transform: rotate(-2deg); background: oklch(0.94 0.08 95); }
.tm-card:nth-child(2) { transform: rotate(1.5deg); background: oklch(0.94 0.06 150); margin-top: 14px; }
.tm-card:nth-child(3) { transform: rotate(-1deg); background: oklch(0.95 0.06 30); }
.tm-card .stars { color: var(--ochre-deep); font-size: 18px; letter-spacing: 4px; font-family: 'Caveat', cursive; }
/* a11y: testimonial bodies set in Source Serif italic for readability;
   keep Caveat for short attribution / accents only */
.tm-card blockquote { margin: 0; color: var(--ink); font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 18px; line-height: 1.45; }
.tm-card .who { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(0,0,0,.15); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink-2); font-family: 'Inter', sans-serif; }
.tm-card .who strong { color: var(--ink); font-weight: 600; }
.tm-card .pin { background: radial-gradient(circle at 35% 30%, oklch(0.7 0.18 250), oklch(0.35 0.15 250) 70%); }
.tm-card:nth-child(2) .pin { background: radial-gradient(circle at 35% 30%, oklch(0.85 0.14 30), oklch(0.46 0.14 28) 70%); }
.tm-card:nth-child(3) .pin { background: radial-gradient(circle at 35% 30%, oklch(0.78 0.16 130), oklch(0.4 0.14 140) 70%); }

/* CTA */
.cta-card {
  background: var(--euc);
  color: var(--bone);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-paper);
  border-radius: 2px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    linear-gradient(135deg, oklch(0.42 0.06 150), oklch(0.36 0.06 150));
}
.cta-card .eyebrow { color: var(--ochre); font-family: 'Caveat', cursive; }
.cta-card .eyebrow::before { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23daa760' stroke-width='1.6' stroke-linecap='round'><path d='M2 7 C 8 3, 14 10, 20 6 S 32 3, 38 7'/></svg>") center/contain no-repeat; }
.cta-card h2 { color: var(--bone); max-width: 18ch; }
.cta-card p { margin-top: 18px; color: color-mix(in oklch, var(--bone), transparent 15%); max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.btn-on-dark { color: var(--euc-deep); }
.btn-on-dark::before { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 56' preserveAspectRatio='none'><path d='M28 5 C 70 3, 140 8, 192 4 C 208 5, 217 18, 215 30 C 217 44, 208 53, 188 52 C 130 54, 70 50, 28 53 C 12 52, 4 40, 6 28 C 3 14, 12 7, 28 5 Z' fill='%23faf5e8' stroke='%23faf5e8' stroke-width='1.5'/></svg>") center/100% 100% no-repeat; }
.btn-ghost-dark { color: var(--bone); }
.btn-ghost-dark::before { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 56' preserveAspectRatio='none' fill='none' stroke='%23faf5e8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M28 5 C 70 3, 140 8, 192 4 C 208 5, 217 18, 215 30 C 217 44, 208 53, 188 52 C 130 54, 70 50, 28 53 C 12 52, 4 40, 6 28 C 3 14, 12 7, 28 5 Z'/></svg>") center/100% 100% no-repeat; }

/* === FOOTER === */
.footer {
  background: oklch(0.26 0.025 60);
  color: var(--bone);
  padding: 88px 0 36px;
  margin-top: 40px;
  position: relative;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, oklch(0.26 0.025 60), oklch(0.22 0.025 60));
}
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'><path d='M0 12 L 0 6 C 40 2, 80 10, 120 4 S 200 12, 240 6 S 320 2, 360 8 S 440 12, 480 4 S 560 10, 600 6 S 680 2, 720 8 S 800 12, 840 6 S 920 2, 960 8 S 1040 12, 1080 4 S 1160 10, 1200 6 L 1200 12 Z' fill='%23413628'/></svg>") center/100% 100% no-repeat;
  transform: scaleY(-1);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px dashed color-mix(in oklch, var(--bone), transparent 70%); }
.footer h4, .footer .footer-h { font-family: 'Caveat', cursive; font-size: 22px; color: oklch(0.85 0.13 80); margin-bottom: 14px; font-weight: 500; line-height: 1.2; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: color-mix(in oklch, var(--bone), transparent 18%); font-size: 15px; }
.footer ul a:hover { color: var(--bone); }
.footer .logo { color: var(--bone); }
.footer .logo small { color: oklch(0.85 0.13 80); }
.footer .blurb { margin-top: 20px; color: color-mix(in oklch, var(--bone), transparent 25%); font-size: 14.5px; max-width: 32ch; }

/* Accreditation badges (NDIS Registered Provider, AASW Accredited Social Worker).
   Each badge sits on a bone card so the logos' own white backgrounds blend in
   rather than fighting the dark footer. */
.footer-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
.footer-creds__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--bone);
  border-radius: 10px;
  box-shadow: 0 6px 14px -8px oklch(0.20 0.03 60 / .45);
  transition: transform .18s ease, box-shadow .18s ease;
  /* Counteract footer link styling */
  text-decoration: none;
}
.footer-creds__badge:hover,
.footer-creds__badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px oklch(0.20 0.03 60 / .55);
  outline: 0;
}
.footer-creds__badge img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
}

/* === PAGE-SPECIFIC === */

/* --- senior-care.html --- */
.sen-hero {
  background: linear-gradient(180deg, var(--rose-wash) 0%, var(--bone) 100%);
  border-bottom: 1px solid var(--hairline);
  container-type: inline-size;
}

.sen-hero .eyebrow {
  color: var(--rose-deep);
}

.sen-hero .eyebrow::before {
  background: var(--rose-deep);
}

.sen-hero h1 em {
  color: var(--rose-deep);
  font-style: italic;
}

.hearth {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background: oklch(0.96 0.012 35);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hearth svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.svc-list.rose li .num {
  color: var(--rose-deep);
}

@container (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

.faq:has(details[open]) { background: color-mix(in oklch, var(--paper-2) 50%, var(--paper)); }

/* sen-hero inner grid alignment */
.sen-hero__grid { align-items: end; }

/* Eyebrow rose tint (reusable within senior-care context) */
.sen-eyebrow { color: var(--rose-deep); }
.sen-eyebrow::before { background: var(--rose-deep); }

/* Day-section background */
.sen-day-section {
  background: linear-gradient(180deg, var(--bone) 0%, var(--rose-wash) 100%);
  border-top: 1px solid var(--hairline);
}

/* Timeline card internals */
.sen-time { color: var(--rose-deep); }
.sen-card-h { margin-top: 12px; font-family: 'Source Serif 4', serif; font-size: 22px; }
.sen-card-p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* Memory section */
.sen-memory-grid { align-items: center; gap: 64px; }
.sen-memory-p { margin-top: 20px; color: var(--ink-2); font-size: 17px; }
.sen-photo { aspect-ratio: 5/4; border-radius: var(--r-lg); }

/* FAQ section */
.sen-faq { border-top: 1px solid var(--hairline); }
.sen-faq__inner { max-width: 860px; }
.sen-faq__heading { margin-top: 18px; margin-bottom: 32px; }


/* === Migrated page-specific CSS (concatenated from _migrate/) === */

/* --- contact --- */
/* migrated from v4/editorial/contact.html — landing in styles.css PAGE-SPECIFIC */

/* ─── Accessibility utility ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Contact layout ─────────────────────────────────────────────── */
.contact-section {
  padding-top: var(--space-7); /* 48px — maps to original 72px via --section-xs token */
}

.contact-grid {
  gap: var(--space-8); /* 64px */
  align-items: start;
}

/* ─── Form column intro text ─────────────────────────────────────── */
.contact-intro h2 {
  margin-top: 18px;
  margin-bottom: 10px;
}

.contact-intro p {
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 18px;
  font-size: 15.5px;
}

.contact-intro .referral-link-wrap {
  margin-bottom: 30px;
  font-size: 15.5px;
}

.contact-intro .referral-link {
  color: var(--euc-deep);
  text-decoration: underline;
  font-weight: 500;
}

/* ─── Submit button — full-width override ────────────────────────── */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 18px;
}

/* ─── Privacy footnote ───────────────────────────────────────────── */
.form-notice {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
}

/* ─── Success / confirmation panel (alert--success semantic) ─────── */
.alert--success {
  padding: 32px;
  background: var(--success-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}

.alert--success h3 {
  margin-top: 14px;
}

.alert--success p {
  margin-top: 12px;
  color: var(--ink-2);
}

.alert--success a {
  color: var(--euc-deep);
  text-decoration: underline;
}

/* ─── Aside contact cards ────────────────────────────────────────── */
.contact-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Base card — dark eucalypt (phone / email / regions) */
.contact-card {
  background: var(--euc);
  color: var(--bone);
  border-radius: var(--r-md);
  padding: 32px;
}

.contact-card .eyebrow {
  color: var(--ochre);
}

.contact-card h3 {
  margin-top: 14px;
  color: var(--bone);
  font-size: 26px;
}

.contact-card .hours {
  margin-top: 10px;
  color: color-mix(in oklch, var(--bone), transparent 20%);
}

.contact-card hr {
  border: 0;
  border-top: 1px solid color-mix(in oklch, var(--bone), transparent 80%);
  margin: 24px 0;
}

.contact-card .mono {
  color: var(--ochre);
}

.contact-card .card-label-row {
  margin-top: 6px;
}

.contact-card .card-label-row a {
  color: var(--bone);
  text-decoration: underline;
}

.contact-card .card-region {
  margin-top: 6px;
  color: color-mix(in oklch, var(--bone), transparent 10%);
}

/* Variant — bone (emergency numbers) */
.contact-card--bone {
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.contact-card--bone p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.contact-card--bone ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  color: var(--ink);
}

/* Variant — ochre-wash (accessibility note) */
.contact-card--ochre {
  background: var(--ochre-wash);
}

.contact-card--ochre .mono {
  color: var(--ochre-deep);
}

.contact-card--ochre p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* --- fees --- */
/* migrated from v4/editorial/fees.html — landing in styles.css PAGE-SPECIFIC */

.fund-card {
  border-radius: var(--r-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

.fund-card .top-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.fund-card h3 {
  font-size: 26px;
  line-height: 1.2;
}

.fund-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fund-card ul li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
}

.fund-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
}

/* Variant: NDIS — ochre */
.fund-ndis {
  background: oklch(0.98 0.018 80);
}

.fund-ndis .top-rule {
  background: var(--ochre);
}

.fund-ndis ul li::before {
  background: var(--ochre-deep);
}

.fund-ndis .tag {
  background: oklch(0.92 0.07 75);
  color: oklch(0.35 0.08 55);
}

/* Variant: DVA — deep eucalypt */
.fund-dva {
  background: var(--euc);
  color: var(--bone);
  border-color: var(--euc-deep);
}

.fund-dva .top-rule {
  background: var(--ochre);
}

.fund-dva ul li {
  color: color-mix(in oklch, var(--bone), transparent 15%);
}

.fund-dva ul li::before {
  background: var(--ochre);
}

.fund-dva .tag {
  background: var(--ochre);
  color: var(--euc-deep);
}

.fund-dva .subtle {
  color: color-mix(in oklch, var(--bone), transparent 20%);
}

/* Variant: Medicare — navy */
.fund-medi {
  background: oklch(0.97 0.012 240);
}

.fund-medi .top-rule {
  background: var(--navy);
}

.fund-medi ul li::before {
  background: var(--navy);
}

.fund-medi .tag {
  background: oklch(0.9 0.04 240);
  color: var(--navy);
}

/* Variant: Private — dusty rose */
.fund-private {
  background: oklch(0.98 0.015 25);
}

.fund-private .top-rule {
  background: var(--rose-deep);
}

.fund-private ul li::before {
  background: var(--rose-deep);
}

.fund-private .tag {
  background: oklch(0.92 0.05 30);
  color: var(--rose-deep);
}

.tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.headline-band {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  max-width: 18ch;
}

.fund-dva .headline-band {
  color: var(--bone);
}

/* --- keilor-east-residence --- */
/* migrated from v4/editorial/keilor-east-residence.html — landing in styles.css PAGE-SPECIFIC */

.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.property-gallery .main-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  /* Match the right-column stack height (two 4/3 side-photos) rather than
     a fixed 16/9 — prevents the grid row from leaving empty space below */
  height: 100%;
  min-height: 100%;
}
.property-gallery .main-photo .ph-photo { height: 100%; }

.property-gallery .side-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-gallery .side-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  flex: 1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16.5px;
  color: var(--ink-2);
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--euc);
  font-weight: bold;
  font-family: 'Caveat', cursive;
  font-size: 20px;
}

@media (max-width: 900px) {
  .property-gallery {
    grid-template-columns: 1fr;
  }

  .property-gallery .side-photos {
    flex-direction: row;
  }
}

/* --- ndis --- */
/* migrated from v4/editorial/ndis.html — landing in styles.css PAGE-SPECIFIC */

.ndis-hero {
  background: linear-gradient(180deg, var(--ochre-wash) 0%, var(--bone) 100%);
  border-bottom: 1px solid var(--hairline);
}

.ndis-hero .eyebrow {
  color: var(--ochre-deep);
}

.ndis-hero .eyebrow::before {
  background: var(--ochre-deep);
}

.ndis-hero h1 em {
  color: var(--ochre-deep);
  font-style: italic;
}

.sprout {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background: var(--cream);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.sprout svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.svc-list.ochre li .num {
  color: var(--ochre-deep);
}

/* --- referral --- */
/* migrated from v4/editorial/referral.html — landing in styles.css PAGE-SPECIFIC */

    /* Inline-style replacements — extracted during v4 architecture refactor */
    .hero-split {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 40px;
      flex-wrap: wrap;
    }

    .hero-heading { margin-top: 18px; max-width: 20ch; }
    .hero-lede    { margin-top: 18px; max-width: 60ch; }

    .ref-body { padding: 56px 0 96px; }

    .ref-fieldset { border: 0; padding: 0; margin: 0 0 28px; }

    .ref-grid--mt { margin-top: 18px; }

    .ref-consent-label {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-weight: 400;
      cursor: pointer;
      line-height: 1.5;
    }

    .ref-consent-check { margin-top: 4px; }

    .ref-contact-label { margin-bottom: 6px; }
    .ref-contact-link  { margin-bottom: 14px; }
    /* Referral page — light, warm-paper theme aligned with /contact.
       Markup keeps the .ref-shell hook; styles match the global .field
       aesthetic used on the contact form (Caveat labels, paper-shadow
       inputs, euc focus rings). */
    .ref-shell {
      background: var(--paper);
      color: var(--ink);
    }

    .ref-shell .page-hero {
      padding: 64px 0 44px;
    }

    .ref-shell h1 em {
      font-family: inherit;
      font-style: italic;
      font-size: inherit;
      color: var(--euc);
    }

    /* Form card */
    .ref-card {
      background: var(--bone);
      border: 1px solid var(--hairline);
      border-radius: 2px;
      padding: 40px;
      box-shadow: var(--shadow-paper);
    }

    .ref-card legend {
      font-family: 'Caveat', cursive;
      font-size: 24px;
      color: var(--ochre-deep);
      padding: 0;
      margin: 0 0 6px;
    }

    .ref-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 18px;
    }

    .ref-field label {
      font-family: 'Caveat', cursive;
      font-size: 18px;
      color: var(--ochre-deep);
      text-transform: none;
      letter-spacing: 0;
    }

    .ref-field input,
    .ref-field select,
    .ref-field textarea {
      font-family: inherit;
      font-size: 16px;
      padding: 14px 16px;
      background: var(--paper);
      border: 0;
      color: var(--ink);
      transition: box-shadow .2s ease;
      box-shadow: var(--shadow-paper);
      border-radius: 2px;
    }

    .ref-field input:focus,
    .ref-field select:focus,
    .ref-field textarea:focus {
      outline: none;
      box-shadow: var(--shadow-paper), 0 0 0 2px var(--euc);
    }

    .ref-field select option {
      background: var(--bone);
      color: var(--ink);
    }

    .ref-field textarea {
      min-height: 140px;
      resize: vertical;
    }

    .ref-field .hint {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--ink-2);
      text-transform: none;
      letter-spacing: 0;
      margin-top: -4px;
      line-height: 1.4;
    }

    .ref-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }
    .ref-grid .full { grid-column: 1 / -1; }

    /* Radio-card "Referral type" picker */
    .ref-types {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 6px;
    }

    .ref-types label {
      display: flex;
      gap: 10px;
      align-items: center;
      padding: 14px 16px;
      border: 1px solid var(--hairline);
      border-radius: 2px;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      letter-spacing: 0;
      text-transform: none;
      color: var(--ink);
      background: var(--paper);
      box-shadow: var(--shadow-paper);
      transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    }

    .ref-types label:hover { background: var(--bone-2); }

    .ref-types input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .ref-types input:checked + span { color: var(--ochre-deep); font-weight: 500; }

    .ref-types label:has(input:checked) {
      border-color: var(--ochre);
      background: color-mix(in oklch, var(--ochre), transparent 88%);
      color: var(--ochre-deep);
      box-shadow: var(--shadow-paper), 0 0 0 2px var(--ochre);
    }

    /* Actions */
    .ref-actions {
      display: flex;
      gap: 14px;
      margin-top: 22px;
      flex-wrap: wrap;
    }

    .btn-ochre {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: var(--euc);
      color: var(--bone);
      border: 0;
      border-radius: 2px;
      padding: 16px 24px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
      transition: background .2s ease, transform .2s ease;
    }

    .btn-ochre:hover {
      background: var(--euc-deep);
      transform: translateY(-1px);
    }

    .btn-outline-light {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: transparent;
      color: var(--ink);
      border: 1px solid var(--ink);
      border-radius: 2px;
      padding: 15px 23px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
      transition: background .2s ease, color .2s ease;
    }

    .btn-outline-light:hover {
      background: var(--ink);
      color: var(--bone);
    }

    .ref-privacy {
      font-size: 13px;
      color: var(--ink-3);
      margin-top: 18px;
      line-height: 1.5;
    }

    /* Sidebar widgets: Who refers · Response times · Direct contact */
    .ref-sidebar h4 {
      font-family: 'Caveat', cursive;
      font-size: 22px;
      letter-spacing: 0;
      text-transform: none;
      color: var(--ochre-deep);
      margin-bottom: 12px;
    }

    .ref-sidebar .card {
      background: var(--bone);
      border: 1px solid var(--hairline);
      border-radius: 2px;
      padding: 28px;
      margin-bottom: 20px;
      box-shadow: var(--shadow-paper);
    }

    .ref-sidebar .card p {
      color: var(--ink-2);
      font-size: 14.5px;
      line-height: 1.6;
    }

    .ref-sidebar .card strong { color: var(--ink); }

    .ref-sidebar .card a {
      color: var(--euc-deep);
      text-decoration: underline;
    }

    /* Submitted state */
    .ref-sent {
      padding: 32px;
      border: 1px solid var(--euc);
      border-radius: 2px;
      background: var(--euc-wash);
    }

    .ref-sent h2 {
      color: var(--ink);
      margin-top: 14px;
    }

    .ref-sent p {
      margin-top: 12px;
      color: var(--ink-2);
    }

    .ref-grid-2 {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 40px;
    }

    @media (max-width: 900px) {
      .ref-grid,
      .ref-grid-2,
      .ref-types {
        grid-template-columns: 1fr;
      }
    }

/* --- veteran --- */
/* migrated from v4/editorial/veteran.html — landing in styles.css PAGE-SPECIFIC */

.vet-hero {
  background: linear-gradient(180deg, var(--euc-wash) 0%, var(--bone) 100%);
  border-bottom: 1px solid var(--hairline);
}

.vet-hero h1 em {
  color: var(--euc);
  font-style: italic;
}

.compass {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background: var(--bone);
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.compass svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* === UTILITIES === (added during propagation consolidation; classes invented by per-page agents) */

/* Spacing — top margins (abstract scale) */
.mt-sm { margin-top: var(--space-2); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-5); }
.mt-xl { margin-top: var(--space-6); }

/* Spacing — explicit px (from inline-style migration; pre-existing values preserved) */
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mb-32 { margin-bottom: 32px; }

/* Padding */
.pt-lg { padding-top: var(--section-sm); }

/* Text colour */
.text-bone { color: var(--bone); }
.text-euc { color: var(--euc); }
.text-ink-2 { color: var(--ink-2); }
.text-ochre { color: var(--ochre); }
.text-ochre-deep { color: var(--ochre-deep); }
.text-rose-deep { color: var(--rose-deep); }
.accent-ochre { color: var(--ochre-deep); font-style: italic; }
.ochre-accent { color: var(--ochre-deep); }

/* Background */
.bg-paper-2 { background: var(--paper-2); }
.ochre-bg { background: var(--ochre-wash); }

/* Typography */
.text-sm { font-size: var(--t-small); }
.body-md { font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink); }
.body-text { font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink-2); }
.lede-sub { font-size: var(--t-body); color: var(--ink-2); }
.hero-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: var(--t-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tk-display);
  color: var(--ink);
  font-variation-settings: "opsz" 36;
}
.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tk-h2);
  color: var(--ink);
  margin-top: var(--space-5);
  font-variation-settings: "opsz" 32;
}

/* Layout */
.align-start { align-items: flex-start; }
.center { justify-content: center; }
.grid-gap-lg { gap: var(--space-7); }

/* Components */
.button-group { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
/* .btn already provides a hand-drawn SVG outline via ::before — these variants
   must not add their own CSS border (would ghost the hand-drawn outline). */
.btn-ghost { /* semantic marker only; visually identical to default .btn */ }
.btn-inverse { color: var(--ink); }
.btn-inverse::before {
  /* swap the SVG outline for a filled-bone variant so this CTA reads
     differently from the default ghost outline next to it */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 56' preserveAspectRatio='none'><path d='M28 5 C 70 3, 140 8, 192 4 C 208 5, 217 18, 215 30 C 217 44, 208 53, 188 52 C 130 54, 70 50, 28 53 C 12 52, 4 40, 6 28 C 3 14, 12 7, 28 5 Z' fill='%23fcf8ed' stroke='%233a3025' stroke-width='1.6'/></svg>") center/100% 100% no-repeat;
}
.divider { height: 1px; background: var(--hairline); border: 0; margin: var(--space-5) 0; }

/* === A11Y === */
:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: var(--r-sm);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
@media (max-width: 540px) {
  .footer-creds__badge img { height: 56px; }
}
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: color-mix(in oklch, var(--bone), transparent 40%); }
.acknowledgement { margin-top: 36px; padding: 22px 26px; border: 1px dashed color-mix(in oklch, var(--bone), transparent 75%); font-size: 13.5px; color: color-mix(in oklch, var(--bone), transparent 20%); max-width: 760px; line-height: 1.6; border-radius: 2px; }
.acknowledgement .flags { display: flex; gap: 12px; align-items: center; }
.acknowledgement .flags svg { border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in oklch, var(--bone), transparent 75%); display: block; }

/* Margin scribble — absolute hand-drawn note */
.margin-note {
  position: absolute;
  font-family: 'Caveat', cursive;
  color: var(--ochre-deep);
  font-size: 24px;
  line-height: 1.1;
  max-width: 220px;
  pointer-events: none;
}
.margin-note::before {
  content: ""; position: absolute; width: 90px; height: 30px; right: -90px; top: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 30' fill='none' stroke='%23b88146' stroke-width='1.6' stroke-linecap='round'><path d='M2 22 C 20 18, 35 6, 60 8 S 88 12, 86 14 M82 9 C 84 11, 86 13, 86 14 C 84 14, 82 14, 80 14'/></svg>") center/contain no-repeat;
}

/* Stamp */
.stamp {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border: 2px solid var(--rose-deep);
  color: var(--rose-deep);
  transform: rotate(-6deg);
  opacity: 0.85;
  position: relative;
  font-weight: 600;
}
.stamp::after {
  content: ""; position: absolute; inset: -3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='r'><feTurbulence baseFrequency='1.5' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -2 1.5'/></filter><rect width='100%25' height='100%25' filter='url(%23r)' fill='white'/></svg>");
  mix-blend-mode: lighten;
  pointer-events: none;
  opacity: 0.6;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 10px 12px; cursor: pointer;
  font-family: 'Caveat', cursive; font-size: 22px; color: var(--ink);
  align-items: center; gap: 8px;
}
.nav-toggle .bars { display: inline-block; width: 22px; height: 14px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 6px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }

/* Submenu: also open when the trigger button is aria-expanded */
.has-submenu > [aria-expanded="true"] + .submenu { opacity: 1; pointer-events: auto; transform: translateX(-50%) rotate(-0.5deg); }

/* Form hint text */
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: -4px; line-height: 1.4; }
.field .err { font-size: 13px; color: var(--rose-deep); margin-top: 6px; line-height: 1.4; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  box-shadow: var(--shadow-paper), 0 0 0 2px var(--rose-deep);
}
.req { color: var(--rose-deep); margin-left: 4px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .svc-grid, .tm-grid, .footer-grid, .steps, .cta-card { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .step { border-right: 0; border-bottom: 1px dashed var(--hairline); }
  /* --section-py override retired — --section-md clamps to 80px min on mobile */
  .svc-card:nth-child(2) { margin-top: 0; }
  .margin-note { display: none; }

  /* a11y: replace hidden nav with a disclosure menu */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); padding: 12px 16px;
    box-shadow: var(--shadow-paper);
    z-index: 60;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 6px; border-bottom: 1px dashed var(--hairline); font-size: 16px; }
  .nav-links li:last-child a { border-bottom: 0; }
  .has-submenu .submenu {
    position: static; transform: none !important; min-width: 0; padding: 0 0 8px 16px;
    box-shadow: none; opacity: 1; pointer-events: auto;
    display: none;
  }
  .has-submenu > [aria-expanded="true"] + .submenu { display: block; }
  .nav .nav-links a.btn { width: 100%; justify-content: center; margin-top: 6px; }
}

.skip-link { position: fixed; left: 8px; top: 8px; padding: 10px 14px; background: var(--ink); color: var(--bone); z-index: 1000; font-size: 14px; border-radius: 4px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip-path: none; width: auto; height: auto; overflow: visible; outline: 3px solid var(--ochre-deep); outline-offset: 2px; }

/* Context overrides for the token-wired :focus-visible rule under A11Y.
   The base ring is defined once at the top of A11Y using --focus tokens;
   these only adjust offset or swap colour on dark surfaces. */
.btn:focus-visible, .nav-links a:focus-visible, .svc-card:focus-visible { outline-offset: 3px; }
.cta-card :focus-visible, .accent-box :focus-visible, .footer :focus-visible {
  outline-color: var(--bone);
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .polaroid, .svc-card, .tm-card, .pill, .eyebrow, .hand-note, .signature, .step .num, .stamp { transform: none !important; }
  .polaroid:hover, .svc-card:hover, .btn:hover { transform: none !important; }
}

/* ============ Inner-page support (v1 class names re-themed) ============ */

/* Page hero */
.page-hero { padding: 80px 0 56px; position: relative; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 6' preserveAspectRatio='none'><path d='M2 3 C 100 1, 200 5, 300 2 S 500 5, 600 3 S 800 1, 900 4 S 1100 2, 1198 3' fill='none' stroke='%23b8a88a' stroke-width='1.2' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
.page-hero .crumbs {
  font-family: 'Caveat', cursive; font-size: 20px;
  color: var(--ochre-deep); margin-bottom: 28px;
  display: flex; gap: 10px; align-items: center;
  transform: rotate(-1deg); transform-origin: left;
}
.page-hero .crumbs a { color: var(--euc-deep); }
.page-hero .crumbs span { color: var(--hairline-2, #b8a88a); }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 68px); max-width: 18ch; }
.page-hero h1 em { font-family: 'Caveat', cursive; font-style: normal; color: var(--euc); font-size: 1.18em; line-height: 0.9; font-weight: 600; }
.page-hero p.lede { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }

/* Pills — re-themed as washi/kraft labels */
.pill {
  display: inline-block; padding: 6px 12px;
  background: var(--euc-wash); color: var(--euc-deep);
  font-family: 'Caveat', cursive; font-size: 17px;
  font-weight: 500; letter-spacing: 0;
  border-radius: 999px;
  transform: rotate(-1deg);
}
.pill-ochre { background: var(--ochre-wash); color: var(--ochre-deep); transform: rotate(1deg); }
.pill-rose { background: oklch(0.93 0.04 30); color: var(--rose-deep); transform: rotate(-1.5deg); }
.pill-navy { background: oklch(0.92 0.04 240); color: oklch(0.32 0.06 245); transform: rotate(1.2deg); }

/* Belief / paper card (used on About) — paper sheet with hand-drawn top accent */
.paper-card {
  background: var(--bone); padding: 32px;
  box-shadow: var(--shadow-paper);
  position: relative; border-radius: 2px;
}
.paper-card::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 4 C 30 1, 60 7, 100 3 S 170 1, 198 5' fill='none' stroke='%23425e44' stroke-width='2.5' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}

/* Image placeholder (.ph) — re-styled as hatched kraft */
.ph {
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, oklch(0.86 0.03 80) 0 8px, oklch(0.9 0.03 80) 8px 16px);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-paper);
}
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 14px; bottom: 14px;
  font-family: 'Caveat', cursive; font-size: 18px;
  color: var(--ink-2);
  background: var(--bone); padding: 4px 10px;
  border-radius: 2px;
  transform: rotate(-2deg);
}
/* Service-color placeholders — gradient washes matching each service page hero
   (ndis.html .ndis-hero, veteran.html .vet-hero, senior-care.html .sen-hero).
   These are used by service-card motifs on index.html and by the services overview hero slots. */
.ph-ochre { background: linear-gradient(180deg, var(--ochre-wash) 0%, var(--bone) 100%); background-image: linear-gradient(180deg, var(--ochre-wash) 0%, var(--bone) 100%); }
.ph-euc   { background: linear-gradient(180deg, var(--euc-wash)   0%, var(--bone) 100%); background-image: linear-gradient(180deg, var(--euc-wash)   0%, var(--bone) 100%); }
.ph-rose  { background: linear-gradient(180deg, var(--rose-wash)  0%, var(--bone) 100%); background-image: linear-gradient(180deg, var(--rose-wash)  0%, var(--bone) 100%); }

/* ─────────────────────────────────────────────────────────────
   Photo-pending placeholder (.ph-photo)
   Used on residence pages where real photos haven't been
   produced yet. Replaces the generic hatched kraft .ph stub
   with an honest, human-centric "photos arriving soon" card
   that invites the visitor to book a real walkthrough.
   ───────────────────────────────────────────────────────────── */
.ph-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 26px;
  gap: 10px;
  background: var(--paper-2);
  border: 1px dashed color-mix(in oklch, var(--ink-2), transparent 65%);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  isolation: isolate;
}
/* Soft tinted wash variants — match the existing .ph-* gradient families
   so a residence card can keep its colour story (now ochre by default,
   euc and rose available for future variety). */
.ph-photo--ochre { background: linear-gradient(180deg, var(--ochre-wash) 0%, var(--bone) 100%); }
.ph-photo--euc   { background: linear-gradient(180deg, var(--euc-wash)   0%, var(--bone) 100%); }
.ph-photo--rose  { background: linear-gradient(180deg, var(--rose-wash)  0%, var(--bone) 100%); }

/* Faint notebook hatching layered behind content for warmth without noise */
.ph-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    color-mix(in oklch, var(--ochre), transparent 88%) 0 1px,
    transparent 1px 14px);
  z-index: -1;
  pointer-events: none;
}

.ph-photo__icon {
  width: 56px;
  height: auto;
  opacity: 0.78;
  margin-bottom: 2px;
  transform: rotate(-2deg);
}
.ph-photo__head {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.ph-photo__body {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 30ch;
}
.ph-photo__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ochre-deep);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid color-mix(in oklch, var(--ochre-deep), transparent 60%);
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.ph-photo__cta::after {
  content: "→";
  transition: transform .15s ease;
}
.ph-photo__cta:hover,
.ph-photo__cta:focus-visible {
  background: var(--bone);
  border-color: var(--ochre-deep);
  transform: translateX(2px);
  outline: 0;
}
.ph-photo__cta:hover::after,
.ph-photo__cta:focus-visible::after {
  transform: translateX(2px);
}
/* Tiny corner tag naming what subject the photo will be — keeps the
   page useful for visitors even before the image lands */
.ph-photo__subject {
  position: absolute;
  bottom: 12px; left: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: color-mix(in oklch, var(--bone), transparent 12%);
  padding: 4px 8px;
  border-radius: 2px;
}
/* Compact variant for smaller thumbnails (side photos, virtual tour) */
.ph-photo--compact {
  padding: 20px 18px;
  gap: 6px;
}
.ph-photo--compact .ph-photo__icon { width: 40px; }
.ph-photo--compact .ph-photo__head { font-size: 21px; }
.ph-photo--compact .ph-photo__body { font-size: 13px; max-width: 24ch; }
.ph-photo--compact .ph-photo__cta { font-size: 13px; padding: 5px 10px; }
.ph-photo--compact .ph-photo__subject { font-size: 9px; bottom: 8px; left: 10px; }

@media (prefers-reduced-motion: reduce) {
  .ph-photo__cta,
  .ph-photo__cta::after { transition: none; }
}

/* Services-overview hero motifs: the constellation family, larger format (5:4) */
.svc-motif-lg { position: relative; overflow: hidden; }
.svc-motif-lg::after { display: none; }
.svc-motif-lg svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.svc-motif-lg .svc-thread {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: svc-thread-draw 1.15s cubic-bezier(.22,.7,.3,1) forwards;
  animation-delay: 0.35s;
}
@keyframes svc-thread-draw {
  from { stroke-dashoffset: 280; stroke-dasharray: 280; }
  to   { stroke-dashoffset: 0;   stroke-dasharray: 5 4; }
}
.svc-motif-lg .spark-glyph {
  transform-origin: center;
  animation: svc-spark-pulse 3.6s ease-in-out infinite;
}
@keyframes svc-spark-pulse {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 1; }
}

/* Generic grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; container-type: inline-size; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; container-type: inline-size; }

/* Service list */
.svc-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px dashed var(--hairline);
}
.svc-list li {
  padding: 22px 0; border-bottom: 1px dashed var(--hairline);
  display: flex; align-items: baseline; gap: 16px; font-size: 17px;
}
.svc-list li:nth-child(odd) { padding-right: 24px; border-right: 1px dashed var(--hairline); }
.svc-list li:nth-child(even) { padding-left: 24px; }
.svc-list li .num {
  font-family: 'Caveat', cursive; font-size: 22px;
  color: var(--ochre-deep); flex-shrink: 0; width: 36px;
}

/* FAQ */
.faq details { border-bottom: 1px dashed var(--hairline); padding: 22px 0; }
.faq details[open] summary { color: var(--euc-deep); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 400; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Caveat', cursive; font-size: 32px; color: var(--ochre-deep); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; color: var(--euc); }
.faq details p { margin-top: 14px; color: var(--ink-2); max-width: 72ch; }

/* === CARDS & PRIMITIVES === */

.card-warm {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 32px;
}

.card {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--space-5) var(--space-5);
  box-shadow: var(--shadow-paper);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

@media (hover: hover) {
  .card:hover {
    box-shadow: var(--shadow-paper-lg);
    transform: translateY(-2px);
  }
}

.card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

.card--quiet {
  background: var(--paper-2);
  box-shadow: none;
}

.card--featured {
  border-color: var(--euc-deep);
  background: var(--euc-wash);
}

/* Alert — paired with --success / --warning / --error tokens */
.alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-3);
  border-radius: var(--r-md);
  border-left: 4px solid;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
}
.alert .alert__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}
.alert .alert__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15.5px;
  margin: 0 0 var(--space-1);
  color: var(--ink);
}
.alert .alert__body {
  color: var(--ink-2);
  margin: 0;
}
.alert--success { background: var(--success-wash); border-left-color: var(--success); }
.alert--success .alert__icon { background: var(--success); }
.alert--warning { background: var(--warning-wash); border-left-color: var(--warning); }
.alert--warning .alert__icon { background: var(--warning); color: var(--ink); }
.alert--error   { background: var(--error-wash); border-left-color: var(--error); }
.alert--error   .alert__icon { background: var(--error); }

/* Pill + badge */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--euc-wash);
  color: var(--euc-deep);
  font-size: var(--t-small);
}
.pill--ochre { background: var(--ochre-wash); color: var(--ochre-deep); }
.pill--rose  { background: var(--rose-wash);  color: var(--rose-deep); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--bone);
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Stack + cluster — flow helpers */
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--sm { gap: var(--space-2); }
.stack--lg { gap: var(--space-6); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }
.cluster--between { justify-content: space-between; }

/* Reveal — toggled by reveal.js IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-slow) var(--ease-standard);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* === FORMS === */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: 'Caveat', cursive; font-size: 18px; color: var(--ochre-deep); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 16px;
  padding: 14px 16px;
  background: var(--bone);
  border: 0;
  color: var(--ink);
  transition: box-shadow .2s;
  box-shadow: var(--shadow-paper);
  border-radius: 2px;
  position: relative;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  box-shadow: var(--shadow-paper), 0 0 0 2px var(--euc);
}
.field textarea { min-height: 140px; resize: vertical; }

/* Dark accent box on contact aside */
.accent-box {
  background: var(--euc); color: var(--bone);
  padding: 32px; border-radius: 2px;
  box-shadow: var(--shadow-paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    linear-gradient(135deg, oklch(0.42 0.06 150), oklch(0.36 0.06 150));
  position: relative;
}
.accent-box .eyebrow { color: var(--ochre); }
.accent-box .eyebrow::before { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23daa760' stroke-width='1.6' stroke-linecap='round'><path d='M2 7 C 8 3, 14 10, 20 6 S 32 3, 38 7'/></svg>") center/contain no-repeat; }

.tm-card .stars { color: oklch(0.46 0.14 50); }

/* ─────────────────────────────────────────────────────────────
   Victoria service map (about.html)
   Architecture: SVG renders the visual layer (outline + dots);
   invisible HTML buttons sit absolutely on top to handle hover/
   click/keyboard, toggling cards via data-open.
   ───────────────────────────────────────────────────────────── */
.vic-map {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1px solid var(--hairline);
  /* overflow visible so cards can sit outside the map's bbox on desktop */
  overflow: visible;
}
.vic-map > svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}
.vic-pin { cursor: default; }
.vic-pin circle.dot {
  transition: r .24s cubic-bezier(.2,.7,.3,1),
              stroke-width .24s ease,
              stroke-opacity .24s ease;
}
.vic-pin[data-active="true"] circle.dot {
  r: 9;
  stroke: var(--ink-2);
  stroke-width: 7;
  stroke-opacity: 0.18;
}
@media (prefers-reduced-motion: reduce) {
  .vic-pin circle.dot { transition: none; }
}

/* Invisible button overlay — sits over the SVG dots,
   absolutely positioned via --cx / --cy custom properties */
.vic-map__pins {
  position: absolute; inset: 0;
  pointer-events: none;
}
.vic-pin-btn {
  position: absolute;
  left: var(--cx); top: var(--cy);
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  /* hide button's text visually but keep it accessible */
  color: transparent;
  font: 0/0 a;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.vic-pin-btn[data-tier="metro"] {
  width: 56px; height: 56px;
}
.vic-pin-btn:focus-visible {
  outline: 2px solid var(--euc-deep, var(--euc));
  outline-offset: 4px;
}

/* Cards — desktop popovers above the pin */
.vic-map__cards { position: absolute; inset: 0; pointer-events: none; }
.vic-card {
  position: absolute;
  left: var(--cx); top: var(--cy);
  width: 280px;
  background: var(--bone);
  padding: 18px 20px 16px;
  border-radius: 6px;
  box-shadow:
    0 18px 36px -18px oklch(0.30 0.04 60 / .32),
    0 4px 12px -4px oklch(0.30 0.04 60 / .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 22px)) translateY(6px) rotate(-0.4deg);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.3,1);
  z-index: 5;
  font-family: 'Inter', sans-serif;
  text-align: left;
}
.vic-card[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 22px)) rotate(-0.4deg);
}
/* Washi-tape anchor, matching .submenu's recipe */
.vic-card::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 48px; height: 14px;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(180deg, oklch(0.91 0.05 75 / .92), oklch(0.86 0.06 75 / .85));
  border-radius: 1px;
  box-shadow: 0 1px 2px oklch(0.30 0.04 60 / .15);
}
.vic-card__title {
  margin: 0 28px 6px 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.vic-card__close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s ease, color .15s ease;
}
.vic-card__close:hover,
.vic-card__close:focus-visible {
  background: var(--euc-wash);
  color: var(--ink);
  outline: 0;
}
.vic-card__body {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 10px;
}
.vic-card__services {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 12px;
}
.vic-card__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vic-card__links a {
  display: inline-flex;
  align-items: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--euc-deep);
  text-decoration: none;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 4px;
  transition: background .15s ease, transform .15s ease;
}
.vic-card__links a::after {
  content: "→";
  margin-left: 6px;
  transition: transform .15s ease;
}
.vic-card__links a:hover,
.vic-card__links a:focus-visible {
  background: var(--euc-wash);
  transform: translateX(2px);
  outline: 0;
}
.vic-card__links a:hover::after,
.vic-card__links a:focus-visible::after {
  transform: translateX(2px);
}

/* Scrim for mobile bottom-sheet backdrop */
.vic-scrim {
  position: fixed; inset: 0;
  background: oklch(0.30 0.04 60 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 50;
}
.vic-scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: cards become a fixed bottom sheet */
@media (max-width: 720px) {
  .vic-card {
    position: fixed;
    left: 0 !important;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    padding: 26px 24px 32px;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%) rotate(0);
    z-index: 60;
  }
  .vic-card[data-open="true"] {
    transform: translateY(0) rotate(0);
  }
  .vic-card::before {
    /* swap washi tape for a sheet drag handle */
    top: 10px;
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--hairline-2, var(--hairline));
    transform: translateX(-50%);
    box-shadow: none;
  }
  .vic-card__title {
    margin-top: 12px;
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vic-card,
  .vic-scrim,
  .vic-card__links a {
    transition: none;
  }
}
