/* =========================================================
   PROJECT PAWPRINT — design system
   Forest green · warm cream · butter yellow · a little rose
   ========================================================= */

:root {
  --cream: oklch(97.4% 0.014 88);
  --cream-2: oklch(94.6% 0.022 88);
  --paper: oklch(99.3% 0.006 88);
  --line: oklch(89% 0.022 100);

  --forest: oklch(40% 0.075 158);        /* primary */
  --forest-hi: oklch(46% 0.085 158);
  --forest-deep: oklch(27% 0.05 160);    /* ink / dark surfaces */
  --forest-ink: oklch(23% 0.035 160);
  --sage: oklch(90% 0.045 150);
  --sage-2: oklch(82% 0.06 150);
  --moss: oklch(62% 0.08 150);

  --butter: oklch(88% 0.12 92);
  --butter-deep: oklch(78% 0.13 85);
  --rose: oklch(72% 0.12 10);
  --rose-soft: oklch(93% 0.035 10);
  --danger: oklch(55% 0.17 25);

  --ink: var(--forest-ink);
  --ink-2: oklch(42% 0.03 160);
  --ink-3: oklch(58% 0.025 150);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --pill: 999px;
  --shadow: 0 1px 2px oklch(23% 0.035 160 / .05), 0 10px 30px -12px oklch(23% 0.035 160 / .16);
  --shadow-lg: 0 2px 4px oklch(23% 0.035 160 / .05), 0 30px 60px -24px oklch(27% 0.05 160 / .35);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; font-variation-settings: "SOFT" 100, "WONK" 0; }
p { margin: 0; text-wrap: pretty; }
em.serif, .serif-i { font-family: var(--font-display); font-style: italic; font-weight: 500; }
::selection { background: var(--butter); color: var(--forest-ink); }
:focus-visible { outline: 3px solid var(--butter-deep); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.eyebrow .ico { color: var(--butter-deep); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--forest); --f: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--pill); cursor: pointer; overflow: hidden; isolation: isolate;
  background: var(--b); color: var(--f); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--spring), box-shadow .35s var(--ease), background .25s;
  box-shadow: 0 10px 24px -12px oklch(40% 0.075 158 / .8);
}
.btn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 0; height: 0; border-radius: 50%; background: oklch(100% 0 0 / .14); transform: translate(-50%, -50%); transition: width .6s var(--ease), height .6s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px oklch(40% 0.075 158 / .9); }
.btn:hover::before { width: 260%; height: 600%; }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .45s var(--spring); }
.btn:hover .ico--move { transform: translateX(4px); }
.btn:hover .ico--paw { transform: rotate(-18deg) scale(1.15); }
.btn--butter { --b: var(--butter); --f: var(--forest-ink); box-shadow: 0 10px 24px -12px oklch(78% 0.13 85 / .9); }
.btn--ghost { --b: transparent; --f: var(--forest-ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn--ghost::before { background: var(--sage); opacity: .5; }
.btn--light { --b: var(--paper); --f: var(--forest-ink); box-shadow: none; }
.btn--danger { --b: var(--rose-soft); --f: var(--danger); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; gap: 7px; }
.btn--block { width: 100%; }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 1000; padding: 12px var(--gutter) 0; animation: nav-in .7s var(--ease) both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-14px); } }
.nav__bar {
  position: relative; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 10px 0 18px; border-radius: var(--pill);
  background: oklch(99.3% 0.006 88 / .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .8), var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--forest-ink); }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--forest); color: var(--butter); transition: transform .6s var(--spring); }
