/* ==========================================================================
   Fluffy Friends — "Soft Ink" design system
   Navy ink from the logo, bubblegum rose + periwinkle, cloud-white paper.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --ink: #18204a;
  --ink-2: #2c3566;
  --ink-soft: #4a5280;
  --muted: #6c7299;
  --paper: #f4f5fb;
  --paper-2: #eceefa;
  --card: #ffffff;
  --line: #e1e4f2;
  --line-2: #cfd4ec;

  --rose: #ff4f87;
  --rose-deep: #e83271;
  --rose-soft: #ffe3ec;
  --peri: #7b8bff;
  --peri-deep: #5466f0;
  --peri-soft: #e5e8ff;
  --sun: #ffd23f;
  --sun-soft: #fff4c9;

  --ok: #1f9d63;
  --ok-soft: #dff5ea;
  --bad: #e0414b;
  --bad-soft: #fde4e6;
  --wait: #b9860b;
  --wait-soft: #fff1cc;

  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pill: 999px;

  --sh-1: 0 1px 2px rgba(24, 32, 74, .06), 0 2px 8px rgba(24, 32, 74, .05);
  --sh-2: 0 10px 30px -12px rgba(24, 32, 74, .22);
  --sh-3: 0 30px 60px -20px rgba(24, 32, 74, .35);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--pill); }
.skip:focus { left: 8px; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--peri-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--rose { color: var(--rose-deep); }
.eyebrow--light { color: var(--sun); }
.h-xl { font-size: clamp(2.6rem, 7.4vw, 6.2rem); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
.h-l { font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 750; letter-spacing: -.03em; }
.h-m { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }
em.mark, .h-xl em, .h-l em, .footer__big em {
  font-style: normal; color: var(--rose);
  background: linear-gradient(transparent 68%, var(--sun-soft) 68% 92%, transparent 92%);
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .98rem; line-height: 1.1; text-decoration: none;
  border: 2px solid var(--bg); cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .ico { transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn:hover .ico { transform: translateX(3px) rotate(-6deg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--rose { --bg: var(--rose); }
.btn--rose:hover { --bg: var(--rose-deep); }
.btn--peri { --bg: var(--peri-deep); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { --bg: var(--card); border-color: var(--ink); box-shadow: var(--sh-1); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--danger { --bg: var(--bad-soft); --fg: var(--bad); border-color: transparent; }
.btn--danger:hover { --bg: var(--bad); --fg: #fff; }
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

.link-back {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; color: var(--ink-soft);
  transition: color .2s, gap .3s var(--spring);
}
.link-back:hover { color: var(--rose-deep); gap: .7rem; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: var(--pill);
  background: var(--peri-soft); color: var(--peri-deep);
  font-size: .8rem; font-weight: 700; line-height: 1.3;
}
.chip--rose { background: var(--rose-soft); color: var(--rose-deep); }
.chip--sun { background: var(--sun-soft); color: #8a6200; }
.chip--ink { background: var(--ink); color: #fff; }
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .8rem; border-radius: var(--pill); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending { background: var(--wait-soft); color: var(--wait); }
.status--accepted { background: var(--ok-soft); color: var(--ok); }
.status--rejected { background: var(--bad-soft); color: var(--bad); }
.status--pending::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  max-width: calc(var(--wrap) + 40px); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem .6rem .55rem 1rem;
  background: color-mix(in srgb, #fff 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--pill);
  box-shadow: var(--sh-1);
  transition: box-shadow .35s var(--ease), transform .45s var(--ease), padding .35s var(--ease);
}
.nav.is-scrolled .nav__bar { box-shadow: var(--sh-2); }
.nav.is-hidden .nav__bar { transform: translateY(calc(-100% - 20px)); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand__logo { height: 38px; width: auto; transition: transform .5s var(--spring); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.08); }
.brand__name { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.brand__name b { font-weight: 800; color: var(--rose); }
.brand--light .brand__logo { background: #fff; border-radius: 12px; padding: 4px; height: 44px; }
.brand--light .brand__name { color: #fff; }

.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__links > a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .55rem .75rem; border-radius: var(--pill);
  font-size: .93rem; font-weight: 650; text-decoration: none; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav__links > a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav__links > a[aria-current="page"] { color: var(--ink); background: var(--peri-soft); }
.nav__admin { color: var(--peri-deep) !important; }
.nav__sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 .35rem; }
.nav__cta { margin-left: .35rem; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--spring), top .3s; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: .3rem;
    padding: 100px var(--gutter) 40px;
    background: var(--ink);
    clip-path: circle(0 at calc(100% - 46px) 40px);
    transition: clip-path .7s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 46px) 40px); }
  .nav.is-open .nav__bar { background: #fff; transform: none; }
  .nav__links > a:not(.btn) {
    color: #fff; font-family: var(--f-display); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700;
    padding: .35rem 0; border-radius: 0; justify-content: flex-start;
    opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease), color .2s;
  }
  .nav__links > a.nav__admin, .nav__links > a.nav__user { font-size: 1.15rem; font-family: var(--f-body); color: #c9cdf0 !important; }
  .nav__links > a:not(.btn):hover, .nav__links > a[aria-current="page"] { background: none; color: var(--sun) !important; }
  .nav.is-open .nav__links > a { opacity: 1; transform: none; }
  .nav.is-open .nav__links > a:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav__links > a:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav__links > a:nth-child(4) { transition-delay: .12s; }
  .nav.is-open .nav__links > a:nth-child(5) { transition-delay: .16s; }
  .nav.is-open .nav__links > a:nth-child(n+6) { transition-delay: .2s; }
  .nav__sep { width: 100%; height: 1px; background: rgba(255,255,255,.14); margin: .8rem 0; }
  .nav__cta { margin: 1rem 0 0; align-self: flex-start; }
  body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   SECTIONS / LAYOUT
   ========================================================================== */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--white { background: var(--card); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .lead { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .75rem; }
.stack > * + * { margin-top: 1.25rem; }

/* generic page hero (inner pages) */
.phero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { margin-top: 1rem; max-width: 16ch; }
.phero .lead { margin-top: 1.1rem; }
.phero__deco {
  position: absolute; right: -6vw; top: -8vw; width: min(46vw, 560px); aspect-ratio: 1; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--peri-soft), transparent 60%), radial-gradient(circle at 70% 70%, var(--rose-soft), transparent 55%);
  filter: blur(4px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-30px, 30px) scale(1.06); } }
