/* ==========================================================================
   Monica Sinden-Kruger | shared stylesheet for all three pages

   1  Fonts + themes        5  Header + navigation    9   Home
   2  Patterns + texture    6  Buttons + links        10  How I Can Help
   3  Base + type           7  Page headers           11  Contact
   4  Colour theme bar      8  Shared pieces         12  Closing + footer + motion

   Concept: a quiet consulting room. Soft light that slowly breathes, smooth
   stones, one line-drawn sprig, and an evening-coloured band where the
   deeper work is described. Visitors choose one of four colour themes from
   the bar at the top; it is remembered (localStorage + cookie, key
   "msk-theme") and re-applied on every page and visit (js/theme-init.js).
   ========================================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; }

/* ------------------------------------------------------------------
   1. FONTS + THEMES
   Fonts are bundled in /fonts, so the site needs no outside services.
   1 Red, Pink, White      2 Red, Pink, Black
   3 Blue, Green, White    4 Blue, Green, Black
------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
}

:root {
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* smooth-stone silhouettes */
  --stone-a: 54% 46% 48% 52% / 46% 55% 45% 54%;
  --stone-b: 47% 53% 57% 43% / 55% 44% 56% 45%;
  --stone-c: 58% 42% 45% 55% / 49% 57% 43% 51%;
  /* smoother pebbles for the small shapes */
  --pebble-a: 50% 50% 50% 50% / 57% 57% 43% 43%;
  --pebble-b: 50% 50% 50% 50% / 43% 43% 57% 57%;
  --pebble-c: 57% 43% 43% 57% / 50% 50% 50% 50%;
  --dome: clamp(44px, 9vw, 130px);
  --deep-line: color-mix(in srgb, var(--on-deep) 20%, transparent);
}

[data-theme="1"] {
  --bg: #fbfefd;       --soft: #eef7f5;      --paper: #ffffff;     --tint: #dcefeb;
  --text: #10302f;     --muted: #456260;
  --primary: #1f7a78;  --primary-hover: #19645f;  --on-primary: #ffffff;
  --accent: #8fd1c6;   --link: #1f7a78;
  --border: #d3e6e2;   --focus: #1f7a78;     --shadow: rgba(20, 80, 78, .28);
  --glow-1: #bfe8df;   --glow-2: #f5e8d2;
  --deep: #0f3b3b;     --on-deep: #effaf7;   --deep-muted: #b5d7d1;  --deep-accent: #86d6c8;
}
[data-theme="2"] {
  --bg: #060f10;       --soft: #0b1819;      --paper: #0f1f21;     --tint: #14302f;
  --text: #e8f4f1;     --muted: #a8c2be;
  --primary: #3fb0a6;  --primary-hover: #34978e;  --on-primary: #04201f;
  --accent: #7fdccf;   --link: #7fdccf;
  --border: #1b3535;   --focus: #7fdccf;     --shadow: rgba(0, 0, 0, .65);
  --glow-1: #0e5a56;   --glow-2: #1d4a5e;
  --deep: #0a2c2d;     --on-deep: #e8f4f1;   --deep-muted: #a6c8c3;  --deep-accent: #7fdccf;
}
[data-theme="3"] {
  --bg: #fffdf9;       --soft: #faf1e7;      --paper: #ffffff;     --tint: #f4e1d0;
  --text: #2c1a12;     --muted: #6b4c3d;
  --primary: #a8472b;  --primary-hover: #8c3a22;  --on-primary: #ffffff;
  --accent: #e9b79a;   --link: #a8472b;
  --border: #ecd9c8;   --focus: #a8472b;     --shadow: rgba(120, 50, 25, .28);
  --glow-1: #f6cdb2;   --glow-2: #f3e2b8;
  --deep: #4a2014;     --on-deep: #fff4ea;   --deep-muted: #e6c4b0;  --deep-accent: #f0b693;
}
[data-theme="4"] {
  --bg: #0b0b1a;       --soft: #121327;      --paper: #16172f;     --tint: #1f2040;
  --text: #f1eefb;     --muted: #bdb9d8;
  --primary: #d9708c;  --primary-hover: #c35d79;  --on-primary: #1c0710;
  --accent: #f2a9bd;   --link: #f2a9bd;
  --border: #2a2b52;   --focus: #f2a9bd;     --shadow: rgba(0, 0, 0, .65);
  --glow-1: #2a2f7a;   --glow-2: #7a2a52;
  --deep: #1a1a45;     --on-deep: #f4f1ff;   --deep-muted: #c4c1e4;  --deep-accent: #f2a9bd;
}

[data-theme="5"] {
  --bg: #fdfcff;       --soft: #f4f1fb;      --paper: #ffffff;     --tint: #e9e2f8;
  --text: #221a33;     --muted: #5a4d73;
  --primary: #5b3fa0;  --primary-hover: #4a3285;  --on-primary: #ffffff;
  --accent: #b9a6e8;   --link: #5b3fa0;
  --border: #e0d8f1;   --focus: #5b3fa0;     --shadow: rgba(60, 35, 120, .28);
  --glow-1: #d9ccf7;   --glow-2: #cfe6df;
  --deep: #2a1b52;     --on-deep: #f6f2ff;   --deep-muted: #cbbfe8;  --deep-accent: #c3b0f5;
}
[data-theme="6"] {
  --bg: #0d0a14;       --soft: #15101f;      --paper: #19132a;     --tint: #2a1e38;
  --text: #f7efe6;     --muted: #cfc0cc;
  --primary: #e0a23a;  --primary-hover: #c98d2b;  --on-primary: #1b1106;
  --accent: #f0c27a;   --link: #f0c27a;
  --border: #34283f;   --focus: #f0c27a;     --shadow: rgba(0, 0, 0, .65);
  --glow-1: #4a2a5e;   --glow-2: #7a4a1c;
  --deep: #2a1630;     --on-deep: #fbf1e6;   --deep-muted: #dcc3cf;  --deep-accent: #f0c27a;
}

