:root {
  --pink: #efc4c8;
  --blue: #98cbd5;
  --cream: #f8f3ea;
  --taupe: #e8ddd5;
  --coffee: #6f5c4d;
  --mink: #b8aa9b;
  --panel: #b9aa9a;
  --ink: #27323a;
  --muted: #687078;
  --paper: #fffdf9;
  --white: #ffffff;
  --line: rgba(39, 50, 58, 0.16);
  --shadow: 0 22px 70px rgba(39, 50, 58, 0.13);
  --glass: rgba(255, 253, 249, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4f0e8;
  font-family: "Inter", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background: var(--paper);
  animation: introExit 1.15s ease 1.35s forwards;
}

.intro.is-hidden {
  display: none;
}

.intro img {
  width: min(210px, 42vw);
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: introMark 1.5s ease forwards;
}

.intro span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0;
}

@keyframes introExit {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes introMark {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #806269;
}

.nav-toggle {
  display: none;
}

.section {
  padding: clamp(64px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(236, 195, 199, 0.72), transparent 34%),
    var(--cream);
}

.kicker {
  margin: 0 0 14px;
  color: #7a6a6f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4.2rem, 14vw, 10.8rem);
}

h2 {
  max-width: 980px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

p {
  line-height: 1.75;
}

.hero-copy p:not(.kicker),
.section-heading p,
.welcome-grid p,
.breed-copy p,
.contact p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.ghost {
  background: rgba(255, 253, 249, 0.45);
}

.meta,
.status {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: block;
  grid-template-columns: none;
  gap: 0;
  align-items: initial;
  overflow: visible;
  min-height: calc(100svh - 76px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 196, 200, 0.82), transparent 34%),
    radial-gradient(circle at 82% 26%, rgba(152, 203, 213, 0.62), transparent 32%),
    radial-gradient(circle at 58% 84%, rgba(232, 221, 213, 0.76), transparent 38%),
    linear-gradient(135deg, var(--cream), rgba(239, 196, 200, 0.5) 42%, rgba(152, 203, 213, 0.44) 72%, var(--taupe));
}

.hero-stage {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  min-height: min(640px, calc(100svh - 170px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(239, 196, 200, 0.24) 48%, rgba(152, 203, 213, 0.18)),
    rgba(255, 253, 249, 0.44);
  background-size: auto;
  box-shadow: 0 28px 90px rgba(103, 91, 89, 0.16);
  backdrop-filter: blur(18px) saturate(1.12);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.62) 48%, rgba(255, 255, 255, 0.18) 55%, transparent 66%);
  transform: translateX(-75%) rotate(2deg);
  animation: glassSweep 1.55s ease-out 0.35s both;
}

@keyframes glassSweep {
  to {
    transform: translateX(75%) rotate(2deg);
    opacity: 0;
  }
}

.hero-topline {
  position: relative;
  grid-area: top;
  margin: 0 calc(clamp(54px, 6vw, 98px) * -1);
  z-index: 3;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 0 clamp(18px, 3vw, 46px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--ink);
  transition: background 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}

.hero-topline.is-scrolled,
.frame-topline.is-scrolled {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 253, 249, 0.42), rgba(239, 196, 200, 0.12)),
    rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 44px rgba(103, 91, 89, 0.1);
  backdrop-filter: blur(18px) saturate(1.12);
}

.hero-stage > .hero-copy,
.hero-stage > .hero-cat,
.hero-stage > .hero-social {
  position: relative;
}

.hero-brand {
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(39, 50, 58, 0.12);
  mix-blend-mode: normal;
}

.hero-mini-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4.5vw, 64px);
  align-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 1.55vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.hero-mini-nav a,
.hero-social a {
  color: var(--ink);
  text-decoration: none;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.frame-topline .top-actions {
  position: relative;
  align-self: center;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(5, 34px);
  justify-content: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.48), rgba(239, 196, 200, 0.14), rgba(152, 203, 213, 0.12)),
    rgba(255, 253, 249, 0.22);
  box-shadow: 0 10px 24px rgba(103, 91, 89, 0.08);
  backdrop-filter: blur(12px) saturate(1.12);
}

.language-switcher button {
  width: 34px;
  min-width: 0;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: 700 0.72rem/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switcher button[data-lang="it"] {
  transform: translateX(-3px);
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.is-active {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(239, 196, 200, 0.28) 52%, rgba(152, 203, 213, 0.22)),
    rgba(255, 253, 249, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 6px 16px rgba(103, 91, 89, 0.1);
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  transform: translateY(-1px);
}

.language-switcher button[data-lang="it"]:hover,
.language-switcher button[data-lang="it"]:focus-visible {
  transform: translate(-3px, -1px);
}

.hero-copy {
  grid-area: copy;
  z-index: 2;
  width: min(520px, 100%);
  padding: 0;
  color: var(--ink);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.hero-copy .kicker {
  color: #7f6b71;
}

.hero-copy h1 {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 3.7vw, 3.65rem);
  font-weight: 700;
  line-height: 1.03;
  text-transform: none;
}

.hero-copy p:not(.kicker) {
  width: min(430px, 100%);
  margin: 12px 0 0;
  color: #4f5960;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.65;
}

#heroText {
  max-height: min(34vh, 340px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
  scrollbar-width: thin;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions:empty {
  display: none;
}

.hero-actions .button {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: clamp(0.78rem, 0.88vw, 0.95rem);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.54), rgba(255, 255, 255, 0.18)),
    rgba(255, 253, 249, 0.28);
  box-shadow: 0 12px 28px rgba(103, 91, 89, 0.1);
  backdrop-filter: blur(14px) saturate(1.14);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.hero-actions .button.primary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.58), rgba(239, 196, 200, 0.2) 52%, rgba(152, 203, 213, 0.16)),
    rgba(255, 253, 249, 0.26);
}

.hero-actions .button.ghost {
  background: rgba(255, 253, 249, 0.42);
}

.hero-actions .button:hover,
.hero-actions .button:focus-visible {
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(239, 196, 200, 0.28) 52%, rgba(152, 203, 213, 0.22)),
    rgba(255, 253, 249, 0.38);
  box-shadow: 0 18px 38px rgba(103, 91, 89, 0.16);
  transform: translateY(-2px);
}

.hero-cat {
  grid-area: image;
  align-self: end;
  justify-self: stretch;
  z-index: 2;
  width: 100%;
  min-width: 0;
  filter: drop-shadow(0 30px 24px rgba(36, 29, 25, 0.34));
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.hero-cat img {
  width: 100%;
  height: min(58vh, 560px);
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  mix-blend-mode: normal;
}

.hero-stage.is-transitioning .hero-copy {
  opacity: 0;
  transform: translateY(10px);
}

.hero-stage.is-transitioning .hero-cat {
  opacity: 0;
  transform: translateX(12px);
}

.hero-social {
  grid-area: social;
  z-index: 4;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-social-links {
  display: flex;
  gap: 16px;
}

.hero-social a {
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.hero-social a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hero-social a:hover,
.hero-social a:focus-visible {
  color: #7f6b71;
  transform: translateY(-1px);
}

.hero-social a:hover::after,
.hero-social a:focus-visible::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.hero-social p {
  margin: 0;
  color: rgba(39, 50, 58, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-social p a {
  color: rgba(39, 50, 58, 0.66);
  font-weight: 800;
}

.welcome {
  background:
    linear-gradient(90deg, rgba(236, 195, 199, 0.56), transparent 38%),
    var(--paper);
}

.magazine-intro {
  border-top: 18px solid var(--white);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 12vw, 150px) clamp(18px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(236, 195, 199, 0.46), rgba(148, 200, 211, 0.34));
  color: var(--ink);
}

.page-hero h1,
.contact h1,
.detail-hero h1,
.post-detail h1 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  color: inherit;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
}

.page-hero p:not(.kicker) {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.section-link,
.text-link,
.back-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-link::after,
.text-link::after,
.back-link::before {
  color: inherit;
}

.section-link::after,
.text-link::after {
  content: " →";
}

.back-link::before {
  content: "← ";
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 6vw, 72px);
}

.section-heading h2 {
  text-transform: uppercase;
}

.section-heading.split {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.metrics span {
  display: grid;
  align-content: start;
  min-height: 190px;
  padding: 24px;
  background: var(--cream);
  color: var(--muted);
  line-height: 1.55;
}

.metrics strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.color-band {
  background:
    linear-gradient(90deg, rgba(148, 200, 211, 0.46), transparent 48%),
    #d6cabf;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.animal-card,
.blog-item {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #3f3934;
  box-shadow: 0 18px 54px rgba(39, 50, 58, 0.12);
}

.animal-card {
  min-height: 520px;
  border-color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.4), rgba(255, 255, 255, 0.16)),
    rgba(255, 253, 249, 0.24);
  box-shadow: 0 22px 54px rgba(103, 91, 89, 0.14);
  backdrop-filter: blur(14px) saturate(1.12);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.animal-card::before {
  content: none;
}

.animal-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(0.86) contrast(1.01);
  transition: opacity 0.24s ease, filter 0.24s ease, transform 0.24s ease;
}

.animal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(255, 253, 249, 0.34));
  pointer-events: none;
}

.card-body {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
  display: grid;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.58), rgba(239, 196, 200, 0.18) 48%, rgba(152, 203, 213, 0.18)),
    rgba(255, 253, 249, 0.28);
  box-shadow: 0 14px 34px rgba(39, 50, 58, 0.1);
  backdrop-filter: blur(14px) saturate(1.14);
}

.card-body h3 {
  color: #2d3940;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.25vw, 1.35rem);
  font-weight: 700;
  line-height: 1.06;
  text-transform: none;
  margin: 0;
  overflow-wrap: anywhere;
}

.card-meta {
  display: block;
  margin-top: 7px;
  color: rgba(45, 57, 64, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.animal-card:hover,
.animal-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 70px rgba(103, 91, 89, 0.2);
  transform: translateY(-4px);
}

.animal-card:hover img,
.animal-card:focus-visible img {
  opacity: 1;
  filter: saturate(0.96) contrast(1.04);
  transform: scale(1.02);
}

.status {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(148, 200, 211, 0.28);
  color: #315763;
}

.animal-card .status {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.editorial {
  background:
    linear-gradient(180deg, var(--paper), #eee5dc),
    var(--paper);
}

.blog-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.blog-item {
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--paper);
}

.blog-item img,
.blog-item video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: var(--taupe);
}

.blog-item.is-text-only {
  grid-template-columns: 1fr;
}

.blog-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: clamp(24px, 4vw, 52px);
  background: #f8f4ed;
}

