.pilot-context {

  background: #fff3ef;

  border-bottom: 1px solid #e5d6da;

  padding: 12px 24px;

  font:

    500 13px/1.65 system-ui,

    sans-serif;

  text-align: center;

  color: #4e4369;

}

/* The supplied .form grid must not reveal an unconnected hidden form. */

#contactForm[hidden] {

  display: none !important;

}

.pilot-context a {

  font-weight: 700;

  color: #782344;

  text-decoration: underline;

  text-underline-offset: 3px;

  white-space: nowrap;

}

.concept-note {

  display: block;

  padding: 5px 8px;

  font:

    500 11px/1.5 system-ui,

    sans-serif;

  color: #5d5270;

  background: #faf8ff;

  border-radius: 6px;

  margin-top: 6px;

}

.current-scope {
  margin: 14px 0 0;
  color: #514b68;
  font: 500 12px/1.7 system-ui, sans-serif;
}

.current-scope strong {
  color: #782344;
  font-weight: 750;
}

.current-scope span {
  margin: 0 7px;
  color: #aaa2bc;
}

.btn {

  min-height: 48px;

  max-width: 100%;

  white-space: normal;

  overflow-wrap: anywhere;

}

.btns {

  flex-wrap: wrap;

  gap: 12px;

}

@media (max-width: 560px) {

  .pilot-context {

    padding: 10px 16px;

    text-align: left;

  }

  .btns .btn {

    min-height: 48px;

  }

}



/* Preserve supplied site design; normalize only actionable controls. */

.btn.primary {

  color: #fff;

  background: #9e3157;

}

.site-header .icon-btn,

.site-header .wp-btn-visible,

.site-header .hamb {

  min-width: 48px;

  min-height: 48px;

  height: auto;

  flex: none;

  touch-action: manipulation;

}

.site-header .actions {

  align-items: center;

}

@media (max-width: 560px) {

  .site-header {

    grid-template-columns: minmax(0, 1fr) auto;

    gap: 8px;

    padding-inline: 12px;

    min-height: 72px;

    height: auto;

  }

  .site-header .brand {

    min-width: 0;

  }

  .site-header .brand img {

    width: clamp(80px, 26vw, 120px);

    max-width: 100%;

  }

}

@media (prefers-reduced-motion: reduce) {

  .btn,

  .site-header,

  #app,

  .hero-art img,

  .hero-scene,

  .marquee-track,

  .pointer-glow {

    animation: none !important;

    transition: none !important;

  }

  html {

    scroll-behavior: auto;

  }

}

.btn {

  min-width: 0;

  justify-content: center;

  text-align: center;

  touch-action: manipulation;

}

.btn svg {

  flex: none;

}

.btns {

  align-items: stretch;

}

.btns .btn {

  display: inline-flex;

  align-items: center;

}

.hero .btns [data-site-web],
.hero .btns .site-install {
  justify-content: center;
  gap: 9px;
}

.hero .btns .site-install[hidden] {
  display: none;
}

.hero .btns .site-install svg,
.hero .btns [data-site-web] svg {
  flex: none;
}

h1,

h2 {

  overflow-wrap: anywhere;

}

@media (max-width: 560px) {

  .btns > .btn {

    min-width: 0;

    max-width: 100%;

    white-space: normal;

  }

  .pilot-context a {

    white-space: normal;

  }

}