/* Evening-coloured bands re-colour everything inside them */
.deep {
  --text: var(--on-deep); --muted: var(--deep-muted); --link: var(--deep-accent);
  --border: var(--deep-line); --accent: var(--deep-accent); --focus: var(--deep-accent);
  background: var(--deep); color: var(--on-deep);
}

/* Pattern images, drawn in each theme's accent colour (generated) */
[data-theme="1"] {
  --pat-ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%238fd1c6' stroke-opacity='0.5' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
  --pat-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%238fd1c6' stroke-opacity='0.5' stroke-width='1.1' stroke-linecap='round'%3E%3Cg transform='translate(12 26) rotate(-32)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(50 14) rotate(38)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(46 58) rotate(-68)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(8 70) rotate(12)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3C/svg%3E");
  --pat-ripples-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%2386d6c8' stroke-opacity='0.16' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
}
[data-theme="2"] {
  --pat-ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%237fdccf' stroke-opacity='0.2' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
  --pat-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%237fdccf' stroke-opacity='0.2' stroke-width='1.1' stroke-linecap='round'%3E%3Cg transform='translate(12 26) rotate(-32)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(50 14) rotate(38)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(46 58) rotate(-68)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(8 70) rotate(12)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3C/svg%3E");
  --pat-ripples-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%237fdccf' stroke-opacity='0.14' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
}
[data-theme="3"] {
  --pat-ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23e0a888' stroke-opacity='0.5' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
  --pat-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%23e0a888' stroke-opacity='0.5' stroke-width='1.1' stroke-linecap='round'%3E%3Cg transform='translate(12 26) rotate(-32)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(50 14) rotate(38)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(46 58) rotate(-68)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(8 70) rotate(12)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3C/svg%3E");
  --pat-ripples-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23f0b693' stroke-opacity='0.16' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
}
[data-theme="4"] {
  --pat-ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23f2a9bd' stroke-opacity='0.18' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
  --pat-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%23f2a9bd' stroke-opacity='0.18' stroke-width='1.1' stroke-linecap='round'%3E%3Cg transform='translate(12 26) rotate(-32)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(50 14) rotate(38)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(46 58) rotate(-68)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(8 70) rotate(12)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3C/svg%3E");
  --pat-ripples-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23f2a9bd' stroke-opacity='0.13' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
}
[data-theme="5"] {
  --pat-ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23b9a6e8' stroke-opacity='0.5' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
  --pat-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%23b9a6e8' stroke-opacity='0.5' stroke-width='1.1' stroke-linecap='round'%3E%3Cg transform='translate(12 26) rotate(-32)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(50 14) rotate(38)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(46 58) rotate(-68)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(8 70) rotate(12)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3C/svg%3E");
  --pat-ripples-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23c3b0f5' stroke-opacity='0.15' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
}
[data-theme="6"] {
  --pat-ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23f0c27a' stroke-opacity='0.2' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
  --pat-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%23f0c27a' stroke-opacity='0.2' stroke-width='1.1' stroke-linecap='round'%3E%3Cg transform='translate(12 26) rotate(-32)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(50 14) rotate(38)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(46 58) rotate(-68)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3Cg transform='translate(8 70) rotate(12)'%3E%3Cpath d='M0 0Q11-9 22 0Q11 9 0 0Z'/%3E%3Cpath d='M0 0H22'/%3E%3C/g%3E%3C/svg%3E");
  --pat-ripples-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90' fill='none' stroke='%23f0c27a' stroke-opacity='0.12' stroke-width='1.1'%3E%3Ccircle cx='45' cy='45' r='5'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Ccircle cx='45' cy='45' r='21'/%3E%3Ccircle cx='45' cy='45' r='29'/%3E%3Ccircle cx='45' cy='45' r='37'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   2. PATTERNS + TEXTURE
   .pat layers draw a fine-line pattern inside a positioned block and
   fade out softly. A very fine grain sits over the whole page.
------------------------------------------------------------------- */
.pat { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; }
.pat-ripples { background-image: var(--pat-ripples); background-size: 120px 120px; }
.pat-leaves { background-image: var(--pat-leaves); background-size: 96px 96px; }
.pat-ripples-deep {
  background-image: var(--pat-ripples-deep); background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 46%); mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 46%);
}
.fade-tr { -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 42%); mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 42%); }
.fade-bl { -webkit-mask-image: radial-gradient(circle at 0% 100%, #000 0%, transparent 42%); mask-image: radial-gradient(circle at 0% 100%, #000 0%, transparent 42%); }
.fade-br { -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 42%); mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 42%); }
.fade-tl { -webkit-mask-image: radial-gradient(circle at 0% 0%, #000 0%, transparent 42%); mask-image: radial-gradient(circle at 0% 0%, #000 0%, transparent 42%); }

body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   3. BASE + TYPE
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}

img { max-width: 100%; }
p { margin: 0 0 1.25em; max-width: 62ch; }
ul { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--primary); color: var(--on-primary);
  padding: .6rem 1rem; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Headline voice: Fraunces, light and soft, set tight */
.display {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -.028em; line-height: 1; text-wrap: balance;
}
.subhead {
  font-family: var(--serif); font-style: italic; font-weight: 350; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3;
  color: var(--muted); margin: 0; max-width: 24ch;
}
.title { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem); margin-bottom: 1.25rem; }
.split .title { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.3rem); }
.h2 {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.7rem); line-height: 1.06; letter-spacing: -.026em;
  text-wrap: balance; margin-bottom: 1.5rem;
}
.h3 {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); line-height: 1.15; letter-spacing: -.012em;
  text-wrap: balance; margin-bottom: 1.1rem;
}
.lead {
  font-family: var(--serif); font-weight: 350; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.3; letter-spacing: -.01em;
  margin: 0 0 1.3rem; max-width: 24ch;
}
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }
.section > .wrap { position: relative; z-index: 1; }
.section-soft { background: var(--soft); transition: background-color .5s ease; }

