/* =====================================================================
   THE MOTSEGOA MEMORIAL
   Monochrome editorial stylesheet
   ===================================================================== */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --black: #080808;
  --ivory: #F7F5F1;
  --charcoal: #242424;
  --grey: #E8E6E2;
  --mid: #6E6C69;          /* derived neutral for secondary text on light */
  --mid-dark: #A9A6A1;     /* derived neutral for secondary text on dark */

  /* Rockafella Royal Farewell brand colours (sampled from the logo) */
  --gold-deep: #5C4313;
  --gold: #A9802F;
  --gold-light: #F4C866;
  --silver: #9C9C9C;
  --gold-gradient: linear-gradient(100deg, #5C4313 0%, #A9802F 28%, #F4C866 50%, #A9802F 72%, #5C4313 100%);

  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-numeral: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --wrap-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --header-h: 68px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 1; }
.wrap--narrow { width: min(var(--wrap-narrow), 100% - 2 * var(--gutter)); }

/* Pattern layers are pseudo-surfaces recoloured through CSS masks */
.pattern-layer,
.cover__pattern, .home__pattern, .directions__pattern, .memory__pattern, .obit__damask, .mobile-menu__pattern {
  position: absolute; inset: 0; pointer-events: none;
}

/* ---------- Ornament ---------- */
.ornament { display: block; width: 180px; height: 22px; margin: 1.5rem auto; color: currentColor; opacity: .7; }
.ornament--wide { width: min(320px, 70%); margin: clamp(3rem, 7vw, 5rem) auto; color: var(--charcoal); opacity: .45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .9rem 1.6rem;
  font-family: var(--f-label); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; text-align: center;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { min-height: 46px; padding: .7rem 1.1rem; font-size: .66rem; letter-spacing: .18em; }
.btn--dark { background: var(--black); color: var(--ivory); border-color: var(--black); }
.btn--dark:hover { background: var(--charcoal); }
.btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.btn--light:hover { background: var(--white); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(247,245,241,.45); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(247,245,241,.08); }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.text-link {
  font-family: var(--f-label); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; padding-bottom: .35rem; border-bottom: 1px solid currentColor;
  display: inline-block; transition: opacity .3s;
}
.text-link:hover { opacity: .6; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--black);
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Arch frame (signature device) ---------- */
.arch-frame {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--grey);
  isolation: isolate;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.02); }
.arch-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8,8,8,.12);
}
.arch-frame--dark { background: var(--charcoal); }
.arch-frame--dark::after { box-shadow: inset 0 0 0 1px rgba(247,245,241,.18), inset 0 -120px 120px -60px rgba(8,8,8,.6); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.section-head__kicker {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 400;
  color: var(--mid); margin-bottom: .6rem;
}
.section-head__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem); line-height: .95; letter-spacing: -.01em;
  color: var(--black);
}
.section-head .ornament { margin-top: 2rem; }
.section-head--left { text-align: left; margin-bottom: 2.5rem; }
.section-head--light .section-head__title { color: var(--ivory); }
.section-head--light .section-head__kicker { color: var(--mid-dark); }
.section-head--light .ornament { color: var(--ivory); opacity: .5; }

.eyebrow {
  font-family: var(--f-label); font-size: .7rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase;
}

/* =====================================================================
   LOADER
   ===================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  background: var(--black); color: var(--ivory);
  transition: opacity .9s var(--ease), visibility .9s;
  animation: loader-failsafe .9s 6s forwards; /* clears itself even if JavaScript fails */
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__arch { width: 56px; height: 70px; fill: none; stroke: var(--ivory); stroke-width: 1.2; }
.loader__arch path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.8s var(--ease) forwards; }
.loader__arch path + path { stroke-width: .7; animation-delay: .35s; }
.loader__name { font-family: var(--f-display); font-weight: 300; font-size: 2rem; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; opacity: 0; animation: fade 1.2s .6s forwards; }
.loader__sub { font-family: var(--f-label); font-size: .62rem; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: var(--mid-dark); opacity: 0; animation: fade 1.2s .9s forwards; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* =====================================================================
   COVER
   ===================================================================== */
.cover {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(120% 80% at 50% 30%, #1a1a1a 0%, var(--black) 62%);
  color: var(--ivory);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.3s var(--ease-out), visibility 0s 1.3s;
}
.cover.is-leaving { clip-path: inset(0 0 100% 0); visibility: hidden; }
.cover.is-gone { display: none; }

.cover__pattern {
  background-color: var(--ivory); opacity: .06;
  -webkit-mask: url("../assets/patterns/damask.svg") 0 0 / 140px 200px repeat;
          mask: url("../assets/patterns/damask.svg") 0 0 / 140px 200px repeat;
  animation: drift 90s linear infinite;
}
@keyframes drift { to { -webkit-mask-position: 140px 400px; mask-position: 140px 400px; } }

.cover__arches {
  position: absolute; left: 50%; bottom: 0; width: min(1100px, 160vw); height: 96%;
  transform: translateX(-50%);
  background-color: var(--ivory); opacity: .1;
  -webkit-mask: url("../assets/patterns/arches.svg") center bottom / contain no-repeat;
          mask: url("../assets/patterns/arches.svg") center bottom / contain no-repeat;
  pointer-events: none;
}
.cover__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(255,255,255,.09), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(8,8,8,.9));
}
.cover::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .1; mix-blend-mode: screen; pointer-events: none; }