.brand__mark .ico { width: 22px; height: 22px; }
.brand:hover .brand__mark { transform: rotate(-14deg) scale(1.06); }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s, background .25s; }
.nav__links a:hover { color: var(--forest-ink); background: var(--cream-2); }
.nav__links a.is-active { color: var(--forest-ink); background: var(--sage); }
.nav__sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav__links .nav__cta { background: var(--forest); color: var(--paper); padding-inline: 16px; }
.nav__links .nav__cta:hover { background: var(--forest-hi); color: var(--paper); }
.nav__links .nav__out { color: var(--danger); }
.nav__links .nav__out:hover { background: var(--rose-soft); color: var(--danger); }
.burger { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: var(--forest); cursor: pointer; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .45s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.nav.is-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top;
    transition: opacity .3s var(--ease), transform .45s var(--spring), visibility 0s .3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { padding: 13px 16px; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav__sep { width: auto; height: 1px; margin: 6px 8px; }
}

/* ---------- paw trail (walking prints) ---------- */
.trail { position: absolute !important; z-index: 0; pointer-events: none; display: block; width: 520px; height: 220px; transform: rotate(-14deg); }
.trail span { position: absolute; left: calc(var(--i) * 62px); top: calc(50% + (var(--i) * 1) * 0px); color: var(--forest); opacity: 0; animation: step 6.4s ease-in-out infinite; animation-delay: calc(var(--i) * .45s); }
.trail span:nth-child(odd) { top: 30%; transform: rotate(78deg); }
.trail span:nth-child(even) { top: 56%; transform: rotate(98deg); }
.trail .ico { width: 30px; height: 30px; }
@keyframes step { 0% { opacity: 0; scale: .6; } 8% { opacity: .22; scale: 1; } 55% { opacity: .22; } 75%, 100% { opacity: 0; } }
.trail--light span { color: var(--butter); }
.trail--light span { animation-name: step-light; }
@keyframes step-light { 0% { opacity: 0; scale: .6; } 8% { opacity: .5; scale: 1; } 55% { opacity: .5; } 75%, 100% { opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ================= HOME HERO ================= */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.1vw, 5.5rem); line-height: .95; letter-spacing: -0.035em; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--forest); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 99px; background: var(--butter); z-index: -1; transform-origin: left; animation: underline 1s .9s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .trail { left: 34%; top: 2%; }

.hero__media { position: relative; aspect-ratio: 1 / 1.02; }
.blob {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
  animation: morph 14s ease-in-out infinite alternate;
  box-shadow: var(--shadow-lg);
}
.blob img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: breathe 14s ease-in-out infinite alternate; }
@keyframes morph {
  0% { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
  50% { border-radius: 44% 56% 60% 40% / 42% 58% 42% 58%; }
  100% { border-radius: 52% 48% 38% 62% / 60% 40% 60% 40%; }
}
@keyframes breathe { to { transform: scale(1.13) translate(-1.5%, 1%); } }
.blob-ring { position: absolute; inset: -18px; border: 2px dashed oklch(40% 0.075 158 / .25); border-radius: 50%; animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: var(--paper); border-radius: var(--pill); box-shadow: var(--shadow-lg); font-weight: 700;
  animation: bob 5s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-3); line-height: 1.2; }
.float-chip__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sage); color: var(--forest); }
.float-chip__ico--butter { background: var(--butter); color: var(--forest-ink); }
.float-chip--a { left: -6%; bottom: 14%; }
.float-chip--b { right: -3%; top: 8%; animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* stats */
.stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; color: var(--forest-ink); }
.stat__label { margin-top: 6px; font-size: .85rem; color: var(--ink-3); font-weight: 600; }

/* ================= SECTIONS ================= */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-top: 10px; }

/* filter pills */
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: var(--pill); background: var(--paper); box-shadow: var(--shadow); }
.filter { min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--pill); background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: background .3s var(--ease), color .2s, transform .35s var(--spring); }
.filter:hover { background: var(--cream-2); color: var(--forest-ink); }
.filter:active { transform: scale(.95); }
.filter.is-active { background: var(--forest); color: var(--paper); }

/* pet grid + card */
.pet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.pet { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); transition: transform .6s var(--ease), box-shadow .5s var(--ease); view-transition-name: var(--vt); }
.pet:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.pet__img { position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: calc(var(--r-lg) - 8px); background: var(--sage); }
.pet__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pet:hover .pet__img img { transform: scale(1.08); }
.pet__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(23% 0.035 160 / .35), transparent 45%); opacity: 0; transition: opacity .5s; }
.pet:hover .pet__img::after { opacity: 1; }
.pet__peek { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: var(--paper); font-weight: 700; font-size: .85rem; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--spring); }
.pet:hover .pet__peek { opacity: 1; transform: none; }
.pet__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 12px 10px; flex: 1; }
.pet__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pet__name { font-size: 1.75rem; }
.pet__name a { text-decoration: none; }
.pet__age { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-3); }
.pet__desc { color: var(--ink-2); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pet__actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.pet.is-hidden { display: none; }
.pet.reveal { transform: none; }
.pet.reveal.is-in { animation: rise .9s var(--ease) backwards; animation-delay: var(--d, 0ms); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill); font-weight: 700; font-size: .76rem; letter-spacing: .04em; text-transform: capitalize; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--available { background: var(--sage); color: var(--forest); }
.badge--available::before { animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(40% 0.075 158 / .5); } 100% { box-shadow: 0 0 0 7px oklch(40% 0.075 158 / 0); } }
.badge--pending { background: oklch(94% 0.07 92); color: oklch(45% 0.09 75); }
.badge--adopted { background: var(--rose-soft); color: oklch(48% 0.13 10); }
.badge--float { position: absolute; top: 12px; right: 12px; z-index: 1; box-shadow: var(--shadow); }