/* ------------------------------------------------------------------
   4. COLOUR THEME MENU
   Lives inside the navbar. From 900px it is a dropdown opened by a button
   showing the current colours; on phones the four options sit inside the
   full-screen menu.
------------------------------------------------------------------- */
.swatch { display: flex; flex: none; }
.swatch i {
  width: 15px; height: 15px; border-radius: 50%; background: var(--c);
  border: 1px solid rgba(128, 128, 128, .55); margin-left: -5px;
}
.swatch i:first-child { margin-left: 0; }
.swatch-now i:nth-child(1) { --c: var(--primary); }
.swatch-now i:nth-child(2) { --c: var(--accent); }
.swatch-now i:nth-child(3) { --c: var(--bg); }

.theme-menu { position: relative; }
.theme-toggle { display: none; }
.theme-panel { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .4rem; }
.theme-panel-title {
  grid-column: 1 / -1; margin: 0 0 .3rem; max-width: none;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--deep-accent);
}
.theme-btn {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .95rem; border-radius: 18px; text-align: left;
  border: 1.5px solid var(--deep-line); background: transparent;
  color: var(--on-deep); font: 500 .95rem/1.25 var(--sans); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-btn:hover { background: color-mix(in srgb, var(--on-deep) 8%, transparent); }
.theme-btn[aria-pressed="true"] { border-color: var(--on-deep); background: color-mix(in srgb, var(--on-deep) 12%, transparent); }

/* ------------------------------------------------------------------
   5. HEADER + NAVIGATION
   A floating glass bar. Phones: a full-screen evening-coloured menu.
   From 900px: links on the right and dropdowns for About Monica and
   How I Can Help (open on hover or keyboard focus).
------------------------------------------------------------------- */
.site-header { position: sticky; top: .6rem; z-index: 50; margin-top: .6rem; }
.bar {
  position: relative; width: min(100% - 1.25rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: .45rem .5rem .45rem 1.1rem;
}
@media (max-width: 420px) {
  .bar { gap: .5rem; padding-left: .9rem; }
  .brand { gap: .5rem; }
  .brand-mark { width: 31px; height: 24px; }
  .brand-name { font-size: 1.08rem; }
  .nav-toggle { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px -28px var(--shadow);
  transition: box-shadow .3s ease, background-color .5s ease;
}
.is-scrolled .bar::before { box-shadow: 0 22px 44px -26px var(--shadow); }

.brand {
  position: relative; z-index: 2; display: flex; align-items: center; gap: .65rem;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand-mark { flex: none; width: 40px; height: 31px; fill: var(--primary); transition: transform .7s var(--ease), fill .3s ease; transform-origin: 50% 100%; }
.brand:hover .brand-mark { transform: scale(1.1) rotate(-3deg); }
.brand-name {
  font-family: var(--serif); font-weight: 450; font-variation-settings: "SOFT" 100;
  font-size: 1.28rem; letter-spacing: -.01em;
}

/* Menu button (phones) */
.nav-toggle {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--primary); color: var(--on-primary); border: 0; border-radius: 999px;
  padding: .7rem 1.15rem; font: 600 .92rem var(--sans); cursor: pointer;
  transition: background-color .2s ease;
}
.nav-toggle:hover { background: var(--primary-hover); }
.nav-icon, .nav-icon::before, .nav-icon::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s ease, background-color .2s ease, top .25s ease;
}
.nav-icon { position: relative; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; left: 0; }
.nav-icon::before { top: -5px; }
.nav-icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-icon::after { top: 0; transform: rotate(-45deg); }
html.menu-open .brand { color: var(--on-deep); }
html.menu-open .brand-mark { fill: var(--deep-accent); }
html.menu-open .nav-toggle { background: var(--on-deep); color: var(--deep); }

/* The phone menu: a full-screen sheet */
.site-nav {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column;
  padding: calc(var(--nav-pad, 120px) + 1.5rem) 1.75rem 2.5rem;
  background: var(--deep); color: var(--on-deep); overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.site-nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--pat-ripples-deep); background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 65%);
}
.site-nav.open { opacity: 1; visibility: visible; transition-delay: 0s; }
/* lock the page scroll on the root only: a locked <body> would stop the sticky header sticking and the close button would scroll away */
html.menu-open { overflow: hidden; }

.nav-list { position: relative; list-style: none; margin: auto 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.nav-list > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease); }
.site-nav.open .nav-list > li { opacity: 1; transform: none; }
.site-nav.open .nav-list > li:nth-child(1) { transition-delay: .08s; }
.site-nav.open .nav-list > li:nth-child(2) { transition-delay: .14s; }
.site-nav.open .nav-list > li:nth-child(3) { transition-delay: .20s; }
.site-nav.open .nav-list > li:nth-child(4) { transition-delay: .26s; }
.site-nav.open .nav-list > li:nth-child(5) { transition-delay: .32s; }

.nav-link {
  position: relative; display: inline-block; padding: .35rem 0;
  color: var(--on-deep); text-decoration: none;
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: 2.6rem; line-height: 1.15; letter-spacing: -.02em;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--deep-accent); }
.nav-link[aria-current="page"], .nav-link[aria-current="true"] { color: var(--deep-accent); font-style: italic; }

