:root {
  color-scheme: light;
  --deep: #163f42;
  --teal: #287c80;
  --ivory: #f5efe6;
  --gold: #d1ad62;
  --ink: #24343b;
  --paper: #fffcf6;
  --line: #d9cec0;
  --serif: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--ivory);
  font: 100%/1.55 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--deep); text-underline-offset: .3em; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.shell { width: min(100% - 3rem, 83rem); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 1; padding: .5rem 1rem; background: var(--paper); }
.skip:not(:focus) { transform: translateY(-200%); }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar { display: flex; min-height: 5rem; justify-content: space-between; align-items: center; gap: 1.25rem; }
.brand { font: bold clamp(.95rem, 2vw, 1.25rem) var(--serif); letter-spacing: .11em; text-decoration: none; }
nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); align-items: center; }
nav a { text-decoration: none; font-size: .9375rem; }
nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.languages { display: flex; gap: .25rem; background: var(--ivory); border-radius: 2rem; padding: .2rem; }
.languages button { padding: .35rem .6rem; min-height: 2.3rem; border: 0; border-radius: 2rem; color: var(--deep); background: transparent; cursor: pointer; font-size: .875rem; }
.languages button[aria-pressed="true"] { background: var(--deep); color: white; }
.hero { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: stretch; margin-top: 2rem; color: white; background: var(--deep); border-radius: 1.25rem; overflow: hidden; }
.hero-copy { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.eyebrow, .tag { margin: 0 0 .85rem; color: var(--deep); font-size: .875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.025em; }
h3, .admin-cards h2 { font-size: 1.6rem; }
.intro { margin: 1.25rem 0; max-width: 38rem; }
.hero .intro { color: #f6efe2; }
.hero img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; object-position: 62% center; }
.cta { display: inline-block; margin-top: .65rem; padding: .8rem 1.2rem; color: var(--ink); background: var(--gold); border-radius: .4rem; font-weight: 650; text-decoration: none; }
.cta:focus-visible { outline-color: var(--gold); }
.catalog { padding: clamp(2.5rem, 6vw, 5rem) 0 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; padding: clamp(1.15rem, 2vw, 1.75rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); }
.card .rate { margin: auto 0 0; padding-top: .5rem; font-weight: 650; }
.card .detail { margin-bottom: 1.2rem; }
.page { padding-block: clamp(2.5rem, 7vw, 6rem); }
.filters { display: flex; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.filters label { display: grid; gap: .35rem; min-width: min(12rem, 100%); font-weight: 600; }
.filters select { border: 1px solid var(--line); border-radius: .45rem; padding: .65rem 2rem .65rem .75rem; color: var(--ink); background: var(--paper); }
.results, .note { margin-top: 1.25rem; }
.admin-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.footer { color: var(--ivory); background: var(--deep); padding: 1.5rem 0; }
.footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer p { margin: 0; }
@media (max-width: 62rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero img { min-height: 22rem; }
}
@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .bar { flex-wrap: wrap; gap: .5rem; padding-block: .8rem; }
  nav { order: 3; width: 100%; flex-wrap: wrap; }
  nav a { padding-block: .45rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero img { height: auto; max-height: 17rem; min-height: 0; }
  .cards { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
}

.hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(31rem, 53vw, 47rem);
  border-radius: .45rem;
}
.hero-visual, .hero-media { position: absolute; inset: 0; }
.hero-visual { overflow: hidden; z-index: -2; }
.hero-media { transform-origin: 62% center; }
.hero-media img, .hero-media video { display: block; width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: cover; object-position: center; }
.hero-media video { position: absolute; inset: 0; }
.hero:has(video) .hero-visual { z-index: 0; }
.hero:has(video) .hero-copy { pointer-events: none; }
.hero:has(video) .hero-copy a { pointer-events: auto; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #102e31f5 0%, #102e31de 29%, #102e3188 52%, #102e310a 83%);
}
.hero-frame {
  position: absolute;
  inset: clamp(.7rem, 1.8vw, 1.5rem);
  border: 1px solid #f2d99b64;
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 48rem; padding: clamp(2rem, 7vw, 6rem); }
.hero h1 { max-width: 11ch; line-height: .99; }
.hero-signature { color: #f6efe2; margin: 1.65rem 0 0; font-size: .875rem; }
.cta { min-height: 2.9rem; transition: transform .18s ease, background-color .18s ease; }
.cta-dark { background: var(--deep); color: white; }
.cta:active { transform: translateY(1px); }
.catalog-intro { flex: 0 1 25rem; margin: 0; }
.catalog-action { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 1.6rem; }
.catalog-action .note { margin: 0; }
.service-card { padding: 0; overflow: hidden; box-shadow: 0 12px 24px #163f420b; transition: transform .28s cubic-bezier(.2,.75,.25,1); }
.service-card:focus-within { transform: translateY(-4px); outline: 2px solid var(--teal); outline-offset: 3px; }
.service-copy { padding: clamp(1.15rem, 2vw, 1.75rem); display: flex; flex: 1; flex-direction: column; }
.service-copy h3 a { text-decoration: none; }
.service-copy h3 a:is(:focus-visible,:hover) { text-decoration: underline; }
.service-art {
  position: relative;
  height: 5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 90% 0%, #518283 0%, transparent 56%), linear-gradient(116deg, #112c30, #287c80);
}
.service-card[data-mode="daycare"] .service-art {
  background: radial-gradient(ellipse at 85% 5%, #fdedc4 0%, transparent 56%), linear-gradient(116deg, #926e39, #d1ad62);
}
.service-art::before, .service-art::after { content: ""; position: absolute; inset: 13% 8% -40% 39%; border: 1px solid #fff9; border-radius: 50% 50% 0 0; pointer-events: none; }
.service-art::after { inset: 23% 13% -40% 44%; opacity: .45; }
.service-art img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.service-art:has(img) { height: auto; aspect-ratio: 4/3; }
.service-contact { margin-top: clamp(2rem, 5vw, 4rem); padding: clamp(1.25rem, 4vw, 2.5rem); border-left: 3px solid var(--gold); background: var(--paper); }
.service-contact h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.service-contact p { margin-bottom: 0; }
.card-refresh { animation: card-refresh .25s ease-out; }
@keyframes card-refresh {
  from { opacity: .68; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (hover: hover) and (pointer: fine) {
  .catalog .service-card:hover { transform: translateY(-5px) scale(1.012); }
  .cta:hover { transform: translateY(-2px); }
}
@media (max-width: 62rem) {
  .catalog-intro { flex-basis: 19rem; }
  .hero-visual::after { background: linear-gradient(90deg, #102e31f5, #102e31b8 52%, #102e3129); }
}
@media (max-width: 42rem) {
  .hero { min-height: 34rem; align-items: end; }
  .hero-copy { padding: 3rem 1.65rem; }
  .hero-media img, .hero-media video { object-position: 64% center; }
  .hero-visual::after { background: linear-gradient(0deg, #102e31 3%, #102e31e8 39%, #102e3130 92%); }
  .catalog-intro { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .service-card { transition: none; }
  .card-refresh { animation: none; }
  .catalog .service-card:is(:hover,:focus-within), .cta:is(:hover,:active) { transform: none; }
}

/* Immersive presentation. Catalog and administration retain the existing layout. */
.hero[data-scene] {
  margin: 0;
  min-height: 100vh;
  min-height: calc(100svh - 5rem);
  border-radius: 0;
  padding-inline: max(0px, calc((100% - 83rem)/2));
}
.hero[data-scene] .hero-copy { padding: clamp(2rem, 6vw, 6rem); }
.hero[data-scene] h1 { font-size: clamp(3rem, 8.3vw, 8rem); max-width: 10ch; }
.hero[data-scene] .hero-frame { inset: clamp(.65rem, 2.3vw, 2.3rem); }
.hero[data-scene] .hero-visual::after {
  background: linear-gradient(90deg,#0c2528f2 0%,#102a2dbd 30%,#102a2d45 63%,#102a2d10 100%);
}
.hero[data-scene] .hero-media { inset: -40px 0; transform: translate3d(0,var(--drift,0px),0); }
.hero[data-scene] .hero-media video { inset: 40px 0; height: calc(100% - 80px); }
.hero[data-scene]:has(video) .hero-media { transform: none; }

.chapters { display: grid; gap: clamp(2rem,6vw,6.5rem); padding-block: clamp(2.25rem,7vw,7rem); }
.chapter { position: relative; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: center; isolation: isolate; }
.chapter-art { grid-column: 1/9; grid-row: 1; position: relative; overflow: hidden; min-height: clamp(23rem,45vw,39rem); background: #143b3b; }
.chapter-plane { position: absolute; inset: -40px 0; transform: translate3d(0,var(--drift,0px),0); }
.chapter-plane img,.chapter-plane video { width: 100%; height: 100%; display: block; object-fit: cover; }
.chapter-plane video { position: absolute; inset: 40px 0; height: calc(100% - 80px); }
.chapter-plane:has(video) { transform: none; }
.chapter-canine img { object-position: 74% 76%; transform: scale(1.15); transform-origin: 79% 78%; }
.chapter-outline { position: absolute; inset: 1rem; border: 1px solid #faf4df6b; pointer-events: none; }
.chapter-copy {
  grid-column: 8/13; grid-row: 1; z-index: 1; padding: clamp(1.6rem,4vw,4.5rem);
  background: var(--paper); border-top: 2px solid var(--gold); box-shadow: 0 22px 60px #112e3026;
}
.chapter-copy h2 { font-size: clamp(2.45rem,5vw,5.65rem); }
.chapter-description { margin: 1.25rem 0 0; max-width: 28ch; }
.chapter-daycare .chapter-art { grid-column: 5/13; background: #b79360; }
.chapter-daycare .chapter-copy { grid-column: 1/6; }
.chapter-daycare .chapter-plane:empty {
  background: repeating-radial-gradient(ellipse at 68% 110%,transparent 0 21px,#fbf0cc50 22px 23px,transparent 24px 46px),
              linear-gradient(150deg,#684622,#bd985e 45%,#f1d5a1 100%);
}
.chapter-feline .chapter-art { background: #193b42; }
.chapter-feline .chapter-copy { background: var(--deep); color: var(--ivory); }
.chapter-feline .eyebrow { color: var(--gold); }
.chapter-feline .chapter-plane:empty {
  background: radial-gradient(ellipse at 30% 57%,#8db6af88 0%,transparent 42%),
              repeating-linear-gradient(113deg,#b9d7cf22 0px,#b9d7cf22 1px,transparent 2px,transparent 48px),
              linear-gradient(135deg,#254b51,#0f262b 85%);
}
.chapter:has(video) .chapter-art { grid-column: 1/8; }
.chapter-daycare:has(video) .chapter-art { grid-column: 6/13; }
.chapters + .catalog { padding-top: 0; }
.chapters + .catalog .catalog-action {
  background: var(--deep); color: var(--ivory); padding: clamp(1.25rem,4vw,3rem);
  border-bottom: 3px solid var(--gold);
}
.chapters + .catalog .catalog-action .cta { color: var(--ink); background: var(--gold); }
.chapters + .catalog .catalog-action .note { max-width: 45ch; }

@media (max-width: 62rem) {
  .chapter-copy { padding: clamp(1.3rem,3vw,2.4rem); }
  .chapter-copy h2 { font-size: clamp(2.3rem,5.2vw,4rem); }
}
@media (max-width: 42rem) {
  .hero[data-scene] { min-height: calc(100svh - 6rem); }
  .hero[data-scene] .hero-media { inset: 0; }
  .hero[data-scene] .hero-media video { inset: 0; height: 100%; }
  .hero[data-scene] .hero-copy { padding: 3.3rem clamp(1.5rem,6vw,3rem); }
  .hero[data-scene] .hero-visual::after { background: linear-gradient(0deg,#102e31 1%,#102e31e3 42%,#102e3129 94%); }
  .chapter { display: flex; flex-direction: column; align-items: stretch; }
  .chapter-art { min-height: clamp(11rem,59vw,22rem); }
  .chapter-plane,.chapter-plane video { inset: 0; height: 100%; }
  .chapter-copy { position: relative; margin: -1.2rem .65rem 0; }
  .chapter:has(video) .chapter-copy { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-scene] .hero-media,.chapter-plane { transform: none; }
}

/* Approved Flow films sit inside the existing parallax plane. */
.hero[data-scene]:has(video) .hero-visual { z-index: -2; }
.hero[data-scene]:has(video) .hero-copy { pointer-events: auto; }
.hero[data-scene]:has(video) .hero-media,
.chapter-plane:has(video) { transform: translate3d(0,var(--drift,0px),0); }
.hero[data-scene] .hero-media video,
.chapter-plane video {
  position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover;
  opacity: 0; transition: opacity .48s ease; pointer-events: none;
}
.hero[data-scene] video.is-playing,.chapter-plane video.is-playing { opacity: 1; }
.chapter:has(video) .chapter-art { grid-column: 1/9; }
.chapter-daycare:has(video) .chapter-art { grid-column: 5/13; }
.chapter-daycare .chapter-plane:not(:has(img)) {
  background: repeating-radial-gradient(ellipse at 68% 110%,transparent 0 21px,#fbf0cc50 22px 23px,transparent 24px 46px),
              linear-gradient(150deg,#684622,#bd985e 45%,#f1d5a1 100%);
}
.chapter-feline .chapter-plane:not(:has(img)) {
  background: radial-gradient(ellipse at 30% 57%,#8db6af88 0%,transparent 42%),
              repeating-linear-gradient(113deg,#b9d7cf22 0px,#b9d7cf22 1px,transparent 2px,transparent 48px),
              linear-gradient(135deg,#254b51,#0f262b 85%);
}
@media (max-width: 42rem) {
  .chapter:has(video) .chapter-copy { margin-top: -1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-scene]:has(video) .hero-media,.chapter-plane:has(video) { transform: none; }
  .hero[data-scene] .hero-media video,.chapter-plane video { display: none; }
}