.phero--admin h1 { max-width: none; }
.phero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }

/* card */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--sh-1);
}
.card + .card { margin-top: 1.5rem; }
.card__title { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.card__title .ico { color: var(--rose); }

/* key-value info tiles */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.info {
  background: var(--paper); border-radius: var(--r); padding: 1rem 1.15rem;
  border: 1px solid transparent; transition: border-color .25s, transform .35s var(--spring);
}
.info:hover { border-color: var(--line-2); transform: translateY(-2px); }
.info--full { grid-column: 1 / -1; }
.info__label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.info__label .ico { color: var(--peri-deep); }
.info__value { margin-top: .35rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.info__value a { color: var(--rose-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* actions row */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.actions--split { justify-content: space-between; }
.actions .spacer { flex: 1; }
.danger { display: inline-flex; align-items: center; gap: .75rem; }
.danger__label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
form.inline { display: inline; margin: 0; }

/* empty */
.empty { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1rem; grid-column: 1 / -1; }
.empty__icon { width: 74px; height: 74px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--peri-soft); color: var(--peri-deep); }
.empty__icon .ico { width: 32px; height: 32px; }
.empty h3 { font-size: 1.5rem; }
.empty p { color: var(--muted); margin-top: .4rem; }

/* toasts */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem;
  max-width: min(560px, calc(100vw - 32px));
  padding: .9rem 1.2rem; border-radius: var(--r);
  background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--sh-3);
  animation: toastIn .6s var(--spring) both, toastOut .5s var(--ease) 6s forwards;
}
.toast--ok .ico { color: #7ef0b6; }
.toast--bad .ico { color: #ff98a4; }
.toast + .toast { bottom: 88px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 30px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 20px); visibility: hidden; } }

/* ==========================================================================
   FORMS (custom + Symfony default form_row markup)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid > .full, .form-group--full { grid-column: 1 / -1; }
.form-group, .fform > div:not(.form-actions):not(.form-grid):not(.form-section) { display: flex; flex-direction: column; gap: .45rem; }
.fform > div + div { margin-top: 1rem; }
.form-section { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 1rem; font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; }
.form-section:first-child { margin-top: 0; }
.form-section .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .82rem; font-family: var(--f-body); font-weight: 800; }
label, .form-label { font-size: .85rem; font-weight: 750; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea, .form-readonly {
  width: 100%; padding: .85rem 1rem;
  background: var(--paper); border: 2px solid transparent; border-radius: 14px;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
textarea { min-height: 130px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318204a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; cursor: pointer;
}
input:hover, select:hover, textarea:hover { background-color: var(--paper-2); }
input:focus, select:focus, textarea:focus { outline: none; background-color: #fff; border-color: var(--peri); box-shadow: 0 0 0 5px var(--peri-soft); }
::placeholder { color: #9aa0bf; }
.form-readonly { background: var(--peri-soft); color: var(--peri-deep); font-weight: 700; }
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 0;
  border-radius: 7px; border: 2px solid var(--line-2); background: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
input[type=checkbox]::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--spring); }
input[type=checkbox]:checked { background: var(--rose); border-color: var(--rose); }
input[type=checkbox]:checked::after { transform: rotate(-45deg) scale(1); }
.fform div:has(> input[type=checkbox]) { flex-direction: row !important; align-items: center; gap: .65rem; }
.fform div:has(> input[type=checkbox]) label { font-weight: 600; color: var(--ink-soft); }
ul:has(> li) .form-error, .fform ul, .form-group ul { list-style: none; margin: 0; padding: 0; }
.fform ul li, .form-group ul li, .form-error li, .form-errors li {
  color: var(--bad); font-size: .85rem; font-weight: 700; display: flex; gap: .35rem; align-items: center;
}
.fform ul li::before, .form-group ul li::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   TABLE
   ========================================================================== */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; box-shadow: var(--sh-1); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 760px; }
