/* Caspian Canine site styles (2026 refresh). Brand colors unchanged. */

:root {
  color-scheme: light;
  --forest: #495749;
  --forest-deep: #334034;
  --forest-ink: #233025;
  --sage: #679267;
  --sage-deep: #4d724e;
  --sage-soft: #e6ede1;
  --cream: #f4f0e7;
  --paper: #fbf9f4;
  --tan: #d6c3a5;
  --tan-soft: #ede3d2;
  --brown: #6b5844;
  --ink: #243026;
  --muted: #5b6558;
  --line: #e4ddcf;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r-xl: clamp(22px, 2.6vw, 36px);
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 2px 10px -4px rgb(36 48 38 / 14%);
  --shadow-md: 0 22px 44px -22px rgb(36 48 38 / 34%);
  --shadow-lg: 0 44px 90px -36px rgb(36 48 38 / 45%);
  --gutter: clamp(20px, 4.5vw, 48px);
  --inset: clamp(8px, 1.1vw, 14px);
  --bar-r: 35px; /* the top bar is 70px tall, so its ends are 35px round; the homepage photo matches */
  --section: clamp(76px, 10vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.7 var(--sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, summary, label, [role="button"] { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.7; }
figure { margin: 0; }
::selection { background: var(--tan); color: var(--forest-ink); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-wrap: balance;
  color: var(--forest-ink);
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 350; }
h2 { font-size: clamp(2.15rem, 4.6vw, 3.7rem); font-weight: 350; }
h3 { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.01em; color: var(--forest-ink); }
:is(h1, h2) em { font-style: italic; font-weight: 300; color: var(--sage-deep); padding-right: .04em; }
p { margin: 18px 0 0; color: var(--muted); text-wrap: pretty; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: var(--section); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--sage-deep);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Links & buttons ---------- */
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
}
.text-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 30px;
  bottom: 8px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(.25);
  transform-origin: left;
  opacity: .5;
  transition: transform .6s var(--ease), opacity .3s;
}
.text-link:hover::after { transform: scaleX(1); opacity: 1; }
.text-link svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.text-link:hover svg { transform: translateX(5px); }

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 10px 8px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .4s var(--ease);
}
.button svg {
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 50%;
  stroke-width: 2;
  transition: transform .6s var(--ease), background-color .3s, color .3s;
}
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.button:hover::before { transform: translateX(120%); }
.button:hover svg { transform: rotate(45deg); }
.button:hover { box-shadow: var(--shadow-md); }
.button:active { transform: translate(var(--mx, 0), var(--my, 0)) scale(.97); }
.button-dark { background: var(--forest); color: #fff; }
.button-dark svg { background: rgb(255 255 255 / 14%); }
.button-dark:hover { background: var(--forest-deep); }
.button-honey { background: var(--tan); color: var(--forest-ink); }
.button-honey svg { background: var(--forest); color: #fff; }
.button-honey:hover { background: #e2d2b7; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--tan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: calc(var(--inset) + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: transform .6s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 60px)); }
.header-inner {
  pointer-events: auto;
  position: relative;
  width: min(100% - 2 * var(--inset) - 12px, 1240px);
  height: 70px;
  margin-inline: auto;
  padding: 0 12px; /* same breathing room on both ends of the bar */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(251 249 244 / 82%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--bar-r);
  box-shadow: 0 12px 34px -16px rgb(36 48 38 / 35%);
  transition: background-color .4s;
}
.site-header.is-scrolled .header-inner { background: rgb(251 249 244 / 94%); }
.brand { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; }
.brand img { width: 76px; flex: none; height: auto; mix-blend-mode: multiply; }
/* The business name beside the dogs, set like the logo's own lettering. */
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  text-indent: -.05em; /* the round "C" sits a hair left so it lines up by eye with the straight "P" below */
  font: 400 1.3rem/1 var(--serif);
  letter-spacing: -.015em;
  color: var(--forest-ink);
  white-space: nowrap;
}
.brand-name small {
  text-indent: 0;
  font: 700 9.5px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
@media (max-width: 599px) {
  .brand { gap: 5px; }
  .brand img { width: 64px; }
  .brand-name { font-size: 1.15rem; }
  .brand-name small { font-size: 8.5px; letter-spacing: .1em; }
}
@media (max-width: 359px) {
  .brand img { width: 56px; }
  .brand-name small { display: none; }
  .brand-name { font-size: 1.05rem; }
}

.main-navigation > a:not(.button) {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--forest-ink);
}
.menu-contact-row { display: contents; }
.menu-contact-row .menu-phone { display: none; }
.main-navigation .button { min-height: 48px; font-size: 14px; padding-left: 20px; }
.main-navigation .button svg { width: 32px; height: 32px; padding: 8px; }

.menu-toggle { border: 0; background: var(--forest); color: #fff; }
.menu-toggle .menu-lines { position: relative; display: block; width: 22px; height: 22px; }
.menu-toggle .menu-lines > span {
  position: absolute;
  top: 10px;
  left: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease), opacity .2s;
}
.menu-lines > span:first-child { transform: translateY(-5px); }
.menu-lines > span:last-child { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-lines > span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines > span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-lines > span:last-child { transform: rotate(-45deg); }

@media (max-width: 919px) {
  .main-navigation {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    padding: 14px 20px 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px) scale(.97);
    transform-origin: 50% 0;
    pointer-events: none;
    transition: opacity .3s, transform .55s var(--ease), visibility 0s .55s;
  }
  .main-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .main-navigation > a:not(.button) {
    display: flex;
    align-items: center;
    min-height: 62px;
    border-bottom: 1px solid var(--line);
    font: 350 30px/1.1 var(--serif);
    letter-spacing: -.02em;
  }
  .main-navigation > a[aria-current] { font-style: italic; color: var(--sage-deep); }
  .main-navigation > a[aria-current]::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--sage);
  }
  .main-navigation > a,
  .main-navigation .menu-contact-row {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s, transform .6s var(--ease);
  }
  .main-navigation.is-open > a,
  .main-navigation.is-open .menu-contact-row { opacity: 1; transform: none; }
  .main-navigation.is-open > a:nth-child(1) { transition-delay: .06s; }
  .main-navigation.is-open > a:nth-child(2) { transition-delay: .11s; }
  .main-navigation.is-open > a:nth-child(3) { transition-delay: .16s; }
  .main-navigation.is-open .menu-contact-row { transition-delay: .22s; }
  .main-navigation .menu-contact-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
  }
  .main-navigation .menu-phone { display: inline-flex; width: 54px; height: 54px; background: var(--sage-soft); border: 0; color: var(--forest); }
  .main-navigation .menu-contact-row .button { min-height: 54px; justify-content: space-between; }
  html:not(.js) .main-navigation { position: static; visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  html:not(.js) .main-navigation > a, html:not(.js) .main-navigation .menu-contact-row { opacity: 1; transform: none; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; border-radius: var(--r-lg); padding: 12px 20px; }
}

