/* ==========================================================================
   Clean Shot Living: design system
   Draft build. Tokens follow docs/brand-baseline.md and docs/proposed-ia.md §7.
   ========================================================================== */

:root {
  /* Direction C: Editorial. Contrast measured against --paper #FAF7F2:
     clay 4.9:1, sage 7.1:1, ink ~16:1. Terracotta is display-only at 3.0:1. */
  --paper:      #FAF7F2;   /* warm paper */
  --white:      #FFFFFF;
  --ink:        #1F1B17;   /* warm near-black */
  --ink-muted:  #6B6055;
  --action:     #9C5B3C;   /* clay: buttons + links, 4.9:1 on paper */
  --display:    #C87F55;   /* terracotta: DISPLAY ONLY, 3.0:1 */
  --brand:      #3F5A4E;   /* sage: focus, accents, card edge, 7.1:1 */
  --brand-lit:  #6E8B7A;
  --panel:      #EDE5DA;

  /* Draft annotations only. Outside the palette on purpose so a review note
     can never be mistaken for content. Deleted at launch. */
  --flag:       #B3341A;

  --rule:       rgba(31, 27, 23, .13);
  --rule-firm:  rgba(31, 27, 23, .24);
  --shadow-sm:  0 1px 2px rgba(31, 27, 23, .05), 0 2px 8px rgba(31, 27, 23, .05);
  --shadow-md:  0 2px 4px rgba(31, 27, 23, .06), 0 8px 24px rgba(31, 27, 23, .08);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 68ch;
  --page:    1200px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --band:    clamp(3.5rem, 8vw, 6.5rem);
  --radius:  3px;

  /* Photographs get their own radius. The near-square 3px suits buttons and
     panels - on a photograph it reads severe. Radius wants to scale with the
     element, so large surfaces take the bigger value. */
  --radius-img:    14px;
  --radius-img-lg: 26px;
}

/* --------------------------------------------------------------- reset-ish */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.14;
  text-wrap: balance;
}

/* Serif carries the display sizes; H3/H4 stay sans, where a serif at small
   size just muddies. A deliberate two-voice hierarchy, not an oversight. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.012em;
}
h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -.008em;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--measure);
  text-wrap: pretty;   /* kills orphans and ragged last lines */
}
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

a {
  color: var(--action);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--ink); text-decoration-color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band); }
.band--paper  { background: var(--paper); }

/* ------------------------------------------- full-page handprint backdrop */
/* Applied by putting class="paper" on <body>. The artwork is pinned to the
   viewport rather than the document, so it scales to the screen instead of
   stretching down a very long page - which keeps the clear centre behind the
   content column and the handprints out at the screen edges.
   A fixed pseudo-element is used rather than background-attachment:fixed,
   which janks badly on iOS and repaints on every scroll frame. */

.paper::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(250, 247, 242, .38), rgba(250, 247, 242, .38)),
    url("../images/handprint-bg-800.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .paper::before {
    background-image:
      linear-gradient(rgba(250, 247, 242, .38), rgba(250, 247, 242, .38)),
      image-set(url("../images/handprint-bg-800.webp") type("image/webp"),
                url("../images/handprint-bg-800.jpg")  type("image/jpeg"));
  }
}
@media (min-width: 52rem) {
  .paper::before {
    background-image:
      linear-gradient(rgba(250, 247, 242, .38), rgba(250, 247, 242, .38)),
      url("../images/handprint-bg-1536.jpg");
  }
  @supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    .paper::before {
      background-image:
        linear-gradient(rgba(250, 247, 242, .38), rgba(250, 247, 242, .38)),
        image-set(url("../images/handprint-bg-1536.webp") type("image/webp"),
                  url("../images/handprint-bg-1536.jpg")  type("image/jpeg"));
    }
  }
}

/* Let the backdrop through. The white and cream bands go transparent; the
   dark bands and the cards stay opaque so the page keeps its rhythm and
   text never sits directly on texture. */
.paper { background: transparent; }
.paper .band,
.paper .hero,
.paper .jumpnav { background: transparent; }
.paper .band--paper { background: rgba(250, 247, 242, .62); }
.paper .band--panel { background: rgba(237, 229, 218, .72); }
.paper .card { background: rgba(255, 255, 255, .88); backdrop-filter: blur(2px); }
.paper .card--paper { background: rgba(250, 247, 242, .9); }
.paper .keyfacts { background: rgba(255, 255, 255, .9); }

/* Single-section variant, for pages that aren't using the full-page backdrop */
.band--prints {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(250, 247, 242, .22), rgba(250, 247, 242, .22)),
    url("../images/handprint-bg-800.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .band--prints {
    background-image:
      linear-gradient(rgba(250, 247, 242, .22), rgba(250, 247, 242, .22)),
      image-set(url("../images/handprint-bg-800.webp") type("image/webp"),
                url("../images/handprint-bg-800.jpg")  type("image/jpeg"));
  }
}
@media (min-width: 52rem) {
  .band--prints {
    background-image:
      linear-gradient(rgba(250, 247, 242, .22), rgba(250, 247, 242, .22)),
      url("../images/handprint-bg-1536.jpg");
  }
  @supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    .band--prints {
      background-image:
        linear-gradient(rgba(250, 247, 242, .22), rgba(250, 247, 242, .22)),
        image-set(url("../images/handprint-bg-1536.webp") type("image/webp"),
                  url("../images/handprint-bg-1536.jpg")  type("image/jpeg"));
    }
  }
}
.band--panel  { background: var(--panel); }
.band--ink    { background: var(--brand); color: var(--paper); }
.band--tight  { padding-block: clamp(2rem, 5vw, 3.25rem); }

.band--ink h2, .band--ink h3 { color: var(--white); }
.band--ink a { color: var(--brand-lit); }
.band--ink a:hover { color: var(--white); }

/* ------------------------------------------------------- split sections */
/* Editorial two-column section: heading in a narrow left rail, content in a
   wider right column. The heading pins while its own section scrolls past,
   then releases - so on a long page you always know which section you're in.

   Collapses to a single stack below 62rem, where a rail would be pointless. */

.section-split { display: grid; gap: clamp(1rem, 3vw, 1.75rem); }

@media (min-width: 62rem) {
  .section-split {
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }
  .section-split > .section-head {
    position: sticky;
    top: var(--sticky-top, 6.5rem);
    align-self: start;
  }
}

.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: .6rem; }

/* A hairline that only exists once the columns do */
@media (min-width: 62rem) {
  .section-head::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 1.1rem;
    background: var(--brand);
  }
}

.section-body > :first-child { margin-top: 0; }

/* Pages with a sticky jump-nav need the rail to clear it */
.has-jumpnav { --sticky-top: 9.5rem; }

@media (prefers-reduced-motion: reduce) {
  .section-split > .section-head { position: static; }
}

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.stack > * + * { margin-top: 1.15em; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* -------------------------------------------------------------- typography */

.display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  font-weight: 400;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.15rem, 4.8vw, 3.25rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.05rem); }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.012em; }

/* A heading opening a band shouldn't also carry the band's top padding */
.band > .wrap > h2:first-child,
.band > .wrap > .eyebrow:first-child { margin-top: -.15em; }

.eyebrow {
  display: block;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 1rem;
}
/* Paper, not Sage Light: Sage Light on Sage measured 2.0:1 */
.band--ink .eyebrow { color: rgba(250, 247, 242, .86); }

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-muted);
}
.band--ink .lead { color: rgba(250, 247, 242, .82); }

.small { font-size: .9375rem; color: var(--ink-muted); }
.micro { font-size: .875rem; color: var(--ink-muted); }

/* ------------------------------------------------------------- inset hero */
/* A rounded photograph inset from the page edges, with the headline sitting
   on it. A scrim rather than a flat overlay, so the top of the image stays
   clean and only the text area darkens. */

.hero-inset {
  position: relative;
  border-radius: var(--radius-img-lg);
  overflow: hidden;
  min-height: clamp(24rem, 62vh, 40rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-inset > img,
.hero-inset > picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-inset > picture > img,
.hero-inset > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}
.hero-inset::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(6, 24, 16, .88) 0%,
    rgba(6, 24, 16, .55) 34%,
    rgba(6, 24, 16, .12) 62%,
    rgba(6, 24, 16, .04) 100%);
}
.hero-inset-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}
.hero-inset-body h1,
.hero-inset-body .display { color: #fff; margin-bottom: 0; max-width: 18ch; }
.hero-inset-body p { color: rgba(255, 255, 255, .84); max-width: 32ch; margin-bottom: 1rem; }
.hero-inset .eyebrow { color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------- arrow pill */

.btn--arrow { padding-right: .45rem; gap: .85rem; }
.btn--arrow .arrowdot {
  display: inline-grid;
  place-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: .9rem;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
}
.btn--arrow:hover .arrowdot { transform: translate(2px, -2px); background: rgba(255, 255, 255, .3); }

/* --------------------------------------------------------------- row list */
/* Each row is a whole link. Far more scannable than the same information
   written out as a sentence, and every row becomes its own door. */

.rowlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rowlist li { margin: 0; border-bottom: 1px solid var(--rule); }
.rowlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 62px;
  padding: .9rem .25rem;
  color: inherit;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: padding-inline-start .18s ease, color .18s ease;
}
.rowlist a:hover { color: var(--action); padding-inline-start: .8rem; }
.rowlist .rowlist-note {
  margin-left: auto;
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-align: right;
}
.rowlist .arrowdot {
  flex: none;
  display: inline-grid;
  place-content: center;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--rule-firm);
  border-radius: 50%;
  font-size: .85rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.rowlist a:hover .arrowdot {
  transform: translateX(3px);
  background: var(--action);
  border-color: var(--action);
  color: #0A2317;
}
@media (prefers-reduced-motion: reduce) {
  .rowlist a:hover { padding-inline-start: .25rem; }
  .rowlist a:hover .arrowdot, .btn--arrow:hover .arrowdot { transform: none; }
}

/* -------------------------------------------------------------- statement */
/* Big type where the relevant item is lit and the rest recedes - shows the
   whole footprint while making clear which part is being talked about. */

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -.028em;
  font-weight: 600;
  max-width: 20ch;
  text-wrap: balance;
}
.statement .dim { color: var(--ink-muted); }
.statement .lit { color: var(--ink); }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .7rem 1.5rem;
  border: 2px solid var(--action);
  border-radius: 999px;
  background: var(--action);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover {
  background: #7E4830;   /* clay, one step down: white on it clears 6:1 */
  border-color: #7E4830;
  color: var(--white);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--ghost {
  background: transparent;
  color: var(--action);
}
.btn--ghost:hover { background: var(--action); color: var(--white); }
.btn { transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(0); }

.btn--onink { border-color: var(--paper); background: transparent; color: var(--paper); }
.btn--onink:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.btn-row--center { justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------- clean mode */
/* Toggling .clean on <html> strips every draft annotation so the design can
   be judged on its own. Nothing is deleted - the markup is identical, only
   the review furniture is hidden. Toggle button lives bottom-right. */

.clean .draftbar,
.clean .ph-block,
.clean [data-draft] { display: none !important; }

/* Inline placeholders keep their text but lose the orange. Where the text is
   a question rather than proposed copy it will read oddly - that's the honest
   signal that the sentence still needs an answer. */
.clean .ph {
  background: none;
  border-bottom: 0;
  color: inherit;
  font-style: inherit;
  padding: 0;
}

.cleantoggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .45rem .9rem;
  border: 1px solid rgba(250, 247, 242, .28);
  border-radius: 999px;
  background: rgba(12, 26, 20, .88);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.cleantoggle:hover { background: var(--ink); }
.cleantoggle .dot-i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--flag);
}
.clean .cleantoggle .dot-i { background: var(--brand-lit); }

@media print { .cleantoggle { display: none; } }

/* -------------------------------------------------------------- draft chip */

.draftbar {
  background: var(--ink);
  color: var(--paper);
  font-size: .8125rem;
  line-height: 1.5;
  padding: .6rem 0;
}
.draftbar strong { color: var(--flag); letter-spacing: .06em; }
.draftbar .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; }

/* Inline placeholder: an unanswered question, deliberately conspicuous */
.ph {
  background: rgba(194, 78, 0, .08);
  border-bottom: 2px dashed var(--flag);
  color: var(--flag);
  font-style: italic;
  padding: 0 .2em;
}

/* Block placeholder: a whole section that cannot be written yet */
.ph-block {
  border: 2px dashed var(--flag);
  border-radius: var(--radius);
  background: rgba(194, 78, 0, .06);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1.15em;
}
.ph-block > :last-child { margin-bottom: 0; }
.ph-block .ph-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: .6rem;
}
.ph-block p { color: var(--ink-muted); font-style: italic; }

/* ------------------------------------------------------------------ header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* Only asserts itself once the page has moved */
.is-scrolled .masthead {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 12px rgba(12, 26, 20, .06);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand span { color: var(--action); }
.brand-mark {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 56vw);
}

.nav { display: none; }
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.8vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav li { margin: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--action); }
.nav a[aria-current="page"] { font-weight: 600; }

.masthead .btn { padding: .55rem 1.15rem; font-size: .9375rem; }

/* Tap-to-call sits ON the bar on mobile, never inside the menu */
.callchip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.callchip:hover { background: #7E4830; color: var(--white); }

.navtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-firm);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.navtoggle svg { width: 20px; height: 20px; }

@media (min-width: 62rem) {
  .nav { display: block; }
  .navtoggle, .callchip { display: none; }
}

/* Mobile drawer */
.nav[data-open="true"] {
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  padding: .5rem var(--gutter) 1.25rem;
}
.nav[data-open="true"] ul { flex-direction: column; align-items: stretch; gap: 0; }
.nav[data-open="true"] li + li { border-top: 1px solid var(--rule); }
.nav[data-open="true"] a { min-height: 52px; width: 100%; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
}
.skip:focus { left: .5rem; top: .5rem; }

/* -------------------------------------------------------------------- hero */

.hero { background: var(--paper); }
.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