.tbl th { text-align: left; padding: 1rem 1.1rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper); white-space: nowrap; }
.tbl td { padding: 1rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl .t-id { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.tbl .t-strong { font-weight: 750; }
.tbl .t-text { color: var(--ink-soft); max-width: 26ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tbl .t-actions { display: flex; gap: .4rem; }

/* responsive table → cards */
@media (max-width: 760px) {
  .table-wrap--cards { background: none; border: 0; box-shadow: none; overflow: visible; }
  .table-wrap--cards table.tbl { min-width: 0; }
  .table-wrap--cards thead { display: none; }
  .table-wrap--cards tbody { display: grid; gap: 1rem; }
  .table-wrap--cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
  .table-wrap--cards td { border: 0; padding: .35rem 0; }
  .table-wrap--cards td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .table-wrap--cards td.t-wide { grid-column: 1 / -1; }
  .table-wrap--cards .t-text { max-width: none; }
  .table-wrap--cards td[colspan] { grid-column: 1 / -1; }
}

/* ==========================================================================
   MOTION: reveals
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }

/* split headline words */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + 120ms); }
.split.is-in .w > span { transform: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-top: 1.25rem; }
.hero .lead { margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__proof { display: flex; align-items: center; gap: .9rem; margin-top: 2.4rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero__dots { display: flex; }
.hero__dots span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--paper); margin-left: -10px; display: grid; place-items: center; color: #fff; }
.hero__dots span:first-child { margin-left: 0; background: var(--rose); }
.hero__dots span:nth-child(2) { background: var(--peri-deep); }
.hero__dots span:nth-child(3) { background: var(--sun); color: var(--ink); }
.hero__dots .ico { width: 18px; height: 18px; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px var(--r-xl) var(--r-xl);
  overflow: hidden; background: var(--peri-soft);
  box-shadow: var(--sh-3);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.is-loaded .hero__frame img { transform: scale(1); }
.hero__badge {
  position: absolute; left: -38px; bottom: 12%; width: 150px; height: 150px; border-radius: 50%;
  background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-2);
}
.hero__badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text { font-family: var(--f-body); font-size: 11.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; fill: var(--ink); }
.hero__badge .ico { width: 44px; height: 44px; color: var(--rose); animation: beat 1.8s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.hero__sticker {
  position: absolute; right: -14px; top: 12%;
  background: #fff; border-radius: var(--r); padding: .8rem 1rem; box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .9rem; rotate: 4deg;
  animation: float 6s ease-in-out infinite;
}
.hero__sticker i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); font-style: normal; }
.hero__sticker small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* marquee */
.marquee { position: relative; z-index: 2; background: var(--ink); color: #fff; padding: 1.1rem 0; overflow: hidden; rotate: -2deg; margin: 0 -3vw; width: calc(100% + 6vw); box-shadow: var(--sh-2); }
.marquee--alt { background: var(--rose); rotate: 1.5deg; margin-top: -2.4rem; z-index: 1; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee--alt .marquee__track { animation-direction: reverse; animation-duration: 40s; }
.marquee__track span { display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; white-space: nowrap; }
.marquee__track .ico { color: var(--sun); width: 1em; height: 1em; }
.marquee--alt .ico { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { background: var(--card); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat__num { font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: .6rem; color: var(--muted); font-weight: 650; }
.stat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c, var(--peri-soft)); transition: transform .6s var(--spring); }
.stat:hover::after { transform: scale(1.5); }
.stat:nth-child(1) { --c: var(--rose-soft); }
.stat:nth-child(1) .stat__num { color: var(--rose); }
.stat:nth-child(2) .stat__num { color: var(--peri-deep); }
.stat:nth-child(3) { --c: var(--sun-soft); }

/* intro split */
.split-media { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-media--flip { grid-template-columns: 1.05fr .95fr; }
.split-media--flip > :first-child { order: 2; }
.blob-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--peri-soft); }
.blob-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.blob-photo:hover img { transform: scale(1.05); }
.blob-photo--contain { background: radial-gradient(circle at 50% 60%, var(--rose-soft), var(--peri-soft)); }
.blob-photo--contain img { object-fit: contain; padding: 6%; }
.photo-tag { position: absolute; left: 1rem; bottom: 1rem; background: #fff; border-radius: var(--pill); padding: .5rem .9rem; font-weight: 700; font-size: .85rem; display: inline-flex; gap: .45rem; align-items: center; box-shadow: var(--sh-2); }
.photo-tag .ico { color: var(--rose); }

/* care stack (sticky stacking cards) */
.care { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.care__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.care__intro .blob-photo { margin-top: 2rem; aspect-ratio: 4 / 3; }
.care__list { display: grid; gap: 1.25rem; }
.care-card {
  position: sticky; top: calc(var(--nav-h) + 40px + var(--n) * 18px);
  background: var(--card); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line); box-shadow: var(--sh-2);
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  transform-origin: top center;
}
.care-card__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--peri-soft); color: var(--peri-deep); }
.care-card__icon .ico { width: 30px; height: 30px; }
.care-card:nth-child(2) .care-card__icon { background: var(--rose-soft); color: var(--rose); }
.care-card:nth-child(3) .care-card__icon { background: var(--sun-soft); color: #9a6c00; }
.care-card:nth-child(4) .care-card__icon { background: var(--ink); color: #fff; }
.care-card__n { font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.care-card h3 { font-size: 1.55rem; margin: .2rem 0 .6rem; }
.care-card p { color: var(--ink-soft); }

/* animal cards */
.pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.pet {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg); padding: 10px; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform .5s var(--spring), box-shadow .4s var(--ease);
}
.pet:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--sh-3); }
.pet:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg); }
.pet__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--peri-soft), var(--rose-soft)); }
.pet__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pet:hover .pet__photo img { transform: scale(1.08); }
.pet__photo .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 4.5rem; font-weight: 800; color: var(--peri-deep); opacity: .55; }
.pet__age {
  position: absolute; top: 12px; right: 12px; width: 62px; height: 62px; border-radius: 50%;
  background: var(--sun); color: var(--ink); display: grid; place-content: center; text-align: center; line-height: 1;
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; rotate: 10deg; box-shadow: var(--sh-1);
  transition: rotate .6s var(--spring), transform .6s var(--spring);
}
.pet__age small { display: block; font-family: var(--f-body); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.pet:hover .pet__age { rotate: -12deg; transform: scale(1.08); }
.pet__species { position: absolute; left: 12px; bottom: 12px; }
.pet__body { padding: 1rem .7rem .6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pet__name { font-family: var(--f-display); font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pet__name .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background .3s, color .3s, transform .5s var(--spring); }
.pet:hover .pet__name .go { background: var(--rose); color: #fff; transform: rotate(-45deg); }
.pet__breed { color: var(--muted); font-weight: 650; font-size: .92rem; }
.pet__desc { color: var(--ink-soft); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pet__meta { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; font-weight: 650; color: var(--muted); }
.pet__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pet__admin { position: absolute; z-index: 2; top: 20px; left: 20px; }

/* resources teaser */
.guide-cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.guide-cta .lead { color: #c4c9ee; }
.guide-cta ol { list-style: none; padding: 0; margin: 1.8rem 0 2rem; display: grid; gap: .9rem; counter-reset: s; }
.guide-cta li { counter-increment: s; display: flex; gap: .9rem; align-items: flex-start; color: #e4e6fb; }
.guide-cta li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.guide-cta .blob-photo { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--r-lg) var(--r-lg); }
.guide-cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--peri-deep); filter: blur(90px); opacity: .45; left: -120px; bottom: -160px; }
.guide-cta > * { position: relative; }

/* ==========================================================================
   ANIMALS INDEX
   ========================================================================== */
.filter {
  position: sticky; top: calc(var(--nav-h) + 6px); z-index: 20;
  display: grid; grid-template-columns: 1.2fr 1.2fr .7fr auto auto; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: .45rem; box-shadow: var(--sh-2);
}
.filter__field { position: relative; }
.filter__field .ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter input { border-radius: var(--pill); padding-left: 2.6rem; background: var(--paper); }
.filter__reset { display: inline-flex; align-items: center; padding: 0 .9rem; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: none; }
.filter__reset:hover { color: var(--rose-deep); }
.results-meta { margin: 1.6rem 0 1.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; color: var(--muted); font-weight: 650; }
.results-meta b { color: var(--ink); }
@media (max-width: 820px) {
  .filter { position: static; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); padding: .7rem; }
  .filter__field:first-child { grid-column: 1 / -1; }
  .filter .btn { grid-column: 1 / -1; }
  .filter__reset { grid-column: 1 / -1; justify-content: center; }
}

/* ==========================================================================
   ANIMAL SHOW
   ========================================================================== */
.pet-show { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: clamp(1.5rem, 4vw, 3rem); }
.pet-show__media { position: sticky; top: calc(var(--nav-h) + 30px); }
.pet-show__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, var(--peri-soft), var(--rose-soft)); box-shadow: var(--sh-3); }
.pet-show__frame img { width: 100%; height: 100%; object-fit: cover; }
.pet-show__frame .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 9rem; font-weight: 800; color: var(--peri-deep); opacity: .5; }
.pet-show__media .pet__age { width: 92px; height: 92px; font-size: 2rem; top: -20px; right: -16px; }
.pet-show h1 { margin: 1rem 0 1.1rem; }
.pet-show .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.adopt-box {
  margin-top: 1.5rem; padding: 1.4rem 1.5rem; border-radius: var(--r-lg);
  background: var(--rose); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  position: relative; overflow: hidden;
}
.adopt-box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.14); }
.adopt-box strong { font-family: var(--f-display); font-size: 1.4rem; display: block; line-height: 1.15; }
.adopt-box span { opacity: .9; font-size: .93rem; }
.adopt-box > * { position: relative; z-index: 1; }
.adopt-box--ink { background: var(--ink); }

