.service-hero { order: 0; padding: 38px 28px 30px; background: #f8f7f3; color: #30483e; border-bottom: 1px solid #e5e6df; }
.service-hero__layout { max-width: 1100px; margin: auto; min-width: 0; }
.service-hero__intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.service-hero h1 { margin: 0; font-family: 'Gowun Batang', serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.45; letter-spacing: -.045em; color: #70584a; word-break: keep-all; overflow-wrap: break-word; }
.service-hero h1 span { display: block; }
.service-hero h1 span:last-child { color: #80513f; }
.service-hero__lead { margin: 10px 0 0; color: #687260; font-size: 14px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
.service-hero__lead span { display: block; }
.service-hero__shortcuts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.service-hero__shortcuts a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; color: #516452; }
.service-hero__obituary-icon { display: none; }
.service-hero__navigation { display: grid; grid-template-columns:repeat(6,minmax(0,1fr)); align-items: stretch; gap: 8px 12px; margin-bottom: 16px; border-bottom: 1px solid #dfe3db; }
.service-hero__navigation>.service-hero__obituary {grid-column:6;grid-row:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:7px 5px;border:1px solid #c9b18b;border-radius:12px;background:#f1e5d2;color:#735635;font:400 12px/1.5 'Noto Sans KR',sans-serif;text-align:center;text-decoration:none;word-break:keep-all}
.service-hero__navigation>.service-hero__obituary:hover {background:#e9d8bb;border-color:#ac8d5c}
.service-hero__navigation>.service-hero__obituary:focus-visible{outline:2px solid #89683e;outline-offset:3px}
.service-hero__navigation>.service-hero__obituary .service-hero__obituary-break{display:inline}
.service-hero__tabs { display: grid;grid-column:1/-1;grid-row:1; flex: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.service-hero__tabs button { min-height: 62px; padding: 8px 4px; border: 1px solid #d8d8ca; border-radius: 14px; background: #fffdf8; color: #34523d; font-size: 14px; text-align: center; }
.service-hero__tabs button span { display: block; }
.service-hero__tabs button small { display: block; margin-top: 3px; color: #6b7665; font-size: 11px; font-weight: 400; }
.service-hero__tabs button:hover { background: #f1eee5; }
.service-hero__tabs button[aria-selected="true"] { color: #fff; background: #28533f; border-color: #28533f; font-weight: 700; }
.service-hero__tabs button[aria-selected="true"] small { color: #e0ecdf; }
.service-hero__previews { min-width: 0; }
.service-preview { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); grid-template-areas: "copy visual"; align-items: center; gap: 48px; }
.service-preview[hidden] { display: none; }
.service-hero__visual { grid-area: visual; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e2e5dd; border-radius: 16px; box-shadow: 0 12px 36px #31453608; }
.service-preview__scene { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eceee6; }
.service-preview__background { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-preview__scene--obituary{display:block;aspect-ratio:678/535;background:#f3eddf}
.service-preview__scene--obituary .service-preview__background{object-fit:contain}
.service-preview__portrait { position: absolute; object-fit: cover; object-position: 50% 30%; }
.service-preview__portrait--spring { left: 41.4%; top: 28.5%; width: 17.2%; height: 45.8%; }
.service-preview__portrait--memorial { left: 40.9%; top: 19.05%; width: 18.2%; height: 49.5%; }
.service-hero__details { grid-area: copy; padding: 12px 0; min-width: 0; }
.service-hero__moment { margin-bottom: 10px; color: #7a6956; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.service-hero__details h2 { font-family: 'Gowun Batang', serif; font-size: clamp(25px, 2.4vw, 30px); line-height: 1.5; letter-spacing: -.045em; font-weight: 700; color: #30483e; word-break: keep-all; }
.service-hero__description { min-height: 48px; margin: 12px 0; font-size: 15px; color: #626c60; line-height: 1.9; word-break: keep-all; }
.service-hero__title-line, .service-hero__description--autobiography > span { display: block; }
.service-hero__description--autobiography > span + span { margin-top: 6px; }
.service-hero__desktop-copy { display: none; }
@media (min-width: 821px) {
 .service-hero__navigation > .service-hero__obituary { display: none; }
 .service-hero__tabs { grid-row: 1; }
 .service-hero__mobile-copy { display: none; }
 .service-hero__desktop-copy { display: inline; }
 h2 .service-hero__desktop-copy > span { display: block; }
}
.service-hero__value { display: flex; align-items: start; gap: 8px; margin: 0 0 24px; color: #536c50; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.service-hero__value svg { flex: none; width: 16px; height: 16px; margin-top: 3px; stroke-width: 1.5; }
.service-evidence { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.service-evidence__copy { min-width: 0; }
.service-evidence__copy > span { display: block; color: #7b705c; font-size: 11px; line-height: 1.6; }
.service-evidence__copy :is(p, blockquote) { margin-top: 7px; color: #586151; font-family: 'Gowun Batang', serif; font-size: 13px; line-height: 1.85; word-break: keep-all; }
.service-evidence__photos { display: flex; flex: none; gap: 7px; }
.service-evidence__photos img { width: 66px; height: 76px; border-radius: 5px; object-fit: cover; }
.service-evidence__photos--memorial img:first-child { object-fit: contain; background: #f8f6f1; }
.service-evidence__photos--moriam img { width: 124px; object-position: center 25%; }
.service-evidence__note { padding: 12px 18px; border-top: 1px solid #e7e9e1; color: #687260; font-size: 11px; }
.service-hero .home-price--hero { min-height: 54px; margin: 0; padding: 0; border: 0; }
.service-hero .home-price__amount strong { font-size: 20px; }
.service-hero .home-price__note { color: #687260; font-size: 12px; line-height: 1.75; }
.service-hero__actions { display: grid; grid-template-columns: 1.12fr 1fr; gap: 8px; margin-top: 18px; }
.service-hero__primary, .service-hero__secondary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 8px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.service-hero__primary { background: #28533f; color: white; border: 1px solid #28533f; }
.service-hero__primary:hover { background: #284633; }
.service-hero__secondary { color: #2e513c; border: 1px solid #ccd3c7; background: #fffdf8; }
.service-hero__secondary:hover { background: #f1eee5; }
.service-hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; font-size: 11px; color: #687260; }
.service-hero__foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; color: #66735f; }
.service-hero__caption { margin-top: 8px; color: #687260; font-size: 11px; line-height: 1.8; text-align: center; }
.service-hero :is(a,button,[role="tabpanel"]):focus-visible { outline: 3px solid #94733e; outline-offset: 3px; }
#home-space-intro, #home-samples, #memento-greeting { scroll-margin-top: 95px; }
.site-gnb .mm-home-menu > summary::after { content: ""; margin-left: 0; }
.mm-home-menu > summary > span::after { content: "⌄"; margin-left: 5px; }
.home-values-family { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; margin-bottom: 36px; }
.home-values-family .mm-section-heading { margin-bottom: 0; }
.home-values-family > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
@media (max-width: 820px) {
 .service-hero { padding: 12px 20px 24px; }
 .service-hero__layout { max-width: 580px; }
 .service-hero__intro { display: block; margin-bottom: 6px; }
 .service-hero h1 { font-size: clamp(20px, 5.25vw, 27px); line-height: 1.45; }
 .service-hero__lead { margin-top: 7px; font-size: 12px; line-height: 1.7; }
 .service-hero .service-hero__intro .service-hero__shortcuts { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
 .service-hero .service-hero__shortcuts a { display: none; }
 .service-hero .service-hero__shortcuts a.service-hero__obituary { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #a38150; border-radius: 14px; background: #f1e2c9; color: #604522; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background-color .18s ease, border-color .18s ease; }
 .service-hero .service-hero__obituary .service-hero__obituary-icon { display: block; flex: none; width: 18px; height: 18px; color: #785629; }
 .service-hero__obituary-arrow { display: none; }
 .service-hero .service-hero__shortcuts a.service-hero__obituary:hover { background: #f5efe4; border-color: #c7b69e; }
 .service-hero .service-hero__shortcuts a.service-hero__obituary:active { background: #eee5d8; }
 .service-hero__obituary:focus-visible { outline: 2px solid #805f43; outline-offset: 3px; }
 .service-hero__navigation { margin-bottom: 10px; }
 .service-hero__tabs { gap: 4px; grid-template-columns:repeat(6,minmax(64px,1fr));overflow-x:auto;padding:2px 0;scrollbar-width:thin; }
 .service-hero__tabs button { flex: 1; min-height: 48px; font-size: 12px; padding-inline: 0; white-space: nowrap; text-align: center; }
 .service-hero__tabs button small { display: none; }
 .service-preview { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "copy"; gap: 0; }
 .service-hero__visual { border-radius: 12px; }
 .service-hero__details { display: flex; flex-direction: column; padding: 12px 0 0; }
 .service-hero__moment { margin-bottom: 5px; font-size: 11px; }
 .service-hero__details h2 { font-size: clamp(20px, 5.7vw, 24px); }
 .service-hero__description { min-height: 48px; margin: 8px 0; font-size: 14px; line-height: 1.75; }
 .service-hero__value { order: 1; margin: 10px 0 0; font-size: 11px; }
 .service-hero__foot { order: 2; }
 .service-evidence { gap: 10px; padding: 12px; }
 .service-evidence__copy > span { font-size: 10px; }
 .service-evidence__copy :is(p, blockquote) { margin-top: 5px; font-size: 11px; line-height: 1.8; }
 .service-evidence__photos { gap: 5px; }
 .service-evidence__photos img { width: 45px; height: 58px; }
 .service-evidence__photos--moriam img { width: 80px; }
 .service-hero .template-preview__more > summary { padding-inline: 12px; font-size: 11px; }
 .service-hero .template-preview { display:flex; flex-direction:column; }
 .service-hero .template-preview__stage { flex:none; order:0; }
 .service-hero .template-preview__more { order:1; background:#f9faf5; }
 .service-hero .template-preview__more > summary { font-size:12px; font-weight:600; color:#36553e; }
 .service-hero .template-preview__more[open] > summary > span > span { font-size:0; }
 .service-hero .template-preview__more[open] > summary > span > span::after { content:'−'; font-size:16px; }
 .service-hero .template-preview>.service-evidence { order:2; }
 .service-hero .home-price--hero { min-height: 48px; }
 .service-hero__actions { margin-top: 8px; }
 .home-values-family { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 360px) {
 .service-hero { padding: 12px 12px 24px; }
 .service-hero h1 { font-size: 20px; }
 .service-hero__details { padding: 12px 0 0; }
 .service-evidence__photos img { width: 35px; height: 50px; }
 .service-evidence__photos--moriam img { width: 72px; }
 .service-hero__primary, .service-hero__secondary { font-size: 13px; gap: 6px; }
}

/* Balance the longer bookclub headline without stranding its final word. */
[data-hero-panel="bookclub"] .service-hero__details h2 { font-size: clamp(20px, 2.2vw, 27px); }
@media (max-width: 820px) {
 [data-hero-panel="bookclub"] .service-hero__details h2 { font-size: clamp(19px, 5.1vw, 23px); }
}
[data-hero-panel="bookclub"] .service-hero__title-line { text-wrap: balance; }

/* Distinct manual controls, with the existing service layout preserved. */
.service-hero__navigation { border-bottom: 0; }
@media(max-width:820px){
 .service-hero__navigation{gap:6px 4px}
 .service-hero__navigation>.service-hero__obituary{min-height:44px;padding:5px 2px;font-size:11px;line-height:1.5;border-radius:10px}
 .service-hero__navigation>.service-hero__obituary .service-hero__obituary-break{display:block;height:0}
}
.service-hero .service-pager button { border-color: #ccd3c7; background: #fffdf8; color: #2d5139; border-radius: 14px; }
.service-hero .service-pager button:hover { background: #f1eee5; }

/* The same letter body as the public sample, shown in both photo modes. */
.home-obituary-examples { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;padding:22px 18px 16px; }
.home-obituary-example { min-width:0;margin:0; }
.home-obituary-example figcaption { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;margin-bottom:12px;min-height:44px;color:#f1f2ee;text-align:center;font:500 13px/1.7 'Pretendard',sans-serif; }
.home-obituary-example__link { display:block;border:1px solid #deded6;border-radius:5px;background:#fffffc;color:#424a43;overflow:hidden;box-shadow:0 6px 20px #00000012; }
.home-obituary-example__stage { position:relative;isolation:isolate;overflow:hidden;perspective:1800px;container-type:inline-size;--home-envelope-top:min(220px,60cqi); }
.home-obituary-example__paper { position:relative;z-index:2;transform-origin:center top; }
.home-obituary-envelope { display:none;pointer-events:none; }
.home-obituary-envelope__back { position:absolute;inset:0;z-index:1;border:1px solid #cdd1ca;border-radius:4px;background:linear-gradient(145deg,#edefe9,#fafaf5);box-shadow:0 12px 22px #00000020; }
.home-obituary-envelope__flap { position:absolute;z-index:5;inset:0 0 auto;height:54%;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(#fafaf5,#e1e4dc);transform-origin:center top;backface-visibility:visible; }
.home-obituary-envelope__pocket { position:absolute;z-index:3;inset:0;border:1px solid #deded6;border-radius:0 0 4px 4px;background:linear-gradient(145deg,#fffffc,#eeeee7);clip-path:polygon(0 0,50% 48%,100% 0,100% 100%,0 100%); }
.home-obituary-envelope__pocket:before,.home-obituary-envelope__pocket:after { content:"";position:absolute;inset:0;pointer-events:none; }
.home-obituary-envelope__pocket:before { background:linear-gradient(130deg,#fafaf5,#e9ebe3);clip-path:polygon(0 0,50% 48%,0 100%); }
.home-obituary-envelope__pocket:after { background:linear-gradient(230deg,#f4f4ee,#e9ebe3);clip-path:polygon(100% 0,50% 48%,100% 100%); }
.home-obituary-envelope__address { position:absolute;z-index:6;inset:37% 8% 6%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#424a43;text-align:center;font:400 clamp(11px,1.1vw,14px)/1.7 'Gowun Batang',serif; }
.home-obituary-envelope__address small { font-size:10px;color:#646b64; }
.home-obituary-envelope__flower { width:21px;height:30px;transform:rotate(-55deg);filter:grayscale(1); }
.home-obituary-example__replay { display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:6px;background:transparent;color:#e1e6df;font:400 11px/1.7 'Pretendard',sans-serif;cursor:pointer; }
.home-obituary-example__replay[hidden] { display:none; }
.home-obituary-example__replay:hover { background:#ffffff0c;color:#fff; }
.home-obituary-example__replay:focus-visible { outline:2px solid #eef0e9;outline-offset:2px; }
.home-obituary-example.is-envelope-ready .home-obituary-example__link { background:transparent;border-color:transparent;box-shadow:none; }
/* Keep the letter between the envelope back and its front pocket. */
.home-obituary-example.is-envelope-ready .home-obituary-envelope { display:contents; }
.home-obituary-example.is-envelope-ready :is(.home-obituary-envelope__back,.home-obituary-envelope__pocket) { inset:var(--home-envelope-top) 4% auto;aspect-ratio:1.5; }
.home-obituary-example.is-envelope-ready .home-obituary-envelope__flap { inset:var(--home-envelope-top) 4% auto;height:auto;aspect-ratio:2.78; }
.home-obituary-example.is-envelope-ready .home-obituary-envelope__address { inset:var(--home-envelope-top) 4% auto;aspect-ratio:1.5;box-sizing:border-box;padding-top:19%; }
.home-obituary-example .obituary-letter { min-height:0;padding:24px 18px;background:#fffffc; }
.home-obituary-example .obituary-letter:before { inset:8px; }
.home-obituary-example .obituary-letter-flower { width:25px;height:38px;margin-bottom:10px;filter:grayscale(1); }
.home-obituary-example .obituary-letter-header>p:first-child { font-size:11px;letter-spacing:.02em; }
.home-obituary-example .obituary-letter-header h3 { margin:10px 0 6px;font:400 23px/1.5 'Gowun Batang',serif;color:#303734;overflow-wrap:anywhere; }
.home-obituary-example .obituary-letter .obituary-portrait-meta { gap:2px 6px;font-size:10px; }
.home-obituary-example .obituary-letter [data-obituary-photo] { margin:18px auto; }
.home-obituary-example .obituary-letter .obituary-portrait-message { margin:20px auto;font-size:12px;line-height:1.9; }
.home-obituary-example .obituary-letter-details { margin-top:18px;padding-top:17px;gap:14px;font-size:11px;line-height:1.8; }
.home-obituary-example .obituary-letter-details>div { grid-template-columns:26px minmax(0,1fr);gap:8px; }
.home-obituary-example .obituary-place-address { margin-top:4px;font-size:10px; }
.home-obituary-example .obituary-directions-link { min-height:0;gap:4px;margin-top:6px;padding:4px 6px;font-size:10px; }
.home-obituary-example .obituary-directions-link svg { width:12px;height:12px; }
.home-obituary-example__sender { margin-top:20px;color:#646b64;font:400 11px/1.8 'Gowun Batang',serif;text-align:center; }
.home-obituary-example__open { display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:10px 6px;border-top:1px solid #deded6;background:#f4f5ef;color:#45534b;font:600 11px/1.7 'Pretendard',sans-serif;text-align:center; }
.home-obituary-example__open:hover { background:#e8ece2; }
.home-obituary-example__open:focus-visible { outline:2px solid #45534b;outline-offset:-4px; }
.home-obituary-example .obituary-memorial-entry { margin-top:24px;padding:20px 12px 15px;border-radius:18px;box-shadow:none; }
.home-obituary-example .obituary-memorial-entry__intro { display:block;text-align:center; }
.home-obituary-example .obituary-memorial-entry__flower { width:44px;height:68px;margin:0 auto 12px;border-radius:22px 22px 3px 3px; }
.home-obituary-example .obituary-memorial-entry__flower img { width:30px;height:54px; }
.home-obituary-example .obituary-memorial-entry h4 { margin:9px 0 12px;font:400 15px/1.7 'Gowun Batang',serif;word-break:keep-all;overflow-wrap:anywhere; }
.home-obituary-example .obituary-memorial-entry__copy { font-size:11px;line-height:1.9; }
.home-obituary-example .obituary-memorial-entry a { min-height:44px;margin-top:18px;padding:10px 6px;gap:7px;font-size:12px;border-radius:14px; }
.home-obituary-example .obituary-memorial-entry a svg { width:14px;height:14px; }
.home-obituary-example .obituary-memorial-entry__note { text-align:center; }
.home-obituary-examples__note { grid-column:1/-1;color:#d9ded9;text-align:center;font:400 11px/1.8 'Pretendard',sans-serif;word-break:keep-all; }
@media(max-width:820px) {
 .home-obituary-examples { grid-template-columns:minmax(0,1fr);gap:24px;padding:22px 18px 18px; }
 .home-obituary-example { width:100%;max-width:420px;justify-self:center; }
 .home-obituary-example .obituary-letter { padding:26px 22px; }
 .home-obituary-example .obituary-letter .obituary-portrait-message { font-size:14px; }
 .home-obituary-example .obituary-letter-details { font-size:12px; }
 .home-obituary-example .obituary-place-address { font-size:11px; }
 .home-obituary-example__open { font-size:12px; }
}