.cover__inner {
  position: relative; z-index: 2;
  min-height: 100%;
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 640px);
  justify-content: center; align-items: center; gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(2rem, 6vh, 4rem) var(--gutter);
}
.cover__photo { position: relative; }
.cover__photo .arch-frame { aspect-ratio: 2 / 3; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.cover__photo .arch-frame img { filter: grayscale(1) contrast(1.12) brightness(.92); transform: scale(1.06); animation: settle 3.2s var(--ease-out) forwards; }
.cover__photo::before {
  content: ""; position: absolute; inset: -14px -14px 0; border: 1px solid rgba(247,245,241,.28);
  border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}
/* slow cinematic light sweep */
.cover__photo .arch-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-120%); animation: sweep 7s 1.6s var(--ease) infinite;
}
@keyframes settle { to { transform: scale(1); } }
@keyframes sweep { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }

.cover__text { text-align: center; }
.cover__kicker { font-family: var(--f-label); font-size: .72rem; font-weight: 500; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; margin-bottom: 2rem; color: var(--mid-dark); }
.cover__names { font-weight: 300; font-size: clamp(2.1rem, 4vw, 3.3rem); text-wrap: balance; line-height: 1.05; text-transform: uppercase; letter-spacing: .06em; }
.cover__names span { display: block; }
.cover__names .amp, .home__amp, .memory__amp, .story__amp {
  font-family: var(--f-numeral); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0;
}
.cover__names .amp { font-size: 1.5em; line-height: 1.1; margin: .1em 0; opacity: .85; }
.cover .ornament { color: var(--ivory); opacity: .55; margin: 2rem auto 1.4rem; }
.cover__years { font-family: var(--f-numeral); font-size: 1.35rem; letter-spacing: .2em; }
.cover__date { font-family: var(--f-label); font-size: .76rem; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; margin-top: .9rem; }
.cover__label { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--mid-dark); margin-top: .4rem; }
.cover__enter { margin-top: 2.6rem; padding-inline: 2.2rem; position: relative; overflow: hidden; }
.cover__enter::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(8,8,8,.2); pointer-events: none; }

/* cover entrance choreography */
.cover__text > * { opacity: 0; transform: translateY(14px); animation: rise 1.2s var(--ease-out) forwards; }
.cover__kicker { animation-delay: .3s !important; }
.cover__names { animation-delay: .5s !important; }
.cover .ornament { animation-delay: .8s !important; }
.cover__years { animation-delay: .95s !important; }
.cover__date { animation-delay: 1.05s !important; }
.cover__label { animation-delay: 1.15s !important; }
.cover__enter { animation-delay: 1.4s !important; }
body.is-loading .cover__text > *, body.is-loading .cover__photo .arch-frame img { animation-play-state: paused; }
@keyframes rise { to { opacity: 1; transform: none; } }

.cover.is-leaving .cover__inner { opacity: 0; transform: translateY(-30px); transition: opacity .6s, transform .9s var(--ease); }

/* =====================================================================
   HEADER & NAVIGATION
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: rgba(247,245,241,.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(8,8,8,.08);
  transition: transform .5s var(--ease);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101;
  background: rgba(247,245,241,.86);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--black); }
.brand__mark { width: 22px; height: 28px; }
.brand__text { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }

.nav__list { display: flex; gap: clamp(1rem, 2vw, 2.2rem); }
.nav__list a {
  position: relative; display: block; padding: .6rem 0;
  font-family: var(--f-label); font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal); white-space: nowrap;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); }
.nav__list a.is-current { color: var(--black); }

.header-actions { display: flex; align-items: center; gap: .3rem; }
.menu-btn {
  display: none; align-items: center; gap: .7rem; height: 44px; padding: 0 .2rem 0 .6rem;
  background: none; border: 0; cursor: pointer; color: var(--black);
}
.menu-btn__label { font-family: var(--f-label); font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.menu-btn__lines { width: 24px; height: 10px; position: relative; display: block; }
.menu-btn__lines span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn__lines span:first-child { top: 0; }
.menu-btn__lines span:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--black); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__pattern {
  background-color: var(--ivory); opacity: .05;
  -webkit-mask: url("../assets/patterns/deco-arcade.svg") 0 0 / 48px 72px repeat;
          mask: url("../assets/patterns/deco-arcade.svg") 0 0 / 48px 72px repeat;
}
.mobile-menu nav, .mobile-menu__foot { position: relative; }
.mobile-menu__list li { border-bottom: 1px solid rgba(247,245,241,.14); }
.mobile-menu__list a {
  display: flex; align-items: center; gap: 1.1rem; padding: 1rem 0;
  font-family: var(--f-display); font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 300; line-height: 1.1;
  text-decoration: none;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease-out);
}
.mobile-menu__list a svg { width: 22px; height: 22px; flex: none; opacity: .6; }
.mobile-menu__list a.is-current { font-style: italic; }
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) a { transition-delay: .2s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(7) a { transition-delay: .24s; }
.mobile-menu__foot .btn { width: 100%; }
body.menu-open .site-header { background: var(--black); border-color: rgba(247,245,241,.1); }
body.menu-open .brand, body.menu-open .menu-btn, body.menu-open .icon-btn { color: var(--ivory); }

/* =====================================================================
   REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =====================================================================
   HOME
   ===================================================================== */