@media (min-width: 920px) {
  .menu-toggle { display: none; }
  .main-navigation { display: flex; align-items: center; gap: 4px; }
  .main-navigation > a:not(.button) {
    padding: 10px 18px;
    border-radius: 999px;
    transition: background-color .3s, color .3s;
  }
  .main-navigation > a:not(.button):hover { background: var(--sage-soft); }
  .main-navigation > a[aria-current]::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--sage);
  }
  .main-navigation .button { margin-left: 12px; }
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: calc(100svh - 2 * var(--inset));
  margin: var(--inset);
  border-radius: var(--bar-r);
  overflow: hidden;
  color: #fff;
  background: var(--forest-ink);
}
.home-hero picture { position: absolute; inset: 0; z-index: -3; will-change: transform; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Phones and upright tablets: the name sits above the dog's head, the rest below its chin. */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(20 32 24 / 62%) 0%, rgb(20 32 24 / 22%) 17%, rgb(20 32 24 / 0%) 28%, rgb(20 32 24 / 0%) 52%, rgb(20 32 24 / 72%) 68%, rgb(20 32 24 / 94%) 100%);
}
.hero-inner { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; display: flex; padding-block: 98px 36px; }
.hero-copy { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: rgb(20 32 24 / 45%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-eyebrow::before { display: none; }
.tiny-line {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tan);
}
.tiny-line::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--tan);
  opacity: 0;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 11.5vw, 5rem);
  font-weight: 330;
  line-height: .95;
  letter-spacing: -.04em;
  text-align: center;
  text-shadow: 0 2px 24px rgb(20 32 24 / 35%);
}
.home-hero h1 .line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.home-hero h1 .line > span { display: block; }
.home-hero h1 .line:last-child > span { font-style: italic; font-weight: 300; color: var(--tan-soft); padding-right: .04em; }
.home-hero h1[tabindex="-1"]:focus { outline: none; }
.hero-bottom { display: flex; flex-direction: column; gap: 22px; }
.hero-lead { margin: 0; font: 350 clamp(1.45rem, 2.4vw, 2rem)/1.2 var(--serif); letter-spacing: -.015em; color: #fff; }
.hero-lead em { font-style: italic; color: var(--tan); }
.hero-description { max-width: 40ch; margin: 10px 0 0; color: rgb(255 255 255 / 88%); font-size: 16px; }
.hero-small { margin: 12px 0 0; font-size: 13px; color: rgb(255 255 255 / 80%); }

@media (min-width: 600px) {
  .hero-inner { padding-block: 112px 56px; }
  .hero-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .hero-left { max-width: 440px; }
  .hero-right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
}
/* Wide screens: the words wrap around the dog, the name on either side of its head. */
@media (min-width: 900px) and (orientation: landscape) {
  .home-hero picture { inset: -8% 0 0; }
  .hero-image { object-position: 50% 38%; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(20 32 24 / 80%) 0%, rgb(20 32 24 / 42%) 25%, rgb(20 32 24 / 0%) 38%, rgb(20 32 24 / 0%) 62%, rgb(20 32 24 / 42%) 75%, rgb(20 32 24 / 80%) 100%),
      linear-gradient(0deg, rgb(20 32 24 / 45%) 0%, transparent 35%);
  }
  .hero-inner { width: min(100% - 2 * var(--gutter), 1560px); padding-block: 128px 56px; }
  .home-hero h1 { display: flex; justify-content: space-between; text-align: left; font-size: clamp(3.4rem, 7vw, 7.6rem); }
  .hero-left { max-width: min(380px, 31vw); }
  .hero-right { max-width: min(300px, 27vw); }
}

