/* =============================================================
   Lewis & Wright Funeral Directors — "Heirloom Hymnal"
   Design language: warm sand + soft sage + matte ink + brass
   ============================================================= */

:root {
  --paper:        #F2E9D7;
  --paper-light:  #FAF6EE;
  --paper-deep:   #E5D9BF;
  --sage:         #8B9A82;
  --sage-deep:    #5E6B55;
  --sage-shadow:  rgba(94, 107, 85, 0.10);
  --ink:          #1A1815;
  --ink-soft:     #423F3A;
  --ink-muted:    #635F5B;   /* darkened for AA contrast on paper */
  --brass:        #9C7B3A;
  --brass-deep:   #7A5E2B;
  --rust:         #A8542B;   /* authentic accent — pulled from the family's paisley ties */
  --rust-deep:    #823F1F;
  --rule:         rgba(94, 107, 85, 0.28);
  --rule-soft:    rgba(94, 107, 85, 0.14);

  --serif:    "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:     "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --maxw:     1240px;
  --pad-x:    clamp(20px, 4vw, 56px);
}

/* ----------  reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

/* paper grain subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 2;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(26,24,21,0.6) 0.5px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(26,24,21,0.5) 0.5px, transparent 1px),
    radial-gradient(circle at 45% 55%, rgba(26,24,21,0.4) 0.4px, transparent 1px);
  background-size: 7px 7px, 11px 11px, 5px 5px;
}

/* ----------  typography  ---------- */
.serif { font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 100; }
.mono  { font-family: var(--mono); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(48px, 7.2vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.015em; }
h4 { font-size: clamp(18px, 1.4vw, 22px); letter-spacing: 0; line-height: 1.25; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sage-deep);
  font-weight: 500;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.italic-soft {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  color: var(--sage-deep);
}

/* ----------  layout  ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 3;
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1440px; }

section { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.bg-cream { background: var(--paper-light); }
.bg-sand  { background: var(--paper); }
.bg-deep  { background: var(--paper-deep); }
.bg-ink   { background: var(--ink); color: var(--paper-light); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--paper); }
.bg-ink .eyebrow { color: var(--sage); }

/* ----------  signature divider: triple sage rule + brass diamond  ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: clamp(40px, 5vw, 64px) auto;
  max-width: 460px;
}
.divider span {
  display: block;
  height: 1px;
  background: var(--rule);
  flex: 1;
}
.divider .diamond {
  width: 9px;
  height: 9px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: 0;
}
.divider.divider--tight { margin: 24px auto; max-width: 280px; }

/* ----------  contact-bar (top sticky on desktop)  ---------- */
.contact-bar {
  position: relative;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.contact-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-bar a {
  color: var(--paper);
  border-bottom: 1px dotted rgba(242,233,215,0.35);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.contact-bar a:hover { border-color: var(--brass); }
.contact-bar .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(156,123,58,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(156,123,58,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(156,123,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(156,123,58,0); }
}

/* ----------  site header / nav  ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 24px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brandmark__monogram {
  width: 46px; height: 46px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.04em;
  background: var(--paper-light);
  flex-shrink: 0;
}
.brandmark__text { line-height: 1.05; }
.brandmark__name {
  display: block;
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.brandmark__sub {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 4px;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.active {
  color: var(--ink);
  border-color: var(--brass);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px !important;
  font-family: var(--mono);
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  border: 0 !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--brass-deep); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------  hero  ---------- */
.hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
}
.hero__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.hero__meta .row { display: flex; gap: 16px; align-items: center; }
.hero__meta .dot {
  width: 6px; height: 6px; background: var(--brass); border-radius: 50%;
  display: inline-block;
}
.hero__title {
  font-size: clamp(54px, 8.4vw, 124px);
  line-height: 0.96;
  font-weight: 320;
  letter-spacing: -0.025em;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  color: var(--sage-deep);
  font-weight: 350;
}
.hero__lede {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-style: italic;
  font-weight: 350;
  font-size: clamp(20px, 1.9vw, 26px);
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 420px;
  margin-top: 36px;
}
.hero__phone {
  display: block;
  margin-top: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero__phone .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 10px;
}
.hero__phone .number {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 350;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-block;
}
.hero__phone .number:hover { color: var(--brass-deep); }
.hero__phone .note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
}

.hero__years {
  text-align: right;
  font-family: var(--serif);
}
.hero__years-num {
  display: block;
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.82;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 300;
  color: var(--sage);
  letter-spacing: -0.04em;
}
.hero__years-cap {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 12px;
}

/* ----------  trust strip (under hero)  ---------- */
.trust {
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-light);
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust__cell {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid var(--rule-soft);
}
.trust__cell:last-child { border-right: 0; }
.trust__cell .v {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--ink);
  display: block;
}
.trust__cell .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 4px;
  display: block;
}

