/* Authenticated home family-perspective experience. */
.home-focal-experience {
  --home-content-section-gap: var(--kv-section-gap, var(--landing-section-gap, clamp(0.82rem, 1.8vw, 1.12rem)));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(390px, 2fr) minmax(520px, 3fr);
  column-gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  width: var(--kv-auth-home-section-rail, min(1240px, calc(100% - 64px)));
  margin: 1.25rem auto var(--home-content-section-gap);
  padding: clamp(1.45rem, 2.4vw, 2rem);
  overflow: visible;
  border: 1px solid rgba(193, 151, 82, 0.42);
  border-radius: clamp(1.35rem, 2.4vw, 1.8rem);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.88), transparent 28rem),
    linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(247, 235, 214, 0.96)),
    url('/static/img/parchment-bg.webp') center / cover repeat;
  box-shadow:
    0 18px 38px rgba(71, 42, 18, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 0 0.42rem rgba(255, 248, 231, 0.22);
}

.home-family-controls {
  --home-family-control-max-width: 21rem;
  display: contents;
}

.home-focal-intro {
  --home-focal-section-gap: clamp(0.96rem, 1.08vw, 1.16rem);
  position: relative;
  z-index: 5;
  align-self: center;
  width: 100%;
  min-width: 0;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.35rem, 2.2vw, 1.8rem) clamp(0.75rem, 1.5vw, 1rem) 0;
  border-right: 1px solid rgba(176, 125, 38, 0.3);
  color: #352318;
}

.home-family-page-heading {
  display: grid;
  justify-items: center;
  width: var(--kv-auth-home-section-rail, min(100%, 86rem));
  margin: clamp(0.72rem, 1.25vw, 1rem) auto clamp(0.46rem, 0.8vw, 0.68rem);
  color: #74491f;
  text-align: center;
  scroll-margin-top: calc(var(--auth-workspace-topbar-height, var(--auth-shell-topbar-height, 4.3rem)) + 0.75rem);
}
.home-family-page-heading__title {
  max-width: 100%;
  margin: 0;
  color: inherit;
  font: 600 clamp(2.25rem, 2.55vw, 2.5rem)/1 var(--font-display, "Cormorant Garamond", Georgia, serif);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.home-family-page-heading__rule {
  position: relative;
  display: block;
  width: min(14rem, 58%);
  height: 0.62rem;
  margin-top: 0.26rem;
}

.home-family-page-heading__rule::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 129, 48, 0.62), transparent);
  transform: translateY(-50%);
}

.home-family-page-heading__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid rgba(183, 129, 48, 0.7);
  background: #fbf5e9;
  box-shadow: 0 0 0 0.15rem rgba(251, 245, 233, 0.76);
  transform: translate(-50%, -50%) rotate(45deg);
}
.home-family-page-heading--mobile {
  display: none;
}

.home-family-page-heading--desktop {
  width: 100%;
  margin: 0 auto clamp(0.24rem, 0.45vw, 0.4rem);
}

.focal-person-selector__inline-label {
  display: none;
}

.home-starter-preview-control {
  position: relative;
  z-index: 20;
  width: 100%;
  min-width: 0;
}

.home-focal-selector-control {
  position: relative;
  z-index: 12;
  width: 100%;
  min-width: 0;
}

.home-focal-selector-slot {
  width: 100%;
}

.home-focal-selector-slot:empty {
  display: none;
}

.home-focal-selector-row {
  width: 100%;
  min-width: 0;
}