/* Deliberately uneven: the photograph carries more weight than the copy,
   and the tighter text column makes the display type read as more
   confident than a full-width measure would. */
@media (min-width: 62rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero .wrap > :first-child { max-width: 30rem; }
}

.hero .lead { max-width: 34ch; }

/* The hero photograph is portrait; in the wider column a 4:5 crop would run
   very tall, so ease it toward square as the column grows. */
@media (min-width: 62rem) {
  .hero .shot--hero { aspect-ratio: 9 / 10; }
}
@media (min-width: 80rem) {
  .hero .shot--hero { aspect-ratio: 1 / 1; }
}

/* --------------------------------------------------------- image placeholder */

.imgph {
  position: relative;
  display: grid;
  place-content: center;
  gap: .5rem;
  padding: 1.5rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-img);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, var(--panel), #d9c8bb);
  border: 1px solid rgba(12, 26, 20, .08);
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: hidden;
}
.imgph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, .5) 0 18%, transparent 19%),
    radial-gradient(circle at 74% 66%, rgba(12, 26, 20, .05) 0 26%, transparent 27%);
  pointer-events: none;
}
.imgph b {
  position: relative;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(12, 26, 20, .5);
}
.imgph i {
  position: relative;
  font-size: .9375rem;
  font-style: italic;
  color: rgba(12, 26, 20, .62);
  max-width: 26ch;
}
.imgph--hero { aspect-ratio: 5 / 4; }
.imgph--wide { aspect-ratio: 16 / 9; }
.imgph--tall { aspect-ratio: 3 / 4; }
.imgph--sq   { aspect-ratio: 1 / 1; }

/* ----------------------------------------------------------- real photos */
/* Most of the library is portrait (1200x1600), so slots crop with cover.
   Tune the framing per image with --pos (object-position) inline. */

.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
/* <picture> is inline by default, which would collapse the height:100% chain
   below it. Make it transparent to layout so .shot img still fills the frame. */
.shot picture,
.tx .frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}
.shot--hero { aspect-ratio: 4 / 5; }   /* portrait-friendly */
/* A photo heading a card. Cards run three-up, so these render around 370px - far narrower than a standalone .shot--land, which the sizes hint relies on. */
/* .shot.shot--incard, not .shot--incard: `figure.shot { margin: 0 }` below
   outranks a single class and was leaving card titles touching the photo. */
.shot.shot--incard { margin-bottom: 1.25rem; }

/* The painted panels are drawn 4:3. Matches .morph--4x3 so a painting can
   move between a plain figure and a morph without being recropped. */
.shot--4x3 { aspect-ratio: 4 / 3; }
/* Some of the paintings come 5:4 instead - squarer, and cropping them to 4:3
   clips content at the left and right edges. */
.shot--5x4 { aspect-ratio: 5 / 4; }
/* Same ratio, but three-up in a grid - separate so the responsive
   sizes hint can be honest about the far narrower slot. */
.shot--seq { aspect-ratio: 5 / 4; }

.shot--wide { aspect-ratio: 16 / 9; }
.shot--sq   { aspect-ratio: 1 / 1; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot--land { aspect-ratio: 3 / 2; }

/* Caption sits over the bottom of a photo */
.shot figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem .9rem .7rem;
  background: linear-gradient(to top, rgba(12, 26, 20, .78), transparent);
  color: #fff;
  font-size: .8125rem;
  line-height: 1.4;
}
figure.shot { margin: 0; }

/* A composition, not a contact sheet: one dominant tile anchors the grid and
   the rest sit around it. First child is the anchor.

   mobile          desktop
   ┌───────┐       ┌───────────┬───┐
   │   1   │       │           │ 2 │
   ├───┬───┤       │     1     ├───┤
   │ 2 │ 3 │       │           │ 3 │
   ├───┼───┤       ├───┬───┬───┼───┤
   │ 4 │ 5 │       │ 4 │ 5 │ 6 │ 7 │
   └───┴───┘       └───┴───┴───┴───┘                                        */

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.mosaic > * { aspect-ratio: 1; }

.mosaic > :first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

@media (min-width: 48rem) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic > :first-child {
    grid-column: span 3;
    grid-row: span 2;
    aspect-ratio: auto;   /* let the grid area define it */
  }
}

.mosaic .imgph { padding: .85rem; }
.mosaic .imgph i { display: none; }

/* ------------------------------------------------------------- urgency bar */

.urgent {
  background: var(--brand);
  color: var(--paper);
}
.urgent .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  padding-block: 1.15rem;
}
.urgent .status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
}
.urgent .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-lit);
  box-shadow: 0 0 0 4px rgba(32, 176, 149, .25);
}
.urgent .rate { color: rgba(250, 247, 242, .72); font-size: .9375rem; }
.urgent .btn-row { margin: 0; margin-left: auto; }

/* ------------------------------------------------------------------- cards */

.card {
  position: relative;
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  box-shadow: 0 1px 2px rgba(12, 26, 20, .06), 0 6px 20px rgba(12, 26, 20, .06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Brand edge along the top - replaces the numbered circles, which implied
   a sequence that Housing / Services / Meetings doesn't actually have. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand);
}
.card:hover {
  box-shadow: 0 2px 4px rgba(12, 26, 20, .07), 0 14px 34px rgba(12, 26, 20, .1);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card--paper { background: var(--paper); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: 1rem; }
.card .arrow-link { margin-top: auto; padding-top: .75rem; }

/* ---------------------------------------------------------- partner directory */
.partner-cat {
  margin: 2.75rem 0 1.15rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.partner-cat:first-child { margin-top: 0; }
.partner-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 0.5rem;
}
@media (min-width: 48rem) {
  .partner-grid { grid-template-columns: 1fr 1fr; }
}
.partner-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.35rem 1.4rem 1.25rem;
}
.partner-card::before { height: 2px; }
.partner-mark {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.partner-mark span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -.02em;
  line-height: 1;
}
.partner-mark img {
  position: absolute;
  inset: .45rem;
  width: calc(100% - .9rem);
  height: calc(100% - .9rem);
  object-fit: contain;
  background: #fff;
}
.partner-card h3 {
  margin: 0 0 .2rem;
  font-size: 1.12rem;
}
.partner-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: .45rem;
}
.partner-card p {
  margin: 0 0 .7rem;
  font-size: .95rem;
  color: var(--ink-muted);
}
.partner-visit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.partner-visit:hover { color: var(--ink); }
.partner-visit svg { width: 13px; height: 13px; flex: none; }
.partner-note {
  font-size: .9rem;
  color: var(--ink-muted);
  max-width: 52rem;
  margin: 0 0 1.75rem;
}
@media (max-width: 34rem) {
  .partner-card {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    padding: 1.15rem 1.05rem;
    gap: .85rem;
  }
  .partner-mark { width: 3.4rem; height: 3.4rem; }
}

/* ---------------------------------------------------------- testimonials */
.video-feature {
  margin: 0 auto 2.5rem;
  max-width: 52rem;
}
.video-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40rem) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 70rem) {
  .video-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.video-card {
  padding: 0;
  overflow: hidden;
}
.video-card::before { display: none; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}
.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card figcaption {
  padding: 1rem 1.15rem 1.2rem;
}
.video-card h3 {
  margin: 0;
  font-size: 1.15rem;
}
.video-card .video-time {
  display: block;
  margin-top: .25rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
}

/* Person first. Face and a line they said. Video is a choice, not the page. */
.quote-feature {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  margin: 0 auto 2rem;
  max-width: 52rem;
}
@media (min-width: 44rem) {
  .quote-feature {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    align-items: stretch;
  }
}
.quote-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 52rem) {
  .quote-grid { grid-template-columns: 1fr 1fr; }
}
.quote-card {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: .35rem 1.1rem;
  align-items: start;
  padding: 1.05rem 1.15rem 1.15rem;
}
.quote-card.quote-feature {
  grid-template-columns: 1fr;
  padding: 0;
  gap: 0;
}
@media (min-width: 44rem) {
  .quote-card.quote-feature {
    grid-template-columns: 16.5rem minmax(0, 1fr);
  }
}
.quote-card-face {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 16%;
  border-radius: var(--radius-img);
  background: #1a1714;
}
.quote-feature .quote-card-face {
  border-radius: 0;
  height: 100%;
  min-height: 16rem;
}
.quote-card-copy { min-width: 0; }
.quote-feature .quote-card-copy {
  padding: 1.45rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.38;
  color: var(--ink);
  max-width: none;
}
.quote-feature blockquote p {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.28;
}
.quote-card-name {
  margin: .7rem 0 0;
  font-weight: 600;
  font-size: .95rem;
}
.quote-card .video-time {
  display: block;
  margin-top: .12rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.quote-card details {
  grid-column: 1 / -1;
  margin-top: .55rem;
}
.quote-feature details {
  margin: 0 1.35rem 1.2rem;
}
.quote-card summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  color: var(--action);
  font-weight: 500;
  font-size: .95rem;
}
.quote-card summary::-webkit-details-marker,
.quote-card summary::marker { display: none; content: ""; }
.quote-card summary .playdot {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
}
.quote-card summary .playdot svg {
  width: .7rem;
  height: .7rem;
  margin-left: 1px;
  fill: currentColor;
}
.quote-card details[open] summary { color: var(--ink); }
.quote-card details .video-frame {
  margin-top: .35rem;
  border-radius: var(--radius-img);
  overflow: hidden;
}
@media (max-width: 43.99rem) {
  /* Keep the quote on the first screen. A full-width 4:5 portrait
     pushed Angela's words below the fold on a phone. */
  .quote-card.quote-feature {
    grid-template-columns: 7.25rem minmax(0, 1fr);
    padding: 1.05rem 1.15rem 1.15rem;
    gap: .35rem 1.05rem;
  }
  .quote-feature .quote-card-face {
    min-height: 0;
    height: auto;
    border-radius: var(--radius-img);
  }
  .quote-feature .quote-card-copy { padding: 0; }
  .quote-feature blockquote p { font-size: 1.22rem; }
  .quote-feature details { margin: .35rem 0 0; }
}
@media (max-width: 27rem) {
  .quote-card,
  .quote-card.quote-feature {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    padding: 1rem;
    gap: .3rem .85rem;
  }
  .quote-card blockquote p { font-size: 1.05rem; }
}

/* .num (numbered circles on cards) removed - it implied a sequence that
   Housing / Services / Meetings doesn't have. Cards carry a brand edge
   instead, see .card::before. */

/* ------------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 2px solid var(--rule-firm);
}
.stats > div { position: relative; }

/* Hairline between figures on wide screens - reads as a table of facts
   rather than four floating numbers. */
@media (min-width: 48rem) {
  .stats > div + div { padding-left: clamp(2rem, 4vw, 3rem); }
  .stats > div + div::before {
    content: "";
    position: absolute;
    left: 0; top: .35em; bottom: .5rem;
    border-left: 1px solid var(--rule);
  }
}

.stats dt {
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--display);   /* large display: bright orange is safe here */
  font-variant-numeric: tabular-nums;
}
.stats dd {
  margin: .85rem 0 0;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  max-width: 14ch;
}

/* ------------------------------------------------------------------- table */

.rates {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  text-align: left;
}
.rates caption { text-align: left; padding-bottom: .75rem; color: var(--ink-muted); font-size: .9375rem; }
.rates th, .rates td { padding: .95rem .5rem; border-bottom: 1px solid var(--rule); }
.rates thead th { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.rates tbody th { font-weight: 500; font-size: 1.0625rem; }
.rates td { font-weight: 600; font-size: 1.125rem; white-space: nowrap; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.15em; list-style: none; }
.pills li {
  margin: 0;
  padding: .4rem .85rem;
  border: 1px solid var(--rule-firm);
  border-radius: 999px;
  font-size: .875rem;
  background: var(--white);
}
.band--paper .pills li { background: var(--white); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .5rem; height: .85rem;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* ------------------------------------------------------------------- steps */

.steps { counter-reset: s; display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: s; padding-top: 1.25rem; border-top: 3px solid var(--panel); }
.step::before {
  content: counter(s);
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--action);
  margin-bottom: .5rem;
}
.step h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.step p { font-size: .9375rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------- quote/faq */

.quote {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.015em;
}
.quote footer { margin-top: 1.25rem; font-size: .9375rem; font-weight: 400; color: var(--ink-muted); }

details.faq {
  border-bottom: 1px solid var(--rule);
  padding: .35rem 0;
}
details.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: .5rem 0;
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--action); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding-bottom: 1.15rem; }

.impact {
  display: grid;
  gap: .75rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) { .impact { grid-template-columns: repeat(3, 1fr); } }
.impact li {
  margin: 0;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(250, 247, 242, .08);
  border: 1px solid rgba(250, 247, 242, .16);
}
.impact b { display: block; font-size: 1.5rem; color: rgba(250, 247, 242, .92); letter-spacing: -.02em; }
.impact span { font-size: .9375rem; color: rgba(250, 247, 242, .9); }   /* .78 measured 4.2:1 */

/* --------------------------------------------------------------- jump nav */
/* For long pages. Sticks under the masthead so section order stays legible. */