/* ---------- Marquee ribbon ---------- */
.intro-ribbon { padding-block: clamp(26px, 4vw, 44px); overflow: hidden; border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  padding-right: clamp(22px, 3vw, 44px);
  white-space: nowrap;
  font: 330 clamp(1.7rem, 3.6vw, 3rem)/1.2 var(--serif);
  letter-spacing: -.02em;
  color: var(--forest-ink);
}
.marquee-group > span:nth-child(4n+1) { font-style: italic; color: var(--sage-deep); }
.marquee-group .sep {
  width: .5em;
  height: .5em;
  flex: none;
  background: var(--tan);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
html:not(.js) .marquee-group { flex-wrap: wrap; white-space: normal; justify-content: center; }

/* ---------- Approach ---------- */
.approach-grid { display: grid; gap: 56px; align-items: center; }
.approach-copy p:not(.eyebrow) { font-size: 17px; max-width: 52ch; }
.approach-copy .text-link { margin-top: 22px; }
.approach-photo { position: relative; width: min(100%, 440px); margin-inline: auto; }
.approach-photo::before {
  content: '';
  position: absolute;
  inset: 8% -9% -6% 12%;
  z-index: -1;
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: var(--sage-soft);
  rotate: -4deg;
}
.approach-photo .photo-button { border-radius: 220px 220px var(--r-lg) var(--r-lg); }
.approach-photo img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }
figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font: italic 350 17px/1.4 var(--serif);
  color: var(--brown);
}
figcaption::before { content: ''; width: 28px; height: 1px; background: var(--tan); }
.approach-photo figcaption, .owner-photo figcaption { justify-content: center; }

