:root {
  --ink: #0b0d0c;
  --ink-2: #101411;
  --ground: #111713;
  --ground-2: #171d18;
  --line: #343c35;
  --line-2: #596257;
  --stone: #51584f;
  --stone-mid: #5d655c;
  --stone-dark: #343a35;
  --paper: #ece7d3;
  --muted: #aab0a4;
  --faint: #6f786f;
  --green: #8f9a8d;
  --serif: Georgia, 'Times New Roman', serif;
  --editorial: 'Spectral', Georgia, 'Times New Roman', serif;
  --display: 'Mystery Quest', Georgia, 'Times New Roman', serif;
  --ui: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  --mono: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  --max: 1440px;

  --fs-hero: clamp(82px, 7vw, 108px);
  --fs-section: clamp(38px, 3.2vw, 46px);
  --fs-card: 28px;
  --fs-editorial: 24px;
  --fs-body-lg: 16px;
  --fs-body: 14px;
  --fs-ui: 12px;
  --fs-meta: 11px;
  --fs-label: 10px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
body.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='4'%3E%3Cpath d='M0 1H2' stroke='%23ffffff' stroke-opacity='.16'/%3E%3C/svg%3E");
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 10px;
  font: 11px var(--mono);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 50;
  width: min(calc(100% - 32px), var(--max));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #283029;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d8d5bd;
  text-decoration: none;
  text-transform: none;
  letter-spacing: .025em;
  font: 700 15px/1 var(--mono);
}
.wordmark::before {
  content: '';
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-block;
  background-image: url('/images/logo.webp'), url('/images/logo.png');
  background-position: center, center;
  background-size: contain, contain;
  background-repeat: no-repeat, no-repeat;
  filter: drop-shadow(0 0 12px rgba(215,210,189,.10));
}
.wordmark span { color: inherit; }
.wordmark:hover { color: var(--paper); }
.header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a,
.scan-toggle {
  color: #838c82;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 500 10px/1 var(--ui);
}
.site-header nav a:hover { color: var(--paper); }
.scan-toggle { border: 0; background: transparent; padding: 0; cursor: pointer; }

#main { min-height: 70vh; }
.ssr-home, .ssr-memorial, .ssr-category { max-width: 900px; margin: 50px auto; padding: 0 20px; }
.js-ready .ssr-home, .js-ready .ssr-memorial, .js-ready .ssr-category { display: none; }

.cemetery-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid #202721;
  background: linear-gradient(180deg, #070908 0%, #090c0a 54%, #0a0e0b 100%);
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .82;
  background:
    radial-gradient(ellipse at 81% 42%, rgba(164,180,164,.06) 0%, rgba(105,123,108,.023) 27%, transparent 59%),
    radial-gradient(ellipse at 94% 67%, rgba(156,173,158,.035), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.005), transparent 47%);
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(180deg, transparent 0%, rgba(9,13,10,.27) 30%, rgba(6,9,7,.94) 100%);
}
.hero-glow {
  position: absolute;
  width: min(720px, 55vw);
  height: 300px;
  right: -2vw;
  top: 112px;
  opacity: .34;
  background: radial-gradient(ellipse, rgba(156,173,158,.1) 0%, rgba(105,125,108,.038) 38%, transparent 74%);
  filter: blur(48px);
}
.hero-fog {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(191,201,192,.02) 10%, rgba(196,205,198,.08) 28%, rgba(224,229,221,.14) 52%, rgba(180,192,182,.08) 74%, transparent 100%);
  filter: blur(28px);
  transform: translateZ(0);
  opacity: 0;
}
.hero-fog-a {
  width: 56%;
  height: 76px;
  right: 0;
  top: 246px;
  animation: hero-backdrop-fog-left 25s linear infinite;
}
.hero-fog-b {
  width: 40%;
  height: 52px;
  right: 12%;
  bottom: 120px;
  animation: hero-backdrop-fog-right 34s linear infinite 4s;
}
.hero-fog-c {
  width: 26%;
  height: 34px;
  right: 7%;
  top: 336px;
  animation: hero-backdrop-fog-left 18s linear infinite 10s;
}
.hero-bat {
  position: absolute;
  z-index: 3;
  width: 17px;
  height: auto;
  fill: #030503;
  opacity: 0;
  filter: drop-shadow(0 1px 0 rgba(91,104,93,.1));
}
.hero-bat-a { right: 18%; top: 170px; animation: hero-bat-flight-a 22s linear infinite; }
.hero-bat-b { right: 11%; top: 214px; transform: scale(.74); animation: hero-bat-flight-b 28s linear infinite 6s; }
.hero-bat-c { right: 24%; top: 252px; transform: scale(.62); animation: hero-bat-flight-c 33s linear infinite 13s; }
@keyframes hero-backdrop-fog-left {
  0% { transform: translateX(10%) scaleX(1.02); opacity: 0; }
  22% { transform: translateX(4%) scaleX(1.06); opacity: .18; }
  48% { transform: translateX(-8%) scaleX(1.1); opacity: .34; }
  72% { transform: translateX(-17%) scaleX(1.04); opacity: .1; }
  100% { transform: translateX(-6%) scaleX(.98); opacity: 0; }
}
@keyframes hero-backdrop-fog-right {
  0% { transform: translateX(-12%) scaleX(.98); opacity: 0; }
  26% { transform: translateX(-6%) scaleX(1.03); opacity: .1; }
  60% { transform: translateX(6%) scaleX(1.08); opacity: .22; }
  100% { transform: translateX(13%) scaleX(1.02); opacity: 0; }
}
@keyframes hero-bat-flight-a {
  0%, 8% { transform: translate(16px, 10px) scale(.68); opacity: 0; }
  12% { opacity: .14; }
  35% { transform: translate(-42px, -10px) scale(.76); opacity: .24; }
  52% { opacity: .06; }
  100% { transform: translate(-96px, -22px) scale(.8); opacity: 0; }
}
@keyframes hero-bat-flight-b {
  0%, 10% { transform: translate(8px, 14px) scale(.54); opacity: 0; }
  14% { opacity: .1; }
  38% { transform: translate(-52px, -4px) scale(.61); opacity: .18; }
  100% { transform: translate(-118px, -18px) scale(.68); opacity: 0; }
}
@keyframes hero-bat-flight-c {
  0%, 10% { transform: translate(20px, 9px) scale(.48); opacity: 0; }
  15% { opacity: .08; }
  41% { transform: translate(-28px, -6px) scale(.56); opacity: .14; }
  100% { transform: translate(-82px, -18px) scale(.66); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 64px), var(--max));
  min-height: 560px;
  margin: 0 auto;
  padding: 64px 0 156px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(230px, 320px);
  gap: clamp(42px, 6vw, 110px);
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.kicker,
.eyebrow {
  margin: 0 0 var(--sp-3);
  color: #939b92;
  text-transform: uppercase;
  letter-spacing: .075em;
  font: 600 var(--fs-label)/1.3 var(--ui);
}
.hero-copy .kicker span { color: #525d54; }
.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  color: #eee8d5;
  font: 400 var(--fs-hero)/.9 var(--display);
  letter-spacing: -.012em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0,0,0,.3);
}
.home-hero .hero-copy h1 span { display: block; }
.home-hero .hero-copy h1 span:last-child {
  margin-top: .05em;
  padding-left: .42em;
  color: #d8d2bd;
}
.hero-tagline {
  max-width: 760px;
  margin: var(--sp-5) 0 0;
  color: #aeb7ae;
  font: 400 var(--fs-body)/1.7 var(--ui);
  letter-spacing: .01em;
}
.hero-actions {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.hero-enter { min-width: 158px; }
.hero-secondary { min-height: 44px; padding-inline: 2px; }


.hero-featured-grave {
  position: relative;
  z-index: 6;
  top: 28px;
  width: 100%;
  min-height: 500px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  isolation: isolate;
}
.hero-featured-label {
  position: relative;
  z-index: 6;
  margin: 0 0 14px;
  color: #b2b9b0;
  text-transform: uppercase;
  letter-spacing: .09em;
  font: 600 11px/1 var(--ui);
}
.hero-featured-monument {
  position: relative;
  z-index: 3;
  display: block;
  width: 282px;
  height: auto;
  aspect-ratio: 3 / 4;
  color: #e5dfca;
  text-decoration: none;
  transform-origin: center bottom;
  transition: transform .2s ease, filter .2s ease;
}
.hero-featured-monument:hover { transform: translateY(-3px); filter: brightness(1.08); }
.hero-featured-bg {
  position: absolute;
  z-index: 0;
  top: 6px;
  left: 50%;
  width: min(340px, 121%);
  height: 390px;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.hero-featured-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.hero-featured-safe-zone {
  position: absolute;
  z-index: 4;
  top: 16%;
  left: 18%;
  right: 18%;
  bottom: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  color: #171b18;
  text-align: center;
  transform: translateY(-46px);
}
.hero-featured-logo {
  width: 92px;
  height: 48px;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateY(-8px);
}
.hero-featured-logo .grave-brand-img[data-logo-shape="wide"] { width: 90px; max-height: 30px; }
.hero-featured-logo .grave-brand-img[data-logo-shape="square"] { width: 44px; max-height: 44px; }
.hero-featured-logo .grave-brand-img[data-logo-shape="tall"] { width: 33px; max-height: 46px; }
.hero-featured-name {
  width: 100%;
  color: #151916;
  text-transform: uppercase;
  letter-spacing: .035em;
  font: 700 13px/1.14 var(--ui);
  overflow-wrap: anywhere;
}
.hero-featured-years { margin: 7px 0; color: #252b27; font: 10px/1.1 var(--mono); }
.hero-featured-epitaph { max-width: 170px; color: #202521; font: italic 11px/1.3 var(--serif); }
.hero-featured-price {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid rgba(25,31,26,.24);
  color: #202620;
  font: 700 11px/1 var(--ui);
  letter-spacing: .05em;
}
.hero-featured-stats {
  position: relative;
  z-index: 8;
  min-height: 28px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9c1b7;
  font: 600 10px/1 var(--mono);
}
.grave-cat-card--hero { width: 100%; }

.hero-featured-meta {
  position: relative;
  z-index: 6;
  max-width: 260px;
  margin: 8px 0 0;
  color: #747e75;
  text-align: center;
  font: 10px/1.35 var(--ui);
}
.hero-featured-fog {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(182,193,183,.09) 16%, rgba(226,232,222,.32) 48%, rgba(166,180,168,.13) 78%, transparent 100%);
  filter: blur(20px);
}
.hero-featured-fog-back { z-index: 1; }
.hero-featured-fog-back-a { width: 138%; height: 68px; top: 116px; left: -19%; animation: hero-featured-fog-back 17s ease-in-out infinite; }
.hero-featured-fog-back-b { width: 108%; height: 48px; top: 208px; right: -8%; opacity: .52; animation: hero-featured-fog-back 23s ease-in-out infinite reverse; }
.hero-featured-fog-front {
  z-index: 7;
  width: 132%;
  height: 60px;
  left: -16%;
  top: 188px;
  opacity: 0;
  animation: hero-featured-fog-front 14s ease-in-out infinite 3s;
}
@keyframes hero-featured-fog-back {
  0% { transform: translateX(8%) scaleX(.94); opacity: .1; }
  46% { transform: translateX(-4%) scaleX(1.06); opacity: .55; }
  100% { transform: translateX(5%) scaleX(.98); opacity: .18; }
}
@keyframes hero-featured-fog-front {
  0%, 24% { transform: translateX(13%) scaleX(.94); opacity: 0; }
  38% { opacity: .22; }
  52% { transform: translateX(-2%) scaleX(1.07); opacity: .58; }
  70% { opacity: .12; }
  100% { transform: translateX(-13%) scaleX(.98); opacity: 0; }
}

.hero-mini-yard {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 0;
  width: min(calc(100% - 64px), var(--max));
  height: 170px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-mini-yard::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 66px;
  background:
    linear-gradient(180deg, rgba(5,8,6,0) 0%, rgba(6,10,7,.5) 20%, rgba(6,9,7,.92) 62%, #040705 100%),
    radial-gradient(ellipse at 34% 98%, rgba(54,67,57,.15), transparent 56%),
    radial-gradient(ellipse at 72% 100%, rgba(48,60,51,.14), transparent 58%);
  clip-path: polygon(0 57%, 8% 46%, 16% 52%, 24% 40%, 33% 46%, 42% 36%, 52% 43%, 62% 35%, 71% 45%, 82% 38%, 91% 47%, 100% 41%, 100% 100%, 0 100%);
}
.hero-mini-yard::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: -3%;
  right: -3%;
  bottom: 21px;
  height: 24px;
  opacity: .28;
  background: radial-gradient(ellipse at 50% 80%, rgba(96,109,97,.12), transparent 68%);
  filter: blur(10px);
}
.hero-mini-fog {
  position: absolute;
  z-index: 7;
  display: block;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(188,196,189,.03) 8%, rgba(190,200,191,.11) 26%, rgba(226,231,223,.22) 50%, rgba(175,189,177,.12) 76%, transparent 100%);
  filter: blur(18px);
  opacity: 0;
}
.hero-mini-fog-a { left: 0; bottom: 26px; width: 46%; animation: hero-mini-fog-left 20s linear infinite; }
.hero-mini-fog-b { right: 0; bottom: 46px; width: 42%; animation: hero-mini-fog-right 28s linear infinite 4s; }
.hero-mini-fog-c { left: 29%; bottom: 58px; width: 25%; height: 15px; animation: hero-mini-fog-left 16s linear infinite 8s; }
.hero-mini-fog-d { right: 20%; bottom: 33px; width: 28%; height: 17px; animation: hero-mini-fog-right 22s linear infinite 11s; }
.hero-mini-fog-e { left: 48%; bottom: 36px; width: 20%; height: 13px; animation: hero-mini-fog-left 24s linear infinite 13s; }
.hero-mini-cross {
  position: absolute;
  z-index: 4;
  right: 19%;
  bottom: 30px;
  width: 2px;
  height: 18px;
  background: #181f1a;
  opacity: .36;
  transform: rotate(5deg);
}
.hero-mini-cross::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 2px;
  left: -4px;
  top: 5px;
  background: inherit;
}
.hero-mini-graves {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 86px;
  opacity: .9;
}
.hero-mini-image-shell {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 132px;
  background: url('/images/ui/hero-strip.png') center bottom / contain no-repeat;
  opacity: .96;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.34));
}
.hero-mini-stone {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 34px;
  border: 1px solid #313d35;
  border-bottom: 0;
  border-radius: 10px 10px 1px 1px;
  background:
    linear-gradient(180deg, #171d17 0%, #1e261f 54%, #101510 100%),
    radial-gradient(circle at 35% 30%, rgba(116,127,118,.06), transparent 26%);
  box-shadow: 0 6px 14px rgba(0,0,0,.38), inset 1px 0 rgba(116,127,118,.03), inset -1px 0 rgba(4,6,5,.2);
  transform-origin: center bottom;
}
.hero-mini-stone::before {
  content: '';
  position: absolute;
  inset: 7px 4px auto;
  height: 12px;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(177,186,178,.08) 18% 20%, transparent 22% 100%),
    linear-gradient(160deg, transparent 0 62%, rgba(186,194,187,.09) 64% 66%, transparent 68% 100%);
  opacity: .34;
}
.hero-mini-stone::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -4px;
  height: 4px;
  background: #090d0a;
  border-top: 1px solid #263028;
}
.hero-mini-stone-1 { left: 4%; width: 12px; height: 20px; transform: rotate(-8deg); opacity: .54; }
.hero-mini-stone-2 { left: 10%; width: 15px; height: 28px; transform: rotate(4deg); opacity: .7; }
.hero-mini-stone-3 { left: 16%; width: 17px; height: 33px; transform: rotate(-6deg); opacity: .78; }
.hero-mini-stone-4 { left: 24%; width: 13px; height: 24px; transform: rotate(3deg); opacity: .6; }
.hero-mini-stone-5 { left: 32%; width: 20px; height: 42px; transform: rotate(-2deg); }
.hero-mini-stone-6 { left: 42%; width: 14px; height: 26px; transform: rotate(6deg); opacity: .66; }
.hero-mini-stone-7 { left: 49%; width: 16px; height: 31px; transform: rotate(-4deg); opacity: .72; }
.hero-mini-stone-8 { left: 57%; width: 13px; height: 23px; transform: rotate(5deg); opacity: .58; }
.hero-mini-stone-9 { left: 64%; width: 18px; height: 37px; transform: rotate(-6deg); }
.hero-mini-stone-10 { left: 73%; width: 14px; height: 27px; transform: rotate(4deg); opacity: .64; }
.hero-mini-stone-11 { left: 81%; width: 18px; height: 35px; transform: rotate(-2deg); }
.hero-mini-stone-12 { left: 90%; width: 12px; height: 21px; transform: rotate(7deg); opacity: .52; }
.hero-mini-stone-4::before,
.hero-mini-stone-7::before,
.hero-mini-stone-10::before {
  background:
    linear-gradient(124deg, transparent 0 40%, rgba(190,198,191,.16) 42% 44%, transparent 46%),
    linear-gradient(168deg, transparent 0 60%, rgba(190,198,191,.1) 62% 64%, transparent 66%),
    linear-gradient(90deg, transparent 0 16%, rgba(177,186,178,.06) 18% 20%, transparent 22% 100%);
  opacity: .42;
}
.hero-mini-cat-track {
  position: absolute;
  z-index: 8;
  inset: 0;
}
.hero-cat-actor {
  position: absolute;
  left: 8%;
  bottom: 24px;
  width: 46px;
  height: 29px;
  animation: hero-cat-route 48s linear infinite;
  will-change: left, transform;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.7));
}
.hero-cat-character {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: #030403;
}
.hero-cat-pose {
  opacity: 0;
  transform-origin: center bottom;
}
.hero-cat-fill,
.hero-cat-paw { fill: currentColor; }
.hero-cat-tail-line,
.hero-cat-limb-static,
.hero-cat-leg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-cat-tail-line { stroke-width: 5.4; }
.hero-cat-limb-static,
.hero-cat-leg path { stroke-width: 4.2; }
.hero-cat-leg {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
.hero-cat-eye {
  fill: #dfd89a;
  stroke: none;
  filter: drop-shadow(0 0 2px rgba(223,216,154,.66));
}
.hero-cat-eye-rest {
  fill: none;
  stroke: #d1ca96;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.hero-cat-walk { animation: hero-cat-show-walk 48s steps(1, end) infinite; }
.hero-cat-sit { animation: hero-cat-show-sit 48s steps(1, end) infinite; }
.hero-cat-rest { animation: hero-cat-show-rest 48s steps(1, end) infinite; }
.hero-cat-walk-cycle { animation: hero-cat-bob .9s cubic-bezier(.37,.02,.63,.98) infinite alternate; }
.hero-cat-walk .hero-cat-leg-a { animation: hero-cat-step-a .9s ease-in-out infinite alternate; }
.hero-cat-walk .hero-cat-leg-b { animation: hero-cat-step-b .9s ease-in-out infinite alternate; }
.hero-cat-walk .hero-cat-leg-c { animation: hero-cat-step-b .9s ease-in-out infinite alternate; }
.hero-cat-walk .hero-cat-leg-d { animation: hero-cat-step-a .9s ease-in-out infinite alternate; }
.hero-cat-walk .hero-cat-tail-line { transform-origin: 20px 24px; animation: hero-cat-tail-sway 3s ease-in-out infinite alternate; }
.hero-cat-sit-tail { transform-origin: 46px 44px; animation: hero-cat-sit-tail 2.8s ease-in-out infinite alternate; }

@keyframes hero-mini-fog-left {
  0% { transform: translateX(10%) scaleX(1.02); opacity: 0; }
  22% { transform: translateX(3%) scaleX(1.06); opacity: .16; }
  48% { transform: translateX(-9%) scaleX(1.1); opacity: .3; }
  72% { transform: translateX(-17%) scaleX(1.04); opacity: .1; }
  100% { transform: translateX(-7%) scaleX(.98); opacity: 0; }
}
@keyframes hero-mini-fog-right {
  0% { transform: translateX(-12%) scaleX(.98); opacity: 0; }
  26% { transform: translateX(-6%) scaleX(1.03); opacity: .1; }
  60% { transform: translateX(6%) scaleX(1.08); opacity: .22; }
  100% { transform: translateX(13%) scaleX(1.02); opacity: 0; }
}
@keyframes hero-cat-route {
  0% { left: 8%; transform: scaleX(1) scale(.92); }
  18% { left: 24%; transform: scaleX(1) scale(.98); }
  28% { left: 24%; transform: scaleX(1) scale(.98); }
  44% { left: 45%; transform: scaleX(1) scale(1.05); }
  58% { left: 45%; transform: scaleX(1) scale(1.05); }
  76% { left: 20%; transform: scaleX(-1) scale(.88); }
  86% { left: 20%; transform: scaleX(-1) scale(.88); }
  100% { left: 40%; transform: scaleX(1) scale(1.02); }
}
@keyframes hero-cat-show-walk {
  0%, 18% { opacity: 1; }
  18.01%, 27.99% { opacity: 0; }
  28%, 44% { opacity: 1; }
  44.01%, 57.99% { opacity: 0; }
  58%, 76% { opacity: 1; }
  76.01%, 85.99% { opacity: 0; }
  86%, 100% { opacity: 1; }
}
@keyframes hero-cat-show-sit {
  0%, 17.99% { opacity: 0; }
  18%, 28% { opacity: 1; }
  28.01%, 75.99% { opacity: 0; }
  76%, 86% { opacity: 1; }
  86.01%, 100% { opacity: 0; }
}
@keyframes hero-cat-show-rest {
  0%, 43.99% { opacity: 0; }
  44%, 58% { opacity: 1; }
  58.01%, 100% { opacity: 0; }
}
@keyframes hero-cat-bob {
  from { transform: translateY(.1px); }
  to { transform: translateY(-.4px); }
}
@keyframes hero-cat-step-a {
  from { transform: rotate(4deg); }
  to { transform: rotate(-4deg); }
}
@keyframes hero-cat-step-b {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}
@keyframes hero-cat-tail-sway {
  from { transform: rotate(-1deg); }
  to { transform: rotate(1.6deg); }
}
@keyframes hero-cat-sit-tail {
  from { transform: rotate(-2deg); }
  to { transform: rotate(5deg); }
}

.category-hero { min-height: 390px; }
.category-hero .hero-inner {
  min-height: 390px;
  grid-template-columns: 1fr;
  padding-top: 62px;
  padding-bottom: 72px;
}
.category-hero .hero-copy h1 { max-width: 760px; }
.category-hero .hero-tagline { max-width: 660px; }

.cemetery-field {
  position: relative;
  z-index: 3;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 var(--sp-8);
  border-bottom: 1px solid #242c26;
  background: linear-gradient(180deg, #121813 0%, #101611 44%, #0c120e 76%, #090d0a 100%);
}
.cemetery-field::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 248px 0 0;
  pointer-events: none;
  opacity: .62;
  background:
    linear-gradient(180deg, rgba(34,43,36,.16), rgba(8,13,10,.08) 34%, rgba(5,8,6,.34) 100%),
    radial-gradient(ellipse at 20% 48%, rgba(88,101,91,.04), transparent 36%),
    radial-gradient(ellipse at 74% 54%, rgba(88,101,91,.035), transparent 42%);
}
.cemetery-field::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  pointer-events: none;
  opacity: .15;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.28));
}
.field-atmosphere {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 360px;
  height: 250px;
  pointer-events: none;
}
.field-atmosphere::before,
.field-atmosphere::after {
  content: '';
  position: absolute;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(238,241,235,.03) 12%, rgba(239,243,236,.18) 37%, rgba(249,250,246,.34) 54%, rgba(232,237,231,.12) 76%, transparent 100%);
  filter: blur(12px);
}
.field-atmosphere::before {
  left: -8%;
  top: 24px;
  width: 70%;
  animation: cemetery-mist-left 28s ease-in-out infinite alternate;
}
.field-atmosphere::after {
  right: -10%;
  top: 80px;
  width: 62%;
  height: 20px;
  opacity: .55;
  animation: cemetery-mist-right 34s ease-in-out infinite alternate;
}
@keyframes cemetery-mist-left {
  from { transform: translateX(0) scaleX(.96); opacity: .28; }
  to { transform: translateX(13%) scaleX(1.05); opacity: .66; }
}
@keyframes cemetery-mist-right {
  from { transform: translateX(-2%) scaleX(1.04); opacity: .22; }
  to { transform: translateX(-14%) scaleX(.95); opacity: .52; }
}