.jumpnav {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(250, 247, 242, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.jumpnav ul {
  display: flex;
  gap: .4rem;
  margin: 0;
  padding: .6rem var(--gutter);
  list-style: none;
  width: max-content;
  min-width: 100%;
}
.jumpnav li { margin: 0; }
.jumpnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}
.jumpnav a:hover { background: var(--white); color: var(--action); }

/* Offset anchor targets so sticky chrome doesn't cover the heading */
:target { scroll-margin-top: 130px; }
[id] { scroll-margin-top: 130px; }

/* ------------------------------------------------------------- key facts */
/* The scannable summary at the top of a long page. */

.keyfacts {
  margin: 0;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  list-style: none;
}
.keyfacts li {
  margin: 0;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
}
.keyfacts li:first-child { padding-top: 0; }
.keyfacts li:last-child { border-bottom: 0; padding-bottom: 0; }
.keyfacts strong { display: block; }
.keyfacts span { color: var(--ink-muted); font-size: .9375rem; }

/* ---------------------------------------------------------------- callout */
/* Emphasis for confirmed content. Teal, so it never reads as a placeholder. */

.callout {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(20, 112, 95, .3);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  background: rgba(20, 112, 95, .05);
  margin-bottom: 1.15em;
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { color: var(--brand); }

/* Warm variant, for the softer human moments */
.callout--warm {
  border-color: rgba(156, 91, 60, .28);
  border-left-color: var(--action);
  background: rgba(250, 247, 242, .9);
}
.callout--warm h3 { color: var(--action); }

/* --------------------------------------------------------------- schedule */

.sched { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.sched caption { text-align: left; padding-bottom: .85rem; color: var(--ink-muted); font-size: .9375rem; }
.sched th, .sched td { padding: 1rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.sched thead th { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.sched tbody th { font-weight: 600; font-size: 1.0625rem; }
.sched .when { font-weight: 500; white-space: nowrap; }
.sched .who { color: var(--ink-muted); font-size: .9375rem; }

@media (max-width: 34rem) {
  .sched thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sched tr { display: block; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
  .sched th, .sched td { display: block; border: 0; padding: .15rem 0; }
}

/* ══════════════════════════════════════════════════════════════ carousel */
/* Scroll-snap rail: native swipe on touch, buttons on desktop, and it still
   works as a horizontally scrollable list with JS off. No autoplay - this is
   a sequence someone should move through at their own pace, and auto-advance
   on a page about the worst night of someone's life would be crass. */

.carousel { position: relative; }

/* Slides stack and cross-fade rather than scrolling. One image dissolves into
   the next in the same frame, which reads as time passing in one room - the point of the sequence. */
.carousel-rail {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel-rail > li {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.carousel-rail > li[data-on="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Without JS every slide would stack invisibly - show the first one. */
html:not(.js) .carousel-rail > li:first-child { opacity: 1; pointer-events: auto; }

.carousel figure { margin: 0; }
.carousel .shot { aspect-ratio: 3 / 2; }
/* The painted sequences are drawn 5:4. Forcing them into the 3:2 default would
   crop the sky off the top, which is where most of these compositions live. */
.carousel--5x4 .shot { aspect-ratio: 5 / 4; }
.carousel figcaption { padding-top: .9rem; min-height: 6.5rem; }
.carousel figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: .3rem;
}
.carousel figcaption span {
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
  display: block;
  max-width: 46ch;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.25rem;
}
.carousel-btn {
  display: inline-grid;
  place-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--rule-firm);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.carousel-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.carousel-btn:disabled { opacity: .32; cursor: default; }
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: .4rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.carousel-dots li { margin: 0; }
.carousel-dots button {
  width: 34px; height: 4px; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--rule-firm);
  cursor: pointer;
  transition: background .2s ease;
}
.carousel-dots button[aria-current="true"] { background: var(--brand); }

/* Auto-advancing content needs a visible way to stop it - WCAG 2.2.2.
   Also pauses on hover and on keyboard focus anywhere inside the carousel. */
.carousel-play { margin-left: .2rem; }
.carousel-play .ico-pause { display: block; }
.carousel-play .ico-play  { display: none; }
.carousel-play[aria-pressed="true"] .ico-pause { display: none; }
.carousel-play[aria-pressed="true"] .ico-play  { display: block; }

@media (prefers-reduced-motion: reduce) {
  .carousel-rail > li { transition: none; }
}

/* Screen-reader-only live region for slide announcements */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-rail { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════ continuum stages */
/* The four-stage continuum of care. Numbered because these genuinely are a
   sequence - unlike the homepage service cards, where numbering implied an
   order that didn't exist. */

.stages {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}
@media (min-width: 46rem) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 74rem) { .stages { grid-template-columns: repeat(4, 1fr); } }

.stages > li {
  position: relative;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(31,27,23,.06), 0 6px 20px rgba(31,27,23,.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stages > li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand);
}

.stage-n {
  display: grid;
  place-content: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}
.stages h3 { margin-bottom: .2rem; }
.stage-abbr {
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--action);
  vertical-align: .15em;
  margin-left: .25rem;
}
.stage-len {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: .9rem;
}
.stages .ticks { margin-bottom: 0; }
.stages .ticks li { font-size: .9375rem; }
.stages .arrow-link { margin-top: auto; padding-top: .9rem; }

/* ════════════════════════════════════════════════════════════ value props */
/* The five promises from the Breaking the Cycle poster, rebuilt as live,
   clickable tiles instead of text baked into a JPEG - so they're readable by
   a screen reader, indexable, translatable, and each one goes somewhere. */

.props {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .props { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .props { grid-template-columns: repeat(5, 1fr); } }

.props > li { margin: 0; }

.props a {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  height: 100%;
  padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1.1rem, 2vw, 1.5rem);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background .22s ease, transform .22s ease;
}
.props a:hover,
.props a:focus-visible {
  background: var(--white);
  transform: translateY(-3px);
}

.props .prop-icon {
  display: grid;
  place-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--paper);
  flex: none;
  transition: background .22s ease;
}
.props a:hover .prop-icon { background: var(--action); }
.props .prop-icon svg { width: 1.35rem; height: 1.35rem; }

.props b {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
  line-height: 1.25;
  color: var(--ink);
}
.props span {
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: -.25rem;
}
.props .prop-go {
  margin-top: auto;
  padding-top: .6rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--action);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .22s ease, transform .22s ease;
}
.props a:hover .prop-go,
.props a:focus-visible .prop-go { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .props a:hover { transform: none; }
  .props .prop-go { opacity: 1; transform: none; transition: none; }
}

/* Vision / mission pair, as set on the poster */
.mission { margin: 1.75rem 0 0; }
.mission dt {
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, .72);
  margin-top: 1.1rem;
}
.mission dt:first-child { margin-top: 0; }
.mission dd {
  margin: .3rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(251, 248, 243, .94);
  max-width: 38ch;
  text-shadow: 0 1px 20px rgba(20, 14, 8, .4);
}
.mission dd em { font-style: italic; }

/* Script-styled aside, as on the poster */
.script-aside {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.25;
  color: #FBF8F3;
  text-shadow: 0 1px 24px rgba(20, 14, 8, .5);
}

/* ══════════════════════════════════════════════════════════════ chapters */
/* Full-bleed watercolour panels carrying one line of text each.
   The paintings run at full strength here - no veil - because a scrim placed
   only under the words protects legibility without draining the picture.
   Chapters alternate with dense practical bands; that rhythm is what stops
   the site feeling indulgent.                                                */

.chapter {
  position: relative;
  min-height: clamp(30rem, 88vh, 60rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.chapter--center { align-items: center; }
.chapter--tall { min-height: clamp(34rem, 96vh, 68rem); }

/* Text to the right, for paintings whose subject sits low and left.
   Below 62rem it returns to full width - a half-column on a phone is just
   a narrow gutter of words. */
@media (min-width: 62rem) {
  .chapter--right .chapter-body { margin-left: auto; }
  .chapter--right::after {
    background: linear-gradient(
      to top left,
      rgba(28, 22, 16, .78) 0%,
      rgba(28, 22, 16, .5) 30%,
      rgba(28, 22, 16, .14) 58%,
      rgba(28, 22, 16, 0) 78%);
  }
}

.chapter-img {
  position: absolute;
  inset: -6% 0 -6% 0;      /* overscan, so the parallax drift never shows an edge */
  z-index: -1;
  will-change: transform;
}
.chapter-img img,
.chapter-img picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}

/* Chapter morph: the photograph sits underneath, the painting on top, and the
   painting dissolves as the section travels up the viewport. Same --mix driver
   as the inline .morph component. The proof move - these are real places. */
.chapter--morph .chapter-img--art { opacity: var(--mix, 1); }

/* Without JS the painting simply stays. Never leave a half-faded state. */
html:not(.js) .chapter--morph .chapter-img--art { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  /* Show the photograph - it's the truthful one */
  .chapter--morph .chapter-img--art { opacity: 0; }
}

/* Scrim sits only where the words are, so the painting keeps its light */
.chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(28, 22, 16, .74) 0%,
    rgba(28, 22, 16, .48) 22%,
    rgba(28, 22, 16, .12) 46%,
    rgba(28, 22, 16, 0) 66%);
}
.chapter--center::after {
  background: radial-gradient(
    ellipse 90% 70% at 50% 50%,
    rgba(28, 22, 16, .58) 0%,
    rgba(28, 22, 16, .34) 55%,
    rgba(28, 22, 16, .08) 100%);
}

.chapter-body {
  position: relative;
  padding-block: clamp(3rem, 9vw, 7rem);
  color: #FBF8F3;
  max-width: 34rem;
}
.chapter--center .chapter-body { max-width: 40rem; margin-inline: auto; text-align: center; }
/* Paragraphs are capped at 40ch, narrower than the body, so they need centering
   as blocks too, or they sit left of the heading. */
.chapter--center .chapter-body p { margin-inline: auto; }

.chapter-body .eyebrow { color: rgba(251, 248, 243, .78); }
.chapter-body h2,
.chapter-body h1 {
  color: #FBF8F3;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.018em;
  margin-bottom: .45em;
  text-shadow: 0 1px 30px rgba(20, 14, 8, .35);
}
.chapter-body p {
  color: rgba(251, 248, 243, .9);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  max-width: 40ch;
  text-shadow: 0 1px 20px rgba(20, 14, 8, .4);
}
.chapter-body .btn--ghost { color: #FBF8F3; border-color: rgba(251, 248, 243, .5); }
.chapter-body .btn--ghost:hover { background: #FBF8F3; color: var(--ink); border-color: #FBF8F3; }

/* A whispered line under a chapter - where the painting is doing the talking */
.chapter-credit {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  font-family: var(--font);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, .5);
}

@media (prefers-reduced-motion: reduce) {
  .chapter-img { transform: none !important; inset: 0; }
}

/* ═══════════════════════════════════════════════════════════════ scenery */
/* A single fixed layer behind the whole page holding every watercolour. As
   you scroll, the scene belonging to the section you're in fades up and the
   previous one fades away - one continuous atmosphere rather than a series
   of banded backgrounds, which is what makes it feel calm instead of busy.
   Only opacity animates, so it stays cheap no matter how many scenes.        */

.scenery {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--paper);
}
.scenery-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease, transform 12s linear;
  transform: scale(1.04);
}
.scenery-scene img,
.scenery-scene picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.scenery-scene[data-active="true"] {
  opacity: var(--scene-strength, .38);
  transform: scale(1);       /* a very slow settle - life, not movement */
}

/* A veil between the painting and the words. Without it, watercolour texture
   runs straight under body copy and the page becomes unreadable. */
.scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 247, 242, .82) 0%,
    rgba(250, 247, 242, .72) 35%,
    rgba(250, 247, 242, .72) 65%,
    rgba(250, 247, 242, .86) 100%);
}

/* With scenery running, the page furniture steps back so the paintings read */
.has-scenery { background: transparent; }
.has-scenery.paper::before { display: none; }   /* handprint backdrop stands down */
.has-scenery .band,
.has-scenery .hero { background: transparent; }
.has-scenery .band--paper { background: rgba(250, 247, 242, .55); }
.has-scenery .band--panel { background: rgba(237, 229, 218, .6); }

/* Text blocks get their own quiet ground so they never sit on raw texture */
.has-scenery .card,
.has-scenery .keyfacts,
.has-scenery .ph-block,
.has-scenery .callout { backdrop-filter: blur(3px); }

@media (prefers-reduced-motion: reduce) {
  .scenery-scene { transition: opacity .01ms; transform: none; }
  .scenery-scene[data-active="true"] { transform: none; }
}

/* ═══════════════════════════════════════════════════════════ morph images */
/* A watercolour of a place dissolving into the photograph of it, driven by
   scroll position. Painting first, reality second - the illustration is the
   promise and the photograph is the proof.

   Without JS the photograph shows and the painting never loads its opacity - the real image is always the fallback, never the painting. */

.morph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
/* Layer wrappers carry the classes, not the <img> - so the srcset rewriter can
   wrap each image in <picture> without collapsing the stack. */
.morph-layer {
  position: absolute;
  inset: 0;
}
.morph-layer img,
.morph-layer picture,
.morph-layer picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Both layers must crop identically or the subject jumps mid-fade */
  object-position: var(--pos, center);
}

/* The painting stacks over the photograph */
.morph .morph-art {
  opacity: 0;
  pointer-events: none;
}
.js .morph .morph-art { opacity: var(--mix, 1); }

/* A caption that explains the effect rather than leaving it a mystery */
.morph-note {
  position: absolute;
  left: .85rem;
  bottom: .85rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(31, 27, 23, .62);
  backdrop-filter: blur(6px);
  color: rgba(250, 247, 242, .92);
  font-family: var(--font);
  font-size: .75rem;
  letter-spacing: .04em;
  pointer-events: none;
  opacity: var(--mix, 1);
}

.morph--wide { aspect-ratio: 16 / 10; }
.morph--land { aspect-ratio: 3 / 2; }
.morph--sq   { aspect-ratio: 1 / 1; }
/* The painted panels are drawn 4:3. Anything else crops the painting, and a
   morph only reads if both layers are framed identically. */
.morph--4x3 { aspect-ratio: 4 / 3; }

@media (prefers-reduced-motion: reduce) {
  /* No scroll-linked change - show the photograph, which is the truthful one */
  .js .morph .morph-art,
  .morph-note { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════ lightbox */
/* Tap any photo to see it large. On a housing site this isn't decoration - people want to look properly at a room they might live in. */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(31, 27, 23, .93);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-img);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  transform: scale(.97);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.lightbox[data-open="true"] img { transform: scale(1); }

.lightbox figcaption {
  max-width: 60ch;
  margin-top: 1rem;
  color: rgba(250, 247, 242, .8);
  font-size: .9375rem;
  text-align: center;
}
.lightbox figure { margin: 0; display: grid; justify-items: center; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(250, 247, 242, .3);
  border-radius: 999px;
  background: rgba(31, 27, 23, .6);
  color: #FAF7F2;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(250, 247, 242, .16); border-color: rgba(250, 247, 242, .55); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav[data-dir="prev"] { left: clamp(.5rem, 2vw, 2rem); }
.lightbox-nav[data-dir="next"] { right: clamp(.5rem, 2vw, 2rem); }
.lightbox-count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 247, 242, .6);
  font-size: .8125rem;
  letter-spacing: .08em;
}