/* Shared utility labels remain independent of the retired snapshot-card UI. */
.focal-person-selector__label,
.home-family-view-switch__label,
.kinvella-onboarding-panel--home-compact .kinvella-onboarding-panel__eyebrow {
  color: #9b681f;
  font: 800 0.62rem/1.1 var(--font-sans, Inter, system-ui, sans-serif);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-welcome-cta__label--mobile {
  display: none;
}

/* The hero has one restrained secondary action; onboarding owns the primary add action. */
body.authenticated-home .home-focal-experience .home-welcome-cta {
  width: fit-content !important;
  max-width: calc(100% - 1rem) !important;
  min-width: 0 !important;
  height: clamp(2.65rem, 7.6vw, 3rem) !important;
  min-height: 0 !important;
  padding-inline: clamp(1.1rem, 1.7vw, 1.4rem) !important;
  white-space: nowrap;
  box-sizing: border-box !important;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease !important;
}

body.authenticated-home .home-focal-experience .home-welcome-cta__icon {
  color: inherit !important;
  display: block;
  width: 1.24em;
  height: 1.24em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-welcome-cta__return-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.6rem;
  color: inherit;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

body.authenticated-home .home-focal-experience .home-welcome-cta__return-icon svg {
  color: inherit !important;
  stroke: currentColor !important;
}

.home-welcome-actions {
  display: grid;
  justify-items: center;
}

body.authenticated-home .home-focal-experience .home-welcome-cta:hover,
body.authenticated-home .home-focal-experience .home-welcome-cta:focus-visible {
  transform: translateY(-1px);
}

.focal-person-selector {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.58rem;
  overflow: visible;
  border: 0;
  border-radius: 1.22rem;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.focal-person-selector__label {
  display: block;
  margin: 0.08rem 0.72rem 0.48rem;
}

.focal-person-selector__trigger {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 62px;
  padding: 0.45rem 0.68rem 0.45rem 0.48rem;
  border: 1px solid rgba(185, 130, 43, 0.28);
  border-radius: 0.98rem;
  color: inherit;
  background: rgba(255, 252, 245, 0.8);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.focal-person-selector__trigger:hover,
.focal-person-selector__trigger:focus-visible,
.focal-person-selector.is-open .focal-person-selector__trigger {
  border-color: rgba(176, 119, 29, 0.68);
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 0 0 3px rgba(196, 146, 58, 0.11);
  outline: none;
}

.focal-person-selector__portrait,
.focal-person-selector__option-portrait {
  display: block;
  overflow: hidden;
  border: 2px solid #c59a46;
  border-radius: 50%;
  background: rgba(242, 229, 204, 0.9);
  box-sizing: border-box;
}

.focal-person-selector__portrait {
  width: 48px;
  aspect-ratio: 1;
}

.focal-person-selector__portrait img,
.focal-person-selector__option-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.focal-person-selector__copy,
.focal-person-selector__option-copy {
  display: grid;
  align-content: center;
  gap: 0.18rem;
  min-width: 0;
}

.focal-person-selector__name,
.focal-person-selector__meta,
.focal-person-selector__option-copy strong,
.focal-person-selector__option-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focal-person-selector__name {
  color: #291b12;
  font: 600 1.08rem/1.05 var(--font-display, Georgia, serif);
}

.focal-person-selector__meta {
  color: #6c594b;
  font-size: 0.7rem;
  line-height: 1.1;
}

.focal-person-selector__chevron {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
}

.focal-person-selector__chevron::before {
  content: "";
  position: absolute;
  inset: 0.1rem 0.15rem 0.25rem;
  border-right: 2px solid #9a671d;
  border-bottom: 2px solid #9a671d;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.focal-person-selector.is-open .focal-person-selector__chevron::before {
  transform: translateY(0.18rem) rotate(225deg);
}

.focal-person-selector__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Perspective choices open toward the hero content from both responsive placements. */
.home-focal-experience:has(.focal-person-selector.is-open) {
  z-index: 3305;
}

body.authenticated-home .home-focal-experience .focal-person-selector.is-open {
  z-index: 3310;
}

body.authenticated-home .home-focal-experience .focal-person-selector__menu {
  top: calc(100% + 0.45rem);
  bottom: auto;
  z-index: 5000;
  max-height: min(24rem, calc(100vh - var(--topbar-safe-space, 5.5rem) - 2rem));
}

.focal-person-selector__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  bottom: auto;
  z-index: 40;
  display: grid;
  gap: 0.28rem;
  max-height: min(24rem, 62vh);
  padding: 0.46rem;
  overflow: auto;
  border: 1px solid rgba(181, 126, 39, 0.48);
  border-radius: 1rem;
  background: rgba(255, 252, 244, 0.99);
  box-shadow: 0 1.15rem 2.6rem rgba(64, 38, 15, 0.2), inset 0 1px rgba(255,255,255,.9);
}

.focal-person-selector__menu[hidden] { display: none !important; }

.focal-person-selector__menu--overlay {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 12000 !important;
  transform: none !important;
}


.focal-person-selector__option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.62rem;
  width: 100%;
  min-height: 52px;
  padding: 0.38rem 0.5rem;
  border: 1px solid rgba(184, 132, 48, 0.24);
  border-radius: 0.78rem;
  color: #332117;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.focal-person-selector__option:hover,
.focal-person-selector__option:focus-visible {
  border-color: rgba(185, 130, 43, 0.28);
  background: rgba(245, 229, 198, 0.5);
  outline: none;
}

.focal-person-selector__option.is-selected {
  border-color: rgba(177, 118, 25, 0.48);
  background: linear-gradient(90deg, rgba(242, 216, 158, 0.58), rgba(255, 250, 239, 0.72));
}

.focal-person-selector__option-portrait {
  width: 40px;
  aspect-ratio: 1;
}

.focal-person-selector__option-copy strong {
  color: #2d1d13;
  font: 600 0.96rem/1.05 var(--font-display, Georgia, serif);
}

.focal-person-selector__option-copy small {
  color: #705d4f;
  font-size: 0.67rem;
}

.focal-person-selector__option-check {
  color: #9c681e;
  font-weight: 900;
  opacity: 0;
}
.focal-person-selector__option.is-selected .focal-person-selector__option-check { opacity: 1; }

.focal-person-selector__status {
  display: block;
  min-height: 0;
  margin: 0.28rem 0.7rem 0;
  color: #8a6429;
  font-size: 0.62rem;
  line-height: 1.2;
}
.focal-person-selector__status:empty { display: none; }

.focal-person-selector.is-saving {
  pointer-events: none;
}

body.is-perspective-updating .focal-person-selector__trigger {
  cursor: progress;
}

/* Perspective changes replace only the affected server-rendered regions after
   every incoming portrait has decoded. The short entrance confirms the update
   without dimming, collapsing, or repainting the rest of the page. */
body.landing-page [data-perspective-region].is-perspective-entering {
  animation: kinvella-perspective-region-enter 190ms cubic-bezier(0.22, 0.72, 0.28, 1) both;
}

@keyframes kinvella-perspective-region-enter {
  from {
    opacity: 0.88;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.landing-page [data-perspective-region].is-perspective-entering {
    animation: none;
  }
}

.home-focal-hero-column {
  grid-column: 2;
  min-width: 0;
}

.home-focal-balance {
  display: none;
}

/* Home family-view switch is intentionally non-destructive: it lets users compare
   the current family with their original starter family without restoring records. */
.home-family-view-switch {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  margin: 0.5rem 0 0;
  padding-top: 0;
  border-top: 0;
  box-sizing: border-box;
}

.home-family-view-switch__label,
.kinvella-onboarding-panel--home-compact .kinvella-onboarding-panel__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.home-family-view-switch__label {
  position: relative;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.28rem 0.5rem 0.28rem;
  text-align: center;
}

.home-family-view-switch__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2.5rem;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, rgba(181, 138, 69, 0.35), transparent);
  pointer-events: none;
}

.home-family-view-switch__control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem 0.4rem;
  width: 100%;
  max-width: var(--home-family-control-max-width);
  padding: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, #e4d7c4);
  border-radius: 1rem;
  background: #fbf7ef;
  box-shadow: inset 0 1px 0 #fffdf8, 0 0.2rem 0.65rem rgba(67, 43, 22, 0.04);
  box-sizing: border-box;
}

.home-family-view-switch__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(184, 132, 48, 0.24);
  border-radius: 0.75rem;
  color: #584735;
  font: 650 0.75rem/1.2 var(--font-sans, Inter, system-ui, sans-serif);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.home-family-view-switch__icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  color: inherit;
  background: transparent;
}

