/* Funeral and memorial services page.
   Sections: bespoke (a layered keepsake composition), funeral or memorial (tabs), a sample running order
   (an order-of-service card with the brochure's double rule), the thread of five steps, questions.
   Corners: one 32px top-left radius on photos and cards (var(--r)), square buttons. */

/* sections on this page are sized to fit one desktop screen below the header */
.sec.sv-fit { padding-block: clamp(64px, 6.5vw, 104px); }

/* ---------------- hero ---------------- */
.sv-hero h1 em { color: #F1E6D6; }

/* ---------------- what makes it bespoke ---------------- */
.sv-made__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.sv-made__media { position: relative; width: min(100%, 640px, calc(var(--media-cap) / .84)); aspect-ratio: 1 / .84; }
.sv-made__a { position: absolute; left: 0; top: 0; width: 82%; aspect-ratio: 3 / 2; margin: 0; }
.sv-made__b { position: absolute; right: 0; bottom: 0; z-index: 2; width: 54%; aspect-ratio: 3 / 2; margin: 0; border-radius: var(--r); box-shadow: 0 0 0 10px var(--linen), 0 34px 60px -30px rgba(58, 50, 42, .55); }
.sv-made__b img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.sv-made__quote { position: absolute; left: 0; bottom: 0; width: 40%; margin: 0; padding-top: 16px; border-top: 1px solid var(--bronze); font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.45vw, 1.45rem); line-height: 1.35; color: var(--bronze-deep); }
.sv-made .h2 { margin-bottom: 18px; }
.sv-made .lede { margin-bottom: 0; }
.sv-made__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 44px); }
.sv-made__list li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-content: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.sv-made__list li > * { grid-column: 2; }
.sv-made__list li > .sv-made__ico { grid-column: 1; grid-row: 1 / span 2; }
.sv-made__ico { width: 36px; height: 36px; fill: none; stroke: var(--bronze); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sv-made__t { font-size: clamp(1.15rem, 1.3vw, 1.3rem); line-height: 1.25; margin: 4px 0 6px; }
.sv-made__list p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--umber-soft); }

