/* ===========================================================================
   getreconnected.us.com
   Grammar: gallery / catalog. Eight objects, an index that jumps, museum
   labels, and one signature move (the press wall in object five).
   Light sibling to cbttherapy.us.com: bone paper, petrol ink, one coral.
   The engine (engine/scrollcraft.css, engine/scrollcraft.js) is untouched:
   everything below is either a token override or this page's own markup.
   ========================================================================= */

/* ------------------------------------------------------------- faces ---- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* ------------------------------------------------------------ tokens ---- */
:root {
  /* six roles, one hue: bone paper ground, petrol ink, one coral accent.
     The accent is two lightnesses of one hue: #9e3a26 carries text contrast
     on paper (5.6:1), #e0725e is the fill, and petrol sits on the fill. */
  --sc-canvas:     #efe9df;
  --sc-surface:    #e6dfd1;
  --sc-ink:        #0b1d22;
  --sc-ink-soft:   #4a5f63;
  --sc-accent:     #9e3a26;
  --sc-accent-fill:#e0725e;
  --sc-accent-ink: #0b1d22;

  --sc-hairline:        rgba(11, 29, 34, 0.18);
  --sc-hairline-strong: rgba(11, 29, 34, 0.34);

  --sc-font-display: "Fraunces", Georgia, serif;
  --sc-font-text:    "Inter", system-ui, -apple-system, sans-serif;

  /* type ramp. Tracking tightens as size grows. */
  --t-title: clamp(2.05rem, 5.1vw, 4.3rem);
  --t-h2:    clamp(1.5rem, 3vw, 2.5rem);
  --t-h3:    clamp(1.06rem, 0.98rem + 0.5vw, 1.32rem);
  --t-body:  clamp(1rem, 0.965rem + 0.18vw, 1.09rem);
  --t-lede:  clamp(1.12rem, 1.02rem + 0.55vw, 1.4rem);
  --t-small: clamp(0.82rem, 0.79rem + 0.16vw, 0.9rem);
  --t-fine:  clamp(0.74rem, 0.72rem + 0.1vw, 0.8rem);

  --gutter:  clamp(1rem, 4vw, 3.5rem);
  --measure: 62ch;
  --index-w: 14.5rem;
  --index-h: 3.25rem;
  --radius:  2px;          /* one radius scale, held across the page */
  --arch:    50vw 50vw 2px 2px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ------------------------------------------------------------- shell ---- */
html { background: #efe9df; }
body {
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--t-body);
  font-variation-settings: "wght" 400;
  line-height: 1.68;
  letter-spacing: 0.004em;
  overflow-x: clip;
}
::selection { background: var(--sc-accent-fill); color: var(--sc-accent-ink); }

/* Petrol ring on paper: 14.6:1 against the canvas, with a paper inner ring so
   the outline still reads where it crosses a portrait or the surface tint. */
:focus-visible {
  outline: 2px solid var(--sc-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--sc-canvas), 0 0 0 6px rgba(11, 29, 34, 0.28);
  border-radius: var(--radius);
}

.skip {
  position: absolute; left: var(--gutter); top: 0.5rem;
  z-index: 400;
  transform: translateY(-260%);
  background: var(--sc-ink); color: var(--sc-canvas);
  padding: 0.55rem 0.9rem;
  font-size: var(--t-small);
  text-decoration: none;
  transition: transform 180ms var(--ease);
}
.skip:focus-visible { transform: none; }

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: 74rem; }

/* ------------------------------------------------------- display type --- */
.display {
  font-family: var(--sc-font-display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72, "wght" 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}
h1.title {
  font-family: var(--sc-font-display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 80, "wght" 420;
  font-size: var(--t-title);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.obj__h, .ch__h {
  font-size: var(--t-h2);
  letter-spacing: -0.022em;
  margin: 0;
}
.h3 {
  font-family: var(--sc-font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 24, "wght" 500;
  font-size: var(--t-h3);
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin: 0;
}

.body { font-size: var(--t-body); max-width: var(--measure); margin: 0; }
.body + .body { margin-top: 0.95em; }
.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0;
  color: var(--sc-ink);
  text-wrap: pretty;
}
.small { font-size: var(--t-small); }
.fineprint { font-size: var(--t-fine); color: var(--sc-ink-soft); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.soft { color: var(--sc-ink-soft); }

/* Links show their full URL as their visible text wherever a URL is the
   thing being linked; the underline is the only affordance. */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--sc-hairline-strong);
  overflow-wrap: anywhere;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--sc-accent); text-decoration-color: var(--sc-accent); }
}
.link:active { color: var(--sc-accent); }