/* 2026-11-09: supplied FAMPET visual language, adapted to live routes. */
:root { --rebrand-cream:#fff8f1; --rebrand-ink:#3a2732; --rebrand-rose:#c83d6c; --rebrand-line:#e5d6da; }
#mainContent :is(h2,h3)[tabindex="-1"]:focus-visible { outline:2px solid var(--rebrand-rose); outline-offset:4px; }
.rebrand-wordmark { display:inline-flex; align-items:center; color:var(--rebrand-ink); font:900 32px/1 ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif; letter-spacing:-2px; white-space:nowrap; }
.rebrand-wordmark span { color:#ff6f9f; font-size:22px; transform:rotate(-13deg); margin:0 2px; }
.rebrand-wordmark i { color:var(--rebrand-rose); font-style:normal; }
.site-header { width:100%!important; max-width:none!important; height:94px!important; min-height:94px!important; top:0!important; border-radius:0!important; padding:0 max(48px,calc((100vw - 1280px)/2))!important; box-shadow:none!important; background:#fff8f1!important; border:0!important; border-bottom:1px solid #e5d6da80!important; }
.site-header .nav { gap:24px!important; }
.site-header .nav a { background:transparent!important; padding:12px 0!important; font-weight:650!important; }
.site-header .actions { gap:8px!important; }
.rebrand-open-app { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:10px 18px; border-radius:999px; background:var(--rebrand-rose); color:white; font-weight:750; white-space:nowrap; }
.site-header .wp-btn-visible { border-radius:999px!important; }
body[data-route="home"] .page { padding-top:94px!important; }
body[data-route="home"] .rebrand-hero { display:grid!important; grid-template-columns:1fr 1.1fr!important; gap:18px!important; align-items:center!important; min-height:min(790px,calc(100svh - 94px))!important; padding:64px 0 98px!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; overflow:visible!important; }
.rebrand-eyebrow { display:inline-block; color:var(--rebrand-ink); font-size:12px; font-weight:800; letter-spacing:.1em; line-height:1.6; }
.rebrand-hero .hero-copy { position:relative; z-index:1; }
body[data-route="home"] .rebrand-hero h1.display { position:relative; margin:24px 0 34px!important; max-width:610px!important; font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif!important; font-size:clamp(66px,7.8vw,110px)!important; line-height:.98!important; letter-spacing:-.065em!important; color:var(--rebrand-ink)!important; }
.rebrand-hero h1 .accent { color:var(--rebrand-rose)!important; -webkit-text-fill-color:currentColor!important; }
.rebrand-swoosh { position:absolute; width:62%; max-width:345px; height:auto; bottom:-27px; left:0; fill:none; stroke:#ffb57a; stroke-width:5; stroke-linecap:round; }
.rebrand-hero .lead { margin:36px 0 28px!important; color:#74616b!important; font-size:18px!important; }
.rebrand-hero .btns { align-items:center; gap:12px; }
.rebrand-hero .btn, .rebrand-identity .btn, .rebrand-vision .btn { border-radius:999px!important; padding:14px 23px!important; font-weight:750; }
.rebrand-hero .btn.primary,.rebrand-identity .btn.primary,.rebrand-vision .btn.primary { background:var(--rebrand-rose)!important; color:white!important; box-shadow:none!important; }
.rebrand-hero .btn.ghost { background:#fffefd!important; border:1px solid var(--rebrand-line)!important; color:var(--rebrand-ink)!important; }
.rebrand-text-link { display:inline-flex; align-items:center; min-height:48px; font-size:14px; font-weight:700; text-decoration:underline; text-underline-offset:5px; }
.rebrand-hero .trust-row { display:flex!important; align-items:center; gap:12px; margin-top:32px!important; color:#74616b; font-size:12px; line-height:1.5; }
.rebrand-hero .trust-row>span:first-child { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#dff3d5; color:var(--rebrand-rose); font-size:24px; }
.rebrand-hero-world { position:relative; isolation:isolate; min-width:0; }
.rebrand-hero-world img { position:relative; z-index:1; display:block; width:100%; max-width:660px; height:auto; margin:auto; }
.rebrand-hero-circle { position:absolute; z-index:0; inset:11% 7% 9%; border-radius:50%; background:#dff3d5; }
.rebrand-sticker { position:absolute; z-index:2; padding:13px 16px; border-radius:18px; background:#fffefd; box-shadow:0 9px 24px #3a27321a; color:var(--rebrand-ink); font-size:11px; line-height:1.3; transform:rotate(-7deg); }
.rebrand-sticker-top { top:9%; right:2%; background:#ffe79b; }
.rebrand-sticker-bottom { bottom:11%; left:0; transform:rotate(6deg); }
.rebrand-ribbon { background:#dff3d5; color:#3a2732; overflow:hidden; }
.rebrand-ribbon>div { display:flex; justify-content:space-around; gap:20px; max-width:1280px; margin:auto; padding:18px 24px; font-weight:800; font-size:clamp(15px,2vw,23px); }
.rebrand-journey,.rebrand-explore { padding:110px 0; }
.rebrand-section-top,.rebrand-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:38px; }
.rebrand-section-top>span:last-child,.rebrand-heading>p { color:#74616b; }
.rebrand-stories { display:grid; gap:36px; }
.rebrand-story { display:grid; grid-template-columns:.8fr 1.2fr; align-items:center; gap:clamp(30px,6vw,90px); }
.rebrand-story:nth-child(even) .rebrand-story-copy { order:2; }
.rebrand-story-copy { padding:24px 0; }
.rebrand-number { color:var(--rebrand-rose); font-weight:800; font-size:12px; letter-spacing:.1em; }
.rebrand-story h2,.rebrand-heading h2,.rebrand-identity h2,.rebrand-vision h2,.rebrand-footer h2 { font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif; color:var(--rebrand-ink); font-size:clamp(36px,4.5vw,62px); line-height:1.08; letter-spacing:-.045em; margin:18px 0; }
.rebrand-story p,.rebrand-identity p,.rebrand-vision p { max-width:48ch; color:#74616b; line-height:1.75; }
.rebrand-story a { display:inline-flex; min-height:44px; align-items:center; margin-top:15px; font-weight:750; text-decoration:underline; text-underline-offset:5px; }
.rebrand-story img { display:block; width:100%; height:auto; aspect-ratio:1586/992; object-fit:cover; border-radius:36px; }
.rebrand-explore { background:#fff0f4; }
.rebrand-heading h2 em,.rebrand-identity h2 em { font-style:normal; color:var(--rebrand-rose); }
.rebrand-service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.rebrand-service-card { display:flex; align-items:center; gap:14px; min-height:118px; padding:22px; background:#fffefd; border:1px solid var(--rebrand-line); border-radius:24px; color:var(--rebrand-ink); }
.rebrand-service-card>span:nth-child(2) { flex:1; min-width:0; }
.rebrand-service-card b,.rebrand-service-card small { display:block; }
.rebrand-service-card small { margin-top:4px; color:#74616b; line-height:1.4; }
.rebrand-service-icon { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:16px; background:#dff3d5; color:#ad315b; font-size:24px; }
.rebrand-service-card:nth-child(3n+2) .rebrand-service-icon { background:#ffe79b; }
.rebrand-service-card:nth-child(3n) .rebrand-service-icon { background:#ddd2ff; }
.rebrand-identity { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(30px,7vw,100px); padding-block:110px; }
.rebrand-identity img { display:block; width:100%; max-width:520px; border-radius:36px; }
.rebrand-identity-points { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; }
.rebrand-identity-points span { padding:9px 13px; border-radius:999px; background:#dff3d5; font-size:13px; font-weight:700; }
.rebrand-vision { display:grid; grid-template-columns:1fr 250px; align-items:center; gap:35px; margin-bottom:100px!important; padding:clamp(30px,5vw,70px)!important; border-radius:36px; background:#ddd2ff; }
.rebrand-vision .btn { margin-top:24px; }
.rebrand-book { display:flex; flex-direction:column; justify-content:space-between; min-height:260px; padding:24px; border-radius:8px 22px 22px 8px; background:#fff8f1; box-shadow:-8px 8px 0 #bca9df; transform:rotate(5deg); color:var(--rebrand-ink); }
.rebrand-book>b { color:var(--rebrand-rose); font-size:40px; }.rebrand-book strong { font-size:24px; line-height:1.1; }.rebrand-book small { font-weight:800; letter-spacing:.1em; }
.footer.rebrand-footer { padding:76px 0 28px!important; background:#3a2732!important; color:#fff8f1!important; }
.rebrand-footer-inner { display:grid; grid-template-columns:1fr 1fr; gap:55px; }
.rebrand-footer h2 { color:#fff8f1; }.rebrand-footer .rebrand-eyebrow,.rebrand-footer .rebrand-wordmark { color:#fff8f1; }
.rebrand-footer-invite .btn { background:#fff8f1; color:#3a2732; border-radius:999px; }
.rebrand-footer-note p { max-width:46ch; margin:22px 0; color:#e4d6dd; line-height:1.7; }
.rebrand-footer-note nav { display:flex; flex-wrap:wrap; gap:12px 20px; }.rebrand-footer-note nav a { min-height:44px; display:inline-flex; align-items:center; }
.rebrand-footer-legal { grid-column:1/-1; padding-top:22px; border-top:1px solid #ffffff40; color:#e4d6dd; font-size:12px; line-height:1.6; }
/* Reading surfaces retain all approved chapters and disclosures. */
body[data-route="whitepaper"] .wp-cover,body[data-route="whitepaper"] .chapter { background:#fffefd!important; border-color:#e5d6da!important; border-radius:34px!important; box-shadow:none!important; }
body[data-route="whitepaper"] .wp-toc { background:#dff3d5!important; border-color:#dff3d5!important; border-radius:24px!important; }
body[data-route="whitepaper"] .wp-toc a.active { background:#c83d6c!important; color:#fff!important; }
body[data-route="whitepaper"] .chapter-no { background:#ffe79b!important; color:#3a2732!important; }
@media(max-width:1000px) { .site-header { padding-inline:24px!important; }.rebrand-open-app { display:none; }.rebrand-service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .site-header { height:76px!important; min-height:76px!important; padding-inline:18px!important; }.rebrand-wordmark { font-size:28px; }.mobile-menu { top:76px!important; background:#fff8f1!important; }.mobile-menu a { min-height:50px; } body[data-route="home"] .page { padding-top:76px!important; } body[data-route="home"] .rebrand-hero { grid-template-columns:1fr!important; min-height:0!important; padding:50px 0 48px!important; gap:16px!important; } body[data-route="home"] .rebrand-hero h1.display { font-size:clamp(54px,12vw,76px)!important; }.rebrand-hero-world { max-width:520px; margin:auto; }.rebrand-sticker { font-size:10px; }.rebrand-ribbon>div { flex-wrap:wrap; gap:8px 20px; }.rebrand-journey,.rebrand-explore { padding:72px 0; }.rebrand-section-top,.rebrand-heading { align-items:start; flex-direction:column; gap:12px; }.rebrand-story { grid-template-columns:1fr; gap:12px; }.rebrand-story:nth-child(even) .rebrand-story-copy { order:initial; }.rebrand-story img { border-radius:24px; }.rebrand-service-grid { grid-template-columns:1fr; }.rebrand-service-card { min-height:88px; }.rebrand-identity { grid-template-columns:1fr; gap:24px; padding-block:72px; }.rebrand-identity img { max-width:400px; margin:auto; }.rebrand-vision { grid-template-columns:1fr; margin-bottom:70px!important; }.rebrand-book { max-width:210px; min-height:210px; }.rebrand-footer-inner { grid-template-columns:1fr; gap:35px; }.rebrand-footer-legal { grid-column:1; } }
@media(prefers-reduced-motion:reduce) { .rebrand-hero *, .rebrand-journey *, .rebrand-explore *, .rebrand-identity *, .rebrand-vision * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* The services introduction carries the same warm visual language as home. */
.rebrand-site-service-hero h1 { color:var(--rebrand-ink); font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif; letter-spacing:-.045em; }
.rebrand-site-service-hero .lead { max-width:48ch; }
.rebrand-site-service-hero .btn { margin-top:20px; }
.rebrand-site-service-hero img { display:block; width:100%; height:auto; aspect-ratio:1672/941; object-fit:contain; border-radius:36px; }
@media(max-width:760px) { .rebrand-site-service-hero img { border-radius:24px; } }
.rebrand-site-family { display:grid; grid-template-columns:1fr .8fr; align-items:center; gap:clamp(28px,6vw,90px); padding-block:60px 100px; }
.rebrand-site-family img { display:block; width:100%; height:auto; aspect-ratio:1672/941; object-fit:contain; border-radius:36px; }
.rebrand-site-family h2 { color:var(--rebrand-ink); font:700 clamp(36px,4.5vw,62px)/1.08 ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif; letter-spacing:-.045em; margin:18px 0; }
.rebrand-site-family p { color:#74616b; line-height:1.75; margin-bottom:24px; }
@media(max-width:760px) { .rebrand-site-family { grid-template-columns:1fr; gap:24px; padding-block:30px 72px; } .rebrand-site-family img { border-radius:24px; } }

/* The guest playroom is a small, visit-only experience. */
.rebrand-site-play { display:grid; grid-template-columns:1fr .8fr; align-items:center; gap:clamp(28px,6vw,90px); padding-block:40px 100px; }
.rebrand-site-play img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:36px; }
.rebrand-site-play h2 { color:var(--rebrand-ink); font:700 clamp(36px,4.5vw,62px)/1.08 ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif; letter-spacing:-.045em; margin:18px 0; }
.rebrand-site-play p { color:#74616b; line-height:1.75; margin-bottom:24px; }
@media(max-width:760px) { .rebrand-site-play { grid-template-columns:1fr; gap:24px; padding-block:30px 72px; } .rebrand-site-play img { border-radius:24px; } }

/* A visitor chooses whether to reveal the extra playmate. */
.rebrand-site-peek { margin-top: 18px; }
.rebrand-site-peek summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; color: #65445a; font-weight: 700; }
.rebrand-site-peek summary::before { content: '✦'; }
.rebrand-site-peek summary:focus-visible { outline: 2px solid #65445a; outline-offset: 3px; }
.rebrand-site-peek-art { max-width: 180px; }
.rebrand-site-play .rebrand-site-peek-art img { aspect-ratio: 1; object-fit: contain; border-radius: 0; animation: rebrand-site-peek-in 300ms ease-out both; }
@keyframes rebrand-site-peek-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .rebrand-site-play .rebrand-site-peek-art img { animation: none; } }
/* A quiet playmate connects the home invitation to the visit-only playroom. */
.rebrand-family-art { position: relative; min-width: 0; }
.rebrand-site-family .rebrand-family-playmate {
  position: absolute;
  right: -3%;
  bottom: -7%;
  width: 28%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 7px 8px #3a273226);
  pointer-events: none;
}
@media (max-width: 760px) {
  .rebrand-site-family .rebrand-family-playmate { right: 0; bottom: -5%; width: 30%; border-radius: 0; }
}

/* Use the same usable page width for the fixed header and the in-flow sections. */
:root { --rebrand-content-width: 1280px; --rebrand-page-gutter: 24px; }
body:is([data-route="home"],[data-route="services"],[data-route="whitepaper"]) .shell,
.rebrand-footer .rebrand-footer-inner,
.rebrand-ribbon > div {
  width: min(var(--rebrand-content-width), calc(100% - 2 * var(--rebrand-page-gutter))) !important;
}
.rebrand-ribbon > div { padding-inline: 0; }
.site-header {
  padding-inline: max(var(--rebrand-page-gutter), calc((100% - var(--rebrand-content-width)) / 2)) !important;
}
body:is([data-route="services"],[data-route="whitepaper"]) .page {
  padding-top: 94px;
}
/* Earlier generic hero rules added a second top margin to the home hero. */
body[data-route="home"] .rebrand-hero { margin-top: 0 !important; }
body[data-route="home"] .rebrand-story,
body[data-route="home"] .rebrand-identity,
body[data-route="home"] .rebrand-site-family,
body[data-route="services"] .rebrand-site-play {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body[data-route="home"] .rebrand-story { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
body[data-route="home"] .rebrand-site-family,
body[data-route="services"] .rebrand-site-play { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
body[data-route="services"] .rebrand-site-service-hero { margin-top: 24px !important; }
body[data-route="services"] .service-jump-wrap { top: 94px !important; }
/* The cover became a card in the rebrand; give its contents an actual inset. */
body[data-route="whitepaper"] .wp-cover {
  margin-top: 24px;
  margin-bottom: 28px;
  padding: clamp(28px, 4vw, 56px) !important;
  gap: clamp(24px, 3.5vw, 46px);
}

/* Switch to the existing compact navigation before desktop links collide. */
@media (min-width: 761px) and (max-width: 1000px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto !important; }
  .site-header .nav, .site-header .actions .lang { display: none; }
  .site-header .hamb { display: inline-flex; }
  .mobile-menu {
    position: fixed; z-index: 48; inset: 94px 24px auto;
    display: none; padding: 12px; border: 1px solid var(--rebrand-line);
    border-radius: 24px; background: #fff8f1; box-shadow: var(--shadow);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; min-height: 50px; padding: 15px; border-radius: 14px; font-weight: 750; }
  .mobile-menu .mobile-wp { display: flex; }
}
@media (max-width: 760px) {
  :root { --rebrand-page-gutter: 16px; }
  body:is([data-route="services"],[data-route="whitepaper"]) .page { padding-top: 76px; }
  body[data-route="home"] .rebrand-story,
  body[data-route="home"] .rebrand-identity,
  body[data-route="home"] .rebrand-site-family,
  body[data-route="services"] .rebrand-site-play { grid-template-columns: minmax(0, 1fr); }
  body[data-route="services"] .rebrand-site-service-hero { margin-top: 16px !important; }
  body[data-route="services"] .service-jump-wrap { top: 76px !important; }
  body[data-route="services"] .story[id] { scroll-margin-top: 142px !important; }
  body[data-route="whitepaper"] .wp-cover { margin-top: 16px; margin-bottom: 20px; padding: 24px !important; }
}

/* Reading progress paints without resizing the bar at every scroll event. */
#globalProgress i,
#wpProgress {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Service categories: visible scroll affordance and comfortable touch targets. */
body[data-route="services"] .service-jump {
  scroll-snap-type: x proximity;
  scrollbar-width: thin !important;
  scrollbar-color: #b89ca8 transparent;
}
body[data-route="services"] .service-jump::-webkit-scrollbar { display: block !important; height: 4px; }
body[data-route="services"] .service-jump::-webkit-scrollbar-thumb { background: #b89ca8; border-radius: 4px; }
body[data-route="services"] .service-jump a { min-height: 44px !important; scroll-snap-align: start; }
body[data-route="services"] .service-jump a:focus-visible { outline: 2px solid #782344; outline-offset: -2px; }
body[data-route="services"] .service-jump a span svg { width: 16px; height: 16px; }
body[data-route="services"] .service-jump a[aria-current="location"] {
  background: #fffefd !important;
  border-color: #c28a9f !important;
  color: #782344 !important;
}


/* Rebrand continuity for the public service journey and whitepaper. */
body:is([data-route="home"],[data-route="services"],[data-route="whitepaper"]) {
  background: var(--rebrand-cream);
  color: var(--rebrand-ink);
}
body[data-route="services"] .rebrand-site-service-hero {
  background: #fffefd !important;
  border-color: var(--rebrand-line) !important;
  box-shadow: none !important;
}
body[data-route="services"] .rebrand-site-service-hero .lead { color: #654f5b !important; }
body[data-route="services"] .rebrand-site-service-hero .btn { margin-top: 0; }
body[data-route="services"] .service-jump-wrap {
  background: rgba(255, 248, 241, .97) !important;
  border-color: var(--rebrand-line) !important;
}
body[data-route="services"] .service-jump a { color: #563b49 !important; }
body[data-route="services"] .service-jump a:hover {
  background: #fffefd !important;
  color: #782344 !important;
  box-shadow: none !important;
}
body[data-route="services"] .service-jump a span { background: #f8e2e9 !important; }
body[data-route="services"] .service-story-stack .story {
  background: #fffefd !important;
  border-color: var(--rebrand-line) !important;
  box-shadow: none !important;
}
body[data-route="services"] .service-story-stack .story .copy h3 { color: var(--rebrand-ink) !important; }
body[data-route="services"] .service-story-stack .story .copy .desc { color: #654f5b !important; }
body[data-route="services"] .service-story-stack .story .num { color: #9e3157 !important; }
body[data-route="services"] .service-story-action {
  min-height: 48px;
  max-width: 100%;
  margin-top: 16px;
  gap: 8px;
  text-align: center;
  color: #782344 !important;
  border-color: var(--rebrand-line) !important;
  background: #fff8f8 !important;
}

/* Give chapter labels their own space, instead of overlaying the heading. */
body[data-route="whitepaper"] .chapter-no {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 10px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1;
  opacity: 1;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
body[data-route="whitepaper"] .wp-toc { top: 110px !important; }
body[data-route="whitepaper"] .wp-toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #49363f;
  font-weight: 650;
}
body[data-route="whitepaper"] .wp-toc a.active { transform: none; }
body[data-route="whitepaper"] .wp-toc a.active::before { display: none; }
body[data-route="whitepaper"] .wp-toc a:not(.active):hover { background: #fffefd; color: #782344; }

/* Focus indicators are visible on both the cream and coloured surfaces. */
body:is([data-route="home"],[data-route="services"],[data-route="whitepaper"]) :is(a, button, summary):focus-visible {
  outline: 3px solid #782344;
  outline-offset: 3px;
}
.rebrand-service-card:hover { border-color: #c28a9f; background: #fff8f8; }
.rebrand-service-card:focus-visible { outline-offset: -4px !important; }
@media (max-width: 1180px) {
  body[data-route="whitepaper"] .wp-toc { top: 94px !important; }
}
@media (max-width: 760px) {
  body[data-route="whitepaper"] .wp-toc { top: 76px !important; }
  body[data-route="whitepaper"] .chapter { border-radius: 24px !important; }
}

/* Carry the public-site palette and content alignment through the remaining routes. */
body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) {
  background: var(--rebrand-cream);
  color: var(--rebrand-ink);
}
body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) .shell {
  width: min(var(--rebrand-content-width), calc(100% - 2 * var(--rebrand-page-gutter))) !important;
}
body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) .page { padding-top: 94px; }
body:is([data-route="web3"],[data-route="roadmap"]) .page-hero,
body[data-route="news"] main.page > section.shell:first-child,
body[data-route="contact"] .contact-side {
  background: #fffefd !important;
  border: 1px solid var(--rebrand-line) !important;
  box-shadow: none !important;
}
body:is([data-route="web3"],[data-route="roadmap"]) .page-hero { margin-top: 24px !important; }
body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) :is(h1,h2,h3) { color: var(--rebrand-ink); }
body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) :is(.lead,.section-head p) { color: #654f5b !important; }
body[data-route="web3"] .page-hero .gradient-text { color: var(--rebrand-rose) !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) :is(.eyebrow,.cat,.date) { color: #9e3157 !important; }
body[data-route="roadmap"] .road-item,
body[data-route="news"] .news-row,
body[data-route="web3"] :is(.role-card,.arch-card,.green-card,.flow-step,.web3-product-card),
body[data-route="contact"] :is(.contact-card,.form) {
  background: #fffefd !important;
  border-color: var(--rebrand-line) !important;
  box-shadow: none !important;
}
body:is([data-route="web3"],[data-route="roadmap"],[data-route="contact"]) .notice {
  background: #fff0f4 !important;
  border-color: var(--rebrand-line) !important;
  color: var(--rebrand-ink) !important;
}
body[data-route="contact"] .btn.ghost {
  border: 1px solid var(--rebrand-line) !important;
  border-radius: 999px !important;
  background: #fffefd !important;
  color: #782344 !important;
}
body[data-route="news"] .news-copy .read { display: inline-flex; align-items: center; min-height: 44px; color: #782344; }
body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) :is(a,button,summary,input,select,textarea):focus-visible {
  outline: 3px solid #782344;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  body:is([data-route="web3"],[data-route="roadmap"],[data-route="news"],[data-route="contact"]) .page { padding-top: 76px; }
  body:is([data-route="web3"],[data-route="roadmap"]) .page-hero { margin-top: 16px !important; }
  body[data-route="news"] main.page > section.shell:first-child { margin-top: 16px !important; padding: 24px !important; border-radius: 24px !important; }
  body[data-route="contact"] .contact-side { padding: 24px !important; border-radius: 24px !important; }
}

/* Service previews are also direct paths into the corresponding experience. */
body[data-route="services"] .service-product-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: inherit; }
body[data-route="services"] .service-product-link:focus-visible { outline: 3px solid #782344; outline-offset: 3px; }
body[data-route="services"] .service-product-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #782344; font-weight: 750; }
body[data-route="services"] .service-product-link:hover .service-product-open { text-decoration: underline; text-underline-offset: 4px; }

/* A lightweight entry to the current pet-video experience. */
.rebrand-shortform { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 5vw, 72px); margin-block: clamp(56px, 8vw, 112px); }
.rebrand-shortform-copy h2 { margin: 14px 0; color: var(--rebrand-ink); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.04em; }
.rebrand-shortform-copy p { max-width: 30rem; color: #654f5b; line-height: 1.65; }
.rebrand-shortform-copy .btns { margin-top: 24px; }
.rebrand-shortform img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; border-radius: 28px; }
@media (max-width: 760px) { .rebrand-shortform { grid-template-columns: minmax(0, 1fr); gap: 24px; } .rebrand-shortform img { border-radius: 20px; } }

/* A shared path from the public story to the family's records and album. */
.rebrand-moments { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); align-items:center; gap:clamp(28px,6vw,90px); padding-block:40px 100px; }
.rebrand-moments-art img { display:block; width:100%; height:auto; aspect-ratio:1586/992; object-fit:contain; border-radius:36px; }
.rebrand-moments h2 { color:var(--rebrand-ink); font:700 clamp(36px,4.5vw,62px)/1.08 ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif; letter-spacing:-.045em; margin:18px 0; }
.rebrand-moments p { color:#654f5b; line-height:1.75; margin-bottom:24px; }
.rebrand-moments-links { display:flex; flex-wrap:wrap; gap:12px; }
.rebrand-moments-links a:focus-visible { outline:2px solid #782344; outline-offset:3px; }
@media(max-width:760px) { .rebrand-moments { grid-template-columns:minmax(0,1fr); gap:24px; padding-block:30px 72px; } .rebrand-moments-art img { aspect-ratio:1672/941; border-radius:24px; } }

/* The original social illustration complements the product preview without
   covering its controls or placing translated copy inside the artwork. */
.rebrand-shortform-art { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,.72fr); align-items:end; gap:12px; }
.rebrand-shortform-art img:last-child { margin-bottom:clamp(16px,3vw,42px); }
.service-shorts-scene { display:block; width:min(100%,360px); height:auto; margin:20px 0; border-radius:20px; }
@media(max-width:760px) {
  .rebrand-shortform-art { gap:8px; }
  .rebrand-shortform-art img:last-child { margin-bottom:16px; }
  .service-shorts-scene { width:100%; }
}

/* A second family scene supports the profile story without replacing the care illustration. */
.rebrand-site-family .family-profile-scene { width: 62%; margin: 12px 0 0 auto; border-radius: 20px; }
.service-family-scene { display: block; width: min(100%, 360px); height: auto; margin: 16px 0; border-radius: 20px; }
.service-memory-keepsake { display: block; width: clamp(88px, 11vw, 132px); height: auto; margin: 12px 0 4px; }
/* Keep the two destinations together and easy to tap on narrow screens. */
.rebrand-moments-links { align-items: center; }
.rebrand-moments-links .btn { min-height: 48px; }
@media (max-width: 380px) {
  .rebrand-moments-links .btn { flex: 1 1 auto; }
}

/* Keep public discovery cards and service stories on the same calm surface.
   The existing care and journal artwork stays in its original section. */
body[data-route="home"] .rebrand-service-card {
  min-width: 0;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
body[data-route="home"] .rebrand-service-card > span:nth-child(2) { overflow-wrap: anywhere; }
body[data-route="services"] .service-story-stack .story .copy { gap: 4px; }
body[data-route="services"] .service-story-stack .story .copy h3,
body[data-route="services"] .service-story-stack .story .copy .desc { overflow-wrap: anywhere; }
body[data-route="services"] .service-story-action { align-self: flex-start; }
@media (min-width: 761px) and (max-width: 1050px) {
  body[data-route="home"] .rebrand-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body[data-route="home"] .rebrand-service-card { padding: 16px; }
  body[data-route="services"] .service-story-action { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-route="home"] .rebrand-service-card { transition: none; }
}

.mobile-menu a[aria-current="page"] { color: var(--rebrand-rose); background: #fce9ee; font-weight: 800; }

/* Keep every compact-menu destination reachable in short or zoomed windows. */
@media (max-width: 1000px) {
  .mobile-menu {
    max-height: calc(100vh - 110px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 110px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 760px) {
  .mobile-menu {
    max-height: calc(100vh - 92px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 92px - env(safe-area-inset-bottom, 0px));
  }
}