/* ---------------- funeral or memorial ---------------- */
.sv-sw__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 104px); align-items: center; }
.sv-sw .h2 { margin-bottom: 16px; }
.sv-sw .lede { margin-bottom: 0; }
.sv-sw__tabs { position: relative; display: flex; gap: clamp(24px, 3.4vw, 56px); margin: 24px 0 22px; border-bottom: 1px solid rgba(205, 212, 192, .28); }
.sv-sw__tab { position: relative; background: none; border: 0; padding: 8px 0 16px; min-height: 44px; text-align: left; cursor: pointer; color: var(--sage); transition: color .5s var(--ease); }
.sv-sw__tab strong { display: block; font-family: var(--serif); font-weight: 450; font-size: clamp(1.3rem, 1.8vw, 1.8rem); line-height: 1.2; }
.sv-sw__tab span { display: block; font-size: .95rem; line-height: 1.4; margin-top: 4px; }
.sv-sw__tab:hover, .sv-sw__tab[aria-selected="true"] { color: var(--linen); }
.sv-sw__tab:focus-visible { outline: 2px solid var(--linen); outline-offset: 4px; }
.sv-sw__ink { position: absolute; left: 0; bottom: -1px; width: 100px; height: 2px; background: var(--robin); transform-origin: 0 0; transform: scaleX(0); transition: transform .8s var(--ease); pointer-events: none; }
.sv-sw__panel { outline: none; }
.sv-sw__panel:focus-visible { outline: 2px solid var(--linen); outline-offset: 8px; }
.sv-sw__panel p { margin-bottom: 14px; }
.sv-sw__suits { font-weight: 600; color: var(--sage-light) !important; margin-bottom: 10px !important; }
.sv-sw .ticks { gap: 8px; margin-bottom: 8px; }
.sv-sw .ticks li { color: #E6E0D4; }
.sv-sw .ticks li::before { background: var(--sage); }
.sv-sw__ph { font-size: clamp(1.3rem, 1.8vw, 1.8rem); margin-bottom: 12px; }
/* with script: panels share one grid cell so the section keeps its height as you switch */
.js .sv-sw__ph { display: none; }
.js .sv-sw__panels { display: grid; }
.js .sv-sw__panel { grid-area: 1 / 1; display: none; }
.js .sv-sw__panel.is-on, .js .sv-sw__panel.is-out { display: block; }
.no-js .sv-sw__tabs { display: none; }
.no-js .sv-sw__panel + .sv-sw__panel { margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(205, 212, 192, .28); }
.sv-sw__frame { aspect-ratio: 4 / 5; width: min(36vw, calc(min(64vh, 580px) * .8)); }
.sv-sw__frame .frame__clip { position: relative; }
.sv-sw__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.sv-sw__img.is-on { opacity: 1; z-index: 2; }
.sv-sw__img.is-out { opacity: 1; z-index: 1; }

/* ---------------- a sample running order ---------------- */
.sv-order__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 90px); align-items: center; }
.sv-order .h2 { margin-bottom: 18px; }
.sv-order__copy p:last-child { margin-bottom: 0; }
.sv-order__stage { position: relative; display: flex; align-items: center; min-height: 100%; }
.sv-order__pic { position: absolute; right: 0; top: 50%; translate: 0 -50%; margin: 0 14px 0 0; width: 42%; aspect-ratio: 4 / 5; }
.sv-card { position: relative; z-index: 2; width: min(66%, 560px); padding: 30px clamp(24px, 2.6vw, 40px) 30px; background: #FBF8F2; border: 1px solid var(--bronze); border-radius: var(--r); box-shadow: 0 40px 70px -40px rgba(58, 50, 42, .5); transform-style: preserve-3d; }
.sv-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); border-radius: 26px 0 0 0; pointer-events: none; }
.sv-card__title { font-size: clamp(1.35rem, 1.7vw, 1.7rem); text-align: center; line-height: 1.2; }
.sv-card__orn { width: 200px; height: 14px; margin: 12px auto 18px; fill: none; stroke: var(--bronze); stroke-width: 1; }
.sv-card__orn circle, .sv-card__heart { fill: var(--bronze); stroke: none; }
.sv-card__body { position: relative; }
.sv-card__body::before, .sv-card__spine { content: ""; position: absolute; left: 14px; top: 12px; bottom: 16px; width: 1px; background: var(--rule); }
.sv-card__spine { background: var(--bronze); transform-origin: 50% 0; transform: scaleY(1); }
.sv-card__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sv-card__row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: start; transition: opacity .6s var(--ease); }
.sv-card__n { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--bronze); border-radius: 50%; background: #FBF8F2; font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--bronze-deep); transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease); }
.sv-card__txt strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.3; }
.sv-card__txt > span { display: block; font-size: .95rem; line-height: 1.45; color: var(--umber-soft); }
/* the scrubbed highlight: set up by service.js only when motion is on */
.sv-card.is-live .sv-card__row { opacity: .3; }
.sv-card.is-live .sv-card__row.is-lit { opacity: 1; }
.sv-card.is-live .sv-card__row.is-lit .sv-card__n { background: var(--yew); border-color: var(--yew); color: var(--linen); }

/* ---------------- how we shape it together ---------------- */
.sv-steps { overflow: clip; }
.sv-steps__head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 90px); align-items: center; margin-bottom: clamp(32px, 3.5vw, 52px); }
.sv-steps__pic { aspect-ratio: 3 / 2; width: min(100% - 14px, 440px, calc(min(32vh, 280px) * 1.5)); }
.sv-steps .h2 { margin-bottom: 16px; }
.sv-steps .lede { margin: 0; }
.sv-steps__track { position: relative; }
.sv-steps__track::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: rgba(205, 212, 192, .3); }
.sv-steps__track.has-thread::before { display: none; }
.sv-steps__thread { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; fill: none; pointer-events: none; }
.sv-steps__base { stroke: rgba(205, 212, 192, .3); stroke-width: 1; }
.sv-steps__line { stroke: var(--sage-light); stroke-width: 1.5; stroke-linecap: round; }
.sv-steps__feather { position: absolute; left: 0; top: 0; width: 64px; height: auto; pointer-events: none; opacity: 0; will-change: transform; }
.sv-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sv-step { position: relative; padding: 62px clamp(16px, 2.2vw, 32px) 0 0; transition: opacity .7s var(--ease); }
.sv-step__mark { position: absolute; left: 0; top: 30px; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border: 1.5px solid var(--sage); border-radius: 50%; background: var(--yew); transition: background-color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease); }
.sv-step__n { display: block; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--sage); margin-bottom: 4px; }
.sv-step__t { font-size: clamp(1.18rem, 1.4vw, 1.4rem); line-height: 1.25; margin-bottom: 8px; color: var(--linen); }
.sv-step p { margin: 0; font-size: 1rem; line-height: 1.6; }
/* the thread lights each step as it passes (service.js adds is-live on desktop with motion on) */
.sv-steps.is-live .sv-step { opacity: .38; }
.sv-steps.is-live .sv-step.is-lit { opacity: 1; }
.sv-step.is-lit .sv-step__mark { background: var(--robin); border-color: var(--robin); transform: scale(1.2); }

