/* Petey's Promise – Rescue & Sanctuary
   Brand palette taken from the Petey's Promise logo (/images/image.png):
   black stage, metallic gold, platinum silver, script navy. */
@import url("https://fonts.googleapis.com/css2?family=Playball&display=swap");
:root{
  --navy:#1b2552;--navy-2:#26336b;--navy-ink:#0b0b0d;
  --black:#0b0b0d;--black-2:#151518;--silver:#c9ccd3;
  --blue:#b8862a;--blue-dark:#1b2552;--blue-tint:#f6eedb;
  --gold:#d4a640;--gold-light:#f5e8c8;--gold-ink:#7d5a12;
  --gold-grad:linear-gradient(135deg,#f8e9ae 0%,#e2bb57 32%,#b8862a 64%,#ecd078 100%);
  --ff-script:"Playball","Brush Script MT",cursive;
  --red:#b8322a;
  --paper:#fbf8f3;--white:#fff;--gray:#f0eee9;--gray-2:#e2ded6;
  --ink:#1b2433;--muted:#4f5a6b;--line:#ddd8cf;
  --ff-display:"Bitter",Georgia,"Times New Roman",serif;
  --ff-body:"Source Sans 3","Source Sans Pro",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r-sm:8px;--r:14px;--r-lg:22px;
  --shadow:0 1px 2px rgba(19,41,75,.06),0 8px 24px -12px rgba(19,41,75,.18);
  --shadow-lg:0 2px 4px rgba(19,41,75,.06),0 22px 48px -20px rgba(19,41,75,.32);
  --wrap:1180px;--gutter:clamp(1.1rem,4vw,2rem);
  --sec:clamp(3.5rem,8vw,6.5rem);
  --ease:cubic-bezier(.2,.7,.2,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:90px}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.65 var(--ff-body);overflow-x:hidden;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
img{height:auto}
a{color:var(--blue-dark);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--navy)}
:focus-visible{outline:3px solid #c08f2c;outline-offset:3px;border-radius:4px}
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--navy);color:#fff;padding:.7rem 1rem;border-radius:var(--r-sm);font-weight:600}
.skip:focus{top:1rem;color:#fff}

/* Type */
h1,h2,h3,h4{font-family:var(--ff-display);color:var(--navy);font-weight:700;line-height:1.15;letter-spacing:-.01em;margin:0 0 .6em;text-wrap:balance}
h1{font-size:clamp(2.1rem,4.6vw,3.3rem)}
h2{font-size:clamp(1.65rem,3.1vw,2.4rem)}
h3{font-size:clamp(1.15rem,1.8vw,1.35rem);font-weight:600}
h4{font-size:1.1rem}
p{margin:0 0 1.1em;text-wrap:pretty}
.lede{font-size:clamp(1.1rem,1.6vw,1.28rem);color:var(--muted);max-width:42em}
.eyebrow{display:inline-block;font:700 .78rem/1.2 var(--ff-body);letter-spacing:.14em;text-transform:uppercase;color:var(--gold-ink);margin-bottom:.9rem}
.small{font-size:.9rem;color:var(--muted)}
.measure{max-width:44rem}
.center{text-align:center}.center .lede,.center.measure{margin-inline:auto}

/* Layout */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:var(--sec)}
.section-alt{background:var(--gray)}
.section-white{background:var(--white)}
.section-navy{background:var(--navy);color:#dfe6f1}
.section-navy h2,.section-navy h3{color:#fff}
.section-navy .eyebrow{color:var(--gold)}
.section-navy .lede{color:#c3cfe1}
.section-head{margin-bottom:clamp(2rem,4vw,3rem);max-width:46rem}
.section-head.center{margin-inline:auto}
.grid{display:grid;gap:var(--gap)}
:root{--gap:clamp(1rem,2.2vw,1.6rem)}
/* Column layouts use centered flex so an incomplete last row is spread evenly, never left hanging */
.g2,.g3,.g4,.g5,.tiers,.dog-grid,.gallery{display:flex!important;flex-wrap:wrap;justify-content:center;gap:var(--gap);--n:3}
.g2>*,.g3>*,.g4>*,.g5>*,.tiers>*,.dog-grid>*,.gallery>*{flex:0 1 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));min-width:0}
.g2{--n:2}.g3{--n:3}.g4{--n:4}.g5,.tiers{--n:5}.dog-grid{--n:3}.gallery{--n:4;--gap:.75rem}
@media (max-width:1100px){.tiers{--n:3}}
@media (max-width:1000px){.g3,.g4,.g5,.dog-grid{--n:2}}
@media (max-width:760px){.tiers{--n:2}.gallery{--n:3}}
@media (max-width:640px){.g2,.g3,.g4,.g5,.tiers,.dog-grid{--n:1}.gallery{--n:2}}
.split{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.split.rev>:first-child{order:2}
@media (max-width:860px){.split{grid-template-columns:1fr}.split.rev>:first-child{order:0}}
.stack>*+*{margin-top:1rem}
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.75rem 1.4rem;border-radius:999px;border:2px solid transparent;font:600 1rem/1.2 var(--ff-body);text-decoration:none;cursor:pointer;transition:transform .2s var(--ease),background-color .2s,color .2s,border-color .2s,box-shadow .2s;text-align:center}
.btn:active{transform:translateY(1px) scale(.98)}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-dark);color:#fff;box-shadow:0 8px 20px -10px rgba(31,79,136,.7)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-ink);color:#fff}
.btn-gold{background:var(--gold);color:var(--navy-ink)}
.btn-gold:hover{background:#d8b36f;color:var(--navy-ink)}
.btn-ghost{background:transparent;color:var(--navy);border-color:var(--navy)}
.btn-ghost:hover{background:var(--navy);color:#fff}
.btn-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-light:hover{background:#fff;color:var(--navy)}
.btn-sm{min-height:42px;padding:.5rem 1rem;font-size:.92rem}
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.btn svg{width:18px;height:18px;flex:none}
.link-arrow{font-weight:600;text-decoration:none;display:inline-flex;gap:.35rem;align-items:center}
.link-arrow::after{content:"→";transition:transform .2s var(--ease)}
.link-arrow:hover::after{transform:translateX(3px)}

/* Header */
/* NOTE: no backdrop-filter on the header itself: it would trap the fixed mobile menu inside the header box */
.site-header{position:sticky;top:0;z-index:50;background:var(--paper);border-bottom:1px solid var(--line)}
.site-header .wrap{max-width:1320px}
.header-in{display:flex;align-items:center;gap:1rem;min-height:74px}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--navy);margin-right:auto;flex:none}
.brand img{width:46px;height:46px}
.brand-name{display:block;font:700 1.22rem/1 var(--ff-display);letter-spacing:-.01em}
.brand-sub{display:block;font:700 .62rem/1 var(--ff-body);letter-spacing:.2em;text-transform:uppercase;color:var(--gold-ink);margin-top:.35rem}
.nav{display:flex;align-items:center;gap:1rem}
.nav-list{display:flex;align-items:center;gap:.1rem;list-style:none;margin:0;padding:0}
.nav-list>li{position:relative;display:flex;align-items:center}
.nav-list>li>a{display:block;padding:.55rem .5rem;border-radius:var(--r-sm);color:var(--navy);text-decoration:none;font-weight:600;font-size:.92rem;white-space:nowrap}
.nav-list>li>a:hover,.nav-list a[aria-current="page"]{color:var(--blue-dark);background:var(--blue-tint)}
.sub-toggle{background:none;border:0;padding:.4rem .2rem;margin-left:-.45rem;cursor:pointer;color:var(--navy);border-radius:6px;min-width:26px;min-height:32px}
.sub-toggle::after{content:"";display:block;width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);margin:auto;transition:transform .2s}
.sub-toggle[aria-expanded="true"]::after{transform:rotate(-135deg) translateY(-1px)}
.sub{list-style:none;margin:0;padding:.5rem;position:absolute;top:calc(100% + 6px);left:0;min-width:220px;background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .18s,transform .18s,visibility .18s}
.sub::before{content:"";position:absolute;inset:-10px 0 auto;height:10px}
.has-sub:hover>.sub,.has-sub:focus-within>.sub,.has-sub.open>.sub{opacity:1;visibility:visible;transform:none}
.sub a{display:block;padding:.55rem .75rem;border-radius:var(--r-sm);color:var(--ink);text-decoration:none;font-weight:500;font-size:.95rem}
.sub a:hover,.sub a[aria-current="page"]{background:var(--blue-tint);color:var(--blue-dark)}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--navy);cursor:pointer;flex:none}
.icon-btn:hover{border-color:var(--navy)}
.icon-btn svg{width:20px;height:20px}
.menu-btn{display:none}
@media (max-width:1239px){
  .menu-btn{display:inline-flex}
  .nav{position:fixed;inset:74px 0 0;background:var(--paper);flex-direction:column;align-items:stretch;padding:1rem var(--gutter) 2rem;overflow-y:auto;transform:translateX(100%);visibility:hidden;transition:transform .28s var(--ease),visibility .28s;border-top:1px solid var(--line)}
  .nav.open{transform:none;visibility:visible}
  .nav-list{flex-direction:column;align-items:stretch}
  .nav-list>li{flex-wrap:wrap;border-bottom:1px solid var(--line)}
  .nav-list>li>a{flex:1;padding:.95rem .25rem;font-size:1.08rem;background:none!important}
  .sub-toggle{min-width:48px;min-height:48px;margin:0}
  .sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 .75rem .75rem;width:100%;display:none;background:transparent}
  .has-sub.open>.sub{display:block}
  .has-sub:hover>.sub{display:none}.has-sub.open:hover>.sub{display:block}
  .nav-cta{padding-top:1.25rem}.nav-cta .btn{width:100%}
  body.nav-open{overflow:hidden}
}
@media (max-width:420px){.brand-name{font-size:1.06rem}.brand img{width:40px;height:40px}.header-in{gap:.5rem}}