/* ----------  intro / promise block  ---------- */
.promise {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.promise__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding-top: 14px;
}
.promise__body {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 320;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.promise__body em {
  font-style: italic;
  color: var(--sage-deep);
}
.promise__sig {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.promise__sig .line { width: 60px; height: 1px; background: var(--brass); }
.promise__sig .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ----------  services grid  ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.svc-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--paper-light);
  position: relative;
  transition: background .25s;
}
.svc-card:hover { background: var(--paper); }
.svc-card__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.svc-card__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  font-size: clamp(24px, 2vw, 30px);
  margin: 18px 0 14px;
  letter-spacing: -0.015em;
}
.svc-card__body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 28px;
}
.svc-card__link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 4px;
  display: inline-block;
}
.svc-card__link:hover { color: var(--brass-deep); border-color: var(--ink); }

/* ----------  obituaries grid  ---------- */
.obit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.obit-card {
  background: var(--paper-light);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--rule-soft);
  text-align: center;
  position: relative;
}
.obit-card__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--sage-deep);
  font-variation-settings: "opsz" 72, "SOFT" 100;
}
.obit-card__name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.obit-card__dates {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 8px;
}
.obit-card__service {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  line-height: 1.5;
}
.obit-card__link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
}

/* ----------  big CTA band  ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(72px, 10vw, 140px) 0;
}
.cta-band h2 {
  color: var(--paper);
  font-weight: 320;
}
.cta-band h2 em {
  font-style: italic;
  color: var(--sage);
}
.cta-band .lede {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  color: rgba(242,233,215,0.8);
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 540px;
  margin: 28px auto 40px;
}
.cta-band .phone-mega {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  font-size: clamp(48px, 6.5vw, 88px);
  display: inline-block;
  color: var(--paper);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta-band .phone-mega:hover { color: var(--brass); border-color: var(--paper); }
.cta-band .note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,233,215,0.55);
  margin-top: 24px;
}

/* ----------  footer  ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) 0 36px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(242,233,215,0.12);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-col a {
  color: rgba(242,233,215,0.78);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.footer-col a:hover { color: var(--brass); border-color: var(--brass); }

.footer-brand .brandmark__name { color: var(--paper); }
.footer-brand .brandmark__sub  { color: var(--sage); }
.footer-brand .brandmark__monogram {
  border-color: var(--paper);
  background: var(--ink);
  color: var(--paper);
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  color: rgba(242,233,215,0.7);
  font-size: 15px;
  margin-top: 24px;
  line-height: 1.5;
  max-width: 320px;
}

.footer-bottom {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,233,215,0.5);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(242,233,215,0.7); }
.footer-bottom a:hover { color: var(--brass); }

/* ----------  mobile sticky phone strip  ---------- */
.mobile-phone-strip {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  z-index: 100;
  border-top: 2px solid var(--brass);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mobile-phone-strip .strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mobile-phone-strip a {
  background: var(--brass);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ----------  reveal animations (fail-open)  ---------- */
.reveal--hidden {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal--show {
  opacity: 1 !important;
  transform: none !important;
}

/* ----------  responsive  ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__years { text-align: left; margin-top: 40px; }
  .hero__years-num { font-size: clamp(120px, 30vw, 220px); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .obit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust__row { grid-template-columns: repeat(2, 1fr); }
  .trust__cell { border-bottom: 1px solid var(--rule-soft); padding: 14px; }
  .trust__cell:nth-child(2) { border-right: 0; }
  .trust__cell:nth-child(3), .trust__cell:nth-child(4) { border-bottom: 0; }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }
  .contact-bar { display: none; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--paper-light);
    padding: 24px var(--pad-x);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    gap: 18px;
    align-items: flex-start;
    z-index: 60;
  }
  .nav.is-open a { font-size: 16px; }
  .nav.is-open .nav-cta { width: 100%; justify-content: center; text-align: center; padding: 14px 18px !important; }
  .mobile-phone-strip { display: block; }
  .promise { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .obit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 56px 0 64px; }
  .hero__phone { margin-top: 28px; padding: 28px 0; }
  .hero__phone .number { font-size: 36px; }
  .cta-band .phone-mega { font-size: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 44px; }
  .trust__row { grid-template-columns: 1fr 1fr; }
  .trust__cell .v { font-size: 22px; }
}

/* =============================================================
   PREMIUM LAYER — bespoke motion & components (v2)
   All motion is fail-open & honours prefers-reduced-motion.
   ============================================================= */

/* ---- header logo lockup polish (real engraved monogram feel) ---- */
.brandmark__monogram {
  position: relative;
  overflow: hidden;
  transition: border-color .35s ease, background .35s ease;
}
.brandmark:hover .brandmark__monogram {
  border-color: var(--brass);
  background: var(--paper);
}
/* hairline brass corner ticks on the monogram — small bespoke detail */
.brandmark__monogram::before,
.brandmark__monogram::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-color: var(--brass);
  opacity: 0;
  transition: opacity .35s ease;
}
.brandmark__monogram::before { top: 3px; left: 3px; border-top: 1px solid; border-left: 1px solid; }
.brandmark__monogram::after  { bottom: 3px; right: 3px; border-bottom: 1px solid; border-right: 1px solid; }
.brandmark:hover .brandmark__monogram::before,
.brandmark:hover .brandmark__monogram::after { opacity: 1; }

/* ---- staggered reveal children ---- */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
[data-reveal-stagger].reveal--show > * {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].reveal--show > *:nth-child(1) { transition-delay: .00s; }
[data-reveal-stagger].reveal--show > *:nth-child(2) { transition-delay: .07s; }
[data-reveal-stagger].reveal--show > *:nth-child(3) { transition-delay: .14s; }
[data-reveal-stagger].reveal--show > *:nth-child(4) { transition-delay: .21s; }
[data-reveal-stagger].reveal--show > *:nth-child(5) { transition-delay: .28s; }
[data-reveal-stagger].reveal--show > *:nth-child(6) { transition-delay: .35s; }

/* ---- line-mask reveal for hero title ---- */
.hero__title .line-mask {
  display: block;
  overflow: hidden;
}
.hero__title .line-inner {
  display: block;
  transform: translateY(102%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.hero__title.lines-in .line-inner { transform: none; }
.hero__title.lines-in .line-inner:nth-child(1) { transition-delay: .05s; }

/* ---- count-up shimmer on the years numeral ---- */
.hero__years-num, .trust__cell .v, .story-intro__year {
  transition: opacity .6s ease;
}

/* ---- card lift micro-interaction ---- */
.svc-card, .obit-card, .gen-card, .support-card, .contact-card, .arrival-card, .plan-step {
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease, background .25s ease;
  will-change: transform;
}
.svc-card:hover, .obit-card:hover, .support-card:hover, .gen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(26,24,21,0.28);
  z-index: 2;
}
/* brass top-edge wipe on service cards */
.svc-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 0;
  background: var(--brass);
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.svc-card:hover::after { width: 100%; }

/* ---- animated link underline draw ---- */
.svc-card__link, .obit-card__link {
  position: relative;
  border-bottom-color: transparent !important;
}
.svc-card__link::after, .obit-card__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.svc-card:hover .svc-card__link::after,
.svc-card__link:hover::after,
.obit-card:hover .obit-card__link::after { transform: scaleX(1); }

/* ---- magnetic CTA wrapper ---- */
.magnetic { display: inline-block; transition: transform .25s cubic-bezier(.22,.61,.36,1); }

/* ---- hero parallax target ---- */
.hero__years { will-change: transform; }

/* ---- building photo band ---- */
.building-band {
  position: relative;
  min-height: clamp(320px, 42vw, 520px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.building-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(26,24,21,0.92) 0%, rgba(26,24,21,0.78) 38%, rgba(26,24,21,0.28) 75%, rgba(26,24,21,0.12) 100%);
}
.building-band__inner { position: relative; z-index: 2; max-width: 620px; }
.building-band .eyebrow { color: var(--sage); }
.building-band h2 { color: var(--paper); font-weight: 320; }
.building-band h2 em { font-style: italic; color: var(--sage); }
.building-band p {
  color: rgba(242,233,215,0.86);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 350;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
  margin: 24px 0 32px;
}
.building-band__addr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,233,215,0.6);
  margin-top: 28px;
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid rgba(242,233,215,0.5);
  padding: 14px 24px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---- heritage logo artifact (story page) ---- */
.heritage-mark {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) 0;
}
.heritage-mark img {
  max-width: clamp(260px, 38vw, 440px);
  margin: 0 auto 24px;
  filter: drop-shadow(0 2px 1px rgba(255,255,255,0.6));
}
.heritage-mark figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* ---- in-memoriam candle motif (subtle, decorative) ---- */
.candle {
  width: 4px; height: 26px;
  background: linear-gradient(var(--paper-light), var(--paper-deep));
  margin: 0 auto;
  position: relative;
  border-radius: 1px;
}
.candle::before {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  width: 7px; height: 12px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 70%, #F6C66B 0%, #D88A2B 55%, rgba(216,138,43,0) 75%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flame 2.4s ease-in-out infinite alternate;
  transform-origin: 50% 90%;
}
@keyframes flame {
  0%   { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: .92; }
  100% { transform: translateX(-50%) scale(1.08,1.14) rotate(2deg); opacity: 1; }
}

/* ---- footer logo authenticity tick ---- */
.footer-brand .est {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 18px;
  display: inline-block;
  border: 1px solid rgba(242,233,215,0.18);
  padding: 6px 12px;
}

/* ---- reduced motion: kill all motion, force visible ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal-stagger] > *,
  .hero__title .line-inner { opacity: 1 !important; transform: none !important; }
  .candle::before { animation: none; }
}