.blog-copy p {
  margin: 0;
  color: var(--muted);
}

.breed {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(236, 195, 199, 0.38), transparent 38%),
    linear-gradient(180deg, var(--blue), var(--cream) 72%);
}

.breed-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.breed-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.breed-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 0.82fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  background: var(--pink);
}

.contact-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.contact-page .contact h1 {
  max-width: 680px;
  font-size: clamp(2.15rem, 4.4vw, 4.7rem);
  line-height: 0.98;
}

.contact-copy p {
  max-width: 560px;
  margin: 0;
  color: #5f666d;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.65;
}

.contact-panel {
  display: grid;
  gap: 1px;
  background: rgba(39, 50, 58, 0.16);
}

.contact-panel a,
.contact-panel span {
  padding: 20px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-panel a {
  display: grid;
  gap: 4px;
}

.contact-panel strong {
  color: rgba(39, 50, 58, 0.62);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.contact-panel em {
  color: var(--ink);
  font-style: normal;
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-form {
  width: min(620px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.58), rgba(239, 196, 200, 0.16), rgba(152, 203, 213, 0.14)),
    rgba(255, 253, 249, 0.3);
  box-shadow: 0 24px 64px rgba(103, 91, 89, 0.12);
  backdrop-filter: blur(18px) saturate(1.14);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #7f6b71;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form label:has(textarea),
.contact-form .form-status {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  padding: 14px 15px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.7), rgba(255, 255, 255, 0.24)),
    rgba(255, 253, 249, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
  font: 500 0.98rem/1.45 "Inter", Arial, sans-serif;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: rgba(152, 203, 213, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.82), rgba(239, 196, 200, 0.16), rgba(152, 203, 213, 0.16)),
    rgba(255, 253, 249, 0.46);
  box-shadow: 0 0 0 4px rgba(152, 203, 213, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.contact-form .button {
  width: fit-content;
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.64), rgba(239, 196, 200, 0.2), rgba(152, 203, 213, 0.16)),
    rgba(255, 253, 249, 0.32);
  box-shadow: 0 14px 34px rgba(103, 91, 89, 0.12);
  backdrop-filter: blur(14px) saturate(1.14);
}

.contact-form .button:hover,
.contact-form .button:focus-visible {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(103, 91, 89, 0.17);
  transform: translateY(-2px);
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

footer img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.detail-modal {
  position: relative;
  width: min(1040px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.detail-modal::backdrop {
  background: rgba(39, 50, 58, 0.52);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  min-height: 520px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.modal-text {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 5vw, 58px);
}

.modal-text p {
  margin: 0;
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 1px;
  margin-top: 8px;
  background: var(--line);
}

.facts span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  background: var(--paper);
  color: var(--muted);
}

.facts strong {
  color: var(--ink);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding: clamp(64px, 10vw, 130px) clamp(18px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(148, 200, 211, 0.28), transparent 42%),
    var(--taupe);
}

.detail-hero .back-link {
  grid-column: 1 / -1;
  margin: 0;
}

.detail-hero p,
.post-detail p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(18px, 5vw, 72px);
  background: var(--ink);
}

.detail-gallery img,
.detail-gallery video {
  width: 100%;
  min-height: 420px;
  max-height: 680px;
  object-fit: cover;
  background: var(--taupe);
}

.post-detail {
  display: grid;
  gap: 20px;
  padding: clamp(64px, 10vw, 130px) clamp(18px, 6vw, 86px);
  background: var(--paper);
}

.post-detail .detail-gallery {
  margin: 24px calc(clamp(18px, 6vw, 86px) * -1) calc(clamp(64px, 10vw, 130px) * -1);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 18px;
    border-top: 1px solid var(--line);
  }

  .section-heading.split,
  .welcome-grid,
  .breed,
  .contact,
  .modal-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 18px;
  }

  .hero-stage {
    min-height: 0;
  }

  .hero-topline {
    grid-template-columns: 1fr auto;
    min-height: 66px;
    padding: 0 18px;
  }

  .hero-mini-nav {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }

  .hero-copy {
    width: calc(100% - 48px);
  }

  .hero-cat {
    width: min(430px, 76vw);
    opacity: 0.74;
  }

  .hero-cat img {
    height: 430px;
  }

  .hero-social {
    display: none;
  }

  .home-page .hero-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 66px auto auto auto auto;
    grid-template-areas:
      "top"
      "copy"
      "image"
      "specs"
      "social";
    padding: 0 24px 24px;
  }

  .hero-topline {
    margin: 0 -24px;
  }

  .hero-cat {
    justify-self: end;
  }

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

  .blog-item {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .section {
    padding: 54px 16px;
  }

  h1 {
    font-size: clamp(3.5rem, 22vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.25rem, 15vw, 3.7rem);
  }

  .card-grid,
  .metrics,
  .modal-gallery,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .hero-copy p:not(.kicker) {
    max-width: 300px;
  }

  .hero-cat {
    width: min(340px, 90vw);
  }

  .hero-cat img {
    height: 350px;
  }

  .animal-card,
  .animal-card img {
    min-height: 460px;
  }

  .detail-gallery img,
  .detail-gallery video {
    min-height: 320px;
  }

  .button {
    justify-content: center;
    width: 100%;
  }
}

/* Multi-page glass layout */
.public-page {
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 196, 200, 0.82), transparent 34%),
    radial-gradient(circle at 82% 26%, rgba(152, 203, 213, 0.62), transparent 32%),
    radial-gradient(circle at 58% 84%, rgba(232, 221, 213, 0.76), transparent 38%),
    linear-gradient(135deg, var(--cream), rgba(239, 196, 200, 0.5) 42%, rgba(152, 203, 213, 0.44) 72%, var(--taupe));
}

.public-page > .site-header {
  display: none;
}

.public-page footer {
  display: none;
}

.home-page main,
.frame-page main {
  height: 100svh;
  overflow: hidden;
}

.home-page .hero {
  display: grid;
  align-items: start;
  align-content: start;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.home-page .hero-stage {
  align-self: start;
  width: min(1760px, calc(100% - clamp(18px, 3vw, 44px)));
  height: calc(100svh - clamp(18px, 3vw, 44px));
  margin: calc(clamp(18px, 3vw, 44px) / 2) auto 0;
  max-height: none;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(460px, 1.14fr);
  grid-template-rows: 74px minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "copy image";
  column-gap: clamp(32px, 5vw, 92px);
  row-gap: clamp(18px, 3vw, 34px);
  padding: 0 clamp(54px, 6vw, 98px) clamp(34px, 4vw, 58px);
  overflow: hidden;
}

.home-page .hero-copy {
  align-self: center;
  padding-bottom: clamp(36px, 4vw, 58px);
}

.home-page .hero-cat img {
  height: min(58vh, 560px);
}

.home-page .hero-social {
  position: absolute;
  left: clamp(54px, 6vw, 98px);
  right: clamp(54px, 6vw, 98px);
  bottom: clamp(18px, 2.4vw, 30px);
}

.home-page .hero-social p {
  justify-self: end;
  text-align: right;
}

.frame-page main {
  width: min(1760px, calc(100% - clamp(18px, 3vw, 44px)));
  height: calc(100svh - clamp(18px, 3vw, 44px));
  margin: calc(clamp(18px, 3vw, 44px) / 2) auto 0;
  display: grid;
  grid-template-rows: 74px auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(239, 196, 200, 0.24) 48%, rgba(152, 203, 213, 0.18)),
    rgba(255, 253, 249, 0.44);
  box-shadow: 0 28px 90px rgba(103, 91, 89, 0.16);
  backdrop-filter: blur(18px) saturate(1.12);
  overflow-y: auto;
  overflow-x: hidden;
}

.frame-topline {
  position: sticky;
  top: 0;
  grid-row: 1;
  z-index: 10;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(18px, 3vw, 46px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  backdrop-filter: none;
  transition: background 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}

.frame-brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(39, 50, 58, 0.12);
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: normal;
}

.frame-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4.5vw, 64px);
  min-width: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 1.55vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0;
}

.frame-nav a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.frame-home-link {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.42), rgba(239, 196, 200, 0.14), rgba(152, 203, 213, 0.12)),
    rgba(255, 253, 249, 0.22);
  box-shadow: 0 10px 24px rgba(103, 91, 89, 0.08);
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(1.12);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.frame-home-link:hover,
.frame-home-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.62), rgba(239, 196, 200, 0.2), rgba(152, 203, 213, 0.16)),
    rgba(255, 253, 249, 0.32);
  box-shadow: 0 14px 32px rgba(103, 91, 89, 0.13);
  transform: translateY(-1px);
}

.frame-page .page-hero {
  min-height: 0;
  padding: clamp(18px, 3vw, 34px) clamp(24px, 5vw, 64px) 12px;
  background: transparent;
}

.frame-page .page-hero::after {
  right: 34px;
  bottom: -0.22em;
  font-size: clamp(4.6rem, 13vw, 11rem);
}