.sub { list-style: none; margin: .1rem 0 .8rem; padding: 0 0 0 1.1rem; border-left: 1px solid var(--deep-line); display: grid; }
.sub-link {
  display: block; padding: .3rem 0; color: var(--deep-muted); text-decoration: none;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
}
.sub-link:hover { color: var(--deep-accent); }
.sub-desktop { display: none; }
.nav-item-theme { margin-top: 1.6rem; }
.nav-item-cta { margin-top: 1.5rem; }
.nav-item-cta .btn { background: var(--on-deep); color: var(--deep); }
.nav-ind { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; z-index: auto; display: block; padding: 0; background: none; color: inherit;
    overflow: visible; opacity: 1; visibility: visible; transition: none;
  }
  .site-nav::before { display: none; }
  .nav-list { flex-direction: row; align-items: center; gap: .15rem; margin: 0; }
  .nav-list > li { position: relative; opacity: 1; transform: none; transition: none; }

  .nav-link {
    padding: .6rem 1.05rem; border-radius: 999px; color: var(--text);
    font-family: var(--sans); font-weight: 500; font-variation-settings: normal;
    font-size: .98rem; letter-spacing: 0;
    transition: background-color .25s ease, color .25s ease;
  }
  .nav-link { z-index: 1; }
  .nav-link:hover { color: var(--link); }
  .nav-link[aria-current="page"], .nav-link[aria-current="true"] { color: var(--link); font-style: normal; }
  /* without script the current page simply gets its own pill */
  .nav-list:not(.nav-ind-on) .nav-link[aria-current="page"],
  .nav-list:not(.nav-ind-on) .nav-link[aria-current="true"] { background: var(--tint); }
  .nav-ind {
    display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
    border-radius: 999px; background: var(--tint); opacity: 0;
    transition: transform .5s var(--ease), width .5s var(--ease), height .3s ease, opacity .3s ease;
  }

  .has-sub > .nav-link { padding-right: 1.8rem; }
  .has-sub > .nav-link::before {
    content: ""; position: absolute; right: .85rem; top: 50%; width: 5px; height: 5px; margin-top: -4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .3s var(--ease);
  }
  .has-sub:hover > .nav-link::before, .has-sub:focus-within > .nav-link::before { transform: rotate(225deg) translate(-1px, -1px); }

  .sub {
    position: absolute; top: calc(100% + 12px); left: 50%; min-width: 250px; margin: 0; padding: .5rem;
    border: 1px solid var(--border); border-radius: 22px;
    background: var(--bg); box-shadow: 0 30px 50px -28px var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .25s;
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .sub-desktop { display: block; }
  .sub-link { padding: .7rem 1rem; border-radius: 14px; font-family: var(--sans); font-style: normal; font-size: .98rem; font-weight: 500; color: var(--text); }
  .sub-link:hover, .sub-link:focus-visible { background: var(--tint); color: var(--link); }
  .nav-item-theme { margin: 0 .35rem 0 .6rem; }
  .nav-item-cta { margin: 0 0 0 .1rem; }
  .nav-item-cta .btn { background: var(--primary); color: var(--on-primary); }

  .theme-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .55rem .8rem; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border); background: transparent; color: var(--text);
    font: 500 .92rem/1 var(--sans);
    transition: background-color .25s ease, border-color .25s ease;
  }
  .theme-toggle:hover, .theme-menu.open .theme-toggle { background: var(--tint); border-color: var(--accent); }
  .theme-toggle-text { display: none; }
  .theme-chev {
    width: 5px; height: 5px; margin: -3px .1rem 0 0;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .3s var(--ease);
  }
  .theme-menu.open .theme-chev { transform: rotate(225deg) translate(-1px, -1px); }

  .theme-panel {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 3; width: 300px;
    grid-template-columns: 1fr; gap: .1rem; margin: 0; padding: .6rem;
    border: 1px solid var(--border); border-radius: 24px;
    background: var(--bg); box-shadow: 0 30px 50px -28px var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .25s;
  }
  .theme-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .theme-menu.open .theme-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .theme-panel-title { margin: 0; padding: .55rem .9rem .35rem; color: var(--muted); font-size: 1.15rem; }
  .theme-btn { border: 0; padding: .72rem .9rem; border-radius: 16px; color: var(--text); font-size: .98rem; }
  .theme-btn:hover, .theme-btn:focus-visible { background: var(--tint); }
  .theme-btn[aria-pressed="true"] { background: var(--tint); }
  .theme-btn[aria-pressed="true"]::after {
    content: ""; margin-left: auto; width: 6px; height: 11px;
    border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -1px);
  }
}
@media (min-width: 1180px) {
  .theme-toggle-text { display: inline; }
}

/* ------------------------------------------------------------------
   6. BUTTONS + LINKS
------------------------------------------------------------------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  padding: 1rem 2.2rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  box-shadow: 0 16px 30px -18px var(--shadow);
  transition: background-color .25s ease, transform .35s var(--ease), box-shadow .25s ease;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 22px 36px -18px var(--shadow); }
.btn-small { padding: .7rem 1.4rem; font-size: .95rem; box-shadow: none; }
.btn-block { display: block; width: 100%; }
@media (min-width: 900px) { .btn-block { display: inline-block; width: auto; } }
.btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--primary); }
.deep .btn { background: var(--on-deep); color: var(--deep); box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .6); }
.deep .btn:hover { background: color-mix(in srgb, var(--on-deep) 88%, var(--deep-accent)); }

.text-links { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0; padding: 0; list-style: none; }
.text-links a {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--text);
  text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  transition: text-decoration-color .25s ease, color .25s ease;
}
.text-links a:hover { color: var(--link); text-decoration-color: var(--link); }

/* ------------------------------------------------------------------
   7. HEADERS: soft light, smooth stones
------------------------------------------------------------------- */
/* the soft light may fade out below the header instead of ending in a hard edge */
.hero, .page-hero { position: relative; overflow-x: clip; }
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5rem, 11vw, 9rem); }
.page-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7.5rem); }

/* Light that slowly moves behind the headline */
.glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
  animation: drift 24s ease-in-out infinite alternate;
}
.glow-a { width: min(90vw, 980px); left: -22%; top: -14%; }
.glow-b {
  width: min(78vw, 860px); right: -20%; top: 4%;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
  animation-duration: 30s; animation-delay: -9s;
}

