:root {
  --slate: #455957;
  --slate-deep: #35443f;
  --sage: #e2e4d2;
  --surface: #eeeee4;
  --teal: #568e96;
  --teal-soft: #c3d3d0;
  --ink: #1c2422;
  --ink-soft: #3d4a47;
  --radius-lg: 28px;
  --radius: 16px;
  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-body: "Karla", -apple-system, sans-serif;
  --crisis-bar-h: 2.2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--sage);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Room for the fixed .crisis-bar so it doesn't sit over page content. */
  padding-top: var(--crisis-bar-h);
}

.crisis-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--crisis-bar-h);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding-inline: 1rem;
  background: #14100f;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.crisis-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crisis-bar a:hover {
  color: var(--teal-soft);
}

.crisis-bar-short {
  display: none;
}

@media (max-width: 600px) {
  /* The full sentence wraps at this width and would overflow the bar's
     fixed height — swap to a short one-liner instead of letting it grow. */
  .crisis-bar-full {
    display: none;
  }

  .crisis-bar-short {
    display: inline;
  }
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1),
    background 0.25s,
    box-shadow 0.25s;
}

.btn-dark {
  background: var(--slate);
  color: var(--sage);
}

.btn-dark:hover {
  background: var(--slate-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(53, 68, 63, 0.3);
}

.btn-light {
  background: var(--sage);
  color: var(--slate);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  border: 1.5px solid var(--slate);
  color: var(--slate);
}

.btn-outline:hover {
  background: var(--slate);
  color: var(--sage);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: calc(var(--crisis-bar-h) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 94%);
  z-index: 100;
  background: color-mix(in srgb, var(--sage) 78%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--slate) 14%, transparent);
  border-radius: 999px;
  padding: 0.55rem 0.6rem 0.55rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand em {
  font-style: normal;
  color: var(--teal);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.site-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:not(.btn):hover {
  color: var(--slate);
}

.site-nav .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-nav ul li:not(:last-child) {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding: 8rem 0 4rem;
}

.hero-orb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  pointer-events: none;
}

.hero-orb .orb {
  width: min(560px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 32%,
    #cfe0e2,
    var(--teal) 50%,
    #779aa1
  );
  filter: blur(2px);
  animation: orb-breathe 12s cubic-bezier(0.45, 0, 0.4, 1) infinite;
}


/* A real breath cycle, not a generic pulse — 4s inhale, 2s hold, 4s exhale,
   2s hold (the "box breathing" pattern taught for anxiety), so the two flat
   plateaus read as an actual held breath rather than the orb constantly
   drifting. Contrast swing is wide (0.16 -> 0.62 opacity, 0.8 -> 1.18 scale)
   so it's legible at a glance, not just on close inspection. */
@keyframes orb-breathe {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.16;
  }

  33.3%,
  50% {
    transform: scale(1.18);
    opacity: 0.62;
  }

  83.3% {
    transform: scale(0.8);
    opacity: 0.16;
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- Hero faces ---------- */
.hero-faces {
  position: relative;
  overflow: hidden;
  width: min(760px, 88vw);
  height: clamp(132px, 16vw, 184px);
  margin: 1.8rem auto 0.4rem;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 14%,
    black 86%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 14%,
    black 86%,
    transparent
  );
}

.faces-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: faces-scroll 26s linear infinite;
  will-change: transform;
}

.face-photo {
  width: clamp(110px, 13vw, 160px);
  aspect-ratio: 1;
  margin-inline: clamp(-16px, -1.6vw, -10px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage);
  border: 3px solid var(--sage);
  box-shadow: 0 10px 26px rgba(38, 49, 46, 0.22);
  transform: scale(1);
  transition: box-shadow 0.2s ease;
}

@keyframes faces-scroll {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin: 1.4rem auto 1.6rem;
}

.hero h1 .accent {
  color: var(--teal);
}

.hero p.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Marquee ticker ---------- */
.ticker {
  background: var(--slate);
  color: var(--sage);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-scroll 30s linear infinite;
}