.frame-page .page-hero h1,
.frame-page .contact h1,
.frame-page .detail-hero h1,
.frame-page .post-detail h1 {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.frame-page .page-hero p:not(.kicker) {
  max-width: 620px;
  margin-bottom: 0;
  color: #4f5960;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.frame-page .section {
  min-height: 0;
  padding: 10px clamp(24px, 5vw, 64px) clamp(20px, 3vw, 38px);
  background: transparent;
  overflow: auto;
}

.listing-page main {
  grid-template-rows: 74px minmax(0, 1fr);
}

.listing-page .page-hero {
  display: none;
}

.listing-page .section {
  display: grid;
  align-items: center;
  padding: clamp(24px, 4vw, 54px) clamp(24px, 5vw, 64px);
  overflow: hidden;
}

.listing-page .card-grid {
  height: auto;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
  scrollbar-width: thin;
}

.listing-page .card-grid::-webkit-scrollbar,
.blog-page .blog-list::-webkit-scrollbar,
.detail-gallery::-webkit-scrollbar {
  height: 8px;
}

.listing-page .card-grid::-webkit-scrollbar-track,
.blog-page .blog-list::-webkit-scrollbar-track,
.detail-gallery::-webkit-scrollbar-track {
  background: rgba(255, 253, 249, 0.22);
  border-radius: 999px;
}

.listing-page .card-grid::-webkit-scrollbar-thumb,
.blog-page .blog-list::-webkit-scrollbar-thumb,
.detail-gallery::-webkit-scrollbar-thumb {
  background: rgba(39, 50, 58, 0.18);
  border-radius: 999px;
}

.listing-page .animal-card {
  flex: 0 0 clamp(300px, 22vw, 380px);
  width: clamp(300px, 22vw, 380px);
  height: clamp(500px, 62svh, 640px);
  min-height: 0;
  scroll-snap-align: start;
}

.listing-page .animal-card img {
  height: 100%;
  min-height: 0;
}

.listing-page .card-body h3 {
  color: #2f3a40;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.12vw, 1.25rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: none;
  letter-spacing: 0.01em;
}

.listing-page .card-body p {
  color: rgba(255, 255, 255, 0.86);
}

.listing-page .animal-card::before {
  font-size: clamp(4.2rem, 7vw, 7rem);
}

.blog-page .blog-list {
  height: 100%;
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
  scroll-snap-type: y proximity;
  scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
  scrollbar-width: thin;
}

.blog-page main {
  grid-template-rows: 74px minmax(0, 1fr);
}

.blog-page .page-hero {
  display: none;
}

.blog-page .editorial {
  min-height: 0;
  height: 100%;
  padding: clamp(24px, 4vw, 54px) clamp(24px, 5vw, 64px);
  background: transparent;
  overflow: hidden;
}

.blog-page .blog-item {
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
  height: 220px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(255, 253, 249, 0.62);
  box-shadow: 0 18px 42px rgba(103, 91, 89, 0.08);
}

.blog-page .blog-item img,
.blog-page .blog-item video {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  object-fit: contain;
  background: rgba(255, 253, 249, 0.72);
}

.blog-page .blog-copy {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 12px;
  min-height: 0;
  padding: clamp(20px, 2.6vw, 28px);
  background: rgba(255, 253, 249, 0.58);
}

.blog-page .blog-copy h3 {
  max-width: 720px;
  font-size: clamp(1.28rem, 1.55vw, 1.85rem);
  line-height: 1.04;
}

.blog-page .blog-copy p {
  max-width: 720px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-page .text-link {
  margin-top: 0;
  align-self: start;
  font-size: clamp(0.68rem, 0.76vw, 0.82rem);
  letter-spacing: 0.08em;
}

.detail-page main {
  grid-template-rows: 74px;
  grid-auto-rows: auto;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
  scrollbar-width: thin;
}

.detail-page #postDetail {
  grid-template-rows: 74px minmax(0, 1fr);
  overflow-y: auto;
}

.detail-layout {
  grid-row: 2 / -1;
  min-height: calc(100svh - 74px - clamp(18px, 3vw, 44px));
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(480px, 0.92fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: stretch;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 76px) clamp(34px, 5vw, 70px);
}

.detail-info {
  display: grid;
  align-content: start;
  gap: clamp(18px, 3vw, 34px);
  min-width: 0;
}

.detail-page .detail-hero {
  min-height: 0;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 24px);
  padding: 0;
  background: transparent;
  overflow: visible;
}

.detail-page .detail-hero .back-link,
.detail-page .post-detail .back-link {
  font-size: clamp(0.62rem, 0.72vw, 0.78rem);
  letter-spacing: 0.06em;
}

.detail-page .detail-hero h1 {
  max-width: 560px;
  font-size: clamp(1.9rem, 3.2vw, 3.65rem);
  line-height: 0.94;
}

.detail-page .detail-hero p,
.detail-page .post-detail p {
  max-width: 560px;
  max-height: none;
  overflow: visible;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.65;
}

.detail-page .detail-hero .detail-meta {
  max-width: 560px;
  margin: 0;
  color: #7f6b71;
  font-size: clamp(0.82rem, 0.92vw, 0.95rem);
  font-weight: 700;
  line-height: 1.55;
}

.inquiry-toggle {
  width: fit-content;
  margin-top: 6px;
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.58), rgba(239, 196, 200, 0.18) 52%, rgba(152, 203, 213, 0.14)),
    rgba(255, 253, 249, 0.26);
  box-shadow: 0 12px 28px rgba(103, 91, 89, 0.1);
  backdrop-filter: blur(14px) saturate(1.14);
}

.inquiry-toggle:hover,
.inquiry-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(103, 91, 89, 0.16);
  transform: translateY(-2px);
}

.inquiry-form {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.56), rgba(239, 196, 200, 0.16), rgba(152, 203, 213, 0.14)),
    rgba(255, 253, 249, 0.28);
  box-shadow: 0 18px 44px rgba(103, 91, 89, 0.1);
  backdrop-filter: blur(16px) saturate(1.14);
}

.inquiry-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.74), rgba(239, 196, 200, 0.22), rgba(152, 203, 213, 0.18)),
    rgba(255, 253, 249, 0.54);
  box-shadow: 0 30px 90px rgba(39, 50, 58, 0.24);
  backdrop-filter: blur(20px) saturate(1.14);
}

.inquiry-dialog::backdrop {
  background: rgba(39, 50, 58, 0.28);
  backdrop-filter: blur(10px);
}

.inquiry-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.58);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.inquiry-dialog-panel {
  padding: clamp(22px, 4vw, 34px);
}

.inquiry-dialog .inquiry-form {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.inquiry-heading {
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.inquiry-heading h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.inquiry-form[hidden] {
  display: none;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: #7f6b71;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(39, 50, 58, 0.16);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.58);
  font: inherit;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 2px solid rgba(152, 203, 213, 0.5);
  border-color: rgba(152, 203, 213, 0.8);
}

.inquiry-form .button {
  width: fit-content;
  min-height: 40px;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: #5f666d;
  font-size: 0.85rem;
}

.detail-page .detail-gallery {
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
  justify-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.detail-page .detail-slider .detail-slider-track > img,
.detail-page .detail-slider .detail-slider-track > video {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.24s ease;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(239, 196, 200, 0.18) 52%, rgba(152, 203, 213, 0.16)),
    rgba(255, 253, 249, 0.38);
}

.detail-page .detail-slider .detail-slider-track:not(.has-active) > img:first-child,
.detail-page .detail-slider .detail-slider-track:not(.has-active) > video:first-child,
.detail-page .detail-slider .detail-slider-track > img.is-active,
.detail-page .detail-slider .detail-slider-track > video.is-active {
  opacity: 1;
}

.detail-slider-window {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.5), rgba(239, 196, 200, 0.12), rgba(152, 203, 213, 0.14)),
    rgba(255, 253, 249, 0.28);
  box-shadow: 0 24px 64px rgba(103, 91, 89, 0.16);
}

.detail-slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.detail-slider-track::-webkit-scrollbar {
  display: none;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.6), rgba(255, 255, 255, 0.18)),
    rgba(255, 253, 249, 0.28);
  box-shadow: 0 12px 28px rgba(103, 91, 89, 0.1);
  backdrop-filter: blur(14px) saturate(1.14);
  cursor: pointer;
  font: 700 2rem/1 "Cormorant Garamond", Georgia, serif;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.slider-prev {
  left: clamp(14px, 2vw, 24px);
}

.slider-next {
  right: clamp(14px, 2vw, 24px);
}

.slider-button:hover,
.slider-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.76), rgba(239, 196, 200, 0.24), rgba(152, 203, 213, 0.18)),
    rgba(255, 253, 249, 0.36);
  box-shadow: 0 18px 38px rgba(103, 91, 89, 0.16);
  transform: translateY(calc(-50% - 1px));
}

.detail-page .post-detail {
  grid-row: 2 / -1;
  min-height: 0;
  height: 100%;
  padding: clamp(26px, 5vw, 64px);
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.detail-page .post-detail .detail-gallery {
  width: min(880px, 100%);
  margin: 18px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  background: transparent;
}

.detail-page .post-detail .detail-gallery img,
.detail-page .post-detail .detail-gallery video {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 0;
  height: auto;
  max-height: min(64svh, 620px);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 253, 249, 0.56);
  box-shadow: 0 18px 46px rgba(103, 91, 89, 0.12);
}

.post-text-block {
  width: min(760px, 100%);
}

.post-text-block p + p {
  margin-top: 1em;
}

.post-text-block + .post-media-block,
.post-media-block + .post-text-block {
  margin-top: 8px;
}

.info-page main,
.contact-page main,
.about-page main {
  grid-template-rows: 74px minmax(0, 1fr);
}

.info-page .page-hero {
  display: none;
}

.info-page .breed,
.contact-page .contact,
.about-page .about-section {
  min-height: 0;
  height: 100%;
  padding: clamp(24px, 5vw, 64px);
  background: transparent;
  overflow: hidden;
}

.contact-page .contact {
  overflow-y: hidden;
  overflow-x: hidden;
}

.about-page .about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 82px);
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
  scrollbar-width: thin;
}

.about-logo-panel {
  min-height: min(620px, calc(100svh - 220px));
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.58), rgba(239, 196, 200, 0.14), rgba(152, 203, 213, 0.12)),
    rgba(255, 253, 249, 0.28);
  box-shadow: 0 24px 64px rgba(103, 91, 89, 0.12);
  backdrop-filter: blur(18px) saturate(1.14);
}

.about-logo-panel img {
  width: min(260px, 56%);
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.about-copy {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  align-content: center;
  min-width: 0;
}

.about-copy h1 {
  max-width: 820px;
  font-size: clamp(2.15rem, 4.4vw, 5rem);
  line-height: 0.98;
}

.about-paragraphs {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.about-paragraphs p {
  margin: 0;
  color: #5f666d;
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
  line-height: 1.75;
}

.info-page .breed {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
  scrollbar-width: thin;
}

.info-page .breed-copy h2 {
  font-size: clamp(2.2rem, 5.2vw, 5.6rem);
  line-height: 0.98;
}

.info-page .breed-copy p:not(.kicker),
.info-page .breed-copy li {
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.65;
}

.info-page .breed-copy .kicker {
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
}

.info-page .breed-image img {
  max-height: calc(100svh - 190px);
}

@media (max-width: 920px) {
  .public-page {
    overflow: hidden;
  }

  .home-page main,
  .frame-page main {
    height: 100svh;
  }

  .frame-page main {
    width: calc(100% - 20px);
    height: calc(100svh - 20px);
    margin-top: 10px;
  }

  .home-page .hero-stage {
    width: calc(100% - 20px);
    height: calc(100svh - 20px);
    margin-top: 10px;
  }

  .frame-topline {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 0 14px;
  }

  .frame-brand img {
    width: 44px;
    height: 44px;
  }

  .frame-nav {
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    font-size: 1.18rem;
  }

  .frame-home-link {
    padding: 8px 10px;
    font-size: 0.64rem;
  }

  .top-actions {
    gap: 6px;
  }

  .language-switcher {
    grid-template-columns: repeat(5, 30px);
    padding: 4px;
  }

  .language-switcher button {
    width: 30px;
    min-width: 0;
    height: 28px;
    font-size: 0.66rem;
  }


  .blog-page .blog-item {
    grid-template-columns: 1fr;
    height: auto;
  }

  .blog-page .blog-item img,
  .blog-page .blog-item video {
    height: auto;
  }

  .detail-page .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .detail-page .detail-gallery {
    height: min(58svh, 520px);
  }
}

@media (max-width: 620px) {
  .home-page .hero {
    padding: 0;
  }

  .frame-page .page-hero,
  .frame-page .section,
  .detail-layout,
  .detail-page .post-detail,
  .info-page .breed,
  .contact-page .contact {
    padding: 18px;
  }

  .frame-page .page-hero h1,
  .frame-page .contact h1,
  .frame-page .detail-hero h1,
  .frame-page .post-detail h1 {
    font-size: clamp(2.1rem, 12vw, 3.7rem);
  }

  .listing-page .animal-card {
    flex-basis: 82vw;
  }
}

/* Responsive glass frame */
.frame-menu-toggle {
  display: none;
  place-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.58), rgba(239, 196, 200, 0.16), rgba(152, 203, 213, 0.12)),
    rgba(255, 253, 249, 0.24);
  box-shadow: 0 12px 26px rgba(103, 91, 89, 0.09);
  backdrop-filter: blur(14px) saturate(1.14);
  cursor: pointer;
}