.home {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(4rem, 8vw, 6rem);
  background: var(--ivory);
}
.home::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .06; pointer-events: none; }
.home__pattern {
  background-color: var(--black); opacity: .035;
  -webkit-mask: url("../assets/patterns/damask.svg") 0 0 / 140px 200px repeat;
          mask: url("../assets/patterns/damask.svg") 0 0 / 140px 200px repeat;
}
.home__grid {
  position: relative; z-index: 1;
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.home__text .eyebrow { color: var(--mid); margin-bottom: 2rem; }
.home__names { font-weight: 300; color: var(--black); line-height: .9; }
.home__names span { display: block; }
.home__first { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-style: italic; font-weight: 400; letter-spacing: .02em; color: var(--charcoal); margin-bottom: .2rem; }
.home__last { font-size: clamp(3.6rem, 10vw, 8.6rem); text-transform: uppercase; letter-spacing: .02em; }
.home__amp { font-size: clamp(3rem, 7vw, 6rem); line-height: 1; margin: .15em 0 .25em .4em; color: var(--charcoal); }
.home__meta {
  display: flex; align-items: center; gap: 1.2rem; margin-top: 2.6rem;
  font-family: var(--f-numeral); font-size: 1.05rem; letter-spacing: .08em; color: var(--charcoal);
}
.home__meta-rule { flex: 0 1 90px; height: 1px; background: currentColor; opacity: .5; }
.home__venue { margin-top: 1.4rem; font-family: var(--f-ui); font-size: .95rem; line-height: 1.7; color: var(--mid); font-weight: 400; }
.home__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.6rem; }

.home__photo { position: relative; justify-self: end; width: min(100%, 460px); }
.home__photo .arch-frame { aspect-ratio: 2 / 3; }
.home__photo-arch { position: absolute; z-index: -1; width: 118%; height: 108%; left: -9%; top: -5%; color: var(--black); opacity: .14; }

/* =====================================================================
   THEIR STORY
   ===================================================================== */
.story { position: relative; overflow: hidden; padding: var(--section-y) 0; background: var(--white); }
.story::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; pointer-events: none; }
.story__botanical {
  position: absolute; width: clamp(280px, 36vw, 560px); aspect-ratio: 540 / 780; pointer-events: none;
  background-color: var(--black); opacity: .07;
  -webkit-mask: url("../assets/patterns/botanical.svg") center / contain no-repeat;
          mask: url("../assets/patterns/botanical.svg") center / contain no-repeat;
}
.story__botanical--l { left: -8%; top: 4%; transform: rotate(-8deg); }
.story__botanical--r { right: -10%; bottom: -6%; transform: scaleX(-1) rotate(-12deg); }

.story__note { max-width: 40rem; margin: 0 auto clamp(4rem, 9vw, 7rem); text-align: center; }
.story__note p { text-wrap: balance; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.5; font-weight: 400; color: var(--charcoal); }
.story__note p + p { margin-top: 1.2rem; }

.story__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.story__amp { align-self: center; font-size: clamp(5rem, 11vw, 9rem); line-height: 1; color: var(--black); opacity: .9; }
.portrait { text-align: center; }
.portrait--offset { margin-top: clamp(0rem, 9vw, 8rem); }
.portrait__frame { aspect-ratio: 4 / 5; width: min(100%, 400px); margin: 0 auto 2.2rem; }
.portrait__frame img { transition: transform 1.6s var(--ease-out), filter 1.2s; }
.portrait:hover .portrait__frame img { transform: scale(1.03); }
.portrait__name { font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; color: var(--black); }
.portrait__dates { margin-top: .9rem; font-family: var(--f-label); font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--mid); }
.portrait__quote { max-width: 26rem; margin: 1.6rem auto 1.8rem; font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--charcoal); }

/* =====================================================================
   FUNERAL DETAILS
   ===================================================================== */
.details { position: relative; overflow: hidden; padding: var(--section-y) 0; background: var(--white); border-top: 1px solid var(--grey); }
.details__marble {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/patterns/marble.svg") center / cover no-repeat;
  opacity: .5;
}
.details__marble::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.82) 55%); }
.details__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.details__date {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--black);
}
.details__day { font-family: var(--f-numeral); font-weight: 400; font-variant-numeric: lining-nums; font-size: clamp(9rem, 22vw, 17rem); line-height: .92; color: var(--black); letter-spacing: -.04em; }
.details__month { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; margin-top: 1.6rem; color: var(--charcoal); }
.details__year { font-family: var(--f-label); font-size: .8rem; font-weight: 500; letter-spacing: .6em; margin-top: 1rem; color: var(--mid); }

.facts { border-top: 1px solid var(--black); margin-bottom: 2.6rem; }
.facts__row { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(8,8,8,.14); }
.facts dt { font-family: var(--f-label); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mid); padding-top: .45rem; }
.facts dd { font-size: 1.55rem; line-height: 1.3; color: var(--black); font-weight: 500; }
.facts__note { display: block; margin-top: .4rem; font-family: var(--f-ui); font-size: .85rem; font-weight: 400; color: var(--mid); }