/* Photo frames shared by every page. */
.photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--tan-soft);
  border-radius: var(--r-lg);
  cursor: zoom-in;
  box-shadow: var(--shadow-md);
}
.photo-button img, .program-image img { transition: transform 1.2s var(--ease), scale 1.6s var(--ease); }
.photo-button:hover img { transform: scale(1.05); }
.photo-button::after {
  content: '';
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(251 249 244 / 90%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495749' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .5s var(--ease);
}
.photo-button:hover::after, .photo-button:focus-visible::after { opacity: 1; transform: scale(1); }

/* ---------- Inset panels ---------- */
.training-section,
.reviews-section,
.soft-section,
.faq-section,
.values-band,
.consultation-section {
  margin-inline: var(--inset);
  border-radius: var(--r-xl);
}
.training-section { background: var(--cream); }

.section-top { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-top .text-link { align-self: flex-start; }

/* ---------- Program cards ---------- */
.program-grid { display: grid; gap: 22px; }
.program-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 18px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .6s var(--ease), opacity 1s var(--ease), translate 1.1s var(--ease);
}
.program-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgb(214 195 165 / 22%), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
/* Hover shadow fades in on its own layer so the page never repaints a big blur. */
.program-preview::before,
.values-grid > div::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.program-preview:hover::before, .values-grid > div:hover::before { opacity: 1; }
.program-preview:hover { --lift: -10px; }
.program-preview:hover::after { opacity: 1; }
.program-image { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: 16px; background: var(--tan-soft); }
.program-image img { width: 100%; height: 100%; object-fit: cover; }
.program-preview:nth-child(2) .program-image img { object-position: center 25%; }
.program-preview:nth-child(3) .program-image img { object-position: 47% 45%; }
.program-preview:hover .program-image img { transform: scale(1.07); }
.program-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 8px 0; }
.program-heading h3 { font: 400 clamp(1.3rem, 2.3vw, 1.75rem)/1.1 var(--serif); letter-spacing: -.02em; }
@media (min-width: 600px) and (max-width: 919px) {
  .program-number { width: 34px; height: 34px; font-size: 12px; }
  .program-heading { margin-inline: 4px; }
}
.program-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
  transition: background-color .4s, color .4s, transform .7s var(--ease), border-color .4s;
}
.program-preview:hover .program-number { background: var(--forest); border-color: var(--forest); color: #fff; transform: rotate(360deg); }
.program-preview p { margin: 10px 8px 14px; font-size: 15px; }
.program-preview .text-link { margin: auto 8px 0; align-self: flex-start; }

/* ---------- Reviews ---------- */
.reviews-section {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: #fff;
}
.reviews-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(103 146 103 / 45%), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.reviews-section > * { position: relative; }
.reviews-section h2 { color: #fff; }
.reviews-section h2 em { color: var(--tan); }
.reviews-section .eyebrow { color: var(--tan); }
.reviews-section .text-link { color: #fff; }
.review-window { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.review-group { display: grid; gap: 18px; }
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%));
  transition: border-color .4s, background-color .4s, transform .7s var(--ease), opacity 1s var(--ease), translate 1.1s var(--ease);
}
.review-card::before {
  content: '\201C';
  position: absolute;
  bottom: -42px;
  right: 18px;
  font: italic 300 140px/1 var(--serif);
  color: rgb(214 195 165 / 22%);
  pointer-events: none;
}
.review-card:hover { border-color: rgb(214 195 165 / 45%); transform: translateY(-8px); }
.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-stars { display: flex; gap: 4px; color: var(--tan); }
.review-stars svg { width: 18px; height: 18px; fill: currentColor; }
.review-source { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / 62%); }
.review-card blockquote { margin: 22px 0 26px; }
.review-card blockquote p { margin: 0; font: 350 1.3rem/1.45 var(--serif); letter-spacing: -.01em; color: #fff; }
.review-person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 12%); }
.review-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tan); color: var(--forest-ink); font-size: 13px; font-weight: 800; }
.review-person cite { display: block; font-style: normal; font-weight: 700; color: #fff; }
.review-person a { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: 13px; color: rgb(255 255 255 / 70%); transition: color .3s; }
.review-person a:hover { color: var(--tan); }
.review-person a svg { width: 14px; height: 14px; }

/* ---------- First step ---------- */
.first-step { display: grid; gap: 56px; align-items: center; }
.first-step > div > p { font-size: 17px; max-width: 48ch; }
.first-step .button { margin-top: 30px; }
.steps {
  --progress: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.steps::after { background: var(--sage); transform: scaleY(var(--progress)); transform-origin: top; }
.steps li { position: relative; z-index: 1; display: flex; gap: 24px; padding: 0 0 38px; }
.steps li:last-child { padding-bottom: 0; }
.steps > li > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  color: var(--forest);
  transition: background-color .5s, border-color .5s, color .5s, transform .6s var(--ease);
}
.steps li.is-active > span { background: var(--forest); border-color: var(--forest); color: #fff; transform: scale(1.06); }
.steps li > div { padding-top: 12px; }
.steps h3 { font: 400 1.55rem/1.2 var(--serif); letter-spacing: -.015em; }
.steps p { margin-top: 6px; font-size: 15px; }

/* ---------- Closing band ---------- */
.closing-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 var(--inset) var(--inset);
  padding-block: clamp(70px, 9vw, 130px);
  border-radius: var(--r-xl);
  background: var(--forest);
  color: #fff;
}
.closing-band::before,
.closing-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.closing-band::before {
  width: 520px;
  height: 520px;
  left: -140px;
  bottom: -260px;
  background: radial-gradient(circle, rgb(103 146 103 / 80%), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.closing-band::after {
  width: 460px;
  height: 460px;
  right: -120px;
  top: -220px;
  background: radial-gradient(circle, rgb(214 195 165 / 40%), transparent 65%);
  animation: drift 20s ease-in-out -6s infinite alternate-reverse;
}
.closing-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.closing-band .eyebrow { color: var(--tan); }
.closing-band h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); }
.closing-band h2 em { color: var(--tan); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 90px) 0 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--forest);
  transition: background-color .45s, color .45s, transform .5s var(--ease), border-color .45s;
}
.footer-social a:hover { background: var(--forest); border-color: var(--forest); color: #fff; transform: translateY(-4px) rotate(-6deg); }
.footer-social svg { width: 22px; height: 22px; }
.footer-social svg path[fill="currentColor"] { stroke: currentColor; stroke-width: .5; stroke-linejoin: round; }
.site-footer h2 {
  margin-bottom: 14px;
  font: 700 12px/1.5 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.footer-contact > a, .footer-explore > a {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  font-size: 16px;
  color: var(--forest-ink);
  overflow-wrap: anywhere;
  transition: color .3s, transform .5s var(--ease);
}
/* Slide only with a real mouse: on phones a tap that moves the link can make Safari treat the call as automatic. */
@media (hover: hover) and (pointer: fine) { .footer-contact > a:hover, .footer-explore > a:hover { color: var(--sage-deep); transform: translateX(6px); } }
a[href^="tel:"], a[href^="mailto:"] { touch-action: manipulation; -webkit-touch-callout: default; }
.footer-contact p { margin-top: 8px; font-size: 15px; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: clamp(44px, 6vw, 72px);
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--brown);
}
.footer-bottom > span:last-child { font: italic 350 15px/1.4 var(--serif); }

/* ---------- Inner page intro ---------- */
.page-intro {
  position: relative;
  padding-block: clamp(150px, 18vw, 210px) clamp(48px, 6vw, 80px);
}
.page-intro::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 60px;
  right: -8%;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: radial-gradient(circle at 40% 40%, var(--sage-soft), rgb(214 195 165 / 28%) 70%);
  pointer-events: none;
}
main { position: relative; isolation: isolate; overflow-x: clip; }
.page-intro h1 { max-width: 16ch; font-size: clamp(2.9rem, 7.4vw, 6.2rem); }
.intro-text { max-width: 50ch; margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; }
.page-intro .text-link { margin-top: 22px; }