.frame-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.is-menu-open .frame-menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.is-menu-open .frame-menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .home-page .hero-stage {
    grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 1.1fr);
    column-gap: clamp(22px, 4vw, 54px);
    padding-inline: clamp(30px, 4vw, 62px);
  }

  .hero-topline {
    margin-inline: calc(clamp(30px, 4vw, 62px) * -1);
  }

  .hero-mini-nav,
  .frame-nav {
    gap: clamp(18px, 3vw, 36px);
    font-size: clamp(1.12rem, 2vw, 1.45rem);
  }

  .listing-page .animal-card {
    flex-basis: clamp(280px, 30vw, 350px);
    width: clamp(280px, 30vw, 350px);
  }

  .detail-layout {
    grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
    gap: clamp(28px, 4vw, 58px);
  }
}

@media (max-width: 920px) {
  .home-page .hero-stage,
  .frame-page main {
    width: calc(100% - 18px);
    margin-top: 9px;
    border-radius: 14px;
  }

  .home-page.public-page {
    height: auto;
    min-height: 0;
    overflow-y: auto;
  }

  .home-page main,
  .home-page .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .frame-page main {
    height: calc(100svh - 18px);
  }

  .home-page .hero-stage {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 68px auto auto auto;
    grid-template-areas:
      "top"
      "copy"
      "image"
      "social";
    row-gap: 14px;
    padding: 0 clamp(18px, 5vw, 34px) 18px;
    overflow-y: visible;
    overflow-x: hidden;
  }

  .hero-topline,
  .frame-topline {
    position: sticky;
    top: 0;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 10px;
    min-height: 68px;
    padding: 0 clamp(12px, 3vw, 18px);
  }

  .hero-topline {
    margin-inline: calc(clamp(18px, 5vw, 34px) * -1);
  }

  .frame-menu-toggle {
    display: grid;
  }

  .hero-brand img,
  .frame-brand img {
    width: 44px;
    height: 44px;
  }

  .hero-mini-nav,
  .frame-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 30;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(255, 253, 249, 0.82), rgba(239, 196, 200, 0.24), rgba(152, 203, 213, 0.18)),
      rgba(255, 253, 249, 0.58);
    box-shadow: 0 20px 48px rgba(103, 91, 89, 0.15);
    backdrop-filter: blur(18px) saturate(1.16);
    font-size: 1.28rem;
    overflow: visible;
  }

  .hero-topline.is-menu-open .hero-mini-nav,
  .frame-topline.is-menu-open .frame-nav {
    display: grid;
  }

  .hero-mini-nav a,
  .frame-nav a {
    padding: 12px 10px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .hero-mini-nav a:hover,
  .hero-mini-nav a:focus-visible,
  .frame-nav a:hover,
  .frame-nav a:focus-visible {
    background: rgba(255, 253, 249, 0.48);
    transform: translateY(-1px);
  }

  .top-actions {
    justify-self: end;
    min-width: 0;
  }

  .frame-home-link {
    padding: 8px 10px;
    font-size: 0.62rem;
  }

  .language-switcher {
    grid-template-columns: repeat(5, 29px);
    padding: 4px;
  }

  .language-switcher button {
    width: 29px;
    min-width: 0;
    height: 28px;
    font-size: 0.65rem;
  }

  .home-page .hero-copy {
    align-self: start;
    width: 100%;
    padding: clamp(18px, 5vw, 34px) 0 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 8vw, 4rem);
    line-height: 1;
  }

  .hero-copy p:not(.kicker) {
    width: min(560px, 100%);
    max-width: none;
    font-size: 0.98rem;
  }

  #heroText {
    max-height: 28svh;
  }

  .hero-actions .button {
    width: auto;
    min-height: 40px;
  }

  .home-page .hero-cat {
    width: 100%;
    justify-self: center;
    align-self: end;
    opacity: 1;
  }

  .home-page .hero-cat img {
    height: min(42svh, 430px);
    object-fit: contain;
  }

  .home-page .hero-social {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    padding-top: 8px;
  }

  .listing-page .section {
    align-items: center;
    padding: 18px;
  }

  .listing-page .card-grid {
    justify-content: flex-start;
    padding: 0 0 8px;
  }

  .listing-page .animal-card {
    flex: 0 0 min(360px, 78vw);
    width: min(360px, 78vw);
    height: min(540px, 68svh);
  }

  .listing-page .card-body h3 {
    font-size: clamp(0.95rem, 3.8vw, 1.28rem);
  }

  .blog-page .editorial {
    padding: 18px;
  }

  .blog-page .blog-item {
    grid-template-columns: minmax(140px, 32%) minmax(0, 1fr);
    height: 178px;
  }

  .blog-page .blog-copy {
    padding: 16px;
    gap: 8px;
  }

  .blog-page .blog-copy h3 {
    font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    padding: 22px;
  }

  .detail-page .detail-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3.1rem);
  }

  .detail-page .detail-hero p,
  .detail-page .detail-hero .detail-meta,
  .detail-page .post-detail p {
    max-width: 100%;
  }

  .detail-page .detail-gallery {
    height: min(56svh, 520px);
  }

  .info-page .breed {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .about-page .about-section {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
  }

  .about-logo-panel {
    min-height: 220px;
  }

  .about-logo-panel img {
    width: min(180px, 48%);
  }

  .about-copy h1 {
    font-size: clamp(2rem, 8vw, 3.8rem);
  }

  .info-page .breed-image img {
    max-height: 42svh;
    object-fit: contain;
    background: rgba(255, 253, 249, 0.32);
  }

  .info-page .breed-copy h2 {
    font-size: clamp(2rem, 8vw, 3.8rem);
  }

  .contact-page .contact {
    grid-template-columns: 1fr;
    padding: 22px;
    align-items: start;
    overflow-y: auto;
    scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
    scrollbar-width: thin;
  }

  .contact-page .contact h1 {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .contact-copy p {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .public-page {
    background:
      radial-gradient(circle at 12% 12%, rgba(239, 196, 200, 0.78), transparent 34%),
      radial-gradient(circle at 92% 18%, rgba(152, 203, 213, 0.6), transparent 38%),
      linear-gradient(135deg, var(--cream), rgba(239, 196, 200, 0.42), rgba(152, 203, 213, 0.32));
  }

  .home-page.public-page {
    height: auto;
    min-height: 0;
    overflow-y: auto;
  }

  .home-page main,
  .home-page .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .home-page .hero-stage,
  .frame-page main {
    width: calc(100% - 12px);
    border-radius: 12px;
  }

  .frame-page main {
    height: calc(100svh - 12px);
  }

  .home-page .hero-stage {
    height: auto;
    min-height: 0;
    margin: 6px auto;
    grid-template-rows: 62px auto auto auto;
    padding: 0 16px 14px;
    row-gap: 12px;
    overflow-y: visible;
  }

  .frame-page main {
    grid-template-rows: 62px minmax(0, 1fr);
  }

  .hero-topline,
  .frame-topline {
    min-height: 62px;
    padding-inline: 10px;
  }

  .hero-topline {
    margin-inline: -16px;
  }

  .frame-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-brand img,
  .frame-brand img {
    width: 38px;
    height: 38px;
  }

  .frame-home-link {
    display: none;
  }

  .language-switcher button {
    min-width: 26px;
    height: 26px;
    font-size: 0.6rem;
  }

  .hero-mini-nav,
  .frame-nav {
    top: calc(100% + 6px);
    left: 8px;
    right: 8px;
    font-size: 1.16rem;
  }

  .hero-copy .kicker {
    margin-bottom: 8px;
    font-size: 0.66rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 11vw, 3.15rem);
  }

  .hero-copy p:not(.kicker) {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  #heroText {
    max-height: 24svh;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 38px;
    padding-inline: 16px;
    font-size: 0.78rem;
  }

  .home-page .hero-cat img {
    height: min(34svh, 300px);
  }

  .home-page .hero-social {
    display: grid;
    gap: 5px;
    justify-content: stretch;
    font-size: 0.66rem;
  }

  .hero-social-links {
    justify-content: center;
  }

  .home-page .hero-social p {
    justify-self: center;
    text-align: center;
  }

  .listing-page .section,
  .blog-page .editorial,
  .detail-layout,
  .detail-page .post-detail,
  .info-page .breed,
  .about-page .about-section,
  .contact-page .contact {
    padding: 14px;
  }

  .listing-page .section {
    align-items: start;
    overflow: hidden;
  }

  .listing-page .card-grid {
    width: 100%;
    height: 100%;
    max-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 0 14px;
    scroll-snap-type: y proximity;
  }

  .listing-page .animal-card {
    flex: 0 0 auto;
    width: min(320px, 82vw);
    height: min(380px, 54svh);
  }

  .card-body {
    inset: auto 12px 12px;
    padding: 12px 14px;
  }

  .blog-page .blog-list {
    gap: 12px;
    justify-items: center;
  }

  .blog-page .blog-item {
    grid-template-columns: 1fr;
    height: auto;
    width: min(320px, 100%);
  }

  .blog-page .blog-item img,
  .blog-page .blog-item video {
    height: auto;
    max-height: 170px;
  }

  .blog-page .blog-copy {
    padding: 12px 14px 14px;
    gap: 8px;
  }

  .blog-page .blog-copy h3 {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
  }

  .blog-page .blog-copy p {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }

  .detail-page .detail-hero {
    gap: 12px;
  }

  .detail-page .detail-hero .back-link {
    font-size: 0.62rem;
  }

  .detail-page .detail-hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
    line-height: 1;
  }

  .detail-page .detail-hero p,
  .detail-page .post-detail p,
  .detail-page .detail-hero .detail-meta {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .detail-page .detail-gallery {
    height: min(48svh, 380px);
  }

  .slider-button {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .inquiry-form {
    padding: 12px;
  }

  .inquiry-form .button {
    width: 100%;
  }

  .info-page .breed-copy h2 {
    font-size: clamp(1.9rem, 10vw, 2.9rem);
  }

  .about-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.75rem);
  }

  .about-paragraphs p {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .about-logo-panel {
    min-height: 170px;
  }

  .info-page .breed-copy p:not(.kicker),
  .info-page .breed-copy li,
  .contact p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .contact-panel a,
  .contact-panel span {
    padding: 14px;
    font-size: 0.9rem;
  }

  .contact-page .contact h1 {
    font-size: clamp(1.9rem, 10vw, 2.75rem);
  }

  .contact-copy {
    gap: 10px;
  }

  .contact-copy p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .contact-form .button {
    width: 100%;
    justify-content: center;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 0.92rem;
  }
}

@media (max-width: 380px) {
  .language-switcher {
    grid-template-columns: repeat(5, 24px);
    gap: 2px;
    padding: 3px;
  }

  .language-switcher button {
    width: 24px;
    min-width: 0;
    height: 24px;
    font-size: 0.56rem;
  }

  .hero-copy h1 {
    font-size: 1.95rem;
  }

  .home-page .hero-cat img {
    height: min(34svh, 280px);
  }

  .listing-page .animal-card {
    width: min(290px, 84vw);
    height: min(340px, 52svh);
  }
}

@media (max-width: 920px) {
  body.home-page {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .home-page main,
  .home-page .hero {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .home-page .hero-stage {
    display: grid;
    width: calc(100% - 16px);
    height: calc(100svh - 16px);
    min-height: 0;
    margin: 8px auto;
    grid-template-rows: 68px auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .home-page .hero-cat {
    align-self: center;
    min-height: 0;
  }

  .home-page .hero-social {
    position: static;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .home-page .hero-stage {
    width: calc(100% - 12px);
    height: calc(100svh - 12px);
    margin: 6px auto;
    grid-template-rows: 62px auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 920px) {
  .home-page .hero-stage {
    grid-template-rows: 68px minmax(0, auto) minmax(190px, 1fr) auto;
    row-gap: clamp(14px, 2.4svh, 24px);
    padding-bottom: clamp(18px, 3svh, 30px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .home-page .hero-copy {
    padding-top: clamp(16px, 3svh, 28px);
  }

  .home-page .hero-actions {
    margin-top: clamp(14px, 2svh, 22px);
  }

  .home-page .hero-cat {
    align-self: center;
    margin-block: clamp(8px, 1.5svh, 14px);
  }

  .home-page .hero-cat img {
    width: 100%;
    height: auto;
    max-height: min(35svh, 340px);
  }

  .home-page .hero-social {
    align-self: end;
    gap: 8px;
    padding-top: clamp(8px, 1.4svh, 14px);
  }

  .info-page .breed {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    align-content: start;
    align-items: start;
    gap: 18px;
    overflow-y: auto;
  }

  .info-page .breed-copy {
    order: 1;
    display: grid;
    gap: 12px;
    min-width: 0;
  }

  .info-page .breed-image {
    order: 2;
    justify-self: center;
    width: min(520px, 100%);
    min-width: 0;
  }

  .info-page .breed-copy h2 {
    font-size: clamp(1.85rem, 7vw, 3rem);
    line-height: 1.05;
  }

  .info-page .breed-copy p:not(.kicker),
  .info-page .breed-copy li {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .info-page .breed-image img {
    width: 100%;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }
}

@media (max-width: 620px) {
  .home-page .hero-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: calc(100svh - 12px);
    min-height: 0;
    padding: 0 14px 18px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .home-page .hero-topline {
    flex: 0 0 62px;
  }

  .home-page .hero-copy {
    flex: 0 0 auto;
    padding-top: 14px;
    min-height: 0;
  }

  #heroText {
    max-height: none;
  }

  .home-page .hero-cat {
    flex: 0 0 auto;
    margin: 0;
    min-height: 0;
  }

  .home-page .hero-cat img {
    max-height: 27svh;
  }

  .home-page .hero-social {
    flex: 0 0 auto;
    padding-top: 8px;
    margin-top: 0;
  }

  .info-page .breed {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    padding: 16px;
    overflow-y: auto;
  }

  .info-page .breed-copy {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .info-page .breed-copy h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
    margin: 0;
  }

  .info-page .breed-copy p:not(.kicker),
  .info-page .breed-copy li {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  .info-page .breed-copy ul {
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 0;
  }

  .info-page .breed-image {
    order: 2;
    width: 100%;
    margin-top: 4px;
  }

  .info-page .breed-image img {
    aspect-ratio: 1 / 1;
    max-height: 240px;
  }
}

@media (max-width: 420px) {
  .home-page .hero-stage {
    gap: 12px;
    padding-bottom: 14px;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(1.8rem, 10vw, 2.55rem);
  }

  .home-page .hero-copy p:not(.kicker) {
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .home-page .hero-actions {
    margin-top: 10px;
  }

  .home-page .hero-cat img {
    max-height: 24svh;
  }

  .info-page .breed {
    gap: 16px;
  }

  .info-page .breed-image img {
    max-height: 210px;
  }
}

@media (max-width: 620px) {
  .home-page .hero-stage {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 62px minmax(0, auto) minmax(185px, 1fr) 52px;
    grid-template-areas:
      "top"
      "copy"
      "image"
      "social";
    height: calc(100svh - 12px);
    min-height: 0;
    padding: 0 14px 12px;
    row-gap: 10px;
    overflow: hidden;
  }

  .home-page .hero-copy,
  .home-page .hero-cat,
  .home-page .hero-social {
    width: 100%;
  }

  .home-page .hero-copy {
    display: grid;
    gap: 8px;
    align-content: start;
    padding-top: 8px;
    min-height: 0;
  }

  .home-page .hero-copy .kicker {
    margin: 0;
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .home-page .hero-copy h1 {
    margin: 0;
    font-size: clamp(1.6rem, 8.8vw, 2.35rem);
    line-height: 0.98;
  }

  .home-page .hero-copy p:not(.kicker) {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .home-page #heroText {
    max-height: none;
    overflow: hidden;
    padding-right: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
  }

  .home-page .hero-actions {
    margin-top: 2px;
    gap: 8px;
  }

  .home-page .hero-actions .button {
    min-height: 34px;
    padding: 8px 15px;
    font-size: 0.7rem;
  }

  .home-page .hero-cat {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .home-page .hero-cat img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
  }

  .home-page .hero-social {
    grid-area: social;
    align-self: stretch;
    display: grid;
    align-content: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    gap: 4px;
    min-height: 0;
  }

  .home-page .hero-social-links {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .home-page .hero-social p {
    margin: 0;
  }

  .info-page.frame-page main {
    height: calc(100svh - 12px);
    grid-template-rows: 62px minmax(0, 1fr);
    overflow: hidden;
  }

  .info-page .breed {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 28px;
    scroll-padding-bottom: 28px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

@media (max-width: 420px) {
  .home-page .hero-stage {
    grid-template-rows: 62px minmax(0, auto) minmax(170px, 1fr) 48px;
    row-gap: 8px;
    padding: 0 12px 10px;
  }

  .home-page .hero-copy {
    gap: 7px;
    padding-top: 6px;
  }

  .home-page .hero-copy .kicker {
    font-size: 0.54rem;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .home-page .hero-copy p:not(.kicker) {
    font-size: 0.72rem;
    line-height: 1.34;
  }

  .home-page #heroText {
    -webkit-line-clamp: 4;
  }

  .home-page .hero-actions {
    margin-top: 1px;
  }

  .home-page .hero-actions .button {
    min-height: 32px;
    padding: 7px 13px;
    font-size: 0.66rem;
  }

  .home-page .hero-cat img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }
}

.blog-page main {
  overflow: hidden;
}

.blog-page .editorial {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.blog-page .blog-list {
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 620px) {
  .blog-page main {
    height: calc(100svh - 12px);
    grid-template-rows: 62px minmax(0, 1fr);
    overflow: hidden;
  }

  .blog-page .editorial {
    min-height: 0;
    height: 100%;
    padding: 12px 14px 14px;
    overflow: hidden;
  }

  .blog-page .blog-list {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding-bottom: 8px;
  }
}

.info-page.frame-page main {
  height: calc(100svh - clamp(18px, 3vw, 44px));
  min-height: 0;
  grid-template-rows: 74px minmax(0, 1fr);
  overflow: hidden;
}

.info-page .breed {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-color: rgba(39, 50, 58, 0.18) rgba(255, 253, 249, 0.22);
  scrollbar-width: thin;
}

.info-page .breed::-webkit-scrollbar {
  width: 8px;
}

.info-page .breed::-webkit-scrollbar-track {
  background: rgba(255, 253, 249, 0.22);
  border-radius: 999px;
}

.info-page .breed::-webkit-scrollbar-thumb {
  background: rgba(39, 50, 58, 0.18);
  border-radius: 999px;
}

@media (max-width: 620px) {
  .info-page.frame-page main {
    height: calc(100svh - 12px);
    grid-template-rows: 62px minmax(0, 1fr);
    overflow: hidden;
  }

  .info-page .breed {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 16px 14px 24px;
    overflow-y: auto;
  }

  .info-page .breed-image img {
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

@media (min-width: 621px) and (max-width: 920px) {
  .home-page main,
  .home-page .hero {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
  }

  .home-page .hero-stage {
    width: calc(100% - 16px);
    height: calc(100svh - 16px);
    max-height: none;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 68px minmax(0, auto) minmax(0, 1fr) auto;
    grid-template-areas:
      "top"
      "copy"
      "image"
      "social";
    align-content: stretch;
    row-gap: clamp(12px, 1.8svh, 20px);
    padding: 0 clamp(24px, 5vw, 52px) clamp(18px, 2.4svh, 28px);
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .home-page .hero-copy {
    width: min(620px, 100%);
    justify-self: start;
    align-self: start;
    padding-top: clamp(14px, 2.4svh, 24px);
    padding-bottom: 0;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(2rem, 6vw, 3.05rem);
    line-height: 1;
  }

  .home-page .hero-copy p:not(.kicker) {
    max-width: 620px;
    font-size: clamp(0.9rem, 2.1vw, 1.02rem);
    line-height: 1.5;
  }

  .home-page #heroText {
    max-height: none;
  }

  .home-page .hero-actions {
    margin-top: 14px;
  }

  .home-page .hero-cat {
    justify-self: center;
    align-self: stretch;
    width: min(760px, 100%);
    height: 100%;
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .home-page .hero-cat img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .home-page .hero-social {
    position: static;
    width: 100%;
    justify-self: center;
    justify-items: center;
    align-self: end;
    margin: 0;
    padding-top: 0;
    text-align: center;
  }

  .home-page .hero-social-links {
    justify-content: center;
  }

  .home-page .hero-social p {
    justify-self: center;
    text-align: center;
  }
}

/* Final race-page scroll guard: main is the glass frame, .breed is the only scroller. */
.info-page.frame-page main {
  height: calc(100svh - clamp(18px, 3vw, 44px)) !important;
  min-height: 0 !important;
  grid-template-rows: 74px minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.info-page.frame-page .breed {
  grid-row: 2 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.info-page.frame-page .breed-image img {
  width: 100%;
  max-height: none;
  object-fit: contain !important;
  object-position: center center;
  background: rgba(255, 253, 249, 0.26);
}

@media (max-width: 920px) {
  .info-page.frame-page main {
    height: calc(100svh - 20px) !important;
    grid-template-rows: 68px minmax(0, 1fr) !important;
  }
}

@media (max-width: 620px) {
  .info-page.frame-page main {
    position: relative !important;
    height: calc(100svh - 12px) !important;
    grid-template-rows: 62px auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .info-page.frame-page .frame-topline {
    position: relative;
    z-index: 5;
  }

  .info-page.frame-page .breed {
    position: relative !important;
    inset: auto !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 16px 14px 28px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .info-page.frame-page .breed-image {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .info-page.frame-page .breed-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (max-width: 620px) {
  body.home-page,
  .home-page main,
  .home-page .hero {
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .home-page .hero-stage {
    width: calc(100% - 12px) !important;
    height: calc(100svh - 12px) !important;
    min-height: 0 !important;
    margin: 6px auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 58px minmax(0, auto) minmax(130px, 30svh) 46px !important;
    grid-template-areas:
      "top"
      "copy"
      "image"
      "social" !important;
    row-gap: 8px !important;
    padding: 0 14px 10px !important;
    overflow: hidden !important;
  }

  .home-page .hero-copy {
    align-self: start !important;
    display: grid !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding-top: 6px !important;
  }

  .home-page .hero-copy .kicker {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(2.05rem, 10.8vw, 3rem) !important;
    line-height: 0.98 !important;
  }

  .home-page .hero-copy p:not(.kicker) {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .home-page #heroText {
    max-height: none !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
  }

  .home-page .hero-actions {
    margin-top: 2px !important;
    gap: 8px !important;
  }

  .home-page .hero-actions .button {
    min-height: 34px !important;
    padding: 8px 14px !important;
    font-size: 0.76rem !important;
  }

  .home-page .hero-cat {
    align-self: stretch !important;
    justify-self: center !important;
    width: min(340px, 86vw) !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .home-page .hero-cat img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .home-page .hero-social {
    align-self: stretch !important;
    align-content: center !important;
    gap: 3px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .home-page .hero-social-links {
    gap: 14px !important;
  }

  .home-page .hero-social p {
    margin: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 380px) {
  .home-page .hero-stage {
    grid-template-rows: 54px minmax(0, auto) minmax(112px, 26svh) 42px !important;
    row-gap: 6px !important;
    padding-inline: 12px !important;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(1.85rem, 10vw, 2.5rem) !important;
  }

  .home-page .hero-copy p:not(.kicker) {
    font-size: 0.84rem !important;
    line-height: 1.38 !important;
  }

  .home-page #heroText {
    -webkit-line-clamp: 4 !important;
  }

  .home-page .hero-actions .button {
    min-height: 32px !important;
    padding: 7px 12px !important;
    font-size: 0.7rem !important;
  }
}

/* Final mobile override for the breed page: keep the glass frame fixed, scroll its content. */
@media (max-width: 920px) {
  body.info-page.public-page {
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .info-page.frame-page main {
    width: calc(100% - 16px) !important;
    height: calc(100svh - 16px) !important;
    min-height: 0 !important;
    margin: 8px auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 64px minmax(0, 1fr) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .info-page.frame-page .page-hero {
    display: none !important;
  }

  .info-page.frame-page .breed {
    position: relative !important;
    inset: auto !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 14px 14px 30px !important;
    overflow: visible !important;
  }

  .info-page.frame-page .breed-image {
    width: min(520px, 100%) !important;
    justify-self: center !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .info-page.frame-page .breed-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  .info-page.frame-page .breed-copy {
    min-height: 0 !important;
  }
}

/* Final home mobile spacing pass: keep the image close to the CTA without page scroll. */
@media (max-width: 620px) {
  .home-page .hero-stage {
    grid-template-rows: 58px minmax(0, auto) minmax(150px, 34svh) 44px !important;
    row-gap: 4px !important;
    padding-bottom: 8px !important;
  }

  .home-page .hero-copy {
    gap: 6px !important;
    align-content: start !important;
  }

  .home-page .hero-actions {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .home-page .hero-cat {
    align-self: start !important;
    width: min(390px, 94vw) !important;
    height: 100% !important;
    max-height: 34svh !important;
  }

  .home-page .hero-cat img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: top center !important;
  }
}

@media (max-width: 380px) {
  .home-page .hero-stage {
    grid-template-rows: 54px minmax(0, auto) minmax(130px, 30svh) 40px !important;
    row-gap: 3px !important;
  }

  .home-page .hero-cat {
    width: min(330px, 92vw) !important;
    max-height: 30svh !important;
  }
}

/* Larger home images on phones, with the image pulled directly under the CTA. */
@media (max-width: 620px) {
  .home-page .hero-stage {
    grid-template-rows: 56px minmax(0, auto) minmax(190px, 42svh) 40px !important;
    row-gap: 0 !important;
    padding-inline: 12px !important;
    padding-bottom: 6px !important;
  }

  .home-page .hero-copy {
    gap: 5px !important;
    padding-top: 3px !important;
  }

  .home-page #heroText {
    -webkit-line-clamp: 3 !important;
  }

  .home-page .hero-actions {
    margin: 0 !important;
  }

  .home-page .hero-actions .button {
    min-height: 32px !important;
    padding-block: 7px !important;
  }

  .home-page .hero-cat {
    width: min(470px, 98vw) !important;
    max-height: 42svh !important;
    margin-top: -2px !important;
  }

  .home-page .hero-cat img {
    object-position: top center !important;
  }
}

@media (max-width: 380px) {
  .home-page .hero-stage {
    grid-template-rows: 52px minmax(0, auto) minmax(165px, 38svh) 38px !important;
  }

  .home-page .hero-cat {
    width: min(390px, 98vw) !important;
    max-height: 38svh !important;
  }
}

/* Git deploy pass: make mobile home images clearly larger and remove leftover visual gap. */
@media (max-width: 620px) {
  .home-page .hero-stage {
    grid-template-rows: 54px minmax(0, auto) minmax(220px, 48svh) 36px !important;
    row-gap: 0 !important;
    padding: 0 10px 5px !important;
  }

  .home-page .hero-copy {
    gap: 4px !important;
    padding-top: 2px !important;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(2rem, 10.6vw, 2.85rem) !important;
    line-height: 0.94 !important;
  }

  .home-page .hero-copy p:not(.kicker) {
    font-size: 0.94rem !important;
    line-height: 1.34 !important;
  }

  .home-page #heroText {
    -webkit-line-clamp: 3 !important;
  }

  .home-page .hero-actions .button {
    min-height: 30px !important;
    padding: 6px 12px !important;
  }

  .home-page .hero-cat {
    align-self: start !important;
    width: min(540px, 100vw) !important;
    max-height: 48svh !important;
    margin-top: -6px !important;
  }
}

@media (max-width: 380px) {
  .home-page .hero-stage {
    grid-template-rows: 52px minmax(0, auto) minmax(190px, 44svh) 34px !important;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(1.84rem, 9.8vw, 2.45rem) !important;
  }

  .home-page .hero-copy p:not(.kicker) {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
  }

  .home-page .hero-cat {
    width: min(450px, 100vw) !important;
    max-height: 44svh !important;
  }
}

/* Mobile header fit: keep navigation and all language buttons inside the glass frame. */
@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .home-page main,
  .home-page .hero {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .home-page .hero-stage {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    overflow-x: hidden !important;
  }

  .hero-topline,
  .frame-topline {
    grid-template-columns: 38px 38px minmax(0, 1fr) !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .home-page .hero-topline {
    margin-inline: -10px !important;
  }

  .top-actions {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    z-index: 6 !important;
    min-width: 0 !important;
    max-width: calc(100% - 96px) !important;
    transform: translateY(-50%) !important;
  }

  .language-switcher {
    grid-template-columns: repeat(5, 24px) !important;
    gap: 2px !important;
    padding: 3px !important;
    max-width: 100% !important;
  }

  .language-switcher button {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.56rem !important;
    transform: none !important;
  }

  .language-switcher button:hover,
  .language-switcher button:focus-visible,
  .language-switcher button[data-lang="it"]:hover,
  .language-switcher button[data-lang="it"]:focus-visible {
    transform: translateY(-1px) !important;
  }

  .hero-mini-nav,
  .frame-nav {
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 16px) !important;
    max-width: calc(100vw - 28px) !important;
    transform: translateX(-50%) !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .home-page .hero-copy {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    padding-top: 12px !important;
    overflow: hidden !important;
  }

  .home-page .hero-copy h1,
  .home-page .hero-copy p,
  .home-page #heroText {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  .home-page .hero-cat {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .hero-topline,
  .frame-topline {
    grid-template-columns: 36px 36px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .frame-menu-toggle {
    width: 36px !important;
    height: 36px !important;
  }

  .hero-brand img,
  .frame-brand img {
    width: 36px !important;
    height: 36px !important;
  }

  .language-switcher {
    grid-template-columns: repeat(5, 22px) !important;
  }

  .language-switcher button {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.52rem !important;
  }
}

/* Breed page scroll fix: keep the page fixed and scroll only the glass frame. */
body.info-page.public-page {
  height: 100svh !important;
  min-height: 100svh !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.info-page.frame-page main {
  height: calc(100svh - clamp(18px, 3vw, 44px)) !important;
  min-height: 0 !important;
  grid-template-rows: 74px auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

.info-page.frame-page .breed {
  grid-row: 2 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 920px) {
  .info-page.frame-page main {
    height: calc(100svh - 16px) !important;
    min-height: 0 !important;
    grid-template-rows: 64px auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 620px) {
  .info-page.frame-page main {
    height: calc(100svh - 12px) !important;
    min-height: 0 !important;
    grid-template-rows: 62px auto !important;
  }

  .info-page.frame-page .breed {
    padding-bottom: 34px !important;
  }

  .info-page.frame-page .breed-image {
    width: min(420px, 100%) !important;
  }

  .info-page.frame-page .breed-image img {
    max-height: min(48svh, 420px) !important;
  }
}

.news-ticker {
  grid-area: ticker;
  position: relative;
  z-index: 5;
  width: calc(100% + (clamp(54px, 6vw, 98px) * 2));
  margin-inline: calc(clamp(54px, 6vw, 98px) * -1);
  height: 44px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.66);
  border-bottom: 1px solid rgba(39, 50, 58, 0.08);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.84), rgba(239, 196, 200, 0.38), rgba(152, 203, 213, 0.28)),
    rgba(255, 253, 249, 0.8);
  box-shadow: 0 14px 32px rgba(103, 91, 89, 0.12);
  backdrop-filter: blur(18px) saturate(1.14);
}

.news-ticker.hidden {
  display: none;
}

.news-ticker-track {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-ticker:hover .news-ticker-group,
.news-ticker:focus-within .news-ticker-group {
  animation-play-state: paused;
}

.news-ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  width: max-content;
  padding-left: 100%;
  padding-right: clamp(26px, 5vw, 70px);
  animation: news-ticker-scroll 18s linear infinite;
}

.news-ticker a {
  color: inherit;
  text-decoration: none;
}

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  white-space: nowrap;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.news-ticker-brand {
  font: inherit;
  color: #7f6b71;
}

.news-ticker-paw {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-page.has-news .hero-stage {
  grid-template-rows: 74px 44px minmax(0, 1fr) !important;
  grid-template-areas:
    "top top"
    "ticker ticker"
    "copy image" !important;
}

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

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

@media (max-width: 620px) {
  .news-ticker {
    width: calc(100% + 20px);
    margin-inline: -10px;
    height: 38px;
  }

  .news-ticker-item {
    min-height: 38px;
    font-size: 0.78rem;
  }

  .news-ticker-paw {
    width: 18px;
    height: 18px;
  }

  .home-page.has-news .hero-stage {
    height: calc(100svh - 12px) !important;
    grid-template-rows: 54px 38px minmax(0, auto) minmax(180px, 42svh) 36px !important;
    grid-template-areas:
      "top"
      "ticker"
      "copy"
      "image"
      "social" !important;
    margin-bottom: 0 !important;
  }
}

/* Home ticker placement: attach it to the navigation and move content down without shrinking it. */
.home-page.has-news .hero-stage {
  row-gap: 0 !important;
}

.home-page.has-news .hero-copy {
  padding-top: clamp(22px, 3vw, 42px) !important;
}

@media (max-width: 620px) {
  .home-page.has-news .hero-stage {
    grid-template-rows: 54px 38px minmax(0, auto) minmax(210px, 45svh) 34px !important;
    row-gap: 0 !important;
  }

  .home-page.has-news .hero-copy {
    gap: 6px !important;
    padding-top: 18px !important;
    align-self: start !important;
  }

  .home-page.has-news .hero-copy .kicker {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
  }

  .home-page.has-news .hero-copy h1 {
    font-size: clamp(2.18rem, 11.2vw, 3.08rem) !important;
    line-height: 0.98 !important;
  }

  .home-page.has-news .hero-copy p:not(.kicker) {
    font-size: 1rem !important;
    line-height: 1.38 !important;
  }

  .home-page.has-news #heroText {
    -webkit-line-clamp: 3 !important;
  }

  .home-page.has-news .hero-actions {
    margin-top: 2px !important;
  }

  .home-page.has-news .hero-actions .button {
    min-height: 34px !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
  }

  .home-page.has-news .hero-cat {
    align-self: end !important;
    width: min(560px, 100vw) !important;
    max-height: 45svh !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 380px) {
  .home-page.has-news .hero-stage {
    grid-template-rows: 52px 38px minmax(0, auto) minmax(185px, 42svh) 32px !important;
  }

  .home-page.has-news .hero-copy {
    padding-top: 14px !important;
  }

  .home-page.has-news .hero-copy h1 {
    font-size: clamp(2rem, 10.6vw, 2.7rem) !important;
  }

  .home-page.has-news .hero-copy p:not(.kicker) {
    font-size: 0.92rem !important;
    line-height: 1.34 !important;
  }

  .home-page.has-news .hero-cat {
    max-height: 42svh !important;
  }
}

/* Final mobile home layout with ticker directly under navigation. */
@media (max-width: 620px) {
  .home-page.has-news .hero-stage {
    grid-template-rows: 70px 38px minmax(0, auto) minmax(210px, 1fr) 34px !important;
    grid-template-areas:
      "top"
      "ticker"
      "copy"
      "image"
      "social" !important;
    row-gap: 0 !important;
    padding: 0 10px 5px !important;
    overflow: hidden !important;
  }

  .home-page.has-news .hero-topline {
    min-height: 70px !important;
    margin-inline: -10px !important;
  }

  .home-page.has-news .news-ticker {
    align-self: start !important;
    width: calc(100% + 20px) !important;
    margin-inline: -10px !important;
    margin-top: 0 !important;
  }

  .home-page.has-news .hero-copy {
    align-self: start !important;
    gap: 7px !important;
    padding-top: 22px !important;
    padding-bottom: 0 !important;
  }

  .home-page.has-news .hero-copy .kicker {
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
  }

  .home-page.has-news .hero-copy h1 {
    font-size: clamp(2.36rem, 11.6vw, 3.28rem) !important;
    line-height: 0.98 !important;
  }

  .home-page.has-news .hero-copy p:not(.kicker) {
    font-size: 1.02rem !important;
    line-height: 1.4 !important;
  }

  .home-page.has-news #heroText {
    -webkit-line-clamp: 3 !important;
  }

  .home-page.has-news .hero-actions {
    margin-top: 2px !important;
  }

  .home-page.has-news .hero-cat {
    align-self: end !important;
    width: min(560px, 100%) !important;
    height: 100% !important;
    max-height: none !important;
    margin-top: 0 !important;
  }

  .home-page.has-news .hero-cat img {
    height: 100% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
  }
}

@media (max-width: 380px) {
  .home-page.has-news .hero-stage {
    grid-template-rows: 66px 38px minmax(0, auto) minmax(175px, 1fr) 30px !important;
  }

  .home-page.has-news .hero-topline {
    min-height: 66px !important;
  }

  .home-page.has-news .hero-copy {
    padding-top: 16px !important;
  }

  .home-page.has-news .hero-copy h1 {
    font-size: clamp(2.04rem, 10.8vw, 2.76rem) !important;
  }

  .home-page.has-news .hero-copy p:not(.kicker) {
    font-size: 0.94rem !important;
    line-height: 1.34 !important;
  }
}

/* Larger mobile language buttons. */
@media (max-width: 620px) {
  .home-page .hero-topline {
    grid-template-columns: 38px 38px minmax(0, 1fr) !important;
  }

  .home-page .top-actions {
    right: 8px !important;
    max-width: calc(100% - 88px) !important;
  }

  .home-page .language-switcher {
    grid-template-columns: repeat(5, 29px) !important;
    gap: 3px !important;
    padding: 4px !important;
  }

  .home-page .language-switcher button {
    width: 29px !important;
    height: 29px !important;
    font-size: 0.66rem !important;
  }
}

@media (max-width: 380px) {
  .home-page .language-switcher {
    grid-template-columns: repeat(5, 27px) !important;
  }

  .home-page .language-switcher button {
    width: 27px !important;
    height: 27px !important;
    font-size: 0.62rem !important;
  }
}

/* Mobile CTA spacing on home slides. */
@media (max-width: 620px) {
  .home-page .hero-actions {
    margin-bottom: 14px !important;
  }

  .home-page .hero-actions .button,
  .home-page.has-news .hero-actions .button {
    min-height: 32px !important;
    padding: 7px 13px !important;
    font-size: 0.76rem !important;
  }
}

@media (max-width: 380px) {
  .home-page .hero-actions {
    margin-bottom: 10px !important;
  }

  .home-page .hero-actions .button,
  .home-page.has-news .hero-actions .button {
    min-height: 30px !important;
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
  }
}

/* Final breed-page contract: body and frame are fixed, content scrolls inside the frame. */

body.breed-page.frame-page main {
  height: calc(100svh - clamp(18px, 3vw, 44px)) !important;
  max-height: calc(100svh - clamp(18px, 3vw, 44px)) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 74px minmax(0, 1fr) !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior: contain !important;
}

body.breed-page.frame-page .frame-topline {
  z-index: 8 !important;
}

body.breed-page.frame-page .page-hero {
  display: none !important;
}

body.breed-page.frame-page .breed {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr) !important;
  gap: clamp(28px, 5vw, 76px) !important;
  align-items: center !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

body.breed-page.frame-page .breed-image,
body.breed-page.frame-page .breed-copy {
  min-height: 0 !important;
}

body.breed-page.frame-page .breed-copy h2 {
  max-width: 780px !important;
  font-size: clamp(1.7rem, 3.1vw, 3.2rem) !important;
  line-height: 1.08 !important;
}

body.breed-page.frame-page .breed-image img {
  width: 100% !important;
  height: auto !important;
  max-height: min(68svh, 680px) !important;
  object-fit: contain !important;
}

@media (max-width: 920px) {
  body.breed-page.frame-page main {
    height: calc(100svh - 16px) !important;
    max-height: calc(100svh - 16px) !important;
    grid-template-rows: 64px minmax(0, 1fr) !important;
  }

  body.breed-page.frame-page .breed {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 16px 14px 34px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.breed-page.frame-page .breed-image {
    width: min(520px, 100%) !important;
    justify-self: center !important;
  }

  body.breed-page.frame-page .breed-image img {
    max-height: min(48svh, 440px) !important;
  }
}

@media (max-width: 620px) {
  body.breed-page.frame-page main {
    height: calc(100svh - 12px) !important;
    max-height: calc(100svh - 12px) !important;
    grid-template-rows: 62px minmax(0, 1fr) !important;
  }

  body.breed-page.frame-page .breed {
    gap: 18px !important;
    padding: 16px 14px 38px !important;
  }

  body.breed-page.frame-page .breed-image img {
    max-height: min(42svh, 360px) !important;
  }
}

/* Keep the opened mobile menu above the home ticker. */
@media (max-width: 920px) {
  .home-page .hero-topline.is-menu-open {
    z-index: 60 !important;
  }

  .home-page .hero-topline.is-menu-open .hero-mini-nav {
    z-index: 61 !important;
  }

  .home-page .news-ticker {
    z-index: 5 !important;
  }
}

/* Definitive mobile language sizing across all frame/home pages. */
@media (max-width: 620px) {
  .public-page .hero-topline,
  .public-page .frame-topline {
    grid-template-columns: 38px 38px minmax(0, 1fr) !important;
  }

  .public-page .top-actions {
    right: 8px !important;
    max-width: calc(100% - 88px) !important;
  }

  .public-page .language-switcher {
    grid-template-columns: repeat(5, 29px) !important;
    gap: 3px !important;
    padding: 4px !important;
  }

  .public-page .language-switcher button {
    width: 29px !important;
    min-width: 29px !important;
    height: 29px !important;
    min-height: 29px !important;
    font-size: 0.66rem !important;
  }
}

@media (max-width: 380px) {
  .public-page .language-switcher {
    grid-template-columns: repeat(5, 27px) !important;
  }

  .public-page .language-switcher button {
    width: 27px !important;
    min-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    font-size: 0.62rem !important;
  }
}

/* O rasi: page stays fixed, only the content stage scrolls. */

body.breed-page.frame-page main {
  height: calc(var(--breed-vh, 100svh) - clamp(18px, 3vw, 44px)) !important;
  max-height: calc(var(--breed-vh, 100svh) - clamp(18px, 3vw, 44px)) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 74px minmax(0, 1fr) !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

body.breed-page.frame-page .page-hero {
  display: none !important;
}

body.breed-page.frame-page .breed-scroll-frame {
  grid-row: 2 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  scrollbar-width: thin;
}

body.breed-page.frame-page .breed {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr) !important;
  gap: clamp(28px, 5vw, 76px) !important;
  align-items: center !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
  overflow: visible !important;
}

body.breed-page.frame-page .breed-image,
body.breed-page.frame-page .breed-copy {
  min-height: 0 !important;
}

body.breed-page.frame-page .breed-image img {
  width: 100% !important;
  height: auto !important;
  max-height: min(68svh, 680px) !important;
  object-fit: contain !important;
}

@media (max-width: 920px) {
  body.breed-page.frame-page main {
    height: calc(var(--breed-vh, 100svh) - 16px) !important;
    max-height: calc(var(--breed-vh, 100svh) - 16px) !important;
    grid-template-rows: 64px minmax(0, 1fr) !important;
  }

  body.breed-page.frame-page .breed-scroll-frame {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: scroll !important;
  }

  body.breed-page.frame-page .breed {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    min-height: auto !important;
    padding: 16px 14px 40px !important;
    gap: 20px !important;
  }

  body.breed-page.frame-page .breed-image {
    width: min(520px, 100%) !important;
    justify-self: center !important;
  }

  body.breed-page.frame-page .breed-image img {
    max-height: min(42svh, 380px) !important;
  }
}

@media (max-width: 620px) {
  body.breed-page.frame-page main {
    height: calc(var(--breed-vh, 100svh) - 12px) !important;
    max-height: calc(var(--breed-vh, 100svh) - 12px) !important;
    grid-template-rows: 62px minmax(0, 1fr) !important;
  }

  body.breed-page.frame-page .breed {
    padding: 16px 14px 48px !important;
    gap: 18px !important;
  }

  body.breed-page.frame-page .breed-copy h2 {
    font-size: clamp(1.45rem, 7vw, 2.15rem) !important;
    line-height: 1.1 !important;
  }

  body.breed-page.frame-page .breed-image img {
    max-height: min(36svh, 320px) !important;
  }
}

/* Compact contact details after adding social channels. */
.contact-page .contact-panel {
  gap: 1px !important;
}

.contact-page .contact-panel a,
.contact-page .contact-panel span {
  padding: 14px 16px !important;
}

.contact-page .contact-panel strong {
  font-size: 0.66rem !important;
}

.contact-page .contact-panel em {
  font-size: 0.9rem !important;
  line-height: 1.18 !important;
}

@media (max-width: 920px) {
  .contact-page .contact-panel a,
  .contact-page .contact-panel span {
    padding: 10px 12px !important;
  }

  .contact-page .contact-panel strong {
    font-size: 0.58rem !important;
  }

  .contact-page .contact-panel em {
    font-size: 0.78rem !important;
    line-height: 1.12 !important;
  }
}

@media (max-width: 620px) {
  .contact-page .contact-copy {
    gap: 8px !important;
  }

  .contact-page .contact-panel a,
  .contact-page .contact-panel span {
    padding: 7px 10px !important;
  }

  .contact-page .contact-panel strong {
    font-size: 0.52rem !important;
  }

  .contact-page .contact-panel em {
    font-size: 0.7rem !important;
    line-height: 1.08 !important;
  }
}

/* Responsive layout: let content determine height when the viewport is too short. */
.frame-topline .frame-home-link {
  position: static;
  padding: 3px 10px;
  line-height: 1.2;
}

@media (max-width: 920px) {
  body.home-page.public-page,
  .home-page main,
  .home-page .hero {
    height: auto !important;
    min-height: 100svh !important;
    overflow-y: auto !important;
  }

  .home-page .hero-stage,
  .home-page.has-news .hero-stage {
    height: auto !important;
    min-height: calc(100svh - 18px) !important;
    max-height: none !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: max-content max-content minmax(180px, auto) max-content !important;
    grid-template-areas: "top" "copy" "image" "social" !important;
  }

  .home-page.has-news .hero-stage {
    grid-template-rows: max-content 44px max-content minmax(180px, auto) max-content !important;
    grid-template-areas: "top" "ticker" "copy" "image" "social" !important;
  }

  .home-page .hero-cat,
  .home-page.has-news .hero-cat {
    height: clamp(180px, 36svh, 420px) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 12px 0 0 !important;
  }

  .home-page .hero-social {
    position: static !important;
    height: auto !important;
    min-height: 36px;
    padding-block: 6px !important;
  }

  .hero-social-links {
    flex-wrap: wrap;
  }

  .hero-mini-nav,
  .frame-nav {
    max-height: calc(100svh - 100px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}

@media (max-width: 620px) {
  .home-page .hero-stage,
  .home-page.has-news .hero-stage {
    min-height: calc(100svh - 12px) !important;
  }

  .home-page.has-news .hero-stage {
    grid-template-rows: max-content 38px max-content minmax(180px, auto) max-content !important;
  }
}

/* Listing cards wrap into rows; the listing frame scrolls vertically. */
.listing-page .section {
  align-items: start;
  overflow-x: hidden;
  overflow-y: auto;
}

.listing-page .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  width: 100%;
  height: auto;
  max-height: none;
  gap: 18px;
  overflow: visible;
  scroll-snap-type: none;
}

.listing-page .animal-card {
  width: 100%;
  min-width: 0;
}

/* Continuous right-to-left ticker; movement is measured in script.js. */
.news-ticker-motion { display: flex; width: max-content; transform: translateX(100vw); }
.news-ticker-motion .news-ticker-group {
  flex: 0 0 auto;
  padding-left: 0;
  padding-right: clamp(26px, 5vw, 70px);
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-motion { transform: none; }
  .news-ticker-track { overflow-x: auto; }
}

@media (max-width: 920px) {
  .listing-page .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .listing-page .card-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Header and footer have their own rows; only the middle row scrolls. */
body.frame-page main.has-frame-footer {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 74px minmax(0, 1fr) 54px !important;
  height: calc(100svh - clamp(18px, 3vw, 44px)) !important;
  min-height: 0 !important;
  max-height: calc(100svh - clamp(18px, 3vw, 44px)) !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.has-frame-footer > .frame-topline { grid-row: 1; min-height: 0; }
.has-frame-footer > .frame-scroll-content {
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.frame-page .frame-scroll-content > .section,
body.frame-page .frame-scroll-content > .detail-layout,
body.frame-page .frame-scroll-content > .post-detail,
body.frame-page .frame-scroll-content > .contact,
body.frame-page .frame-scroll-content > .about-section,
body.frame-page .frame-scroll-content > .breed-scroll-frame {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}
body.frame-page .frame-scroll-content > .detail-layout,
body.frame-page .frame-scroll-content > .about-section,
body.frame-page .frame-scroll-content > .contact {
  min-height: 100% !important;
}
.public-page main.has-frame-footer > .frame-social-footer {
  position: static;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 253, 249, 0.12);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.frame-social-footer nav { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(18px, 4vw, 40px); }
.frame-social-footer a { padding: 8px 0; text-decoration: none; }
.frame-social-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.frame-social-footer a:focus-visible { outline: 2px solid var(--coffee); outline-offset: 3px; }
@media (max-width: 920px) {
  body.frame-page main.has-frame-footer { grid-template-rows: 64px minmax(0, 1fr) 54px !important; }
}
@media (max-width: 620px) {
  body.frame-page main.has-frame-footer { grid-template-rows: 62px minmax(0, 1fr) 50px !important; }
}

/* Blog media flows with the article, independently of the cat profile slider. */
body.detail-page #postDetail .post-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  height: auto;
  overflow: visible;
}
body.detail-page #postDetail .post-detail > * { flex: 0 0 auto; min-width: 0; }
body.detail-page #postDetail .post-media-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
}
body.detail-page #postDetail .post-media-block > img,
body.detail-page #postDetail .post-media-block > video {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(64svh, 620px);
  object-fit: contain;
}
body.detail-page #postDetail .post-text-block {
  display: block;
  width: 100%;
  height: auto;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  body.detail-page #postDetail .post-detail { padding: 18px 16px 28px; gap: 18px; }
  body.detail-page #postDetail .post-detail h1 { overflow-wrap: anywhere; }
  body.detail-page #postDetail .post-media-block { gap: 14px; }
}

/* The breed page uses the same glass background as the other inner pages. */
body.breed-page.frame-page main {
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(239, 196, 200, 0.24) 48%, rgba(152, 203, 213, 0.18)),
    rgba(255, 253, 249, 0.44);
}
body.breed-page .breed-scroll-frame,
body.breed-page .breed {
  background: transparent;
}