/* =====================================================================
   DIRECTIONS
   ===================================================================== */
.directions { position: relative; overflow: hidden; padding: var(--section-y) 0; background: var(--charcoal); color: var(--ivory); }
.directions__pattern {
  background-color: var(--ivory); opacity: .045;
  -webkit-mask: url("../assets/patterns/deco-arcade.svg") 0 0 / 48px 72px repeat;
          mask: url("../assets/patterns/deco-arcade.svg") 0 0 / 48px 72px repeat;
}
.directions__fan {
  position: absolute; top: 0; right: 0; width: clamp(260px, 40vw, 620px); aspect-ratio: 1; pointer-events: none;
  background-color: var(--ivory); opacity: .1;
  -webkit-mask: url("../assets/patterns/deco-fan.svg") center / contain no-repeat;
          mask: url("../assets/patterns/deco-fan.svg") center / contain no-repeat;
  transform: scaleX(-1);
}
.directions::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 20% 100%, rgba(8,8,8,.6), transparent 70%); pointer-events: none; }

.directions__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.places { display: flex; flex-direction: column; gap: 1rem; }
.place {
  position: relative; border: 1px solid rgba(247,245,241,.18); background: rgba(8,8,8,.35);
  transition: border-color .4s, background-color .4s;
}
.place.is-active { border-color: rgba(247,245,241,.7); background: rgba(8,8,8,.6); }
.place__select {
  width: 100%; display: flex; gap: 1.3rem; align-items: flex-start; text-align: left;
  padding: 1.5rem 1.5rem 1rem; background: none; border: 0; cursor: pointer; color: inherit;
}
.place__letter {
  flex: none; width: 48px; height: 60px; display: grid; place-items: end center; padding-bottom: .55rem;
  border: 1px solid currentColor; border-bottom: 0; border-radius: 999px 999px 0 0;
  font-family: var(--f-numeral); font-size: 1.5rem; font-style: italic; line-height: 1;
}
.place__heading { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.place__type { font-family: var(--f-label); font-size: .64rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--mid-dark); }
.place__name { font-size: 1.7rem; font-weight: 400; line-height: 1.15; }
.place__addr { font-family: var(--f-ui); font-size: .88rem; font-weight: 400; color: var(--mid-dark); line-height: 1.5; }
.place__actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 1.5rem 1.5rem calc(1.5rem + 48px + 1.3rem); }
.place__pending { display: none; padding: 0 1.5rem 1.4rem calc(1.5rem + 48px + 1.3rem); font-family: var(--f-ui); font-size: .85rem; color: var(--mid-dark); }
.place.is-pending .place__pending { display: block; }
.place.is-pending .place__actions { display: none; }
.place.is-pending .place__name, .place.is-pending .place__addr { font-style: italic; }

.map { display: flex; flex-direction: column; }
.map__frame {
  position: relative; flex: 1; min-height: 420px;
  border: 1px solid rgba(247,245,241,.3); background: #1b1b1b; overflow: hidden;
}
.map__frame::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(247,245,241,.12); pointer-events: none; z-index: 2; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__pending {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 2rem; text-align: center; background: #1b1b1b;
}
.map__pending[hidden] { display: none; }
.map__pending svg { width: 34px; height: 34px; opacity: .6; }
.map__pending p { font-style: italic; font-size: 1.4rem; max-width: 22rem; color: var(--mid-dark); }
.map__caption { margin-top: .9rem; font-family: var(--f-ui); font-size: .8rem; color: var(--mid-dark); }

/* =====================================================================
   ORDER OF SERVICE
   ===================================================================== */
.programme { position: relative; overflow: hidden; padding: var(--section-y) 0; background: var(--ivory); }
.programme__silk {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(118deg, transparent 20%, rgba(255,255,255,.85) 32%, transparent 44%, rgba(232,230,226,.7) 58%, transparent 70%, rgba(255,255,255,.7) 84%, transparent 96%),
    repeating-linear-gradient(118deg, rgba(8,8,8,.018) 0 1px, transparent 1px 5px);
}
.programme::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; pointer-events: none; }
.programme__tools { margin-top: 1.8rem; display: flex; justify-content: center; }

.part { position: relative; }
.part__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: end; margin-bottom: 2rem; }
.part__num {
  font-family: var(--f-numeral); font-style: italic; font-weight: 400;
  font-size: clamp(6rem, 16vw, 11rem); line-height: .78; color: var(--black);
  min-width: 1ch;
}
.part__label { font-family: var(--f-label); font-size: .68rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--mid); margin-bottom: .5rem; }
.part__title { font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; color: var(--black); }
.part__alt { font-style: italic; font-size: 1.35rem; color: var(--mid); margin-top: .4rem; }

.part__meta { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; padding: 1rem 0; border-top: 1px solid var(--black); border-bottom: 1px solid rgba(8,8,8,.16); margin-bottom: 1.6rem; }
.part__meta div { display: flex; align-items: baseline; gap: .8rem; }
.part__meta dt { font-family: var(--f-label); font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mid); }
.part__meta dd { font-size: 1.3rem; font-weight: 600; color: var(--black); }