.hero-grid, .page-hero-grid { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; }
  .page-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; }
}

/* the name rises into place, line by line */
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: block; animation: rise 1.3s var(--ease) both; animation-delay: calc(var(--d, 0) * 160ms + 120ms); }

.hero-name { font-size: clamp(3.3rem, 1.2rem + 9.2vw, 7.2rem); line-height: .94; letter-spacing: -.035em; text-wrap: nowrap; }
.hero-role {
  margin: 1.5rem 0 2.5rem; max-width: none;
  font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; color: var(--muted);
}
.hero-text .lead { margin-top: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.75rem; margin-top: 2.5rem; }
.cta-note { margin: 0; color: var(--muted); font-size: 1rem; max-width: 30ch; line-height: 1.55; }
.hero .text-links { margin-top: 2.75rem; }

.page-title { font-size: clamp(3.2rem, 1.2rem + 8.4vw, 7rem); line-height: .95; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.page-intro { margin-top: 1.5rem; }
.page-hero .text-links { margin-top: 2.25rem; }

/* The portrait, held in a smooth stone with two slowly breathing outlines */
.stone-wrap { position: relative; width: min(100% - 4rem, 410px); margin-inline: auto; }
.stone { position: relative; aspect-ratio: 4 / 5; }
.stone-photo {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--stone-a);
  background: var(--tint); box-shadow: 0 60px 90px -56px var(--shadow);
}
.stone-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.stone::before, .stone::after { content: ""; position: absolute; pointer-events: none; }
.stone::before {
  inset: -6%; border-radius: var(--stone-b); border: 1px solid var(--primary); opacity: .5;
  animation: breathe 8s ease-in-out infinite alternate;
}
.stone::after {
  inset: -13%; border-radius: var(--stone-c); border: 1px solid var(--accent);
  animation: breathe 8s ease-in-out -4s infinite alternate;
}
.pebble { position: absolute; z-index: 2; background: var(--accent); box-shadow: 0 18px 28px -16px var(--shadow); }
.pebble-1 { width: 74px; height: 56px; left: -14%; bottom: 6%; border-radius: var(--stone-b); animation: bob 9s ease-in-out infinite alternate; }
.pebble-2 { width: 40px; height: 32px; left: -3%; bottom: 20%; background: var(--primary); border-radius: var(--stone-c); animation: bob 11s ease-in-out -4s infinite alternate; }
.stone-wrap.small { width: min(100% - 4rem, 300px); }

/* A small balance of stones, used on the Help header */
.cairn { position: relative; width: min(100% - 3rem, 330px); margin-inline: auto; padding-bottom: 1rem; }
.cairn-stones { position: relative; height: 290px; }
.cairn-stones i { position: absolute; left: 50%; display: block; box-shadow: 0 24px 34px -22px var(--shadow); }
.cairn-stones i:nth-child(1) { width: 270px; height: 112px; bottom: 0; margin-left: -135px; border-radius: var(--stone-a); background: var(--tint); border: 1px solid var(--accent); }
.cairn-stones i:nth-child(2) { width: 190px; height: 82px; bottom: 96px; margin-left: -88px; border-radius: var(--stone-b); background: var(--accent); }
.cairn-stones i:nth-child(3) { width: 112px; height: 58px; bottom: 164px; margin-left: -50px; border-radius: var(--stone-c); background: var(--primary); }
.cairn-stones i:nth-child(4) { width: 52px; height: 38px; bottom: 212px; margin-left: -18px; border-radius: var(--stone-a); background: var(--deep); }
.cairn-line {
  margin: 1.4rem auto 0; max-width: 18ch; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 350; font-size: 1.45rem; line-height: 1.3; color: var(--muted);
}

/* ------------------------------------------------------------------
   8. SHARED PIECES
------------------------------------------------------------------- */
.split { display: grid; gap: 2rem 5rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sticky-head { align-self: start; position: sticky; top: 130px; }
}
.split > :last-child > :last-child { margin-bottom: 0; }

.prose p { max-width: 60ch; }
.prose > :last-child { margin-bottom: 0; }

/* thin-ruled blocks of text (no boxes) */
.rules { display: grid; gap: 0; border-top: 1px solid var(--border); }
.rules > article, .rules > div { padding-block: 2.5rem; border-bottom: 1px solid var(--border); }
.rules .h3 { margin-bottom: .9rem; }
.rules p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .rules > article, .rules > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 5rem; }
  .rules .h3 { margin: 0; }
}