.cemetery-toolbar {
  position: relative;
  z-index: 8;
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
  padding: var(--sp-7) 0 var(--sp-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  border-bottom: 1px solid #374039;
}
.yard-heading { min-width: 0; max-width: 760px; }
.yard-heading .eyebrow { margin-bottom: var(--sp-2); }
.yard-heading h2 {
  max-width: 660px;
  margin: 0;
  color: #e8e2ce;
  font: 400 var(--fs-section)/.96 var(--display);
  letter-spacing: -.01em;
}
.yard-heading > p:last-child {
  max-width: 620px;
  margin: var(--sp-3) 0 0;
  color: #97a097;
  font: var(--fs-body)/1.55 var(--ui);
}
.cemetery-tools {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: var(--sp-2);
}
.cemetery-search,
.cemetery-sort {
  min-width: 0;
  min-height: 50px;
  border: 1px solid #4a554c;
  background: rgba(6,9,7,.64);
}
.cemetery-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 var(--sp-3);
}
.cemetery-search:focus-within,
.cemetery-sort:focus-within { border-color: #8d968a; background: rgba(7,10,8,.82); }
.cemetery-search label,
.cemetery-search button,
.cemetery-sort > span {
  color: #929b91;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 600 var(--fs-label)/1 var(--ui);
}
.cemetery-search label { padding-right: var(--sp-3); }
.cemetery-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  padding: 11px 6px;
  font: var(--fs-body)/1.2 var(--ui);
}
.cemetery-search input::placeholder { color: #667067; }
.cemetery-search button { border: 0; background: transparent; padding: 11px 0 11px var(--sp-3); cursor: pointer; }
.cemetery-sort {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 11px;
}
.cemetery-sort select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: #0a0e0b;
  color: #b8c0b6;
  cursor: pointer;
  font: var(--fs-meta)/1 var(--ui);
}
.search-message {
  width: min(100%, 760px);
  color: #98a198;
  font: var(--fs-meta)/1.45 var(--ui);
}
.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.category-rail a {
  flex: 0 0 auto;
  border: 1px solid #445047;
  padding: 9px 13px 8px;
  background: rgba(8,12,9,.58);
  color: #a9b0a6;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .065em;
  font: 500 var(--fs-meta)/1 var(--ui);
}
.category-rail a:hover,
.category-rail a.is-active { border-color: #8d968a; background: #e7e1cd; color: #0b0d0c; }
.category-rail a.is-active { cursor: default; }
.category-hero { min-height: 430px; }
.category-hero .hero-inner { min-height: 430px; padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
.category-hero .hero-copy h1 { max-width: 720px; font-size: clamp(54px, 6vw, 78px); line-height: .92; }
.category-hero .hero-tagline { max-width: 660px; }

.field-graves {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 80px), 1360px);
  margin: 0 auto;
  padding: 88px 0 132px;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 168px 38px;
  align-items: end;
}
.field-grave {
  position: relative;
  min-height: 294px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateY(var(--grave-y, 0)) rotate(var(--grave-r, 0deg));
  transform-origin: 50% 100%;
  opacity: 1;
}
.field-grave:nth-child(5n+1) { --grave-y: 12px; --grave-r: -1deg; }
.field-grave:nth-child(5n+2) { --grave-y: -3px; --grave-r: .6deg; }
.field-grave:nth-child(5n+3) { --grave-y: 17px; --grave-r: -.5deg; }
.field-grave:nth-child(5n+4) { --grave-y: 2px; --grave-r: .8deg; }
.field-grave:nth-child(5n) { --grave-y: 11px; --grave-r: -.7deg; }
.memorial-link {
  position: relative;
  z-index: 2;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease;
}
.memorial-link:hover { transform: translateY(-4px); filter: brightness(1.045); }
.memorial-link--grid {
  width: min(100%, 270px);
  margin-inline: auto;
}
.grave-visual-stack {
  position: relative;
  z-index: 3;
  width: min(100%, 270px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.grave-visual-stack .memorial-link--grid { width: 100%; }
.cemetery-stats {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 28px;
  margin-top: 4px;
  padding: 4px 10px;
  color: #b9c1b7;
  font: 600 10px/1 var(--mono);
}
.cemetery-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.cemetery-stat b { font-weight: 600; }
.cemetery-stat--candle img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.cemetery-stat--like .memorial-stat-icon { width: 13px; height: 13px; }

/* Cemetery-only illustrated tombstones. Hero and single-grave monuments keep their existing styles. */
.cemetery-stone {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.cemetery-stone__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.cemetery-stone__safe-zone {
  position: absolute;
  z-index: 1;
  top: 15.5%;
  left: 18%;
  right: 18%;
  bottom: 20.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  color: #171b18;
  transform: translateY(-48px);
}
.cemetery-stone__logo {
  width: min(72%, 84px);
  height: 38px;
  margin: 0 auto 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  transform: translateY(-7px);
}
.cemetery-stone__logo .grave-brand-img[data-logo-shape="wide"] { width: 82px; max-height: 27px; }
.cemetery-stone__logo .grave-brand-img[data-logo-shape="square"] { width: 38px; max-height: 38px; }
.cemetery-stone__logo .grave-brand-img[data-logo-shape="tall"] { width: 29px; max-height: 38px; }
.cemetery-stone__name {
  display: -webkit-box;
  width: 100%;
  max-height: 2.34em;
  overflow: hidden;
  color: #151916;
  text-transform: uppercase;
  letter-spacing: .035em;
  font: 700 clamp(11px, .9vw, 13px)/1.17 var(--ui);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.cemetery-stone__years {
  display: block;
  width: 100%;
  margin: 6px 0 7px;
  overflow: hidden;
  color: #272d29;
  font: 9px/1.1 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cemetery-stone__epitaph {
  display: -webkit-box;
  width: 100%;
  max-height: 2.65em;
  overflow: hidden;
  color: #202521;
  font: italic 11px/1.3 var(--serif);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.cemetery-stone__metric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 9px;
  color: #242a25;
  font: 9px/1 var(--mono);
}
.cemetery-stone__metric .memorial-stat-icon { width: 11px; height: 11px; }

.memorial {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 25% 31%, rgba(35,42,36,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 64%, rgba(30,36,31,.13) 0 3px, transparent 4px),
    linear-gradient(96deg, #4b524b 0%, #60675f 46%, #515851 100%);
  color: #d9ddd2;
  border: 1px solid #6a7269;
  border-bottom: 9px solid var(--stone-dark);
  box-shadow: inset 8px 0 rgba(38,43,39,.28), inset -7px 0 rgba(119,126,116,.07), 8px 10px 0 rgba(0,0,0,.25);
}
.memorial::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
  background:
    linear-gradient(104deg, transparent 0 18%, rgba(18,23,19,.15) 19% 20%, transparent 21% 100%),
    radial-gradient(ellipse at 62% 18%, rgba(216,219,207,.035), transparent 35%),
    radial-gradient(ellipse at 36% 76%, rgba(17,22,18,.14), transparent 31%);
}
.memorial::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 50%;
  width: 46px;
  height: 60px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(128deg, transparent 0 47%, rgba(24,29,25,.54) 48% 49.5%, transparent 50.5%),
    linear-gradient(52deg, transparent 0 59%, rgba(24,29,25,.42) 60% 61.5%, transparent 62.5%),
    linear-gradient(146deg, transparent 0 69%, rgba(24,29,25,.36) 70% 71%, transparent 72%);
}
.memorial > * { position: relative; z-index: 2; }
.memorial--grid {
  width: 100%;
  min-height: 226px;
  padding: 46px 14px 22px;
  clip-path: polygon(10% 100%,7% 28%,10% 18%,20% 8%,36% 2%,50% 0,66% 2%,80% 8%,90% 18%,93% 28%,90% 100%);
}
.memorial--featured {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 20px;
  bottom: 25px;
  padding: 58px 26px 32px;
  clip-path: polygon(50% 0, 61% 7%, 72% 7%, 78% 15%, 88% 18%, 91% 28%, 96% 31%, 96% 100%, 4% 100%, 4% 31%, 9% 28%, 12% 18%, 22% 15%, 28% 7%, 39% 7%);
  box-shadow: inset 8px 0 16px rgba(255,255,255,.022), inset -12px 0 20px rgba(0,0,0,.17), 0 22px 40px rgba(0,0,0,.36);
}
.memorial--detail {
  width: 100%;
  min-height: 405px;
  padding: 72px 32px 42px;
  clip-path: polygon(10% 100%,7% 28%,10% 18%,20% 8%,36% 2%,50% 0,66% 2%,80% 8%,90% 18%,93% 28%,90% 100%);
  box-shadow: inset 10px 0 rgba(38,43,39,.28), inset -8px 0 rgba(119,126,116,.08), 9px 11px 0 rgba(0,0,0,.28);
}
.detail-memorial-shell.stone-shape-1 .memorial--detail { clip-path: polygon(8% 100%,7% 20%,17% 8%,50% 1%,83% 8%,93% 20%,92% 100%); }
.detail-memorial-shell.stone-shape-2 .memorial--detail { clip-path: polygon(7% 100%,8% 19%,22% 5%,50% 0,78% 5%,92% 19%,93% 100%); }
.detail-memorial-shell.stone-shape-3 .memorial--detail { clip-path: polygon(12% 100%,7% 33%,9% 16%,28% 5%,50% 3%,72% 5%,91% 16%,93% 33%,88% 100%); }
.stone-shape-0 .memorial--grid { clip-path: polygon(10% 100%,8% 28%,12% 14%,30% 4%,70% 4%,88% 14%,92% 28%,90% 100%); }
.stone-shape-1 .memorial--grid { clip-path: polygon(8% 100%,7% 20%,17% 8%,50% 1%,83% 8%,93% 20%,92% 100%); }
.stone-shape-2 .memorial--grid { clip-path: polygon(7% 100%,8% 19%,22% 5%,50% 0,78% 5%,92% 19%,93% 100%); }
.stone-shape-3 .memorial--grid { clip-path: polygon(12% 100%,7% 33%,9% 16%,28% 5%,50% 3%,72% 5%,91% 16%,93% 33%,88% 100%); }
.stone-damaged-1 .memorial--grid::after { opacity: .38; left: 58%; top: 24px; transform: rotate(5deg) scale(.78); }
.stone-damaged-2 .memorial--grid::after { opacity: .31; left: 29%; top: 47px; transform: rotate(-15deg) scale(.68); }
.stone-damaged-3 .memorial--grid::after { opacity: .34; left: 51%; top: 62px; transform: rotate(12deg) scale(.62); }
.memorial__logo {
  width: 88px;
  height: 52px;
  margin: 0 auto var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.grave-brand-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.memorial--grid .grave-brand-img[data-logo-shape="wide"] { width: 86px; max-height: 29px; }
.memorial--grid .grave-brand-img[data-logo-shape="square"] { width: 46px; max-height: 46px; }
.memorial--grid .grave-brand-img[data-logo-shape="tall"] { width: 34px; max-height: 50px; }
.memorial--featured .memorial__logo { width: 98px; height: 60px; margin-bottom: 10px; }
.memorial--featured .grave-brand-img[data-logo-shape="wide"] { width: 96px; max-height: 35px; }
.memorial--featured .grave-brand-img[data-logo-shape="square"] { width: 54px; max-height: 54px; }
.memorial--featured .grave-brand-img[data-logo-shape="tall"] { width: 40px; max-height: 58px; }
.memorial--detail .memorial__logo { width: 132px; height: 72px; margin-bottom: var(--sp-3); }
.memorial--detail .grave-brand-img[data-logo-shape="wide"] { width: 128px; max-height: 44px; }
.memorial--detail .grave-brand-img[data-logo-shape="square"] { width: 66px; max-height: 66px; }
.memorial--detail .grave-brand-img[data-logo-shape="tall"] { width: 48px; max-height: 70px; }
.memorial__name {
  display: block;
  max-width: 100%;
  color: #e1e2d8;
  text-transform: uppercase;
  letter-spacing: .055em;
  font: 600 13px/1.15 var(--ui);
}
.memorial--featured .memorial__name { max-width: 176px; font-size: 14px; }
.memorial--detail .memorial__name { max-width: 280px; font-size: 17px; line-height: 1.15; }
.memorial__years {
  display: block;
  margin: var(--sp-2) 0 10px;
  color: #c8cec3;
  font: var(--fs-meta)/1.2 var(--mono);
}
.memorial__epitaph {
  display: block;
  max-width: 180px;
  min-height: 40px;
  color: #d0d4ca;
  font: italic var(--fs-body)/1.34 var(--serif);
}
.memorial--featured .memorial__epitaph { max-width: 158px; min-height: 0; margin-top: var(--sp-2); font-size: 12px; }
.memorial--detail .memorial__years { margin-top: var(--sp-3); font-size: 12px; }
.memorial--detail .memorial__epitaph { max-width: 275px; min-height: 0; font-size: 16px; line-height: 1.4; }
.memorial--detail .memorial__metric { margin-top: var(--sp-5); font-size: 11px; }
.memorial__metric {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: var(--sp-3);
  color: #c1c9bf;
  font: var(--fs-label)/1.2 var(--mono);
}
.memorial-stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.memorial-stat b { font-weight: 500; }
.memorial-stat-icon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.memorial__metric--price {
  margin-top: var(--sp-4);
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(215,210,190,.18);
  color: #ded8c3;
  font: 600 var(--fs-ui)/1 var(--ui);
  letter-spacing: .06em;
}

.grave-commerce {
  z-index: 7;
  width: min(100%, 270px);
  min-width: 0;
  background: transparent;
  border: 0;
  text-align: center;
}
.grave-commerce--field {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
}
.hero-featured-stack {
  position: relative;
  width: 282px;
}
.hero-featured-stack .hero-featured-monument { width: 100%; }
.grave-commerce--hero {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 272px;
  transform: translateX(-50%);
}
.grave-commerce--detail-overlay {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: calc(100% - 54px);
  max-width: 360px;
  transform: translateX(-50%);
}
.grave-cat-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  min-height: 84px;
  padding: 10px 11px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(180deg, rgba(18,23,19,.96), rgba(8,12,9,.98));
  color: #cbd1c7;
  text-align: left;
}
.grave-cat-card__avatar {
  width: 48px;
  height: 48px;
  align-self: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(92,104,95,.78);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #343d36, #171d18 68%);
  box-shadow: inset 0 0 0 4px rgba(7,10,8,.48);
  color: #aeb7ad;
  font: 700 11px/1 var(--mono);
  letter-spacing: .06em;
}
.grave-cat-card__avatar img,
.gravecat-profile-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grave-cat-card--empty .grave-cat-card__avatar { color: #68736b; filter: saturate(.65); }
.grave-cat-card__body { min-width: 0; align-self: center; }
.grave-cat-card__label,
.grave-cat-card__message,
.grave-cat-card__paid { display: block; }
.grave-cat-card__label {
  color: #818c83;
  text-transform: uppercase;
  letter-spacing: .075em;
  font: 600 9px/1.2 var(--mono);
}
.grave-cat-card__body strong {
  display: block;
  margin: 3px 0;
  overflow: hidden;
  color: #e1dcc9;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .035em;
  font: 700 12px/1.16 var(--ui);
}
.grave-cat-card__message {
  overflow: hidden;
  color: #929c93;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 10px/1.3 var(--ui);
}
.grave-cat-card__link {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #aab4aa;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  font: 9px/1.25 var(--mono);
}
.grave-cat-card__link:hover { color: #e9e3d0; }
.grave-cat-card__link--empty { color: #657067; }
.grave-cat-card__paid {
  margin-top: 4px;
  color: #c9c2ad;
  text-transform: uppercase;
  letter-spacing: .07em;
  font: 700 8px/1.2 var(--mono);
}
.keeper-takeover {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-top: 1px solid #384239;
  background: #0b0f0c;
  color: #9fa99f;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  font: 600 var(--fs-label)/1.2 var(--mono);
}
.keeper-takeover:hover { background: #e7e1cd; color: #0b0d0c; }

.field-cat {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 216px;
  width: 104px;
  height: 84px;
  transform: translateX(-50%);
}
.field-cat > span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #090b0a;
  color: #aab1a6;
  border: 1px solid #556057;
  padding: 3px 6px;
  text-transform: uppercase;
  font: var(--fs-label)/1 var(--mono);
}

.cat-mascot {
  position: absolute;
  width: 82px;
  height: 58px;
  left: 10px;
  bottom: 0;
  color: #020302;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.46));
}
.system-cat-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.system-cat-fill,
.system-cat-paw { fill: currentColor; }
.system-cat-tail,
.system-cat-leg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.system-cat-tail { stroke-width: 6.4; transform-origin: 29px 31px; animation: system-cat-tail-idle 3.4s ease-in-out infinite alternate; }
.system-cat-leg path { stroke-width: 4.9; }
.system-cat-leg {
  transform-box: fill-box;
  transform-origin: 50% 12%;
}
.system-cat-eye {
  fill: #ded79d;
  filter: drop-shadow(0 0 2px rgba(222,215,157,.7));
  animation: system-cat-blink 6.8s steps(1, end) infinite;
}
.field-cat .cat-mascot { left: 11px; bottom: -1px; }
.detail-cat { width: 76px; height: 54px; }
@keyframes system-cat-tail-idle {
  from { transform: rotate(-2deg); }
  to { transform: rotate(4deg); }
}
@keyframes system-cat-blink {
  0%, 47%, 50%, 100% { transform: scaleY(1); transform-origin: center; }
  48%, 49% { transform: scaleY(.12); }
}

.field-footer {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 64px), 760px);
  margin: 0 auto;
  padding: 30px 0 52px;
  display: grid;
  justify-items: center;
  gap: 28px;
  border-top: 1px solid rgba(76,88,79,.55);
}
.field-caption {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 8px;
  color: #7f8980;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: var(--fs-label)/1.4 var(--ui);
}
.field-caption > span:first-child { justify-self: center; }
.field-caption-divider { display: none; }
.field-caption-hint { justify-self: center; color: #8c958b; text-align: center; }
.cemetery-more {
  display: flex;
  justify-content: center;
  width: 100%;
}
.cemetery-more[hidden] { display: none; }
.load-more-button { min-width: 260px; min-height: 48px; padding-inline: 20px; }

.records {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
  padding: var(--sp-8) 0 var(--sp-9);
}
.records > header {
  max-width: 780px;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid #3a423b;
}
.records > header p:first-child {
  margin: 0 0 var(--sp-2);
  color: #939b92;
  text-transform: uppercase;
  letter-spacing: .075em;
  font: 600 var(--fs-label)/1.3 var(--ui);
}
.records > header h2 {
  margin: 0;
  color: #e8e2ce;
  font: 400 var(--fs-section)/.96 var(--display);
}
.records-note {
  margin: var(--sp-3) 0 0;
  color: #969f95;
  font: var(--fs-body)/1.55 var(--ui);
}
.ledgers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  padding-top: var(--sp-5);
}
.ledger {
  padding: 22px 20px 18px;
  border: 1px solid #303832;
  background: linear-gradient(180deg, rgba(16,20,17,.62) 0%, rgba(9,12,10,.32) 100%);
}
.ledger-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.ledger h2 {
  margin: 0;
  color: #e0dac6;
  font: 400 var(--fs-card)/1 var(--display);
}
.ledger-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #515a52;
  padding: 8px 10px;
  color: #aeb7ad;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 700 8px/1 var(--mono);
}
.ledger-more strong { font-size: 10px; line-height: 1; }
.ledger-more:hover { border-color: var(--paper); color: var(--paper); }
.ledger ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid #313831; }
.ledger li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #292f2a;
}
.ledger li > span { color: #7c887d; font: var(--fs-label)/1 var(--mono); }
.ledger li > a { color: #ebe5d2; text-decoration: none; font: 16px/1.2 var(--serif); }
.ledger li > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ledger small { color: #a9b2a8; text-align: right; font: var(--fs-meta)/1.3 var(--mono); }

.records-page { max-width: 1040px; padding-top: var(--sp-7); }
.records-page-header { max-width: 820px; margin: var(--sp-5) 0 var(--sp-7); padding-bottom: var(--sp-5); border-bottom: 1px solid #3a423b; }
.records-page-header h1 { max-width: 760px; margin: 0; color: #e8e2ce; font: 400 clamp(40px, 4.5vw, 58px)/.94 var(--display); }
.records-page-header > p:last-of-type { max-width: 700px; margin: var(--sp-4) 0 var(--sp-3); color: #a8b0a6; font: var(--fs-body-lg)/1.6 var(--ui); }
.records-page-header > span { color: #929c92; text-transform: uppercase; letter-spacing: .07em; font: var(--fs-meta)/1.3 var(--ui); }
.records-full-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #343c35; }
.records-full-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #2d342f;
}
.records-rank { color: #849087; font: var(--fs-meta)/1 var(--mono); }
.records-full-list a { display: flex; flex-direction: column; gap: 4px; color: #ece6d2; text-decoration: none; }
.records-full-list a strong { font: 600 var(--fs-body-lg)/1.25 var(--ui); text-transform: uppercase; letter-spacing: .04em; }
.records-full-list a small { color: #929c92; font: var(--fs-meta)/1.3 var(--mono); }
.records-full-list b { color: #c3cbc1; text-align: right; font: 600 var(--fs-ui)/1.3 var(--ui); }

.page { width: min(calc(100% - 40px), 1180px); margin: 0 auto; padding: var(--sp-7) 0 var(--sp-9); }
.back-link { color: #879087; text-decoration: none; font: 500 var(--fs-label)/1.3 var(--ui); text-transform: uppercase; letter-spacing: .07em; }
.back-link:hover { color: #d9d4c1; }
.page-header { max-width: 800px; margin: var(--sp-5) 0 var(--sp-7); padding-bottom: var(--sp-5); border-bottom: 1px solid #3a423b; }
.page-header .eyebrow { margin: 0 0 var(--sp-2); }
.page-title { max-width: 760px; margin: 0; color: #e8e2ce; font: 400 clamp(44px, 4.8vw, 62px)/.94 var(--display); letter-spacing: 0; }
.page-lede { max-width: 700px; margin: var(--sp-4) 0 0; color: #a8b0a6; font: var(--fs-body-lg)/1.65 var(--ui); }
.page--journey { max-width: 1040px; }
.page--form { max-width: 980px; }

.policy-page { max-width: 980px; }
.policy-header { max-width: 860px; margin-bottom: var(--sp-6); }
.policy-updated {
  margin: var(--sp-3) 0 0;
  color: #768078;
  text-transform: uppercase;
  letter-spacing: .07em;
  font: var(--fs-label)/1.4 var(--mono);
}
.policy-body { max-width: 860px; border-top: 1px solid #353d36; }
.policy-section { padding: 26px 0; border-bottom: 1px solid #303832; }
.policy-section h2 {
  margin: 0 0 10px;
  color: #e6e0cd;
  font: 500 25px/1.15 var(--editorial);
}
.policy-section p {
  max-width: 820px;
  margin: 0;
  color: #abb3a9;
  font: 15px/1.75 var(--ui);
}
.policy-contact {
  max-width: 860px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 24px 0 0;
  color: #7f8980;
  font: 12px/1.4 var(--ui);
}
.policy-contact a { color: #d8d2bf; text-decoration: none; }
.policy-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.grave-detail { width: min(calc(100% - 40px), 1240px); display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: clamp(56px, 6vw, 88px); }
.memorial-side { position: sticky; top: 32px; align-self: start; }
.detail-stone-wrap { position: relative; min-height: 0; padding-top: 30px; isolation: isolate; }
.detail-memorial-shell { position: relative; z-index: 2; width: 100%; }
.detail-featured-monument {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
}
.detail-featured-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.detail-featured-safe-zone {
  position: absolute;
  z-index: 3;
  top: 14%;
  left: 18%;
  right: 18%;
  bottom: 23%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  color: #171b18;
  text-align: center;
  transform: translateY(-50px);
}
.detail-featured-logo {
  width: 132px;
  height: 70px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-featured-logo .grave-brand-img[data-logo-shape="wide"] { width: 128px; max-height: 44px; }
.detail-featured-logo .grave-brand-img[data-logo-shape="square"] { width: 66px; max-height: 66px; }
.detail-featured-logo .grave-brand-img[data-logo-shape="tall"] { width: 48px; max-height: 70px; }
.detail-featured-name {
  display: block;
  width: 100%;
  color: #151916;
  text-transform: uppercase;
  letter-spacing: .045em;
  font: 700 17px/1.15 var(--ui);
  overflow-wrap: anywhere;
}
.detail-featured-years { margin: 10px 0 11px; color: #252b27; font: 12px/1.2 var(--mono); }
.detail-featured-epitaph { max-width: 275px; color: #202521; font: italic 16px/1.4 var(--serif); }
.detail-featured-stats {
  position: relative;
  z-index: 5;
  min-height: 32px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #b9c1b7;
  font: 600 11px/1 var(--mono);
}
.detail-featured-bg {
  position: absolute;
  z-index: 0;
  top: 6px;
  left: 50%;
  width: 98%;
  height: auto;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.detail-cat { left: 50%; bottom: 14px; transform: translateX(-50%) scale(.92); z-index: 5; filter: drop-shadow(0 1px 0 rgba(255,255,255,.04)) drop-shadow(0 2px 1px rgba(0,0,0,.42)); }
.detail-cat .system-cat-tail { animation: none; }

.grave-cat-block {
  position: relative;
  z-index: 3;
  width: calc(100% - 18px);
  min-height: 0;
  margin: 8px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.grave-cat-block::before { display: none; }
.grave-cat-card--detail { width: 100%; min-height: 84px; }
.grave-cat-block > .eyebrow { margin: 0 0 var(--sp-2); color: #8f998f; font-size: var(--fs-label); }
.current-grave-cat { text-align: center; }
.grave-cat-block h2 {
  margin: 0;
  color: #e3dec9;
  text-transform: uppercase;
  letter-spacing: .04em;
  font: 600 18px/1.15 var(--ui);
}
.grave-cat-block .grave-cat-until {
  max-width: 330px;
  margin: var(--sp-2) auto 0;
  color: #7f8980;
  text-align: center;
  font: var(--fs-meta)/1.45 var(--ui);
}
.grave-cat-empty-copy { max-width: 330px; margin: var(--sp-2) auto 0; color: #929c92; text-align: center; font: var(--fs-meta)/1.45 var(--ui); }
.grave-cat-block blockquote {
  max-width: 320px;
  margin: var(--sp-3) auto 0;
  padding: 0;
  border: 0;
  color: #b7bfb5;
  text-align: center;
  font: italic 14px/1.5 var(--serif);
}
.grave-cat-block .grave-cat-link { margin: var(--sp-2) 0 0; text-align: center; font-size: var(--fs-meta); }
.grave-cat-block .grave-cat-link a { color: #aeb7ad; }
.grave-cat-paid { margin: var(--sp-2) 0 0 !important; color: #d8d2bf !important; text-align: center; text-transform: uppercase; letter-spacing: .08em; font: 700 11px/1.35 var(--mono) !important; }
.grave-cat-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: var(--sp-2); margin-top: var(--sp-4); }
.grave-cat-claim { width: 100%; min-height: 44px; }
.icon-action {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #515b53;
  border-radius: 0;
  background: transparent;
  color: #c7cec3;
  cursor: pointer;
}
.icon-action:hover { border-color: #aab2a8; background: rgba(232,226,205,.05); }
.library-icon { width: 18px; height: 18px; display: block; filter: invert(.82); opacity: .9; }
.icon-action .library-icon { width: 17px; height: 17px; }
.former-grave-cats { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid #2f3730; }
.former-grave-cats-label { margin: 0 0 var(--sp-2); color: #7f8980; text-transform: uppercase; letter-spacing: .07em; font: 600 var(--fs-label)/1.3 var(--ui); }
.former-grave-cats ol { list-style: none; margin: 0; padding: 0; }
.former-grave-cats li { padding: var(--sp-2) 0; border-top: 1px solid rgba(47,55,48,.7); }
.former-grave-cats li:first-child { border-top: 0; }
.former-grave-cats li > div { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: baseline; }
.former-grave-cats strong { color: #c7cec3; font: 600 var(--fs-meta)/1.35 var(--ui); }
.former-grave-cats span { color: #69736a; white-space: nowrap; font: var(--fs-label)/1.3 var(--mono); }
.former-grave-cats p { margin: 4px 0 0 !important; color: #858f86 !important; font: italic 12px/1.4 var(--serif) !important; }
.former-grave-cats a { display: inline-block; margin-top: 4px; color: #879188; font: var(--fs-label)/1.35 var(--ui); }

.detail-content { min-width: 0; max-width: 760px; }
.detail-content > section { padding: 0 0 var(--sp-6); margin-bottom: var(--sp-6); border-bottom: 1px solid #353d36; }
.detail-content .eyebrow { margin-bottom: var(--sp-2); font-size: var(--fs-label); }
.detail-content h2 { margin: 0 0 var(--sp-3); color: #e7e1ce; font: 600 27px/1.15 var(--editorial); }
.detail-content .detail-hero-title { font: 400 clamp(34px, 3.5vw, 44px)/1.02 var(--display); }
.detail-content p { margin: 0 0 var(--sp-3); color: #b3baaf; font: 15px/1.72 var(--ui); }
.detail-content blockquote { color: #c0c6bc; font: italic 16px/1.55 var(--serif); }
.inline-feedback { min-height: 18px; margin: var(--sp-2) 0 0 !important; color: #9ba59b !important; font-size: var(--fs-meta) !important; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; background: #353d36; border: 1px solid #353d36; }
.fact { background: var(--ink); padding: 14px 15px; }
.fact dt { color: #899389; text-transform: uppercase; letter-spacing: .06em; font: var(--fs-label)/1.2 var(--ui); }
.fact dd { margin: 6px 0 0; color: #e1dbc8; font: 16px/1.25 var(--serif); }
.source-note { font: var(--fs-meta)/1.5 var(--ui) !important; color: #919b91 !important; }

.metric-icon { width: 22px; height: 22px; flex: 0 0 22px; color: #b9c0b6; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.primary-action,
.hero-enter,
.load-more-button,
.secondary-action,
.text-button,
.hero-secondary {
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--ui);
}
.primary-action,
.hero-enter,
.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #69756b;
  background: rgba(232,226,205,.045);
  color: #d8dbcf;
  text-transform: uppercase;
  letter-spacing: .065em;
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1;
}
.primary-action:hover,
.hero-enter:hover,
.load-more-button:hover {
  color: #f0ead7;
  border-color: #d7d2bd;
  background: rgba(232,226,205,.085);
}
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #515b53;
  background: transparent;
  color: #c7cec3;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1;
}
.secondary-action:hover { border-color: #9ea79d; color: var(--paper); }
.text-button,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #929c92;
  padding: 4px 0;
  font-size: var(--fs-ui);
  font-weight: 400;
  line-height: 1.35;
}
.text-button:hover,
.hero-secondary:hover,
.text-button.is-active {
  color: #e4decb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.primary-action:disabled, .secondary-action:disabled { opacity: .42; cursor: not-allowed; }

.respect-panel { padding-bottom: var(--sp-6) !important; }
.respect-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-4);
}
.respect-panel-head .eyebrow { margin: 0 0 var(--sp-1); }
.respect-panel-head h2 { margin: 0; color: #e7e1ce; font: 600 27px/1.15 var(--editorial); }
.respect-panel-head > p { margin: 0; color: #778178; text-align: right; font: var(--fs-meta)/1.5 var(--ui); }
.respect-lines { border-top: 1px solid #3a433c; border-bottom: 1px solid #3a433c; }
.respect-line {
  display: grid;
  grid-template-columns: 72px minmax(150px, .78fr) minmax(260px, 1.22fr);
  gap: var(--sp-4);
  align-items: center;
  min-width: 0;
  padding: var(--sp-4) 0;
}
.respect-line + .respect-line { border-top: 1px solid #343c35; }
.respect-symbol { width: 72px; height: 72px; display: grid; place-items: center; }
.respect-symbol--candle img { width: 50px; height: 50px; object-fit: contain; display: block; }
.respect-symbol--vote { width: 72px; height: 72px; margin: 0; }
.respect-rip-img { width: 56px; height: 56px; display: block; object-fit: contain; }
.respect-line-copy { min-width: 0; }
.respect-line-copy > span { display: block; margin-bottom: 5px; color: #7f8980; text-transform: uppercase; letter-spacing: .065em; font: var(--fs-label)/1.35 var(--ui); }
.respect-number { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.respect-number strong { color: #e4decb; font: 650 24px/1.08 var(--ui); }
.respect-line-copy--vote .respect-number strong { font: 600 20px/1.15 var(--editorial); }
.respect-number small { color: #707a71; text-transform: uppercase; letter-spacing: .055em; font: var(--fs-label)/1.35 var(--ui); }
.respect-line-action { min-width: 0; }
.respect-line-action > .secondary-action { min-width: 164px; }
.respect-line-action .inline-feedback { margin-bottom: 0 !important; }
.vote-meter { height: 7px; margin: 0 0 var(--sp-2); background: #202721; border: 1px solid #414a42; }
.vote-meter span { display: block; height: 100%; background: #aab2a5; }
.vote-copy { display: flex; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); color: #939c93; font: var(--fs-label)/1.45 var(--ui); text-transform: uppercase; letter-spacing: .04em; }
.respect-vote-control .button-row { gap: var(--sp-2); }
.icon-label-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.icon-label-button .library-icon { width: 15px; height: 15px; filter: invert(.85); opacity: .92; }
.respect-vote-buttons .secondary-action { min-width: 122px; }
.cat-box blockquote { margin: 16px 0; padding-left: 16px; border-left: 2px solid #4e574f; color: #c3c8bd; font: italic 18px var(--serif); }
.cat-current { color: #8c958b !important; font: var(--fs-meta)/1.4 var(--ui) !important; }

.field { display: block; margin: 0 0 var(--sp-5); }
.field > span { display: block; margin-bottom: var(--sp-2); color: #8f998f; text-transform: uppercase; letter-spacing: .075em; font: 600 var(--fs-label)/1.3 var(--ui); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #454e46;
  border-radius: 0;
  background: #0e120f;
  color: var(--paper);
  padding: 12px 14px;
  outline: none;
  font: var(--fs-body)/1.5 var(--ui);
}
.field input::placeholder,
.field textarea::placeholder { color: #606a61; opacity: 1; }
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #5d685f; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: #8c958a; background: #111612; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.check-field { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0 var(--sp-4) var(--sp-4) 0; color: #9ba39a; font: var(--fs-meta)/1.4 var(--ui); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.form-message { min-height: 18px; margin: var(--sp-3) 0 0; color: #aab3a9; font: var(--fs-meta)/1.5 var(--ui); }


.grave-images-section { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid #303831; }
.grave-images-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-4);
}
.grave-images-heading .eyebrow { margin: 0 0 var(--sp-1); }
.grave-images-heading h2 { margin: 0; color: #e7e1ce; font: 600 27px/1.15 var(--editorial); }
.grave-images-heading > p { margin: 0; color: #778178; text-align: right; font: var(--fs-meta)/1.5 var(--ui); }
.grave-images-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.grave-image-thumb { aspect-ratio: 4 / 3; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #394239; background: #0a0d0b; cursor: zoom-in; }
.grave-image-thumb:hover, .grave-image-thumb:focus-visible { border-color: #8f998f; outline: none; }
.grave-image-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82) contrast(.96); transition: transform .18s ease, filter .18s ease; }
.grave-image-thumb:hover img { transform: scale(1.025); filter: saturate(1) contrast(1); }
.grave-image-lightbox { position: relative; }
.grave-image-lightbox-frame { display: grid; place-items: center; min-height: 280px; max-height: 68vh; overflow: hidden; border: 1px solid #414a42; background: #070907; }
.grave-image-lightbox-frame img { display: block; max-width: 100%; max-height: 68vh; width: auto; height: auto; object-fit: contain; }
.grave-image-lightbox-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; margin-top: var(--sp-3); }
.grave-image-lightbox-meta span { color: #7d877e; font: var(--fs-meta)/1.4 var(--mono); }
.grave-image-lightbox-meta p { margin: 0; color: #aeb6ab; font: 14px/1.5 var(--ui); }
.grave-image-download { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #4c554e; color: #c4ccc1; text-decoration: none; text-transform: uppercase; letter-spacing: .055em; font: 600 var(--fs-label)/1 var(--ui); }
.grave-image-download:hover { border-color: #9ba49b; background: rgba(232,226,205,.05); }
.grave-image-download .library-icon { width: 15px; height: 15px; }
.grave-image-lightbox-nav { position: absolute; inset: 50% var(--sp-2) auto; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.grave-image-lightbox-nav .icon-action { width: 42px; height: 42px; background: rgba(8,11,8,.88); pointer-events: auto; }

.memory-section { padding-bottom: var(--sp-7) !important; }
.memory-form { margin: var(--sp-6) 0 0; padding: var(--sp-5); border: 1px solid #343c35; background: rgba(14,18,15,.55); }
.memory-form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid #303831; }
.memory-form-heading > span { color: #d7d2c0; font: 600 18px/1.2 var(--editorial); }
.memory-form-heading > small { color: #707a71; font: var(--fs-meta)/1.4 var(--ui); }
.memory-controls { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); }
.memory-controls h2 { margin: 0; color: #e7e1ce; font: 600 28px/1.15 var(--editorial); }
.section-note { max-width: 520px; margin: var(--sp-2) 0 0 !important; color: #879188 !important; font-size: var(--fs-meta) !important; }
.memory-sort { display: grid; grid-template-columns: auto minmax(130px, 160px); gap: var(--sp-2); align-items: center; color: #778178; font: var(--fs-meta)/1 var(--ui); }
.memory-sort > span { color: #707a71; text-transform: uppercase; letter-spacing: .06em; font: 600 var(--fs-label)/1 var(--ui); }
.memory-sort select { min-height: 38px; border: 1px solid #465048; border-radius: 0; background: #0d110e; color: #c4cbc1; padding: 0 30px 0 10px; outline: none; font: var(--fs-meta)/1 var(--ui); cursor: pointer; }
.memory-sort select:hover, .memory-sort select:focus { border-color: #879187; }
.memory { padding: var(--sp-5) 0; border-top: 1px solid #2f3630; }
.memory blockquote { margin: 0 0 var(--sp-3); font: italic 19px/1.4 var(--serif); }
.memory-meta { display: flex; justify-content: space-between; gap: var(--sp-4); color: #899389; font: var(--fs-meta)/1.4 var(--mono); }
.memory-reactions { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.memory-vote-button { min-width: 42px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border: 1px solid #3f4841; background: transparent; color: #8d968b; cursor: pointer; font: 600 var(--fs-label)/1 var(--ui); }
.memory-vote-button:hover:not(:disabled) { border-color: #879187; color: #e3dec9; }
.memory-vote-button:disabled { opacity: .42; cursor: default; }
.memory-vote-button .library-icon { width: 14px; height: 14px; filter: invert(.7); }
.memory-vote-button:hover:not(:disabled) .library-icon { filter: invert(.9); }
.empty-copy { color: #778178 !important; }
.memory-pagination { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3); align-items: center; padding-top: var(--sp-4); border-top: 1px solid #2f3630; }
.pagination-button { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #465048; background: transparent; color: #aab2a8; cursor: pointer; text-transform: uppercase; letter-spacing: .05em; font: 600 var(--fs-label)/1 var(--ui); }
.pagination-button:hover:not(:disabled) { border-color: #929c92; color: #e4decb; }
.pagination-button:disabled { opacity: .32; cursor: default; }
.pagination-button .library-icon { width: 14px; height: 14px; }
.pagination-status { color: #778178; text-align: center; font: var(--fs-meta)/1.4 var(--ui); }
.share-bar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: stretch; }
.share-panel-trigger { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: var(--sp-3); align-items: center; padding: var(--sp-3); border: 1px solid #3d463f; background: rgba(14,18,15,.42); color: #c7cec3; text-align: left; cursor: pointer; }
.share-panel-trigger:hover { border-color: #7f8980; background: rgba(232,226,205,.04); }
.share-panel-trigger > .library-icon { width: 18px; height: 18px; justify-self: center; }
.share-panel-trigger span { min-width: 0; }
.share-panel-trigger strong, .share-panel-trigger small { display: block; }
.share-panel-trigger strong { color: #d7dbcf; text-transform: uppercase; letter-spacing: .055em; font: 600 var(--fs-meta)/1.3 var(--ui); }
.share-panel-trigger small { margin-top: 3px; color: #778178; font: var(--fs-label)/1.3 var(--ui); }

.cat-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 var(--sp-7); border: 1px solid #333a34; background: #333a34; }
.cat-stat { min-width: 0; background: var(--ink); padding: var(--sp-4); }
.cat-stat b { display: block; overflow-wrap: anywhere; color: #e4decb; font: 600 24px/1.15 var(--ui); }
.cat-stat--favorite b { font-size: 18px; line-height: 1.25; }
.cat-stat span { display: block; margin-top: var(--sp-2); color: #879087; text-transform: uppercase; letter-spacing: .06em; font: var(--fs-label)/1.35 var(--ui); }
.timeline { max-width: 820px; border-top: 1px solid #353d36; }
.timeline-entry { padding: var(--sp-5) 0; border-bottom: 1px solid #353d36; }
.timeline-entry h3 { margin: 0; color: #e4decb; font: 600 var(--fs-editorial)/1.2 var(--editorial); }
.timeline-entry h3 a { text-decoration: none; }
.timeline-entry h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.timeline-entry blockquote { max-width: 680px; margin: var(--sp-3) 0 0; color: #b8bfb5; font: italic 16px/1.55 var(--editorial); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-2); color: #879087; font: var(--fs-meta)/1.4 var(--ui); }
.timeline-link { margin: var(--sp-3) 0 0; }
.timeline-link a { color: #9ea79d; text-decoration: none; font: var(--fs-meta)/1.4 var(--ui); }
.timeline-link a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

.bury-page { max-width: 980px; }
.bury-header { max-width: 880px; }
.bury-form { max-width: 820px; margin-top: var(--sp-6); }
.bury-field-pair { grid-template-columns: minmax(0, 1fr) 190px; gap: var(--sp-4); }
.burial-note { max-width: 820px; display: grid; grid-template-columns: 132px minmax(0,1fr); gap: var(--sp-4); margin: 0; padding: var(--sp-4) 0; border-top: 1px solid #394039; border-bottom: 1px solid #394039; color: #9fa89e; font: var(--fs-meta)/1.65 var(--ui); }
.burial-note strong { color: #d0d4c9; text-transform: uppercase; letter-spacing: .06em; }
.field-help { display: block; margin-top: var(--sp-2); color: #707a71; font: var(--fs-meta)/1.5 var(--ui); }
.protected-form.is-submitted { opacity: .72; }
.spam-shield { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-5); padding: var(--sp-3) 0 0; border-top: 1px solid #303831; background: transparent; }
.spam-shield-copy { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; }
.spam-shield-copy strong, .spam-shield-copy span { display: inline; }
.spam-shield-copy strong { color: #8f998f; text-transform: uppercase; letter-spacing: .055em; font: 600 var(--fs-label)/1.4 var(--ui); }
.spam-shield-copy span { color: #687269; font: var(--fs-meta)/1.45 var(--ui); }
.turnstile-mount { min-width: 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.shield-unavailable { margin: 0 !important; color: #9a8076 !important; text-align: left; font: var(--fs-meta)/1.45 var(--ui) !important; }
.form-submit-row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.form-submit-row .form-message { flex: 1 1 280px; margin: 0; }
.form-message--success { color: #c6cec3; }
.empty-state { padding-top: 95px; }
.empty-state h1 { max-width: 720px; margin: 12px 0 18px; font: 700 clamp(50px, 8vw, 92px)/.86 var(--serif); }

.modal-shell { position: fixed; inset: 0; z-index: 110; }
.modal-shell[hidden], .transit[hidden], .toast[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.checkout-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 560px);
  max-height: 88vh;
  overflow: auto;
  transform: translate(-50%, -50%);
  background: #101411;
  border: 1px solid #6b736a;
  box-shadow: 12px 12px 0 #050605;
  padding: 30px;
}
.checkout-modal--wide { width: min(94vw, 980px); }
.modal-close { position: absolute; right: 11px; top: 7px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.checkout-modal h2 { margin: 0 34px 6px 0; color: #e8e2ce; font: 400 34px/1.05 var(--display); }
.share-modal .eyebrow { margin: 0 0 var(--sp-2); }
.share-modal h2 { margin: 0 34px var(--sp-3) 0; font: 600 28px/1.15 var(--editorial); }
.share-modal-copy { margin: 0 0 var(--sp-4); color: #9fa89e; font: 14px/1.6 var(--ui); }
.share-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.share-option { min-height: 52px; display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-3); border: 1px solid #3e4840; background: #0d110e; color: #c7cec3; text-decoration: none; cursor: pointer; font: 600 var(--fs-ui)/1 var(--ui); }
.share-option:hover, .share-option.is-copied { border-color: #8d978e; background: rgba(232,226,205,.045); color: #eee8d5; }
.share-option .library-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.share-link-preview { margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid #2f3731; background: #0a0d0b; overflow: hidden; }
.share-link-preview span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #69736a; font: var(--fs-meta)/1.4 var(--mono); }
.checkout-price { margin: 3px 0 20px; font: 700 28px var(--mono); }
.checkout-price--minimum { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid #343d36; border-bottom: 1px solid #343d36; }
.checkout-price--minimum span { color: #7d877e; text-transform: uppercase; letter-spacing: .07em; font: 600 var(--fs-label)/1 var(--ui); }
.checkout-price--minimum strong { color: #e5dfcc; font: 700 28px/1 var(--mono); }
.amount-field small { display: block; margin-top: var(--sp-2); color: #778178; font: var(--fs-meta)/1.5 var(--ui); }
.money-input { display: grid; grid-template-columns: 34px minmax(0, 1fr); border: 1px solid #454e46; background: #0e120f; }
.money-input:focus-within { border-color: #8c958a; background: #111612; }
.money-input > span { display: grid; place-items: center; margin: 0; border-right: 1px solid #353d36; color: #8f998f; font: 700 15px/1 var(--mono); }
.money-input input { min-height: 46px; border: 0 !important; background: transparent !important; }
.gravecat-profile-picker { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.gravecat-profile-preview { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border: 1px solid #515b53; border-radius: 50%; background: #111612; color: #8f998f; font: 700 11px/1 var(--mono); }
.gravecat-profile-picker input[type="file"] { width: 100%; min-height: 42px; padding: 9px; border: 1px solid #454e46; background: #0e120f; color: #aeb7ad; }
.gravecat-profile-picker small { display: block; margin-top: 6px; color: #778178; font: var(--fs-meta)/1.4 var(--ui); }
.ledger--gravecats li > a { display: flex; flex-direction: column; gap: 2px; }
.ledger--gravecats li > a strong { color: inherit; font: inherit; }
.ledger--gravecats li > a small { color: #748078; font: var(--fs-label)/1.25 var(--mono); }
.ledger-empty { margin: 0; padding: 18px 0 8px; color: #7e887f; font: 13px/1.55 var(--ui); }

.checkout-warning { margin: 15px 0 20px; padding: 11px 0; border-top: 1px solid #384039; border-bottom: 1px solid #384039; color: var(--muted); font: var(--fs-meta)/1.55 var(--ui); }
.checkout-modal .tiny { color: #7f8980; font: var(--fs-meta)/1.5 var(--ui); }

.toast { position: fixed; z-index: 130; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--paper); color: var(--ink); border: 1px solid #fff; box-shadow: 6px 6px 0 #000; padding: 10px 14px; font: 11px var(--mono); }

.transit { position: fixed; inset: 0; z-index: 125; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(11,13,12,.97); }
.transit-scene { position: relative; width: min(90vw, 760px); height: 280px; border-bottom: 4px solid #29322a; }
.transit-stone { position: absolute; bottom: 0; width: 130px; height: 160px; padding: 54px 10px 10px; background: #4a514a; clip-path: polygon(10% 100%,7% 25%,20% 8%,50% 0,80% 8%,93% 25%,90% 100%); text-align: center; font: 700 15px/1.1 var(--serif); }
.transit-from { left: 2%; }
.transit-to { right: 2%; }
.transit .cat-mascot { left: 17%; bottom: 0; color: #1d241f; filter: drop-shadow(0 1px 0 #435046) drop-shadow(0 3px 2px rgba(0,0,0,.72)); }
.cat-walking { animation: walkAcross 2.6s linear forwards; }
.cat-walking .system-cat-tail { animation: transit-tail 1.3s ease-in-out infinite alternate; }
.cat-walking .system-cat-svg { animation: transit-bob .52s ease-in-out infinite alternate; }
.cat-walking .system-cat-leg-a,
.cat-walking .system-cat-leg-d { animation: transit-step-a .52s ease-in-out infinite alternate; }
.cat-walking .system-cat-leg-b,
.cat-walking .system-cat-leg-c { animation: transit-step-b .52s ease-in-out infinite alternate; }
.transit p { color: var(--muted); text-align: center; font: 14px var(--mono); }
.transit p strong { color: var(--paper); font: 700 36px var(--serif); }
@keyframes walkAcross { 0% { left: 17%; } 10% { left: 19%; } 90%,100% { left: 75%; } }
@keyframes transit-bob { from { transform: translateY(0); } to { transform: translateY(-1.4px); } }
@keyframes transit-step-a { from { transform: rotate(11deg); } to { transform: rotate(-12deg) translateY(-1px); } }
@keyframes transit-step-b { from { transform: rotate(-11deg) translateY(-1px); } to { transform: rotate(11deg); } }
@keyframes transit-tail { from { transform: rotate(-2deg); } to { transform: rotate(5deg); } }

.admin-login-page {
  min-height: 70vh;
  display: grid;
  place-items: start center;
  padding-top: 90px;
}
.admin-login-card {
  width: min(100%, 620px);
  padding: 34px;
  border: 1px solid #333c35;
  background: linear-gradient(180deg, rgba(16,21,17,.88), rgba(8,11,9,.75));
}
.admin-login-card h1 {
  margin: 0;
  color: #ece5d0;
  font: 700 clamp(44px, 6vw, 66px)/.92 var(--serif);
  letter-spacing: -.035em;
}
.admin-login-card > p:not(.admin-kicker) {
  margin: 15px 0 24px;
  color: #929c93;
  font: 14px/1.55 var(--ui);
}

.admin-page {
  width: min(calc(100% - 48px), 1440px);
  padding-top: 38px;
}
.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 4px 0 28px;
  border-bottom: 1px solid #343d36;
}
.admin-kicker {
  margin: 0 0 8px;
  color: #89938a;
  text-transform: uppercase;
  letter-spacing: .12em;
  font: 600 10px/1.2 var(--ui);
}
.admin-hero h1 {
  margin: 0;
  color: #ece5d0;
  font: 700 clamp(44px, 5vw, 68px)/.92 var(--serif);
  letter-spacing: -.035em;
}
.admin-hero > div > p:last-child {
  max-width: 720px;
  margin: 15px 0 0;
  color: #98a199;
  font: 15px/1.55 var(--ui);
}
.admin-lock,
.admin-action {
  border: 1px solid #536056;
  background: #111612;
  color: #c4ccc2;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .07em;
  font: 600 10px/1 var(--ui);
}
.admin-lock { min-height: 40px; padding: 0 14px; white-space: nowrap; }
.admin-lock:hover,
.admin-action:hover { border-color: #949e94; color: #eee8d5; }
.admin-action { min-height: 32px; padding: 0 10px; }
.admin-action.danger:hover { border-color: #956c67; color: #e8c4bd; }

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 26px;
}
.admin-metrics > div {
  min-height: 116px;
  padding: 20px;
  border: 1px solid #303932;
  background: linear-gradient(180deg, rgba(18,23,19,.84), rgba(10,13,11,.7));
}
.admin-metrics b {
  display: block;
  color: #ece5d0;
  font: 700 34px/1 var(--serif);
}
.admin-metrics span {
  display: block;
  margin-top: 10px;
  color: #b5beb4;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 600 11px/1.1 var(--ui);
}
.admin-metrics small {
  display: block;
  margin-top: 6px;
  color: #6f7a70;
  font: 11px/1.35 var(--ui);
}
.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-analytics-stat {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.admin-analytics-stat span {
  color: #8c978d;
  text-transform: uppercase;
  letter-spacing: .07em;
  font: 600 10px/1.2 var(--ui);
}
.admin-analytics-stat b {
  margin: 9px 0 6px;
  color: #e7e1ce;
  font: 600 30px/1 var(--editorial);
}
.admin-analytics-stat small { color: #747f76; font: 11px/1.4 var(--ui); }
.admin-analytics-top { margin-top: 0; }

.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.admin-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid #303832;
  background: rgba(9,12,10,.72);
}
.admin-nav button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #2c332e;
  background: transparent;
  color: #949e95;
  text-align: left;
  cursor: pointer;
  font: 600 12px/1.2 var(--ui);
}
.admin-nav button:last-child { border-bottom: 0; }
.admin-nav button span { color: #59645c; font: 9px/1 var(--mono); }
.admin-nav button:hover { color: #ddd8c6; background: rgba(255,255,255,.025); }
.admin-nav button.active {
  color: #f0ead7;
  background: #171d18;
  box-shadow: inset 3px 0 #a6afa3;
}
.admin-panels { min-width: 0; }
.admin-panel[hidden] { display: none !important; }
.admin-panel.active { display: block; }
.admin-panel-head {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.admin-panel-head h2 {
  margin: 0;
  color: #e9e3cf;
  font: 700 34px/1 var(--serif);
}
.admin-panel-head > div > p:last-child,
.admin-help,
.admin-card-head p {
  margin: 9px 0 0;
  color: #859086;
  font: 13px/1.5 var(--ui);
}
.admin-search {
  width: min(360px, 45%);
  display: block;
}
.admin-search span {
  display: block;
  margin-bottom: 7px;
  color: #7f8a81;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 600 9px/1 var(--ui);
}
.admin-search input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #3f4a41;
  outline: 0;
  background: #090d0a;
  color: #e6e0cf;
  font: 14px var(--ui);
}
.admin-search input:focus { border-color: #7f8a80; }

.admin-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #303832;
  background: linear-gradient(180deg, rgba(15,19,16,.72), rgba(8,11,9,.58));
}
.admin-card + .admin-card { margin-top: 18px; }
.admin-card h3 {
  margin: 0;
  color: #e4deca;
  font: 700 23px/1.1 var(--serif);
}
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.admin-card-grid .admin-card + .admin-card { margin-top: 0; }
.admin-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-form { display: grid; gap: 22px; }
.admin-form.compact { gap: 14px; margin-top: 18px; }
.admin-fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #333c35;
}
.admin-fieldset legend,
.admin-subhead {
  color: #c8d0c6;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 600 10px/1 var(--ui);
}
.admin-fieldset legend { padding: 0 8px; }
.admin-subhead { margin: 6px 0 -3px; padding-bottom: 8px; border-bottom: 1px solid #2f3731; }
.admin-form-grid { display: grid; gap: 15px; }
.admin-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-span-2 { grid-column: 1 / -1; }
.admin-form .field { margin: 0; }
.admin-form .field > span {
  display: block;
  margin-bottom: 7px;
  color: #9ca69d;
  font: 600 11px/1.2 var(--ui);
}
.admin-form .field small {
  display: block;
  margin-top: 6px;
  color: #6f7970;
  font: 11px/1.4 var(--ui);
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #3d473f;
  outline: 0;
  background: #080c09;
  color: #ddd8c7;
  font: 14px/1.35 var(--ui);
}
.admin-form textarea { min-height: 116px; resize: vertical; }
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { border-color: #7c887d; background: #0b100c; }
.admin-form-actions { display: flex; justify-content: flex-start; gap: 10px; }
.admin-page .primary-action {
  min-height: 0;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 13px;
  letter-spacing: .04em;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.admin-page .primary-action:hover { background: #d8d2be; color: var(--ink); }
.admin-page .secondary-action {
  min-height: 0;
  border-color: #747d73;
  padding: 10px 12px;
  color: var(--paper);
  letter-spacing: 0;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.admin-checks { display: flex; flex-wrap: wrap; gap: 20px; }
.admin-checks legend { width: auto; }
.admin-checks .check-field { margin: 0; color: #aab3aa; font: 13px var(--ui); }
.admin-modal-head h2 { margin: 0; color: #ece5d0; font: 700 32px/1.05 var(--serif); }
.admin-modal-head > p:last-child { margin: 10px 0 20px; color: #8d978e; font: 13px/1.5 var(--ui); }

.admin-table-card { padding: 0; overflow: hidden; }
.admin-table-wrap { width: 100%; overflow: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font: 12px/1.45 var(--ui);
}
.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #29302b;
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111612;
  color: #7e8980;
  text-transform: uppercase;
  letter-spacing: .07em;
  font: 600 9px/1.2 var(--ui);
}
.admin-table tbody tr:hover { background: rgba(255,255,255,.018); }
.admin-table td small {
  display: block;
  max-width: 680px;
  margin-top: 4px;
  color: #7a857c;
  font: 11px/1.45 var(--ui);
}
.admin-table code { color: #b0bab0; font: 11px var(--mono); }
.admin-grave-name { display: block; color: #ece6d4; font: 700 15px/1.2 var(--serif); text-decoration: none; }
.admin-graves-table td:nth-child(2) > small { color: #626d64; font: 10px var(--mono); }

.admin-logo-upload-field { display: block; }
.admin-logo-uploader {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #313a33;
  background: #090d0a;
}
.admin-logo-preview {
  width: 132px;
  height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3b453d;
  background: #0e130f;
  color: #6f796f;
  text-align: center;
  font: 11px/1.35 var(--ui);
}
.admin-logo-preview img {
  max-width: 104px;
  max-height: 68px;
  object-fit: contain;
}
.admin-logo-upload-controls {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.admin-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #59645b;
  color: #ded8c5;
  background: #121813;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .07em;
  font: 600 10px/1 var(--ui);
}
.admin-file-button:hover { border-color: #9ba49a; background: #182019; }
.admin-file-button input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.admin-logo-remove { display: inline-flex; align-items: center; gap: 8px; color: #aab2a9; font: 12px/1.3 var(--ui); }
.admin-logo-upload-controls small { color: #7f8980; font: 11px/1.45 var(--ui); }
@media (max-width: 620px) {
  .admin-logo-uploader { grid-template-columns: 1fr; }
  .admin-logo-preview { width: 100%; height: 110px; }
  .admin-gallery-existing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-gallery-upload-controls { grid-template-columns: 1fr; }
  .admin-gallery-upload-controls > small, .admin-image-queue { grid-column: 1; }
}


.admin-grave-images-field { margin: 0; }
.admin-gallery-uploader { display: grid; gap: var(--sp-4); margin-top: 8px; padding: 14px; border: 1px solid #313a33; background: #090d0a; }
.admin-gallery-existing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-gallery-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed #364038; color: #6f796f; text-align: center; font: 11px/1.4 var(--ui); }
.admin-gallery-item { min-width: 0; margin: 0; border: 1px solid #343e36; background: #0d120e; }
.admin-gallery-item > img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.admin-gallery-item figcaption { min-height: 42px; display: grid; grid-template-columns: minmax(0,1fr) 30px; gap: 6px; align-items: center; padding: 6px 7px; }
.admin-gallery-item figcaption > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #89938a; font: 10px/1.3 var(--ui); }
.admin-image-remove { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #475149; background: transparent; color: #a8b0a6; cursor: pointer; }
.admin-image-remove:hover { border-color: #9b8078; background: rgba(138,78,67,.09); }
.admin-image-remove .library-icon { width: 14px; height: 14px; }
.admin-gallery-upload-controls { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 14px; align-items: start; padding-top: 12px; border-top: 1px solid #29312b; }
.admin-gallery-upload-controls > small { grid-column: 1 / -1; color: #7f8980; font: 11px/1.45 var(--ui); }
.admin-image-caption { margin: 0; }
.admin-image-caption > span { font-size: 9px; }
.admin-image-caption input { min-height: 36px; padding: 8px 10px; font-size: 12px; }
.admin-image-queue { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.admin-image-queue span { padding: 5px 7px; border: 1px solid #323b34; color: #879187; font: 9px/1.2 var(--ui); }

.admin-logo-thumb {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  padding: 3px;
  border: 1px solid #323b34;
  background: #0a0d0b;
}
.admin-no-logo {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 7px;
  border: 1px dashed #3b443d;
  color: #657067;
  font: 9px/1 var(--ui);
  text-transform: uppercase;
}
.admin-muted { color: #69736b; }
.admin-money { color: #d8d3c0; font-weight: 700; }
.admin-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #3d473f;
  color: #a8b1a8;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font: 600 8px/1 var(--ui);
}
.admin-status.pending { color: #d2c39e; border-color: #665e49; }
.admin-status.approved,
.admin-status.active,
.admin-status.paid { color: #aec9b2; border-color: #49604d; }
.admin-status.rejected,
.admin-status.refunded,
.admin-status.revoked { color: #bd918a; border-color: #654945; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-key { max-width: 560px; }


@media (max-width: 1080px) {
  .admin-page { width: min(calc(100% - 32px), 1200px); }
  .admin-shell { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
  .admin-card-grid { grid-template-columns: 1fr; }
  .admin-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .admin-page { width: calc(100% - 24px); padding-top: 24px; }
  .admin-hero { align-items: flex-start; flex-direction: column; gap: 16px; }
  .admin-hero h1 { font-size: 46px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav {
    position: static;
    overflow-x: auto;
    flex-direction: row;
    border: 0;
    border-bottom: 1px solid #303832;
  }
  .admin-nav button { min-width: 132px; border: 1px solid #303832; border-right: 0; }
  .admin-nav button:last-child { border-right: 1px solid #303832; border-bottom: 1px solid #303832; }
  .admin-nav button.active { box-shadow: inset 0 -3px #a6afa3; }
  .admin-panel-head { min-height: 0; align-items: stretch; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-form-grid.two { grid-template-columns: 1fr; }
  .admin-span-2 { grid-column: auto; }
}
@media (max-width: 520px) {
  .admin-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-analytics-grid { grid-template-columns: 1fr; }
  .admin-metrics > div { min-height: 98px; padding: 14px; }
  .admin-metrics b { font-size: 28px; }
  .admin-card { padding: 16px; }
  .admin-fieldset { padding: 14px; }
  .admin-table th, .admin-table td { padding: 11px 10px; }
  .admin-graves-table th:nth-child(3), .admin-graves-table td:nth-child(3),
  .admin-graves-table th:nth-child(5), .admin-graves-table td:nth-child(5) { display: none; }
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 38px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
  border-top: 1px solid #2d342e;
  color: #909990;
  font: 12px/1.65 var(--ui);
}
.site-footer p { margin: 0; }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-copy { color: #9aa39a; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer-links a { color: #a7afa5; text-decoration: none; font: 500 12px/1.4 var(--ui); }
.footer-links a:hover { color: #ece6d3; text-decoration: underline; text-underline-offset: 4px; }
.footer-links span { color: #566157; }
.footer-socials { display: flex; align-items: center; gap: 10px; color: #818b82; }
.footer-follow { margin-right: 2px; color: #a2aba2; font: 500 11px/1 var(--ui); }
.footer-handle { margin-left: 2px; color: #737d74; font: 11px/1 var(--ui); }
.social-link {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aeb6ac;
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}
.social-link:hover { color: #eee8d5; transform: translateY(-1px); }
.social-link svg { width: 17px; height: 17px; display: block; fill: currentColor; }


@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(230px, 290px); gap: var(--sp-7); }
  .hero-copy h1 { font-size: clamp(72px, 7.6vw, 94px); }
  .hero-featured-grave { top: 22px; transform: scale(.94); transform-origin: center; }
  .field-graves { grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 168px 34px; }
  .ledgers { grid-template-columns: 1fr; }

  .grave-detail { grid-template-columns: 1fr; gap: 38px; }
  .memorial-side { position: relative; top: auto; }
  .detail-stone-wrap { max-width: 430px; margin-left: auto; margin-right: auto; }
  .detail-content { max-width: 820px; margin: 0 auto; }
  .cat-stats, .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-wide { grid-column: auto; }
}

@media (max-width: 767px) {
  .site-header {
    width: calc(100% - 30px);
    min-height: 0;
    padding: 14px 0;
    align-items: flex-start;
  }
  .wordmark { gap: 8px; font-size: 13px; letter-spacing: .02em; }
  .wordmark::before { width: 24px; height: 24px; flex-basis: 24px; }
  .site-header nav { gap: 10px 14px; flex-wrap: wrap; justify-content: flex-end; }
  .site-header nav a, .scan-toggle { font-size: var(--fs-label); }
  .scan-toggle { display: none; }

  .cemetery-hero { min-height: 0; }
  .hero-inner {
    width: calc(100% - 30px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding: var(--sp-7) 0 154px;
    align-items: start;
  }
  .hero-copy { max-width: 720px; }
  .hero-copy h1 { max-width: 700px; font-size: clamp(54px, 13vw, 72px); }
  .home-hero .hero-copy h1 span:last-child { padding-left: .15em; }
  .hero-tagline { max-width: 560px; margin-top: var(--sp-5); font-size: 13px; line-height: 1.65; }
  .hero-actions { margin-top: var(--sp-5); display: grid; grid-template-columns: 1fr; justify-items: start; gap: var(--sp-2); }
  .hero-enter { width: min(100%, 300px); min-height: 48px; }
  .hero-secondary { min-height: 34px; }
  .hero-featured-grave { top: 0; transform: none; }
  .memorial--featured { left: 18px; right: 18px; padding-left: 22px; padding-right: 22px; }
  .hero-mini-yard { width: calc(100% - 22px); height: 116px; }
  .hero-mini-image-shell { bottom: 4px; height: 98px; }
  .hero-mini-stone:nth-child(4), .hero-mini-stone:nth-child(8), .hero-mini-stone:nth-child(12) { display: none; }
  .hero-bat-b, .hero-bat-c { display: none; }

  .cemetery-toolbar { width: calc(100% - 30px); padding-top: var(--sp-6); gap: var(--sp-4); }
  .yard-heading h2 { max-width: 520px; font-size: 36px; }
  .yard-heading > p:last-child { font-size: 13px; }
  .cemetery-tools { width: 100%; grid-template-columns: minmax(0, 1fr) 138px; }
  .cemetery-search { min-height: 48px; grid-template-columns: auto 1fr; }
  .cemetery-search button { display: none; }
  .cemetery-sort { min-height: 48px; }
  .category-rail { gap: 7px; }
  .category-rail a { padding: 9px 11px 8px; font-size: 10px; }
  .field-atmosphere { top: 340px; }
  .field-graves { width: calc(100% - 30px); grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 172px 24px; padding: 76px 0 112px; }
  .grave-visual-stack { width: min(100%, 282px); margin-inline: auto; }
  .grave-commerce { width: min(100%, 282px); }
  .grave-commerce--field { width: min(92%, 258px); bottom: 38px; }
  .grave-commerce--detail-overlay { width: calc(100% - 44px); bottom: 40px; }
  .hero-featured-grave { width: 100%; max-width: 300px; min-height: 472px; margin-inline: auto; }
  .hero-featured-stack { width: 248px; }
  .hero-featured-monument { width: 248px; }
  .hero-featured-bg { width: min(300px, 121%); height: 346px; top: 6px; }
  .grave-commerce--hero { width: 238px; bottom: 18px; }
  .memorial--grid { min-height: 220px; padding-left: 11px; padding-right: 11px; }
  .memorial__name { font-size: 12px; }
  .memorial__years { font-size: 10px; }
  .memorial__epitaph { font-size: 13px; }
  .field-footer { width: calc(100% - 30px); max-width: 660px; padding: 26px 0 44px; gap: 24px; }

  .records { width: calc(100% - 30px); padding: var(--sp-7) 0 72px; }
  .records > header h2 { font-size: 36px; }
  .ledger { padding: 18px 15px 14px; }
  .ledger h2 { font-size: 26px; }
  .ledger li { grid-template-columns: 28px minmax(0,1fr) auto; gap: 9px; }
  .ledger li > a { font-size: 15px; }
  .ledger small { font-size: 11px; }

  .records-page { width: calc(100% - 30px); }
  .records-page-header h1 { font-size: 44px; }
  .records-full-list li { grid-template-columns: 34px minmax(0,1fr); gap: 12px; }
  .records-full-list b { grid-column: 2; text-align: left; }

  .page { width: calc(100% - 30px); padding-top: 38px; }
  .page-header { margin-bottom: var(--sp-6); }
  .page-title { font-size: 44px; }
  .cat-stats { grid-template-columns: 1fr 1fr; margin-bottom: var(--sp-6); }
  .bury-form { margin-top: var(--sp-5); }
  .detail-stone-wrap { max-width: 390px; }
  .detail-featured-safe-zone { top: 14%; bottom: 23%; transform: translateY(-44px); }
  .detail-featured-bg { top: 5px; width: 99%; }
  .detail-featured-name { font-size: 16px; }
  .detail-content h2 { font-size: 25px; }
  .detail-content .detail-hero-title { font-size: 36px; }
  .detail-content p { font-size: 14px; }
  .respect-panel-head,
  .grave-images-heading { grid-template-columns: 1fr; gap: var(--sp-2); }
  .respect-panel-head > p,
  .grave-images-heading > p { text-align: left; }
  .respect-line { grid-template-columns: 64px minmax(0, 1fr); }
  .respect-symbol { width: 64px; height: 64px; }
  .respect-line-action { grid-column: 2; }
  .grave-images-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share-bar { grid-template-columns: 1fr; }
  .memory-pagination { grid-template-columns: 1fr 1fr; }
  .pagination-status { grid-column: 1 / -1; grid-row: 1; }
  .pagination-button:first-child { grid-column: 1; }
  .pagination-button:last-child { grid-column: 2; justify-self: end; }
  .fact-grid { grid-template-columns: 1fr; }
  .memory-controls { align-items: flex-start; flex-direction: column; }
  .spam-shield { align-items: start; }
  .turnstile-mount { width: 100%; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .bury-field-pair { grid-template-columns: 1fr; gap: 0; }
  .burial-note { grid-template-columns: 1fr; gap: var(--sp-2); }
  .checkout-modal { padding: 25px 18px; }
  .transit-stone { width: 105px; height: 140px; font-size: 12px; }

  .site-footer { width: calc(100% - 30px); padding: var(--sp-6) 0 var(--sp-7); flex-direction: column; gap: var(--sp-5); font-size: 12px; }
  .footer-right { align-items: flex-start; width: 100%; }
  .footer-links { justify-content: flex-start; gap: var(--sp-2); }
  .footer-socials { flex-wrap: wrap; }
}

@media (max-width: 479px) {
  .field-footer { margin-top: 0; gap: 22px; }

  .site-header { flex-direction: column; gap: var(--sp-3); }
  .site-header nav { width: 100%; justify-content: space-between; }
  .hero-inner { padding-top: var(--sp-6); padding-bottom: 148px; }
  .hero-copy h1 { font-size: clamp(50px, 15vw, 62px); }
  .category-hero { min-height: 340px; }
  .category-hero .hero-inner { min-height: 340px; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
  .category-hero .hero-copy h1 { font-size: 48px; }
  .hero-tagline { font-size: 13px; }
  .hero-enter { width: 100%; }
  .hero-featured-stack { width: 224px; }
  .hero-featured-monument { width: 224px; }
  .hero-featured-bg { width: min(274px, 122%); height: 314px; top: 5px; }

  .cemetery-tools { grid-template-columns: 1fr; }
  .cemetery-sort { width: 100%; }
  .field-graves { max-width: 330px; grid-template-columns: 1fr; gap: 172px; padding-bottom: 104px; }
  .field-grave { min-height: 300px; transform: none; }
  .grave-visual-stack { width: min(100%, 270px); }
  .memorial-link--grid { width: 100%; max-width: 270px; margin: 0 auto; }
  .memorial--grid { min-height: 228px; }
  .grave-commerce { width: min(100%, 270px); }
  .grave-commerce--field { width: min(92%, 248px); bottom: 36px; }
  .grave-commerce--hero { width: 216px; bottom: 16px; }
  .grave-commerce--detail-overlay { width: calc(100% - 38px); bottom: 38px; }
  .grave-cat-card { grid-template-columns: 44px minmax(0, 1fr); padding: 9px 10px; }
  .grave-cat-card__avatar { width: 44px; height: 44px; }
  .gravecat-profile-picker { grid-template-columns: 56px minmax(0, 1fr); }
  .gravecat-profile-preview { width: 56px; height: 56px; }
  .field-cat { bottom: 220px; }
  .field-caption { width: min(100%, 360px); grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .field-caption > span:first-child, .field-caption-hint { justify-self: center; }
  .field-caption-divider { display: none; }
  .load-more-button { width: 100%; max-width: 310px; min-width: 0; }

  .ledger-heading { align-items: center; }
  .ledger h2 { font-size: 24px; }
  .ledger li { grid-template-columns: 25px minmax(0,1fr); }
  .ledger small { grid-column: 2; text-align: left; margin-top: -4px; }
  .records-page-header h1 { font-size: 40px; }
  .page { padding-top: var(--sp-6); padding-bottom: var(--sp-8); }
  .page-header { margin-top: var(--sp-4); padding-bottom: var(--sp-4); }
  .page-title { font-size: 40px; }
  .page-lede { font-size: 14px; }
  .policy-section { padding: 22px 0; }
  .policy-section h2 { font-size: 22px; }
  .policy-section p { font-size: 14px; line-height: 1.7; }
  .policy-contact { flex-direction: column; gap: 4px; }
  .cat-stats { grid-template-columns: 1fr; }
  .cat-stat { padding: var(--sp-4) var(--sp-3); }
  .timeline-meta { gap: var(--sp-2) var(--sp-3); }

  .grave-detail { gap: 30px; }
  .detail-stone-wrap { max-width: 330px; }
  .detail-featured-bg { top: 4px; width: 100%; }
  .detail-featured-safe-zone { top: 13.5%; left: 18%; right: 18%; bottom: 23.5%; transform: translateY(-40px); }
  .detail-featured-logo { width: 116px; height: 62px; }
  .detail-featured-logo .grave-brand-img[data-logo-shape="wide"] { width: 112px; max-height: 38px; }
  .detail-featured-logo .grave-brand-img[data-logo-shape="square"] { width: 58px; max-height: 58px; }
  .detail-featured-name { font-size: 15px; }
  .detail-featured-epitaph { font-size: 15px; }
  .grave-cat-block h2 { font-size: 16px; }
  .grave-cat-block .grave-cat-until { font-size: 11px; }
  .grave-cat-actions { grid-template-columns: minmax(0, 1fr) 44px; }
  .former-grave-cats li > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .detail-content > section { padding-bottom: 25px; margin-bottom: 25px; }
  .detail-content h2 { font-size: 23px; }
  .detail-content .detail-hero-title { font-size: 32px; }
  .respect-panel-head,
  .grave-images-heading { grid-template-columns: 1fr; gap: var(--sp-2); }
  .respect-panel-head > p,
  .grave-images-heading > p { text-align: left; }
  .respect-line { grid-template-columns: 54px minmax(0, 1fr); gap: var(--sp-3); }
  .respect-symbol { width: 54px; height: 54px; }
  .respect-symbol--candle img { width: 42px; height: 42px; }
  .respect-symbol--vote { width: 54px; height: 54px; margin: 0; }
  .respect-rip-img { width: 46px; height: 46px; }
  .respect-line-action { grid-column: 1 / -1; padding-left: 0; }
  .respect-line-action > .secondary-action { width: 100%; }
  .respect-vote-control .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .grave-images-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-controls { align-items: stretch; flex-direction: column; }
  .memory-sort { grid-template-columns: auto minmax(0, 1fr); }
  .grave-image-lightbox-nav { inset-inline: 4px; }
  .grave-image-lightbox-meta { grid-template-columns: auto 1fr; }
  .grave-image-download { grid-column: 1 / -1; justify-content: center; }
  .memory-form { padding: var(--sp-4); }
  .spam-shield { padding-top: var(--sp-3); }
  .share-options { grid-template-columns: 1fr; }
  .form-submit-row { align-items: stretch; }
  .form-submit-row .primary-action { width: 100%; }

  .footer-links { row-gap: 10px; }
  .footer-links span { display: none; }
  .footer-links a { flex: 0 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .cat-walking,
  .cat-walking .system-cat-tail,
  .cat-walking .system-cat-svg,
  .cat-walking .system-cat-leg,
  .system-cat-tail,
  .system-cat-eye,
  .hero-mini-fog,
  .hero-cat-actor,
  .hero-cat-pose,
  .hero-cat-walk-cycle,
  .hero-cat-limb,
  .hero-cat-tail-line { animation: none !important; }
  .cat-walking { left: 75% !important; }
  .hero-cat-actor { left: 68% !important; bottom: 24px !important; }
  .hero-cat-pose { opacity: 0 !important; }
  .hero-cat-rest { opacity: 1 !important; }
}

/* v0.5.5 — leaderboard polish + most mourned CTA alignment */
.feature-hidden { display: none !important; }

.respect-record-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  margin: 0 0 var(--sp-3);
  color: #939c93;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font: var(--fs-label)/1.45 var(--ui);
}
.respect-record-link:hover { color: #d9d7c4; }
.respect-record-link span:last-child { color: #7b857c; }

.leaderboard-page {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  padding: 36px 0 96px;
}
.leaderboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 64px;
  align-items: end;
  margin: 28px 0 40px;
  padding: 0 0 32px;
  border-bottom: 1px solid #3a423b;
}
.leaderboard-hero .eyebrow { margin: 0 0 10px; }
.leaderboard-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #e8e2ce;
  font: 400 clamp(46px, 5vw, 66px)/.94 var(--display);
}
.leaderboard-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 0;
  color: #a6aea4;
  font: 15px/1.7 var(--ui);
}
.leaderboard-hero-note {
  padding: 14px 0 2px 16px;
  border-left: 1px solid #465047;
}
.leaderboard-hero-note span,
.leaderboard-stats span,
.podium-grave > span,
.leaderboard-row-paid > span,
.leaderboard-entry-meta dt {
  display: block;
  color: #758078;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 600 10px/1.45 var(--ui);
}
.leaderboard-hero-note strong {
  display: block;
  margin-top: 6px;
  color: #c7c7b4;
  text-transform: uppercase;
  letter-spacing: .045em;
  font: 600 12px/1.4 var(--ui);
}

.leaderboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 48px;
  border: 1px solid #353e37;
  background: #0b0f0c;
}
.leaderboard-stats > div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid #353e37;
}
.leaderboard-stats > div:last-child { border-right: 0; }
.leaderboard-stats strong {
  display: block;
  margin-top: 8px;
  color: #e0ddc9;
  font: 600 24px/1 var(--editorial);
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: 1.14fr .93fr .93fr;
  gap: 14px;
  align-items: stretch;
}
.podium-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid #363f38;
  background: #0a0e0b;
}
.podium-card--1 {
  border-color: #596157;
  background: linear-gradient(180deg, rgba(205,204,176,.055), rgba(10,14,11,.98) 52%);
}
.podium-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.podium-rank {
  color: #828d83;
  letter-spacing: .06em;
  font: 600 11px/1 var(--ui);
}
.leaderboard-status {
  display: inline-flex;
  width: fit-content;
  color: #7f8a81;
  text-transform: uppercase;
  letter-spacing: .075em;
  font: 600 10px/1.4 var(--ui);
}
.leaderboard-status.current { color: #d0d0b1; }
.podium-amount {
  display: block;
  color: #e6e1cb;
  letter-spacing: -.035em;
  font: 600 clamp(30px, 3vw, 44px)/.95 var(--editorial);
}
.podium-card h2 {
  margin: 12px 0 0;
  color: #d6d5c2;
  overflow-wrap: anywhere;
  font: 600 22px/1.1 var(--editorial);
}
.podium-card--1 h2 { font-size: 27px; }
.podium-grave {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 0;
}
.podium-grave a,
.leaderboard-row-person a {
  color: #c5c7b5;
  text-decoration: none;
  font: 600 12px/1.45 var(--ui);
}
.podium-grave a:hover,
.leaderboard-row-person a:hover { text-decoration: underline; text-underline-offset: 3px; }
.podium-grave small,
.leaderboard-row-person small {
  color: #69736b;
  font: 11px/1.4 var(--ui);
}
.podium-card blockquote,
.leaderboard-row-details blockquote {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 1px solid #465047;
  color: #aeb5aa;
  font: italic 14px/1.55 var(--editorial);
}
.leaderboard-empty-note { margin: 18px 0 0; color: #657067; font: 11px/1.5 var(--ui); }
.leaderboard-entry-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0 0;
  border-top: 1px solid #303830;
}
.leaderboard-entry-meta > div { min-width: 0; padding: 12px 8px 0 0; }
.leaderboard-entry-meta dd {
  margin: 4px 0 0;
  color: #aeb6aa;
  overflow-wrap: anywhere;
  font: 11px/1.5 var(--ui);
}
.leaderboard-external {
  display: inline-block;
  max-width: 100%;
  margin-top: 14px;
  color: #9ea79e;
  overflow-wrap: anywhere;
  font: 12px/1.5 var(--ui);
  text-underline-offset: 3px;
}

.leaderboard-ledger { margin-top: 56px; }
.leaderboard-ledger-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #3a433c;
}
.leaderboard-ledger-head .eyebrow { margin: 0 0 5px; }
.leaderboard-ledger-head h2 { margin: 0; color: #dedbc8; font: 600 26px/1.05 var(--editorial); }
.leaderboard-ledger-head > span { color: #778178; text-transform: uppercase; letter-spacing: .07em; font: 600 10px/1.4 var(--ui); }
.leaderboard-row {
  display: grid;
  grid-template-columns: 58px minmax(190px, .85fr) 120px minmax(300px, 1.35fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid #303830;
}
.leaderboard-row-rank { padding-top: 4px; color: #778178; font: 600 12px/1.3 var(--ui); }
.leaderboard-row-person { min-width: 0; }
.leaderboard-row-person h3 { margin: 5px 0 8px; color: #d8d7c4; overflow-wrap:anywhere; font: 600 20px/1.1 var(--editorial); }
.leaderboard-row-person p { display:flex; flex-wrap:wrap; gap:7px; margin:0; }
.leaderboard-row-paid { padding-top: 2px; text-align: right; }
.leaderboard-row-paid strong { display:block; margin-top:5px; color:#dedcc8; white-space:nowrap; font:600 20px/1 var(--editorial); }
.leaderboard-row-details { min-width:0; }
.leaderboard-row-details blockquote,
.leaderboard-row-details .leaderboard-empty-note { margin-top:0; }
.leaderboard-row-details .leaderboard-entry-meta { margin-top:14px; }

@media (max-width: 920px) {
  .leaderboard-hero { grid-template-columns:1fr; gap:20px; }
  .leaderboard-hero-note { max-width:240px; }
  .leaderboard-podium { grid-template-columns:1fr 1fr; }
  .podium-card--1 { grid-column:1 / -1; }
  .leaderboard-row { grid-template-columns:48px minmax(0,1fr) 110px; }
  .leaderboard-row-details { grid-column:2 / -1; }
}
@media (max-width: 700px) {
  .leaderboard-page { width:min(100% - 28px, 1080px); padding-top:28px; }
  .leaderboard-hero { margin-top:22px; margin-bottom:28px; padding-bottom:24px; }
  .leaderboard-hero h1 { font-size:44px; }
  .leaderboard-stats { grid-template-columns:1fr 1fr; margin-bottom:32px; }
  .leaderboard-stats > div:nth-child(2) { border-right:0; }
  .leaderboard-stats > div:nth-child(-n+2) { border-bottom:1px solid #353e37; }
  .leaderboard-stats strong { font-size:20px; }
  .leaderboard-podium { grid-template-columns:1fr; }
  .podium-card--1 { grid-column:auto; }
  .podium-card { padding:20px; }
  .podium-card--1 h2 { font-size:24px; }
  .leaderboard-ledger { margin-top:40px; }
  .leaderboard-row { grid-template-columns:42px minmax(0,1fr); gap:12px; }
  .leaderboard-row-paid { grid-column:2; text-align:left; }
  .leaderboard-row-details { grid-column:2; }
}
@media (max-width: 480px) {
  .leaderboard-hero h1 { font-size:38px; }
  .leaderboard-stats > div { padding:14px; }
  .podium-amount { font-size:32px; }
  .leaderboard-entry-meta { grid-template-columns:1fr; }
  .leaderboard-entry-meta > div { padding:10px 0 0; }
}

/* v0.5.7 — restore homepage decorative cat + readable responsive leaderboard */
.leaderboard-page {
  width: min(1120px, calc(100% - 48px));
}

.leaderboard-hero p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
}

.leaderboard-hero-note span,
.leaderboard-stats span,
.podium-grave > span,
.leaderboard-row-paid > span,
.leaderboard-entry-meta dt {
  font-size: 12px;
  line-height: 1.5;
}

.leaderboard-hero-note strong {
  font-size: 13px;
  line-height: 1.45;
}

.leaderboard-stats > div {
  padding: 20px 22px;
}
.leaderboard-stats strong {
  margin-top: 9px;
  font-size: 27px;
}

.podium-card {
  padding: 24px;
}
.podium-rank {
  font-size: 13px;
}
.leaderboard-status {
  font-size: 12px;
  line-height: 1.45;
}
.podium-card h2 {
  font-size: 24px;
  line-height: 1.12;
}
.podium-card--1 h2 {
  font-size: 29px;
}
.podium-grave a,
.leaderboard-row-person a {
  font-size: 14px;
  line-height: 1.5;
}
.podium-grave small,
.leaderboard-row-person small {
  font-size: 13px;
  line-height: 1.5;
}
.podium-card blockquote,
.leaderboard-row-details blockquote {
  font-size: 15px;
  line-height: 1.6;
}
.leaderboard-empty-note {
  font-size: 13px;
  line-height: 1.55;
}

.leaderboard-entry-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.leaderboard-entry-meta > div {
  padding: 14px 8px 0 0;
}
.leaderboard-entry-meta dd {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.55;
}
.leaderboard-external {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.leaderboard-ledger-head h2 {
  font-size: 29px;
}
.leaderboard-ledger-head > span {
  font-size: 12px;
}
.leaderboard-row {
  grid-template-columns: 62px minmax(210px, .9fr) 130px minmax(320px, 1.35fr);
  gap: 20px;
  padding: 24px 0;
}
.leaderboard-row-rank {
  font-size: 13px;
  line-height: 1.4;
}
.leaderboard-row-person h3 {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.12;
}
.leaderboard-row-paid > span {
  font-size: 12px;
}
.leaderboard-row-paid strong {
  margin-top: 6px;
  font-size: 23px;
}

@media (max-width: 920px) {
  .leaderboard-page {
    width: min(100% - 40px, 1120px);
  }
  .leaderboard-podium {
    grid-template-columns: 1fr 1fr;
  }
  .leaderboard-row {
    grid-template-columns: 52px minmax(0, 1fr) 120px;
  }
  .leaderboard-row-details {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .leaderboard-page {
    width: min(100% - 28px, 1120px);
    padding-bottom: 64px;
  }
  .leaderboard-hero {
    gap: 18px;
  }
  .leaderboard-hero p:not(.eyebrow) {
    font-size: 15px;
  }
  .leaderboard-hero-note {
    max-width: none;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #39423b;
  }
  .leaderboard-stats {
    margin-bottom: 30px;
  }
  .leaderboard-stats > div {
    padding: 17px;
  }
  .leaderboard-stats strong {
    font-size: 23px;
  }
  .leaderboard-podium {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .podium-card,
  .podium-card--1 {
    grid-column: auto;
    padding: 22px;
  }
  .podium-card h2,
  .podium-card--1 h2 {
    font-size: 25px;
  }
  .podium-amount {
    font-size: 36px;
  }
  .leaderboard-ledger {
    margin-top: 42px;
  }
  .leaderboard-ledger-head {
    align-items: flex-start;
  }
  .leaderboard-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 24px 0;
  }
  .leaderboard-row-rank {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }
  .leaderboard-row-paid {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    text-align: right;
  }
  .leaderboard-row-person {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .leaderboard-row-details {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .leaderboard-row-person h3 {
    font-size: 23px;
  }
  .leaderboard-row-paid strong {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .leaderboard-hero h1 {
    font-size: 38px;
  }
  .leaderboard-stats {
    grid-template-columns: 1fr 1fr;
  }
  .leaderboard-stats > div {
    padding: 15px 13px;
  }
  .leaderboard-stats span {
    font-size: 11px;
  }
  .leaderboard-stats strong {
    font-size: 21px;
  }
  .leaderboard-entry-meta {
    grid-template-columns: 1fr;
  }
  .leaderboard-entry-meta > div {
    padding: 12px 0 0;
  }
  .leaderboard-ledger-head {
    gap: 14px;
  }
  .leaderboard-ledger-head h2 {
    font-size: 26px;
  }
  .leaderboard-ledger-head > span {
    font-size: 11px;
  }
}