/* Page hero (interior) */
.page-hero{background:var(--navy);color:#d3dceb;padding-block:clamp(2.6rem,6vw,4.5rem) clamp(2.8rem,6vw,4.8rem);position:relative;overflow:hidden}
.page-hero::after{content:"";position:absolute;right:-60px;bottom:-90px;width:320px;height:320px;background:url(/site/images/paw-outline.svg) no-repeat center/contain;opacity:.07;pointer-events:none}
.page-hero h1{color:#fff;max-width:18ch}
.page-hero .lede{color:#c3cfe1}
.page-hero .eyebrow{color:var(--gold)}
.page-hero .btn-row{margin-top:1.8rem}
.crumbs{font-size:.85rem;margin-bottom:1.4rem}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0}
.crumbs li+li::before{content:"/";margin-right:.4rem;opacity:.5}
.crumbs a{color:#c3cfe1}.crumbs a:hover{color:#fff}
.crumbs [aria-current]{color:#fff}

/* Home hero */
.hero{padding-block:clamp(2.5rem,6vw,5rem) clamp(3rem,7vw,6rem);position:relative}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.hero h1{font-size:clamp(2.5rem,5.6vw,4.3rem);max-width:13ch}
.hero .lede{margin-bottom:2rem}
.hero-media{position:relative}
.hero-media .frame{border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-lg);aspect-ratio:4/5;background:var(--navy)}
.hero-media .frame img{width:100%;height:100%;object-fit:cover}
.hero-tag{position:absolute;left:-1.25rem;bottom:1.5rem;background:#fff;border-radius:var(--r);padding:.85rem 1.1rem;box-shadow:var(--shadow-lg);max-width:250px;font-size:.92rem;line-height:1.4}
.hero-tag strong{display:block;font-family:var(--ff-display);color:var(--navy);font-size:1.05rem}
@media (max-width:860px){.hero-grid{grid-template-columns:1fr}.hero-media{max-width:460px}.hero-tag{left:.75rem}}
.trust-row{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;margin-top:2rem;font-size:.92rem;color:var(--muted)}
.trust-row span{display:inline-flex;align-items:center;gap:.45rem}
.trust-row svg{width:18px;height:18px;color:var(--gold-ink)}

/* Petey placeholder portrait */
.portrait-ph{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;text-align:center;padding:2rem;background:radial-gradient(120% 80% at 50% 0%,#24477a 0%,var(--navy) 60%,var(--navy-ink) 100%);color:#c3cfe1}
.portrait-ph>img{width:min(42%,170px)!important;height:auto!important;transform:none!important;object-fit:contain!important;opacity:.95}
.hero-media .portrait-ph{padding-bottom:7rem}
.portrait-ph strong{font-family:var(--ff-display);font-size:1.5rem;color:#fff;font-weight:600}
.portrait-ph span{font-size:.85rem;letter-spacing:.06em}

/* Cards */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:clamp(1.4rem,2.6vw,2rem);box-shadow:var(--shadow)}
.card h3{margin-bottom:.45rem}
.card p:last-child{margin-bottom:0}
a.card{display:block;text-decoration:none;color:inherit;transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
a.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:var(--gray-2)}
.icon-tile{width:52px;height:52px;border-radius:14px;background:var(--blue-tint);color:var(--blue-dark);display:grid;place-items:center;margin-bottom:1.1rem}
.icon-tile svg{width:26px;height:26px}
.icon-tile.red{background:#f8e6e4;color:var(--red)}
.icon-tile.gold{background:var(--gold-light);color:var(--gold-ink)}
.need{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.4rem}
.need h3{font-size:1.12rem;margin-bottom:.35rem}
.need p{font-size:.95rem;color:var(--muted);margin:0}
.need .icon-tile{width:44px;height:44px;margin-bottom:.9rem}
.need .icon-tile svg{width:22px;height:22px}

/* Dog cards */
.dog-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow);transition:transform .25s var(--ease),box-shadow .25s}
.dog-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.dog-card .media{position:relative;aspect-ratio:4/3;background:var(--gray);overflow:hidden}
.dog-card .media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.dog-card:hover .media img{transform:scale(1.035)}
.dog-card .media .portrait-ph{min-height:0;padding:1rem}
.dog-card .media .portrait-ph>img{width:30%!important}
.dog-card .media .badge{position:absolute;left:.9rem;top:.9rem}
.dog-card .body{padding:1.25rem 1.35rem 1.4rem;display:flex;flex-direction:column;flex:1}
.dog-card h3{margin-bottom:.15rem}
.dog-card .meta{font-size:.88rem;color:var(--muted);margin-bottom:.75rem}
.dog-card .body p{font-size:.97rem;color:var(--ink)}
.dog-card .actions{margin-top:auto;display:flex;gap:.6rem;flex-wrap:wrap}
.dog-card .actions .btn{flex:1}
.badge{display:inline-flex;align-items:center;gap:.35rem;font:700 .72rem/1 var(--ff-body);letter-spacing:.08em;text-transform:uppercase;padding:.45rem .7rem;border-radius:999px;background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.badge-adoptable{background:#e3f0e6;color:#1f5d33}
.badge-sanctuary{background:var(--navy);color:#fff}
.badge-sanctuary::before{background:var(--gold)}
.badge-medical{background:#fbe9e7;color:#8f241e}
.badge-rehab{background:var(--gold-light);color:var(--gold-ink)}
.badge-pending{background:#eceae5;color:#4f5a6b}
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem}
.filter-btn{min-height:44px;padding:.5rem 1.1rem;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--navy);font:600 .95rem var(--ff-body);cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.filter-btn:hover{border-color:var(--navy)}
.filter-btn[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.filter-count{font-size:.92rem;color:var(--muted);margin:-1rem 0 1.5rem}
.empty{border:2px dashed var(--gray-2);border-radius:var(--r-lg);padding:clamp(1.6rem,4vw,2.6rem);text-align:center;background:rgba(255,255,255,.6)}
.empty h3{margin-bottom:.4rem}
.empty p{color:var(--muted);max-width:36rem;margin-inline:auto}

/* Awaiting client info */
.awaiting{border:1.5px dashed var(--gold);background:#fffaf0;border-radius:var(--r);padding:1.1rem 1.25rem;font-size:.97rem;color:var(--ink)}
.awaiting .tag{display:inline-block;font:700 .7rem/1 var(--ff-body);letter-spacing:.12em;text-transform:uppercase;color:var(--gold-ink);background:var(--gold-light);padding:.35rem .55rem;border-radius:6px;margin-bottom:.55rem}
.awaiting p:last-child{margin-bottom:0}

/* Notices */
.notice{display:flex;gap:.9rem;align-items:flex-start;background:var(--blue-tint);border-left:4px solid var(--blue);border-radius:var(--r-sm);padding:1rem 1.2rem;font-size:.97rem}
.notice svg{width:22px;height:22px;flex:none;color:var(--blue-dark);margin-top:.15rem}
.notice p:last-child{margin:0}
.notice-gold{background:#fbf3e2;border-color:var(--gold)}
.notice-gold svg{color:var(--gold-ink)}
.disclosure{font-size:.93rem;color:var(--muted);border-top:1px solid var(--line);padding-top:1rem;margin-top:1.5rem}

/* Tiers */
.tier{position:relative;background:#fff;border:1.5px solid var(--line);border-radius:var(--r-lg);padding:1.5rem 1.3rem;display:flex;flex-direction:column;transition:transform .25s var(--ease),box-shadow .25s,border-color .2s}
.tier:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.tier .paw{width:34px;height:34px;margin-bottom:.8rem}
.tier h3{font-size:1.18rem;margin-bottom:.2rem}
.tier .price{font:600 2rem/1 var(--ff-display);color:var(--navy);margin:.4rem 0 .9rem}
.tier .price small{font:500 .9rem var(--ff-body);color:var(--muted)}
.tier p{font-size:.94rem;color:var(--muted)}
.tier .btn{margin-top:auto}
.tier-bronze .paw{color:#9a6a3c}.tier-silver .paw{color:#8a94a3}.tier-gold .paw{color:var(--gold)}.tier-platinum .paw{color:#5f7e9e}
.tier-angel{background:var(--navy);border-color:var(--navy);color:#c3cfe1}
.tier-angel h3,.tier-angel .price{color:#fff}.tier-angel p,.tier-angel .price small{color:#c3cfe1}
.tier-angel .paw{color:var(--gold)}
.tier-angel .ribbon{position:absolute;top:-.75rem;right:1rem;background:var(--gold);color:var(--navy-ink);font:700 .68rem/1 var(--ff-body);letter-spacing:.1em;text-transform:uppercase;padding:.4rem .6rem;border-radius:6px}
.tier.selected{border-color:var(--blue);box-shadow:0 0 0 3px rgba(43,100,168,.25)}

/* Compare table */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:#fff;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:640px;font-size:.95rem}
th,td{padding:.85rem 1rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:var(--navy);color:#fff;font-weight:600}
tbody th{font-weight:600;color:var(--navy)}
td.yes{color:#1f5d33;font-weight:600}
tr:last-child>*{border-bottom:0}

/* Steps */
.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;gap:1rem}
.steps li{counter-increment:s;position:relative;padding:1.3rem 1.3rem 1.3rem 4.4rem;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.steps li::before{content:counter(s,decimal-leading-zero);position:absolute;left:1.2rem;top:1.15rem;font:600 1.5rem/1 var(--ff-display);color:var(--gold-ink)}
.steps h3{font-size:1.15rem;margin-bottom:.3rem}
.steps p{margin:0;color:var(--muted);font-size:.97rem}

/* Prose */
.prose{max-width:42rem}
.prose h2{font-size:clamp(1.5rem,2.6vw,2rem);margin-top:2.4rem}
.prose h3{margin-top:1.8rem}
.prose ul,.prose ol{padding-left:1.25rem;margin:0 0 1.2em}
.prose li{margin-bottom:.4rem}
.prose>*:first-child{margin-top:0}
.checklist{list-style:none;padding:0;margin:0 0 1.2em;display:grid;gap:.55rem}
.checklist li{position:relative;padding-left:1.8rem}
.checklist li::before{content:"";position:absolute;left:0;top:.42em;width:1.05rem;height:1.05rem;border-radius:50%;background:var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f4f88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat}
.pill-list{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:0}
.pill-list li{background:#fff;border:1px solid var(--line);border-radius:999px;padding:.45rem .9rem;font-size:.93rem}

/* Profile */
.profile-hero{background:var(--white);border-bottom:1px solid var(--line);padding-block:clamp(2rem,5vw,3.5rem)}
.profile-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
@media (max-width:860px){.profile-grid{grid-template-columns:1fr}}
.profile-photo{border-radius:var(--r-lg);overflow:hidden;aspect-ratio:4/3;background:var(--navy);box-shadow:var(--shadow-lg)}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-hero .crumbs a{color:var(--muted)}.profile-hero .crumbs [aria-current]{color:var(--navy)}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem 1.5rem;margin:1.4rem 0 1.6rem;padding:0}
.facts div{padding:.6rem 0;border-bottom:1px solid var(--line)}
.facts dt{font-size:.76rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.facts dd{margin:.15rem 0 0;font-weight:600;color:var(--navy)}
.profile-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(2rem,5vw,4rem);align-items:start}
@media (max-width:960px){.profile-body{grid-template-columns:1fr}}
.aside-card{position:sticky;top:96px;background:var(--navy);color:#c3cfe1;border-radius:var(--r-lg);padding:1.75rem}
.aside-card h2,.aside-card h3{color:#fff}
.aside-card .btn{width:100%;margin-top:.6rem}
.gallery button{padding:0;border:0;border-radius:var(--r);overflow:hidden;aspect-ratio:1;cursor:zoom-in;background:var(--gray)}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.gallery button:hover img{transform:scale(1.05)}
.lightbox{border:0;padding:0;background:transparent;max-width:min(92vw,1100px);max-height:92vh}
.lightbox::backdrop{background:rgba(12,29,54,.88)}
.lightbox img{max-height:84vh;width:auto;margin:auto;border-radius:var(--r)}
.lightbox .close{position:absolute;top:.5rem;right:.5rem}
.updates{list-style:none;margin:0;padding:0;border-left:2px solid var(--gray-2)}
.updates li{position:relative;padding:0 0 1.4rem 1.4rem}
.updates li::before{content:"";position:absolute;left:-7px;top:.4rem;width:12px;height:12px;border-radius:50%;background:var(--gold);border:2px solid var(--paper)}
.updates time{font-size:.85rem;font-weight:700;color:var(--gold-ink);letter-spacing:.04em}

/* Story */
.story-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:transform .25s var(--ease),box-shadow .25s}
.story-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);color:inherit}
.story-card .media{aspect-ratio:16/10;background:var(--navy);overflow:hidden}
.story-card .media img{width:100%;height:100%;object-fit:cover}
.story-card .media .portrait-ph{min-height:0}
.story-card .media .portrait-ph>img{width:24%!important}
.story-card .body{padding:1.3rem 1.4rem 1.5rem}
.story-card .cat{font:700 .72rem/1 var(--ff-body);letter-spacing:.12em;text-transform:uppercase;color:var(--gold-ink)}
.story-card h3{margin:.55rem 0 .45rem}
.story-card p{font-size:.96rem;color:var(--muted);margin:0}
.article-hero{padding-block:clamp(2.4rem,5vw,4rem) 0;background:var(--white)}
.article-hero .crumbs a{color:var(--muted)}.article-hero .crumbs [aria-current]{color:var(--navy)}
.article-meta{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;font-size:.92rem;color:var(--muted);margin-bottom:2rem}
.article-figure{margin:0;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/8;background:var(--navy);box-shadow:var(--shadow-lg)}
.article-figure img{width:100%;height:100%;object-fit:cover}
.article-figure .portrait-ph>img{width:14%!important}
.profile-photo .portrait-ph>img{width:26%!important}
.article-body{padding-block:clamp(2.5rem,5vw,4rem)}
.article-body .prose{font-size:1.1rem;margin-inline:auto}
.article-body .prose p:first-of-type::first-letter{font-family:var(--ff-display);float:left;font-size:3.6em;line-height:.85;padding:.08em .1em 0 0;color:var(--navy)}
.pullquote{margin:2rem 0;padding:0 0 0 1.4rem;border-left:3px solid var(--gold);font:500 1.35rem/1.45 var(--ff-display);color:var(--navy)}
.cat-list{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:0 0 2rem}

/* CTA band */
.cta-band{background:var(--navy);border-radius:var(--r-lg);padding:clamp(2.2rem,5vw,4rem);color:#c3cfe1;position:relative;overflow:hidden}
.cta-band h2{color:#fff;max-width:20ch}
.cta-band::after{content:"";position:absolute;right:-40px;top:-40px;width:260px;height:260px;background:url(/site/images/paw-outline.svg) no-repeat center/contain;opacity:.08}
.cta-band>*{position:relative;z-index:1}
.cta-band.center h2{margin-inline:auto}
.wish{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center;background:var(--gold-light);border-radius:var(--r-lg);padding:clamp(1.8rem,4.5vw,3.5rem);border:1px solid #e8d6ab}
@media (max-width:860px){.wish{grid-template-columns:1fr}}
.wish-items{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.wish-items span{display:flex;align-items:center;gap:.55rem;background:#fff;border-radius:var(--r-sm);padding:.7rem .8rem;font-weight:600;font-size:.95rem;color:var(--navy)}
.wish-items svg{width:20px;height:20px;color:var(--gold-ink);flex:none}

/* Forms */
.form{display:grid;gap:1.15rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.15rem}
@media (max-width:640px){.form-row{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.4rem}
.field label,.field legend{font-weight:600;color:var(--navy);font-size:.97rem}
.field .req{color:var(--red)}
.field .hint{font-size:.86rem;color:var(--muted)}
input,select,textarea{font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1.5px solid #c9c3b8;border-radius:var(--r-sm);padding:.75rem .85rem;min-height:48px;width:100%;transition:border-color .2s,box-shadow .2s}
textarea{min-height:140px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(43,100,168,.22)}
[aria-invalid="true"]{border-color:var(--red)!important}
.error-msg{color:var(--red);font-size:.88rem;font-weight:600;display:none}
.field.has-error .error-msg{display:block}
fieldset{border:0;margin:0;padding:0;min-width:0}
.checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.5rem;margin-top:.3rem}
.check{display:flex;gap:.6rem;align-items:center;background:#fff;border:1.5px solid var(--line);border-radius:var(--r-sm);padding:.6rem .75rem;cursor:pointer;font-size:.95rem;min-height:46px}
.check input{width:20px;height:20px;min-height:0;margin:0;accent-color:var(--blue);flex:none}
.check:has(input:checked){border-color:var(--blue);background:var(--blue-tint)}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.form-status{border-radius:var(--r);padding:1.2rem 1.3rem;display:none}
.form-status.show{display:block}
.form-status.ok{background:#e6f2e8;border:1px solid #b7d8be;color:#1c4c2b}
.form-status.err{background:#fbe9e7;border:1px solid #efc2bd;color:#7d1f19}
.form-status h3{color:inherit;font-size:1.2rem;margin-bottom:.35rem}
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:clamp(1.4rem,3.5vw,2.4rem);box-shadow:var(--shadow)}
.form-note{font-size:.86rem;color:var(--muted)}

/* FAQ */
.faq{display:grid;gap:.75rem}
.faq details{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.faq summary{cursor:pointer;list-style:none;padding:1.1rem 3.2rem 1.1rem 1.3rem;font:600 1.1rem/1.35 var(--ff-display);color:var(--navy);position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:1.2rem;top:50%;transform:translateY(-50%);font:400 1.6rem/1 var(--ff-body);color:var(--blue)}
.faq details[open] summary::after{content:"−"}
.faq summary:hover{background:#fdfcf9}
.faq .answer{padding:0 1.3rem 1.2rem;color:var(--ink)}
.faq .answer p:last-child{margin:0}

/* Search */
.search-box{display:flex;gap:.6rem;max-width:640px}
.search-box input{flex:1}
.results{list-style:none;padding:0;margin:2rem 0 0;display:grid;gap:.8rem;max-width:760px}
.results a{display:block;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.2rem;text-decoration:none;color:inherit;transition:border-color .2s,box-shadow .2s}
.results a:hover{border-color:var(--blue);box-shadow:var(--shadow)}
.results .type{font:700 .7rem/1 var(--ff-body);letter-spacing:.12em;text-transform:uppercase;color:var(--gold-ink)}
.results h3{margin:.4rem 0 .25rem;font-size:1.15rem}
.results p{margin:0;font-size:.94rem;color:var(--muted)}
mark{background:var(--gold-light);color:inherit;border-radius:3px;padding:0 .1em}
.search-panel{width:min(720px,calc(100vw - 2rem));max-height:min(80vh,720px);margin:10vh auto auto;padding:1.25rem;border:0;border-radius:var(--r-lg);background:var(--paper);box-shadow:var(--shadow-lg);overflow:auto}
.search-panel::backdrop{background:rgba(12,29,54,.6)}
.search-panel .search-box{max-width:none;align-items:center}
.search-panel .results{margin-top:1rem;max-width:none}
.search-panel .sp-msg{margin:1rem 0 0}
@media (max-width:520px){.search-panel .search-box .btn{display:none}}

/* Supporters */
.supporter-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.6rem}
.supporter-list li{background:#fff;border:1px solid var(--line);border-radius:var(--r-sm);padding:.8rem 1rem;font-weight:600;color:var(--navy)}
.supporter-list li small{display:block;font-weight:400;color:var(--muted)}

/* Footer */
.site-footer{background:var(--navy-ink);color:#b4c1d6;padding-top:clamp(3.5rem,7vw,5rem);font-size:.96rem}
.footer-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:2rem}
@media (max-width:1000px){.footer-grid{grid-template-columns:repeat(3,1fr)}.footer-brand{grid-column:1/-1}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr 1fr}}
.footer-brand .brand{color:#fff;margin-bottom:1rem}
.footer-brand .brand-sub{color:var(--gold)}
.footer-brand p{max-width:30rem}
.site-footer h2{font:700 .78rem/1.2 var(--ff-body);letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.site-footer a{color:#d6deea;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-contact{margin-top:1.2rem;display:grid;gap:.4rem}
.footer-bottom{margin-top:3rem;border-top:1px solid rgba(255,255,255,.1);padding-block:1.5rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;font-size:.86rem;color:#8d9cb4}
.footer-bottom p{margin:0}

/* ---------- Contrast: dark surfaces ----------
   Everything placed on navy gets light text, gold eyebrows and light links. */
.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel,.portrait-ph{color:#dbe3ef}
:is(.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel) :is(h1,h2,h3,h4,strong){color:#fff}
:is(.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel) :is(p,li,dd,dt,.lede,.small,.meta,.disclosure,.hint,small){color:#dbe3ef}
:is(.page-hero,.section-navy,.cta-band,.aside-card) .eyebrow{color:#e6c487}
:is(.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel) a:not(.btn){color:#f3dca8;text-decoration:underline}
:is(.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel) a:not(.btn):hover{color:#fff}
:is(.section-navy,.cta-band) .checklist li::before{background-color:#e6c487}
.page-hero .crumbs a{color:#c9d5e6;text-decoration:none}
.page-hero .crumbs a:hover{color:#fff;text-decoration:underline}
/* Light cards that sit inside a dark section go back to dark text */
:is(.page-hero,.section-navy,.cta-band) :is(.card,.need,.empty,.form-card,.notice,.wish,.tier:not(.tier-angel)){color:var(--ink)}
:is(.page-hero,.section-navy,.cta-band) :is(.card,.need,.empty,.form-card,.notice,.wish,.tier:not(.tier-angel)) :is(h1,h2,h3,h4,strong){color:var(--navy)}
:is(.page-hero,.section-navy,.cta-band) :is(.card,.need,.empty,.form-card,.notice,.wish,.tier:not(.tier-angel)) :is(p,li,.small,small){color:var(--muted)}
:is(.page-hero,.section-navy,.cta-band) :is(.card,.need,.empty,.form-card,.notice,.wish) a:not(.btn){color:var(--blue-dark)}
/* Light surfaces: muted text is never lighter than #4f5a6b */
.btn-light{color:#fff;border-color:rgba(255,255,255,.75)}
.btn-ghost{color:var(--navy);border-color:var(--navy)}
.dog-card .meta,.story-card p,.need p{color:#4a5566}

/* ---------- Reveal on scroll (applied to everything by script.js) ---------- */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(22px);transition:opacity .75s var(--ease),transform .75s var(--ease);transition-delay:var(--d,0ms)}
  .js .reveal.in{opacity:1;transform:none}
  .js .reveal-img{clip-path:inset(0 0 12% 0 round var(--r-lg));opacity:0;transition:clip-path 1s var(--ease),opacity .8s var(--ease);transition-delay:var(--d,0ms)}
  .js .reveal-img.in{clip-path:inset(0 0 0 0 round var(--r-lg));opacity:1}
  .scroll-progress{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(var(--p,0));background:var(--gold);z-index:60;pointer-events:none}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* 404 */
.nf{min-height:60vh;display:grid;place-items:center;text-align:center;padding-block:var(--sec)}
.nf img{width:120px;margin:0 auto 1.5rem}

@media print{.site-header,.site-footer,.btn-row{display:none}}

/* =====================================================================
   BRAND THEME – from the Petey's Promise logo
   ===================================================================== */
/* Logo mark: circular crop of Petey from the logo artwork */
.brand img{display:none}
.brand::before{content:"";flex:none;width:50px;height:50px;border-radius:50%;background:#000 url(/site/images/image.png) 49% 34%/223% auto no-repeat;box-shadow:0 0 0 2px #d4a640,0 0 0 5px rgba(212,166,64,.22)}
.brand-name{font-family:var(--ff-script);font-weight:400;font-size:1.65rem;letter-spacing:0;line-height:.9}
.brand-sub{font-size:.6rem;letter-spacing:.22em}
@media (max-width:420px){.brand::before{width:42px;height:42px}.brand-name{font-size:1.4rem}}

/* Header: black stage with a gold rule */
.site-header{background:var(--black);border-bottom:1px solid rgba(212,166,64,.45)}
.site-header .brand{color:#fff}
.site-header .brand-sub{color:#e2bb57}
.site-header .icon-btn{background:transparent;border-color:rgba(212,166,64,.6);color:#e2bb57}
.site-header .icon-btn:hover{border-color:#e2bb57;background:rgba(212,166,64,.12)}
@media (min-width:1240px){
  .nav-list>li>a,.sub-toggle{color:#f1ede4}
  .nav-list>li>a:hover,.nav-list>li>a[aria-current="page"]{color:#e9c35f;background:rgba(255,255,255,.06)}
}
@media (max-width:1239px){.nav{top:74px}}

/* Buttons: metallic gold primary, black secondary */
.btn-primary,.btn-gold{background:var(--gold-grad);background-size:140% 140%;color:#14110a;border-color:transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 1px 2px rgba(0,0,0,.18)}
.btn-primary:hover,.btn-gold:hover{color:#14110a;background:var(--gold-grad);background-position:100% 50%;background-size:140% 140%;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 22px -12px rgba(184,134,42,.9)}
.btn-navy{background:var(--black);color:#fff}
.btn-navy:hover{background:var(--navy);color:#fff}
.btn-ghost{color:var(--black);border-color:var(--black)}
.btn-ghost:hover{background:var(--black);color:#fff}
.btn-light:hover{background:#fff;color:var(--black)}

/* Dark surfaces become the logo's black stage with a soft gold glow */
.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel{background:radial-gradient(70% 90% at 92% 0%,rgba(212,166,64,.16),transparent 60%),var(--black)}
.page-hero{border-bottom:3px solid transparent;border-image:var(--gold-grad) 1}
.cta-band,.aside-card,.tier-angel{border:1px solid rgba(212,166,64,.4)}
.page-hero::after,.cta-band::after{filter:sepia(1) saturate(4) hue-rotate(-12deg);opacity:.08}
:is(.page-hero,.section-navy,.cta-band,.aside-card) .eyebrow{color:#e9c35f}
.tier-angel .ribbon{background:var(--gold-grad);color:#14110a}
.tier.selected{border-color:#b8862a;box-shadow:0 0 0 3px rgba(212,166,64,.3)}
.filter-btn[aria-pressed="true"]{background:var(--black);border-color:var(--black)}
.badge-sanctuary{background:var(--black)}
.icon-tile{color:var(--navy)}
.icon-tile.gold{background:var(--black);color:#e2bb57}
.wish{background:linear-gradient(135deg,#fbf3dd,#f3e2b6);border-color:#e3c983}
.scroll-progress{background:var(--gold-grad)}

/* Footer */
.site-footer{background:#050506;border-top:3px solid transparent;border-image:var(--gold-grad) 1}
.site-footer h2{color:#e2bb57}
.footer-brand .brand-sub{color:#e2bb57}
.footer-brand::after{content:"Because every dog deserves a second chance.";display:block;margin-top:1.1rem;font:400 1.35rem/1.2 var(--ff-script);color:#e9c35f}

/* Home hero on the black stage, framing the logo artwork */
.hero{background:radial-gradient(60% 80% at 80% 30%,rgba(212,166,64,.18),transparent 65%),var(--black);color:#ddd8cc}
.hero h1{color:#fff}
.hero h1 em{font-style:normal;background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .lede{color:#d6d1c5}
.hero .eyebrow{color:#e9c35f}
.hero .trust-row{color:#cfc9bb}
.hero .trust-row svg{color:#e2bb57}
.hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.7)}
.hero .btn-ghost:hover{background:#fff;color:var(--black)}
.hero .tagline{font:400 clamp(1.4rem,2.4vw,1.8rem)/1.2 var(--ff-script);color:#e9c35f;margin:-.2rem 0 1.2rem}
.hero .hero-tag{color:var(--ink);bottom:-1.75rem;border:1px solid rgba(212,166,64,.5)}
.hero .hero-tag strong{color:var(--navy)}
.hero-media .frame{background:#000;box-shadow:0 0 0 1px rgba(212,166,64,.45),0 30px 60px -30px rgba(212,166,64,.45)}

/* =====================================================================
   PLAIN-SPOKEN PASS – remove template tells
   ===================================================================== */
:root{--r-sm:4px;--r:6px;--r-lg:8px}
/* No kicker labels above headings */
.eyebrow{display:none}
.hero .eyebrow{display:none}
/* Square-ish buttons, flat gold */
.btn{border-radius:4px;font-weight:700;letter-spacing:.01em}
.btn-primary,.btn-gold{background:#d9ad48;box-shadow:none}
.btn-primary:hover,.btn-gold:hover{background:#e8c062;box-shadow:none}
.filter-btn{border-radius:4px}
/* No glows, watermarks or gradient text */
.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel,.hero{background:var(--black)}
.page-hero::after,.cta-band::after{display:none}
.hero h1 em{background:none;color:#e2bb57;-webkit-text-fill-color:#e2bb57}
.scroll-progress{display:none}
.hero-media .frame{box-shadow:none;border:1px solid rgba(212,166,64,.5)}
/* No floating badge card over the hero art */
.hero .hero-tag{display:none!important}
.trust-row svg{display:none}
.trust-row span+span::before{content:"·";margin-right:1.4rem;color:#8a8475}
@media (max-width:640px){.trust-row{flex-direction:column;gap:.35rem}.trust-row span+span::before{display:none}}
/* Cards: no icon tiles, no shadows, no lift */
.icon-tile{display:none}
.card,.dog-card,.story-card,.tier,.form-card{box-shadow:none}
a.card:hover,.dog-card:hover,.story-card:hover,.tier:hover{transform:none;box-shadow:none;border-color:var(--black)}
.dog-card:hover .media img,.gallery button:hover img{transform:none}
/* "Need" grids become ruled lists, not boxes */
.need{background:none;border:0;border-top:2px solid var(--black);border-radius:0;padding:1rem 0 0}
.need h3{font-size:1.08rem}
.section-navy .need{border-top-color:#e2bb57}
/* Left-aligned intros and CTA bands */
.section-head.center,.center .lede,.center.measure{text-align:left;margin-inline:0}
.section-head.center{max-width:46rem}
.cta-band,.cta-band.center{text-align:left;border-radius:0;border:0;border-left:4px solid #d9ad48}
.cta-band h2,.cta-band.center h2{margin-inline:0}
.cta-band .lede{margin-inline:0!important}
.cta-band .btn-row{justify-content:flex-start!important}
.center.mt-2{text-align:left}
/* Steps: plain numbers, no boxes */
.steps li{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:1.1rem 0 1.1rem 3.4rem}
.steps li::before{left:0;color:var(--black);font-size:1.25rem}
/* Calmer reveals */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{transform:translateY(10px);transition-duration:.55s;transition-delay:calc(var(--d,0ms) * .5)}
  .js .reveal-img{clip-path:none}
}
/* Badges without the dot */
.badge::before{display:none}
.badge{border-radius:3px;box-shadow:none}
.wish{border-radius:0;background:#f3e6c4;border:0;border-left:4px solid var(--black)}
.notice{border-radius:0}

/* =====================================================================
   ELEVATED LAYOUT: offset panels, angled black sections, 3D reveals
   ===================================================================== */
main{overflow-x:clip}
main>section{position:relative;isolation:isolate}
/* Panels stop just short of the content column, so text never hangs off the panel edge */
:root{--sand:#efe7d6;--sand-2:#e8dec8;--offset:max(14px,calc((100vw - var(--wrap)) / 2 - 10px));--tilt:3.6vw}

/* Offset background panels: alternate left and right */
main>.section-white,main>.section-alt{background:transparent}
main>.section-white::before,main>.section-alt::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:0;right:var(--offset);background:var(--sand)}
main>.section-alt::before{background:var(--sand-2)}
main>section:nth-of-type(even).section-white::before,main>section:nth-of-type(even).section-alt::before{left:var(--offset);right:0}
/* A thin gold rule marks the open edge of each panel */
main>.section-white::after,main>.section-alt::after{content:"";position:absolute;z-index:-1;top:var(--sec);bottom:var(--sec);right:calc(var(--offset) - 3px);width:3px;background:#d9ad48}
main>section:nth-of-type(even).section-white::after,main>section:nth-of-type(even).section-alt::after{right:auto;left:calc(var(--offset) - 3px)}
@media (max-width:760px){:root{--offset:0px}main>.section-white::after,main>.section-alt::after{display:none}}

/* Angled black stages */
.hero{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--tilt)),0 100%);padding-bottom:calc(clamp(3rem,7vw,6rem) + var(--tilt))}
.page-hero{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--tilt)),0 100%);padding-bottom:calc(clamp(2.8rem,6vw,4.8rem) + var(--tilt));border:0}
main>.section-navy{clip-path:polygon(0 var(--tilt),100% 0,100% calc(100% - var(--tilt)),0 100%);padding-block:calc(var(--sec) + var(--tilt))}

/* Offset gold frames behind photos */
.hero-media::before{content:"";position:absolute;inset:1.6rem -1.6rem -1.6rem 1.6rem;border:2px solid #d9ad48;border-radius:var(--r-lg);z-index:0;pointer-events:none}
.hero-media .frame{position:relative;z-index:1}
.profile-photo{box-shadow:18px 18px 0 -2px #d9ad48}
figure.photo img{box-shadow:14px 14px 0 var(--sand-2)}
main>.section-white figure.photo img,main>.section-alt figure.photo img{box-shadow:14px 14px 0 #d9ad48}
.article-figure{box-shadow:0 0 0 1px rgba(0,0,0,.06),20px 20px 0 -2px #d9ad48}
@media (max-width:640px){.hero-media::before{inset:1rem -.6rem -1rem .6rem}.profile-photo{box-shadow:10px 10px 0 -2px #d9ad48}figure.photo img{box-shadow:8px 8px 0 #d9ad48}}

/* Section headings get a short gold bar */
.section-head h2::after,main>section .wrap>h2:first-child::after{content:"";display:block;width:56px;height:4px;margin-top:.7rem;background:#d9ad48}
.section-navy .section-head h2::after{background:#e9c35f}

/* Ticker band under the home hero */
.ticker{position:relative;z-index:3;margin:calc(var(--tilt) * -1.1) 0 0;transform:rotate(-1.6deg);background:#d9ad48;color:#0b0b0d;overflow:hidden;border-block:2px solid #0b0b0d;padding:.85rem 0;box-shadow:0 14px 30px -18px rgba(0,0,0,.6)}
.ticker-track{display:flex;width:max-content;gap:2.2rem;animation:ticker 38s linear infinite;font:700 clamp(1.05rem,1.8vw,1.35rem)/1 var(--ff-display);white-space:nowrap}
.ticker-track span{display:inline-flex;align-items:center;gap:2.2rem}
.ticker-track span::after{content:"";width:9px;height:9px;border-radius:50%;background:#0b0b0d}
.ticker-track .script{font:400 1.35em/1 var(--ff-script)}
.ticker:hover .ticker-track{animation-play-state:paused}
@keyframes ticker{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker-track{animation:none}}

/* 3D scroll reveals */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:perspective(1100px) translate3d(0,46px,-40px) rotateX(18deg);transform-origin:50% 0;transition:opacity .85s var(--ease),transform 1.15s cubic-bezier(.16,1,.3,1);transition-delay:var(--d,0ms)}
  .js .reveal.in{opacity:1;transform:none}
  .js .reveal-img{opacity:0;transform:perspective(1200px) rotateY(-14deg) rotateX(6deg) scale(.9);transform-origin:0 50%;clip-path:none;transition:opacity .9s var(--ease),transform 1.3s cubic-bezier(.16,1,.3,1);transition-delay:var(--d,0ms)}
  .js .reveal-img.in{opacity:1;transform:none}
  .js .sec-3d{transform:perspective(1800px) rotateX(8deg) translateY(30px) scale(.965);transform-origin:50% 0;transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
  .js .sec-3d.in{transform:none}
}
/* Mobile menu: hidden with a clip instead of sliding off-screen, so it never widens the page */
@media (max-width:1239px){
  .nav{transform:none;clip-path:inset(0 0 0 100%);transition:clip-path .32s var(--ease),visibility .32s}
  .nav.open{clip-path:inset(0)}
}

/* Never let decorative overhangs widen the page */
html,body{overflow-x:clip}
.hero-grid>*,.split>*,.profile-grid>*,.profile-body>*,.footer-grid>*{min-width:0}
.hero,.ticker{max-width:100vw}

/* Card tilt (set by script.js on mouse devices) */
.tilt{transform-style:preserve-3d;will-change:transform}

/* Hero carousel */
.carousel{position:relative}
.carousel .slides{position:absolute;inset:0}
.carousel .slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .9s ease;pointer-events:none}
.carousel .slide.is-active{opacity:1;pointer-events:auto}
.carousel .slide img{width:100%;height:100%;object-fit:cover}
.carousel figcaption{position:absolute;left:0;right:0;bottom:0;padding:3.5rem 1.2rem 4.4rem;background:linear-gradient(to top,rgba(0,0,0,.78),transparent)}
.carousel figcaption a{color:#fff;text-decoration:none;font:700 1.45rem/1.1 var(--ff-display)}
.carousel figcaption a span{display:block;margin-top:.3rem;font:600 .82rem/1.3 var(--ff-body);letter-spacing:.06em;text-transform:uppercase;color:#e9c35f}
.carousel figcaption a:hover{text-decoration:underline;text-decoration-color:#e9c35f}
.carousel-ui{position:absolute;left:1rem;right:1rem;bottom:1rem;display:flex;align-items:center;gap:.5rem;z-index:2}
.car-dots{display:flex;gap:.4rem;margin-right:auto;order:-1}
.car-dots button{width:30px;height:30px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.car-dots button::before{content:"";width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.5);transition:background .2s,transform .2s}
.car-dots button[aria-current="true"]::before{background:#e9c35f;transform:scale(1.3)}
.car-btn{width:38px;height:38px;border-radius:4px;border:1px solid rgba(255,255,255,.45);background:rgba(0,0,0,.45);color:#fff;display:grid;place-items:center;cursor:pointer}
.car-btn:hover{background:rgba(0,0,0,.7);border-color:#e9c35f}
.car-btn svg{width:18px;height:18px}
.car-btn .ic-play{display:none}
.car-btn[aria-pressed="true"] .ic-play{display:block}
.car-btn[aria-pressed="true"] .ic-pause{display:none}

/* Real photos */
figure.photo{margin:0}
figure.photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-lg);background:var(--gray)}
figure.photo.tall img{aspect-ratio:4/5}
figure.photo.square img{aspect-ratio:1}
figure.photo figcaption{font-size:.88rem;color:var(--muted);margin-top:.55rem;line-height:1.45}
.prose figure.photo{margin:1.8rem 0}
.section-navy figure.photo figcaption{color:#cfc9bb}

/* Petey artwork replaces every Petey placeholder */
/* Photo-pending panel (the logo artwork is reserved for the header and footer) */
.portrait-ph{background:#1b1b1f;gap:.35rem}
.portrait-ph>img{display:none!important}
.portrait-ph strong{font-family:var(--ff-display);font-size:1.25rem;color:#fff}
.portrait-ph span{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:#cfc9bb}
.nf-mark{width:170px;height:170px;margin:0 auto 1.6rem;border-radius:50%;background:#000 url(/site/images/image.png) 49% 34%/223% auto no-repeat;box-shadow:0 0 0 3px #d4a640,0 0 0 9px rgba(212,166,64,.18)}

/* =====================================================================
   BUTTON SYSTEM: buttons follow the section they sit in
   Light surfaces (paper, sand panels, white cards, forms, wish band):
     primary = black fill → gold on hover; secondary = black outline → black fill
   Dark surfaces (black hero, page banners, black bands, sidebars, footer):
     primary = gold fill → lighter gold; secondary = white outline → white fill
   Applies to every variant: .btn-primary, .btn-gold, .btn-navy, .btn-ghost, .btn-light
   ===================================================================== */
.btn{border:2px solid transparent;min-height:48px;padding:.72rem 1.35rem;font:700 .98rem/1.2 var(--ff-body);letter-spacing:.01em;border-radius:4px;transition:background-color .2s,color .2s,border-color .2s,transform .15s,box-shadow .2s}
.btn-sm{min-height:42px;padding:.5rem 1rem;font-size:.92rem}
.btn:active{transform:translateY(1px)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed;transform:none}

/* --- Light surfaces (default inside main) --- */
main :is(.btn-primary,.btn-gold,.btn-navy){background:#0b0b0d;color:#fff;border-color:#0b0b0d;box-shadow:none}
main :is(.btn-primary,.btn-gold,.btn-navy):hover{background:#d9ad48;color:#0b0b0d;border-color:#0b0b0d}
main :is(.btn-ghost,.btn-light){background:transparent;color:#0b0b0d;border-color:#0b0b0d}
main :is(.btn-ghost,.btn-light):hover{background:#0b0b0d;color:#fff;border-color:#0b0b0d}

/* --- Dark surfaces --- */
:is(.hero,.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel,.site-footer) :is(.btn-primary,.btn-gold){background:#d9ad48;color:#0b0b0d;border-color:#d9ad48}
:is(.hero,.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel,.site-footer) :is(.btn-primary,.btn-gold):hover{background:#ecc767;color:#0b0b0d;border-color:#ecc767}
:is(.hero,.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel,.site-footer) :is(.btn-ghost,.btn-light,.btn-navy){background:transparent;color:#fff;border-color:rgba(255,255,255,.8)}
:is(.hero,.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel,.site-footer) :is(.btn-ghost,.btn-light,.btn-navy):hover{background:#fff;color:#0b0b0d;border-color:#fff}

/* --- Light cards placed inside a dark section go back to light-surface buttons --- */
:is(.hero,.page-hero,.section-navy,.cta-band) :is(.card,.form-card,.need,.empty,.notice,.wish,.tier:not(.tier-angel)) :is(.btn-primary,.btn-gold,.btn-navy){background:#0b0b0d;color:#fff;border-color:#0b0b0d}
:is(.hero,.page-hero,.section-navy,.cta-band) :is(.card,.form-card,.need,.empty,.notice,.wish,.tier:not(.tier-angel)) :is(.btn-ghost,.btn-light){background:transparent;color:#0b0b0d;border-color:#0b0b0d}

/* --- Header CTA and search panel keep their own context --- */
.site-header .btn-primary{background:#d9ad48;color:#0b0b0d;border-color:#d9ad48}
.site-header .btn-primary:hover{background:#ecc767;border-color:#ecc767;color:#0b0b0d}
.search-panel .btn-primary{background:#0b0b0d;color:#fff;border-color:#0b0b0d}
.search-panel .btn-primary:hover{background:#d9ad48;color:#0b0b0d}

/* --- Selected giving level (Sponsor page) --- */
main .tier .pick[aria-pressed="true"]{background:#0b0b0d;color:#fff;border-color:#0b0b0d}
main .tier-angel .pick[aria-pressed="true"]{background:#fff;color:#0b0b0d;border-color:#fff}
.tier.selected{border-color:#0b0b0d;box-shadow:0 0 0 3px rgba(217,173,72,.55)}
.tier-angel.selected{border-color:#d9ad48}

/* --- Filter chips match the same light-surface language --- */
.filter-btn{border:2px solid #0b0b0d;background:transparent;color:#0b0b0d;font-weight:700}
.filter-btn:hover{background:#0b0b0d;color:#fff}
.filter-btn[aria-pressed="true"]{background:#0b0b0d;color:#fff;box-shadow:inset 0 -3px 0 #d9ad48}

/* --- Focus rings readable on both surfaces --- */
main .btn:focus-visible,.filter-btn:focus-visible{outline:3px solid #b8862a;outline-offset:3px}
:is(.hero,.page-hero,.section-navy,.cta-band,.aside-card,.tier-angel,.site-footer) .btn:focus-visible{outline-color:#ecc767}

/* --- Centered single call-to-action under a grid (e.g. Give monthly) --- */
.btn-center{display:flex;justify-content:center;text-align:center}

/* --- Phones: stacked, full-width buttons in button rows and sidebars --- */
@media (max-width:480px){
  main .btn-row{flex-direction:column;align-items:stretch}
  main .btn-row>.btn{width:100%}
  .dog-card .actions .btn{flex:1 1 0}
}

/* =====================================================================
   3D SCROLL STORY (scene3d.js)
   The canvas and the copy each get their own area; text never sits on the graphic.
   ===================================================================== */
.journey{position:relative;color:#fff;background:radial-gradient(90% 70% at 30% 45%,#22305f 0%,#121733 45%,#0b0b0d 85%);clip-path:polygon(0 var(--tilt),100% 0,100% calc(100% - var(--tilt)),0 100%);margin-block:calc(var(--tilt) * -.4)}
.journey-stage{display:block;padding:clamp(4rem,9vw,7rem) max(1.25rem,calc((100vw - var(--wrap)) / 2))}
.journey-canvas{display:none}
.journey-kicker{margin:0 0 .5rem;font-family:var(--ff-script);font-size:1.5rem;color:#d9ad48;line-height:1}
.journey-title{color:#fff;font-size:clamp(1.7rem,3.2vw,2.7rem);line-height:1.1;margin:0 0 1.6rem;max-width:16ch}
.journey-steps{list-style:none;margin:0;padding:0;display:grid;gap:2rem}
.journey-step h3{color:#fff;font-size:clamp(1.35rem,2.2vw,1.8rem);margin:.35rem 0 .6rem}
.journey-step p{color:rgba(255,255,255,.84);margin:0 0 1rem;max-width:46ch;font-size:1.05rem;line-height:1.6}
.journey-num{display:inline-block;font:700 .85rem/1 var(--ff-body);letter-spacing:.14em;color:#0b0b0d;background:#d9ad48;padding:.38rem .55rem;border-radius:3px}
.journey-link{color:#ecc767;font-weight:700;text-decoration:none;border-bottom:2px solid rgba(217,173,72,.5);padding-bottom:2px;transition:border-color .2s,color .2s}
.journey-link::after{content:" →"}
.journey-link:hover{color:#fff;border-color:#fff}
.journey-link:focus-visible,.journey-progress button:focus-visible{outline:3px solid #ecc767;outline-offset:3px}
.journey-progress,.journey-bar{display:none}

/* Live mode: pinned stage, scroll drives the scene */
.journey.is-live{height:460vh}
.journey.is-live .journey-stage{position:sticky;top:var(--hdr-h,64px);height:calc(100vh - var(--hdr-h,64px));height:calc(100svh - var(--hdr-h,64px));padding-block:0;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,4rem);align-items:center;overflow:hidden}
.journey.is-live .journey-canvas{display:block;position:relative;height:min(100%,780px);min-height:0}
.journey.is-live .journey-canvas canvas{display:block;width:100%;height:100%}
.journey-canvas canvas,.scene-band canvas{-webkit-mask-image:radial-gradient(ellipse 54% 52% at 50% 52%,#000 72%,transparent 100%);mask-image:radial-gradient(ellipse 54% 52% at 50% 52%,#000 72%,transparent 100%)}
.journey.is-live .journey-steps{gap:0}
.journey.is-live .journey-step{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(28px) rotateX(-18deg);transform-origin:50% 100%;transition:opacity .45s ease,transform .7s cubic-bezier(.16,1,.3,1),visibility 0s .45s}
.journey.is-live .journey-step.is-active{opacity:1;visibility:visible;transform:none;transition:opacity .55s ease .1s,transform .8s cubic-bezier(.16,1,.3,1) .1s,visibility 0s}
.journey.is-live .journey-copy{perspective:900px}
.journey.is-live .journey-progress{display:flex;gap:.6rem;margin-top:2rem}
.journey-progress button{width:44px;height:28px;padding:0;border:0;background:transparent;cursor:pointer;position:relative}
.journey-progress button::before{content:"";position:absolute;left:0;right:0;top:50%;height:4px;margin-top:-2px;border-radius:2px;background:rgba(255,255,255,.22);transition:background .3s}
.journey-progress button.on::before{background:#d9ad48}
.journey.is-live .journey-bar{display:block;position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.08)}
.journey-bar i{display:block;height:100%;background:#d9ad48;transform-origin:0 50%;transform:scaleX(0)}

@media (max-width:860px){
  .journey.is-live{height:420vh}
  .journey.is-live .journey-stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:.5rem;align-items:stretch;padding-bottom:1.4rem}
  .journey.is-live .journey-canvas{height:100%}
  .journey.is-live .journey-kicker{display:none}
  .journey.is-live .journey-title{font-size:1.25rem;margin:0 0 .7rem;max-width:none}
  .journey.is-live .journey-step h3{font-size:1.3rem;margin:.3rem 0 .35rem}
  .journey.is-live .journey-step p{font-size:.97rem;line-height:1.5;margin-bottom:.6rem}
  .journey.is-live .journey-progress{margin-top:.9rem}
}
@media (max-width:860px) and (max-height:700px){
  .journey.is-live .journey-title{display:none}
}

/* Service pages: one chapter, camera orbits as you scroll */
.scene-band{display:none}
.scene-band.is-live{display:block;position:relative;height:clamp(340px,52vw,600px);background:radial-gradient(70% 80% at 50% 55%,#22305f 0%,#121733 50%,#0b0b0d 90%);clip-path:polygon(0 var(--tilt),100% 0,100% calc(100% - var(--tilt)),0 100%)}
.scene-band canvas{display:block;width:100%;height:100%}
@media (max-width:640px){.scene-band.is-live{height:min(92vw,440px)}}

/* =====================================================================
   TENNIS BALL CURSOR (mouse/trackpad only; text fields keep the I-beam)
   ===================================================================== */
@media (pointer:fine){
  html,body{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='17' r='12.5' fill='%23000' opacity='.18'/%3E%3Ccircle cx='15.5' cy='15.5' r='12.5' fill='%23d4e33c' stroke='%234a5a10' stroke-width='1.4'/%3E%3Cpath d='M5.6 8.2c4.6 3.2 4.6 11.4 0 14.6M25.4 8.2c-4.6 3.2-4.6 11.4 0 14.6' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round'/%3E%3Cellipse cx='11' cy='9.5' rx='3.2' ry='2' fill='%23fff' opacity='.45' transform='rotate(-30 11 9.5)'/%3E%3C/svg%3E") 16 16,auto}
  a,button,summary,label,select,[role="button"],.btn,.filter-btn,.pick,.card,.journey-progress button,input[type="checkbox"],input[type="radio"],input[type="submit"]{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='none' stroke='%23d9ad48' stroke-width='2'/%3E%3Cg transform='rotate(35 16 16)'%3E%3Ccircle cx='16' cy='16' r='11.5' fill='%23e2f04a' stroke='%234a5a10' stroke-width='1.4'/%3E%3Cpath d='M6.8 9.4c4.2 2.9 4.2 10.3 0 13.2M25.2 9.4c-4.2 2.9-4.2 10.3 0 13.2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3Cellipse cx='12' cy='10.5' rx='2.8' ry='1.7' fill='%23fff' opacity='.5' transform='rotate(-30 12 10.5)'/%3E%3C/svg%3E") 16 16,pointer}
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),textarea,[contenteditable="true"]{cursor:text}
  :disabled,.btn:disabled,.btn[aria-disabled="true"]{cursor:not-allowed}
}
/* Centered panels: equal inset on both sides */
main>section.panel-center::before,main>section:nth-of-type(n).panel-center::before{left:var(--offset);right:var(--offset)}
main>section.panel-center::after{display:none}