/* ==========================================================================
   SHELTERS
   ========================================================================== */
.shelters { display: grid; gap: 1rem; counter-reset: sh; }
.shelter {
  counter-increment: sh;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.6rem;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .5s var(--spring), box-shadow .4s, border-color .3s;
}
.shelter::before { content: counter(sh, decimal-leading-zero); font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; color: var(--line-2); transition: color .3s; line-height: 1; }
.shelter:hover { transform: translateX(8px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.shelter:hover::before { color: var(--rose); }
.shelter h3 { font-size: 1.5rem; }
.shelter p { color: var(--muted); display: flex; align-items: center; gap: .4rem; margin-top: .35rem; font-weight: 600; }
.shelter__actions { display: flex; gap: .5rem; align-items: center; }
.shelter__go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background .3s, color .3s, transform .5s var(--spring); }
.shelter:hover .shelter__go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
@media (max-width: 640px) {
  .shelter { grid-template-columns: 1fr; gap: .6rem; }
  .shelter::before { font-size: 1.6rem; }
  .shelter__go { display: none; }
}
.mini-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.mini-pet { display: flex; align-items: center; gap: .8rem; padding: .6rem; border-radius: var(--r); background: var(--paper); text-decoration: none; color: inherit; transition: background .25s, transform .4s var(--spring); }
.mini-pet:hover { background: var(--peri-soft); transform: translateY(-2px); }
.mini-pet img, .mini-pet .fallback { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--rose-soft); display: grid; place-items: center; font-weight: 800; color: var(--rose-deep); }
.mini-pet b { display: block; font-family: var(--f-display); font-size: 1.1rem; }
.mini-pet small { color: var(--muted); font-weight: 600; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-hero { position: relative; margin: clamp(1rem, 3vw, 2rem) auto 0; }
.about-hero__img { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 21 / 9; min-height: 340px; }
.about-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,32,74,0) 30%, rgba(24,32,74,.82)); }
.about-hero__text { position: absolute; left: clamp(1.4rem, 4vw, 3.2rem); right: clamp(1.4rem, 4vw, 3.2rem); bottom: clamp(1.4rem, 4vw, 3rem); color: #fff; z-index: 1; }
.about-hero__text h1 { margin-top: .6rem; }
.about-hero__text p { color: #dfe2fb; margin-top: .8rem; max-width: 52ch; font-size: 1.1rem; }
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); }
.story__big { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }
.story__body p + p { margin-top: 1.1rem; }
.story__body p { color: var(--ink-soft); font-size: 1.06rem; }
.quote {
  position: relative; margin: 0; background: var(--sun); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4rem);
  font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  overflow: hidden;
}
.quote::before { content: "“"; position: absolute; right: 2rem; top: -2.5rem; font-size: 14rem; line-height: 1; color: rgba(24,32,74,.1); }
.quote footer { margin-top: 1.4rem; font-family: var(--f-body); font-size: 1rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; transition: transform .5s var(--spring), box-shadow .4s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.value__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--peri-soft); color: var(--peri-deep); margin-bottom: 1.2rem; }
.value:nth-child(2) .value__icon { background: var(--rose-soft); color: var(--rose); }
.value:nth-child(3) .value__icon { background: var(--sun-soft); color: #9a6c00; }
.value h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.value p { color: var(--ink-soft); }
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(1.6rem, 4vw, 2.6rem); }
.founder__avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; flex: none; }
.founder h3 { font-size: 1.8rem; }
.founder p { color: #c4c9ee; margin-top: .3rem; max-width: 60ch; }

/* ==========================================================================
   RESOURCES (guide)
   ========================================================================== */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: .25rem; }