/* ---------- Training page ---------- */
.program-detail { counter-increment: program; display: grid; gap: 40px; padding-block: clamp(64px, 8vw, 120px); align-items: center; }
.soft-section { background: var(--cream); }
.soft-section .program-detail { padding-inline: 0; }
.detail-copy { position: relative; isolation: isolate; }
.detail-copy::before {
  content: '0' counter(program);
  content: '0' counter(program) / '';
  position: absolute;
  top: -.42em;
  right: 0;
  z-index: -1;
  font: italic 300 clamp(7rem, 16vw, 13rem)/1 var(--serif);
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tan);
  opacity: .7;
  pointer-events: none;
}
.detail-copy h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.detail-lead { margin-top: 14px; font: italic 350 clamp(1.2rem, 2vw, 1.45rem)/1.35 var(--serif); color: var(--sage-deep); }
.detail-copy p:not(.eyebrow):not(.detail-lead) { font-size: 16px; max-width: 58ch; }
.detail-photo .photo-button { aspect-ratio: 4/5; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
#board-train .detail-photo img { object-position: center 25%; }
#private-lessons .detail-photo img { object-position: 50% 36%; }
#design-dog .detail-photo img { object-position: 50% 35%; }
.program-preview:nth-child(1) .program-image img { object-position: 36% 30%; }
.plain-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.plain-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--forest-ink); }
.plain-list svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  stroke-width: 2.4;
}