/* the sprig: a single line drawing that draws itself once */
.sprig { width: 100%; height: auto; color: var(--primary); overflow: visible; }
.sprig .leaf { fill: var(--accent); fill-opacity: .22; }
.sprig path { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.sprig path.leaf { fill: var(--accent); fill-opacity: .22; }
.js .sprig:not(.in) path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sprig:not(.in) path.leaf { fill-opacity: 0; }
.sprig path { transition: stroke-dashoffset 3.6s cubic-bezier(.5, .1, .25, 1), fill-opacity 1.6s ease 1.6s; transition-delay: calc(var(--k, 0) * 90ms), calc(var(--k, 0) * 90ms + 1.2s); }
.js .sprig.in path { stroke-dashoffset: 0; }

/* small line glyphs held in stones */
.glyph {
  display: grid; place-items: center; flex: none;
  width: clamp(150px, 20vw, 220px); aspect-ratio: 1;
  background: var(--tint); color: var(--primary); border-radius: var(--pebble-a);
}
.glyph svg { width: 56%; height: 56%; }
.glyph-small { width: 74px; border-radius: 50%; background: color-mix(in srgb, var(--on-deep) 10%, transparent); color: var(--deep-accent); margin-bottom: 1.75rem; }
.glyph-small svg { width: 58%; height: 58%; }

/* ------------------------------------------------------------------
   9. HOME
------------------------------------------------------------------- */
.statement { position: relative; padding-block: clamp(1rem, 3vw, 2rem) clamp(5rem, 10vw, 9rem); }
.statement-quote {
  max-width: 21em; margin: 0;
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(2rem, 1rem + 4.2vw, 4.6rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance;
}
.js .statement-quote .w { opacity: .2; transition: opacity .6s ease; }
.js .statement-quote .w.on { opacity: 1; }

/* About: set like a personal letter, beside a growing sprig */
.letter-grid { display: grid; gap: 3rem 5rem; }
@media (min-width: 960px) { .letter-grid { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); align-items: start; } }
.letter-art { max-width: 300px; margin-inline: auto; width: 100%; transform: rotate(-3deg); }
@media (min-width: 960px) { .letter-art { position: sticky; top: 120px; margin: 0 0 0 auto; } }
.letter-body .subhead { margin-bottom: 3rem; }
.letter-body .prose p {
  max-width: 33em;
  font-family: var(--serif); font-weight: 350; font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.42rem); line-height: 1.7;
}
.letter-body .prose p:first-child { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); line-height: 1.38; letter-spacing: -.01em; }

/* My Approach: the evening band */
.approach {
  position: relative; overflow: hidden;
  border-radius: var(--dome) var(--dome) 0 0 / calc(var(--dome) * .7) calc(var(--dome) * .7) 0 0;
  padding-block: clamp(5rem, 11vw, 9.5rem);
}
.approach > .wrap { position: relative; z-index: 1; }
.approach .title { color: var(--on-deep); }
.approach .glow-c {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; aspect-ratio: 1;
  width: min(90vw, 900px); right: -25%; top: -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--deep-accent) 20%, transparent), transparent);
  animation: drift 26s ease-in-out infinite alternate;
}
.approach-head { display: grid; gap: 2rem 5rem; }
@media (min-width: 960px) { .approach-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.approach-head .prose p { font-family: var(--serif); font-weight: 350; font-size: 1.3rem; line-height: 1.6; max-width: 34em; }

.trio { display: grid; margin-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--deep-line); }
.trio > article { padding: 2.75rem 0 2.5rem; border-bottom: 1px solid var(--deep-line); }
.trio > article:last-child { border-bottom: 0; }
.trio p:last-child { margin-bottom: 0; }
.trio .h3 { color: var(--on-deep); }
@media (min-width: 960px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio > article { padding: 3rem 2.5rem 1rem; border-bottom: 0; }
  .trio > article:first-child { padding-left: 0; }
  .trio > article:last-child { padding-right: 0; }
  .trio > article + article { border-left: 1px solid var(--deep-line); }
}

/* ------------------------------------------------------------------
   10. HOW I CAN HELP
------------------------------------------------------------------- */
.help-intro { display: grid; gap: 2rem 5rem; }
@media (min-width: 960px) { .help-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.help-intro .big {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; max-width: 20em; margin: 0;
}
.help-intro .prose p:last-child { margin-bottom: 0; }

/* the concerns, as a scatter of smooth stones */
.concerns { margin-top: clamp(4rem, 8vw, 7rem); }
.chips { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.chips li {
  padding: .75rem 1.35rem; border: 1px solid var(--border); background: var(--paper);
  border-radius: 999px; font-family: var(--serif); font-weight: 350; font-variation-settings: "SOFT" 100;
  font-size: 1.2rem; line-height: 1.3;
  transition: background-color .3s ease, border-color .3s ease, transform .4s var(--ease);
}
.chips li:hover { background: var(--tint); border-color: var(--accent); transform: translateY(-3px); }

.change { margin-top: clamp(4rem, 8vw, 7rem); }

/* a space to pause: a breathing circle you can follow */
.pause { position: relative; overflow: hidden; margin-top: clamp(4rem, 9vw, 8rem); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); background: var(--soft); border-radius: clamp(36px, 6vw, 80px); }
.pause > :not(.pat) { position: relative; z-index: 1; }
.pause-grid { display: grid; gap: 3rem 4.5rem; align-items: center; }
@media (min-width: 960px) { .pause-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.pause .prose p:first-child { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }

.breathe { display: grid; justify-items: center; gap: 1.4rem; }
.breathe-stage { position: relative; width: min(100%, 340px); aspect-ratio: 1; display: grid; place-items: center; }
.breathe-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: breathe 8s ease-in-out infinite alternate; }
.breathe-ring + .breathe-ring { inset: 9%; border-color: var(--primary); opacity: .5; animation-delay: -4s; }
.breathe-orb {
  position: relative; width: 66%; aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  color: var(--on-primary); font: 400 1.35rem/1.2 var(--serif); font-variation-settings: "SOFT" 100;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--primary) 82%, #fff), var(--primary) 64%);
  box-shadow: 0 40px 60px -34px var(--shadow), inset 0 -18px 40px -20px rgba(0, 0, 0, .35);
  transform: scale(var(--s, .84));
  transition: transform var(--dur, 1.2s) cubic-bezier(.45, .05, .35, 1);
}
.breathe-orb span { max-width: 8ch; text-align: center; pointer-events: none; }
.breathe-hint { margin: 0; text-align: center; color: var(--muted); font-size: 1rem; max-width: 30ch; }