/* Signal that a photo opens */
.js .shot[data-zoomable] { cursor: zoom-in; }
.js .shot[data-zoomable]::after {
  content: "⤢";
  position: absolute;
  top: .6rem; right: .6rem;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 27, 23, .55);
  color: #fff;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
@media (hover: hover) {
  .js .shot[data-zoomable]:hover::after { opacity: 1; }
}

/* ═══════════════════════════════════════════════════ today's meeting flag */

.is-today {
  position: relative;
  background: rgba(63, 90, 78, .07);
}
.is-today th[scope="row"]::after {
  content: "Today";
  display: inline-block;
  margin-left: .6rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: .1em;
}

/* ══════════════════════════════════════════════ mobile action bar */
/* Slides up once the header CTA has scrolled away. The phone number should
   never be more than a thumb-reach away on this site. */

.actionbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 247, 242, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.is-deep .actionbar { transform: translateY(0); }
.actionbar .btn { flex: 1; justify-content: center; padding-inline: .75rem; }

@media (min-width: 48rem) { .actionbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .actionbar { transition: none; } }

/* ------------------------------------------------------------------ footer */

.sitefoot {
  background: var(--brand);
  color: rgba(250, 247, 242, .78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}
.sitefoot a { color: rgba(250, 247, 242, .78); text-decoration: none; }
.sitefoot a:hover { color: var(--white); text-decoration: underline; }
/* Links inside a line of text must be told apart by more than color (WCAG 1.4.1). */
.sitefoot p a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(250, 247, 242, .45); }
.sitefoot p a:hover { text-decoration-color: currentColor; }
.sitefoot .small { color: rgba(250, 247, 242, .78); }   /* ink-muted measured 1.2:1 on Sage */
.sitefoot h2 { font-size: 1.125rem; color: var(--white); margin-bottom: .35rem; }
.sitefoot h3 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, .86);   /* Sage Light here measured 2.0:1 */
  margin-bottom: .85rem;
}
.meet-addr {
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 .85rem;
}
.meet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.meet-list li {
  margin: 0 0 .85rem;
}
.meet-list b {
  display: block;
  color: var(--white);
  font-weight: 600;
}
.meet-list span {
  display: block;
  color: rgba(250, 247, 242, .78);
  font-size: .9rem;
}
.card-list {
  margin: 0 0 1.15em;
  padding-left: 1.1em;
}
.card-list li { margin-bottom: .4em; }
.footgrid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.footgrid ul { list-style: none; padding: 0; margin: 0; }
.footgrid li { margin-bottom: .5rem; }
.footcol--wide { grid-column: 1 / -1; }
@media (min-width: 62rem) { .footcol--wide { grid-column: span 2; } }

.footnote {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 247, 242, .16);
  font-size: .8125rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, .8);   /* .6 measured 3.7:1 on Sage */
}
.footnote p { max-width: none; }

/* ------------------------------------------------------------------ motion */

/* Progressive enhancement: content is visible by default and only starts hidden
   once JS has confirmed it is running. Without this, a JS failure or a browser
   that never fires IntersectionObserver leaves the page's content at opacity 0 - i.e. invisible. Never gate content on script. */
/* ─────────────────────────────────────────────────────── motion vocabulary */
/* Directional entrances, staggered groups, and image reveals. Everything is
   opt-in per element and everything collapses to "just visible" under
   prefers-reduced-motion - motion is decoration here, never information. */

.js .reveal--left  { opacity: 0; transform: translateX(-28px); }
.js .reveal--right { opacity: 0; transform: translateX(28px); }
.js .reveal--scale { opacity: 0; transform: scale(.965); }

.js .reveal--left.is-in,
.js .reveal--right.is-in,
.js .reveal--scale.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}

/* Stagger: children of a .stagger container enter in sequence. The delay is
   set inline by JS as --i, so any number of children works. */
.js .stagger > * { opacity: 0; transform: translateY(18px); }
.js .stagger.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.22, .61, .36, 1),
              transform .65s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Photographs settle rather than appear: a slight over-scale relaxing to 1
   reads as the image coming to rest. */
.js .shot.reveal--photo img { transform: scale(1.06); }
.js .shot.reveal--photo.is-in img {
  transform: scale(1);
  transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}

/* Slow drift on hover - enough to feel alive, not enough to distract */
.shot img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
@media (hover: hover) {
  .mosaic .shot:hover img,
  .rowlist a:hover .shot img { transform: scale(1.045); }
}

/* Row list: the arrow leads on hover */
.rowlist a .arrowdot { transition: transform .25s cubic-bezier(.22, .61, .36, 1); }
@media (hover: hover) {
  .rowlist a:hover .arrowdot { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal--left,
  .js .reveal--right,
  .js .reveal--scale,
  .js .stagger > *,
  .js .shot.reveal--photo img { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }

  .mosaic .shot:hover img { transform: none; }
}

.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------- print */
/* Transitions don't run in a print context, so anything left mid-reveal would
   print as blank paper. Force everything visible and drop the furniture. */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .draftbar, .masthead, .navtoggle, .callchip, .btn-row { display: none !important; }
  .band, .hero .wrap { padding-block: 1.25rem; }
  .band--ink, .sitefoot { background: none !important; color: #000 !important; }
  .band--ink h2, .band--ink h3, .sitefoot h2, .sitefoot h3 { color: #000 !important; }
  .band--ink .lead, .sitefoot, .sitefoot a { color: #333 !important; }
  .imgph { border: 1px solid #999; background: none; }
  a { color: #000; }
  body { font-size: 11pt; }
}


/* --------------------------------------------------------------- approach */
/* A slow move TOWARD the subject, not away from it. Direction is the whole
   point here: on the partners page the frame closes on Mount Charleston, which
   is the opposite direction from the Strip - leaving the city rather than
   arriving in it. Starting oversized and settling back would read as pulling
   away, which is the wrong story.

   So it starts at 100%, ends at 113%, and grows about the peak rather than the
   centre. It rests zoomed in: the foreground Joshua trees travel out of frame
   and the mountain is what is left.

   Must stay at the end of the file and at top level - it ties on specificity
   with `.js .shot.reveal--photo img`, so source order is what decides it. */
.js .shot.shot--approach { transform: none; }
.js .shot.shot--approach img {
  transform: scale(1);
  transform-origin: 46% 40%;          /* the snow line on the ridge */
}
.js .shot.shot--approach.is-in { transition: opacity 1.2s ease; }
.js .shot.shot--approach.is-in img {
  transform: scale(1.13);
  transition: transform 3.2s cubic-bezier(.4, 0, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js .shot.shot--approach img,
  .js .shot.shot--approach.is-in img { transform: none; transition: none; }
}


/* ------------------------------------------------------------- filmstrip */
/* A full-bleed sequence that plays ONCE and rests on its final frame. That
   one-way-ness is the whole point on the stories page: the walk ends at the
   sunrise and does not loop back to the city, because looping would say the
   opposite of what the pictures say.

   Built on the same stacked-and-crossfaded idea as .carousel, but full width
   and with the words sitting over the picture rather than underneath it. */
.filmstrip {
  position: relative;
  min-height: clamp(28rem, 86vh, 58rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.filmstrip-media { position: absolute; inset: 0; z-index: -2; }

.filmstrip-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.filmstrip-frame[data-on="true"] { opacity: 1; }
/* Without JS the last frame is the one that shows - the sequence's resting
   state, and the only frame that means anything on its own. */
html:not(.js) .filmstrip-frame { opacity: 0; }
html:not(.js) .filmstrip-frame:last-child { opacity: 1; }

.filmstrip-frame img,
.filmstrip-frame picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}

/* Scrim only where the words are, so the paintings keep their light */
.filmstrip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(24, 18, 12, .78) 0%,
    rgba(24, 18, 12, .50) 24%,
    rgba(24, 18, 12, .14) 48%,
    rgba(24, 18, 12, 0) 68%);
}

.filmstrip-body {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  max-width: 40rem;
  color: #FBF8F3;
}
.filmstrip-cap { position: relative; min-height: 7.5rem; }
.filmstrip-line {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.filmstrip-line[data-on="true"] { opacity: 1; }
html:not(.js) .filmstrip-line { opacity: 0; }
html:not(.js) .filmstrip-line:last-child { opacity: 1; }

.filmstrip-line b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: .35rem;
  text-shadow: 0 1px 26px rgba(20, 14, 8, .5);
}
.filmstrip-line span {
  display: block;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: rgba(251, 248, 243, .92);
  text-shadow: 0 1px 18px rgba(20, 14, 8, .55);
}

.filmstrip-controls {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  gap: .5rem;
}
.filmstrip-controls button {
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  color: #FBF8F3;
  background: rgba(24, 18, 12, .55);
  border: 1px solid rgba(251, 248, 243, .45);
  backdrop-filter: blur(6px);
}
.filmstrip-controls button:hover { background: rgba(24, 18, 12, .8); }
.filmstrip-controls button:focus-visible { outline: 2px solid #FBF8F3; outline-offset: 2px; }
/* Once it has arrived there is nothing left to pause or skip */
.filmstrip[data-done="true"] .filmstrip-controls { display: none; }

@media (prefers-reduced-motion: reduce) {
  /* Go straight to the end. The sunrise is the point; the walk is decoration. */
  .filmstrip-frame,
  .filmstrip-line { transition: none; }
}


/* ----------------------------------------------------------------- story */
/* A resident account: portrait, the line they lead with, the narrative, what
   they have actually done, and their own reflection. Portraits alternate
   sides so four in a row reads as a sequence rather than a list. */
.story { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.story:first-of-type { border-top: 0; padding-top: 0; }

.story-top { display: grid; gap: clamp(1.4rem, 3.5vw, 2.75rem); align-items: start; }
@media (min-width: 56rem) {
  .story-top { grid-template-columns: 20rem 1fr; }
  .story--flip .story-top { grid-template-columns: 1fr 20rem; }
  .story--flip .story-portrait { order: 2; }
}
.shot--4x5 { aspect-ratio: 4 / 5; }

.story-meta {
  font-size: .75rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: .5rem;
}
.story h2 { margin-bottom: .3rem; }
.story-hook {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.25; color: var(--action);
  margin: .9rem 0 1.2rem; padding: 0; border: 0;
}
.story-body > * + * { margin-top: 1em; }
.story-body p { line-height: 1.65; }

.story-extra { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 56rem) { .story-extra { grid-template-columns: 1fr 1fr; align-items: start; } }

.story-mile {
  background: var(--panel); border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}
.story-mile h3 { font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .6rem; }
.story-mile ul { margin: 0; padding-left: 1.1rem; }
.story-mile li { font-size: .9375rem; line-height: 1.5; margin-bottom: .3rem; }

.story-reflect {
  border-left: 3px solid var(--action);
  padding: .2rem 0 .2rem 1.15rem; margin: 0;
  font-size: 1rem; line-height: 1.65;
}
.story-reflect p + p { margin-top: .7em; }
.story-reflect cite { display: block; margin-top: .7rem; font-style: normal; font-size: .8125rem; color: var(--ink-muted); }

/* -------------------------------------------------------------- daybreak */
/* An alternative to .paper for the stories page. The handprint mural says
   *community* - right for the homepage, wrong behind four individual portraits
   and a lot of long-form text, where it just competes with the reading.

   This says *change* instead. The gradient spans the whole document rather
   than the viewport, so the page is cool paper at the top and morning gold at
   the foot: scrolling down it is the sunrise. Same arc as the filmstrip above
   it, and the same arc as the stories themselves.

   The bloom is fixed rather than scrolled, so the light stays with the reader
   while the ground warms underneath them. Both are pure gradients - no image
   requests, nothing to load. */
.daybreak {
  background-color: var(--paper);
  background-image: linear-gradient(
    to bottom,
    #F6F3EE 0%,
    #FAF6EE 32%,
    #FDF5E8 64%,
    #FDF1DF 86%,
    /* Stops here rather than going warmer: the clay link colour is 4.9:1 on
       cool paper, and a deeper gold drops it to 4.48 - under AA. This is the
       warmest foot that still clears 4.5 for links and muted text alike. */
    #FCEFDB 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.daybreak::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* Warm WHITE, not amber. A stronger orange bloom lowers the background
       luminance and took the clay link colour down to 4.07 - under AA. Light
       raises it instead: this is 8% brighter than the bare gradient AND puts
       links back at 5.0, so the page glows harder and reads better. */
    radial-gradient(78% 60% at 14% 6%,  rgba(255, 248, 232, .80), transparent 72%),
    radial-gradient(64% 52% at 90% 74%, rgba(255, 241, 215, .62), transparent 74%),
    radial-gradient(52% 44% at 52% 44%, rgba(255, 252, 245, .55), transparent 70%);
}

/* The bloom breathes - 18s, a few percent of scale. Slow enough that you never
   catch it moving, only notice the light isn't quite static. Purely decorative,
   so it is the first thing to go under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .daybreak::before {
    animation: daybreak-breathe 18s ease-in-out infinite alternate;
    transform-origin: 40% 30%;
  }
}
@keyframes daybreak-breathe {
  from { transform: scale(1);    opacity: .88; }
  to   { transform: scale(1.06); opacity: 1; }
}



/* -------------------------------------------------------------------- aura */
/* A glimmer that appears as you scroll: one soft prismatic layer, 190% of the
   viewport tall, drifting up and blooming as the page moves. Being taller than
   the screen is the trick - the drift carries different hues through view at
   different depths, so the colour shifts without animating a filter (which
   would repaint the whole viewport every frame). Only transform and opacity
   change, and both are compositor-only.

   Tints are deliberately pale. Turning the earlier glow up in amber dragged
   the clay link colour under AA; light colour lifts the page instead of
   darkening it, so a stronger aura is also a safer one. */
.aura {
  position: fixed;
  left: -12%;
  right: -12%;
  top: -45%;
  height: 190%;
  z-index: -1;
  pointer-events: none;
  opacity: calc(.22 + var(--aura, 0) * .62);
  transform: translate3d(0, calc(var(--aura, 0) * -26%), 0);
  will-change: transform, opacity;
  background:
    /* Tints lifted toward white: the first pass at these hues dropped the clay
       link colour to 4.42, under AA. Same rainbow, higher luminance, 4.76. */
    radial-gradient(46% 22% at 22% 10%, rgba(255, 235, 242, .60), transparent 68%),
    radial-gradient(52% 20% at 78% 24%, rgba(255, 244, 220, .62), transparent 70%),
    radial-gradient(48% 22% at 18% 42%, rgba(232, 247, 239, .55), transparent 68%),
    radial-gradient(54% 22% at 82% 58%, rgba(233, 244, 253, .58), transparent 70%),
    radial-gradient(46% 20% at 26% 74%, rgba(243, 237, 253, .55), transparent 68%),
    radial-gradient(50% 22% at 74% 90%, rgba(255, 241, 234, .58), transparent 70%);
}

/* No scroll-linked motion: show it as a steady wash rather than nothing, so
   the page still has the light, just none of the movement. */
@media (prefers-reduced-motion: reduce) {
  .aura { opacity: .34; transform: none; will-change: auto; }
}


/* ------------------------------------------------------- provisional care */
/* Clinical claims nobody has confirmed yet. Unlike every other draft note on
   this site, this one is NOT hidden by clean view - see bhealth.py. Somebody
   acting on an unchecked level-of-care claim places a real person in the wrong
   setting, so it must never photograph as settled. */
.prov {
  position: relative;
  border: 1px dashed rgba(179, 52, 26, .55);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.25rem;
  background: rgba(179, 52, 26, .035);
}
.prov > h3 { font-size: 1rem; margin-bottom: .2rem; }
.prov > .prov-note {
  font-size: .75rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--flag); font-weight: 600; margin-bottom: .7rem;
}

.taglist { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.taglist li {
  font-size: .8125rem; line-height: 1.3;
  padding: .35rem .7rem; border-radius: 999px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule-firm);
}

.loc { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 46rem) { .loc { grid-template-columns: 1fr 1fr; } }
.loc li { padding: .9rem 1rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.loc b { display: block; font-size: .9375rem; margin-bottom: .15rem; }
.loc span { display: block; font-size: .875rem; line-height: 1.5; color: var(--ink-muted); }
.loc code {
  display: inline-block; margin-top: .4rem;
  font-size: .6875rem; letter-spacing: .06em;
  padding: .12rem .4rem; border-radius: 3px;
  background: var(--panel); color: var(--ink-muted);
}


/* ------------------------------------------------------------- helpstrip */
/* Crisis numbers. Sits above everything else on the resources page and is the
   only block on it that is finished - somebody at 2am needs a number, not a
   library. Numbers are tap targets first and typography second. */
.helpstrip {
  border: 1px solid var(--rule-firm);
  border-left: 4px solid var(--flag);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.helpstrip-head h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: .25rem; }
.helpstrip-head p { font-size: .9375rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.helpgrid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .helpgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .helpgrid { grid-template-columns: repeat(4, 1fr); } }
.helpgrid li { padding: .9rem 1rem; background: var(--paper); border-radius: var(--radius); }
.helpgrid b { display: block; font-size: .8125rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.helpnum {
  /* A crisis number is the one control on this site that gets used by somebody
     shaking, in the dark, on a cracked phone. 24px cleared the WCAG minimum and
     was still far too small - this is a 48px target. */
  display: block; margin: .35rem 0 .4rem;
  min-height: 48px; display: flex; align-items: center;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1;
  color: var(--action); text-decoration: none;
}
.helpnum:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 3px; }
.helpnum:hover { text-decoration: underline; }
.helpgrid span { display: block; font-size: .8125rem; line-height: 1.5; color: var(--ink-muted); }
.helpstrip-note { margin-top: 1rem; }

/* Article cards are a plan, not a library - say so on every one */
.res-flag {
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: .3rem;
}


/* ------------------------------------------------------------ flip cards */
/* Tiles that turn over to show what the thing actually is.

   Deliberately a <button>, not a hover target: hover reveals nothing on a
   phone, and most of this traffic is on a phone. Tap, click, Enter and Space
   all flip it, and each card is one tab stop.

   The back face is always in the DOM and always readable text - if the 3D
   transform is unsupported or the script never runs, the content is still
   there. The animation hides nothing that matters. */
.flipgrid { display: grid; gap: 1.1rem; margin-top: 2.25rem; }
@media (min-width: 40rem) { .flipgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .flipgrid { grid-template-columns: repeat(3, 1fr); } }

.flip {
  position: relative;
  aspect-ratio: 5 / 4;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 1200px;
}
.flip-btn {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-img);
}
.flip-btn:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }
/* Clicks pass through the faces to the button; only the link on the back takes them. */
.flip-inner { pointer-events: none; }
.flip.is-flipped .flip-go { pointer-events: auto; }

.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, .7, .25, 1);
  border-radius: var(--radius-img);
}
.flip.is-flipped .flip-inner,
.flip-inner:focus-within { transform: rotateY(180deg); }   /* focus-within: tabbing onto the link shows it */

/* Hover flips it for anyone using a mouse. Gated behind hover:hover and
   pointer:fine so it never applies on a touch screen, where :hover sticks
   after a tap and leaves the card stuck facing the wrong way.
   Tap and keyboard still work through aria-pressed above - hover is an
   addition, not a replacement, because on a phone it reveals nothing. */
@media (hover: hover) and (pointer: fine) {
  .flip:hover .flip-inner,
  .flip-btn:focus-visible + .flip-inner { transform: rotateY(180deg); }
  .flip.is-flipped:hover .flip-inner { transform: none; }
  .flip:hover .flip-go { pointer-events: auto; }
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.flip-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,18,12,.82) 0%, rgba(24,18,12,.34) 42%, rgba(24,18,12,0) 72%);
}
.flip-label {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: .95rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  line-height: 1.15;
  color: #FBF8F3;
  text-shadow: 0 1px 18px rgba(20,14,8,.5);
}
.flip-hint {
  position: absolute;
  top: .85rem; right: .95rem;
  z-index: 1;
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px;
  background: rgba(251,248,243,.9); color: var(--ink);
}

.flip-back {
  transform: rotateY(180deg);
  background: var(--brand);
  color: #FBF8F3;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.flip-back h3 { font-size: 1.0625rem; color: #FBF8F3; margin: 0; }
.flip-back p { font-size: .875rem; line-height: 1.55; color: rgba(251,248,243,.93); margin: 0; }
.flip-back .flip-go {
  margin-top: auto;
  font-size: .8125rem; font-weight: 500;
  color: #FBF8F3; text-decoration: underline; text-underline-offset: 3px;
}

/* No 3D: show the back face instead of rotating to it */
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: opacity .3s ease; }
  .flip.is-flipped .flip-inner, .flip-inner:focus-within { transform: none; }
  .flip.is-flipped .flip-front, .flip-inner:focus-within .flip-front { opacity: 0; }
  .flip-back { transform: none; opacity: 0; }
  .flip.is-flipped .flip-back, .flip-inner:focus-within .flip-back { opacity: 1; }
}


/* ------------------------------------------------------------- inquiry */
/* Three doors, then four fields. Everything clinical was removed on purpose:
   substance history, dates of birth and insurance numbers are intake, and
   intake belongs on a call, not on a public web form. */
.crisis {
  border: 1px solid var(--flag);
  border-left: 5px solid var(--flag);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
}
.crisis-eyebrow { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--flag); font-weight: 600; }
.crisis-lead { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin: .15rem 0 .9rem; }
.crisis-nums { display: grid; gap: .7rem; }
@media (min-width: 34rem) { .crisis-nums { grid-template-columns: 1fr 1fr; } }
.crisis-nums a {
  display: block; text-decoration: none;
  padding: .7rem .9rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--rule-firm);
  min-height: 48px;
}
.crisis-nums a:hover { border-color: var(--flag); }
.crisis-nums b { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--action); line-height: 1.1; }
.crisis-nums span { display: block; font-size: .8125rem; line-height: 1.45; color: var(--ink-muted); margin-top: .15rem; }

