/*
Theme Name: ComfortZone
Theme URI: https://comfortzoneny.com/
Author: ComfortZone
Description: WordPress theme for ComfortZone Service Coordination.
Version: 2.3.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: comfortzone
*/

:root {
  /* Brand palette (from the logo) */
  --lavender: #bba2c9;
  --amethyst: #a689b9;
  --medium: #947aa8;
  --royal: #9075a7;
  --deep: #2c1127;
  --eggplant: #2c1127;
  --purple: #947aa8;
  --sage: #a4af92;
  --ink: #2c1127;
  --muted: #5c5360;
  --line: #e4ddd4;
  --paper: #ffffff;
  --canvas: #f6f4f2;
  --ok: #3d5c45;
  --bad: #8a1f45;

  /* Shades mixed from the palette, for states and small text */
  --plum-hover: #492e4b;
  --purple-ink: #755a81;
  --lavender-wash: #ebe3ef;
  --sage-wash: #e7eae1;
  --on-plum-muted: rgba(255, 255, 255, 0.74);
  --on-plum-line: rgba(255, 255, 255, 0.14);

  /* Surfaces */
  --hair: rgba(44, 17, 39, 0.08);
  --ring: 0 0 0 1px var(--hair);
  --shadow-1: 0 1px 2px rgba(44, 17, 39, 0.04), 0 6px 18px rgba(44, 17, 39, 0.045), var(--ring);
  --shadow-2: 0 2px 4px rgba(44, 17, 39, 0.05), 0 16px 36px rgba(44, 17, 39, 0.1), var(--ring);
  --shadow-panel: 0 30px 60px -20px rgba(44, 17, 39, 0.45);

  /* Shape */
  --r-sm: 10px;
  --r-control: 12px;
  --r-card: 16px;
  --r-lg: 24px;

  /* Rhythm */
  --shell: 1180px;
  --gutter: 1rem;
  --pad-card: 1.25rem;
  --gap-grid: 0.9rem;
  --section: 3rem;
  --control-h: 48px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 300ms;

  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease-out), text-decoration-color var(--dur) var(--ease-out);
}

a[href^="tel:"]:not(.start-card) {
  white-space: nowrap;
}

[id] {
  scroll-margin-top: 6rem;
}

:focus-visible {
  outline: 3px solid var(--medium);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--eggplant);
  padding: 0.55rem 0.8rem;
  z-index: 50;
  border-radius: var(--r-sm);
}

.skip:focus {
  top: 0.75rem;
}

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

/* Section headings share one voice: the serif from the hero, with a short brand mark above */
.section-intro h2,
.section-head h2,
.contact-band h2,
.prose h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.85rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--eggplant);
}

.section-intro h2::before,
.section-head h2::before,
.prose-editorial > h2::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 2px;
  background: var(--royal);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

/* The divider appears only once content scrolls under the header */
@supports (animation-timeline: scroll()) {
  .site-header {
    border-bottom-color: transparent;
    animation: header-edge linear both;
    animation-timeline: scroll();
    animation-range: 0 3rem;
  }

  @keyframes header-edge {
    to {
      border-bottom-color: var(--line);
      box-shadow: 0 8px 24px -16px rgba(44, 17, 39, 0.25);
    }
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  min-height: 4.5rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  text-decoration: none;
  color: var(--eggplant);
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(280px, 62vw);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  border: 1.5px solid var(--eggplant);
  border-radius: var(--r-control);
  background: var(--paper);
  color: var(--eggplant);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--lavender-wash);
}

.nav-toggle:active {
  transform: scale(0.97);
}

.js .nav-toggle {
  display: inline-flex;
}

.site-nav {
  flex-basis: 100%;
}

/* Mobile menu unfolds down from the header it belongs to */
.js .site-nav {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--dur-slow) var(--ease-out),
    visibility 0s linear var(--dur-slow);
}

.js .site-nav > .nav-list {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.js .site-nav.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows var(--dur-slow) var(--ease-out),
    visibility 0s;
}

.js .site-nav.is-open > .nav-list {
  opacity: 1;
}

.nav-list,
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0.4rem;
}

.nav-list a,
.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav-list a {
  padding-right: 1rem;
}

.js .site-nav .nav-list li:first-child {
  margin-top: 0.6rem;
}