.modes { margin-top: clamp(3.5rem, 7vw, 6rem); }
.mode { display: grid; gap: 2rem 4.5rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--border); }
.modes .mode:first-child { border-top: 1px solid var(--border); }
@media (min-width: 800px) {
  .mode { grid-template-columns: auto minmax(0, 1fr); }
  .mode:nth-child(even) { grid-template-columns: minmax(0, 1fr) auto; }
  .mode:nth-child(even) .glyph { order: 2; }
}
.mode:nth-child(2) .glyph { border-radius: var(--pebble-b); }
.mode:nth-child(3) .glyph { border-radius: var(--pebble-c); }
.mode:nth-child(4) .glyph { border-radius: var(--pebble-a); background: var(--accent); }
.mode:nth-child(5) .glyph { border-radius: var(--pebble-c); }
.mode:nth-child(6) .glyph { border-radius: var(--pebble-b); background: var(--accent); }
.mode .h3 + p a, .mode p a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 500; }
.mode p a:hover { text-decoration-thickness: 2px; }
.mode .h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 300; letter-spacing: -.022em; line-height: 1.1; }
.mode p:last-child { margin-bottom: 0; }

.pair { display: grid; margin-top: clamp(4rem, 8vw, 7rem); }
@media (min-width: 960px) { .pair { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.pair > article { padding: 2rem 0 0; border-top: 1px solid var(--border); margin-bottom: 3rem; }
.pair > article:last-child { margin-bottom: 0; }
.pair p:last-child { margin-bottom: 0; }
.pair .h3 { max-width: 16ch; }

/* ------------------------------------------------------------------
   11. CONTACT
------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; } }

.tbc {
  display: inline-block; vertical-align: middle; margin-left: .5rem;
  padding: .1rem .75rem; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--tint);
  color: var(--text); font: 600 .8rem/1.5 var(--sans);
}
.tbc-first { margin-left: 0; margin-top: .5rem; }
.ph-box { border: 1.5px dashed var(--accent); border-radius: 30px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.ph-list { margin: 0; }
.ph-item { padding: 1rem 0; border-bottom: 1px dashed var(--border); }
.ph-item:first-child { padding-top: 0; }
.ph-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ph-item dt { font-weight: 600; }
.ph-item dd { margin: .15rem 0 0; color: var(--muted); }
.ph-item dd a { color: var(--link); font-weight: 500; text-underline-offset: 4px; }
.ph-intro { color: var(--muted); }
.footer-contact a { color: var(--on-deep); text-underline-offset: 4px; }
.ph-box.info { border: 1px solid var(--border); background: var(--paper); box-shadow: 0 30px 60px -44px var(--shadow); }
.ph-box.info .ph-item { border-bottom-style: solid; }
.ph-box.info .ph-item:last-child { border-bottom: 0; }
.ph-item dd { line-height: 1.6; }

.form-panel {
  position: relative; background: var(--paper); border: 1px solid var(--border);
  border-radius: 40px 40px 40px 12px; padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 50px 80px -60px var(--shadow);
}
.form-title { font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100; font-size: 2.3rem; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 1.75rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1.2rem; }
.field-label { font-weight: 500; }
.field-optional { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; padding: .9rem 1.1rem; border-radius: 16px;
  background: var(--soft); color: var(--text);
  border: 1.5px solid transparent; border-bottom-color: color-mix(in srgb, var(--muted) 55%, transparent);
  font: inherit; transition: border-color .2s ease, background-color .2s ease;
}
.input:hover { border-color: var(--border); border-bottom-color: var(--muted); }
.input:focus { background: var(--bg); }
.input-area { min-height: 160px; resize: vertical; }
.form-status { margin: 1rem 0 0; min-height: 1.5em; color: var(--muted); font-size: 1rem; }

/* ------------------------------------------------------------------
   12. CLOSING + FOOTER + MOTION
------------------------------------------------------------------- */
.closing { position: relative; overflow: hidden; text-align: center; padding-block: clamp(5.5rem, 13vw, 11rem); }
.closing > .wrap { position: relative; z-index: 1; }
.closing::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 4%; bottom: 4%; width: min(130vw, 1200px); margin-left: calc(min(130vw, 1200px) / -2);
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent);
  animation: breathe 9s ease-in-out infinite alternate;
}
.closing-title { font-size: clamp(2.3rem, 1.2rem + 5vw, 5.2rem); line-height: 1.02; max-width: 17ch; margin: 0 auto 1.4rem; }
.closing-text { margin: 0 auto 2.5rem; max-width: 40ch; font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.45; color: var(--muted); }