.order { counter-reset: item; }
.order > li {
  counter-increment: item; position: relative;
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid rgba(8,8,8,.09);
  font-size: 1.35rem; line-height: 1.4; color: var(--black);
}
.order > li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--f-numeral); font-size: .95rem; font-style: italic; color: var(--mid);
}
.order__tributes { grid-template-columns: 3.2rem 1fr !important; }
.order__tributes > * { grid-column: 2; }
.order__heading { font-family: var(--f-label); font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; padding-top: .2rem; }

.tributes { margin: 1.2rem 0 .6rem; padding: 1.4rem clamp(1rem, 3vw, 1.8rem); background: rgba(255,255,255,.72); border: 1px solid rgba(8,8,8,.12); position: relative; }
.tributes::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(8,8,8,.06); pointer-events: none; }
.tributes li { display: grid; grid-template-columns: 3.6rem 1fr; align-items: baseline; padding: .45rem 0; font-size: 1.22rem; line-height: 1.4; }
.tributes > li + li { border-top: 1px solid rgba(8,8,8,.07); }
.t-num { font-family: var(--f-ui); font-size: .78rem; font-weight: 500; color: var(--mid); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.t-group { font-family: var(--f-label); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.tributes__group > .tributes__sub { grid-column: 1 / -1; margin: .4rem 0 .3rem; padding-left: clamp(.6rem, 3vw, 3.6rem); border-left: 1px solid rgba(8,8,8,.15); }
.tributes__sub li { grid-template-columns: 3.6rem 1fr; padding: .32rem 0 .32rem .9rem; font-size: 1.16rem; }
.tributes__sub--plain li { grid-template-columns: 1fr !important; padding-left: calc(.9rem + 3.6rem); }
.tributes__sub--plain li::before { content: none; }

.part--feature {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 3rem);
  margin-inline: calc(-1 * clamp(0rem, 3vw, 3rem));
  background: var(--white); border: 1px solid rgba(8,8,8,.12);
  box-shadow: 0 30px 80px -50px rgba(8,8,8,.35);
}
.part--feature::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(8,8,8,.07); pointer-events: none; }
.part__closing { margin-top: 2.4rem; text-align: center; font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--black); }

.programme__end {
  margin-top: clamp(3.5rem, 8vw, 6rem); text-align: center;
  font-family: var(--f-label); font-size: .72rem; font-weight: 600; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: var(--black);
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
}
.programme__end::before, .programme__end::after { content: ""; flex: 0 1 70px; height: 1px; background: currentColor; opacity: .4; }

/* =====================================================================
   OBITUARIES
   ===================================================================== */