.home-family-view-switch__icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  color: inherit !important;
  fill: none;
  stroke: currentColor !important;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-family-view-switch__option:hover {
  border-color: color-mix(in srgb, var(--gold) 28%, transparent);
  background: #f4ecde;
  color: var(--ink);
}

.home-family-view-switch__option.is-active {
  border-color: #9c7537;
  background: linear-gradient(180deg, #3a281b, #281a10);
  box-shadow: 0 0.15rem 0.4rem rgba(54, 31, 13, 0.12), inset 0 1px 0 rgba(255, 236, 174, 0.12);
  color: #f7dfa0;
}

.home-family-view-switch__option:focus-visible {
  outline: 2px solid #8a611f;
  outline-offset: 2px;
}

.home-family-view-switch__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0.55rem;
  width: 100%;
  max-width: 21rem;
  border: 1px solid rgba(111, 136, 111, 0.22);
  border-radius: 0.6rem;
  color: #435747;
  background: linear-gradient(110deg, #edf2e8, #f7f7ef);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
  font: 400 clamp(0.65rem, 2.9vw, 0.74rem)/1.3 var(--font-sans, Inter, system-ui, sans-serif);
  white-space: nowrap;
  box-sizing: border-box;
}

.home-family-view-switch__note-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #435747;
  font-size: inherit;
  font-weight: 650;
  line-height: 1.2;
}

.home-family-view-switch__note-copy {
  margin: 0;
  font: inherit;
  color: inherit;
  white-space: nowrap;
}

.home-family-view-switch__note-copy::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
  border-radius: 50%;
  background: #9caa8c;
}