.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 64px 20px; text-align: center; color: var(--ink-3); background: var(--paper); border-radius: var(--r-lg); }
.empty .ico { width: 48px; height: 48px; color: var(--sage-2); }

/* CTA band */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(36px, 6vw, 72px); border-radius: clamp(28px, 4vw, 48px); background: var(--forest-deep); color: var(--paper); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.cta h2 em { color: var(--butter); font-style: italic; font-weight: 500; }
.cta p { margin-top: 12px; color: oklch(100% 0 0 / .72); max-width: 46ch; }
.cta .trail { right: -60px; bottom: -40px; }
.cta > * { position: relative; }

/* ================= INNER PAGE HERO ================= */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -0.035em; margin: 14px 0 16px; }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--forest); }
.page-hero .trail { right: -40px; top: 10%; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: var(--pill); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: color .2s, transform .4s var(--spring); }
.back:hover { color: var(--forest-ink); transform: translateX(-3px); }

/* ================= CARDS / LAYOUTS ================= */
.card { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.card--sage { background: var(--sage); box-shadow: none; }
.card--forest { background: var(--forest-deep); color: var(--paper); box-shadow: none; overflow: hidden; }
.card--forest .muted { color: oklch(100% 0 0 / .66); }
.card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 8px 0 14px; }
.card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.stack { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rows { display: grid; gap: 4px; }
.row-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sage); color: var(--forest); }
.card--forest .row-item { border-color: oklch(100% 0 0 / .14); }
.card--forest .row-item__ico { background: oklch(100% 0 0 / .1); color: var(--butter); }
.row-item strong { display: block; font-weight: 700; }
.row-item span { color: var(--ink-2); font-size: .95rem; }
.card--forest .row-item span { color: oklch(100% 0 0 / .72); }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.callout { margin-top: 18px; padding: 18px 20px; border-radius: var(--r); background: var(--butter); color: var(--forest-ink); }
.callout h3 { font-size: 1.25rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); font-weight: 700; transition: transform .5s var(--spring), background .3s; }
.chip:hover { transform: translateY(-4px) rotate(-1deg); background: var(--sage); }
.chip .row-item__ico { width: 44px; height: 44px; }

.stat-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(16px, 2.4vw, 28px); }
.stat-tile { padding: 22px 24px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.stat-tile .stat__num { color: var(--forest); }

/* ================= DETAILS ================= */
.details { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.photo { position: sticky; top: 100px; }
.photo__frame { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 46% 54% 42% 58% / 48% 46% 54% 52%; animation: morph 16s ease-in-out infinite alternate; box-shadow: var(--shadow-lg); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; animation: zoom-in 1.6s var(--ease) both; }
@keyframes zoom-in { from { transform: scale(1.18); } }
.photo .badge--float { top: 6%; right: 8%; font-size: .85rem; padding: 7px 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.fact { padding: 14px 16px; border-radius: var(--r); background: var(--cream); display: grid; gap: 4px; transition: background .3s, transform .4s var(--spring); }
.fact:hover { background: var(--sage); transform: translateY(-2px); }
.fact--full { grid-column: 1 / -1; }
.fact .label { display: flex; align-items: center; gap: 6px; }
.fact .label .ico { color: var(--forest); }
.fact__value { font-weight: 700; font-size: 1.05rem; }
.yes { color: var(--forest); } .no { color: var(--danger); }
.actions { display: grid; gap: 10px; }
.admin-row { display: flex; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ================= FORMS ================= */
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.field label small { font-weight: 500; color: var(--ink-3); }
.input, .field input:not([type="file"]):not([type="submit"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: var(--paper); box-shadow: 0 0 0 4px oklch(40% 0.075 158 / .12); }
.field ::placeholder { color: var(--ink-3); opacity: .8; }
.field input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed var(--sage-2); border-radius: 14px; background: oklch(90% 0.045 150 / .35); cursor: pointer; font-size: .92rem; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 16px; border: 0; border-radius: var(--pill); background: var(--forest); color: var(--paper); font-weight: 700; cursor: pointer; }
.hint { font-size: .82rem; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form { display: grid; gap: 18px; }
.divider { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.alert { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--rose-soft); color: oklch(42% 0.14 15); font-weight: 600; font-size: .94rem; animation: shake .5s var(--ease); }
.alert--ok { background: var(--sage); color: var(--forest); animation: rise .6s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ================= AUTH (login / register) ================= */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__art { position: relative; overflow: hidden; background: var(--forest-deep); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 48px); }
.auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: breathe 18s ease-in-out infinite alternate; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(23% 0.035 160 / .92), oklch(23% 0.035 160 / .1) 60%); }
.auth__art > * { position: relative; z-index: 1; }
.auth__art .brand { color: var(--paper); }
.auth__art blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.auth__art blockquote em { color: var(--butter); }
.auth__art .trail { left: 10%; top: 30%; }
.auth__main { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.auth__card { width: min(480px, 100%); }
.auth__card--wide { width: min(640px, 100%); }
.auth__card h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 10px 0 10px; }
.auth__alt { margin-top: 22px; text-align: center; color: var(--ink-2); }
.auth__alt a { font-weight: 700; color: var(--forest); }

/* ================= PROFILE / DASHBOARD ================= */
.profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.avatar { display: grid; justify-items: center; text-align: center; gap: 12px; }
.avatar__img { position: relative; width: 150px; height: 150px; }
.avatar__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--sage-2); }
.avatar__badge { position: absolute; right: 2px; bottom: 6px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--butter); color: var(--forest-ink); box-shadow: 0 0 0 4px var(--paper); animation: bob 4s ease-in-out infinite; }
.avatar h2 { font-size: 1.9rem; margin: 6px 0 0; }