/* ---------------- questions ---------------- */
.sv-faq__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.sv-faq__pic { aspect-ratio: 4 / 5; width: min(100% - 14px, calc(min(64vh, 580px) * .8)); }
.sv-faq .h2 { margin-bottom: 24px; }
.sv-faq__list { border-top: 1px solid var(--rule); }
.sv-faq__item { border-bottom: 1px solid var(--rule); }
.sv-faq__h { font-size: inherit; }
.sv-faq__q > span:first-child { flex: 1 1 auto; min-width: 0; }
.sv-faq__q { position: relative; display: flex; width: 100%; align-items: center; gap: 24px; min-height: 62px; padding: 14px 44px 14px 0; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--serif); font-weight: 450; font-size: clamp(1.12rem, 1.35vw, 1.35rem); line-height: 1.3; transition: color .4s var(--ease), padding-left .5s var(--ease); }
.sv-faq__q:hover { color: var(--bronze-deep); padding-left: 8px; }
.sv-faq__pm { position: absolute; right: 6px; top: 50%; margin-top: -9px; width: 18px; height: 18px; }
.sv-faq__pm span { position: absolute; left: 0; top: 8.25px; width: 18px; height: 1.5px; background: var(--bronze); transition: transform .5s var(--ease); }
.sv-faq__pm span:last-child { transform: rotate(90deg); }
.sv-faq__q[aria-expanded="true"] .sv-faq__pm span:last-child { transform: rotate(0deg); }
.sv-faq__a { overflow: hidden; }
.sv-faq__in { padding: 0 0 20px; color: var(--umber-soft); }
.sv-faq__in p { margin-bottom: .7em; }
.sv-faq__in p:last-child { margin-bottom: 0; }
.sv-faq__in .tlink { padding-top: 0; }
.js .sv-faq__a { display: none; }
.js .sv-faq__item.is-open .sv-faq__a { display: block; }
.sv-faq__more { margin: 22px 0 0; }
.sv-faq__more .tel { min-height: 44px; vertical-align: middle; color: var(--bronze-deep); }
.sv-faq__more > a:not(.tel) { color: var(--bronze-deep); font-weight: 600; }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1180px) {
  .sv-step p { font-size: .96rem; }
}
@media (max-width: 1000px) {
  .sv-order__grid { grid-template-columns: 1fr; }
  .sv-order__stage { max-width: 760px; }
  /* the five steps stack down a plain rule (matches the 1000px switch in service.js) */
  .sv-steps__thread, .sv-steps__feather { display: none; }
  .sv-steps__track::before, .sv-steps__track.has-thread::before { display: block; left: 0; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .sv-steps__list { grid-template-columns: 1fr; gap: 28px; }
  .sv-step { padding: 0 0 0 34px; }
  .sv-step__mark { top: 16px; }
  .sv-steps.is-live .sv-step { opacity: 1; }
}
@media (max-width: 900px) {
  .sv-made__grid, .sv-sw__grid, .sv-faq__grid { grid-template-columns: 1fr; }
  .sv-made__media { width: min(100%, 560px); }
  .sv-sw__frame { justify-self: start; width: min(100% - 14px, 420px); }
  .sv-faq__pic { width: min(100% - 14px, 380px); order: 2; }
  .sv-steps__head { grid-template-columns: 1fr; }
  .sv-steps__pic { order: 2; width: min(100% - 14px, 460px); }
}
@media (max-width: 640px) {
  .sv-made__list { grid-template-columns: 1fr; gap: 20px; }
  .sv-made__media { aspect-ratio: auto; display: grid; }
  .sv-made__a { position: relative; width: calc(100% - 14px); }
  .sv-made__b { position: relative; width: 62%; margin: -18% 0 0 auto; }
  .sv-made__quote { position: static; width: auto; margin-top: 26px; }
  .sv-sw__tabs { gap: 20px; }
  .sv-sw__tab strong { font-size: 1.2rem; }
  .sv-sw__tab span { font-size: .9rem; }
  .sv-order__stage { display: grid; }
  .sv-order__pic { position: relative; top: auto; translate: none; width: 62%; margin: 0 14px 0 auto; }
  .sv-card { width: 100%; margin-top: -26%; }
}

/* QA round 1: no sideways overflow from the layered photos; the switcher band carries drifting feathers */
.sv-made { overflow: clip; }
.sv-sw { position: relative; overflow: clip; isolation: isolate; }
.sv-sw__feathers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