.home-family-view-switch__note svg {
  display: block;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: inherit !important;
  fill: none;
  stroke: currentColor !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-welcome-portrait--main {
  position: relative;
}

.home-welcome-focal-badge {
  position: absolute;
  left: 50%;
  bottom: -10px;
  z-index: 4;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border: 1px solid #c99941;
  border-radius: 999px;
  background: #2d1a0d;
  box-shadow: 0 4px 10px rgba(47, 28, 10, 0.18);
  color: #e8c775;
  font: 600 0.66rem/1 var(--font-sans, sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Family Perspective focus state: use one coordinated gold treatment for the
   selected person across Legacy, KinRoots, KinLine and KinJourney. */
body.landing-page {
  --perspective-focus-gold: #c99435;
  --perspective-focus-gold-bright: #e3b95d;
  --perspective-focus-ring-soft: rgba(225, 181, 88, 0.22);
  --perspective-focus-glow: rgba(190, 132, 37, 0.34);
}

body.landing-page .perspective-focus {
  outline: 2.6px solid var(--perspective-focus-gold);
  outline-offset: 2px;
  filter: drop-shadow(0 0 0.58rem var(--perspective-focus-glow));
}

body.landing-page .perspective-focus--hero {
  outline-width: 2.6px;
  outline-color: var(--perspective-focus-gold-bright);
  filter: drop-shadow(0 0 0.68rem rgba(190, 132, 37, 0.38));
}

/* Legacy uses the same gold language, but its larger card receives a slightly
   stronger frame so the selected person is immediately recognizable. */
body.landing-page .summary-family-carousel__card.perspective-focus--legacy {
  border: 2px solid var(--perspective-focus-gold);
  outline: 2px solid rgba(227, 185, 93, 0.5);
  outline-offset: 1px;
  box-shadow:
    0 0 0 3px var(--perspective-focus-ring-soft),
    0 0.5rem 1.05rem rgba(111, 69, 17, 0.14),
    inset 0 0 0 1px rgba(255, 250, 237, 0.82);
  filter: none;
}

/* A quiet sage edge marks the perspective without enlarging the portrait. */
body.landing-page .landing-person-card-frame.perspective-focus--kinline,
body.landing-page .timeline-preview-horizontal__portrait.perspective-focus--kinline {
  --landing-person-frame-gradient: linear-gradient(135deg, #405847, #b6c4a4 48%, #627b60);
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 0.2rem 0.55rem rgba(48, 72, 53, 0.18) !important;
  filter: none !important;
}
body.landing-page .timeline-preview-horizontal__portrait.perspective-focus--kinline {
  border: 2px solid #627b60 !important;
}
body.landing-page :is(.timeline-preview-item, .timeline-preview-horizontal__item):has(.perspective-focus--kinline) :is(.timeline-preview-date, .timeline-preview-horizontal__date) {
  color: #405847;
}

/* Keep the already-approved KinJourney emphasis unchanged. */
body.landing-page .landing-person-card-frame.perspective-focus--kinjourney,
body.landing-page .map-person-summary__avatar.perspective-focus--kinjourney {
  outline: 2.6px solid var(--perspective-focus-gold);
  outline-offset: 2px;
  filter: drop-shadow(0 0 0.58rem var(--perspective-focus-glow));
}

body.landing-page .tree-node-wrap.perspective-focus {
  outline: none;
  filter: none;
}

/* SVG cards use the same restrained sage accent. */
body.landing-page #treeSvg .tree-node-wrap.perspective-focus--kinroots {
  filter: none !important;
}
body.landing-page #treeSvg .tree-node-wrap.perspective-focus--kinroots .tree-node-card.landing-person-card-frame--svg {
  stroke: #627b60 !important;
  stroke-width: var(--landing-person-frame-feature-band) !important;
  filter: drop-shadow(0 3px 6px rgba(48, 72, 53, 0.18)) !important;
}

body.landing-page.perspective-focus-transition-active .perspective-focus:not(.perspective-focus--kinline):not(.perspective-focus--kinroots) {
  animation: kinvella-perspective-focus-pulse 1.65s cubic-bezier(0.22, 0.72, 0.28, 1) both;
}

@keyframes kinvella-perspective-focus-pulse {
  0% {
    outline-color: rgba(195, 148, 55, 0.22);
    outline-width: 1px;
    outline-offset: 1px;
    filter: drop-shadow(0 0 0 rgba(183, 126, 34, 0));
  }
  28% {
    outline-color: var(--perspective-focus-gold-bright);
    outline-width: 3px;
    outline-offset: 5px;
    filter: drop-shadow(0 0 0.95rem rgba(200, 144, 43, 0.52));
  }
  58% {
    outline-color: #d3a144;
    outline-width: 2.7px;
    outline-offset: 3px;
    filter: drop-shadow(0 0 0.7rem rgba(190, 132, 37, 0.38));
  }
  100% {
    outline-color: var(--perspective-focus-gold);
    outline-width: 2.6px;
    outline-offset: 2px;
    filter: drop-shadow(0 0 0.58rem var(--perspective-focus-glow));
  }
}

@keyframes kinvella-perspective-tree-focus-pulse {
  0% { stroke: rgba(201, 148, 52, 0.45); stroke-width: 1.5px; }
  30% { stroke: var(--perspective-focus-gold-bright); stroke-width: 3.4px; }
  100% { stroke: var(--perspective-focus-gold); stroke-width: 2.6px; }
}

@keyframes kinvella-perspective-tree-wrap-pulse {
  0%, 100% { filter: drop-shadow(0 0 7px var(--perspective-focus-glow)); }
  30% { filter: drop-shadow(0 0 13px rgba(213, 160, 59, 0.58)); }
  62% { filter: drop-shadow(0 0 9px rgba(196, 139, 39, 0.44)); }
}

@keyframes kinvella-perspective-section-pulse {
  0%, 100% { outline: 0 solid rgba(202, 151, 56, 0); outline-offset: 0; }
  24% { outline: 2px solid rgba(217, 170, 76, 0.42); outline-offset: 5px; }
  62% { outline: 1px solid rgba(202, 151, 56, 0.2); outline-offset: 3px; }
}

@media (min-width: 1100px) {
  .home-focal-experience {
    --home-hero-center-offset: 0px;
    --home-hero-inline-padding: clamp(1rem, 2vw, 1.8rem);
    --home-hero-content-width: calc(var(--kv-auth-home-section-rail) - 2 * var(--home-hero-inline-padding) - 2px);
    --home-hero-art-width: clamp(27rem, min(35vw, 58dvh), 38rem);
    --home-controls-width: clamp(18rem, 20.5vw, 21rem);
    --home-controls-inset: clamp(2.55rem, 2.8vw, 2.8rem);
    --home-controls-gap: clamp(1rem, 1.4vw, 1.4rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero";
    row-gap: 0;
    align-items: stretch;
    width: var(--kv-auth-home-section-rail, min(100%, 86rem));
    margin: 0 auto var(--home-content-section-gap);
    padding: 0;
    overflow: visible;
    border-color: rgba(188, 137, 57, 0.3);
    background:
      radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.96), transparent 31rem),
      linear-gradient(180deg, rgba(254, 250, 243, 0.995), rgba(249, 240, 225, 0.975)),
      url('/static/img/parchment-bg.webp') center / cover repeat;
    box-shadow:
      0 16px 34px rgba(67, 40, 18, 0.085),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  .home-focal-experience:has(.home-family-controls) {
    /* Keep the existing composition on wide screens; reserve room for the
       controls and a full gap beside the portraits on narrower desktops. */
    --home-hero-center-offset: min(calc(var(--home-hero-content-width) * -0.05), calc(
      var(--home-hero-content-width) / 2 + var(--home-hero-inline-padding)
      - var(--home-hero-art-width) / 2
      - var(--home-controls-width)
      - var(--home-controls-inset)
      - var(--home-controls-gap)
    ));
  }

  .home-family-controls {
    grid-area: hero;
    position: relative;
    z-index: 24;
    display: grid;
    gap: var(--home-controls-gap);
    align-self: center;
    justify-self: end;
    width: var(--home-controls-width);
    min-width: 0;
    margin: 1.5rem var(--home-controls-inset) 1.5rem 0;
  }

  .home-focal-intro {
    --home-focal-heading-inline: 0.1rem;
    width: 100%;
    padding: 0;
    border: 0;
    box-sizing: border-box;
  }

  /* Desktop perspective is persistent in the workspace rail. */
  .home-focal-selector-control {
    display: none;
  }

  .home-family-view-switch {
    margin-top: 0;
  }

  .focal-person-selector {
    padding: 0;
  }

  .focal-person-selector__label {
    margin: 0.04rem var(--home-focal-heading-inline) clamp(0.34rem, 0.4vw, 0.44rem);
    font-size: clamp(0.6rem, 0.54vw, 0.67rem);
  }

  .focal-person-selector__trigger {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    min-height: 54px;
    gap: 0.62rem;
    padding: 0.34rem 0.62rem 0.34rem 0.4rem;
    border-color: rgba(184, 132, 48, 0.22);
    border-radius: 0.82rem;
    background: rgba(255, 252, 246, 0.72);
  }

  .focal-person-selector__portrait {
    width: 42px;
  }

  .focal-person-selector__name {
    font-size: clamp(1rem, 0.92vw, 1.1rem);
  }

  .focal-person-selector__meta {
    font-size: clamp(0.66rem, 0.58vw, 0.72rem);
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero {
    grid-area: hero;
    --home-hero-collage-margin-top: clamp(0.18rem, 0.35vw, 0.34rem);
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    justify-self: stretch;
    align-self: stretch;
    padding: clamp(0.55rem, 1.5dvh, 0.95rem) var(--home-hero-inline-padding) clamp(0.62rem, 1.55dvh, 1rem) !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }

  body.authenticated-workspace .auth-topbar-perspective {
    grid-column: 1;
    justify-self: start;
    width: clamp(10rem, 11vw, 11rem);
    max-width: 11rem;
    min-width: 0;
  }

  body.authenticated-workspace .focal-person-selector--topbar {
    padding: 0;
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__label {
    margin: 0 0.32rem 0.2rem;
    color: rgba(224, 188, 102, 0.88);
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__trigger {
    grid-template-columns: 30px minmax(0, 1fr) 11px;
    min-height: 42px;
    gap: 0.42rem;
    padding: 0.28rem 0.42rem 0.28rem 0.3rem;
    border-color: rgba(222, 184, 94, 0.34);
    border-radius: 0.7rem;
    background: rgba(46, 25, 12, 0.76);
    box-shadow: none;
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__trigger:hover,
  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__trigger:focus-visible,
  body.authenticated-workspace .focal-person-selector--topbar.is-open .focal-person-selector__trigger {
    border-color: rgba(229, 194, 111, 0.62);
    background: rgba(59, 33, 15, 0.92);
    box-shadow: 0 0 0 2px rgba(222, 184, 94, 0.13);
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__portrait {
    width: 30px;
    border-width: 1px;
    border-color: rgba(219, 181, 91, 0.76);
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__name {
    color: #fff1d0;
    font: 650 0.8rem/1.05 var(--font-body, Inter, sans-serif);
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__meta {
    display: none;
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__chevron {
    width: 0.58rem;
    height: 0.58rem;
  }

  body.authenticated-workspace .focal-person-selector--topbar .focal-person-selector__menu {
    top: calc(100% + 0.34rem);
    right: auto;
    left: 0;
    z-index: 120;
    width: min(17.5rem, calc(100vw - 1rem));
    max-height: min(17rem, 55vh);
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero::before,
  body.authenticated-home .home-focal-hero-column.home-welcome-hero::after,
  body.authenticated-home .home-focal-experience .home-welcome-legacy-card::before,
  body.authenticated-home .home-focal-experience .home-welcome-legacy-card::after {
    display: none !important;
    content: none !important;
  }

  body.authenticated-home .home-focal-experience .home-welcome-legacy-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "stage" !important;
    column-gap: 0 !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.12rem 0 0.18rem !important;
    overflow: visible !important;
  }

  body.authenticated-home .home-focal-experience .home-welcome-stage {
    position: relative;
    isolation: isolate;
    grid-area: stage;
    width: 100%;
    min-width: 0;
  }

  body.authenticated-home .home-focal-experience .home-family-composition {
    position: relative;
    left: var(--home-hero-center-offset);
    z-index: 1;
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.authenticated-home .home-focal-experience .home-family-page-heading--desktop {
    grid-area: heading;
  }

  body.authenticated-home .home-focal-experience .home-welcome-olive {
    display: none !important;
  }


  body.authenticated-home .home-focal-experience .hero-family-collage-frame {
    grid-area: art;
    /* Size the shared composition for the signed-in workspace. */
    --living-hero-desktop-main-height: clamp(18rem, min(24.2vw, 40dvh), 26.2rem);
    margin: var(--home-hero-collage-margin-top) auto 0 !important;
  }

  body.authenticated-home .home-focal-experience .home-welcome-copy {
    grid-area: footer;
    margin-top: 0 !important;
  }

  body.authenticated-home .home-focal-experience .home-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.36rem, 0.52vw, 0.5rem);
  }

  body.authenticated-home .home-focal-experience .home-welcome-actions .home-welcome-cta {
    margin-top: 0 !important;
  }

  body.authenticated-home .home-focal-experience .home-welcome-cta {
    min-width: 0 !important;
    min-height: clamp(2.45rem, min(3vw, 5.1dvh), 2.9rem) !important;
    font-size: clamp(1.02rem, min(1.35vw, 2.2dvh), 1.28rem) !important;
  }

  .home-starter-preview-control {
    margin: 0;
  }

  .home-starter-preview-control > .kinvella-onboarding-panel {
    width: 100%;
    margin: 0;
  }

  .home-focal-balance {
    display: none;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-collage {
    position: relative !important;
    display: block !important;
    width: min(100%, var(--home-stage-width)) !important;
    height: var(--home-stage-height) !important;
    margin: var(--home-hero-collage-margin-top) auto 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-collage__row {
    display: contents !important;
    margin: 0 !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--main,
  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--small {
    position: absolute !important;
    inset: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform-origin: center bottom !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--main {
    left: 50% !important;
    top: 0 !important;
    z-index: 3 !important;
    width: var(--home-main-portrait) !important;
    height: var(--home-main-height) !important;
    aspect-ratio: auto !important;
    transform: translateX(-50%) !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--small {
    bottom: calc(var(--home-stage-height) - var(--home-main-height) - 1.05rem) !important;
    z-index: 4 !important;
    width: var(--home-small-portrait) !important;
    height: var(--home-small-height) !important;
    aspect-ratio: auto !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--1 {
    left: calc(50% - (var(--home-main-portrait) / 2) - (var(--home-small-portrait) * 0.6)) !important;
    transform: rotate(3.5deg) !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--2 {
    right: calc(50% - (var(--home-main-portrait) / 2) - (var(--home-small-portrait) * 0.6)) !important;
    transform: rotate(-3.5deg) !important;
  }

}

@media (max-width: 1099px) {
  body.authenticated-workspace .auth-topbar-perspective {
    display: none !important;
  }

  .home-family-page-heading--desktop {
    display: none;
  }

  .home-family-page-heading--mobile {
    display: grid;
    width: var(--kv-auth-home-section-rail, min(calc(100% - 18px), 500px));
    margin: 0.16rem auto 0.28rem;
    padding-inline: 0.5rem;
    box-sizing: border-box;
  }

  .home-family-page-heading__title {
    font-size: clamp(1.75rem, 7.2vw, 1.875rem);
  }

  .home-family-page-heading__rule {
    width: min(12rem, 62%);
    height: 0.52rem;
    margin-top: 0.18rem;
  }
  body.landing-page.authenticated-home {
    --living-hero-mobile-portrait-top-gap: clamp(0.10rem, 0.36vw, 0.16rem);
  }

  /* Home begins with the perspective selector; mobile navigation remains owned by the existing topbar. */
  body.authenticated-home .auth-share-story-mobile {
    display: none !important;
  }

  /* Halve the three contributing spaces between mobile quick links and the
     family heading: nav margin, content padding, and heading margin. */
  body.authenticated-user.authenticated-home .auth-quick-nav--page {
    margin-bottom: clamp(0.21rem, 0.48vw, 0.31rem) !important;
  }

  body.authenticated-workspace.authenticated-home .quick-page-content {
    padding-top: 0.5rem;
  }

  .home-focal-experience {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: var(--kv-auth-home-section-rail, min(calc(100% - 18px), 500px));
    margin: 0 auto var(--home-content-section-gap);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-focal-experience::before,
  .home-focal-experience::after,
  .home-focal-balance {
    display: none;
    content: none;
  }

  .home-family-controls {
    --home-family-control-max-width: min(24rem, calc(100% - 1rem));
  }

  .home-family-view-switch__note {
    display: none;
  }

  /* The starter panel follows the family artwork and action on mobile. */
  .home-focal-intro {
    display: contents;
  }

  .home-focal-selector-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(184, 132, 48, 0.24);
    background: rgba(255, 252, 245, 0.48);
    box-sizing: border-box;
  }

  .home-focal-selector-slot {
    container: family-perspective / inline-size;
    width: 100%;
    min-width: 0;
  }

  .home-focal-selector-row {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .home-family-view-switch {
    container: family-controls / inline-size;
    order: 2;
    margin: 0.375rem 0;
    padding-top: 0;
  }

  .home-family-view-switch__control {
    gap: 0.25rem 0.4rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.75rem;
    box-shadow: none;
  }

  .home-family-view-switch__label {
    padding: 0;
    font-size: 0.62rem;
  }

  .home-family-view-switch__label::after {
    content: none;
  }

  .home-family-view-switch__option {
    white-space: normal;
  }

  .home-family-view-switch__option > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  @container family-controls (max-width: 18rem) {
    .home-family-view-switch__option {
      flex-direction: column;
    }
  }

  .home-focal-hero-column {
    grid-column: 1;
    order: 3;
  }

  /* The selector already owns the shared section gap. Remove the legacy hero
     margin so mobile does not add a second gap between these two sections. */
  body.authenticated-home .home-focal-hero-column.home-welcome-hero {
    margin: 0 auto !important;
  }

  .home-welcome-stage,
  .home-family-composition {
    display: contents;
  }

  /* The bordered hero ends shortly after its metrics. */
  body.authenticated-home .home-focal-experience .home-welcome-legacy-card {
    padding: 0 0 var(--home-content-section-gap) !important;
  }

  body.authenticated-home .home-focal-experience .hero-family-collage-frame {
    order: 1;
  }

  body.authenticated-home .home-focal-experience .home-welcome-copy {
    order: 2;
    margin-top: 0 !important;
  }

  .home-starter-preview-control {
    position: relative;
    z-index: 3;
    order: 4;
    width: 100%;
    max-width: var(--home-family-control-max-width);
    margin: 0.5rem auto;
  }

  .focal-person-selector {
    display: grid;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 1.08rem;
  }

  .focal-person-selector__label {
    grid-row: 1;
    margin: 0 0.68rem 0.34rem;
    font-size: 0.62rem;
    text-align: left;
  }

  .focal-person-selector__trigger {
    grid-row: 2;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    min-height: 56px;
    padding: 0.38rem 0.6rem 0.38rem 0.42rem;
    border-radius: 0.88rem;
  }

  .focal-person-selector__portrait { width: 42px; }
  .focal-person-selector__name { font-size: 1rem; }
  .focal-person-selector__meta { font-size: 0.66rem; }
  .focal-person-selector__menu { max-height: min(21rem, calc(100vh - var(--topbar-safe-space, 4.5rem) - 2rem)); }
  .focal-person-selector--home-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 0.5rem 0.625rem;
    width: 100%;
    padding: 0.375rem 0.625rem;
    border-radius: 0;
  }

  .focal-person-selector--home-mobile > .focal-person-selector__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .focal-person-selector--home-mobile .focal-person-selector__identity {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    align-items: center;
    gap: 0.125rem 0.5rem;
    min-width: 0;
    margin-bottom: 4px;
  }

  .focal-person-selector--home-mobile .focal-person-selector__inline-stack {
    display: contents;
  }

  .focal-person-selector--home-mobile .focal-person-selector__portrait {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 36px;
    border-width: 1px;
  }

  .focal-person-selector--home-mobile .focal-person-selector__inline-label {
    display: block;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    color: #9a671f;
    font: 800 0.6rem/1.2 var(--font-sans, Inter, sans-serif);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .focal-person-selector--home-mobile .focal-person-selector__copy {
    display: block;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .focal-person-selector--home-mobile .focal-person-selector__name {
    color: #3c281b;
    font: 650 1rem/1.2 var(--font-body, Inter, sans-serif);
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .focal-person-selector--home-mobile .focal-person-selector__meta {
    display: none;
  }

  .focal-person-selector--home-mobile .focal-person-selector__preview {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    border: 1px solid rgba(111, 136, 111, 0.2);
    border-radius: 999px;
    background: #edf2e8;
    color: #435747;
    font: 600 0.6875rem/1.2 var(--font-sans, Inter, sans-serif);
    white-space: nowrap;
  }

  .focal-person-selector--home-mobile .focal-person-selector__trigger {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: auto;
    min-height: 44px;
    margin: 0;
    position: relative;
    isolation: isolate;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    box-shadow: none;
    color: #493323;
    font: 550 0.8125rem/1.2 var(--font-sans, Inter, sans-serif);
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* The visible control is 36px tall; its full button keeps a 44px tap target. */
  .focal-person-selector--home-mobile .focal-person-selector__trigger::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4px 0;
    border: 1px solid rgba(151, 112, 56, 0.28);
    border-radius: inherit;
    background: #fbf7ef;
    pointer-events: none;
  }

  .focal-person-selector--home-mobile:has(.focal-person-selector__preview) {
    grid-template-columns: 36px minmax(0, 1fr) max-content;
    row-gap: 0.125rem;
  }

  .focal-person-selector--home-mobile:has(.focal-person-selector__preview) .focal-person-selector__identity {
    display: contents;
  }

  .focal-person-selector--home-mobile:has(.focal-person-selector__preview) .focal-person-selector__portrait {
    align-self: end;
    margin-bottom: 4px;
  }

  .focal-person-selector--home-mobile:has(.focal-person-selector__preview) .focal-person-selector__copy {
    align-self: end;
    margin-bottom: 4px;
  }

  .focal-person-selector--home-mobile:has(.focal-person-selector__preview) .focal-person-selector__trigger {
    grid-column: 3;
    grid-row: 2;
  }

  .focal-person-selector--home-mobile .focal-person-selector__trigger > svg,
  .focal-person-selector--home-mobile .focal-person-selector__preview > svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .focal-person-selector--home-mobile .focal-person-selector__preview > svg {
    width: 0.8125rem;
    height: 0.8125rem;
  }

  .focal-person-selector--home-mobile .focal-person-selector__trigger:hover,
  .focal-person-selector--home-mobile.is-open .focal-person-selector__trigger {
    background: transparent;
    box-shadow: none;
  }

  .focal-person-selector--home-mobile .focal-person-selector__trigger:hover::after,
  .focal-person-selector--home-mobile.is-open .focal-person-selector__trigger::after {
    background: #f4ecde;
  }

  .focal-person-selector--home-mobile .focal-person-selector__trigger:focus-visible {
    outline: 2px solid #8a611f;
    outline-offset: 2px;
    box-shadow: none;
  }

  .focal-person-selector--home-mobile .focal-person-selector__chevron {
    flex: 0 0 auto;
    width: 0.625rem;
    height: 0.625rem;
    margin: 0;
  }

  .focal-person-selector--home-mobile .focal-person-selector__menu {
    width: min(20rem, calc(100vw - 2rem));
    max-height: min(21rem, calc(100dvh - var(--topbar-safe-space, 4.5rem) - 2rem));
    border-radius: 1rem;
  }

  .focal-person-selector--home-mobile .focal-person-selector__status {
    grid-column: 1 / -1;
  }

  /* Enlarged text can outgrow two columns; keep every control readable. */
  @container family-perspective (max-width: 20rem) {
    .focal-person-selector--home-mobile,
    .focal-person-selector--home-mobile:has(.focal-person-selector__preview) {
      grid-template-columns: minmax(0, 1fr);
    }

    .focal-person-selector--home-mobile:has(.focal-person-selector__preview) .focal-person-selector__identity {
      display: grid;
      grid-column: 1;
      grid-row: 1;
    }

    .focal-person-selector--home-mobile .focal-person-selector__preview {
      grid-column: 1;
      grid-row: 2;
      justify-self: end;
    }

    .focal-person-selector--home-mobile .focal-person-selector__trigger {
      grid-column: 1;
      grid-row: 2;
    }

    .focal-person-selector--home-mobile:has(.focal-person-selector__preview) .focal-person-selector__trigger {
      grid-column: 1;
      grid-row: 3;
    }
  }

  .home-welcome-cta__label--desktop {
    display: none;
  }

  .home-welcome-cta__label--mobile {
    display: inline;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero {
    --home-main-portrait: clamp(11.52rem, 48vw, 13.08rem);
    --home-main-height: clamp(17.88rem, 74.4vw, 20.16rem);
    --home-small-portrait: clamp(5.7rem, 23.5vw, 6.45rem);
    --home-small-height: clamp(8.25rem, 34.5vw, 9.35rem);
    --home-side-overhang: clamp(0.41rem, 1.73vw, 0.47rem);
    --home-stage-height: calc(var(--home-main-height) + clamp(1.25rem, 4vw, 1.6rem));
    --home-hero-width: 100%;
    --home-hero-collage-margin-top: clamp(0.08rem, 0.35vw, 0.15rem);
    --landing-person-frame-hero-band: clamp(3.2px, 0.62vw, 5.1px);
    --landing-person-frame-hero-edge: 1px;
    --landing-person-frame-hero-outline: 1px;
    --landing-person-frame-hero-inner-line: 1px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 1px solid rgba(193, 151, 82, 0.38) !important;
    border-radius: clamp(1.5rem, 6.5vw, 1.72rem) !important;
    box-shadow:
      0 8px 20px rgba(71, 42, 18, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
  }

  /* Mobile keeps one clean outer hero frame and omits the upper corner botanicals. */
  body.authenticated-home .home-focal-hero-column.home-welcome-hero::before,
  body.authenticated-home .home-focal-experience .home-welcome-legacy-card::before,
  body.authenticated-home .home-focal-experience .home-welcome-legacy-card::after {
    display: none !important;
    content: none !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-collage {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 27rem !important;
    height: var(--home-stage-height) !important;
    margin: var(--home-hero-collage-margin-top) auto 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-collage__row {
    display: contents !important;
    margin: 0 !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--main,
  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--small {
    position: absolute !important;
    inset: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform-origin: center bottom !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--main {
    left: 50% !important;
    top: 0 !important;
    z-index: 3 !important;
    width: var(--home-main-portrait) !important;
    height: var(--home-main-height) !important;
    aspect-ratio: auto !important;
    transform: translateX(-50%) !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--small {
    top: calc(var(--home-main-height) - var(--home-small-height) + var(--home-side-overhang)) !important;
    bottom: auto !important;
    z-index: 4 !important;
    width: var(--home-small-portrait) !important;
    height: var(--home-small-height) !important;
    aspect-ratio: auto !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--1 {
    left: calc(50% - (var(--home-main-portrait) / 2) - (var(--home-small-portrait) * 0.70)) !important;
    transform: rotate(4deg) !important;
  }

  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-portrait--2 {
    right: calc(50% - (var(--home-main-portrait) / 2) - (var(--home-small-portrait) * 0.70)) !important;
    transform: rotate(-4deg) !important;
  }

}

@media (max-width: 390px) {
  body.authenticated-home .home-focal-hero-column.home-welcome-hero .home-welcome-collage {
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .focal-person-selector {
    transition: none;
  }

  body.landing-page.perspective-focus-transition-active .perspective-focus,
  body.landing-page.perspective-focus-transition-active .perspective-focus-section,
  body.landing-page.perspective-focus-transition-active #treeSvg .tree-node-wrap.perspective-focus .tree-node-card.landing-person-card-frame--svg {
    animation: none;
  }
}