/* ------------------------------------------------------------- index ---- */
/* The chrome is an index of the eight objects, and it jumps. */
.index {
  position: fixed;
  z-index: 300;
  background: var(--sc-canvas);
  font-size: var(--t-small);
}
.index__title {
  font-size: var(--t-fine);
  color: var(--sc-ink-soft);
  margin: 0;
  letter-spacing: 0.02em;
}
.index__list { list-style: none; margin: 0; padding: 0; }
.index__list a {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--sc-ink-soft);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.index__n {
  font-variant-numeric: tabular-nums;
  font-size: var(--t-fine);
  flex: none;
}
.index__list a[aria-current="true"] { color: var(--sc-ink); }
.index__list a[aria-current="true"] .index__n { color: var(--sc-accent); }
@media (hover: hover) and (pointer: fine) {
  .index__list a:hover { color: var(--sc-ink); }
}
.index__mark img { width: 8.25rem; height: auto; }

/* phones and tablets: a slim bar at the top, the eight numbers and titles on
   one scrolling line. It is a list, so it stays keyboard reachable. */
@media (max-width: 1179px) {
  .index {
    inset: 0 0 auto 0;
    height: var(--index-h);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-inline: var(--gutter);
    border-bottom: 1px solid var(--sc-hairline);
  }
  .index__title, .index__mark { display: none; }
  .index__list {
    display: flex;
    gap: 1.35rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-block: 0.6rem;
    margin-inline: -0.2rem;
    padding-inline: 0.2rem;
  }
  .index__list::-webkit-scrollbar { display: none; }
  .index__list li { flex: none; }
  .index__list a { white-space: nowrap; font-size: var(--t-fine); }
  .index__t { display: none; }
  .index__list a[aria-current="true"] .index__t { display: inline; }
}

/* desktop: a left rail, the full index standing open */
@media (min-width: 1180px) {
  .index {
    inset: 0 auto 0 0;
    width: var(--index-w);
    border-right: 1px solid var(--sc-hairline);
    padding: clamp(1.5rem, 2.4vw, 2.2rem) 1.35rem;
    display: grid;
    align-content: start;
    gap: 1.3rem;
    overflow-y: auto;
  }
  .index__list { display: grid; gap: 0.62rem; }
  .index__list a { line-height: 1.3; }
  .sec { padding-left: var(--index-w); }
  .rail { padding-left: calc(var(--index-w) + var(--gutter)); }
}

/* ------------------------------------------------------------ objects --- */
main { display: block; }
@media (max-width: 1179px) { main { padding-top: var(--index-h); } }

.sec { position: relative; }
.sec--flow { padding-block: clamp(3.4rem, 7vw, 6.5rem); }
#object-1.sec--flow { padding-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.sec--after-pin { padding-block: clamp(2rem, 3.5vw, 3rem) clamp(3.4rem, 7vw, 6.5rem); }

/* the object head: a catalogue number and a title. The number is the index
   entry, which is the one thing that makes numbering information here. */
.obj__head { display: flex; align-items: baseline; gap: 0.85rem; }
.obj__n {
  font-family: var(--sc-font-display);
  font-variation-settings: "opsz" 20, "wght" 400;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  color: var(--sc-accent);
  flex: none;
  line-height: 1;
}
.obj__rule { border: 0; border-top: 1px solid var(--sc-hairline-strong); margin: 0 0 1.1rem; }

/* the museum label: a hairline-ruled caption of facts, never pitch. Every
   object carries the same schema, which is what makes this a collection. */
.label {
  border-top: 1px solid var(--sc-hairline);
  padding-top: 0.75rem;
  font-size: var(--t-fine);
  line-height: 1.6;
  color: var(--sc-ink-soft);
  max-width: 46ch;
  margin: 0;
}

/* ===================================================== object 1: practice = */
.opening { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .opening {
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.85fr);
    gap: clamp(2rem, 4.5vw, 4rem);
    align-items: start;
  }
}
.opening__text { display: grid; gap: 1.25rem; align-content: start; }
.opening__title { display: grid; gap: 0.7rem; }
.opening__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-size: var(--t-small); }

.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: clip;
  border-radius: var(--arch);
  background: var(--sc-surface);
  box-shadow: 0 2px 4px rgba(11, 29, 34, 0.10), 0 18px 40px -14px rgba(11, 29, 34, 0.22);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  filter: saturate(0.86) contrast(1.02);
}
.plate--portrait { margin: 0; display: grid; gap: 0.85rem; }

/* the pan stage holder: centres the rail in the pinned stage and stays wider
   than the viewport so the engine's reduced-motion scroll region still works.
   page.js flattens it on phones, where the rail becomes a plain list. */