/* FAQ */
.faq-section { background: var(--sage-soft); }
.faq-grid { display: grid; gap: 36px; }
.faq-grid > div:first-child { align-self: start; }
.faq-list { display: grid; gap: 12px; overflow-anchor: none; }
.faq-list details {
  overflow: hidden;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 75%);
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .5s var(--ease), opacity 1s var(--ease), translate 1.1s var(--ease);
}
.faq-list details:hover { background: #fff; }
.faq-list details[open]:not(.is-closing) { background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 22px 26px;
  cursor: pointer;
  list-style: none;
  font: 400 1.2rem/1.35 var(--serif);
  letter-spacing: -.01em;
  color: var(--forest-ink);
  border-radius: var(--r-md);
  -webkit-user-select: none;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
/* Tapping a question never shows a square box; keyboard users get a rounded ring inside the card. */
.faq-list summary:focus { outline: none; }
.faq-list summary:focus-visible { outline: 3px solid var(--sage); outline-offset: -3px; border-radius: var(--r-md); }
.faq-list summary svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
  stroke-width: 2.2;
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.faq-list details[open]:not(.is-closing) summary svg { transform: rotate(135deg); background: var(--forest); color: #fff; }
.faq-answer { display: flow-root; overflow: hidden; }
.faq-list details p { margin: 0 26px 24px; font-size: 15.5px; max-width: 62ch; }

/* ---------- About page ---------- */
.owner-section { display: grid; gap: 56px; align-items: center; padding-bottom: var(--section); }
.owner-photo { position: relative; width: min(100%, 430px); margin-inline: auto; }
.owner-photo::before {
  content: '';
  position: absolute;
  inset: 22px -22px 58px 22px;
  border: 1.5px solid var(--tan);
  border-radius: var(--r-lg);
  z-index: -1;
}
.owner-photo img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.owner-copy p:not(.eyebrow) { font-size: 16.5px; max-width: 58ch; }
.owner-copy .text-link { margin-top: 20px; }
.values-band { background: var(--cream); padding-block: clamp(56px, 7vw, 96px); }
.values-grid { display: grid; gap: 18px; }
.values-grid > div {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .6s var(--ease), opacity 1s var(--ease), translate 1.1s var(--ease);
}
.values-grid > div:hover { --lift: -8px; }
.values-grid svg {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  padding: 15px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  transition: transform .7s var(--ease), background-color .4s, color .4s;
}
.values-grid > div:hover svg { transform: rotate(-12deg) scale(1.1); background: var(--forest); color: #fff; }
.values-grid h3 { font: 400 1.55rem/1.2 var(--serif); letter-spacing: -.015em; }
.values-grid p { margin-top: 8px; font-size: 15px; }
.consultation-section { margin-block: var(--inset) 0; padding-block: clamp(56px, 7vw, 96px); background: var(--sage-soft); }
.consultation-request p:not(.eyebrow) { max-width: 54ch; font-size: 16.5px; }
.not-found { min-height: 60vh; }

/* ---------- Photo viewer ---------- */
.photo-viewer {
  width: min(1080px, 100% - 24px);
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.photo-viewer[open] { animation: viewer-in .55s var(--ease); }
.photo-viewer::backdrop { background: rgb(23 33 25 / 82%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade-in .4s ease; }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.viewer-top { font-size: 13px; font-weight: 700; color: var(--muted); padding-left: 20px; }
.viewer-top .icon-button { border: 0; background: var(--sage-soft); }
.viewer-photo { width: 100%; height: min(70svh, 720px); object-fit: contain; }
.viewer-caption { flex: 1; margin: 0; text-align: center; font: italic 350 15px/1.4 var(--serif); }

/* ---------- Layout breakpoints ---------- */
@media (min-width: 600px) {
  .section-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .section-top .text-link { align-self: flex-end; flex: none; }
  .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .closing-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .review-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 920px) {
  .program-grid { gap: 26px; }
  .program-preview:nth-child(2) { margin-top: 56px; }
  .program-preview:nth-child(3) { margin-top: 112px; }
  .training-section .program-grid { padding-bottom: 20px; }
  .approach-grid { grid-template-columns: 1.1fr .9fr; gap: 90px; }
  .first-step { grid-template-columns: 1fr 1fr; gap: 100px; }
  .program-detail { grid-template-columns: 1fr 1fr; gap: 96px; }
  .program-detail:is(#private-lessons, #design-dog) > .detail-copy { order: -1; }
  .detail-photo .photo-button { aspect-ratio: auto; height: 560px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 90px; }
  .faq-grid > div:first-child { position: sticky; top: 180px; }
  .owner-section { grid-template-columns: .85fr 1.15fr; gap: 110px; }
}
@media (max-width: 599px) {
  .home-hero { min-height: max(calc(100svh - 2 * var(--inset)), 760px); }
  .closing-inner > .button { align-self: stretch; justify-content: space-between; }
  .first-step .button, .consultation-request .button { width: 100%; justify-content: space-between; }
  .detail-copy .button { width: 100%; justify-content: space-between; }
  .owner-photo::before { inset: 16px -10px 58px 16px; }
}

/* ---------- Keyframes ---------- */
@keyframes blob {
  0% { border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; transform: rotate(8deg) scale(1.04); }
  100% { border-radius: 40% 60% 48% 52% / 60% 44% 56% 40%; transform: rotate(-6deg) scale(.98); }
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 40px) scale(1.15); }
}
@keyframes marquee { to { transform: translateX(calc(-100% / var(--copies, 2))); } }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes hero-parallax { to { transform: translate3d(0, 24vh, 0); } }
@keyframes pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes viewer-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* ---------- Motion (only when the visitor hasn't asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .home-hero h1 .line > span { animation: rise 1.3s var(--ease) both; }
  .home-hero h1 .line:nth-child(1) > span { animation-delay: .25s; }
  .home-hero h1 .line:nth-child(2) > span { animation-delay: .38s; }
  .hero-eyebrow { animation: fade-up 1s var(--ease) .1s both; }
  .hero-lead { animation: fade-up 1.1s var(--ease) .65s both; }
  .hero-description { animation: fade-up 1.1s var(--ease) .75s both; }
  .hero-right > .button { animation: fade-up 1.1s var(--ease) .85s both; }
  .hero-small { animation: fade-up 1.1s var(--ease) .95s both; }
  .tiny-line::after { animation: pulse 2s ease-out infinite; }
  .site-header { animation: header-in 1s var(--ease) .15s both; }
  @keyframes header-in { from { transform: translateY(-140%); } }
  .marquee-track { animation: marquee 40s linear infinite; }
  .intro-ribbon:hover .marquee-track { animation-play-state: paused; }

  /* Scroll reveals, set up by motion.js. */
  /* These lists match motion.js. Hidden from the first paint, so nothing flashes and then jumps. */
  html.motion :is(.approach-copy > :not(h2), .section-top > div > :not(h2), .first-step > div > :not(h2), .page-intro > :not(h1), .detail-copy > :not(h2, .plain-list), .owner-copy > :not(h2), .faq-grid > div:first-child > :not(h2), .closing-inner > div > :not(h2), .consultation-request > div > :not(h2), .footer-grid > div > *, .section-top > .text-link, .section-top > .review-actions, .closing-inner > .button, .consultation-request > .button, .program-grid > *, .review-group > *, .values-grid > *, .faq-list > *, .steps > *, .plain-list > *, figcaption) { opacity: 0; }
  html.motion :is(.approach-copy > :not(h2), .section-top > div > :not(h2), .first-step > div > :not(h2), .page-intro > :not(h1), .detail-copy > :not(h2, .plain-list), .owner-copy > :not(h2), .faq-grid > div:first-child > :not(h2), .closing-inner > div > :not(h2), .consultation-request > div > :not(h2), .footer-grid > div > *, .section-top > .text-link, .section-top > .review-actions, .closing-inner > .button, .consultation-request > .button, .program-grid > *, .review-group > *, .values-grid > *, .faq-list > *, .steps > *, .plain-list > *, figcaption).is-in { animation: reveal-up 1.1s var(--ease) var(--d, 0s) both; }
  @keyframes reveal-up { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
  html.motion :is(.page-intro h1, .section-top h2, .approach-copy h2, .first-step h2, .closing-band h2, .detail-copy h2, .owner-copy h2, .faq-grid h2, .consultation-request h2):not(.split) { opacity: 0; }
  /* Photos: fade in from soft-focus to sharp, staying put (no sliding or zooming). */
  html.motion :is(.approach-photo .photo-button, .owner-photo .photo-button, .detail-photo .photo-button, .program-image) { opacity: 0; }
  html.motion :is(.approach-photo .photo-button, .owner-photo .photo-button, .detail-photo .photo-button, .program-image) img { filter: blur(18px); will-change: filter; }
  html.motion :is(.approach-photo .photo-button, .owner-photo .photo-button, .detail-photo .photo-button, .program-image) img.is-sharp { will-change: auto; }
  html.motion :is(.approach-photo .photo-button, .owner-photo .photo-button, .detail-photo .photo-button, .program-image).is-in { animation: photo-fade .4s ease-out var(--d, 0s) both; }
  html.motion :is(.approach-photo .photo-button, .owner-photo .photo-button, .detail-photo .photo-button, .program-image).is-in img { animation: photo-focus .7s cubic-bezier(.3, .55, .35, 1) var(--d, 0s) both; }
  @keyframes photo-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes photo-focus { from { filter: blur(18px); } to { filter: blur(0); } }
  @supports (animation-timeline: scroll()) {
    .home-hero picture { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
  .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; padding-right: .04em; margin-right: -.04em; }
  .split .w > span { display: inline-block; translate: 0 110%; transition: translate 1.1s var(--ease) var(--d, 0s); }
  .split.is-in .w > span { translate: 0 0; }
  @keyframes star-pop { from { opacity: 0; transform: scale(0) rotate(-40deg); } }
}

/* Hold the homepage intro until the fonts arrive, so nothing jumps mid-animation. */
.fonts-wait .home-hero *, .fonts-wait .site-header { animation-play-state: paused !important; }

/* Looping motion rests while it's off screen. */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .is-offscreen::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-group { flex-wrap: wrap; white-space: normal; justify-content: center; }
  .marquee-track > .marquee-group[aria-hidden] { display: none; }
  .marquee-track { width: auto; justify-content: center; }
}