.obituaries { position: relative; padding-top: var(--section-y); background: var(--white); }
.obituaries .section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.home__names:focus { outline: none; }
.obit { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.obit--light { background: var(--white); border-top: 1px solid var(--grey); }
.obit--dark { background: var(--black); color: var(--ivory); }
.obit__damask {
  background-color: var(--black); opacity: .04;
  -webkit-mask: url("../assets/patterns/damask.svg") 0 0 / 112px 160px repeat;
          mask: url("../assets/patterns/damask.svg") 0 0 / 112px 160px repeat;
  -webkit-mask-image: url("../assets/patterns/damask.svg"), linear-gradient(90deg, #000 0 22%, transparent 42%);
          mask-image: url("../assets/patterns/damask.svg"), linear-gradient(90deg, #000 0 22%, transparent 42%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-size: 112px 160px, 100% 100%; mask-size: 112px 160px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
}
.obit--dark .obit__damask {
  background-color: var(--ivory); opacity: .07;
  -webkit-mask-image: url("../assets/patterns/damask.svg"), linear-gradient(270deg, #000 0 22%, transparent 42%);
          mask-image: url("../assets/patterns/damask.svg"), linear-gradient(270deg, #000 0 22%, transparent 42%);
}

.obit__grid {
  position: relative; z-index: 1;
  width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem);
}
.obit__grid--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.obit__grid--reverse .obit__aside { order: 2; }
.obit__aside { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
.obit__portrait { aspect-ratio: 4 / 5; }
.obit__label {
  margin-top: 1.4rem; font-family: var(--f-label); font-size: .66rem; font-weight: 600; letter-spacing: .5em; text-transform: uppercase;
  color: var(--mid);
}
.obit--dark .obit__label { color: var(--mid-dark); }

.obit__head { padding-bottom: 2rem; margin-bottom: 2.6rem; border-bottom: 1px solid currentColor; }
.obit__name { font-weight: 300; font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.obit__dates { margin-top: 1.2rem; font-family: var(--f-numeral); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--mid); }
.obit--dark .obit__dates { color: var(--mid-dark); }

.obit__body { max-width: 40rem; position: relative; }
.obit__body h4 {
  font-family: var(--f-label); font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  margin: 2.8rem 0 1.1rem; display: flex; align-items: center; gap: 1rem;
}
.obit__body h4::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .2; }
.obit__body h4:first-child { margin-top: 0; }
.obit__body p { font-size: clamp(1.25rem, 1.6vw, 1.38rem); line-height: 1.72; font-weight: 500; }
.obit__body p + p { margin-top: 1.1rem; }
.obit--dark .obit__body p { font-weight: 400; color: #EDEAE4; }
.dropcap::first-letter {
  float: left; font-family: var(--f-numeral); font-size: 5.2em; line-height: .78; font-weight: 400;
  padding: .06em .12em 0 0; margin-top: .04em;
}
.obit__close { margin-top: 3rem; text-align: center; }
.obit__rest { font-style: italic; font-size: clamp(1.7rem, 3vw, 2.3rem) !important; line-height: 1.3 !important; font-weight: 500 !important; }
.obit__rest-alt { font-style: italic; font-size: 1.4rem !important; color: var(--mid); margin-top: .5rem !important; }

/* collapsible */
.obit__body[data-collapsed="true"] { max-height: 34rem; overflow: hidden; }
.obit__body[data-collapsed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12rem; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--white) 85%);
}
.obit--dark .obit__body[data-collapsed="true"]::after { background: linear-gradient(180deg, rgba(8,8,8,0), var(--black) 85%); }
.obit__body { transition: max-height .9s var(--ease); }
.obit__toggle {
  margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .8rem;
  min-height: 48px; padding: .8rem 0; background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer;
  font-family: var(--f-label); font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.obit__toggle svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.obit__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* =====================================================================
   IN LOVING MEMORY
   ===================================================================== */
.memory {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 14vw, 11rem) var(--gutter) 0;
  background: radial-gradient(90% 70% at 50% 40%, #171717 0%, var(--black) 70%);
  color: var(--ivory); text-align: center;
  border-top: 1px solid rgba(247,245,241,.14);
}
.memory::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .08; mix-blend-mode: screen; pointer-events: none; }
.memory__pattern {
  background-color: var(--ivory); opacity: .035;
  -webkit-mask: url("../assets/patterns/damask.svg") 0 0 / 140px 200px repeat;
          mask: url("../assets/patterns/damask.svg") 0 0 / 140px 200px repeat;
}
.memory__botanical {
  position: absolute; bottom: 0; width: clamp(220px, 32vw, 520px); aspect-ratio: 540 / 780; pointer-events: none;
  background-color: var(--ivory); opacity: .22;
  -webkit-mask: url("../assets/patterns/botanical.svg") center bottom / contain no-repeat;
          mask: url("../assets/patterns/botanical.svg") center bottom / contain no-repeat;
}
.memory__botanical--l { left: -4%; }
.memory__botanical--r { right: -4%; transform: scaleX(-1); }
.memory__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.memory__arch { width: 52px; height: 66px; color: var(--ivory); opacity: .6; margin: 0 auto 2rem; display: block; }
.memory__kicker { font-family: var(--f-label); font-size: .72rem; font-weight: 500; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--mid-dark); margin-bottom: 2.2rem; }
.memory__names { font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .05em; }
.memory__names span { display: block; }
.memory__amp { font-size: 1.1em; margin: .15em 0; opacity: .8; }
.memory .ornament { color: var(--ivory); opacity: .5; margin: 2.6rem auto; }
.memory__quote { text-wrap: balance; font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.3; max-width: 34rem; margin: 0 auto; }
.memory__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 3.4rem; }
.site-footer {
  position: relative; z-index: 1;
  margin-top: clamp(6rem, 12vw, 10rem); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(247,245,241,.12);
  font-family: var(--f-ui); font-size: .8rem; line-height: 1.7; color: var(--mid-dark);
}

/* =====================================================================
   UTILITIES: back to top, toast
   ===================================================================== */
.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: 48px; height: 60px; display: grid; place-items: center; padding-top: 4px;
  background: var(--black); color: var(--ivory); border: 1px solid rgba(247,245,241,.25); border-radius: 999px 999px 0 0; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s, transform .5s var(--ease), visibility .4s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 400;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 1rem 1.6rem; background: var(--black); color: var(--ivory); border: 1px solid rgba(247,245,241,.2);
  font-family: var(--f-label); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .4s, transform .5s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 980px) {
  .cover__inner { grid-template-columns: 1fr; justify-items: center; gap: 2.2rem; padding-top: 3rem; padding-bottom: 3rem; }
  .cover__photo { width: min(300px, 62vw); }
  .details__grid { grid-template-columns: 1fr; }
  .details__marble::after { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.85) 45%); }
  .directions__layout { grid-template-columns: 1fr; }
  .map { order: -1; }
  .map__frame { min-height: 340px; }
  .obit__grid, .obit__grid--reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .obit__grid--reverse .obit__aside { order: 0; }
  .obit__aside { position: relative; top: 0; display: grid; grid-template-columns: 140px 1fr; align-items: end; gap: 1.4rem; }
  .obit__label { margin: 0 0 .4rem; }
}