.site-footer {
  position: relative; overflow: hidden;
  border-radius: var(--dome) var(--dome) 0 0 / calc(var(--dome) * .7) calc(var(--dome) * .7) 0 0;
  padding: clamp(4rem, 8vw, 6.5rem) 0 2rem;
}
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-top { display: grid; gap: 3rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.7fr 1fr 1.2fr; gap: 4rem; } }
.footer-mark { display: block; width: 74px; height: 58px; margin-bottom: 1.4rem; fill: var(--deep-accent); }
.footer-name { font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.7rem); letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.footer-role { margin: .7rem 0 1rem; color: var(--muted); font-size: 1rem; }
.footer-text { color: var(--muted); font-size: 1rem; }
.footer-head { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.4rem; line-height: 1.1; margin: 0 0 1.1rem; color: var(--deep-accent); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-links a { display: inline-block; color: var(--on-deep); text-decoration: none; font-size: 1rem; transition: color .2s ease, transform .3s var(--ease); }
.footer-links a:hover { color: var(--deep-accent); transform: translateX(4px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--deep-line);
  color: var(--muted); font-size: .95rem;
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom a { color: var(--on-deep); }

/* Page load: the headline settles first, everything else follows */
.reveal { animation: settle 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { transform: scale(.96); } to { transform: scale(1.05); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(5%, 6%) scale(1.12); }
}


/* ------------------------------------------------------------------
   13. LIVING DETAILS
   Light that follows the pointer, a portrait that slowly changes shape,
   drifting motes, headlines that wipe in, and a circular colour change
   when a theme is chosen. All of it stays still for visitors who prefer
   reduced motion (see the end of this file and js/app.js).
------------------------------------------------------------------- */
@property --sx { syntax: "<length-percentage>"; inherits: false; initial-value: 72%; }
@property --sy { syntax: "<length-percentage>"; inherits: false; initial-value: 18%; }

/* pointer + scroll depth (set from js/app.js) */
.glow-a { translate: calc(var(--mx, 0) * -34px) calc(var(--my, 0) * -24px + var(--py, 0px)); }
.glow-b { translate: calc(var(--mx, 0) * 42px) calc(var(--my, 0) * 28px + var(--py, 0px)); }
.approach .glow-c { translate: 0 var(--py, 0px); }
.closing::before { translate: 0 var(--py, 0px); }
.stone-wrap { translate: 0 var(--py, 0px); }
.cairn { translate: 0 var(--py, 0px); }
.stone { transform: perspective(1100px) rotateY(calc(var(--mx, 0) * 7deg)) rotateX(calc(var(--my, 0) * -5deg)); transition: transform .25s ease-out; }
.pebble-1 { translate: calc(var(--mx, 0) * 30px) calc(var(--my, 0) * 20px); }
.pebble-2 { translate: calc(var(--mx, 0) * 48px) calc(var(--my, 0) * 32px); }

/* the portrait stone slowly changes shape */
.stone-photo { animation: morph-a 20s ease-in-out infinite; }
.stone::before { animation: breathe 8s ease-in-out infinite alternate, morph-b 24s ease-in-out infinite; }
.stone::after  { animation: breathe 8s ease-in-out -4s infinite alternate, morph-c 28s ease-in-out infinite; }
.pebble-1 { animation: drop 1.5s cubic-bezier(.3, 1.5, .5, 1) .9s both, bob 9s ease-in-out 2.4s infinite alternate; }
.pebble-2 { animation: drop 1.4s cubic-bezier(.3, 1.5, .5, 1) 1.15s both, bob 11s ease-in-out 2.6s -4s infinite alternate; }
.glyph { transition: border-radius .9s var(--ease), transform .6s var(--ease); }
.glyph:hover { border-radius: var(--pebble-c); transform: rotate(-4deg) scale(1.04); }

/* the balance of stones sways like it is being held */
.cairn-stones i { transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }
.cairn-stones i:nth-child(2) { animation-duration: 8.5s; animation-delay: -2s; }
.cairn-stones i:nth-child(3) { animation-duration: 6.5s; animation-delay: -4s; }
.cairn-stones i:nth-child(4) { animation-duration: 5.5s; animation-delay: -1s; }

/* a soft light follows the pointer across the evening band */
.approach::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--sx) var(--sy), color-mix(in srgb, var(--deep-accent) 17%, transparent), transparent 62%);
  transition: --sx .7s var(--ease), --sy .7s var(--ease);
}

/* buttons lean toward the pointer */
.btn { transition: background-color .25s ease, transform .35s var(--ease), box-shadow .25s ease, translate .5s var(--ease); }

/* reading progress, drawn along the bottom of the navbar */
.bar-progress { position: absolute; left: 2.2rem; right: 2.2rem; bottom: -1px; z-index: 1; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.bar-progress::before { content: ""; display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(var(--sp, 0)); transform-origin: 0 50%; }
html.menu-open .bar-progress { display: none; }

.text-links a { transition: text-decoration-color .25s ease, color .25s ease, text-underline-offset .35s var(--ease); }
.text-links a:hover { text-underline-offset: 10px; }

/* motes of light that rise slowly (created by js/app.js) */
.motes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.motes.paused .mote { animation-play-state: paused; }
.mote {
  position: absolute; left: var(--x); bottom: -14px; width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--accent); opacity: 0;
  box-shadow: 0 0 calc(var(--s) * 3) calc(var(--s) * .5) color-mix(in srgb, var(--accent) 55%, transparent);
  animation: mote var(--t) linear var(--w) infinite;
}

/* content arrives as you reach it (classes added by js/app.js) */
.js [data-reveal] {
  transition: opacity .9s var(--ease) calc(var(--d, 0) * 1ms), transform 1s var(--ease) calc(var(--d, 0) * 1ms), clip-path 1.25s var(--ease) calc(var(--d, 0) * 1ms);
}
.js [data-reveal="fade"]:not(.in) { opacity: 0; transform: translateY(24px); }
.js [data-reveal="pop"]:not(.in) { opacity: 0; transform: scale(.8) translateY(14px); }
.js [data-reveal="rise"]:not(.in) { opacity: 0; clip-path: inset(-14% 100% -14% 0); transform: translateY(.18em); }
.js [data-reveal="rise"].in { clip-path: inset(-14% -3% -14% -3%); }

/* a circular wipe of the new colours when a theme is chosen */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-old(root) { z-index: 1; }
html.theme-vt::view-transition-new(root) { z-index: 2; }

@keyframes morph-a { 0%, 100% { border-radius: var(--stone-a); } 33% { border-radius: var(--stone-b); } 66% { border-radius: var(--stone-c); } }
@keyframes morph-b { 0%, 100% { border-radius: var(--stone-b); } 33% { border-radius: var(--stone-c); } 66% { border-radius: var(--stone-a); } }
@keyframes morph-c { 0%, 100% { border-radius: var(--stone-c); } 33% { border-radius: var(--stone-a); } 66% { border-radius: var(--stone-b); } }
@keyframes sway { from { rotate: -1.4deg; } to { rotate: 1.8deg; } }
@keyframes drop { from { transform: translateY(-420px) scale(.9); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes mote {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: var(--o); }
  88% { opacity: var(--o); }
  100% { transform: translate3d(var(--dx), calc(var(--h, 100vh) * -1), 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .statement-quote .w { opacity: 1; }
  .motes { display: none; }
  .js .sprig:not(.in) path { stroke-dashoffset: 0; }
  .js .sprig:not(.in) path.leaf { fill-opacity: .22; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