.inq { margin-top: 2rem; }
.inq-field { margin-top: 1.5rem; }
.inq-field label { display: block; font-weight: 500; margin-bottom: .4rem; }
.inq-field input, .inq-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem;
  border: 1px solid var(--rule-firm); border-radius: var(--radius);
  background: var(--white); resize: vertical;
}
.inq-field input:focus, .inq-field textarea:focus { outline: 2px solid var(--action); outline-offset: 1px; border-color: var(--action); }
.inq-help { font-size: .8125rem; line-height: 1.5; color: var(--ink-muted); margin-top: .4rem; }
.req { color: var(--flag); }
.opt { font-weight: 400; font-size: .8125rem; color: var(--ink-muted); }

.inq-doors { border: 0; padding: 0; margin: 0; }
.inq-doors legend { font-weight: 500; padding: 0; }
.door {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .95rem 1.05rem; margin-top: .6rem;
  border: 1px solid var(--rule-firm); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
}
.door:hover { border-color: var(--action); }
.door:has(input:checked) { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); background: var(--panel); }
.door input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--action); flex: none; }
.door input:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.door-body { display: flex; flex-direction: column; gap: .15rem; }
.door-body b { font-size: 1rem; }
.door-body > span { font-size: .8125rem; line-height: 1.5; color: var(--ink-muted); }

.inq-note {
  margin-top: 1rem; padding: .95rem 1.1rem;
  border-left: 3px solid var(--brand); background: var(--panel);
  border-radius: var(--radius); font-size: .9375rem; line-height: 1.6;
}
.inq-note p { margin: 0; }

/* Consent is visually its own thing. It must never read as part of Send. */
.inq-consent {
  margin-top: 2rem; padding: 1.1rem 1.2rem;
  border: 1px dashed var(--rule-firm); border-radius: var(--radius);
}
.consent { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--brand); flex: none; }
.consent input:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.consent span { font-size: .9375rem; line-height: 1.5; }

/* Spam trap. Off-screen rather than display:none - some bots skip anything
   that is not rendered at all. Never focusable, never announced. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.crisis-withdrawal {
  margin-top: 1rem; padding-top: .9rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem; line-height: 1.6;
}


/* ------------------------------------------------------- resource articles */
/* A reading column, not a layout. Everything here serves one job: making a
   long piece of difficult text readable by somebody who is tired. */

.post-wrap { max-width: 44rem; }

.crumbs { font-size: .8125rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--action); }
.crumbs span[aria-hidden] { margin: 0 .3rem; }

.post h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: .25rem 0 .8rem;
}

/* The lede carries the honest summary - often the only thing somebody reads */
.post-lede {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.post-hero { margin: 0 0 2.25rem; }

/* 66-ish characters, generous leading, real paragraph spacing */
.post-body { font-size: 1.0625rem; line-height: 1.72; }
.post-body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.25;
  margin: 2.5rem 0 .7rem;
}
.post-body h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 .4rem;
}
.post-body p { margin-bottom: 1.1rem; }
.post-body p + h2 { margin-top: 2.5rem; }

.post-list { margin: 0 0 1.4rem; padding-left: 1.15rem; }
.post-list li { margin-bottom: .7rem; line-height: 1.65; }
.post-list li::marker { color: var(--action); }

/* Anything that could matter medically gets pulled out of the flow, because
   a reader skimming at 2am reads boxes and skips paragraphs. */
.post-call {
  margin: 1.75rem 0;
  padding: 1.1rem 1.35rem;
  border-left: 4px solid var(--flag);
  border-radius: var(--radius);
  background: rgba(179, 52, 26, .06);
}
.post-call p { margin: 0; font-size: 1rem; line-height: 1.6; }