.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dash-stat { position: relative; overflow: hidden; padding: 22px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); transition: transform .5s var(--spring); }
.dash-stat:hover { transform: translateY(-4px); }
.dash-stat__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sage); color: var(--forest); margin-bottom: 16px; }
.dash-stat:nth-child(2) .dash-stat__ico { background: var(--butter); color: var(--forest-ink); }
.dash-stat:nth-child(4) .dash-stat__ico { background: var(--rose-soft); color: oklch(48% 0.13 10); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.table th { text-align: left; padding: 12px 14px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .25s; }
.table tbody tr:hover { background: var(--cream); }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; }
.person span { font-size: .85rem; color: var(--ink-3); }
.count-pill { padding: 6px 14px; border-radius: var(--pill); background: var(--sage); color: var(--forest); font-weight: 700; font-size: .85rem; }

/* form page (create / update) */
.form-page { padding: 24px 0 clamp(64px, 9vw, 120px); }
.form-card { max-width: 760px; margin: 0 auto; }
.form-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.form-card__head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.form-card__thumb { width: 84px; height: 84px; flex: none; border-radius: 26px; object-fit: cover; box-shadow: var(--shadow); }
.form-card__thumb--icon { display: grid; place-items: center; background: var(--forest); color: var(--butter); }
.form-card__thumb--icon .ico { width: 40px; height: 40px; }
.form-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 6px; }

/* ================= FOOTER ================= */
.footer { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); background: var(--forest-deep); color: var(--paper); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.footer .trail { right: -80px; top: -60px; }
.footer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; gap: 40px; padding-block: clamp(56px, 8vw, 96px) 40px; }
.footer .brand { color: var(--paper); font-size: 1.6rem; }
.footer .brand__mark { background: var(--butter); color: var(--forest-ink); }
.footer__tag { margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.footer__tag em { color: var(--butter); }
.footer h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--butter); margin-bottom: 14px; }
.footer__links { display: grid; gap: 6px; }
.footer__links a { width: fit-content; padding: 4px 0; text-decoration: none; color: oklch(100% 0 0 / .78); font-weight: 600; transition: color .2s, transform .4s var(--ease); }
.footer__links a:hover { color: var(--paper); transform: translateX(5px); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--paper); box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / .2); transition: background .3s, color .3s, transform .45s var(--spring), box-shadow .3s; }
.socials a:hover { background: var(--butter); color: var(--forest-ink); box-shadow: none; transform: translateY(-4px) rotate(-6deg); }
.socials .ico { width: 20px; height: 20px; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; border-top: 1px solid oklch(100% 0 0 / .12); font-size: .88rem; color: oklch(100% 0 0 / .6); }
.footer__bottom .heart { color: var(--rose); display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero__grid, .details, .split, .split--even, .profile, .auth { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 92%; margin: 10px auto 0; }
  .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo { position: relative; top: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth__art { min-height: 300px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pet-grid, .form-grid, .stat-band { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .float-chip { padding: 8px 14px 8px 8px; font-size: .88rem; }
  .float-chip__ico { width: 34px; height: 34px; }
  .float-chip--a { left: -2%; } .float-chip--b { right: -2%; }
  .filters { width: 100%; }
  .filter { flex: 1; padding: 0 10px; }
  .trail { display: none; }
  .hero .trail { display: block; width: 300px; left: auto; right: -150px; top: -30px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter { white-space: nowrap; flex: none; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .trail { display: none; }
}