.toc strong { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 12px; text-decoration: none; font-weight: 650; color: var(--ink-soft); transition: background .2s, color .2s; }
.toc a .ico { color: var(--muted); transition: color .2s; }
.toc a:hover { background: var(--card); color: var(--ink); }
.toc a.is-active { background: var(--ink); color: #fff; }
.toc a.is-active .ico { color: var(--sun); }
.chapter { scroll-margin-top: calc(var(--nav-h) + 30px); }
.chapter + .chapter { margin-top: clamp(4rem, 8vw, 6rem); }
.chapter h2 { margin-top: .8rem; }
.chapter > .lead { margin-top: 1rem; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-top: 2rem; }
.tip { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; position: relative; transition: transform .45s var(--spring), box-shadow .4s, border-color .3s; }
.tip:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.tip__n { font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: var(--rose); }
.tip h3 { font-size: 1.2rem; margin: .45rem 0 .55rem; line-height: 1.2; }
.tip p { color: var(--ink-soft); font-size: .97rem; }
.tip ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.tip ul li + li { margin-top: .25rem; }
.tip--wide { grid-column: 1 / -1; }
.feed { margin-top: 2rem; display: grid; gap: .75rem; }
.feed details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .3s; }
.feed details[open] { box-shadow: var(--sh-2); }
.feed summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; }
.feed summary::-webkit-details-marker { display: none; }
.feed summary .sp { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--peri-soft); font-size: 1.5rem; }
.feed summary small { display: block; font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--muted); }
.feed summary::after { content: "+"; margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-family: var(--f-body); font-size: 1.3rem; transition: transform .4s var(--spring), background .2s, color .2s; flex: none; }
.feed details[open] summary::after { transform: rotate(45deg); background: var(--rose); color: #fff; }
.feed__body { padding: 0 1.4rem 1.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.feed__body div { background: var(--paper); border-radius: var(--r); padding: 1rem 1.1rem; }
.feed__body h4 { font-family: var(--f-body); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--peri-deep); margin-bottom: .45rem; }
.feed__body h4.no { color: var(--bad); }
.feed__body p, .feed__body li { font-size: .95rem; color: var(--ink-soft); }
.feed__body ul { margin: 0; padding-left: 1.05rem; }
.note { margin-top: 1.25rem; display: flex; gap: .75rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--sun-soft); color: #6d5000; font-weight: 600; font-size: .95rem; }
.note .ico { flex: none; margin-top: .15rem; }
.train { display: grid; grid-template-columns: 1fr .8fr; gap: 1.5rem; margin-top: 2rem; align-items: start; }
.train .tips { margin-top: 0; grid-template-columns: 1fr; }
.train .blob-photo { aspect-ratio: 3 / 4; position: sticky; top: calc(var(--nav-h) + 40px); border-radius: 200px 200px var(--r-lg) var(--r-lg); }
.place { display: flex; gap: .4rem; align-items: flex-start; margin-top: .8rem; font-size: .88rem; font-weight: 700; color: var(--peri-deep); }
.closing { margin-top: clamp(4rem, 8vw, 6rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--peri-deep); color: #fff; border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); }
.closing p { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 650; line-height: 1.25; max-width: 30ch; display: flex; align-items: center; gap: .8rem; }
.closing img { width: 44px; height: 44px; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.contact h1 { margin: 1rem 0 1.2rem; }
.contact__list { display: grid; gap: .75rem; margin-top: 2.2rem; }
.contact__item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .45s var(--spring), border-color .3s; }
a.contact__item:hover { transform: translateX(6px); border-color: var(--rose); }
.contact__item i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); font-style: normal; flex: none; }
.contact__item small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__item b { font-weight: 750; }