@media (max-width: 860px) {
  .home { min-height: 0; }
  .home__grid { grid-template-columns: 1fr; }
  .home__photo { order: -1; justify-self: center; width: min(66vw, 340px); margin-bottom: 1rem; }
  .home__text { text-align: center; }
  .home__amp { margin-left: 0; }
  .home__meta { justify-content: center; }
  .home__actions { justify-content: center; }

  .story__pair { grid-template-columns: 1fr; gap: 1rem; }
  .story__amp { font-size: 5rem; }
  .portrait--offset { margin-top: 0; }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  body { font-size: 1.2rem; }
  .brand__text { font-size: 1.1rem; letter-spacing: .26em; }
  .menu-btn__label { display: none; }

  .cover__inner { gap: 1.6rem; padding-top: 2rem; padding-bottom: 2rem; }
  .cover__photo { width: min(210px, 52vw, 24svh); }
  .cover__kicker { margin-bottom: 1.2rem; letter-spacing: .38em; }
  .cover__names { font-size: clamp(1.6rem, 7.4vw, 2.2rem); letter-spacing: .04em; }
  .cover .ornament { margin: 1.4rem auto 1rem; }
  .cover__enter { width: 100%; margin-top: 2rem; }

  .home__last { font-size: clamp(2.9rem, 15vw, 4.2rem); }
  .home__actions .btn { width: 100%; }

  .facts__row { grid-template-columns: 1fr; gap: .4rem; }
  .facts dt { padding-top: 0; }
  .facts dd { font-size: 1.4rem; }
  .details .btn { width: 100%; }

  .place__select { padding: 1.2rem 1.1rem .9rem; gap: 1rem; }
  .place__letter { width: 40px; height: 50px; font-size: 1.3rem; }
  .place__name { font-size: 1.45rem; }
  .place__actions, .place__pending { padding: 0 1.1rem 1.2rem; }
  .place__actions .btn { flex: 1 1 100%; }
  .map__frame { min-height: 280px; }

  .part__head { grid-template-columns: 1fr; gap: .4rem; }
  .part__num { font-size: 5.5rem; }
  .order > li { grid-template-columns: 2.4rem 1fr; font-size: 1.25rem; }
  .order__tributes { grid-template-columns: 2.4rem 1fr !important; }
  .order__tributes > * { grid-column: 1 / -1; }
  .order__heading { grid-column: 2 !important; }
  .tributes { padding: 1rem .9rem; }
  .tributes li { grid-template-columns: 2.9rem 1fr; font-size: 1.15rem; }
  .tributes__group > .tributes__sub { padding-left: 0; border-left: 0; }
  .tributes__sub li { grid-template-columns: 3.2rem 1fr; padding-left: .4rem; font-size: 1.1rem; }
  .tributes__sub--plain li { padding-left: calc(.4rem + 3.2rem); }
  .part--feature { margin-inline: calc(-1 * var(--gutter) + .5rem); }

  .obit__aside { grid-template-columns: 110px 1fr; }
  .obit__body[data-collapsed="true"] { max-height: 30rem; }
  .obit__body p { line-height: 1.68; }

  .memory__actions .btn { width: 100%; }
  .memory__botanical { opacity: .14; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cover__text > * { opacity: 1; transform: none; }
}

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  @page { margin: 16mm 14mm; }
  :root { padding: 0; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11.5pt; }
  body::before, .loader, .cover, .site-header, .mobile-menu, .to-top, .toast,
  .home__actions, .programme__tools, .obit__toggle, .memory__actions, .map, .place__actions,
  [class*="__pattern"], [class*="__botanical"], .obit__damask, .details__marble, .programme__silk, .directions__fan { display: none !important; }
  section, .obit { padding: 10mm 0 !important; background: #fff !important; color: #000 !important; min-height: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .home::before, .story::before, .programme::before, .memory::after, .directions::after { content: none !important; }
  .section-head__title { font-size: 34pt; }
  .obit__body[data-collapsed="true"] { max-height: none !important; overflow: visible !important; }
  .obit__body::after { content: none !important; }
  .obit__aside { position: static; }
  .obit--dark .obit__body p, .obit--dark .obit__dates, .memory__kicker, .place__addr, .place__type { color: #000 !important; }
  .directions .section-head__title, .memory, .memory * { color: #000 !important; }
  .part { break-inside: auto; }
  .part__head { break-inside: avoid; break-after: avoid; margin-bottom: 4mm; }
  .tributes__sub li, .order > li { break-inside: avoid; }
  .section-head { margin-bottom: 6mm; }
  .section-head .ornament, .ornament--wide { margin: 5mm auto; }
  .part__num { font-size: 44pt; line-height: 1; padding-top: 2mm; }
  .part__title { font-size: 20pt; }
  .part__meta { padding: 2mm 0; margin-bottom: 2mm; }
  .order > li { padding: 1.4mm 0; font-size: 11.5pt; }
  .tributes { margin: 2mm 0; padding: 3mm 4mm; background: none; }
  .tributes li { padding: .6mm 0; font-size: 10.5pt; }
  .tributes__sub li { font-size: 10pt; }
  .tributes__sub--plain li { padding-left: 13.5mm; }
  .part--feature { padding: 0; border: 0; }
  .part--feature::before, .tributes::before { content: none; }
  .part__closing { margin-top: 5mm; font-size: 14pt; }
  .programme__end { margin-top: 8mm; }
  .part--feature { box-shadow: none; margin: 0; }
  .arch-frame img { filter: grayscale(1); }

  /* Programme-only print */
  body.print-programme main > section:not(#programme) { display: none !important; }
  body.print-programme #programme { padding-top: 0 !important; }
}


/* =====================================================================
   ROCKAFELLA ROYAL FAREWELL: brand colours and credits
   ===================================================================== */
.cover__credit {
  margin-top: 1.6rem; font-family: var(--f-label); font-size: .6rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--mid-dark);
  animation-delay: 1.6s !important;
}
.cover__credit span { color: var(--gold-light); }

/* Programme in the parlour's gold */
.programme .section-head__kicker { color: var(--gold); }
.programme .ornament { color: var(--gold); opacity: .9; }
.programme .ornament--wide { color: var(--gold); opacity: .75; }
.programme__presenter { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.programme__presenter p { font-family: var(--f-label); font-size: .6rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mid); }
.programme__presenter img { width: min(220px, 60vw); height: auto; }

.part__num {
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: .08em .1em 0 0;
}
.part__label { color: var(--gold); }
.part__meta { border-top-color: var(--gold); }
.part__meta dt { color: var(--gold-deep); }
.order > li::before { color: var(--gold); }
.order__heading { color: var(--gold-deep); }
.tributes { border-color: rgba(169,128,47,.45); }
.tributes::before { border-color: rgba(169,128,47,.2); }
.t-num { color: var(--gold); }
.t-group { color: var(--gold-deep); }
.tributes__group > .tributes__sub { border-left-color: rgba(169,128,47,.4); }
.part--feature { border-color: rgba(169,128,47,.4); }
.part--feature::before { border-color: rgba(169,128,47,.18); }
.part--feature::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-gradient);
}
.part__closing { color: var(--gold-deep); }
.programme__end { color: var(--gold-deep); }
.programme__end::before, .programme__end::after { background: var(--gold); opacity: .7; }
.programme .btn--outline { border-color: var(--gold); color: var(--gold-deep); }
.programme .btn--outline:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }
.programme__credit {
  max-width: 34rem; margin: 1.6rem auto 0; text-align: center;
  font-family: var(--f-ui); font-size: .82rem; line-height: 1.7; font-weight: 400; color: var(--mid);
}
.programme__credit strong { color: var(--gold-deep); font-weight: 600; }
.programme__credit a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid rgba(169,128,47,.5); white-space: nowrap; }