.js .site-nav .nav-list li {
  border-top: 1px solid var(--hair);
}

.js .site-nav .nav-list a {
  display: flex;
  min-height: 48px;
}

/* Nav and footer links: an underline that draws in from the left on hover and marks the current page */
.nav-list a,
.footer-list a {
  position: relative;
}

.nav-list a::after,
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1rem;
  bottom: 0.55rem;
  height: 2px;
  border-radius: 1px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out);
}

.footer-list a::after {
  right: 0;
  bottom: 0.4rem;
  background: var(--lavender);
}

.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
  transform: none;
}

/* In the open mobile menu, the current page is marked by color on its own line instead */
@media (max-width: 959px) {
  .js .site-nav .nav-list a::after {
    display: none;
  }

  .js .site-nav .current-menu-item > a,
  .js .site-nav .current_page_item > a {
    color: var(--purple-ink);
  }
}

/* ---------- Buttons ---------- */

.header-call,
.button,
.mobile-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 1.35rem;
  border-radius: var(--r-control);
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.header-call {
  display: none;
  min-height: 44px;
  padding: 0 1.1rem;
}

.header-call:active,
.button:active,
.mobile-call:active {
  transform: scale(0.97);
}

.button-secondary {
  background: transparent;
  color: var(--eggplant);
  box-shadow: inset 0 0 0 1.5px var(--eggplant);
}

/* ---------- Home: hero ---------- */

.home-hero {
  padding: 1.75rem 0 0;
}

.home-hero-grid {
  display: grid;
  gap: 2rem;
}

.home-hero h1 {
  margin: 0 0 1.25rem;
  max-width: 15em;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--eggplant);
  text-wrap: balance;
}

.lead,
.home-assurance {
  margin: 0;
  max-width: 36rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}

.home-assurance {
  margin-top: 0.8rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-note a {
  font-weight: 600;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.75rem 1.5rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--deep);
  color: #fff;
  box-shadow: var(--shadow-panel);
}

.canopy {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero-canopy {
  top: -2.5rem;
  right: -3.5rem;
  width: 13rem;
  opacity: 0.45;
}

.hero-panel-title {
  margin: 0 0 1rem;
  max-width: 9em;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--on-plum-line);
}

.hero-facts li::before {
  content: "";
  grid-row: span 2;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgba(187, 162, 201, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bba2c9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

.hero-facts strong {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.hero-facts span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--on-plum-muted);
}

/* ---------- Home: sections ---------- */

.home-section {
  padding: var(--section) 0 0;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.section-intro p,
.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-intro p + p {
  margin-top: 0.75rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.split {
  display: grid;
}

/* "What we do" is a statement, not a set of links, so it reads as a checklist */
.path-grid {
  display: grid;
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.path-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.path-grid li::before,
.prose ul.wp-block-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5c45' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

.path-grid h3 {
  margin: 0;
  color: var(--eggplant);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.start-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

/* Programs: the three doors into the site, so they get the most weight */
.program-grid {
  display: grid;
  gap: var(--gap-grid);
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
  padding: 1.5rem 1.4rem 1.25rem;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.program-card strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--eggplant);
}

.program-card span {
  margin: 0;
  color: var(--muted);
}

.program-card .start-kicker {
  color: var(--purple-ink);
}

.program-card .program-more {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
  font-weight: 700;
  color: var(--deep);
}

.program-card > span:nth-of-type(2) {
  margin-bottom: 1.25rem;
}

.program-more::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4em;
  transition: transform var(--dur) var(--ease-out);
}

.program-card:active {
  transform: scale(0.985);
  transition-duration: var(--dur-fast);
}

/* How a family starts: a timeline on a tinted band, not another row of cards */
.home-steps {
  margin-top: var(--section);
  padding: var(--section) 0;
  background: var(--lavender-wash);
}

.start-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cz-start;
}

.start-grid > li {
  position: relative;
  counter-increment: cz-start;
  padding-bottom: 1.75rem;
}

.start-grid > li:last-child {
  padding-bottom: 0;
}

/* Vertical connector on small screens */
.start-grid > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: rgba(144, 117, 167, 0.45);
}

.start-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  row-gap: 0.3rem;
  color: inherit;
  text-decoration: none;
}