.post-quote {
  margin: 1.9rem 0;
  padding: 0 0 0 1.35rem;
  border-left: 3px solid var(--action);
}
.post-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.post-cta {
  margin: 3rem 0 0;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius-img);
  background: var(--panel);
}
.post-cta h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.post-cta p { color: var(--ink-muted); margin-bottom: 1rem; }
/* Clay on Sand measured 4.23:1, so this button uses the deeper clay */
.post-cta .btn--ghost { color: #7E4830; border-color: #7E4830; }
.post-cta .btn--ghost:hover { background: #7E4830; color: var(--white); }

.post-related { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.post-related h2 { font-size: 1.125rem; margin-bottom: 1rem; }
.rel {
  display: block;
  padding: .9rem 1.1rem;
  margin-bottom: .6rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.rel:hover { border-color: var(--action); transform: translateX(3px); }
.rel-cat {
  display: block;
  font-size: .6875rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: .15rem;
}
.rel-title { display: block; color: var(--ink); line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
  .rel:hover { transform: none; }
}


/* --------------------------------------------------- mobile header, fixed */
/* The header row is brand + call + CTA + toggle and does not wrap. Three
   pages carry a second header CTA (Schedule, Donate, Refer someone) which
   pushed the row to 455px inside a 375px viewport - the whole page then
   scrolled sideways. Below the nav breakpoint, only the last button survives;
   it is the Apply/Get in touch one on every page, and the secondary CTA is
   always repeated in the page body anyway.

   Calling is the most important action on a phone for this audience, so the
   call chip stays and the button goes if anything has to. */
@media (max-width: 61.999rem) {
  .masthead .wrap { gap: .55rem; }
  .masthead .btn:not(:last-of-type) { display: none; }
  .masthead .btn { padding: .5rem .85rem; font-size: .875rem; white-space: nowrap; }
  .callchip { flex: none; }
  .brand { min-width: 0; }
}

/* Very narrow phones - 320px still exists. Drop the wordmark's second word
   rather than let anything overflow. */
@media (max-width: 23.5rem) {
  .masthead .wrap { gap: .4rem; }
  .brand { font-size: 1rem; }
  .brand-mark { height: 32px; max-width: 46vw; }
  .masthead .btn { padding: .5rem .7rem; }
}

/* Nothing may scroll the page sideways. A single overflowing decorative layer
   should clip, not move the whole document. */
html, body { overflow-x: clip; }


/* --------------------------------------------------- mobile tap targets */
/* WCAG 2.2 wants 24x24 minimum for anything you have to hit. Links sitting
   inside a sentence are exempt; these are not - they are standalone controls
   that measured 22px, and 4px carousel dots that were essentially unhittable
   with a thumb. Nothing here changes how any of it looks. */

/* Flip-card CTAs: were 22px */
.flip-go { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer navigation and contact links: were 20–22px */
.sitefoot ul a,
.sitefoot p a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.sitefoot li { margin-bottom: .15rem; }

/* Carousel pagination. The visible bar stays 34x4; the button around it grows
   to a thumb-sized 34x24 and becomes transparent. The attribute selector is
   repeated so the transparent background outranks the existing
   [aria-current="true"] rule rather than losing to it on specificity. */
.carousel-dots button,
.carousel-dots button[aria-current="true"] {
  height: 24px;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.carousel-dots button::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--rule-firm);
  transition: background .2s ease;
}
.carousel-dots button[aria-current="true"]::before { background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .carousel-dots button::before { transition: none; }
}

/* The last three: a link used as an eyebrow, and the article breadcrumb.
   Both are standalone navigation, so both need the 24px minimum. */
.eyebrow a,
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* The menu button is 44px tall but squeezes to 23px wide at 320px, where the
   header row is tightest. It is the only way to reach navigation on a phone,
   so it gets a floor rather than being allowed to shrink. */
.navtoggle { min-width: 44px; flex: none; justify-content: center; }


/* ------------------------------------------------- grouped navigation */
/* Eight top-level items had squeezed four real pages out of the bar
   entirely. Three groups hold all twelve destinations. */

.navgroup { position: relative; }

.navgroup-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  min-height: 44px; padding: 0;
  font: inherit; font-size: .9375rem; font-weight: 500;
  color: var(--ink); background: none; border: 0; cursor: pointer;
}
.navgroup-btn::after {
  content: ""; width: .4rem; height: .4rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .18s ease;
}
.navgroup[data-open="true"] > .navgroup-btn::after { transform: rotate(-135deg) translate(-1px, -1px); }
.navgroup-btn:hover,
.navgroup[data-open="true"] > .navgroup-btn { color: var(--action); }
.navgroup-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }

/* Marks the group containing the current page */
.navgroup[data-current] > .navgroup-btn { font-weight: 600; color: var(--action); }

.navgroup-menu { margin: 0; padding: 0; list-style: none; }
.navgroup-menu a {
  display: flex; align-items: center;
  min-height: 44px; padding: .1rem 0;
  font-size: .9375rem; color: var(--ink); text-decoration: none;
}
.navgroup-menu a:hover,
.navgroup-menu a[aria-current="page"] { color: var(--action); }
.navgroup-menu a[aria-current="page"] { font-weight: 600; }
.navgroup-menu a[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Without JS every group stays open as a plain nested list - navigation is
   never trapped behind a control that cannot run. */
.has-menus .navgroup-menu { display: none; }
.has-menus .navgroup[data-open="true"] > .navgroup-menu { display: block; }

@media (min-width: 62rem) {
  .has-menus .navgroup[data-open="true"] > .navgroup-menu {
    position: absolute; top: calc(100% + .4rem); left: -1rem;
    min-width: 15rem; z-index: 70;
    padding: .5rem 1rem;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-img);
    box-shadow: 0 18px 40px -18px rgba(31, 27, 23, .3);
  }
  .has-menus .navgroup-menu li + li { border-top: 1px solid var(--rule); }
}

/* In the drawer the groups behave as accordions and stay in flow. */
@media (max-width: 61.999rem) {
  .nav[data-open="true"] .navgroup { border-top: 1px solid var(--rule); }
  .nav[data-open="true"] .navgroup-btn { width: 100%; justify-content: space-between; min-height: 52px; padding: 0 1.25rem; }
  .nav[data-open="true"] .navgroup-menu { padding: 0 1.25rem .5rem 2rem; background: var(--paper); }
  .nav[data-open="true"] .navgroup-menu a { min-height: 46px; }
  /* Plain top-level links (Partners) line up with the group headings. */
  .nav[data-open="true"] > ul > li > a { padding: 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .navgroup-btn::after { transition: none; }
}


/* ============================================ mobile layout corrections */

/* 1 · Dark bands had lost their background entirely.
   `.paper .band` and `.has-scenery .band` both set background:transparent so
   the page texture shows through, and both are (0,2,0) specificity. The
   sections carry BOTH `band` and `band--ink`, so those rules outranked
   `.band--ink` at (0,1,0) and won. Result: near-white text on pale paper on
   the closing call-to-action of six pages. These restate the colour at equal
   specificity, after, so it wins on source order rather than !important. */
.paper .band--ink,
.has-scenery .band--ink { background: var(--brand); }

/* 2 · Hero grid blowout.
   `.hero .wrap` is display:grid but only declares its columns at desktop, so
   on a phone it fell back to a single `auto` track. An auto track will not
   shrink below its content's min-content width, and the carousel's floor is
   369px - 34px wider than the 335px available. Everything inside then ran off
   the right edge. minmax(0, …) removes that floor.
   Scoped below the desktop breakpoint: unscoped, it also overrode the
   two-column desktop hero, so the image always fell below the text. */
@media (max-width: 61.99rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Same failure mode anywhere else a grid holds wide media */
.grid, .section-split { min-width: 0; }
.grid > *, .section-split > * { min-width: 0; }

/* 3 · The drawer has to scroll.
   Three groups fully expanded are taller than a phone screen, and the menu
   was clipped with no way to reach the bottom of it. dvh first for the mobile
   URL bar; vh as the fallback. overscroll-behavior stops the page behind it
   scrolling once the menu hits its end. */
@media (max-width: 61.999rem) {
  .nav[data-open="true"] {
    max-height: calc(100vh - 66px);
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* 4 · The wordmark was wrapping to two lines and pushing the row taller. */
.brand { white-space: nowrap; }

/* 5 · Buttons inside dark bands.
   `.band--ink a { color: var(--brand-lit) }` is meant for prose links, but it
   also caught every .btn inside those sections - so the primary call to action
   was pale sage text on clay at 1.42:1, and the ghost button 2.02:1. Both
   effectively unreadable. Buttons keep their own colour scheme. */
.band--ink .btn { color: var(--white); }
.band--ink .btn:hover { color: var(--white); }
.band--ink .btn--ghost,
.band--ink .btn--onink { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.band--ink .btn--ghost:hover,
.band--ink .btn--onink:hover { color: var(--ink); background: var(--white); border-color: var(--white); }


/* ------------------------------------------------- header row triage */
/* The row needs 399-419px of natural width and a phone gives 320-390. The
   wordmark was the only flexible item, so it absorbed the entire shortfall - squeezed to 42px while its text is 127px wide, which is why "Clean Shot
   Living" spilled under the Call button.

   Width is shed in two stages, dropping the least important thing first.
   Call survives both: for somebody in crisis it is the whole point of the
   header, and it is the one action that works with no reading at all. */

/* Stage 1: the call chip loses its written label and keeps its icon.
   The word stays in the accessibility tree, so screen readers still say
   "Call"; only sighted users lose it, and a phone glyph is unambiguous. */
@media (max-width: 30rem) {
  .callchip-label {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .callchip { padding-inline: .7rem; gap: 0; }
  .callchip svg { width: 18px; height: 18px; }
  /* 390px (iPhone 14/15) came up 3px short and would otherwise have lost its
     CTA entirely. Reclaimed from button padding instead - the tap target is
     unaffected because height is what governs it. */
  .masthead .btn { padding: .5rem .7rem; }
  .masthead .wrap { gap: .45rem; }
}

/* Stage 2: the written CTA goes. It is the first item in the drawer and
   repeats in the body of every page, so nothing becomes unreachable. */
@media (max-width: 24rem) {
  .masthead .btn { display: none; }
}

/* And the wordmark never silently overflows again: if it is ever squeezed
   despite the above, it truncates honestly rather than spilling. */
.brand { overflow: hidden; text-overflow: ellipsis; }

/* The scenery layer clips itself.
   .scenery-scene carries transform: scale(1.04) as overscan for its slow
   settle, which bleeds ~4% past the viewport on every side. That was being
   caught by the document-level overflow-x:clip - fine in practice, but it
   made a decorative detail depend on a global rule. Clipping locally keeps
   the intent where the intent lives. */
.scenery { overflow: clip; }

/* ==========================================================================
   Ask Robin: Clean Shot Living's 24/7 text-based virtual assistant.
   Housing information & navigation only. Reuses the existing band / btn /
   eyebrow / panel tokens; deliberately introduces no new design system.
   The SMS number is set in one place (ROBIN_SMS_NUMBER in site.js).
   ========================================================================== */

.robin-body { max-width: 42rem; }

.robin-aside {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.4;
  color: var(--brand);
}
.robin-aside strong { color: var(--ink); font-weight: 600; }

/* Contextual prompt used beside the Apply and Refer CTAs. */
.robin-prompt {
  margin-top: 2rem;
  padding: 1.15rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--rule-firm);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}
.robin-prompt-h { margin: 0 0 .35rem; font-size: 1.05rem; }
.robin-prompt p { margin: 0; }
.robin-prompt p + p { margin-top: .5rem; }
.robin-prompt .btn-row { margin-top: 1rem; }

/* Subtle persistent access, injected by site.js on inner pages. A labelled
   text pill on purpose - not an icon-only chat launcher, and it never
   auto-opens or interrupts. Sits above content, below header/bar/lightbox. */
.ask-robin-pill {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .95rem;
  font: 600 .9375rem/1 var(--font);
  color: var(--action);
  background: var(--white);
  border: 1px solid var(--rule-firm);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}
.ask-robin-pill:hover { background: var(--paper); transform: translateY(-1px); }
.ask-robin-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ask-robin-pill svg { width: 18px; height: 18px; flex: none; }

/* On phones the crisis/call bar owns the bottom edge - lift the pill clear. */
@media (max-width: 47.99rem) {
  .ask-robin-pill.clears-actionbar { bottom: 4.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-robin-pill { transition: none; }
}

/* ----------------------------------------------------------- captions */
/* Styled lightly on purpose. A visitor who has set caption colors in their
   operating system should keep them, so we set only enough to stay legible
   over video and to match the page: warm near-black box, paper-coloured text,
   same typeface as the body. No font-size - browsers scale cue text to the
   video, and a fixed size breaks that on a large screen. */
.video-frame video::cue {
  background-color: rgba(31, 27, 23, .84);
  color: #FAF7F2;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.38;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}


/* ---------------------------------------------------------------- round 2 */

/* Homepage price in the green bar: the number carries it, the rest whispers */
.urgent .rate--price {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .95rem .35rem .8rem;
  border: 1px solid rgba(250, 247, 242, .32);
  border-radius: 999px;
  color: rgba(250, 247, 242, .85);
  line-height: 1.15;
}
.urgent .rate--price small { font-size: .78rem; letter-spacing: .02em; }
.urgent .rate--price b {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.01em;
}

/* Resources: the library reads as the section, its groups as subheads */
.library-h { font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.05; }
.library-group { font-size: clamp(1.25rem, 2.3vw, 1.55rem); }

/* Partners: the independence note, small, at the foot of the list */
.partner-note--foot {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .8125rem;
}

/* Gentle fade with no movement, for lines that should arrive quietly.
   Must stay after `.js .reveal` so it wins on source order. */
.js .reveal--fade { transform: none; }
.js .reveal--fade.is-in { transform: none; transition: opacity 1.6s ease .2s; }
.js .reveal--late.is-in { transition: opacity 1.9s ease 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal--fade, .js .reveal--fade.is-in { opacity: 1; transition: none; }
}

/* Our story: residents' words over the valley. The painting is pinned while
   the quotes pass over it as pull-quotes, each signed with the person's
   portrait from their Stories video. On wide screens they alternate sides. */
/* clip-path keeps the pinned painting inside this section. Without it the
   painting's negative bottom margin lets it slide out over the next section
   (the leadership cards). overflow: hidden would also clip it, but it would
   stop the painting from pinning. */
.voices { position: relative; isolation: isolate; background: #2B2219; clip-path: inset(0); }
.voices-img {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  z-index: -1;
  overflow: hidden;
}
.voices-img picture,
.voices-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.voices-img::after { content: ""; position: absolute; inset: 0; }
.voices .wrap { padding-block: clamp(4rem, 12vh, 7rem) clamp(4rem, 14vh, 8rem); }
.voices-eyebrow { display: block; text-align: center; color: rgba(251, 248, 243, .9); margin-bottom: clamp(1rem, 4vh, 2rem); }

.voice {
  max-width: 38rem;
  margin: 0 auto;
  padding-block: clamp(2.25rem, 9vh, 4.5rem);
  color: #FBF8F3;
}
.voice + .voice { border-top: 1px solid rgba(251, 248, 243, .14); }
@media (min-width: 62rem) {
  .voice { margin-left: 0; }
  .voice:nth-of-type(even) { margin-left: auto; margin-right: 0; }
  .voice + .voice { border-top: 0; }
}
.voice blockquote { margin: 0; position: relative; }
.voice blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 6.5rem);
  line-height: .6;
  height: .42em;
  color: #E4A982;
  opacity: .9;
}
.voice blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.24;
  letter-spacing: -.01em;
}
.voice figcaption { margin-top: 1.25rem; }
.voice figcaption a {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: #FBF8F3;
  text-decoration: none;
}
.voice-face {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid rgba(251, 248, 243, .8);
  flex: none;
}
.voice figcaption b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .02em; }
.voice figcaption small { display: block; font-size: .8125rem; color: #FBF8F3; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(251, 248, 243, .5); }
.voice figcaption a:hover small { text-decoration-color: #FBF8F3; }

/* Quicker than the page's slow fade: these should keep pace with a scroll */
.js .voice.reveal { opacity: 0; transform: translateY(18px); }
.js .voice.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  .js .voice.reveal, .js .voice.reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* Treatment: "Asking for yourself?" as a panel people will not miss */
.ask-self { margin-top: clamp(2rem, 5vw, 3rem); padding: clamp(1.5rem, 4vw, 2.25rem); }
.ask-self h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.ask-self p { font-size: 1.0625rem; }
.ask-self .btn-row { margin-top: 1rem; }
.ask-self-robin { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(156, 91, 60, .22); }

/* Stories filmstrip: a small numbered label over each quote */
.filmstrip-cap { min-height: 10.5rem; }
.filmstrip-line .film-label {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, .82);
  margin-bottom: .55rem;
}
.filmstrip-line b { font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.2; font-weight: 500; }
.story-mile li strong { font-weight: 600; }

/* Meetings: YouTube, click to load. The thumbnail is ours, so nothing is
   requested from YouTube until somebody presses play. */
.yt { margin: clamp(2rem, 5vw, 3rem) 0 0; }
.yt-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: #1F1B17;
}
.yt-frame img,
.yt-frame picture,
.yt-frame iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(31, 27, 23, .72);
  border: 2px solid rgba(251, 248, 243, .85);
  backdrop-filter: blur(4px);
  transition: transform .25s ease, background .25s ease;
}
.yt-btn svg { width: 1.9rem; height: 1.9rem; margin-left: .2rem; }
.yt-play:hover .yt-btn,
.yt-play:focus-visible .yt-btn { transform: scale(1.08); background: var(--action); }
.yt-play:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.yt figcaption { margin-top: .9rem; }
.yt figcaption b { display: block; font-size: 1.0625rem; line-height: 1.35; }
.yt figcaption span { display: block; margin-top: .25rem; font-size: .875rem; color: var(--ink-muted); }

.yt-list {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 1rem;
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius-img);
  background: var(--white);
}
@media (min-width: 40rem) { .yt-list { grid-template-columns: 15rem minmax(0, 1fr); } }
.yt-list-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: calc(var(--radius-img) - 4px); overflow: hidden; }
.yt-list-thumb img, .yt-list-thumb picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-list .yt-btn { width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; }
.yt-list .yt-btn svg { width: 1.5rem; height: 1.5rem; }
.yt-list h3 { margin: .2rem 0 .35rem; }
.yt-list .micro { margin-top: .5rem; }
.yt-list--playing { grid-template-columns: 1fr !important; }
@media (prefers-reduced-motion: reduce) { .yt-btn { transition: none; } }

/* Prose links inside dark bands. The pale sage measured about 2:1 on the green,
   which is unreadable, so links in running text use the paper color and keep
   their underline. Buttons are styled above and are not affected. */
.band--ink p a:not(.btn) { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }
.band--ink p a:not(.btn):hover { color: var(--white); }

/* All seven quotes share one grid cell, so the panel is exactly as tall as the
   longest quote on any screen width, with no fixed height to guess at. */
.filmstrip-cap { display: grid; min-height: 0; }
.filmstrip-line { position: relative; inset: auto; grid-area: 1 / 1; }

/* ------------------------------------------------- readable text on paintings
   Option A, chosen 2026-10-26: a deeper shade concentrated behind the words,
   plus a crisp, close text shadow. The painting stays edge to edge. Each
   layout gets its own shade because the words sit in a different place.
   Measured worst spot on the busiest painting (the Treatment meeting room)
   went from 2.6:1 to about 5.5:1. */

/* Words centered */
.chapter--center::after {
  background: radial-gradient(ellipse 75% 65% at 50% 52%,
    rgba(28, 22, 16, .80) 0%,
    rgba(28, 22, 16, .62) 55%,
    rgba(28, 22, 16, .22) 100%);
}

/* Words low on the left (the default chapter). On a phone the words fill the
   width and sit low, so the shade rises from the bottom. */
.chapter:not(.chapter--center)::after {
  background: linear-gradient(to top,
    rgba(28, 22, 16, .86) 0%,
    rgba(28, 22, 16, .78) 35%,
    rgba(28, 22, 16, .72) 66%,
    rgba(28, 22, 16, .34) 80%,
    rgba(28, 22, 16, 0) 92%);
}

/* Stories slideshow */
.filmstrip::after {
  background: linear-gradient(to top,
    rgba(24, 18, 12, .88) 0%,
    rgba(24, 18, 12, .78) 32%,
    rgba(24, 18, 12, .70) 54%,
    rgba(24, 18, 12, .25) 70%,
    rgba(24, 18, 12, 0) 82%);
}

/* Wide screens: the words are a column on one side and reach about 70% of
   the way up the painting, so the shade runs sideways behind that column
   instead, and the far side of the painting keeps its light. The shade holds
   to where the column actually ends, worked out from the page width, the
   1200px content width, the gutter and the column width, so it stays behind
   the words at every screen size. */
.chapter, .filmstrip {
  --text-edge: calc(max(0px, (100% - var(--page)) / 2) + var(--gutter) + 40rem);
}
.filmstrip { --text-edge: calc(max(0px, (100% - var(--page)) / 2) + var(--gutter) + 42rem); }
@media (min-width: 48.01rem) {
  .chapter:not(.chapter--center)::after {
    background: linear-gradient(to right,
      rgba(28, 22, 16, .80) 0%,
      rgba(28, 22, 16, .72) var(--text-edge),
      rgba(28, 22, 16, .32) calc(var(--text-edge) + 6rem),
      rgba(28, 22, 16, 0) calc(var(--text-edge) + 14rem));
  }
  .filmstrip::after {
    background: linear-gradient(to right,
      rgba(24, 18, 12, .82) 0%,
      rgba(24, 18, 12, .72) var(--text-edge),
      rgba(24, 18, 12, .3) calc(var(--text-edge) + 6rem),
      rgba(24, 18, 12, 0) calc(var(--text-edge) + 14rem));
  }
}
@media (min-width: 62rem) {
  .chapter.chapter--right::after {
    background: linear-gradient(to left,
      rgba(28, 22, 16, .80) 0%,
      rgba(28, 22, 16, .72) var(--text-edge),
      rgba(28, 22, 16, .32) calc(var(--text-edge) + 6rem),
      rgba(28, 22, 16, 0) calc(var(--text-edge) + 14rem));
  }
}

/* Phones: the tall page-top banners carry the most words, which reach higher */
@media (max-width: 48rem) {
  .chapter--tall:not(.chapter--hero-home)::after {
    background: linear-gradient(to top,
      rgba(28, 22, 16, .86) 0%,
      rgba(28, 22, 16, .78) 35%,
      rgba(28, 22, 16, .72) 76%,
      rgba(28, 22, 16, .34) 88%,
      rgba(28, 22, 16, 0) 97%);
  }
}

/* Phones: centered words fill the width, so the shade widens with them */
@media (max-width: 48rem) {
  .chapter--center::after {
    background: radial-gradient(ellipse 110% 70% at 50% 52%,
      rgba(28, 22, 16, .82) 0%,
      rgba(28, 22, 16, .70) 60%,
      rgba(28, 22, 16, .3) 100%);
  }
}

/* Our story quotes */
.voices-img::after {
  background: radial-gradient(ellipse 100% 70% at 50% 50%,
    rgba(28, 22, 16, .80) 0%,
    rgba(28, 22, 16, .72) 60%,
    rgba(28, 22, 16, .42) 100%);
}

/* A close, crisp shadow does more for legibility than a wide soft one */
.chapter-body h1,
.chapter-body h2,
.filmstrip-line b,
.voice blockquote p { text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 1px 26px rgba(20, 14, 8, .5); }
.chapter-body p,
.chapter-body .eyebrow,
.chapter-body dt,
.chapter-body dd,
.filmstrip-line span,
.filmstrip-body .eyebrow,
.voice figcaption { text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 1px 20px rgba(20, 14, 8, .55); }
.chapter-body p { color: #FBF8F3; }
.chapter-body .eyebrow { color: rgba(251, 248, 243, .9); }

/* ------------------------------------------------------------ Robin chat
   The anonymous website chat (assets/js/robin-chat.js). A corner panel on
   desktop; full screen on phones, sized to the area above the on-screen
   keyboard (--rc-vh / --rc-top come from visualViewport) and clear of the
   notch and home bar. */
.rc[hidden] { display: none; }
.rc {
  position: fixed;
  z-index: 300;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: min(25rem, calc(100vw - 2rem));
  height: min(40rem, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(31, 27, 23, .22), 0 2px 8px rgba(31, 27, 23, .12);
  overflow: hidden;
  font-size: 1rem;
}
.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--brand);
  color: var(--white);
  flex: none;
}
.rc-id { display: flex; align-items: center; gap: .7rem; }
.rc-avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--brand);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
}
.rc-head h2 { margin: 0; font-family: var(--font); font-size: 1.05rem; font-weight: 600; color: var(--white); letter-spacing: 0; }
.rc-head p { margin: 0; font-size: .8rem; color: rgba(250, 247, 242, .86); }
.rc-close {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--white); cursor: pointer;
}
.rc-close svg { width: 22px; height: 22px; }
.rc-close:hover { background: rgba(250, 247, 242, .14); }
.rc-close:focus-visible { outline: 3px solid var(--white); outline-offset: -3px; }
.rc-privacy {
  margin: 0; flex: none;
  padding: .6rem 1rem;
  font-size: .8rem; line-height: 1.45;
  color: var(--ink-muted);
  background: var(--panel);
  max-width: none;
}
.rc-privacy a { color: #7E4830; }   /* Terra measured 4.2:1 on the panel */
.rc-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.rc-log:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.rc-msg { display: flex; flex-direction: column; max-width: 88%; }
.rc-msg--robin { align-self: flex-start; }
.rc-msg--user { align-self: flex-end; align-items: flex-end; }
.rc-bubble {
  padding: .65rem .9rem;
  border-radius: 16px;
  font-size: .95rem; line-height: 1.5;
  overflow-wrap: anywhere;
}
.rc-msg--robin .rc-bubble { background: var(--white); border: 1px solid var(--rule); border-bottom-left-radius: 5px; }
.rc-msg--user .rc-bubble { background: var(--brand); color: var(--white); border-bottom-right-radius: 5px; }
.rc-bubble a { color: var(--action); font-weight: 500; }
.rc-note { margin: .3rem 0 0; font-size: .75rem; color: var(--ink-muted); max-width: 30ch; text-align: right; }
.rc-typing .rc-bubble { display: inline-flex; gap: .3rem; padding: .8rem 1rem; }
.rc-typing span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ink-muted); animation: rc-dot 1.2s infinite ease-in-out; }
.rc-typing span:nth-child(2) { animation-delay: .15s; }
.rc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.rc-quick {
  flex: none;
  display: flex; flex-wrap: wrap; gap: .45rem;
  padding: .2rem 1rem .6rem;
}
.rc-chip {
  font: inherit; font-size: .85rem; font-weight: 500;
  min-height: 36px;
  padding: .35rem .85rem;
  border: 1.5px solid var(--action);
  border-radius: 999px;
  background: var(--white); color: var(--action);
  cursor: pointer; white-space: nowrap;
}
.rc-chip:hover { background: var(--action); color: var(--white); }
.rc-chip:focus-visible, .rc-send:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.rc-form {
  flex: none;
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .6rem .75rem .5rem 1rem;
  border-top: 1px solid var(--rule);
  background: var(--white);
}
.rc-form textarea {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px;            /* 16px stops iPhones zooming in */
  line-height: 1.4;
  min-height: 44px; max-height: 120px;
  padding: .6rem .8rem;
  border: 1px solid var(--rule-firm);
  border-radius: 14px;
  resize: none;
  color: var(--ink); background: var(--white);
}
.rc-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.rc-send {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--action); color: var(--white); cursor: pointer;
}
.rc-send svg { width: 22px; height: 22px; }
.rc-send:disabled { opacity: .5; cursor: default; }
.rc-counter { margin: 0; padding: 0 1rem; font-size: .75rem; color: var(--ink-muted); background: var(--white); flex: none; }
.rc-counter:empty { display: none; }
.rc-crisis {
  margin: 0; flex: none;
  padding: .45rem 1rem .6rem;
  font-size: .8rem; color: var(--ink-muted);
  background: var(--white); text-align: center; max-width: none;
}
.rc-crisis a { color: var(--action); font-weight: 600; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phones: full screen, above the keyboard, clear of the notch and home bar */
@media (max-width: 40rem) {
  .rc {
    inset: auto 0 auto 0;
    top: var(--rc-top, 0px);
    width: 100%;
    height: var(--rc-vh, 100dvh);
    border-radius: 0;
    box-shadow: none;
  }
  .rc-head { padding-top: max(.85rem, env(safe-area-inset-top, 0px)); padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(.5rem, env(safe-area-inset-right, 0px)); }
  /* every quick question visible: wrap onto extra lines instead of hiding them off-screen */
  .rc-quick { flex-wrap: wrap; justify-content: center; gap: .4rem; padding-inline: .75rem; }
  .rc-crisis { padding-bottom: max(.6rem, env(safe-area-inset-bottom, 0px)); }
  html.rc-open, html.rc-open body { overflow: hidden; }
  html.rc-open .actionbar, html.rc-open .ask-robin-pill { display: none; }
}
/* Short windows: quick questions on one swipeable row, so the conversation keeps its room */
@media (max-height: 34rem) {
  .rc-quick { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 2.5rem; }
  .rc-quick::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-typing span { animation: none; opacity: .6; }
}

.brand-pic { display: block; line-height: 0; }
/* Clean Shot Living logo (updated file, Nov 2026).
   It is square with a tagline inside, so it needs more height than the old
   wide wordmark. Swap the file when the updated logo arrives. */
/* Large at the top of the page so the lettering reads; shrinks once the
   page scrolls (site.js sets .is-scrolled) so the header stays compact.
   overflow-anchor stops the browser fighting the size change. */
html { overflow-anchor: none; }
.brand-mark { height: 150px; width: auto; max-width: none; transition: height .25s ease; }
.is-scrolled .brand-mark { height: 90px; }
/* Phones and tablets (menu collapsed): a little room above and below the logo
   so the skyline never touches the top of the screen or the wave. */
@media (max-width: 61.999rem) {
  .masthead .wrap { padding-block: .55rem .45rem; }
  .brand-mark { height: 96px; }
  .is-scrolled .brand-mark { height: 64px; }
  .is-scrolled .masthead .wrap { padding-block: .35rem .3rem; }
}
@media (max-width: 23.5rem) { .brand-mark { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .brand-mark { transition: none; } }

/* ---------------------------------------------- footer layout (Nov 2026)
   Logo + contact (with icons) | divider | Explore | Community | Get Involved.
   Headings carry a rule underneath; Bud's Place sits under its own rule. */
.footgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; align-items: start; }
.footbrand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 40rem) {
  .footgrid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}
