/* Vibrant Sky Psychiatry
   Three looks, chosen with <html data-theme>: "alpenglow" (default), "redrocks", or none (the original).
   Type: Fraunces + Karla, Bricolage Grotesque + Nunito Sans, Source Serif 4 + Atkinson Hyperlegible Next,
   and Caveat for handwritten touches. All SIL Open Font License.
   Colour: the Front Range sky across a day. The page runs from the live sky in the hero,
   through morning, golden hour, sunset and dusk, to night in the footer.
   Hero sky values are set by sky.js; the ones here are the no-JavaScript fallback. */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@property --ox { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --oy { syntax: "<percentage>"; inherits: false; initial-value: 80%; }

:root {
  color-scheme: light;

  --ink: #141A3A;        /* night sky */
  --ink-soft: #4A5275;
  --paper: #F7F8FC;
  --rule: #CDD4E8;
  --noon: #2459A6;       /* links */
  --alpenglow: #C2456B;
  --sun-gold: #F4B740;
  --pink: #F58CA8;
  --gold: #FFD166;
  --blue: #5AA0E6;
  --violet: #6C4BA6;

  --sky-top: #6FA3DA;
  --sky-mid: #C4D6EC;
  --sky-horizon: #FFE0AE;
  --ridge-far: #8FA3CC;
  --ridge-mid: #5A6AA3;
  --sky-ink: var(--ink);
  --sky-ink-contrast: var(--paper);
  --cloud: #fff;
  --cloud-opacity: 0.75;
  --stars: 0;
  --scroll: 0;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  /* ---- look: tokens (these are the "original" values; the looks below override them) ---- */
  --night: #0A0F2C;
  --night-text: #C9CFE6;
  --shadow-rgb: 20 26 58;
  --soft-panel: #E8ECF7;
  --field-border: #9AA3C2;
  --on-dark-link: #FFE1A0;
  --glow: rgba(255, 154, 82, 0.4);
  --band-care: linear-gradient(180deg, #DDEBFB, #EFE6FA);
  --edge-care: #DDEBFB;
  --band-approach: linear-gradient(160deg, #FFE9BF 0%, #FFD3C2 60%, #F9C1D4 100%);
  --band-welcome: linear-gradient(90deg, #2B2466 0%, #7A3B8C 48%, #D2607A 78%, #FFA35C 100%);
  --band-welcome-narrow: linear-gradient(180deg, #2B2466 0%, #7A3B8C 60%, #A8496E 100%);
  --band-about: linear-gradient(180deg, #F3EEFB, #E6EEFB);
  --edge-about: #F3EEFB;
  --band-blog: linear-gradient(180deg, #E6EEFB, #DFF5EA);
  --band-visits: linear-gradient(180deg, #1B3F86, #2A62B5);
  --edge-visits: #1B3F86;
  --band-practical: linear-gradient(180deg, #FFF3DC, #FDE3E0);
  --band-contact: linear-gradient(180deg, #161B4D 0%, #3D2F7C 55%, #8A3F77 100%);
  --edge-contact: #161B4D;
  --app-top: linear-gradient(110deg, #161B4D 0%, #3D2F7C 50%, #8A3F77 85%, #D2607A 100%);
  --app-main-top: #EFE6FA;
  --tone-1: linear-gradient(160deg, #FFD8A8, #FFB3C1);
  --tone-2: linear-gradient(160deg, #BBD9F8, #CFC6F6);
  --tone-3: linear-gradient(160deg, #FFE9A0, #FFCB9A);
  --tone-4: linear-gradient(160deg, #C6F0D8, #BFE0F5);
  --chip-1: #FFC9D6; --chip-2: #FFE08A; --chip-3: #BBD9F8; --chip-4: #D9CCF8; --chip-5: #FFD0AE; --chip-6: #C6F0D8; --chip-7: #F9C1E0;
  --step-1: #FFB3C1; --step-2: #FFD166; --step-3: #A9D3F5; --step-4: #C9B8F5;
  --strip-skills: linear-gradient(90deg, #FFD166, #FF9F6B); --tag-skills: #FFE9A8;
  --strip-research: linear-gradient(90deg, #5AA0E6, #8B7AE6); --tag-research: #D5E6FB;
  --strip-all: linear-gradient(90deg, #F58CA8, #B79CF2); --tag-all: #EADFFB;
  --hand: var(--sans);
  --hand-scale: 1;
  --display-fvs: normal;
  --h1-weight: 380;
  --h2-weight: 400;
  --statement-weight: 350;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

a { color: var(--noon); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--sun-gold); outline-offset: 3px; border-radius: 2px; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Draft markers (only while <html data-draft>) ---------- */

.draft-banner { display: none; }
[data-draft] .draft-banner {
  display: block;
  padding: 0.5rem var(--gutter);
  background: #FFF1C2;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: center;
}
[data-draft] .tbd {
  background: #FFF1C2;
  color: var(--ink);
  outline: 1px dashed #8A6A00;
  outline-offset: 2px;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
[data-draft] .tbd-block { outline: 1px dashed #8A6A00; outline-offset: -1px; }

/* ---------- Scroll progress: a day's sky, left to right ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 4px;
  transform: scaleX(var(--scroll));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--blue), var(--violet));
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  /* the stagger delay applies to the reveal only, so hover stays instant */
  transition:
    opacity 0.7s ease calc(var(--i, 0) * 90ms),
    transform 0.8s var(--ease) calc(var(--i, 0) * 90ms),
    translate 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s;
}
.js [data-reveal].in { opacity: 1; transform: none; }
[data-draw] { --p: 1; }

/* ---------- Sky: header + hero ---------- */

.sky {
  position: relative;
  color: var(--sky-ink);
  background: linear-gradient(180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 52%,
    var(--sky-horizon) 86%);
  overflow: hidden;
}
.sky::before, .site-footer::before {
  /* a few stars, shown only after dark */
  content: "";
  position: absolute;
  inset: 0 0 45% 0;
  opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 17% 61%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 29% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 44%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 52% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 69% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 77% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 26%, #fff 50%, transparent 51%);
  pointer-events: none;
  animation: twinkle 3.5s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: calc(var(--stars) * 0.45); } }

.sky-fx { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute;
  top: var(--top);
  left: 0;
  width: var(--w);
  height: calc(var(--w) * 0.3);
  border-radius: 999px;
  background: var(--cloud);
  opacity: var(--cloud-opacity);
  filter: blur(7px);
  animation: drift var(--t) linear infinite;
  animation-delay: var(--delay);
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { left: 16%; bottom: 30%; width: 40%; }
.cloud::after { left: 46%; bottom: 25%; width: 30%; }
@keyframes drift {
  from { transform: translateX(-26rem); }
  to { transform: translateX(100vw); }
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 0;
}
.site-header a { color: inherit; text-decoration: none; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.wordmark svg { transition: rotate 0.6s var(--ease); }
.wordmark:hover svg { rotate: 360deg; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.9vw, 1.75rem);
  font-size: 1rem;
}
.site-header nav a:not(.nav-cta) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--ease); padding-block: 0.2rem; }
.site-header nav a:not(.nav-cta):hover { background-size: 100% 2px; }
.site-header .nav-cta {
  padding: 0.45rem 1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.site-header .nav-cta:hover { background: var(--sky-ink); color: var(--sky-ink-contrast); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  padding: 0.35rem 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 10;
  display: grid;
  gap: 0;
  min-width: 14rem;
  padding: 0.6rem;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 40px -16px rgb(var(--shadow-rgb) / 0.6);
}
.mobile-menu nav a { padding: 0.6rem 0.8rem; border-radius: 10px; }
.mobile-menu nav a:hover { background: rgba(255, 255, 255, 0.12); }

.hero {
  position: relative;
  min-height: min(80vh, 50rem);
  display: flex;
  flex-direction: column;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(15rem, 26vw, 21rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero h1 {
  max-width: 16ch;
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: var(--h1-weight);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.js .hero h1 .w {
  display: inline-block;
  opacity: 0;
  animation: word-in 0.75s var(--ease) forwards;
  animation-delay: calc(var(--i) * 60ms + 200ms);
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.5em) rotate(3deg); }
  to { opacity: 1; transform: none; }
}
.lede {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.25rem;
}
.js .hero .lede { animation: rise 0.8s 1s var(--ease) both; }
.js .hero .hero-actions { animation: rise 0.8s 1.15s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.button:hover { translate: 0 -3px; box-shadow: 0 14px 28px -12px rgb(var(--shadow-rgb) / 0.55); }
.button:active { translate: 0 0; }
.sky .button { background: var(--sky-ink); color: var(--sky-ink-contrast); }
.button.light { background: var(--paper); color: var(--ink); }
.hero .text-link { color: inherit; }

.hero-text { position: relative; z-index: 1; }
/* The portrait is deliberately plain and still: no glow, no motion. */
.hero-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 10px 10px;
  background: var(--soft-panel);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.sky-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: auto auto 0;
  padding: 2rem var(--gutter) clamp(8.5rem, 19vw, 14rem);
  font-size: 0.95rem;
  text-align: right;
  opacity: 0.85;
}
.ridges {
  position: absolute;
  inset: auto 0 -1px 0;
  z-index: 1;
  width: 100%;
  height: clamp(9rem, 22vw, 19rem);
  display: block;
  overflow: visible;
}
.ridge-far { fill: var(--ridge-far); }
.ridge-mid { fill: var(--ridge-mid); }
.ridge-near { fill: var(--ink); }

/* ---------- Ground: the statement ---------- */

.ground {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(6rem, 12vw, 9.5rem);
}
.ground-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.statement {
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: var(--statement-weight);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.facts-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: 1.25rem;
}
.dot { flex: none; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }

/* ---------- Bands ---------- */

.band {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(5.5rem, 11vw, 9rem);
}
.edge {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: clamp(2.5rem, 6vw, 5rem);
  display: block;
  transform: translateY(-98%);
  fill: var(--edge);
  pointer-events: none;
}
.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
}
.band h2 {
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: var(--h2-weight);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.band h3, .crisis h3 {
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
}
.large {
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.note { color: var(--ink-soft); font-size: 1rem; }
.on-dark { color: var(--paper); }
.on-dark a { color: var(--on-dark-link); }
.on-dark .note { color: rgba(255, 255, 255, 0.8); }

.care { --edge: var(--edge-care); background: var(--band-care); }
.approach { background: var(--band-approach); }
.welcome { background: var(--band-welcome); overflow: hidden; }
.about { --edge: var(--edge-about); background: var(--band-about); }
.blog-teaser { background: var(--band-blog); }
.visits { --edge: var(--edge-visits); background: var(--band-visits); }
.practical { background: var(--band-practical); padding-bottom: clamp(7rem, 13vw, 10rem); }
.contact {
  --edge: var(--edge-contact);
  background:
    radial-gradient(circle at var(--ox) var(--oy), var(--glow), transparent 38%),
    var(--band-contact);
  animation: glow-drift 22s ease-in-out infinite alternate;
  padding-bottom: clamp(7rem, 13vw, 10rem);
}
@keyframes glow-drift {
  from { --ox: 12%; --oy: 85%; }
  to { --ox: 88%; --oy: 60%; }
}

/* Cards */
.cards { display: grid; gap: 1.25rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.card {
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: 22px;
  transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.7s ease, transform 0.8s var(--ease);
}
.card:hover { translate: 0 -7px; box-shadow: 0 22px 44px -20px rgb(var(--shadow-rgb) / 0.45); }
.card p { margin-top: 0.6rem; }
.tone-dawn { background: var(--tone-1); }
.tone-day { background: var(--tone-2); }
.tone-gold { background: var(--tone-3); }
.tone-meadow { background: var(--tone-4); }
.glass { background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.85); }
.paper-card { background: #fff; box-shadow: 0 18px 40px -26px rgb(var(--shadow-rgb) / 0.4); }
.icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: rotate 0.4s var(--ease), scale 0.4s var(--ease);
}
.card:hover .icon { rotate: -10deg; scale: 1.1; }
.icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* What I can help with */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chips li {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--c, #fff);
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.3;
  transition: translate 0.25s var(--ease), opacity 0.7s ease, transform 0.8s var(--ease);
}
.chips li:hover { translate: 0 -4px; }
.chips li:nth-child(7n+1) { --c: var(--chip-1); }
.chips li:nth-child(7n+2) { --c: var(--chip-2); }
.chips li:nth-child(7n+3) { --c: var(--chip-3); }
.chips li:nth-child(7n+4) { --c: var(--chip-4); }
.chips li:nth-child(7n+5) { --c: var(--chip-5); }
.chips li:nth-child(7n+6) { --c: var(--chip-6); }
.chips li:nth-child(7n+7) { --c: var(--chip-7); }

/* Everyone is welcome: a rainbow that draws itself as you scroll */
.welcome-text { max-width: 35rem; }
.welcome-text > * + * { margin-top: 1.25rem; }
.rainbow {
  position: absolute;
  right: -3%;
  bottom: 0;
  width: min(50vw, 44rem);
  display: block;
}
.rainbow path {
  fill: none;
  stroke-width: 21;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p));
}

/* About + the trail */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-text > * + * { margin-top: 1.15rem; }
.name { font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; }
.pronouns { font-family: var(--sans); font-variation-settings: normal; font-size: 1rem; color: var(--ink-soft); white-space: nowrap; }
.credential-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }
.credential-chips li { padding: 0.35rem 0.9rem; border-radius: 999px; background: #fff; font-size: 0.95rem; font-weight: 600; }
.trail-wrap { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 22px; background: rgba(255, 255, 255, 0.7); }
.trail { position: relative; margin-top: 1.5rem; padding-left: 2.5rem; }
.trail::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 1.2rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pink), var(--gold), var(--blue), var(--violet));
  transform: scaleY(var(--p));
  transform-origin: 50% 0;
}
.trail li { position: relative; padding-bottom: 1.5rem; }
.trail li:last-child { padding-bottom: 0; }
.trail li::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0.3rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 4px solid var(--violet);
  background: #fff;
}
.trail li:last-child::before { background: var(--gold); border-color: var(--alpenglow); box-shadow: 0 0 0 6px rgba(244, 183, 64, 0.35); }
.trail .year { display: block; color: var(--alpenglow); font-weight: 700; font-size: 0.95rem; }
.trail strong { display: block; font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.trail li > span:last-child { display: block; color: var(--ink-soft); font-size: 1rem; }

/* Blog cards */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 40px -28px rgb(var(--shadow-rgb) / 0.45);
}
.post-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--strip); }
.post-card p { margin-top: 0; }
.post-card h3 { font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.post-card .more { margin-top: auto; padding-top: 0.5rem; color: var(--noon); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }
.tag { align-self: flex-start; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--tag); font-size: 0.9rem; font-weight: 650; }
.skills { --strip: var(--strip-skills); --tag: var(--tag-skills); }
.research { --strip: var(--strip-research); --tag: var(--tag-research); }
.all { --strip: var(--strip-all); --tag: var(--tag-all); }
.planned { box-shadow: none; background: rgba(255, 255, 255, 0.6); }

/* First visit: a real sequence, so it is numbered */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.steps::before {
  /* the track between the steps keeps moving forward */
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: calc(clamp(1.4rem, 2.4vw, 1.9rem) + 1.5rem);
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0 10px, transparent 10px 22px);
  animation: march 0.9s linear infinite;
}
@keyframes march { to { background-position: 22px 0; } }
.steps li {
  position: relative;
  counter-increment: step;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  transition: translate 0.3s var(--ease), background 0.3s, opacity 0.7s ease, transform 0.8s var(--ease);
}
.steps li:hover { translate: 0 -7px; background: rgba(255, 255, 255, 0.16); }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: 1.5rem;
  font-weight: 500;
}
.steps li:nth-child(1) { --c: var(--step-1); }
.steps li:nth-child(2) { --c: var(--step-2); }
.steps li:nth-child(3) { --c: var(--step-3); }
.steps li:nth-child(4) { --c: var(--step-4); }
.steps p { margin-top: 0.6rem; }

/* Fees and location */
.paper-card h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 1.25rem; }
.paper-card > * + * { margin-top: 1rem; }
.facts, .contact-lines { border-top: 1px solid var(--rule); }
.facts > div, .contact-lines > div {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.facts dt, .contact-lines dt { font-weight: 650; }
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.where > div > * + * { margin-top: 0.9rem; }
address { font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.35; }
.mini-map { display: block; width: 100%; height: auto; }
.mini-map text { font-family: var(--sans); font-size: 11px; fill: var(--ink-soft); }
.mini-map .pin-label { font-weight: 700; fill: var(--ink); }
.pin-pulse {
  fill: none;
  stroke: var(--alpenglow);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(2.6); opacity: 0; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-grid > div:first-child > * + * { margin-top: 1.5rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.contact .contact-lines, .contact .contact-lines > div { border-color: rgba(255, 255, 255, 0.25); }
.contact-lines dd { font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: 1.35rem; line-height: 1.3; }
.crisis {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgb(var(--shadow-rgb) / 0.6);
  color: var(--paper);
}
.crisis p, .crisis ul { margin-top: 0.9rem; }
.crisis li { position: relative; padding-left: 1.1rem; }
.crisis li + li { margin-top: 0.45rem; }
.crisis li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--sun-gold); }
.crisis a { color: var(--on-dark-link); font-weight: 600; }

/* ---------- Footer: night ---------- */

.site-footer {
  --edge: var(--night);
  --stars: 1;
  position: relative;
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 1rem;
}
.site-footer::before { inset: 0; }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1.6fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.footer-grid nav { display: grid; gap: 0.5rem; align-content: start; }
.footer-name { margin-bottom: 0.5rem; font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: 1.35rem; color: var(--paper); }
.small p + p { margin-top: 0.6rem; }

/* ---------- Inner pages: blog, articles, scheduling, patient login ---------- */

.app-top {
  position: relative;
  background: var(--app-top);
  color: var(--paper);
  --sky-ink: var(--paper);
  --sky-ink-contrast: var(--ink);
  padding-bottom: 1.5rem;
}
.page-title {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(1rem, 3vw, 2rem);
}
.page-title h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.page-title p { max-width: 38rem; margin-top: 1rem; font-size: clamp(1.15rem, 1.6vw, 1.3rem); }
.app-main { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 9vw, 7rem); background: linear-gradient(180deg, var(--app-main-top), var(--paper) 22rem); }
.narrow { max-width: 46rem; }
.app-main h1, .page-title h1 {
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.app-main h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.app-main h1 + p { margin-top: 1rem; }
.demo-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: #FFF1C2;
  outline: 1px dashed #8A6A00;
  border-radius: 4px;
  font-size: 1rem;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.article { max-width: 42rem; }
.article .tag { display: inline-block; margin-bottom: 1rem; }
.byline { margin-top: 1rem; color: var(--ink-soft); font-size: 1rem; }
.article-body { margin-top: 2.5rem; }
.article-body > * + * { margin-top: 1.15rem; }
.article-body h2 { margin-top: 2.75rem; font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: 1.65rem; font-weight: 500; line-height: 1.2; }
.article-body ul li, .article-body ol li { position: relative; margin-top: 0.5rem; padding-left: 1.3rem; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--alpenglow); }
.article-body ol { counter-reset: n; }
.article-body ol li { counter-increment: n; padding-left: 2rem; }
.article-body ol li::before { content: counter(n); position: absolute; left: 0; font-family: var(--serif); font-variation-settings: var(--display-fvs); font-weight: 600; color: var(--alpenglow); }
.try-it { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 22px; background: var(--tone-3); }
.try-it h2 { margin-top: 0; }
.article-end { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.article-end > * + * { margin-top: 1rem; }

/* Breathing guide */
.breath { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: center; margin-top: 1.5rem; }
.breath-box {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  border: 4px solid rgb(var(--shadow-rgb) / 0.25);
  border-radius: 14px;
}
.breath-dot {
  position: absolute;
  left: -0.75rem;
  top: calc(100% - 0.75rem);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgb(var(--shadow-rgb) / 0.15);
}
.breath.running .breath-dot { animation: box-walk 16s linear infinite; }
@keyframes box-walk {
  0% { left: -0.75rem; top: calc(100% - 0.75rem); }
  25% { left: -0.75rem; top: -0.75rem; }
  50% { left: calc(100% - 0.75rem); top: -0.75rem; }
  75% { left: calc(100% - 0.75rem); top: calc(100% - 0.75rem); }
  100% { left: -0.75rem; top: calc(100% - 0.75rem); }
}
.breath-label { font-family: var(--serif); font-variation-settings: var(--display-fvs); font-size: 1.6rem; line-height: 1.2; }
.breath-controls { margin-top: 0.9rem; }

.booking { counter-reset: step; }
.booking fieldset {
  counter-increment: step;
  min-width: 0;
  margin: 2.75rem 0 0;
  padding: 0;
  border: 0;
}
.booking legend, .login-form h2, .done h2 {
  padding: 0;
  margin-bottom: 0.9rem;
  font-family: var(--serif); font-variation-settings: var(--display-fvs);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
}
.booking legend::before { content: counter(step) ". "; color: var(--alpenglow); }
.hint { margin-top: 0.75rem; color: var(--ink-soft); font-size: 1rem; }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choices + .choices { margin-top: 1rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: block;
  padding: 0.65rem 1.05rem;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: #fff;
  line-height: 1.3;
  cursor: pointer;
  transition: translate 0.2s var(--ease), border-color 0.2s;
}
.choice span:hover { translate: 0 -2px; border-color: var(--ink); }
.choice small { display: block; font-size: 0.9rem; opacity: 0.8; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--sun-gold); outline-offset: 3px; }
.choice input:disabled + span { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; translate: none; }

.field { display: grid; gap: 0.35rem; margin-top: 1rem; max-width: 26rem; }
.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.summary { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--soft-panel); border-radius: 12px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--noon); font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.done, .login-form { margin-top: 2.5rem; }
.done > * + *, .portal-list { margin-top: 1rem; }
.portal-list li { padding-left: 1.1rem; position: relative; }
.portal-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--alpenglow); }

/* ---------- Look: Alpenglow (default). Plum, coral, marigold and teal; a soft, slightly wonky serif. ---------- */

[data-theme="alpenglow"] {
  --ink: #2B1638;
  --ink-soft: #6A5573;
  --paper: #FFF9F2;
  --rule: #EBD9D2;
  --noon: #9C2B66;
  --alpenglow: #C8432B;
  --sun-gold: #F6B23C;
  --pink: #FF7F6B;
  --gold: #F6B23C;
  --blue: #2FA6A0;
  --violet: #8E5BD0;
  --night: #1C0E26;
  --night-text: #DCCFE3;
  --shadow-rgb: 43 22 56;
  --soft-panel: #F6E9F2;
  --field-border: #BFA8C9;
  --on-dark-link: #FFD89A;
  --glow: rgba(255, 170, 80, 0.45);
  --band-care: linear-gradient(180deg, #FFE6D5, #FBE3F0);
  --edge-care: #FFE6D5;
  --band-approach: linear-gradient(160deg, #FFE9A8 0%, #FFC9A8 55%, #FFAFA3 100%);
  --band-welcome: linear-gradient(90deg, #3A1650 0%, #7B2A7A 48%, #D9486B 78%, #FF9A4D 100%);
  --band-welcome-narrow: linear-gradient(180deg, #3A1650 0%, #7B2A7A 60%, #A83A6E 100%);
  --band-about: linear-gradient(180deg, #F6ECFB, #E3F4F1);
  --edge-about: #F6ECFB;
  --band-blog: linear-gradient(180deg, #E3F4F1, #FFF1D6);
  --band-visits: linear-gradient(180deg, #0F5257, #197570);
  --edge-visits: #0F5257;
  --band-practical: linear-gradient(180deg, #FFF1D6, #FFE0D6);
  --band-contact: linear-gradient(180deg, #2B1638 0%, #5C1F5E 55%, #A8324F 100%);
  --edge-contact: #2B1638;
  --app-top: linear-gradient(110deg, #2B1638 0%, #5C1F5E 50%, #A8324F 85%, #E4672E 100%);
  --app-main-top: #FBE3F0;
  --tone-1: linear-gradient(160deg, #FFD0A6, #FFA9A0);
  --tone-2: linear-gradient(160deg, #BFEAE4, #D8C9F6);
  --tone-3: linear-gradient(160deg, #FFE48F, #FFC08A);
  --tone-4: linear-gradient(160deg, #D6F0B8, #B9E6DC);
  --chip-1: #FFC2B5; --chip-2: #FFE08A; --chip-3: #B9E6DC; --chip-4: #DCC9F6; --chip-5: #FFD0A6; --chip-6: #D6F0B8; --chip-7: #F9BFE0;
  --step-1: #FFB3A6; --step-2: #FFD166; --step-3: #A8E6DF; --step-4: #D9C2F5;
  --strip-skills: linear-gradient(90deg, #F6B23C, #FF7F6B); --tag-skills: #FFE6A8;
  --strip-research: linear-gradient(90deg, #2FA6A0, #8E5BD0); --tag-research: #CDEFEA;
  --strip-all: linear-gradient(90deg, #FF7F6B, #B98AE8); --tag-all: #EFDDF8;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --hand-scale: 1.45;
  --display-fvs: "SOFT" 100, "WONK" 1;
  --h1-weight: 420;
  --h2-weight: 440;
  --statement-weight: 380;
}

/* ---------- Look: Red Rocks. Pine, sandstone, sunflower and sky; an expressive grotesque. ---------- */

[data-theme="redrocks"] {
  --ink: #1F3A33;
  --ink-soft: #56706A;
  --paper: #FBF5E9;
  --rule: #E2D8C3;
  --noon: #1B5E86;
  --alpenglow: #B8472F;
  --sun-gold: #F2B93B;
  --pink: #E0694A;
  --gold: #F2B93B;
  --blue: #5BAFD6;
  --violet: #3E7C6A;
  --night: #12241F;
  --night-text: #CFDDD6;
  --shadow-rgb: 31 58 51;
  --soft-panel: #EEF0DF;
  --field-border: #A9B8A8;
  --on-dark-link: #FFD98A;
  --glow: rgba(242, 185, 59, 0.4);
  --band-care: linear-gradient(180deg, #E3F0E0, #F6EFD9);
  --edge-care: #E3F0E0;
  --band-approach: linear-gradient(160deg, #FCE6B0 0%, #F9CDA5 60%, #F2B49C 100%);
  --band-welcome: linear-gradient(90deg, #1F3A33 0%, #2F5F6E 45%, #C8553D 80%, #F2B93B 100%);
  --band-welcome-narrow: linear-gradient(180deg, #1F3A33 0%, #2F5F6E 60%, #8A4A3A 100%);
  --band-about: linear-gradient(180deg, #F3EBDD, #E3F0E0);
  --edge-about: #F3EBDD;
  --band-blog: linear-gradient(180deg, #E3F0E0, #DCEEF5);
  --band-visits: linear-gradient(180deg, #1E4E6B, #2A6E8E);
  --edge-visits: #1E4E6B;
  --band-practical: linear-gradient(180deg, #FBEED2, #F7DCC9);
  --band-contact: linear-gradient(180deg, #1F3A33 0%, #3A4F3A 50%, #8A4A3A 100%);
  --edge-contact: #1F3A33;
  --app-top: linear-gradient(110deg, #1F3A33 0%, #2F5F6E 50%, #C8553D 92%);
  --app-main-top: #E3F0E0;
  --tone-1: linear-gradient(160deg, #F9D3B0, #F2B49C);
  --tone-2: linear-gradient(160deg, #CFE6F2, #CFE5D2);
  --tone-3: linear-gradient(160deg, #FBE39A, #F6C98B);
  --tone-4: linear-gradient(160deg, #D5EBC8, #BFE0D5);
  --chip-1: #F6C7B5; --chip-2: #FBE39A; --chip-3: #CFE6F2; --chip-4: #D5EBC8; --chip-5: #F9D3B0; --chip-6: #BFE0D5; --chip-7: #EAD7C0;
  --step-1: #F6B8A3; --step-2: #F6D06B; --step-3: #B5DCEF; --step-4: #C9E6B8;
  --strip-skills: linear-gradient(90deg, #F2B93B, #E0694A); --tag-skills: #FBE7A8;
  --strip-research: linear-gradient(90deg, #5BAFD6, #3E7C6A); --tag-research: #D3E9F2;
  --strip-all: linear-gradient(90deg, #E0694A, #5BAFD6); --tag-all: #EADFCB;
  --serif: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --hand-scale: 1.45;
  --display-fvs: "wdth" 88;
  --h1-weight: 600;
  --h2-weight: 600;
  --statement-weight: 450;
}
[data-theme="redrocks"] .band h3, [data-theme="redrocks"] .crisis h3, [data-theme="redrocks"] .post-card h3 { font-weight: 650; }

/* Handwritten touches: the sky caption and the years on the trail */
.sky-caption, .trail .year { font-family: var(--hand); }
.sky-caption { font-size: calc(0.95rem * var(--hand-scale)); }
.trail .year { font-size: calc(0.95rem * var(--hand-scale)); line-height: 1.1; }

/* Draft tool: compare looks. Only present while <html data-draft>. */
.theme-switch {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  border-radius: 999px;
  background: #FFF1C2;
  outline: 1px dashed #8A6A00;
  color: #141A3A;
  font: 600 0.9rem/1.2 system-ui, sans-serif;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5);
}
.theme-switch button {
  padding: 0.3rem 0.7rem;
  border: 1.5px solid #141A3A;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: #141A3A; color: #FFF1C2; }
.theme-switch button { white-space: nowrap; }
@media (max-width: 34rem) {
  .theme-switch { left: 0.5rem; bottom: 0.5rem; gap: 0.25rem; padding-left: 0.7rem; font-size: 0.8rem; }
  .theme-switch button { padding: 0.25rem 0.55rem; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 68rem) {
  .main-nav a:not(.nav-cta) { display: none; }
  .mobile-menu { display: block; }
  .cards-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 56rem) {
  .hero-inner, .ground-grid, .band-head, .about-grid, .contact-grid, .cards-3, .cards-2, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { width: min(15rem, 68%); }
  /* on narrow screens the rainbow sits above the text, and the band stays dark behind the words */
  .welcome { background: var(--band-welcome-narrow); padding-top: 2.5rem; }
  .rainbow { position: static; width: calc(100% - 2 * var(--gutter)); max-width: 26rem; margin: 0 auto 2rem; }
}
@media (max-width: 34rem) {
  body { font-size: 1.0625rem; }
  .site-header { gap: 0.6rem 0.75rem; }
  .wordmark { gap: 0.45rem; font-size: 1.05rem; }
  .wordmark svg { width: 22px; height: 22px; }
  .main-nav { display: none !important; }
  .cards-4, .steps, .where { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .contact-lines > div { grid-template-columns: minmax(0, 1fr); }
  .sky-caption { text-align: left; }
  .breath { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion: everything holds still ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .cloud { transform: translateX(calc(var(--w) * 1.5)); }
}