.start-card::before {
  content: counter(cz-start);
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(144, 117, 167, 0.45);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--deep);
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.start-card .start-kicker {
  align-self: end;
}

.start-card strong {
  color: var(--eggplant);
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dur) var(--ease-out);
}

.start-card span:last-child {
  color: var(--muted);
}

.start-card:active::before {
  transform: scale(0.94);
}

/* Who we help: places and languages as scannable chips */
.facts {
  display: grid;
  gap: 1.75rem;
}

.fact h3 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

.fact p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 0.35rem 0.75rem;
  background: var(--paper);
  border-radius: var(--r-sm);
  box-shadow: var(--ring);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--eggplant);
}

/* ---------- Contact band ---------- */

.contact-band {
  padding: var(--section) 0;
}

.contact-band-inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 1rem;
  background: var(--eggplant);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1.75rem 1.4rem;
}

.band-canopy {
  right: -5rem;
  bottom: -5rem;
  width: 20rem;
  opacity: 0.14;
}

.contact-band h2,
.contact-band p,
.phone-large,
.email-line {
  color: #fff;
}

.contact-band h2 {
  margin-bottom: 0.75rem;
}

.contact-band p {
  margin: 0.3rem 0 0;
  color: var(--on-plum-muted);
}

.contact-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 1rem;
}

.phone-large {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* The second line is a backup, so it steps down a size */
.phone-large + .phone-large {
  font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.email-line {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.contact-band .button {
  margin-top: 0.9rem;
  background: #fff;
  color: var(--eggplant);
}

/* ---------- Photos ---------- */

/* Frames hold their proportions with or without a photo, so adding one never shifts the page */
.photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  border-radius: var(--r-lg);
  background: var(--lavender-wash);
  box-shadow: var(--ring);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo.is-empty {
  background:
    radial-gradient(90% 80% at 100% 100%, var(--sage-wash) 0%, transparent 70%),
    linear-gradient(155deg, #f1ebf4 0%, var(--lavender-wash) 100%);
}

.photo-canopy {
  right: -4%;
  bottom: -14%;
  width: min(62%, 30rem);
  opacity: 0.6;
}

.photo-note {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem 0.75rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-1);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}

.photo-note strong {
  margin-right: 0.2rem;
  color: var(--eggplant);
}

.photo-note a {
  color: var(--purple-ink);
  font-weight: 600;
}

.home-photo {
  padding-top: var(--section);
}

.photo-wide {
  aspect-ratio: 3 / 2;
}

.prose .photo-wide {
  margin: 1.5rem 0 0.5rem;
}

.photo-aside,
.photo-inline {
  aspect-ratio: 4 / 3;
  margin-top: 1.5rem;
  border-radius: var(--r-card);
}

.photo-inline {
  aspect-ratio: 3 / 2;
}

/* About: one tall photo of the visit beside two smaller ones */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
  margin: 0.75rem 0 1.5rem;
}

.photo-tile {
  aspect-ratio: 1;
  border-radius: var(--r-card);
}

.photo-tile:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

.photo-tile .photo-canopy {
  width: 75%;
}

/* ---------- Inner pages ---------- */

.page-main {
  padding: 0;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.75rem, 1.6rem + 4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--eggplant);
}

.prose {
  padding: 1.25rem 0 3rem;
}

.prose > p {
  max-width: 40rem;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin: 0 0 0.4rem;
  color: var(--eggplant);
}

.prose .is-lead {
  max-width: 40rem;
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.prose .is-lead + p {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

.prose a.button {
  color: #fff;
  text-decoration: none;
  margin: 0.4rem 0.5rem 0.4rem 0;
}

.prose a.button-secondary {
  color: var(--eggplant);
}

.prose .wp-block-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  margin: 1rem 0 0.4rem;
}

.prose .wp-block-column {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  box-shadow: var(--shadow-1);
}

.prose .wp-block-column h3 {
  margin-top: 0;
}

.prose .wp-block-column p:last-child {
  margin-bottom: 0;
}

.prose .wp-block-column a {
  font-weight: 700;
  text-decoration: none;
}

.prose .wp-block-column a[href^="http"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.3em;
  color: var(--purple-ink);
  transition: transform var(--dur) var(--ease-out);
}

.prose .program-band {
  margin: 1rem 0 0;
  padding: 1.5rem 1.4rem 1.25rem;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}

.prose .program-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
}

.prose .program-band p {
  max-width: 44rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.prose .program-band p:first-of-type {
  font-weight: 600;
  color: var(--eggplant);
}

.prose .program-band p:last-child {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair);
  font-weight: 600;
  color: var(--ok);
}

.prose .program-band a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.prose .wp-block-quote {
  margin: 1.2rem 0;
  padding: 1.25rem 1.3rem;
  background: var(--eggplant);
  border: 0;
  border-radius: var(--r-lg);
}

.prose .wp-block-quote p {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
}

.prose .wp-block-image {
  margin: 1.2rem 0 1.4rem;
}

.prose .wp-block-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.prose ol.wp-block-list,
.prose ul.wp-block-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.prose ol.wp-block-list {
  counter-reset: cz-step;
}

.prose ol.wp-block-list li {
  margin: 0;
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.prose ol.wp-block-list li::before {
  counter-increment: cz-step;
  content: counter(cz-step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--royal);
}

/* Bulleted lists match the checklist on the home page */
.prose ul.wp-block-list {
  gap: 0 2rem;
  max-width: 44rem;
  border-bottom: 1px solid var(--line);
}

.prose ul.wp-block-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

/* FAQ: consecutive questions read as one grouped list */
.prose details {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: var(--ring);
}

.prose details:first-child,
.prose :not(details) + details {
  margin-top: 1rem;
  border-top-left-radius: var(--r-card);
  border-top-right-radius: var(--r-card);
}

.prose details:not(:has(+ details)) {
  margin-bottom: 0.4rem;
  border-bottom-left-radius: var(--r-card);
  border-bottom-right-radius: var(--r-card);
}

.prose details > :last-child {
  margin-bottom: 1.1rem;
}

.prose details > p:first-of-type {
  margin-top: 0;
}

.prose details p {
  max-width: 44rem;
  color: var(--muted);
}

.prose summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--eggplant);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  transition: color var(--dur) var(--ease-out);
}