.stagehold { height: 100%; display: grid; align-content: center; width: max-content; min-width: 100%; }
.stagehold.is-flat { display: block; width: auto; min-width: 0; height: auto; }
@media (max-width: 1179px) { .stagehold { padding-top: var(--index-h); } .stagehold.is-flat { padding-top: 0; } }

/* ================================================== object 2: who we help = */
/* a rail of plates. Each plate is a short fact on paper with one hairline:
   no icon, no box, nothing that reads as a card grid. */
.rail { display: flex; gap: clamp(1.1rem, 2.2vw, 2rem); align-items: stretch; padding-inline: var(--gutter); }
.rail__lead { flex: 0 0 clamp(15rem, 26vw, 22rem); display: grid; gap: 0.9rem; align-content: center; }
.rail__note { flex: 0 0 clamp(13rem, 20vw, 18rem); display: grid; gap: 0.75rem; align-content: center; }
/* the plates are panels on a wall, not a thin strip floating in a tall stage:
   the top rules line up across the rail and the fact sits in the panel. */
.rail:not(.is-list) > * { min-height: min(60vh, 28rem); }
.rail__note p { max-width: 28ch; }

.plate {
  flex: 0 0 clamp(14rem, 23vw, 19rem);
  border-top: 1px solid var(--sc-hairline-strong);
  border-bottom: 1px solid var(--sc-hairline);
  padding-top: 0.95rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
}
.plate p { margin: 0; font-size: var(--t-small); line-height: 1.55; }
.plate__n {
  font-family: var(--sc-font-display);
  font-variation-settings: "opsz" 20, "wght" 400;
  font-size: var(--t-fine);
  font-variant-numeric: tabular-nums;
  color: var(--sc-ink-soft);
}

/* the rail's staggered settle, driven from the act's --sc-p. The first item is
   exempt, because a pan act needs its opening content already present. */
@media (prefers-reduced-motion: no-preference) {
  .rail:not(.is-list) > * {
    opacity: clamp(0.7, calc(0.7 + (var(--sc-p, 1) - var(--i, 0) * 0.055) * 7), 1);
  }
}

/* phones: page.js converts the act to flow and adds .is-list, so the rail
   becomes a plain vertical list with no pinned stage behind it. */
.rail.is-list {
  display: grid;
  gap: 0;
  padding-inline: var(--gutter);
  max-width: 44rem;
  margin-inline: auto;
}
.rail.is-list > * { flex: none; }
.rail.is-list .rail__lead { padding-bottom: 1.4rem; }
.rail.is-list .plate { padding-block: 0.95rem; border-bottom: 0; }
.rail.is-list .plate:last-of-type { border-bottom: 1px solid var(--sc-hairline); }
.rail.is-list .rail__note { border-top: 1px solid var(--sc-hairline); padding-top: 1.1rem; margin-top: 0.6rem; }

/* ================================================== object 3: how we work = */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li {
  border-top: 1px solid var(--sc-hairline);
  padding-block: clamp(1.05rem, 2.2vw, 1.6rem);
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1.8rem minmax(0, 1fr);
}
.steps li:last-child { border-bottom: 1px solid var(--sc-hairline); }
.steps__n {
  grid-row: 1 / span 2;
  font-family: var(--sc-font-display);
  font-variation-settings: "opsz" 20, "wght" 400;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  color: var(--sc-accent);
  line-height: 1.4;
}
.steps p { margin: 0; max-width: 58ch; }
@media (min-width: 900px) {
  .steps li { grid-template-columns: 1.8rem minmax(0, 16rem) minmax(0, 1fr); align-items: baseline; }
  .steps__t { grid-row: 1; }
  .steps p { grid-row: 1; }
}

/* ======================================================= object 4: team === */
.person {
  flex: 0 0 clamp(15rem, 24vw, 20rem);
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.person__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: clip;
  border-radius: var(--arch);
  background: var(--sc-surface);
}
.person__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: saturate(0.84) contrast(1.02);
}
.person__body { display: grid; gap: 0.4rem; border-top: 1px solid var(--sc-hairline); padding-top: 0.75rem; }
.person__name { font-size: var(--t-small); margin: 0; font-variation-settings: "wght" 560; }
.person__cred { font-size: var(--t-fine); color: var(--sc-ink-soft); margin: 0; }
.person__focus { font-size: var(--t-fine); line-height: 1.6; margin: 0; }