@media (min-width: 62rem) {
  .footgrid--4 { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
  .footbrand { grid-column: auto; align-self: stretch; padding-right: 3rem; border-right: 1px solid rgba(250, 247, 242, .3); }
}
.foot-logo { line-height: 0; margin: 0 0 .9rem !important; }
.foot-logo picture { display: block; }
.foot-logo img { display: block; width: auto; height: 150px; }
.foot-org { margin: 0 0 1.1rem; font-size: .9375rem; text-align: center; }
.foot-contact { list-style: none; margin: 0; padding: 0; width: max-content; max-width: 100%; }
.foot-contact li { display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 .7rem; line-height: 1.45; }
.foot-contact strong { color: var(--white); }
.foot-ico { width: 1.2rem; height: 1.2rem; flex: none; color: var(--white); margin-top: .15rem; }
.sitefoot .foot-contact a, .sitefoot .foot-meet-addr a, .sitefoot .foot-legal a {
  min-height: 0; color: rgba(250, 247, 242, .9); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(250, 247, 242, .6);
}
.sitefoot .foot-contact a { overflow-wrap: anywhere; }
.footcol h3 {
  color: var(--white); font-weight: 700; font-size: .95rem; letter-spacing: .1em;
  max-width: 15rem; padding-bottom: .75rem; margin: 0 0 1rem;
  border-bottom: 2px solid rgba(250, 247, 242, .8);
}
.footcol ul a { font-size: 1.0625rem; color: rgba(250, 247, 242, .88); }
.footcol li { margin-bottom: .45rem; }
.foot-meet { max-width: 15rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid rgba(250, 247, 242, .8); }
.foot-meet h3 { border: 0; padding: 0; margin: 0 0 .6rem; font-size: .8125rem; max-width: none; }
.foot-meet-addr { display: flex; align-items: flex-start; gap: .55rem; margin: 0; }
.footnote { margin-top: 2.5rem; border-top-color: rgba(250, 247, 242, .45); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; margin-top: 1.1rem; }
.foot-bottom p { margin: 0; }
/* Phones: two even rows of two columns under the centred logo block.
   Get Involved and Bud's Place share the last row; the legal line is centred. */
@media (max-width: 39.999rem) {
  .footgrid--4 > .footcol:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; align-items: start; }
  .footgrid--4 > .footcol:last-child > h3 { grid-column: 1; grid-row: 1; align-self: end; }
  .footgrid--4 > .footcol:last-child > ul { grid-column: 1; grid-row: 2; }
  .footgrid--4 > .footcol:last-child > .foot-meet { display: contents; }
  .foot-meet h3 { grid-column: 2; grid-row: 1; align-self: end; }
  .foot-meet-addr { grid-column: 2; grid-row: 2; align-self: start; }
  .foot-meet h3 { font-size: .95rem; padding-bottom: .75rem; margin: 0 0 1rem; border-bottom: 2px solid rgba(250, 247, 242, .8); }
  .footnote { text-align: center; }
  .foot-bottom { justify-content: center; text-align: center; }
}