.prose summary::-webkit-details-marker {
  display: none;
}

.prose summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2.5px solid var(--deep);
  border-bottom: 2.5px solid var(--deep);
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform var(--dur-slow) var(--ease-out);
}

.prose details[open] summary::after {
  transform: translateY(0.15rem) rotate(225deg);
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .prose details::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      block-size var(--dur-slow) var(--ease-out),
      opacity var(--dur) var(--ease-out),
      content-visibility var(--dur-slow) allow-discrete;
  }

  .prose details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

/* ---------- Careers (kept for when openings return) ---------- */

.job-list {
  display: grid;
  gap: var(--gap-grid);
  margin-top: 1rem;
}

.job {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  margin: 0;
  box-shadow: var(--shadow-1);
}

.prose .job h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.job-meta {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
}

.prose .job ul {
  margin-top: 0.7rem;
}

.prose .job h2 a {
  color: var(--eggplant);
  text-decoration: none;
}

.page-hero .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.front-blocks {
  padding: 2.2rem 0 0.2rem;
}

.front-blocks h2,
.front-blocks h3 {
  color: var(--eggplant);
}

.front-blocks h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.85rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.front-blocks .wp-block-columns {
  display: grid;
  gap: var(--gap-grid);
  margin: 0 0 1.8rem;
}

.front-blocks .wp-block-column {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  box-shadow: var(--shadow-1);
}

.front-blocks .wp-block-column h3 {
  margin: 0 0 0.4rem;
}

.front-blocks .wp-block-column p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem 0 3rem;
}

.contact-layout > .prose {
  padding: 0;
}

.contact-layout > .prose > p:first-child {
  font-size: 1.2rem;
  line-height: 1.5;
}

.contact-layout > .prose > p:not(:first-child) {
  color: var(--muted);
}

/* Contact details as one grouped list rather than seven separate cards */
.prose .direct-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.prose .direct-list li {
  margin: 0;
  padding: 0.85rem 1.25rem;
  color: var(--muted);
}

.prose .direct-list li + li {
  border-top: 1px solid var(--hair);
}

.direct-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--eggplant);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.direct-list a[href^="mailto:"] {
  font-size: 1.05rem;
}

.form-card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-2);
}