/* ==========================================================================
   AUTH (log in / sign up tabs)
   ========================================================================== */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h) - 40px); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2rem, 5vw, 3rem); }
.auth__art { position: relative; border-radius: var(--r-xl); overflow: hidden; height: 100%; min-height: 560px; background: var(--ink); color: #fff; padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: flex-end; }
.auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(24,32,74,.92)); }
.auth__art > div { position: relative; z-index: 1; }
.auth__art h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: .8rem; }
.auth__art p { color: #d3d7f6; margin-top: .8rem; max-width: 40ch; }
.auth__panel { max-width: 480px; width: 100%; margin-inline: auto; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--paper-2); border-radius: var(--pill); margin: 1.6rem 0; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: .8rem; border-radius: var(--pill); font-weight: 750; cursor: pointer; color: var(--muted); transition: color .3s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: var(--pill); background: var(--ink); transition: transform .55s var(--spring); }
.tabs[data-active="1"] .tabs__pill { transform: translateX(100%); background: var(--rose); }
.panel { animation: panelIn .55s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel .fform > div > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel .fform div:has(> input[type=checkbox]) > label { position: static; width: auto; height: auto; clip: auto; }
.auth__switch { text-align: center; margin-top: 1.2rem; color: var(--muted); font-weight: 600; font-size: .94rem; }
.auth__switch button { border: 0; background: none; color: var(--rose-deep); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth--single { grid-template-columns: 1fr; min-height: 0; }
.mb-3 { margin-bottom: 0; }

/* ==========================================================================
   PROFILE / ADMIN
   ========================================================================== */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.avatar { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; background: var(--rose); color: #fff; font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; rotate: -6deg; box-shadow: var(--sh-2); flex: none; }
.avatar--sm { width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem; rotate: 0deg; box-shadow: none; background: var(--peri-deep); }
.msgs { display: grid; gap: 1rem; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; transition: box-shadow .3s, transform .45s var(--spring); }
.msg:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.msg__head { display: flex; align-items: center; gap: .9rem; }
.msg__who { flex: 1; min-width: 0; }
.msg__who b { display: block; font-weight: 800; }
.msg__who small { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.msg__id { font-weight: 800; color: var(--muted); font-size: .85rem; }
.msg h3 { font-size: 1.25rem; margin: 1rem 0 .4rem; }
.msg p { color: var(--ink-soft); white-space: pre-line; }
.msg .actions { margin-top: 1.1rem; }

.narrow { max-width: 860px; }
.dev-note code { display: block; margin-top: .4rem; padding: .7rem .9rem; border-radius: 12px; background: var(--paper); font-size: .85rem; overflow-wrap: anywhere; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: #c4c9ee; margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; position: relative; }
.footer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--rose); filter: blur(140px); opacity: .25; right: -160px; top: -200px; }
.footer > * { position: relative; }
.footer__cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__big { font-family: var(--f-display); color: #fff; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.footer__big em { background: none; color: var(--sun); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3rem; }
.footer__brand p { margin-top: 1rem; max-width: 30ch; }
.footer h4 { font-family: var(--f-body); color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: .55rem; }
.footer__grid a:not(.brand) { text-decoration: none; transition: color .2s, transform .3s var(--spring); width: fit-content; }
.footer__grid a:not(.brand):hover { color: var(--sun); transform: translateX(4px); }
.socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer__grid .socials a { width: 44px !important; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .25s, transform .45s var(--spring) !important; }
.socials a:hover { background: var(--rose); transform: translateY(-4px) rotate(-8deg) !important; color: #fff !important; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem 1.8rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.footer__bottom span { display: inline-flex; align-items: center; gap: .4rem; }
.ico--beat { color: var(--rose); animation: beat 1.8s ease-in-out infinite; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid, .split-media, .split-media--flip, .care, .pet-show, .guide, .contact, .auth, .story, .guide-cta, .train { grid-template-columns: 1fr; }
  .split-media--flip > :first-child { order: 0; }
  .hero__media { max-width: 520px; margin: 1rem auto 0; width: 100%; }
  .care__intro, .pet-show__media, .toc, .train .blob-photo { position: static; }
  .care__intro .blob-photo { display: none; }
  .toc { display: flex; overflow-x: auto; gap: .4rem; padding-bottom: .4rem; scrollbar-width: none; position: sticky; top: calc(var(--nav-h) + 4px); z-index: 10; background: var(--paper); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-block: .5rem; }
  .toc strong { display: none; }
  .toc a { white-space: nowrap; background: var(--card); border: 1px solid var(--line); }
  .auth__art { min-height: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .guide-cta .blob-photo { max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --nav-h: 68px; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 1rem; }
  .stat__label { margin: 0; }
  .hero__badge { width: 112px; height: 112px; left: -8px; }
  .hero__badge text { font-size: 13.5px; }
  .hero__badge .ico { width: 32px; height: 32px; }
  .hero__sticker { right: -4px; }
  .care-card { grid-template-columns: 1fr; position: static; }
  .pet-show__media .pet__age { right: 8px; top: 8px; width: 74px; height: 74px; font-size: 1.6rem; }
  .about-hero__img { aspect-ratio: auto; height: 460px; }
  .footer__grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .danger { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  @view-transition { navigation: none; }
}

/* utility: make a link cover its positioned card */
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pet-wrap:nth-child(even) .pet:hover { transform: translateY(-6px) rotate(.6deg); }

/* marquee band clip (rotated strips must not widen the page) */
.bands { overflow: hidden; padding-block: 2.2rem; margin-block: -2.2rem; }
/* home: 4-up strip */
.pets--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pets--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pets--4 { grid-template-columns: 1fr; } }
/* admins have more links: keep the bar on one line */
@media (min-width: 1081px) and (max-width: 1520px) {
  .nav--admin .nav__cta { display: none; }
  .nav--admin .nav__links > a .ico { display: none; }
  .nav--admin .nav__links > a:not(.btn) { padding-inline: .6rem; font-size: .9rem; }
  .nav--admin .brand__name { display: none; }
}
/* backdrop-filter would trap the fixed mobile menu inside the bar */
@media (max-width: 1080px) {
  .nav__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
