:root {
  --paper: #fffdfa;
  --cream: #fbf8f2;
  --sand: #f2e8db;
  --border: #e9dfd3;
  --ink: #332825;
  --muted: #655751;
  --accent: #795719;
  --accent-deep: #5d410e;
  --dark: #392b28;
  --gold: #d9ae79;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
figure, h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.shell { width: min(100% - 88px, 1192px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: .7rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.utility { background: #f4e4cc; color: #493327; font-size: .8rem; }
.utility-inner, .utility-links, .utility-links a, .utility-status { display: flex; align-items: center; }
.utility-inner { min-height: 36px; justify-content: space-between; gap: 12px; }
.utility-status, .utility-links a { gap: 8px; }
.utility-status span { width: 7px; height: 7px; border-radius: 50%; background: #36724b; }
.utility-links { gap: 23px; }
.utility-links a { text-decoration: none; }
.utility-links a:hover { text-decoration: underline; }

.header { background: var(--paper); position: relative; z-index: 3; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 83px; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 29px); font-size: .87rem; font-weight: 600; }
.nav > a { text-decoration: none; white-space: nowrap; }
.nav > a:not(.button):hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.header-controls { display: flex; align-items: center; gap: 8px; }
.language-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 5px; color: var(--accent); font-size: .84rem; font-weight: 650; text-underline-offset: .22em; white-space: nowrap; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 49px; padding: 10px 18px; border: 1px solid transparent; border-radius: 5px; font-size: .88rem; font-weight: 650; line-height: 1.2; text-decoration: none; transition: background .16s, color .16s, border .16s; }
.nav-button, .primary { background: var(--accent); color: #fff; }
.nav-button:hover, .primary:hover { background: var(--accent-deep); }
.nav-button { min-height: 42px; padding: 9px 14px; }
.secondary { border-color: #cbb6a6; color: var(--ink); }
.secondary:hover { background: #efe4d6; }
.light { color: var(--dark); background: #fff4e3; }
.light:hover { background: #f3d9b8; }
.ghost { color: #583525; border-color: #9e754b; }
.ghost:hover { background: #fff3e1; }

.hero { background: var(--cream); padding-block: 52px 54px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(26px, 5vw, 73px); }
.hero-copy { padding-block: 22px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .73rem; line-height: 1.45; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { display: block; width: 23px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3.05rem, 4.65vw, 4.55rem); letter-spacing: -.065em; margin-top: 18px; }
h1 em { display: block; color: var(--accent); font-weight: 400; }
h2 { font-size: clamp(2.45rem, 4.1vw, 4rem); letter-spacing: -.05em; margin-top: 12px; }
h3 { font-size: 1.64rem; letter-spacing: -.035em; }
.hero-intro { color: var(--muted); max-width: 465px; font-size: 1.08rem; line-height: 1.65; margin-top: 23px; }
.hero-buttons, .action-group { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: .82rem; }
.hero-note .icon { color: var(--accent); }
.hero-photo { isolation: isolate; position: relative; height: clamp(330px, 34vw, 478px); min-width: 0; border-radius: 112px 8px 8px 8px; overflow: hidden; background: #e9dbca; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-photo figcaption { position: absolute; inset: auto auto 18px 18px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 36px); padding: 8px 11px; border-radius: 4px; background: #fffcf5; font-size: .75rem; line-height: 1.35; color: var(--dark); }
.hero-photo figcaption .icon { color: var(--accent); }

.pathways { background: #efe5d8; border-block: 1px solid #e6d9c8; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pathway { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 109px; padding: 16px 21px; text-decoration: none; }
.pathway:first-child { padding-left: 0; }
.pathway:last-child { padding-right: 0; }
.pathway + .pathway { border-left: 1px solid #ded0bf; }
.pathway:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.badge { display: inline-grid; width: 43px; height: 43px; border-radius: 50%; place-items: center; background: #f3e5d8; color: var(--accent); }
.pathway .badge { background: #fff8ed; }
.badge .icon { width: 22px; height: 22px; }
.pathway strong { display: block; font-size: .96rem; line-height: 1.3; }
.pathway small { display: block; color: var(--muted); font-size: .79rem; line-height: 1.42; margin-top: 4px; }
.pathway-arrow { color: var(--accent); }

.section { padding-block: clamp(58px, 7vw, 102px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .8fr); align-items: end; gap: 26px; margin-bottom: 31px; }
.section-head > p, .resources-grid > div:first-child > p:not(.eyebrow), .about-copy > p:not(.eyebrow, .chinese) { color: var(--muted); max-width: 470px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 23px; border: 1px solid var(--border); border-radius: 6px; background: var(--cream); }
.tabs button { border: 0; background: transparent; border-radius: 4px; min-height: 43px; padding: 6px 19px; cursor: pointer; font-weight: 650; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--dark); color: #fff8ed; }
.tabs button[aria-selected="false"]:hover { background: var(--sand); }
.package-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.package-card, .service-card { display: flex; flex-direction: column; align-items: start; padding: 23px; border: 1px solid var(--border); border-radius: 7px; }
.package-card { background: #fff; }
.package-card h3 { margin-top: 13px; }
.package-card p, .service-card > p:not(.card-label) { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .9rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .23em; }
.package-card .text-link, .service-card .text-link { margin-top: auto; padding-top: 19px; }
.package-bottom { margin-top: 25px; }

.immediate { background: var(--dark); color: #fff5e8; }
.split, .about-grid, .resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 106px); align-items: center; }
.immediate .eyebrow { color: #edbc87; }
.immediate .split > div > p:not(.eyebrow) { color: #eddfd5; margin-top: 18px; max-width: 410px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 13px; padding: 16px 0; border-bottom: 1px solid #73574d; }
.steps li:first-child { border-top: 1px solid #73574d; }
.steps li > span { color: #edbc87; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.steps h3 { font-family: var(--sans); font-size: .98rem; font-weight: 650; line-height: 1.45; letter-spacing: 0; }
.steps p { color: #eddfd5; font-size: .89rem; margin-top: 3px; }

.services { background: var(--cream); }
.service-card { background: var(--paper); }
.card-label { color: var(--accent); font-size: .69rem; font-weight: 740; letter-spacing: .11em; text-transform: uppercase; margin: 14px 0 5px; }
.about-photo { border-radius: 8px 8px 85px 8px; overflow: hidden; background: var(--sand); }
.about-photo img { width: 100%; height: clamp(275px, 30vw, 440px); object-fit: cover; }
.about-copy > p:not(.eyebrow) { margin-top: 19px; }
.about-copy .chinese { color: var(--accent); font-family: var(--serif); font-size: 1.12rem; letter-spacing: .17em; margin-bottom: 15px; }
.resources { background: #f5eee4; }
.resources-grid { align-items: start; }
.resources-grid > div:first-child > p:not(.eyebrow) { margin-top: 16px; }
.resources-grid .text-link { margin-top: 17px; }
.faq details { border-bottom: 1px solid #ddcfbf; }
.faq details:first-child { border-top: 1px solid #ddcfbf; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 57px; gap: 16px; padding: 11px 0; font-weight: 650; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform .15s; }
.faq [open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: .92rem; padding-bottom: 14px; }
.faq details a { color: var(--accent); }

.footer {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 58% 100%, #edbd80 0%, transparent 72%),
    linear-gradient(115deg, #faf1e2, #f3d4a5 56%, #f8ebd9);
  color: var(--ink);
  padding-top: 48px;
}
.footer > .shell { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .daylight-arrival { position: relative; isolation: isolate; }
  .daylight-arrival > .shell { position: relative; z-index: 1; }
  .daylight-arrival::before {
    --daylight-opacity: .66;
    --daylight-warmth: #ffe5ae;
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 48% 0%, #fff8e6 0%, #fff0cc80 36%, transparent 72%),
      linear-gradient(99deg, transparent 17%, #fff5da 27%, transparent 39%),
      linear-gradient(94deg, transparent 39%, #fff8e7 51%, transparent 64%),
      linear-gradient(82deg, transparent 61%, var(--daylight-warmth) 74%, transparent 86%);
    mask-image: linear-gradient(#000 5%, #000b 46%, transparent 97%);
    transform-origin: top center;
    animation: daylight-fall 4.5s ease-in-out both;
  }
  .footer.daylight-arrival::before {
    --daylight-opacity: .84;
    --daylight-warmth: #fff0c7;
  }
  @keyframes daylight-fall {
    0% { opacity: 0; transform: scaleY(.28); }
    48% { opacity: var(--daylight-opacity); transform: scaleY(.83); }
    65% { opacity: calc(var(--daylight-opacity) * .78); }
    100% { opacity: 0; transform: scaleY(1); }
  }
}
.footer-grid { display: grid; grid-template-columns: 1.1fr .85fr 1fr 1fr; gap: 22px; }
.footer-brand { position: relative; width: min(100%, 190px); }
.footer-brand img { width: 100%; filter: brightness(.58) saturate(.92); }
.footer h2 { font: 650 .93rem/1.5 var(--sans); letter-spacing: 0; margin: 0 0 8px; }
.footer-grid p, .footer-grid address, .footer-grid > div > a:not(.brand, .button) { font-size: .85rem; color: #503a2b; }
.footer-grid p, .footer-grid address { margin-top: 7px; font-style: normal; }
.footer-grid > div > a:not(.brand, .button) { display: block; text-decoration: none; margin-bottom: 4px; }
.footer-grid > div > a:not(.brand, .button):hover { text-decoration: underline; }
.footer-grid > div > a.footer-phone { color: var(--ink); font-weight: 700; }
.footer .button { margin-top: 12px; min-height: 41px; }
.footer-bottom { border-top: 1px solid #b5946b; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px 15px; margin-top: 34px; padding-block: 14px; color: #503a2b; }
.footer-credit { text-align: center; }
.mobile-contact { display: none; }

@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .nav { gap: 14px; font-size: .8rem; }
}
@media (max-width: 1050px) {
  .shell { width: min(100% - 58px, 1192px); }
  .brand img { width: 163px; }
  .hero-inner { gap: 28px; }
  .hero-buttons .button { padding-inline: 12px; }
}
@media (max-width: 1100px) {
  .header-inner { min-height: 70px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; background: var(--cream); border: 1px solid var(--border); border-radius: 5px; padding: 7px 12px; cursor: pointer; font-weight: 650; font-size: .9rem; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; padding: 13px 28px 20px; gap: 0; background: var(--paper); box-shadow: 0 10px 20px #392b281a; font-size: .94rem; }
  .nav.nav-open { display: flex; }
  .nav > a { padding: 11px 0; }
  .nav-button { align-self: start; margin-top: 8px; padding-inline: 16px !important; }
}
@media (max-width: 900px) {
  .hero { padding-block: 33px; }
  .hero-copy { padding: 0; }
  .hero-photo { height: 365px; border-top-left-radius: 70px; }
  .pathway { padding-inline: 12px; gap: 8px; }
  .pathway-arrow { width: 14px; }
  .pathway .badge { width: 35px; height: 35px; }
  .pathway .badge .icon { width: 18px; height: 18px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .utility-inner { min-height: 34px; }
  .utility { font-size: .71rem; }
  .utility-links { gap: 0; }
  .utility-links a:first-child { display: none; }
  .header-inner { min-height: 65px; gap: 8px; }
  .header-inner .brand img { width: clamp(125px, 43vw, 163px); }
  .nav { padding-inline: 18px; }
  .hero { padding-block: 36px 23px; }
  .hero-inner, .section-head, .split, .about-grid, .resources-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 24px; }
  h1 { font-size: clamp(2.95rem, 10.5vw, 4rem); }
  .hero-intro { margin-top: 16px; font-size: .99rem; }
  .hero-buttons, .action-group { margin-top: 19px; }
  .hero-note { margin-top: 12px; }
  .hero-photo { height: clamp(234px, 63vw, 355px); border-top-left-radius: 58px; }
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway, .pathway:first-child, .pathway:last-child { min-height: 73px; gap: 12px; padding: 10px 0; }
  .pathway + .pathway { border-left: 0; border-top: 1px solid #ded0bf; }
  .pathway small { margin-top: 2px; }
  .section { padding-block: 49px; }
  .section-head { gap: 12px; margin-bottom: 21px; }
  .package-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .package-card, .service-card { padding: 15px; }
  .package-card h3, .service-card h3 { font-size: 1.4rem; }
  .package-card p, .service-card > p:not(.card-label) { font-size: .86rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 18px; }
  .about-grid { gap: 24px; }
  .about-photo img { height: clamp(225px, 66vw, 350px); }
  .footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 21px 14px; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; margin-top: 25px; }
  /* Keep contact actions in their own row, outside the scrolling page. */
  body { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; }
  .site-scroll { min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-block: 8px; }
  .site-scroll:focus-visible { outline-offset: -3px; }
  .mobile-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #d7c5b5; background: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mobile-contact a { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 48px; padding: 7px; font-size: .86rem; font-weight: 700; text-decoration: none; color: var(--dark); }
  .mobile-contact a:first-child { background: var(--accent); color: white; }
}

html[lang="zh-SG"] {
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: system-ui, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
html[lang="zh-SG"] :is(h1, h2, h3, .eyebrow) { letter-spacing: normal; }
html[lang="zh-SG"] :is(h1, h2, h3) { line-height: 1.22; }
@media (max-width: 365px) {
  .hero-buttons .button { min-height: 44px; font-size: .79rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.inner-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(32px, 5vw, 65px);
}
.inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr);
  align-items: end;
  gap: clamp(28px, 6vw, 86px);
}
.inner-hero-grid.single { grid-template-columns: minmax(0, 760px); }
.breadcrumbs { margin-bottom: clamp(22px, 3vw, 36px); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumbs li { display: inline-flex; gap: 10px; align-items: baseline; }
.breadcrumbs li + li::before { content: '›'; color: var(--accent); }
.breadcrumbs a { text-underline-offset: .18em; }
.breadcrumbs a:hover { color: var(--accent); }
.inner-hero h1 { max-width: 15ch; margin-top: 12px; }
.inner-intro { max-width: 60ch; margin-top: 17px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.12rem); }
.inner-aside {
  align-self: end;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 8px 8px 55px 8px;
  background: var(--sand);
}
.inner-aside h2 { font-size: clamp(1.7rem, 2.9vw, 2.45rem); letter-spacing: -.045em; }
.inner-aside p:not(.eyebrow) { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.inner-aside .text-link { margin-top: 12px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr);
  align-items: start;
  gap: clamp(26px, 5vw, 64px);
}
.detail-body > * + * { margin-top: 26px; }
.detail-body h2, .detail-side h2, .catalogue h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); margin-top: 0; }
.detail-body h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); }
.detail-body p, .detail-side p { color: var(--muted); }
.detail-body h2 + p, .detail-body h3 + p, .detail-side h2 + p { margin-top: 8px; }
.detail-highlights {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-block: 1px solid var(--border);
}
.detail-highlights article { padding-block: 17px; }
.detail-highlights article + article { border-top: 1px solid var(--border); }
.detail-body.detail-highlights, .detail-body.detail-highlights > article { margin-top: 0; }
.detail-considerations ul { padding-inline-start: 1.35em; color: var(--muted); }
.detail-considerations li + li { margin-top: 6px; }
.detail-considerations li::marker { color: var(--accent); }
.detail-note {
  padding: 15px 17px;
  border-inline-start: 3px solid var(--gold);
  background: var(--cream);
  color: var(--muted);
}
.detail-side {
  min-width: 0;
  padding: clamp(19px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}
.detail-side h2 { font-size: clamp(1.65rem, 2.45vw, 2rem); }
.detail-side.related-links {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding-inline: 0;
}
.related-links ul, ul.related-links { padding: 0; margin: 13px 0 0; list-style: none; }
.related-links li + li { border-top: 1px solid var(--border); }
.related-links .text-link { display: flex; justify-content: space-between; min-height: 44px; padding-block: 9px; }

.catalogue h2 { margin-bottom: 16px; }
.catalogue .package-grid + .section-head { margin-top: clamp(34px, 6vw, 65px); }

.awards { background: var(--cream); border-block: 1px solid var(--border); }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.award-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.award-image {
  height: 139px;
  padding: 16px;
  display: grid;
  place-items: center;
  border-radius: 7px 7px 0 0;
  background: var(--sand);
  color: var(--accent);
}
.award-image img { width: 100%; height: 106px; object-fit: contain; }
.award-image .icon { width: 49px; height: 49px; stroke-width: 1.25; }
.award-copy { padding: 15px 16px 17px; }
.award-copy .card-label { margin-top: 0; }
.award-copy h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -.024em; line-height: 1.15; }
.award-copy p:not(.card-label) { margin-top: 7px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.awards-more { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 22px; margin-top: 22px; }
.awards-more p { color: var(--muted); font-size: .9rem; }

@media (max-width: 1050px) {
  .awards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .inner-hero-grid, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .inner-aside { max-width: 480px; }
  .detail-side { max-width: 550px; }
  .awards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .award-image { height: 121px; padding: 12px; }
  .award-image img { height: 96px; }
  .award-copy { padding: 13px 12px 14px; }
}
@media (max-width: 365px) {
  .awards-grid { grid-template-columns: minmax(0, 1fr); }
}

.package-card.has-photo,
.service-card.has-photo {
  align-items: stretch;
  padding: 0;
}
.package-photo,
.service-photo {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: var(--sand);
}
.package-photo img,
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.package-card-copy,
.service-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(16px, 2.1vw, 25px);
}
.package-card-copy h3 { margin-top: 0; }
.service-card-copy > p:not(.card-label) {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 8px;
}
.package-card-copy .text-link,
.service-card-copy .text-link {
  min-height: 44px;
  padding-top: 13px;
}

.page-photo {
  align-self: center;
  min-width: 0;
}
.page-photo img {
  width: 100%;
  height: clamp(245px, 30vw, 410px);
  object-fit: cover;
  border-radius: 8px 8px 8px clamp(48px, 7vw, 102px);
  background: var(--sand);
}
.page-photo figcaption {
  margin-top: 8px;
  padding-inline: 12px;
  color: var(--muted);
  font-size: .82rem;
  text-align: right;
}

.gallery-section {
  background: var(--cream);
  border-block: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 25px);
  margin-top: clamp(20px, 3vw, 35px);
}
.gallery-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sand);
}
.gallery-photo figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}
.gallery-actions { margin-top: 22px; }
.gallery-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 22px;
}
.gallery-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.gallery-jump a:hover { background: var(--sand); }
.gallery-section + .gallery-section:nth-of-type(even) { background: var(--paper); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .package-photo img,
  .service-photo img { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
  .package-card.has-photo:hover .package-photo img,
  .service-card.has-photo:hover .service-photo img { transform: scale(1.035); }
}

@media (max-width: 700px) {
  .page-photo img { height: clamp(210px, 63vw, 370px); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .package-card-copy { padding: 12px; }
  .package-card.has-photo h3 { font-size: clamp(1.15rem, 3.8vw, 1.4rem); }
  .package-card-copy .text-link { font-size: .83rem; }
  .service-card-copy > p:not(.card-label) { font-size: .86rem; }
}
@media (max-width: 480px) {
  .gallery-grid { gap: 12px; }
  .gallery-photo figcaption { font-size: .82rem; }
}

#designer-casket-gallery .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#designer-casket-gallery .gallery-zoom img { object-fit: contain; }

.gallery-zoom {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}
.gallery-zoom img { height: 100%; }
.gallery-zoom::after {
  position: absolute;
  inset: auto 10px 10px auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23795719' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l4.5 4.5M8 10.5h5m-2.5-2.5v5'/%3E%3C/svg%3E") center / 20px no-repeat;
  pointer-events: none;
  content: '';
}
.gallery-zoom:hover::after,
.gallery-zoom:focus-visible::after { background-color: var(--sand); }

body:has(.gallery-dialog[open]) { overflow: hidden; }
.gallery-dialog {
  width: min(900px, calc(100% - 26px));
  max-width: none;
  max-height: calc(100vh - 26px);
  max-height: calc(100dvh - 26px);
  margin: auto;
  padding: clamp(13px, 3vw, 25px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 65px #2d23204d;
}
.gallery-dialog::backdrop { background: #2d2320d9; }
.gallery-dialog-header,
.gallery-dialog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gallery-dialog-header { margin-bottom: 12px; }
.gallery-dialog-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -.03em;
}
.gallery-dialog-image {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  max-height: min(65vh, 660px);
  max-height: min(65dvh, 660px);
  object-fit: contain;
  border-radius: 5px;
  background: var(--cream);
}
.gallery-dialog figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}
.gallery-dialog-controls { margin-top: 12px; }
.gallery-dialog-controls p { margin-inline: auto; color: var(--muted); font-size: .9rem; }
.gallery-dialog button:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--cream);
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}
.gallery-dialog button:hover { background: var(--sand); }
.gallery-dialog button span { font-size: 1.2rem; line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
  .gallery-dialog[open] { animation: gallery-arrive .16s ease-out; }
  @keyframes gallery-arrive {
    from { opacity: .6; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.home-flow { background: var(--cream); }
.home-flow .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 64svh, 680px);
  padding: 64px 0 92px;
  background: #322820;
  color: #fff9ef;
}
.home-flow .hero-inner { display: block; }
.home-flow .hero-copy { position: relative; max-width: 590px; padding: 0; }
.home-flow .hero h1 { font-size: clamp(3.65rem, 6.2vw, 6.45rem); line-height: .97; }
.home-flow .hero h1 em { color: #ffdeb9; }
.home-flow .hero .eyebrow, .home-flow .hero-help { color: #ffdfbc; }
.home-flow .hero-review-link { min-height: 44px; text-decoration: underline; text-underline-offset: .22em; }
.home-flow .hero-intro { color: #fff4e7; max-width: 390px; }
.home-flow .hero-photo {
  position: absolute;
  inset: 0;
  height: auto;
  border-radius: 0;
  z-index: -1;
  background: #322820;
}
.home-flow .hero-photo picture { display: block; height: 100%; }
.home-flow .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 63% center; }
.home-flow .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(93deg, #2b2018ed 0%, #36251bdb 28%, #54382056 52%, #68411d08 76%),
    linear-gradient(0deg, #7a523768, transparent 23%);
}
@media (prefers-reduced-motion: no-preference) {
  .home-flow .hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 76% 24%, #fffdf5 0%, #fff8e7c2 28%, #fff3d450 53%, transparent 78%);
    animation: hero-light-dissolve 1.8s ease-out both;
  }
  @media (max-width: 720px) {
    .home-flow .hero-photo:not(.light-arrival)::before {
      content: none;
    }
  }
  @media (min-width: 901px) {
    :is(.package-grid, .gallery-grid, .care-service-list) > .slide-arrival:nth-child(3n + 2) { --slide-delay: 20ms; }
    :is(.package-grid, .gallery-grid, .care-service-list) > .slide-arrival:nth-child(3n + 3) { --slide-delay: 40ms; }
  }
  .slide-arrival:not(:focus-within) {
    animation: item-slide-up .75s ease var(--slide-delay, 0ms) backwards;
  }
  .care-stage-photo.light-arrival .care-photo-frame::after { animation: care-photo-light 1.5s ease-out both; }
  .section-arrived:not(:focus-within) { animation: section-arrival .6s ease-out both; }
  @keyframes section-arrival {
    from { opacity: .72; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes item-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  @keyframes hero-light-dissolve {
    from { opacity: .83; }
    to { opacity: 0; }
  }
  @keyframes care-photo-light {
    0%, 100% { opacity: 0; }
    36% { opacity: .56; }
  }
}
.home-flow .immediate { background: linear-gradient(118deg, #fffaf1 14%, #f7ecd9 67%, #f5e1c2); color: var(--ink); }
.home-flow .immediate .eyebrow { color: var(--accent); }
.home-flow .immediate .split > div > p:not(.eyebrow), .home-flow .situation-list p { color: var(--muted); }
.home-flow .situation-list { gap: 0; border-bottom: 1px solid #d9c7b7; }
.home-flow .situation-list details { padding-inline: 0; border: 0; border-top: 1px solid #d9c7b7; border-radius: 0; }
.home-flow .situation-list summary { min-height: 48px; padding-block: 14px; }
.home-flow .situation-list a { color: var(--accent); }
.home-flow .situation-list :focus-visible { outline-color: var(--accent); }

.care-story { background: var(--cream); border-block: 1px solid var(--border); }
.care-overview { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0 24px; margin-bottom: 24px; }
.care-overview h2 { margin-block: 9px 0; }
.care-service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.care-photo-frame { position: relative; overflow: hidden; aspect-ratio: 8 / 5; border-radius: 5px 5px 28px 5px; background: var(--sand); }
.care-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.care-photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 75% 12%, #ffe5bd78, transparent 72%); }
.care-stage-photo figcaption { margin: 5px 0 16px; font-size: .84rem; color: var(--muted); }
.care-service-list h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.care-stage-description { margin-top: 5px; color: var(--muted); }
.care-service-list .text-link, .care-overview > .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.home-flow .packages { background: var(--paper); }
.home-flow .gallery-section, .home-flow .awards { border-block: 0; }
.home-flow .awards { background: #f8f3eb; }
.site-credit { color: var(--accent-deep); text-underline-offset: .22em; }

@media (max-width: 720px) {
  .home-flow .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0; background: var(--cream); color: var(--ink); }
  .home-flow .hero-inner { order: -1; padding-block: 38px 28px; }
  .home-flow .hero h1 { font-size: clamp(2.85rem, 10vw, 4.6rem); }
  .home-flow .hero h1 em, .home-flow .hero .eyebrow, .home-flow .hero-help { color: var(--accent); }
  .home-flow .hero-intro { color: var(--muted); }
  .home-flow .hero-photo { position: relative; z-index: auto; height: clamp(210px, 67vw, 330px); }
  .home-flow .hero-photo img { object-position: 66% center; }
  .home-flow .hero-photo::after { background: linear-gradient(0deg, #211a164a, transparent 32%); }
  .care-service-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

.home-flow .listening-scene {
  background: var(--paper);
  padding-block: clamp(40px, 6vw, 74px);
}
.listening-scene .about-grid, .founder-detail .about-grid { align-items: center; }
.listening-scene .about-copy h2 { max-width: 17ch; }
.listening-scene .founder-service-photo { border-radius: 0; overflow: visible; }
.listening-scene .founder-service-photo img { height: auto; aspect-ratio: 4 / 3; border-radius: 5px 5px 52px 5px; }
.founder-service-photo figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.founder-signature { display: flex; align-items: center; gap: 13px; margin-block: 18px 7px; }
.founder-signature img { width: 66px; height: 66px; border-radius: 50%; flex: none; object-fit: cover; }
.founder-signature span { display: block; color: var(--muted); font-size: .9rem; }
.founder-portrait { width: min(100%, 225px); justify-self: center; }
.founder-portrait img { width: 100%; height: auto; border-radius: 5px 5px 38px 5px; }
.founder-portrait figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.sun-story { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding-block: 16px; border-block: 1px solid var(--border); }
.sun-story img { width: 58px; height: 58px; flex: none; }
.sun-story h3 { font-size: 1.4rem; }
.sun-story p { margin-top: 4px; color: var(--muted); }
.family-voices { background: var(--cream); }
.family-voices .shell {
  padding-block: clamp(28px, 5vw, 52px);
  border-block: 1px solid var(--border);
}
.family-voices h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); }
.family-voices p:not(.eyebrow) { color: var(--muted); margin-top: 8px; }
.family-review-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.review-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}
.family-voices .review-card-author { margin: 0; color: var(--ink); font-weight: 700; }
.review-card blockquote {
  margin: 10px 0 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.review-card-more, .review-card-source {
  align-self: flex-start;
  min-height: 44px;
}
.review-card-more {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.jotform-reviews { min-width: 0; }
.jotform-reviews:not(:empty) { margin-top: 18px; }
.jotform-reviews iframe { display: block; max-width: 100%; }
.jotform-reviews .jf-reviews-main { padding: 0 0 8px; }
.jotform-reviews .jf-reviews-header-card {
  justify-content: space-between;
  padding: 8px 0 12px;
}
.jotform-reviews .jf-reviews-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: none;
}
.jotform-reviews .jf-reviews-card-content { padding: clamp(16px, 2vw, 22px); }
.jotform-reviews :is(.jf-reviews-header-title, .jf-reviews-reviewer-name, .jf-reviews-content-text) {
  color: var(--ink);
}
.jotform-reviews :is(.jf-reviews-count, .jf-reviews-minimal-rating-summary, .jf-reviews-review-date) {
  color: var(--muted);
}
.jotform-reviews .jf-reviews-read-more { color: var(--accent); }
.jotform-reviews .jf-reviews-read-more:focus-visible { outline-offset: 2px; }
.jotform-reviews .jf-reviews-profile { margin-top: 14px; }
.jotform-reviews .jf-reviews-footer { margin: 10px 0 0; }
.jotform-reviews .jf-reviews-pagination-bullet.jf-google-reviews-is-active { background: var(--accent); }
@media (max-width: 640px) {
  .jotform-reviews .jf-reviews-header-card { justify-content: center; }
}
.review-reader {
  width: min(38rem, calc(100% - 32px));
  max-height: min(36rem, calc(100dvh - 56px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.review-reader[open] { display: flex; flex-direction: column; }
.review-reader::backdrop { background: #2419129c; }
.review-reader header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.review-reader h3 { margin: 0; font-size: 1.35rem; }
.review-reader button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 5px; background: var(--cream); color: var(--accent); cursor: pointer; }
.review-reader-scroll { min-height: 0; padding: 14px 18px 18px; overflow: auto; overscroll-behavior: contain; }
.review-reader .review-reader-author { margin-top: 0; color: var(--ink); font-weight: 700; }
.review-reader .review-reader-text { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.review-reader-source { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  .review-reader { max-height: calc(100dvh - 152px - 2 * env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .founder-portrait { justify-self: start; }
  .home-flow .package-grid, .catalogue .package-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .package-card-copy p { font-size: 1rem; }
  .package-card-actions .text-link { font-size: .93rem; }
  .home-flow .package-photo, .catalogue .package-photo { aspect-ratio: 16 / 9; }
}

.hero-help { margin-top: 16px; }
.hero-paths { width: fit-content; margin-top: 14px; }
.hero-paths .hero-help { margin-top: 0; }
.hero-paths > div { display: flex; flex-wrap: wrap; column-gap: 24px; border-top: 1px solid #ffdfbc50; }
.package-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.situation-list { display: grid; gap: 10px; }
.situation-list details { border: 1px solid #e8d6c464; border-radius: 8px; padding: 0 16px; }
.situation-list summary { cursor: pointer; font-weight: 650; padding: 13px 0; }
.situation-list p { color: #eddfd5; }
.situation-list a { display: block; width: fit-content; color: #ffdfb4; margin: 10px 0 12px; }
.situation-list :focus-visible { outline-color: #ffdfb4; }
.compare-notice { padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--sand); margin-bottom: 22px; }
.compare-notice p + p { margin-top: 6px; }
.compare-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-bottom: 24px; }
.compare-picker label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
.compare-picker select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #cbb6a6; border-radius: 5px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
.compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--paper); }
.compare-table th, .compare-table td { border: 1px solid var(--border); text-align: left; padding: 16px; vertical-align: top; }
.compare-table th[scope="row"], .compare-table thead th:first-child { background: var(--cream); width: 16%; }
.compare-table h2, .compare-card h2 { font-size: 1.6rem; margin: 12px 0 8px; }
.compare-image { aspect-ratio: 3/2; overflow: hidden; border-radius: 7px; background: var(--sand); }
.compare-image img { width: 100%; height: 100%; object-fit: cover; }
.compare-image-link { display: block; }
.compare-table .button, .compare-card .button { margin-top: 8px; }
.compare-cards { display: none; }
.compare-card { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: var(--paper); }
.compare-card dl { margin: 12px 0; }
.compare-card dt { font-weight: 650; margin-top: 12px; }
.compare-card dd { margin: 3px 0 0; }
.team-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 15px; }

.situation-list summary { padding-block: 14px; }
.situation-list summary strong { font-weight: 700; }
.situation-list summary span { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }
.situation-list p a { display: inline; margin: 0; }
.situation-list details > a { min-height: 26px; }
.home-flow .situation-list .situation-compare {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--accent-deep);
}
.package-card-actions { display: flex; flex-wrap: wrap; gap: 0 14px; }
.package-card-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
.package-cost { padding: clamp(16px, 3vw, 28px); background: var(--cream); border: 1px solid var(--border); border-radius: 8px; }
.package-cost > p + p { margin-top: 10px; }
.package-cost > h3 { margin-top: 18px; }
.package-cost > .button { margin-top: 14px; }
.inner-hero .action-group > .text-link { min-height: 44px; align-items: center; }
.family-review-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px 20px;
}
.compare-table caption { text-align: left; color: var(--muted); margin-bottom: 10px; }
.compare-table thead h2, .compare-card h2 { margin-top: 0; }
.compare-table ul, .compare-card ul { margin: 0; padding-inline-start: 1.2em; }
.compare-table li + li, .compare-card li + li { margin-top: 5px; }
.compare-table .button { text-align: left; }
.compare-card dt { border-top: 1px solid var(--border); padding-top: 9px; }
.office-address { font-style: normal; }
.office-address span { display: block; }
.detail-highlights .office-address { margin-top: 8px; }
.utility a { min-height: 32px; }
.utility a:focus-visible, .footer a:focus-visible { outline-color: var(--accent-deep); }
.hero-help:focus-visible, .hero-whatsapp:focus-visible { outline-color: #e3b17c; }
@media (width > 720px) {
  .home-flow .hero .primary:focus-visible { outline-color: #e3b17c; }
}
.home-flow .hero-whatsapp { color: #fff9ef; background: #352821; border-color: #f0d8be; }
.home-flow .hero-whatsapp:hover { background: #594035; }
.home-flow .hero-help { min-height: 44px; align-items: center; }
.footer-grid > div > a:not(.brand, .button) { min-height: 26px; }
.footer-bottom { row-gap: 8px; }
.contact-launcher, .contact-options { display: none; }

@supports selector(:popover-open) {
  @media (width > 640px) {
    body {
      --contact-edge: max(20px, env(safe-area-inset-right, 0px));
      --contact-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    }
    .contact-launcher {
      --contact-launcher-bg: var(--dark);
      position: fixed;
      z-index: 5;
      right: var(--contact-edge);
      bottom: var(--contact-bottom);
      display: grid;
      width: 56px;
      height: 56px;
      place-items: center;
      border: 1px solid #ffffff55;
      border-radius: 50%;
      background: var(--contact-launcher-bg);
      color: var(--paper);
      box-shadow: 0 4px 16px #392b2833;
      cursor: pointer;
    }
    .contact-launcher:hover { --contact-launcher-bg: var(--accent-deep); }
    .contact-options:popover-open {
      position: fixed;
      inset: auto var(--contact-edge) calc(var(--contact-bottom) + 68px) auto;
      display: grid;
      gap: 8px;
      width: 17rem;
      max-height: calc(100dvh - var(--contact-bottom) - 80px);
      overflow: auto;
      margin: 0;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--paper);
      color: var(--ink);
      box-shadow: 0 8px 28px #392b282b;
    }
    .contact-options p + p { color: var(--muted); font-size: .85rem; }
    .contact-options .button { justify-content: center; }
  }
}

@media (max-width: 1100px) {
  .header:not(.menu-ready) .header-inner { display: block; padding-block: 10px; }
  .header:not(.menu-ready) .menu-toggle { display: none; }
  .header:not(.menu-ready) .nav { display: flex; position: static; padding-inline: 0; box-shadow: none; }
  .nav.nav-open { max-height: 65dvh; overflow-y: auto; }
  .nav > a { min-height: 44px; }
}
@media (max-width: 900px) {
  .compare-table { display: none; }
  .compare-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 720px) {
  .hero-paths > div { border-color: var(--border); }
  .hero-help:focus-visible { outline-color: var(--accent-deep); }
}
@media (max-width: 640px) {
  .compare-picker, .compare-cards { grid-template-columns: 1fr; }
  .mobile-contact a:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
  .package-card-actions .text-link { font-size: .86rem; }
}