.form-card h2 {
  margin: 0;
  color: var(--eggplant);
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.6rem;
}

.apply-role {
  margin: 0.8rem 0 0;
  font-weight: 700;
  color: var(--eggplant);
}

.form-card label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--eggplant);
}

.form-card form > label:first-of-type {
  margin-top: 0;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.form-card textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-card select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c1127' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.9rem center / 1rem no-repeat;
  cursor: pointer;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #8a8190;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.phone-field:focus-within {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(148, 122, 168, 0.35);
}

.phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.phone-prefix {
  padding-left: 0.9rem;
  color: var(--eggplant);
  font-weight: 600;
}

.form-card .phone-field input {
  width: auto;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.form-card .button {
  margin-top: 1.5rem;
  width: 100%;
}

.form-quiet {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-sm);
}

.form-note-ok {
  background: #e5f6ec;
  color: var(--ok);
}

.form-note-bad {
  background: #fde8ee;
  color: var(--bad);
}

.hp {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deep);
  color: #f6f4f2;
  padding: 2.75rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-mark {
  margin: 0;
  max-width: 14em;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.footer-tag {
  margin: 0.6rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
}

.footer-label {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
}

.footer-list {
  padding: 0;
}

.footer-list a {
  min-height: 40px;
}

.footer-list a,
.footer-contact a,
.footer-contact p,
.footer-base p {
  color: #f6f4f2;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-contact p {
  margin: 0;
  color: rgba(246, 244, 242, 0.78);
}

.footer-contact p.footer-label {
  margin-bottom: 0.15rem;
  color: var(--lavender);
}

.footer-contact a {
  font-weight: 600;
  text-decoration: none;
}

.footer-base {
  margin-top: 2.25rem;
  border-top: 1px solid var(--on-plum-line);
  padding-top: 1rem;
}

.footer-base p {
  margin: 0;
  color: var(--lavender);
  font-size: 0.9rem;
}

.mobile-call {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.6rem + env(safe-area-inset-bottom));
  z-index: 30;
  box-shadow: 0 10px 24px rgba(44, 17, 39, 0.28);
  transition:
    background-color var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

/* Step aside while someone is typing in a form, so it never covers a field */
body:has(.form-card :focus) .mobile-call {
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
}

/* ---------- Hover (real pointers only; touch gets pressed states) ---------- */

@media (hover: hover) {
  a:hover {
    color: var(--eggplant);
    text-decoration-color: var(--purple);
  }

  .header-call:hover,
  .button:hover,
  .mobile-call:hover {
    background: var(--plum-hover);
    color: #fff;
  }

  .button-secondary:hover {
    background: var(--lavender-wash);
    color: var(--eggplant);
  }

  .prose a.button-secondary:hover {
    color: var(--eggplant);
  }

  .contact-band .button:hover {
    background: var(--lavender);
    color: var(--eggplant);
  }

  .nav-toggle:hover {
    background: var(--lavender-wash);
  }

  .nav-list a:hover::after,
  .footer-list a:hover::after {
    transform: none;
  }

  .footer-list a:hover,
  .footer-contact a:hover {
    color: #fff;
  }

  .footer-contact a {
    transition: color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  }

  .footer-contact a:hover {
    opacity: 0.85;
  }

  .program-card:hover {
    color: inherit;
    box-shadow: var(--shadow-2);
    transform: translateY(-3px);
  }

  .program-card:hover .program-more::after,
  .prose .wp-block-column a[href^="http"]:hover::after {
    transform: translateX(3px);
  }

  .start-card:hover {
    color: inherit;
  }

  .start-card:hover::before {
    background: var(--deep);
    color: #fff;
  }

  .start-card:hover strong {
    text-decoration-color: var(--purple);
  }

  .prose summary:hover {
    color: var(--purple-ink);
  }

  .form-card input:hover,
  .form-card select:hover,
  .form-card textarea:hover,
  .phone-field:hover {
    border-color: #cfc4d6;
  }

  .email-line:hover {
    color: #fff;
    text-decoration-color: #fff;
  }
}

/* ---------- Tablet and up ---------- */

@media (min-width: 800px) {
  :root {
    --gutter: 2rem;
    --section: 4.5rem;
    --gap-grid: 1.25rem;
  }

  body {
    font-size: 1.125rem;
  }

  .photo-wide {
    aspect-ratio: 16 / 7;
  }

  .photo-gallery {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .photo-tile {
    aspect-ratio: 4 / 3;
  }

  .photo-tile:first-child {
    grid-column: auto;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .section-head h2 {
    margin: 0;
  }

  .section-head p {
    max-width: 30rem;
    text-align: right;
  }

  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-card {
    padding: 1.75rem 1.6rem 1.4rem;
  }

  /* Horizontal timeline */
  .start-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .start-grid > li {
    padding-bottom: 0;
  }

  .start-grid > li:not(:last-child)::after {
    left: 4rem;
    right: -2rem;
    top: 1.5rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .start-card {
    grid-template-columns: 1fr;
  }

  .start-card::before {
    grid-row: auto;
    margin-bottom: 1.25rem;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .contact-band-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 3rem;
  }

  .contact-band-actions {
    align-items: flex-end;
    margin-top: 0;
    text-align: right;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 3rem;
  }

  .form-card {
    padding: 2rem;
  }

  .form-card .button {
    width: auto;
  }

  .prose ul.wp-block-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose ol.wp-block-list {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--gap-grid);
  }

  .prose .wp-block-columns:has(> .wp-block-column:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose .wp-block-columns:has(> .wp-block-column:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .front-blocks .wp-block-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .nav-toggle,
  .js .nav-toggle,
  .mobile-call {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    flex-basis: auto;
    visibility: visible;
    transition: none;
  }

  .js .site-nav > .nav-list {
    overflow: visible;
    opacity: 1;
    transition: none;
  }

  .js .site-nav .nav-list li {
    border-top: 0;
  }

  .js .site-nav .nav-list li:first-child {
    margin-top: 0;
  }

  .js .site-nav .nav-list a {
    display: inline-flex;
    min-height: 44px;
  }

  .header-inner {
    flex-wrap: nowrap;
    min-height: 5rem;
  }

  .brand-logo {
    height: 62px;
  }

  .nav-list {
    display: flex;
    gap: 0.4rem;
    padding: 0;
  }

  .nav-list a {
    padding: 0 0.7rem;
  }

  .nav-list a::after {
    left: 0.7rem;
    right: 0.7rem;
  }

  .header-call {
    display: inline-flex;
    margin-left: 0.6rem;
  }

  .program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr;
  }

  /* Hero: the promise on the left, the reassurance on the right */
  .home-hero {
    padding-top: 4.5rem;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 5vw, 5.5rem);
    align-items: center;
  }

  .lead {
    font-size: 1.25rem;
  }

  .hero-panel {
    padding: 2.25rem 2.25rem 1.5rem;
  }

  .hero-panel-title {
    font-size: 1.85rem;
  }

  .hero-canopy {
    width: 14rem;
  }

  /* Split sections: heading column on the left stays in view */
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .split-aside {
    position: sticky;
    top: 7rem;
    margin-bottom: 0;
  }

  .page-hero {
    padding: 4rem 0 0.5rem;
  }

  .prose {
    padding-top: 2rem;
  }

  /* Editorial grid for content pages: headings left, reading column right */
  .prose-editorial {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
    padding-bottom: 4.5rem;
  }

  .prose-editorial > * {
    grid-column: 5 / -1;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .prose-editorial > p {
    max-width: 42rem;
  }

  .prose-editorial > ul.wp-block-list,
  .prose-editorial > ol.wp-block-list {
    margin: 0.5rem 0 1.5rem;
  }

  /* The heading spans its section's rows, so a two-line heading never stretches the first row */
  .prose-editorial > h2 {
    grid-column: 1 / 5;
    grid-row: span 30;
    margin: 3.5rem 0 0;
    padding-right: 1rem;
  }

  .prose.prose-editorial > h2 + * {
    margin-top: 3.5rem;
  }

  .prose-editorial > .is-lead,
  .prose-editorial > .is-lead + p {
    grid-column: 1 / 10;
    max-width: 46rem;
  }

  .prose-editorial > .is-lead {
    font-size: 1.4rem;
    line-height: 1.45;
  }

  .prose-editorial > .program-band {
    grid-column: span 4;
    align-self: stretch;
    margin: 1.5rem 0 0;
    padding: 1.75rem 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
  }

  .prose-editorial > .program-band p:last-child {
    margin-top: auto;
  }

  .prose-editorial > .program-band p:nth-last-child(2) {
    margin-bottom: 1.25rem;
  }

  .prose-editorial ol.wp-block-list {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .prose-editorial ol.wp-block-list li {
    grid-template-columns: 3.5rem 1fr;
    padding: 1.15rem 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .prose-editorial ol.wp-block-list li::before {
    font-size: 1.85rem;
  }

  .prose-editorial details p {
    max-width: none;
  }

  .prose-editorial > .photo-wide {
    grid-column: 1 / -1;
    margin: 2rem 0 0.5rem;
  }

  /* With a photo the heading column is too tall to stay pinned */
  .split-aside:has(.photo) {
    position: static;
  }
}

/* ---------- Wide screens ---------- */

@media (min-width: 1280px) {
  .home-hero {
    padding-top: 5.5rem;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Hero settles in once on load */
  .home-hero-copy > *,
  .hero-panel,
  .page-hero .shell > * {
    animation: rise 640ms var(--ease-out) both;
  }

  .home-hero-copy > :nth-child(2),
  .page-hero .shell > :nth-child(2) {
    animation-delay: 60ms;
  }

  .home-hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }

  .home-hero-copy > :nth-child(4) {
    animation-delay: 160ms;
  }

  .home-hero-copy > :nth-child(n + 5) {
    animation-delay: 200ms;
  }

  .hero-panel {
    animation-delay: 180ms;
  }

  /* Inside the panel, the promises arrive one after another */
  .hero-facts li {
    animation: rise 560ms var(--ease-out) both;
  }

  .hero-facts li:nth-child(1) { animation-delay: 300ms; }
  .hero-facts li:nth-child(2) { animation-delay: 370ms; }
  .hero-facts li:nth-child(3) { animation-delay: 440ms; }
  .hero-facts li:nth-child(4) { animation-delay: 510ms; }

  /* The lead paragraph on content pages follows the page title */
  .prose-editorial > .is-lead,
  .contact-layout > .prose > p:first-child {
    animation: rise 640ms var(--ease-out) 120ms both;
  }

  /* Scroll reveal: main.js tags grouped items with .reveal-on and adds .is-in once they enter */
  .reveal-on {
    transition:
      opacity 560ms var(--ease-out) var(--reveal-delay, 0ms),
      transform 640ms var(--ease-out) var(--reveal-delay, 0ms);
  }

  .reveal-on:not(.is-in) {
    opacity: 0;
    transform: translateY(12px);
  }

  /* Section marks draw in from the left just after their heading appears */
  h2.reveal-on::before {
    transform-origin: left center;
    transition: transform 520ms var(--ease-out) calc(var(--reveal-delay, 0ms) + 160ms);
  }

  h2.reveal-on:not(.is-in)::before {
    transform: scaleX(0);
  }

  /* Once revealed, cards hand transform back to their own hover and press states */
  .program-card.reveal-on.is-in {
    transition:
      opacity 560ms var(--ease-out) var(--reveal-delay, 0ms),
      transform var(--dur) var(--ease-out),
      box-shadow var(--dur) var(--ease-out);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Keep color and opacity feedback; drop movement */
  .js .site-nav,
  .js .site-nav.is-open {
    transition: visibility 0s;
  }

  .prose summary::after,
  .program-more::after,
  .prose .wp-block-column a[href^="http"]::after,
  .prose details::details-content {
    transition: none;
  }

  .header-call:active,
  .button:active,
  .mobile-call:active,
  .nav-toggle:active,
  .program-card:active,
  .program-card:hover,
  .start-card:active::before,
  body:has(.form-card :focus) .mobile-call {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --hair: rgba(44, 17, 39, 0.4);
    --line: #8f8296;
    --muted: var(--ink);
    --on-plum-muted: #fff;
  }

  .site-header {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--ink);
  }

  .canopy {
    display: none;
  }
}

@media print {
  .site-header,
  .mobile-call,
  .hero-actions,
  .nav-toggle,
  .canopy {
    display: none !important;
  }

  body {
    background: #fff;
    padding: 0;
  }

  .reveal-on {
    opacity: 1 !important;
    transform: none !important;
  }
}