/* Footer credit card */
.site-footer__service { margin-bottom: clamp(3rem, 7vw, 5rem); }
.parlour {
  position: relative; max-width: 920px; margin: 0 auto 2.5rem;
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 3rem);
  background: var(--ivory); color: var(--charcoal); text-align: center;
}
.parlour::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-gradient); }
.parlour::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(169,128,47,.35); pointer-events: none; }
.parlour__kicker { font-family: var(--f-label); font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
.parlour__logo { width: min(280px, 72vw); height: auto; margin: 0 auto 2rem; }
.parlour__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: left; border-top: 1px solid rgba(169,128,47,.35); padding-top: 1.8rem; }
.parlour__col h3 { font-family: var(--f-label); font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.parlour__col p { font-family: var(--f-ui); font-size: .92rem; line-height: 1.65; color: var(--charcoal); }
.parlour__col p + p { margin-top: .7rem; }
.parlour__col a { color: var(--black); text-decoration: none; border-bottom: 1px solid rgba(169,128,47,.5); }
.parlour__col a[href^="tel"] { font-weight: 600; display: inline-block; padding: .15rem 0; }
.parlour__emergency { padding: .6rem .8rem; background: var(--white); border-left: 3px solid var(--gold); }
.parlour__link { display: inline-block; margin-top: .7rem; font-family: var(--f-label); font-size: .6rem !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.parlour__tag { position: relative; z-index: 1; margin-top: 1.8rem; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--gold-deep); }

@media (max-width: 700px) {
  .parlour__grid { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; }
  .parlour__emergency { border-left: 0; border-top: 3px solid var(--gold); }
}

@media print {
  .part__num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .programme__presenter img { width: 45mm; }
  .programme__credit { font-size: 9pt; color: #333 !important; }
  .cover__credit { display: none; }
  .parlour { background: #fff; }
  body.print-programme .programme__credit { display: block !important; }
}


/* =====================================================================
   DIRECTION BUTTONS (wherever the family home or hall is mentioned)
   ===================================================================== */
.dir-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; margin-top: .9rem; padding: .55rem 1rem;
  font-family: var(--f-label); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; color: var(--black);
  border: 1px solid var(--black); background: transparent;
  transition: background-color .3s, color .3s, border-color .3s;
}
.dir-btn svg { width: 16px; height: 16px; flex: none; }
.dir-btn:hover { background: var(--black); color: var(--ivory); }
.facts dd .dir-btn { display: flex; width: fit-content; }

/* gold version inside the programme */
.programme .dir-btn { color: var(--gold-deep); border-color: var(--gold); }
.programme .dir-btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }
.part__dir { margin: -.6rem 0 1.4rem; }
.part__dir .dir-btn { margin-top: 0; }
.order__with-dir { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.dir-btn--chip { margin-top: 0; min-height: 36px; padding: .35rem .75rem; font-size: .56rem; }

/* on black */
.dir-btn--dark { color: var(--ivory); border-color: rgba(247,245,241,.5); }
.dir-btn--dark:hover { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.site-footer__dirs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }

@media (max-width: 600px) {
  .home__actions .btn { width: 100%; }
  .facts dd .dir-btn, .part__dir .dir-btn { display: flex; width: 100%; justify-content: center; }
  .site-footer__dirs .dir-btn { flex: 1 1 100%; justify-content: center; }
}
@media print { .dir-btn, .part__dir, .site-footer__dirs { display: none !important; } }