/* ---------------------------------------------- header layout (Nov 2026)
   Logo | tagline on the left; contact bar over menu + buttons on the right;
   a sage wave with a terracotta stripe along the bottom edge. */
.brand-tag { display: none; }
.brand-tag-1 { display: block; font-weight: 700; font-size: .875rem; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.brand-tag-2 { display: flex; align-items: center; gap: .7rem; margin-top: .5rem; font-weight: 600; font-size: .6875rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ink); }
.brand-tag-2::before, .brand-tag-2::after { content: ""; flex: 1 1 2.5rem; max-width: 3.25rem; height: 2px; background: var(--display); }
.brand-tag-2::after { margin-left: -.42em; }

.topinfo { display: none; list-style: none; margin: 0; padding: 0; align-items: center; font-size: .875rem; color: var(--brand); }
.topinfo li { display: flex; align-items: center; gap: .45rem; margin: 0; padding: 0 1rem; white-space: nowrap; }
.topinfo li:last-child { padding-right: 0; }
.topinfo li + li { border-left: 1px solid var(--rule-firm); }
.topinfo svg { flex: none; color: var(--brand); }
.topinfo a { color: var(--brand); text-decoration: none; }
.topinfo a:hover { text-decoration: underline; }

.masthead, .is-scrolled .masthead { background: var(--white); box-shadow: none; }
/* The wave hangs below the header over the page, so the picture shows under the curve. */
.masthead-wave { position: absolute; left: 0; right: 0; top: calc(100% - 1px); z-index: -1; pointer-events: none; height: clamp(16px, 3vw, 40px); transition: height .25s ease; }
.masthead-wave svg { display: block; width: 100%; height: 100%; }
.wave-cap { fill: var(--white); }
.wave-accent { fill: var(--display); }
.wave-band { fill: var(--brand); }
.is-scrolled .masthead { border-bottom-color: transparent; }
.is-scrolled .masthead-wave { height: clamp(10px, 1.4vw, 18px); }

@media (min-width: 62rem) {
  .masthead .wrap {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: auto auto;
    column-gap: 1rem; row-gap: .25rem; align-items: center; padding-block: .5rem .45rem;
  }
  .masthead .brand { grid-column: 1; grid-row: 1 / 3; margin-right: .5rem; }
  .topinfo { display: flex; grid-column: 2 / -1; grid-row: 1; justify-self: end; }
  .masthead .nav { grid-column: 2; grid-row: 2; justify-self: end; }
  .masthead .wrap > .btn--ghost { grid-column: 3; grid-row: 2; }
  .masthead .wrap > .btn:not(.btn--ghost) { grid-column: 4; grid-row: 2; }
  .masthead .nav a, .masthead .navgroup-btn { font-size: 1.0625rem; white-space: nowrap; }
  .masthead .nav ul { gap: 1.35rem; }
  .masthead .wrap { max-width: 88rem; }
  .masthead .btn { padding: .65rem 1.3rem; font-size: 1rem; white-space: nowrap; }
  .masthead .btn--ghost { border-color: var(--brand); color: var(--brand); }
  .masthead .btn--ghost:hover { background: var(--brand); color: var(--white); }
  .is-scrolled .topinfo { display: none; }
  .is-scrolled .masthead .nav, .is-scrolled .masthead .wrap > .btn { grid-row: 1 / 3; }
}
@media (min-width: 62rem) and (max-width: 74.999rem) {
  .brand-mark { height: 120px; }
  .is-scrolled .brand-mark { height: 80px; }
}
@media (min-width: 80rem) {
  .brand-tag { display: block; margin-left: .9rem; padding-left: 1.1rem; border-left: 2px solid var(--brand); }
}

/* ---------------------------------------- homepage highlight band (Nov 2026)
   Wave edge over the photo above; icon | rule | kicker, headline, sub-line;
   a Call Now pill; a lane of white partner logos with dividers and arrows.
   One icon per kind of message: phone = the number, house = resident,
   quotation mark = team, mug = Bud's Place, star = founder. See rotator.js. */
.rotator-band { position: relative; }
.band-wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(22px, 3.4vw, 46px); display: block; pointer-events: none; }
.band-wave-accent { fill: var(--display); }
.band-wave-fill { fill: var(--brand); }
.rotator-band .rot-wrap { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 2rem; padding-block: 1.6rem 2.4rem; }
.rot { flex: 1; min-width: 0; }
.rot-stage { display: grid; touch-action: pan-y; }
.rot-slide { grid-area: 1 / 1; display: flex; align-items: center; gap: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.rot-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.rot-ico { flex: none; width: 56px; height: 56px; color: var(--paper); }
.rot-slide--call .rot-ico path + path { stroke: #E9C2A6; }
.rot-rule { flex: none; align-self: center; width: 2px; height: 4.75rem; background: var(--display); }
.rot-copy { min-width: 0; }
.rot-copy p { margin: 0; max-width: 44rem; }
.rot-kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #E9C2A6; }
.rot-line { margin-top: .3rem !important; }
.rot-head { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: .01em; color: var(--paper); text-decoration: none; }
.rot-head:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .12em; }
.rot-num { white-space: nowrap; }
.rot-quote { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--paper); }
.rot-sub { margin-top: .45rem !important; font-size: 1.0625rem; color: rgba(250, 247, 242, .86); }
.rot-now { flex: none; display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.6rem .85rem 1.4rem; border: 2px solid var(--paper); border-radius: 999px; background: var(--action); color: var(--white); font-size: 1.2rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rot-now:hover { background: #7E4830; color: var(--white); }
.rot-now:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.rot-ctrls { position: absolute; right: var(--gutter); bottom: .45rem; display: flex; gap: .2rem; }
.rot-ctrls button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: rgba(250, 247, 242, .75); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rot-ctrls button:hover { background: rgba(250, 247, 242, .12); color: var(--paper); }
.rot-ctrls button:focus-visible, .lane-arrow:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.rot-pause .ico-play, .rotator-band.is-paused .rot-pause .ico-pause { display: none; }
.rotator-band.is-paused .rot-pause .ico-play { display: inline; }
.rotator-band:not(.rot-ready) .rot-ctrls, .rotator-band:not(.rot-ready) .lane-arrow { visibility: hidden; }

.logo-lane { display: flex; align-items: center; border-top: 1px solid rgba(250, 247, 242, .2); padding: .9rem .5rem 1rem; }
.lane-arrow { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lane-arrow:hover { background: rgba(250, 247, 242, .12); }
.logo-viewport { flex: 1; min-width: 0; overflow: hidden; }
.logo-move { display: flex; width: max-content; will-change: transform; }
.logo-track { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.logo-track li { margin: 0; flex: none; padding: 0 2.1rem; border-right: 1px solid rgba(250, 247, 242, .32); }
.logo-track img { display: block; height: 38px; width: auto; max-width: 230px; object-fit: contain; }
.logo-track img.mono-svg { filter: brightness(0) invert(1); }

@media (max-width: 47.999rem) {
  .rotator-band .rot-wrap { flex-direction: column; align-items: stretch; gap: 1.2rem; padding-block: 1.3rem 2.6rem; }
  .rot-slide { gap: 1rem; align-items: flex-start; }
  .rot-ico { width: 40px; height: 40px; }
  .rot-rule { height: 3.75rem; align-self: flex-start; }
  .rot-kicker { font-size: .75rem; letter-spacing: .2em; }
  .rot-head { font-size: clamp(1.35rem, 6.4vw, 1.75rem); }
  .rot-now { align-self: flex-start; font-size: 1.05rem; }
  .logo-track li { padding: 0 1.4rem; }
  .logo-track img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .rot-slide, .rot-slide.is-on { transition: none; }
}

/* Call bands (Housing, Treatment) on phones: one centred stack, even line
   breaks, full-width button. The homepage highlight band has its own layout. */
@media (max-width: 47.999rem) {
  .urgent:not(.rotator-band) .wrap { flex-direction: column; align-items: center; text-align: center; gap: .45rem; padding-block: 1.3rem 1.4rem; }
  .urgent:not(.rotator-band) .status { justify-content: center; }
  .urgent:not(.rotator-band) .rate { max-width: 21rem; text-wrap: balance; color: rgba(250, 247, 242, .82); }
  .urgent:not(.rotator-band) .rate:empty { display: none; }
  .urgent:not(.rotator-band) .btn-row { width: 100%; margin: .55rem 0 0; flex-direction: column; align-items: center; gap: .6rem; }
  .urgent:not(.rotator-band) .btn-row .btn { width: 100%; max-width: 20rem; }
}

/* Partners page (Nov 2026): three groups, each an even grid of simple cards
   (logo plate, name, one-line description, link). Donors are a slim row. */
.pgroup + .pgroup { margin-top: clamp(2.75rem, 5vw, 3.75rem); }
.pgroup .partner-cat { margin: 0 0 1.4rem; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard.card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem 1.5rem 1.3rem; }
.pcard .partner-mark { width: 9rem; height: 4.25rem; margin-bottom: 1.1rem; background: #fff; }
.pcard .partner-mark span { display: none; }
.pcard h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 .45rem; }
.pcard p { font-size: .9375rem; line-height: 1.55; color: var(--ink-muted); margin: 0 0 1.1rem; max-width: none; }
.pcard .partner-visit { margin-top: auto; }
@media (min-width: 40rem) { .pgrid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pgrid--compact .pcard.card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.1rem; row-gap: .15rem; align-items: center; padding: 1rem 1.25rem; }
.pgrid--compact .pcard .partner-mark { grid-row: 1 / 3; width: 6rem; height: 3.25rem; margin: 0; }
.pgrid--compact .pcard h3 { margin: 0; align-self: end; }
.pgrid--compact .pcard .partner-visit { margin: 0; align-self: start; }

/* Phones: a shorter opening banner, zoomed toward the courtyard, so the sky
   doesn't fill the top half and both buttons fit on the first screen. */
@media (max-width: 48rem) {
  .chapter--hero-home { min-height: clamp(32rem, 84vh, 46rem); min-height: clamp(32rem, 84svh, 46rem); }
  .chapter--hero-home .chapter-img { top: auto; height: 145%; }
}