.ticker span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.ticker span::after {
  content: "✦";
  color: var(--teal-soft);
  font-size: 0.8rem;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
section {
  padding-block: 7rem;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-top: 0.9rem;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.service-card {
  background: #ecefe0;
  border: 1px solid color-mix(in srgb, var(--slate) 12%, transparent);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(53, 68, 63, 0.14);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.service-card p {
  color: var(--ink-soft);
  max-width: 44ch;
}

.service-card .visual {
  margin-top: auto;
  height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  position: relative;
  overflow: hidden;
}

.service-card .visual::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(226, 228, 210, 0.5);
  right: -30px;
  top: -30px;
}

.service-card:nth-child(2) .visual {
  background: linear-gradient(135deg, var(--slate), #5b7472);
}

.service-card:nth-child(3) .visual {
  background: linear-gradient(135deg, #9fbcc2, var(--teal-soft));
}

.service-card:nth-child(4) .visual {
  background: linear-gradient(135deg, #5b7472, var(--teal));
}

@media (max-width: 820px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Approach rows */
.approach {
  background: var(--slate);
  color: var(--sage);
}

.approach .eyebrow {
  color: var(--teal-soft);
}

.approach-rows {
  border-top: 1px solid rgba(226, 228, 210, 0.18);
}

.approach-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.4fr;
  gap: 2rem;
  align-items: baseline;
  padding-block: 2.2rem;
  border-bottom: 1px solid rgba(226, 228, 210, 0.18);
}

.approach-row .num {
  font-family: var(--font-display);
  color: var(--teal-soft);
  font-size: 1rem;
}

.approach-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}

.approach-row p {
  color: rgba(226, 228, 210, 0.72);
}

@media (max-width: 720px) {
  .approach-row {
    grid-template-columns: 50px 1fr;
  }

  .approach-row p {
    grid-column: 2;
  }
}

/* Meet our counsellors teaser */
.counsellors-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  text-decoration: none;
  padding: 3rem;
  background: #ecefe0;
  border: 1px solid color-mix(in srgb, var(--slate) 12%, transparent);
  border-radius: var(--radius-lg);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.3s;
}

.counsellors-teaser:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(53, 68, 63, 0.14);
}

.counsellors-teaser-text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-top: 0.9rem;
}

.counsellors-sub {
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 46ch;
}

.counsellors-teaser-visual {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.preview-faces {
  display: flex;
}

.preview-face {
  position: relative;
  display: inline-flex;
  margin-left: -16px;
}

.preview-face:first-child {
  margin-left: 0;
}

.preview-face img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sage);
  background: var(--sage);
  box-shadow: 0 6px 14px rgba(38, 49, 46, 0.18);
  display: block;
}

/* Shape/colour only here — where a .status-dot is positioned (overlaid on
   an avatar vs. inline next to text) is up to the context using it, see
   .preview-face .status-dot below and .status-line in counsellors.css. */
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  flex-shrink: 0;
}

.status-dot.is-active {
  background: #4a8f5f;
}

.status-dot.is-inactive {
  background: #b3261e;
}

.preview-face .status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.view-badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-left: 1.6rem;
  background: var(--slate);
  color: var(--sage);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1),
    background 0.3s;
}

.counsellors-teaser:hover .view-badge {
  transform: scale(1.08);
  background: var(--slate-deep);
}

@media (max-width: 720px) {
  .counsellors-teaser {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Stack faces above the View badge instead of side-by-side — puts the
     badge at the bottom of the card as a clear closing affordance, rather
     than floating oddly next to the preview photos. */
  .counsellors-teaser-visual {
    align-self: stretch;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .view-badge {
    margin-left: 0;
  }
}

.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;
}

/* CTA marquee */
.cta-marquee {
  background: var(--teal);
  padding-block: 5.5rem;
  overflow: hidden;
}

.cta-marquee .line {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  color: var(--sage);
}

.cta-marquee .line .track {
  display: inline-flex;
  gap: 4rem;
  animation: ticker-scroll 26s linear infinite;
}

.cta-marquee .line .track span {
  display: inline-flex;
  gap: 4rem;
  align-items: center;
}

.cta-marquee .line .track span::after {
  content: "→";
  color: var(--sage);
}

.cta-marquee .actions {
  text-align: center;
  margin-top: 3rem;
}

/* Closing statement */
.closing {
  text-align: center;
  padding-block: 9rem;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto 1.4rem;
}

.closing h2 .muted {
  color: var(--ink-soft);
}

.closing p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 2.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-deep);
  color: var(--teal-soft);
  padding: 4rem 0 2rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}

.site-footer .brand {
  color: var(--sage);
  font-size: 1.3rem;
}

.site-footer nav ul {
  list-style: none;
  line-height: 2.2;
}

.site-footer a {
  color: var(--teal-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sage);
}

.site-footer address {
  font-style: normal;
  line-height: 2.2;
}

.site-footer small {
  display: block;
  width: 100%;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(195, 211, 208, 0.18);
  color: color-mix(in srgb, var(--teal-soft) 80%, var(--slate-deep));
  font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb .orb,
  .ticker-track,
  .faces-track,
  .cta-marquee .track {
    animation: none;
  }

  .hero-orb .orb {
    /* Resting mid-breath state — the animation drives opacity/scale now
       that motion is off, so it needs an explicit static value here. */
    opacity: 0.4;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