.intro { flex: 0 0 clamp(17rem, 30vw, 26rem); display: grid; gap: 0.85rem; align-content: start; }
.intro video {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sc-surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(11, 29, 34, 0.10), 0 14px 32px -14px rgba(11, 29, 34, 0.20);
}
.rail.is-list .person { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.9rem 1.1rem; padding-block: 1.2rem; border-top: 1px solid var(--sc-hairline); }
.rail.is-list .person__frame { grid-row: 1 / span 2; }
.rail.is-list .person__body { border-top: 0; padding-top: 0; }
.rail.is-list .intro { padding-block: 1.3rem; }

/* =========================================== object 5: the press wall ===== */
/* one hard-edged ground change, not a drift: the wall is a different wall */
.sec--wall { background: #eae3d7; }
.press { display: grid; height: 100%; padding: var(--gutter); gap: clamp(1.2rem, 3vw, 2.5rem); align-content: center; }
@media (max-width: 1179px) { .press { padding-top: calc(var(--index-h) + 0.75rem); } }
/* reduced motion: page.js unpins the act, so the wall reads as a section */
.press.is-flat { height: auto; padding-block: clamp(3.4rem, 7vw, 6.5rem); }
.press.is-flat .wall { align-content: start; padding-block: 0; }
@media (min-width: 960px) {
  .press {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding-left: calc(var(--gutter));
  }
}
.press__plate { display: grid; gap: 1rem; align-content: center; }
.press__plate .body { font-size: var(--t-small); line-height: 1.6; }
@media (max-width: 959px) { .press__plate .body { font-size: var(--t-fine); line-height: 1.55; } }

/* the wall: real names, set in the display face at four weights and sizes,
   stamped in one at a time as the act advances, then held as an index. */
.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  padding-block: clamp(1rem, 4vh, 3rem);
  gap: 0.35em 0.9em;
  font-family: var(--sc-font-display);
  line-height: 1.12;
}
.wall li { max-width: 100%; }
.wall a {
  color: var(--sc-ink);
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.wall .s1 { font-size: clamp(0.95rem, 1.9vw, 1.65rem); font-variation-settings: "opsz" 24, "wght" 460; }
.wall .s2 { font-size: clamp(1.15rem, 2.7vw, 2.4rem); font-variation-settings: "opsz" 48, "wght" 330; }
.wall .s3 { font-size: clamp(0.88rem, 1.5vw, 1.3rem); font-variation-settings: "opsz" 18, "wght" 600; }
.wall .s4 { font-size: clamp(1.35rem, 3.4vw, 3rem); font-variation-settings: "opsz" 60, "wght" 280; }
@media (hover: hover) and (pointer: fine) {
  .wall a:hover { color: var(--sc-accent); }
}

/* armed only once page.js is running, so a no-JS visitor gets the full wall */
.wall.is-armed a {
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px) scale(0.985);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
}
.wall.is-armed a[data-on="1"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* =============================================== object 6: sister sites === */
.doors { list-style: none; margin: 0; padding: 0; display: grid; }
.doors li { border-top: 1px solid var(--sc-hairline); padding-block: clamp(0.9rem, 2vw, 1.35rem); }
.doors li:last-child { border-bottom: 1px solid var(--sc-hairline); }
.doors__t { display: block; font-size: var(--t-fine); color: var(--sc-ink-soft); margin-bottom: 0.2rem; }
.doors a, .doors__u { font-size: var(--t-small); }
/* not attached yet: shown as fact, not offered as a door */
.doors__u { color: var(--sc-ink-soft); overflow-wrap: anywhere; }

/* ====================================================== object 7: begin === */
.begin {
  border-top: 1px solid var(--sc-hairline-strong);
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
@media (min-width: 880px) {
  .begin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.begin__ask { display: grid; gap: 0.9rem; align-content: start; }
.address { display: grid; gap: 0.15rem; font-size: var(--t-small); }
.crisis {
  font-size: var(--t-small);
  border-left: 1px solid var(--sc-accent);
  padding-left: 0.95rem;
  margin: 0;
  max-width: 40ch;
}
.colophon {
  border-top: 1px solid var(--sc-hairline);
  margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
  padding-top: clamp(1.2rem, 2.4vw, 1.8rem);
  display: grid;
  gap: 1.1rem;
}
.colophon .mark { width: 9rem; height: auto; }
/* the legal and utility pages reuse the colophon as a two-part footer */
@media (min-width: 880px) { footer .colophon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
footer .colophon p { max-width: 44ch; }
.colophon__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: var(--t-small); }

/* ------------------------------------------------------ reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  /* the rails become native scroll regions (the engine does this), so the
     settle and the lateral stagger both come off. */
  .rail > * { opacity: 1 !important; }
  /* the wall is shown complete and static */
  .wall.is-armed a { opacity: 1; visibility: visible; transform: none; transition: none; }
}
