

body.landing-page {
  /* Final landing frame tokens: Tree, Timeline, and every landing section use these. */
  --landing-section-frame-radius: clamp(18px, 1.8vw, 24px);
  --landing-section-frame-border-color: rgba(204, 163, 96, 0.82);
  --landing-section-frame-border: 1px solid var(--landing-section-frame-border-color);
  --landing-section-frame-background:
    radial-gradient(circle at 50% 0%, rgba(255, 251, 243, 0.52), transparent 54%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(245, 236, 221, 0.96));
  --landing-section-frame-outline: 1px solid rgba(248, 237, 216, 0.92);
  --landing-section-frame-outline-offset: -7px;
  --landing-section-frame-shadow:
    0 12px 26px rgba(120, 84, 52, 0.08),
    0 28px 52px rgba(92, 60, 32, 0.1),
    0 2px 8px rgba(84, 55, 29, 0.06);
  /* Shared feature rail/split tokens live in core/tokens.css so public Landing and
     signed-in Home consume the same geometry without local width overrides. */
  --kv-section-rail: min(calc(100vw - clamp(1.1rem, 4vw, 3.6rem)), 43.75rem);
  --kv-section-radius: var(--landing-section-frame-radius);
  --kv-section-inner-radius: clamp(7px, 0.78vw, 10px);
  --kv-section-border: var(--landing-section-frame-border-color);
  --kv-section-border-soft: rgba(176, 137, 80, 0.24);
  --kv-section-bg: rgba(255, 250, 240, 0.94);
  --kv-section-card-bg: rgba(255, 253, 248, 0.94);
  --kv-section-card-bg-soft: rgba(250, 239, 220, 0.64);
  --kv-section-ink: #2f1d14;
  --kv-section-muted: rgba(47, 29, 20, 0.70);
  --kv-section-gold: #b8802b;
  --kv-section-ornament-gold: color-mix(in srgb, color-mix(in srgb, var(--gold) 72%, #9a6729 28%) 70%, #7f6848 30%);
  --kv-icon-color: var(--kv-section-ink);
  --kv-section-shadow: var(--landing-section-frame-shadow, 0 12px 24px rgba(64, 38, 18, 0.075));
  --kv-section-shadow-soft: 0 8px 18px rgba(64, 38, 18, 0.055);
  --kv-section-gap: clamp(0.82rem, 1.8vw, 1.12rem);
  --kv-section-cta-gap: var(--kv-section-gap);
  --kv-section-cta-bottom-gap: 0px;
  --kv-landing-sigil-topper-clearance: clamp(0.42rem, 0.95vw, 0.60rem);
  --kv-landing-sigil-visual-gap: var(--kv-landing-sigil-topper-clearance);
  --kv-section-title-size: clamp(1.16rem, 3.2vw, 1.38rem);
  --kv-section-rule: linear-gradient(90deg, transparent, rgba(184, 122, 44, 0.46), transparent);
  --kv-icon-feature: clamp(1.61rem, 3.06vw, 1.79rem);
  --kv-icon-secondary: clamp(1.25rem, 2.67vw, 1.43rem);
  --kv-icon-stat: clamp(1.61rem, 3.58vw, 1.79rem);
  --kv-icon-stat-container: clamp(2.72rem, 7.8vw, 3.2rem);
  --kv-icon-button: clamp(1.25rem, 3.06vw, 1.43rem);
  --kv-icon-stroke: 1.75;
  --kv-icon-stroke-strong: var(--kv-icon-stroke);
  --kv-legacy-portrait-width: clamp(5.9rem, 15.5vw, 7.35rem);
  --kv-legacy-portrait-height: clamp(6.12rem, 16.1vw, 7.62rem);
  --kv-legacy-card-min-height: clamp(3.7rem, 9.2vw, 4.38rem);
  --kv-legacy-card-padding-y: clamp(0.42rem, 0.78vw, 0.54rem);
  --kv-legacy-card-padding-x: clamp(0.06rem, 0.22vw, 0.12rem);
  --kv-legacy-grid-gap: clamp(0.26rem, 0.72vw, 0.44rem);
  --kv-legacy-portrait-panel-padding-y: clamp(0.72rem, 1.42vw, 0.94rem);
}

body.landing-page .landing-story-purpose {
  width: min(var(--kv-desktop-showcase-rail, var(--kv-section-rail)), 55rem);
  margin: 0 auto var(--landing-section-gap);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--kv-section-border-soft);
  border-radius: var(--kv-section-radius);
  background: var(--kv-section-bg);
  box-shadow: var(--kv-section-shadow-soft);
  text-align: center;
}

body.landing-page .landing-story-purpose > .landing-story-purpose__header .page-section-header__title {
  max-width: 28ch;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}

body.landing-page .landing-story-purpose > p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: var(--kv-section-ink);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: balance;
}

body.landing-page .landing-story-purpose__ownership {
  margin: 0;
  color: var(--kv-section-muted);
  font: 400 0.8125rem/1.55 var(--font-body);
  text-align: right;
}

body.landing-page .landing-story-purpose__ownership a {
  display: block;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.landing-page .landing-story-purpose a:focus-visible {
  outline: 2px solid var(--kv-section-gold);
  outline-offset: 3px;
}

body.landing-page .landing-story-purpose__figure {
  container: story-purpose / inline-size;
  margin: 1.25rem 0 0;
}

body.landing-page .landing-story-purpose__connections {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(4rem, 14%, 7rem) minmax(0, 1fr);
  grid-template-areas: "people hub places" "time hub milestones";
  gap: 0.75rem;
  align-items: center;
}

body.landing-page .landing-story-purpose__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--kv-section-gold);
  stroke-width: 1;
  opacity: 0.4;
  pointer-events: none;
}

body.landing-page .landing-story-purpose__lines path {
  vector-effect: non-scaling-stroke;
}

body.landing-page .landing-story-purpose__hub {
  grid-area: hub;
  display: grid;
  place-items: center;
  min-width: 0;
}

body.landing-page .landing-story-purpose__hub > span {
  display: block;
  padding: 0.4rem 0.5rem;
  max-width: 100%;
  border: 1px solid var(--kv-section-border-soft);
  border-radius: var(--radius-pill, 999px);
  background: var(--kv-section-bg);
  color: var(--kv-section-ink);
  font: 500 clamp(0.875rem, 2.5cqw, 1.25rem)/1.2 var(--font-display, Georgia, serif);
  letter-spacing: 0.02em;
}

body.landing-page .landing-story-purpose__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--kv-section-border-soft);
  border-radius: var(--kv-section-inner-radius);
  background: var(--kv-section-card-bg);
  color: var(--kv-section-ink);
  font: 600 0.875rem/1.3 var(--font-body);
  overflow-wrap: anywhere;
}

body.landing-page .landing-story-purpose__node--people { grid-area: people; }
body.landing-page .landing-story-purpose__node--places { grid-area: places; }
body.landing-page .landing-story-purpose__node--time { grid-area: time; }
body.landing-page .landing-story-purpose__node--milestones { grid-area: milestones; }

body.landing-page .landing-story-purpose__visual {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 6.5rem;
  min-width: 0;
  border-radius: var(--radius-sm);
  background: radial-gradient(ellipse at 50% 100%, #ead6af, #fbf3e4 78%);
  color: #95662c;
}

body.landing-page .landing-story-purpose__visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 40%;
  border-radius: inherit;
  filter: saturate(0.35) sepia(0.18) contrast(0.94);
}

body.landing-page .landing-story-purpose__visual--captioned img {
  object-fit: contain;
}

body.landing-page .landing-story-purpose__photo-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(255, 250, 240, 0.96);
  color: var(--kv-section-ink);
  font: 500 clamp(0.6875rem, 1.6cqw, 0.8125rem)/1.2 var(--font-body);
  text-align: center;
}

body.landing-page .landing-story-purpose__photo-caption--journey {
  grid-template-columns: minmax(0, max-content) auto minmax(0, max-content);
  justify-content: space-evenly;
  column-gap: 0.125rem;
  padding-inline: 0.125rem;
}

body.landing-page .landing-story-purpose__photo-caption--timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.landing-page .landing-story-purpose__photo-caption--timeline > span {
  display: grid;
  gap: 0.125rem;
}

body.landing-page .landing-story-purpose__photo-caption time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.landing-page .landing-story-purpose__figure figcaption {
  margin-top: 0.75rem;
  color: var(--kv-section-muted);
  font: 400 0.875rem/1.5 var(--font-body);
  text-wrap: balance;
}

body.landing-page .landing-story-purpose__actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--kv-section-border-soft);
}

body.landing-page .landing-story-purpose__actions > .landing-feature-section__cta {
  width: auto;
  margin: 0;
}

body.landing-page .landing-story-purpose .landing-feature-section__button {
  --living-hero-primary-cta-width: fit-content;
  --kv-btn-context-min-width: 0;
  --kv-btn-font-size: 0.875rem;
  --kv-btn-font-weight: 600;
  --kv-btn-letter-spacing: 0.01em;
  --kv-btn-primary-shadow: var(--kv-section-shadow-soft);
  max-width: 100%;
}

body.landing-page .landing-story-purpose .landing-feature-section__button > span {
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
}

@media (max-width: 640px) {
  body.landing-page .landing-story-purpose {
    padding: 1rem;
  }

  body.landing-page .landing-story-purpose > p {
    margin-top: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  body.landing-page .landing-story-purpose__figure {
    margin-top: 1rem;
  }

  body.landing-page .landing-story-purpose__connections {
    gap: 0.5rem;
  }

  body.landing-page .landing-story-purpose__node {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.8125rem;
  }

  body.landing-page .landing-story-purpose__figure figcaption {
    font-size: 0.8125rem;
  }

  body.landing-page .landing-story-purpose__actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  body.landing-page .landing-story-purpose .landing-feature-section__button {
    --kv-btn-min-height: 44px;
  }

  body.landing-page .landing-story-purpose__ownership {
    text-align: center;
  }
}

@container story-purpose (max-width: 16rem) {
  body.landing-page .landing-story-purpose__connections {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hub" "people" "time" "places" "milestones";
  }

  body.landing-page .landing-story-purpose__lines {
    display: none;
  }
}

/* Signed-in Home uses one rail for the hero and every feature row. */
body.landing-page.authenticated-home {
  --kv-auth-home-section-rail: var(--kv-section-rail);
}


/* Canonical landing feature-frame owner. -----------------------------------------------
   Every feature section opts into this class in the template. This removes the old
   selector-by-selector frame ownership that allowed KinSight and KinJourney to drift. */
body.landing-page .landing-feature-frame.raised-card.parchment-card {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: var(--landing-section-frame-border) !important;
  border-radius: var(--landing-section-frame-radius) !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  background: var(--landing-section-frame-background) !important;
  box-shadow: var(--landing-section-frame-shadow) !important;
}

body.landing-page .landing-feature-frame.raised-card.parchment-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0.55rem !important;
  border: var(--landing-section-frame-outline) !important;
  border-radius: calc(var(--landing-section-frame-radius) - 0.4rem) !important;
  pointer-events: none !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 244, 0.28) !important;
}

body.landing-page .landing-feature-frame.raised-card.parchment-card::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  outline: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* KinSight has an extra structural wrapper; it is layout-only, never a second frame. */
body.landing-page .landing-feature-frame.raised-card.parchment-card > .landing-kinsight-preview__inner,
body.landing-page .landing-feature-frame.raised-card.parchment-card > .landing-kinsight-preview__inner--quick-glance {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Shared value strips ----------------------------------------------------------------------
   Feature and Why Kinvella rails use one visual/responsive system. Why Kinvella stays five-up;
   the core feature rail is six-up on larger views. Both show four cards at a time on mobile. */
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip {
  --shared-value-card-icon-stroke: var(--kv-icon-stroke);
  --shared-value-card-copy: rgba(55, 37, 23, 0.72);
  --shared-value-card-divider: rgba(180, 132, 58, 0.20);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  width: min(100%, var(--living-hero-value-max-width, 80rem));
  margin-top: var(--living-hero-value-cards-margin-top, 0.65rem);
  padding: clamp(0.92rem, 1.2vw, 1.15rem) clamp(0.55rem, 0.9vw, 0.85rem);
  overflow: visible;
  border: 1px solid rgba(184, 137, 63, 0.28);
  border-radius: 1.35rem;
  background: rgba(255, 249, 237, 0.68);
  box-shadow: 0 0.7rem 1.6rem rgba(61, 39, 18, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--core-features {
  --hero-value-title-case: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: clamp(0.28rem, 0.48vw, 0.42rem);
  min-width: 0;
  min-height: clamp(5.9rem, 7vw, 6.7rem);
  padding: 0.2rem clamp(0.6rem, 1vw, 0.95rem);
  text-align: center;
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon,
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon--large {
  display: grid;
  place-items: center;
  align-self: center;
  width: clamp(2.05rem, 2.3vw, 2.5rem);
  height: clamp(2.05rem, 2.3vw, 2.5rem);
  color: var(--hero-feature-icon-color, var(--kv-icon-color));
  line-height: 0;
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon :is(img, svg),
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon--large :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon img {
  filter: var(--hero-feature-icon-filter, none);
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon svg,
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon--large svg,
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon svg :is(path, circle, rect, line, polyline, polygon),
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon--large svg :is(path, circle, rect, line, polyline, polygon) {
  stroke-width: var(--kv-icon-stroke);
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card:nth-child(1) {
  --hero-feature-icon-color: #67472c;
  --hero-feature-icon-filter: brightness(0) saturate(100%) invert(28%) sepia(27%) saturate(1035%) hue-rotate(348deg) brightness(91%) contrast(91%);
}
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card:nth-child(2) {
  --hero-feature-icon-color: #795735;
  --hero-feature-icon-filter: brightness(0) saturate(100%) invert(34%) sepia(25%) saturate(911%) hue-rotate(350deg) brightness(92%) contrast(90%);
}
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card:nth-child(3) {
  --hero-feature-icon-color: #8a673d;
  --hero-feature-icon-filter: brightness(0) saturate(100%) invert(40%) sepia(28%) saturate(862%) hue-rotate(352deg) brightness(91%) contrast(89%);
}
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card:nth-child(4) {
  --hero-feature-icon-color: #73503c;
  --hero-feature-icon-filter: brightness(0) saturate(100%) invert(31%) sepia(20%) saturate(1038%) hue-rotate(335deg) brightness(91%) contrast(88%);
}
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card:nth-child(5) {
  --hero-feature-icon-color: #94713b;
  --hero-feature-icon-filter: brightness(0) saturate(100%) invert(44%) sepia(31%) saturate(881%) hue-rotate(358deg) brightness(91%) contrast(88%);
}
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card:nth-child(6) {
  --hero-feature-icon-color: #84603a;
  --hero-feature-icon-filter: brightness(0) saturate(100%) invert(37%) sepia(27%) saturate(932%) hue-rotate(352deg) brightness(91%) contrast(89%);
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__body {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 0;
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__title {
  max-width: 100%;
  margin: 0;
  overflow: visible;
  font-size: clamp(0.742rem, 0.803vw, 0.865rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Match the KinCrest process-card divider exactly across both value-card rails. */
body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__divider {
  display: block;
  width: min(86%, 5.6rem);
  height: 1px;
  margin: clamp(0.33rem, 0.72vw, 0.43rem) auto clamp(0.14rem, 0.38vw, 0.21rem);
  background: linear-gradient(90deg, transparent, rgba(164, 106, 37, 0.52) 22%, rgba(164, 106, 37, 0.52) 78%, transparent);
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__copy {
  display: grid;
  grid-template-rows: repeat(2, auto);
  align-content: center;
  justify-items: center;
  min-height: 2.24em;
  margin: 0;
  color: var(--shared-value-card-copy);
  font-size: var(--shared-value-card-copy-size, clamp(0.845rem, 0.927vw, 1.009rem));
  line-height: var(--shared-value-card-copy-leading, 1.12);
  white-space: normal;
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__copy-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__copy-line + .hero-value-card__copy-line {
  margin-top: var(--shared-value-card-copy-gap, clamp(0.05rem, 0.16vw, 0.09rem));
}

body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__copy-line + .hero-value-card__copy-line::before {
  content: none;
}

body.landing-page .living-hero__value-pagination {
  display: none;
}

@media (max-width: 767px) {
  body.landing-page .landing-story-intro .landing-section-divider--vertical.is-edge-clipped {
    visibility: hidden;
  }

  body.landing-page:not(.authenticated-home) .landing-story-intro {
    --shared-value-card-copy-size: clamp(0.66rem, 3vw, 0.75rem);
  }

  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 25%;
    justify-content: start;
    width: 100%;
    max-width: none;
    margin: var(--living-hero-value-cards-margin-top, 0.8rem) auto 0;
    padding: 0.62rem 0.12rem 0.66rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.4rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip::-webkit-scrollbar {
    display: none;
  }

  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card {
    min-height: 5.15rem;
    padding: 0.28rem 0.22rem;
    scroll-snap-align: start;
  }

  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon,
  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__icon--large {
    width: 1.72rem;
    height: 1.72rem;
  }

  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__title {
    font-size: clamp(0.61rem, 2.5vw, 0.69rem);
  }

  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__divider {
    width: min(82%, 6.2rem);
    margin-block: clamp(0.24rem, 1vw, 0.34rem) clamp(0.11rem, 0.45vw, 0.16rem);
  }

  body.landing-page:not(.authenticated-home) .living-hero__value-cards--responsive-strip .hero-value-card__copy {
    font-size: var(--shared-value-card-copy-size, clamp(0.66rem, 2.65vw, 0.74rem));
    line-height: var(--shared-value-card-copy-leading, 1.06);
  }


  body.landing-page .living-hero__value-pagination {
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    min-height: 0.72rem;
    margin: 0.34rem auto 0;
  }

  body.landing-page .living-hero__value-pagination.is-available {
    display: flex;
  }

  /* Match the Legacy carousel pagination exactly so both strips share one visual language. */
  body.landing-page .living-hero__value-page-dot {
    width: 4px;
    height: 4px;
    padding: 0;
    border: 1px solid rgba(178, 127, 49, 0.62);
    border-radius: 50%;
    background: rgba(242, 222, 184, 0.46);
    box-shadow: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: width 160ms ease, height 160ms ease, background-color 160ms ease, border-color 160ms ease;
  }

  body.landing-page .living-hero__value-page-dot.is-active {
    width: 6px;
    height: 6px;
    border-color: rgba(168, 110, 27, 0.88);
    background: rgba(190, 132, 38, 0.76);
  }

  body.landing-page .living-hero__value-page-dot:focus-visible {
    outline: 2px solid rgba(181, 125, 42, 0.58);
    outline-offset: 2px;
  }
}

/* Why Kinvella section shell --------------------------------------------------------------- */
body.landing-page:not(.authenticated-home) .landing-story-intro {
  --shared-value-card-copy-leading: 1.35;
  --shared-value-card-copy-gap: 0.18rem;
  position: relative !important;
  overflow: visible !important;
  margin-top: clamp(1rem, 2.1vw, 1.5rem) !important;
  margin-bottom: clamp(1.25rem, 2.6vw, 2rem) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  body.landing-page:not(.authenticated-home) .landing-story-intro {
    --landing-section-rail: min(calc(100vw - clamp(1rem, 4vw, 2.8rem)), 58rem);
    --living-hero-value-max-width: 58rem;
  }
}

body.landing-page:not(.authenticated-home) .landing-story-intro::before,
body.landing-page:not(.authenticated-home) .landing-story-intro::after {
  content: none !important;
  display: none !important;
}

body.landing-page:not(.authenticated-home) .living-hero__trust-icon {
  width: clamp(1.8rem, 3.78vw, 2.24rem) !important;
  height: clamp(1.8rem, 3.78vw, 2.24rem) !important;
  color: var(--kv-icon-color) !important;
}

body.landing-page:not(.authenticated-home) .living-hero__trust-icon svg {
  width: 68% !important;
  height: 68% !important;
  stroke-width: var(--kv-icon-stroke) !important;
}

/* Legacy card ----------------------------------------------------------------------------- */
body.landing-page {
  /* The featured Legacy portrait is intentionally 15% larger than the prior scale. */
  --kv-legacy-main-portrait-width: clamp(5.73rem, 17.95vw, 6.99rem);
}


















































@media (max-width: 959px) {
  

  

  

  
}

@media (max-width: 575px) {
  body.landing-page .landing-feature-frame.raised-card.parchment-card::before {
    inset: 0.42rem !important;
  }

  

  

  
}




























@keyframes kvLandingPortraitShimmer {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  
}





























@media (max-width: 430px) {
  body.landing-page {
    --kv-legacy-main-portrait-width: clamp(5.35rem, 26.17vw, 6.01rem);
  }
}

body.landing-page .landing-feature-button-icon {
  width: var(--kv-icon-button) !important;
  height: var(--kv-icon-button) !important;
}

@media (min-width: 860px) {
  

  
}

/* Mobile tightening without stacking the 4-up strips/cards. ------------------------------- */
@media (max-width: 520px) {
  body.landing-page {
    --kv-section-rail: min(calc(100vw - 0.74rem), 43.75rem);
  }
}

/* Landing feature header system --------------------------------------------------------------
   This is the only landing-page source for feature header typography, spacing, and color.
   Each feature template renders the same macro, and the content immediately after the header
   receives the same vertical rhythm without feature-specific header adjustments. */
body.landing-page {
  --kv-landing-header-width: 100%;
  --kv-landing-header-padding: 0.12rem 0 0;
  --kv-landing-header-margin: 0 auto;
  --kv-landing-header-title-font: var(--font-display, "Cormorant Garamond", Georgia, serif);
  --kv-landing-header-title-size: clamp(1.25rem, 3.2vw, 2.05rem);
  --kv-landing-header-title-color: rgba(58, 37, 23, 0.86);
  --kv-landing-header-rule-width: var(--kv-feature-heading-rule-width, clamp(5.7rem, 18vw, 8.15rem));
  --kv-landing-header-rule-gap: clamp(0.20rem, 0.42vw, 0.30rem);
  --kv-landing-header-rule-margin-inline: auto;
  --kv-landing-header-rule-color: rgba(184, 128, 44, 0.68);
  --kv-section-subheader-font: var(--font-display, "Cormorant Garamond", Georgia, serif);
  --kv-section-subheader-style: italic;
  --kv-section-subheader-weight: 500;
  --kv-section-subheader-line-height: 1.18;
  --kv-section-subheader-letter-spacing: 0.01em;
  --kv-landing-header-subtitle-font: var(--kv-section-subheader-font);
  --kv-landing-header-subtitle-size: clamp(0.96rem, 1.42vw, 1.08rem);
  --kv-landing-header-subtitle-color: rgba(59, 45, 36, 0.75);
  --kv-landing-header-subtitle-gap: clamp(0.18rem, 0.38vw, 0.28rem);
  --kv-landing-header-content-gap-base: clamp(0.86rem, 1.3vw, 1.08rem);
  --kv-landing-header-content-gap: var(--kv-landing-header-content-gap-base);
}

body.landing-page .landing-feature-section__header {
  display: grid;
  place-items: start center;
  align-content: start;
  width: var(--kv-landing-header-width);
  max-width: 100%;
  margin: var(--kv-landing-header-margin);
  padding: var(--kv-landing-header-padding);
  gap: 0;
  text-align: center;
}

body.landing-page .landing-feature-section__header > * {
  margin: 0;
}

body.landing-page .landing-feature-section__header .page-section-header__title {
  width: 100%;
  max-width: 100%;
  padding: 0;
  color: var(--kv-landing-header-title-color);
  font-family: var(--kv-landing-header-title-font) !important;
  font-size: var(--kv-landing-header-title-size);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: none;
  text-wrap: balance;
  white-space: normal;
  text-shadow: 0 1px 0 rgba(255, 252, 245, 0.42);
}

/* Shared fading rules; card separators omit the section-heading ornament. */
body.landing-page .landing-section-divider {
  position: relative;
  display: block;
  height: var(--section-divider-height, 0.62rem);
  background: linear-gradient(var(--section-divider-direction, 90deg), transparent,
    var(--section-divider-color, color-mix(in srgb, var(--kv-section-ornament-gold) 62%, transparent)), transparent)
    center / var(--section-divider-background-size, 100% 1px) no-repeat;
}

body.landing-page .landing-section-divider::after {
  content: var(--section-divider-ornament, "");
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(255, 250, 236, 0.96);
  background: var(--kv-section-ornament-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

body.landing-page .landing-feature-section__header > .landing-section-divider {
  width: var(--kv-landing-header-rule-width);
  margin: var(--kv-landing-header-rule-gap) var(--kv-landing-header-rule-margin-inline) 0;
}

body.landing-page .landing-section-divider--vertical {
  --section-divider-direction: 180deg;
  --section-divider-background-size: 1px 100%;
  --section-divider-color: var(--shared-value-card-divider, var(--kv-section-border-soft));
  --section-divider-ornament: none;
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.62rem;
  height: 80%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.landing-page .landing-feature-section__header .page-section-header__subtitle {
  width: min(100%, var(--kv-landing-header-subtitle-max-width, 34rem));
  max-width: var(--kv-landing-header-subtitle-max-width, 34rem);
  margin-top: var(--kv-landing-header-subtitle-gap);
  color: var(--kv-landing-header-subtitle-color);
  font-family: var(--kv-landing-header-subtitle-font);
  font-size: var(--kv-landing-header-subtitle-size);
  font-style: var(--kv-section-subheader-style);
  font-weight: var(--kv-section-subheader-weight);
  line-height: var(--kv-section-subheader-line-height);
  letter-spacing: var(--kv-section-subheader-letter-spacing);
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

body.landing-page .landing-subtitle-copy {
  display: inline;
}

body.landing-page .landing-subtitle-copy--mobile {
  display: none;
}

/* KinCrest uses the canonical landing feature header typography and spacing. */
/* Standard cards retain their original contained, single-column structure. */
body.landing-page .landing-feature-pair--primary > .tree-card,
body.landing-page .landing-feature-pair--primary > .timeline-card,
body.landing-page:not(.authenticated-home) .landing-faq__inner{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, auto) auto !important;
  align-content: start !important;
  justify-items: stretch !important;
  row-gap: 0 !important;
  gap: 0 !important;
}

/* KinRoots and KinLine keep one markup source. Below desktop, display: contents
   preserves the existing header → visual → CTA order and all mobile behavior. */
body.landing-page .landing-paired-feature {
  grid-template-areas:
    "intro"
    "visual"
    "cta" !important;
}

body.landing-page .landing-paired-feature__copy {
  display: contents;
}

body.landing-page .landing-paired-feature__copy > .landing-feature-section__header {
  grid-area: intro;
}

body.landing-page .landing-paired-feature__copy > .landing-paired-feature__cta {
  grid-area: cta;
  justify-self: center;
}

body.landing-page .landing-paired-feature__visual {
  grid-area: visual;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: var(--kv-landing-header-content-gap);
}

body.landing-page .timeline-preview-horizontal,
body.landing-page .landing-kinline-add-event {
  display: none !important;
}

/* Standalone previews use one DOM order at every breakpoint: header, visual, CTA. */
body.landing-page .landing-feature-showcase,
body.landing-page .landing-feature-showcase__layout,
body.landing-page .landing-kinsight-preview__inner--quick-glance,
body.landing-page .landing-kinsight-preview__inner,
body.landing-page .landing-sigil-creator > .sigil-creator-card,
body.landing-page .map-row > .map-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "intro"
    "visual"
    "cta" !important;
  grid-template-rows: auto minmax(0, auto) auto !important;
  align-content: start !important;
  align-items: start !important;
  justify-items: stretch !important;
  row-gap: 0 !important;
  gap: 0 !important;
  min-width: 0;
}

/* Flatten the heading wrapper below desktop while Explore remains after the preview. */
body.landing-page .landing-feature-showcase__copy {
  display: contents;
}

body.landing-page .landing-feature-showcase__copy > .landing-feature-section__header {
  grid-area: intro;
}

body.landing-page .landing-feature-showcase__copy > .landing-feature-section__cta,
body.landing-page .landing-feature-showcase__layout > .landing-feature-section__cta,
body.landing-page .landing-feature-showcase > .landing-feature-showcase__cta {
  grid-area: cta;
  justify-self: center;
}

body.landing-page .landing-feature-showcase__copy + .landing-feature-showcase__visual {
  margin-top: var(--kv-landing-header-content-gap) !important;
}

body.landing-page .landing-feature-showcase__intro,
body.landing-page .landing-feature-showcase > .landing-feature-section__header,
body.landing-page .landing-feature-showcase__layout > .landing-feature-section__header {
  grid-area: intro;
  min-width: 0;
}

body.landing-page .landing-feature-showcase__visual {
  grid-area: visual;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Signed-in create actions stay centered beneath their visual preview. On mobile this
   naturally places Add Journey between the map experience and the Explore action. */
body.landing-page.authenticated-home .landing-feature-showcase--journey .landing-kinjourney-add-row {
  display: flex;
  align-self: end;
  justify-content: center;
  width: 100%;
  margin-top: clamp(0.55rem, 0.7vw, 0.72rem);
}

body.landing-page .landing-feature-showcase__copy > .landing-feature-section__cta,
body.landing-page .landing-feature-showcase__layout > .landing-feature-section__cta,
body.landing-page .landing-feature-showcase__cta {
  grid-area: cta;
}

/* The longer supporting copy belongs only to the wide-desktop showcase. */
body.landing-page .landing-feature-section__header .page-section-header__description {
  display: none;
}

/* Every feature begins its visual content at the same distance below the shared header.
   Shared value-card rails keep their own canonical internal padding so Why Kinvella and
   the primary Value rail remain visually identical. */
body.landing-page .landing-feature-section__header + * {
  margin-top: var(--kv-landing-header-content-gap) !important;
}

body.landing-page .landing-feature-section__header + :not(.living-hero__value-cards--responsive-strip) {
  padding-top: 0 !important;
}

body.landing-page:not(.authenticated-home) .landing-story-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  row-gap: 0;
}

body.landing-page:not(.authenticated-home) .landing-story-intro__header {
  width: var(--kv-landing-header-width);
}

/* KinRoots and KinLine use the same external header-to-content gap as Legacy. */
body.landing-page .landing-feature-pair--primary > .tree-card .treeCanvas--landing {
  display: grid !important;
  place-items: start center !important;
  align-self: start !important;
}

body.landing-page .landing-feature-pair--primary > .tree-card .treeCanvas--landing > svg {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
}

.landing-tree-continuation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  color: var(--ofc-sepia);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.35;
  text-decoration: none;
  border-top: 1px solid var(--ofc-gold-soft);
}

.landing-tree-continuation[hidden] { display: none; }
.landing-tree-continuation:hover { text-decoration: underline; }
.landing-tree-continuation:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-shell,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list {
  align-self: start !important;
  align-content: start !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.landing-page .landing-sigil-creator {
  /* One compact header-to-preview rhythm is shared by public Landing and signed-in Home. */
  --kv-landing-header-content-gap: clamp(0.24rem, 0.42vw, 0.36rem);
  --kv-landing-sigil-stage-size: clamp(13.5rem, 25vw, 19rem);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, var(--kv-landing-sigil-stage-size));
  margin: 0 auto;
  isolation: isolate;
  transition: opacity 140ms ease;
}

/* KinCrest's surrounding ornamentation is represented inside the composed sigil itself;
   no exterior olive branches are added by the landing preview. */
body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage::before {
  display: none;
  content: none;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage--hero-match > .sigil-composed--kincrest-summary {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Saved sigils assemble from persisted layers. Keep incomplete layers hidden briefly so
   signed-in users never see a partially composed crest. */
body.landing-page.authenticated-home
  .landing-sigil-creator
  .sigil-creator-card__emblem-stage:has(.sigil-composed--kincrest-summary[data-sigil-storage="true"]:not([data-sigil-ready="true"])) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage,
  body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage > .sigil-composed--kincrest-summary {
    transition: none;
  }
}

/* KinJourney scales the existing migration cards without changing their carousel behavior. */
body.landing-page .map-row .map-sequence-track {
  --map-sequence-node-size: calc(clamp(64.8px, 16.31vw, 83.2px) * var(--map-portrait-scale, 1));
  /* The section owns the subtitle gap; the track already protects enlarged cards. */
  margin-top: 0;
}

@media (max-width: 560px) {
  body.landing-page .map-row .map-sequence-track {
    --map-sequence-node-size: clamp(60.5px, 15.44vw, 74.5px);
  }
}

@media (min-width: 700px) {
  body.landing-page .landing-sigil-creator {
    /* Desktop/tablet needs even less vertical clearance because the visual has
       more horizontal room around the banner/topper artwork. */
    --kv-landing-header-content-gap: clamp(0.34rem, 0.48vw, 0.44rem);
    --kv-landing-sigil-visual-gap: clamp(0.10rem, 0.16vw, 0.14rem);
  }
}

/* Timeline internals may not reintroduce spacing beneath the shared section header. */
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-body,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-avatar-col,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-copy,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-avatar-frame {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (max-width: 640px) {
  body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-avatar-frame {
    width: 3.82rem;
    height: 3.82rem;
  }
}

/* Years follow the rail; names, events and locations share one portrait-height column. */
body.landing-page .timeline-card { container-type: inline-size; }
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-body {
  grid-template-columns: 2.8rem auto minmax(0, 1fr);
  column-gap: 0.55rem;
  width: 100%;
  transform: none;
  align-items: start;
}
body.landing-page .timeline-preview-avatar-col { grid-column: 2; grid-row: 1; padding-left: 0; }
body.landing-page .timeline-preview-copy { grid-column: 3; grid-row: 1; padding: 0; }
body.landing-page .timeline-preview-item:not(.timeline-preview-prompt) .timeline-preview-copy {
  display: grid;
  align-self: center;
  row-gap: 0.125rem;
}

body.landing-page .timeline-preview-body > .timeline-preview-date {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.15rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--ofc-gold-soft) 65%, var(--ofc-cream, #fffaf0));
  color: var(--ofc-brown);
  font: 600 0.8rem/1.3 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
}
body.landing-page .timeline-preview-list { row-gap: var(--landing-timeline-row-gap, 0px); }
body.landing-page .timeline-preview-list::before { width: 1px; box-shadow: none; }
body.landing-page .timeline-preview-list:not(:has(.timeline-preview-date))::before { display: none; }
body.landing-page .timeline-preview-item + .timeline-preview-item { border-top-color: rgba(151, 108, 53, 0.14); }
body.landing-page .timeline-preview-copy .timeline-preview-title {
  margin: 0;
  font: 600 1rem/1.3 var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.landing-page .timeline-preview-copy .timeline-preview-summary {
  margin: 0;
  font: 500 0.73rem/1.4 var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.landing-page .timeline-preview-location {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: var(--ofc-brown);
  font: 400 0.75rem/1.4 var(--font-body);
  overflow-wrap: anywhere;
}
body.landing-page .timeline-preview-location > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.landing-page .timeline-preview-location > .country-flag {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 0.84375rem;
  margin: 0 0.25rem 0 0;
}

@container (max-width: 250px) {
  body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-body {
    grid-template-columns: 2rem 3.625rem minmax(0, 1fr);
    column-gap: 0.25rem;
  }
  body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-avatar-frame {
    width: 3.625rem;
    height: 3.625rem;
  }
  body.landing-page .timeline-preview-copy .timeline-preview-title {
    font: 600 0.85rem/1.3 var(--font-body);
    font-family: var(--font-sans, sans-serif) !important;
  }
}

/* KinCrest premium builder preview -------------------------------------------------------
   Mobile/tablet stack the crest and three-step process. Desktop keeps the shared copy rail,
   then balances the crest beside the same vertically stacked builder steps. */
body.landing-page .landing-sigil-creator .sigil-creator-card--premium {
  --kincrest-gold: color-mix(in srgb, var(--gold) 76%, #9a6725 24%);
  --kincrest-line: color-mix(in srgb, var(--kincrest-gold) 46%, transparent);
  --kincrest-border: color-mix(in srgb, var(--kincrest-gold) 30%, rgba(103, 68, 30, 0.14));
  --kincrest-surface: rgba(255, 251, 242, 0.74);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__visual {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: clamp(0.5rem, 1.25vw, 0.72rem);
  padding-inline: clamp(0.56rem, 1.7vw, 0.82rem);
  box-sizing: border-box;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__center-stage {
  display: grid;
  justify-items: center;
  gap: clamp(0.42rem, 1.25vw, 0.7rem);
  width: 100%;
  min-width: 0;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__composition {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__crest-column {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}

/* Low-contrast construction geometry adds depth without competing with the crest. */
body.landing-page .landing-sigil-creator .sigil-creator-card__crest-column::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(82vw, 21rem);
  aspect-ratio: 1;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 0 31%, color-mix(in srgb, var(--kincrest-gold) 11%, transparent) 31.3% 31.7%, transparent 32% 45%, color-mix(in srgb, var(--kincrest-gold) 8%, transparent) 45.3% 45.7%, transparent 46%),
    repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--kincrest-gold) 8%, transparent) 0deg 0.45deg, transparent 0.45deg 15deg);
  border-radius: 50%;
  opacity: 0.42;
  transform: translate(-50%, -50%);
}

/* The crest is intentionally 10% smaller than the previous mobile treatment. */
body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage {
  width: min(62vw, 13.8rem);
  margin-inline: auto;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__builder-note {
  width: min(100%, 20rem);
  margin: clamp(0.28rem, 1.2vw, 0.48rem) auto clamp(0.48rem, 1.6vw, 0.66rem);
  color: var(--kv-section-ink);
  font: 500 clamp(1.05rem, 2vw, 1.25rem)/1.35 var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif) !important;
  text-align: center;
  text-wrap: balance;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process {
  display: grid;
  width: min(100%, 22.5rem);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--kincrest-border);
  border-radius: 0.92rem;
  background: rgba(255, 252, 245, 0.72);
  box-shadow:
    inset 0 0 0 2px rgba(255, 253, 247, 0.64),
    0 0.5rem 1rem rgba(71, 44, 20, 0.055);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-step {
  display: grid;
  grid-template-columns: clamp(2.7rem, 7.5vw, 3.2rem) clamp(3rem, 8vw, 3.45rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.42rem, 1.7vw, 0.66rem);
  min-height: clamp(4.45rem, 10vw, 5.05rem);
  padding: clamp(0.42rem, 1.4vw, 0.56rem) clamp(0.62rem, 2vw, 0.84rem);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-step + .sigil-creator-card__mobile-process-step {
  border-top: 1px solid color-mix(in srgb, var(--kincrest-gold) 20%, transparent);
}

/* Larger, lighter number medallions make the sequence obvious without looking like buttons. */
body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-number {
  display: grid;
  place-items: center;
  width: clamp(2.25rem, 6.4vw, 2.6rem);
  aspect-ratio: 1;
  justify-self: center;
  color: color-mix(in srgb, var(--kincrest-gold) 82%, #6e451d 18%);
  border: 1px solid color-mix(in srgb, var(--kincrest-gold) 48%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), rgba(250, 239, 214, 0.72));
  box-shadow:
    inset 0 0 0 2px rgba(255, 252, 244, 0.84),
    0 0.22rem 0.5rem rgba(86, 53, 22, 0.08);
  font: 700 clamp(1.1rem, 2.9vw, 1.34rem)/1 var(--font-display, Georgia, serif);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-icon {
  display: grid;
  place-items: center;
  width: clamp(2.85rem, 7vw, 3.25rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--kincrest-gold) 44%, transparent);
  border-radius: 50%;
  background: rgba(255, 251, 241, 0.82);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-icon img {
  display: block;
  width: 64%;
  height: 64%;
  object-fit: contain;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-fleur {
  color: var(--kincrest-gold);
  font: 700 clamp(1.65rem, 4.2vw, 2rem)/1 var(--font-display, Georgia, serif);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  text-align: left;
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-copy strong {
  color: rgba(48, 31, 19, 0.96);
  font: 650 clamp(1.02rem, 2.3vw, 1.18rem)/1.02 var(--font-display, "Cormorant Garamond", Georgia, serif);
}

body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-copy small {
  color: rgba(66, 53, 43, 0.74);
  font: 500 clamp(0.68rem, 1.45vw, 0.79rem)/1.22 var(--font-body, "Manrope", sans-serif);
}

@media (max-width: 699px) {
  body.landing-page .landing-sigil-creator {
    --kv-landing-header-content-gap: clamp(0.36rem, 1.5vw, 0.5rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__visual {
    gap: 0;
    padding-inline: clamp(0.56rem, 3vw, 0.78rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__center-stage {
    gap: 0;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__crest-column {
    min-height: 0;
    padding: 0;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__crest-column::before {
    width: min(78vw, 18rem);
    opacity: 0.3;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage {
    /* Keep the detailed crest comfortably inside narrow screens. */
    width: min(54.5vw, 12.15rem);
    margin-bottom: 0;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__builder-note {
    width: min(100%, 20rem);
    margin: clamp(0.32rem, 1.6vw, 0.48rem) auto clamp(0.46rem, 2vw, 0.62rem);
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process {
    width: min(100%, 22rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-step {
    grid-template-columns: clamp(3rem, 13.6vw, 3.45rem) minmax(0, 1fr);
    min-height: clamp(4.45rem, 19.5vw, 5rem);
    gap: clamp(0.4rem, 2.2vw, 0.62rem);
    padding: clamp(0.4rem, 1.9vw, 0.52rem) clamp(0.6rem, 2.8vw, 0.8rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-number {
    display: none;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-icon {
    width: clamp(2.85rem, 12.8vw, 3.2rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-copy strong {
    font-size: clamp(1.02rem, 4.8vw, 1.18rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-copy small {
    font-size: clamp(0.68rem, 3.15vw, 0.79rem);
  }
}

.landing-tree-actions { display: none; }

@media (min-width: 1100px) {
  /* The visual column becomes a balanced crest-and-builder composition. */
  body.landing-page .landing-sigil-creator .sigil-creator-card__visual {
    display: grid;
    align-content: center;
    padding: var(--kv-desktop-visual-padding-block) var(--kv-desktop-visual-padding-inline) !important;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__center-stage {
    grid-template-columns: minmax(15rem, 0.94fr) minmax(19rem, 1.06fr);
    grid-template-areas:
      "crest process"
      "note process";
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(1.15rem, 1.8vw, 1.75rem);
    row-gap: clamp(0.45rem, 0.72vw, 0.7rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__composition {
    grid-area: crest;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__crest-column {
    min-height: 0;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__crest-column::before {
    width: min(28vw, 21rem);
    opacity: 0.34;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__emblem-stage {
    width: min(100%, clamp(12rem, 14vw, 14rem));
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__builder-note {
    grid-area: note;
    align-self: start;
    width: min(100%, 18rem);
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process {
    grid-area: process;
    grid-template-columns: minmax(0, 1fr);
    align-self: center;
    justify-self: end;
    gap: clamp(0.58rem, 0.82vw, 0.76rem);
    width: 100%;
    max-width: 26rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-step {
    grid-template-columns: 2.7rem 3.15rem minmax(0, 1fr);
    min-height: clamp(5rem, 5.6vw, 5.55rem);
    gap: clamp(0.52rem, 0.72vw, 0.68rem);
    padding: clamp(0.62rem, 0.78vw, 0.74rem) clamp(0.68rem, 0.9vw, 0.84rem);
    border: 1px solid var(--kincrest-border);
    border-radius: 0.82rem;
    background: rgba(255, 252, 245, 0.66);
    box-shadow:
      inset 0 0 0 2px rgba(255, 253, 247, 0.58),
      0 0.32rem 0.72rem rgba(72, 45, 21, 0.05);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-step + .sigil-creator-card__mobile-process-step {
    border-top: 1px solid var(--kincrest-border);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-number {
    width: 2.35rem;
    font-size: 1.08rem;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-icon {
    width: 2.9rem;
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-copy strong {
    font-size: clamp(1rem, 1.12vw, 1.18rem);
  }

  body.landing-page .landing-sigil-creator .sigil-creator-card__mobile-process-copy small {
    font-size: clamp(0.68rem, 0.72vw, 0.78rem);
    line-height: 1.28;
  }
}

/* One footer spacing owner for every shared Home feature, at every breakpoint. */
body.landing-page .landing-feature-stack :is(.landing-feature-section__cta, .landing-paired-feature__cta, .landing-legacy-explore-cta) {
  margin: var(--kv-section-cta-gap) auto var(--kv-section-cta-bottom-gap) !important;
}

body.landing-page .map-row > .map-card .landing-feature-showcase__visual .map-frame,
body.landing-page .map-row > .map-card > .map-full-link {
  margin-top: var(--kv-home-map-top-gap, var(--kv-section-gap)) !important;
}

@media (max-width: 560px) {
  body.landing-page {
    --kv-landing-header-title-size: clamp(1.15rem, 5.2vw, 1.6rem);
    --kv-landing-header-subtitle-size: clamp(0.86rem, 3.25vw, 0.98rem);
    --kv-landing-header-content-gap-base: clamp(0.76rem, 2.5vw, 0.94rem);
  }
}

/* Tablet keeps the existing centered stack. Desktop alone widens the rail and moves
   only the copy and CTA left; KinSight, KinCrest, and KinJourney visuals remain intact. */
@media (min-width: 700px) and (max-width: 1099px) {
  body.landing-page .landing-kinsight-preview,
  body.landing-page .landing-sigil-creator,
  body.landing-page .map-row {
    width: var(--kv-section-rail) !important;
    max-width: var(--kv-section-rail) !important;
    margin-inline: auto !important;
  }

  body.landing-page .landing-sigil-creator > .sigil-creator-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.landing-page .landing-feature-showcase,
  body.landing-page .landing-feature-showcase__layout,
  body.landing-page .landing-kinsight-preview__inner--quick-glance,
  body.landing-page .landing-kinsight-preview__inner,
  body.landing-page .landing-sigil-creator > .sigil-creator-card,
  body.landing-page .map-row > .map-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "intro"
      "visual"
      "cta" !important;
    grid-template-rows: auto minmax(0, auto) auto !important;
    align-items: start !important;
    justify-items: stretch !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }

  body.landing-page .landing-feature-showcase__visual {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  body.landing-page .landing-feature-showcase__copy > .landing-feature-section__cta,
  body.landing-page .landing-feature-showcase__layout > .landing-feature-section__cta,
  body.landing-page .landing-feature-showcase > .landing-feature-showcase__cta {
    align-self: start;
    justify-self: center;
  }

  body.landing-page .landing-feature-showcase .landing-feature-section__button,
  body.landing-page .landing-feature-showcase .map-full-link {
    width: auto !important;
    min-width: 0 !important;
    margin-inline: auto !important;
  }

  body.landing-page .landing-feature-stack .landing-kinsight-preview [data-ks-compare-lab] {
    width: min(100%, 33.5rem);
    margin-inline: auto !important;
  }

  body.landing-page .map-row .landing-feature-showcase__visual {
    display: grid;
    min-width: 0;
  }

  body.landing-page .map-row .landing-feature-showcase__visual .map-frame {
    width: 100% !important;
  }
}

/* Shared landing/Home feature stack ----------------------------------------------------
   Public Landing and authenticated Home use the same section order, rail, copy split,
   and frame containment. Authenticated Home only changes the available rail width to
   account for its fixed sidebar; the feature components themselves stay identical. */
body.landing-page .landing-feature-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--kv-section-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  overflow-x: clip;
}

body.landing-page.authenticated-home .landing-feature-stack {
  width: var(--kv-auth-home-section-rail);
  max-width: var(--kv-auth-home-section-rail);
}

body.landing-page.authenticated-home .landing-feature-stack > .landing-feature-pair--primary,
body.landing-page.authenticated-home .landing-feature-stack .landing-feature-pair--primary > .tree-card,
body.landing-page.authenticated-home .landing-feature-stack .landing-feature-pair--primary > .timeline-card,
body.landing-page.authenticated-home .landing-feature-stack > .landing-kinsight-preview,
body.landing-page.authenticated-home .landing-feature-stack > .map-row,
body.landing-page.authenticated-home .landing-feature-stack > .map-row > .map-card,
body.landing-page.authenticated-home .landing-feature-stack > .landing-sigil-creator,
body.landing-page.authenticated-home .landing-feature-stack > .landing-sigil-creator > .sigil-creator-card,
body.landing-page.authenticated-home .landing-feature-stack > .landing-portrait-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* One spacing owner prevents old section-specific margins from creating uneven gaps. */
body.landing-page .landing-feature-stack > .landing-feature-pair--primary,
body.landing-page .landing-feature-stack .landing-feature-pair--primary > .tree-card,
body.landing-page .landing-feature-stack .landing-feature-pair--primary > .timeline-card,
body.landing-page .landing-feature-stack > .landing-kinsight-preview,
body.landing-page .landing-feature-stack > .map-row,
body.landing-page .landing-feature-stack > .landing-sigil-creator,
body.landing-page .landing-feature-stack > .landing-portrait-row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 1099px) {
  body.landing-page .landing-feature-stack > .landing-feature-pair--primary {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr) !important;
    gap: 0.375rem !important;
  }

  body.landing-page .landing-feature-pair--primary > .landing-paired-feature {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    align-content: stretch !important;
  }

  body.landing-page .landing-paired-feature__copy > .landing-paired-feature__cta {
    align-self: end;
  }
}

@media (min-width: 1100px) {
  /* One desktop rail formula serves public Landing and signed-in Home. Only the
     available workspace differs when the authenticated sidebar is present. */
  body.landing-page {
    --kv-desktop-feature-gutter: clamp(2.75rem, 4.5vw, 4.5rem);
    --kv-desktop-feature-available-rail: calc(100vw - var(--kv-desktop-feature-gutter) - var(--kv-desktop-feature-gutter));
    --kv-desktop-showcase-rail: min(var(--kv-feature-rail-max), var(--kv-desktop-feature-available-rail));
    --kv-desktop-feature-pair-rail: var(--kv-desktop-showcase-rail);
  }

  body.landing-page.authenticated-home {
    --kv-feature-rail-max: 82rem;
    --kv-desktop-feature-available-rail: calc(
      100dvw
      - var(--auth-side-nav-width, 13.25rem)
      - (var(--auth-side-main-gap, 0.86rem) * 2)
      - var(--kv-feature-workspace-edge, 0.5rem)
    );
    --kv-auth-home-section-rail: var(--kv-desktop-showcase-rail);
  }

  body.landing-page .landing-feature-stack {
    width: var(--kv-desktop-showcase-rail);
    max-width: 100%;
  }

  /* Shared desktop order: KinRoots → KinSight → KinJourney → KinCrest → KinLine → KinFolk. */
  body.landing-page .landing-feature-stack > .landing-feature-pair--primary {
    display: contents !important;
  }

  body.landing-page .landing-feature-stack #tree { order: 1; }
  body.landing-page .landing-feature-stack #kinsight { order: 2; }
  body.landing-page .landing-feature-stack > .map-row { order: 3; }
  body.landing-page .landing-feature-stack > .landing-sigil-creator { order: 4; }
  body.landing-page .landing-feature-stack #timeline { order: 5; }
  body.landing-page .landing-feature-stack > .landing-portrait-row { order: 6; }

  body.landing-page .landing-feature-stack .landing-feature-pair--primary > .tree-card,
  body.landing-page .landing-feature-stack .landing-feature-pair--primary > .timeline-card,
  body.landing-page .landing-feature-stack > .landing-kinsight-preview,
  body.landing-page .landing-feature-stack > .map-row,
  body.landing-page .landing-feature-stack > .landing-sigil-creator,
  body.landing-page .landing-feature-stack > .landing-portrait-row,
  body.landing-page .landing-feature-stack > .map-row > .map-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }


  /* Canonical desktop geometry: every core experience uses the shared 27 / 73 split.
     The divider is therefore a structural column boundary instead of a section-specific offset. */
  body.landing-page .landing-feature-stack .landing-feature-pair--primary > .tree-card,
  body.landing-page .landing-feature-stack .landing-feature-pair--primary > .timeline-card,
  body.landing-page .landing-feature-stack > .landing-kinsight-preview.landing-feature-frame,
  body.landing-page .landing-feature-stack > .map-row > .map-card.landing-feature-showcase,
  body.landing-page .landing-feature-stack > .landing-sigil-creator > .sigil-creator-card.landing-feature-showcase,
  body.landing-page .landing-feature-stack > .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card {
    grid-template-columns:
      minmax(0, var(--kv-feature-copy-ratio-desktop))
      minmax(0, var(--kv-feature-visual-ratio-desktop)) !important;
  }
}

@media (max-width: 1099px) {
  /* The compact public preview emphasizes the crest; the builder explains each step. */
  body.landing-page .landing-sigil-creator--sample .sigil-creator-card__mobile-process {
    display: none;
  }

  /* Add Event is a desktop secondary action only; mobile Home keeps KinLine focused
     on the timeline preview and its primary Explore CTA. */
  body.landing-page.authenticated-home #timeline .landing-kinline-add-event {
    display: none !important;
  }

  /* Mobile/tablet keeps KinRoots + KinLine paired first, then the same feature order. */
  body.landing-page .landing-feature-stack > .landing-feature-pair--primary { order: 1; }
  body.landing-page .landing-feature-stack > #kinsight { order: 2; }
  body.landing-page .landing-feature-stack > .map-row { order: 3; }
  body.landing-page .landing-feature-stack > .landing-sigil-creator { order: 4; }
  body.landing-page .landing-feature-stack > .landing-portrait-row { order: 5; }
}

@media (min-width: 1100px) {
  body.landing-page {
    /* KinSight shares one desktop scale across public Landing and authenticated Home.
       Its comparison cards are intentionally compact so the section matches the other showcases. */
    --kv-section-cta-bottom-gap: var(--kv-section-gap);
    --kv-kinsight-preview-max-width: calc(36.55rem * 0.92);
    /* Equal-width columns keep the compact comparison balanced without forcing
       portrait cards to inherit excess height from the score content. */
    --kv-kinsight-preview-card-width: calc(clamp(8.59rem, 10.14vw, 11.11rem) * 0.92);
    --kv-kinsight-preview-meter-size: calc(clamp(4.1rem, 9.92vw, 5.06rem) * 0.92);
    --kv-kinsight-preview-ready-size: clamp(0.82rem, 2.1vw, 0.96rem);
    --kv-desktop-copy-padding-block: clamp(1.2rem, 1.55vw, 1.5rem);
    --kv-desktop-copy-padding-inline: clamp(1.4rem, 1.9vw, 1.8rem);
    --kv-desktop-visual-padding-block: clamp(0.82rem, 1.12vw, 1.05rem);
    --kv-desktop-visual-padding-inline: clamp(1.2rem, 1.9vw, 1.8rem);
    --kv-desktop-action-bottom-padding: clamp(0.58rem, 0.76vw, 0.74rem);
    --kv-desktop-title-size: clamp(2.2rem, 2.55vw, 2.65rem);
    --kv-desktop-preview-name-size: clamp(0.95rem, 1.1vw, 1.1rem);
    --kv-desktop-description-size: clamp(0.92rem, 0.95vw, 0.99rem);
    --kv-desktop-rule-gap: clamp(0.68rem, 0.82vw, 0.8rem);
    --kv-desktop-copy-gap: clamp(0.72rem, 0.9vw, 0.88rem);
    --kv-desktop-cta-gap: clamp(1.12rem, 1.35vw, 1.3rem);
  }

  body.landing-page .landing-feature-stack .landing-feature-section__header {
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing-page .landing-feature-stack .landing-feature-section__header::after {
    content: "";
    display: block;
    width: 100%;
    margin-top: var(--kv-section-cta-gap);
    border-top: 1px solid var(--kv-section-border-soft);
  }

  /* Desktop gives KinRoots and KinLine their own full-width horizontal showcase cards.
     Mobile and tablet continue using the existing paired previews and vertical timeline. */
  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase {
    width: var(--kv-desktop-feature-pair-rail) !important;
    max-width: var(--kv-desktop-feature-pair-rail) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: clamp(0.95rem, 1.35vw, 1.2rem) !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase > .tree-card,
  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase > .timeline-card {
    display: grid !important;
    grid-template-areas: "copy visual" !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase > .tree-card,
  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase > .timeline-card {
    height: auto !important;
    min-height: 0 !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__copy {
    grid-area: copy !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-content: center !important;
    align-items: start !important;
    justify-items: start !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: var(--kv-desktop-copy-padding-block) var(--kv-desktop-copy-padding-inline) !important;
    border-right: 1px solid var(--kv-feature-divider-color);
    background:
      radial-gradient(circle at 12% 44%, rgba(255, 255, 255, 0.42), transparent 36%),
      linear-gradient(90deg, rgba(255, 252, 245, 0.42), rgba(247, 229, 198, 0.1));
    box-sizing: border-box !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__copy > .landing-feature-section__header {
    grid-area: auto !important;
    place-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    --kv-landing-header-rule-margin-inline: 0;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__copy .page-section-header__title {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: rgba(43, 27, 18, 0.97) !important;
    font-family: var(--kv-landing-header-title-font) !important;
    font-size: var(--kv-desktop-title-size) !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: 0.025em !important;
    text-align: left !important;
    text-shadow: 0 1px 0 rgba(255, 252, 244, 0.48);
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__copy .page-section-header__subtitle {
    width: min(100%, var(--kv-desktop-feature-subtitle-max-width, 16.5rem)) !important;
    max-width: var(--kv-desktop-feature-subtitle-max-width, 16.5rem) !important;
    margin: var(--kv-landing-header-subtitle-gap) 0 0 !important;
    color: var(--kv-landing-header-subtitle-color) !important;
    font-family: var(--kv-landing-header-subtitle-font) !important;
    font-size: var(--kv-landing-header-subtitle-size) !important;
    font-style: var(--kv-section-subheader-style) !important;
    font-weight: var(--kv-section-subheader-weight) !important;
    line-height: var(--kv-section-subheader-line-height) !important;
    letter-spacing: var(--kv-section-subheader-letter-spacing) !important;
    text-align: left !important;
    text-wrap: balance;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__copy .page-section-header__description {
    display: block !important;
    width: min(100%, 17.5rem) !important;
    max-width: 17.5rem !important;
    margin: var(--kv-desktop-copy-gap) 0 0 !important;
    color: rgba(47, 38, 31, 0.76) !important;
    font-family: "Manrope", "Inter", system-ui, sans-serif !important;
    font-size: var(--kv-desktop-description-size) !important;
    font-weight: 400 !important;
    line-height: 1.58 !important;
    letter-spacing: -0.005em !important;
    text-align: left !important;
    text-wrap: pretty;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__copy > .landing-paired-feature__cta {
    grid-area: auto !important;
    align-self: start !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 2 * var(--kv-section-gap)) !important;
    margin: var(--kv-section-cta-gap) 0 0 !important;
  }

  /* Secondary actions remain with the preview; Explore sits beneath the copy. */
  body.landing-page.authenticated-home .landing-feature-pair--desktop-showcase .landing-kinline-add-event {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 0.48rem;
    width: min(100%, 12.5rem);
    min-height: 2.5rem;
    margin: clamp(0.55rem, 0.7vw, 0.72rem) auto 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: clamp(0.76rem, 0.86vw, 0.88rem);
    text-decoration: none;
  }

  body.landing-page.authenticated-home .landing-feature-pair--desktop-showcase .landing-kinline-add-event__icon {
    width: 1.08rem;
    height: 1.08rem;
    object-fit: contain;
  }

  body.landing-page.authenticated-home .landing-feature-pair--desktop-showcase .landing-kinline-add-event:hover,
  body.landing-page.authenticated-home .landing-feature-pair--desktop-showcase .landing-kinline-add-event:focus-visible {
    transform: translateY(-1px);
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__visual {
    grid-area: visual !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: var(--kv-desktop-visual-padding-block) var(--kv-desktop-visual-padding-inline) !important;
    box-sizing: border-box !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__visual--tree {
    display: grid !important;
    grid-template-areas: "tree-preview" !important;
    place-items: center !important;
    align-content: center !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__visual--tree:has(.landing-tree-actions) {
    grid-template-areas: "tree-preview" "tree-actions" !important;
    row-gap: 0;
    padding-bottom: var(--kv-desktop-action-bottom-padding) !important;
  }

  body.landing-page .landing-tree-actions {
    display: flex;
    grid-area: tree-actions;
    justify-self: center;
    justify-content: center;
    width: min(100%, 18rem);
    margin-top: clamp(0.55rem, 0.7vw, 0.72rem);
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__visual--tree > .treeCanvas--landing {
    grid-area: tree-preview !important;
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__visual--tree > .treeCanvas--landing > svg {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: min(100%, 51rem) !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }


  /* Signed-in Home keeps the same KinRoots scene, but at a more compact 88% scale.
     Scaling the complete SVG preserves card, connector, and relationship geometry. */
  body.landing-page.authenticated-home .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__visual--tree > .treeCanvas--landing > svg {
    width: 88% !important;
    max-width: min(88%, 44.88rem) !important;
  }

  /* The landing preview reuses KinRoots relationship semantics, but keeps the
     labels and node accents intentionally lighter than the full editor. */
  body.landing-page #treeSvg .tree-relation-badge-pill {
    fill: var(--tree-relation-fill, rgba(255, 249, 237, 0.98)) !important;
    stroke: var(--tree-relation-border, rgba(180, 126, 49, 0.45)) !important;
    stroke-width: 0.9px !important;
    filter: drop-shadow(0 3px 6px rgba(67, 42, 18, 0.10));
  }

  body.landing-page #treeSvg .tree-relation-badge-text {
    fill: var(--tree-relation-ink, rgba(73, 47, 21, 0.96)) !important;
    font-family: "Manrope", "Inter", system-ui, sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
  }

  body.landing-page #treeSvg .tree-node-wrap--relationship .tree-node-card {
    stroke-width: 1.7px !important;
  }

  body.landing-page #treeSvg .tree-node-wrap--descendant .tree-node-card {
    fill: rgba(240, 248, 226, 0.96) !important;
    stroke: rgba(125, 153, 88, 0.74) !important;
  }

  body.landing-page #treeSvg .tree-node-wrap--in-law .tree-node-card {
    fill: rgba(236, 243, 253, 0.96) !important;
    stroke: rgba(103, 132, 175, 0.70) !important;
  }

  body.landing-page #treeSvg .tree-node-wrap.is-relationship-selected .tree-node-card {
    stroke: rgba(204, 139, 25, 1) !important;
    stroke-width: 3.1px !important;
    filter:
      drop-shadow(0 0 7px rgba(218, 169, 63, 0.34))
      drop-shadow(0 10px 18px rgba(67, 43, 20, 0.14)) !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .landing-paired-feature__visual--timeline {
    display: grid !important;
    grid-template-rows: auto auto;
    align-content: center !important;
    align-items: center !important;
    justify-items: stretch !important;
  }

  body.landing-page .landing-feature-pair--primary.landing-feature-pair--desktop-showcase .timeline-preview-shell--stacked {
    display: none !important;
  }

  body.landing-page .timeline-preview-horizontal {
    display: block !important;
    width: 100%;
    min-width: 0;
    margin-top: clamp(0.28rem, 0.38vw, 0.38rem);
  }

  body.landing-page .timeline-preview-horizontal__track {
    --timeline-card-height: 12rem;
    --timeline-marker-line-y: calc(var(--timeline-card-height) + 3.4rem);
    --timeline-portrait-size: 5rem;
    --timeline-marker-size: 1rem;
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
    width: 100%;
    min-width: 0;
    padding: 0 0.5rem 0.5rem;
    box-sizing: border-box;
  }

  body.landing-page .timeline-preview-horizontal__track::before {
    content: "";
    position: absolute;
    top: var(--timeline-marker-line-y);
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: rgba(183, 128, 38, 0.72);
  }

  body.landing-page .timeline-preview-horizontal__item {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: start;
    min-width: 0;
    padding-bottom: 4rem;
    text-align: center;
    cursor: pointer;
  }

  /* Match full KinLine cards, allowing narrower slots in the five-event preview. */
  body.landing-page .timeline-preview-horizontal__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 11rem);
    min-width: 0;
    max-width: 100%;
    height: var(--timeline-card-height);
    padding: 0.72rem 0.35rem;
    box-sizing: border-box;
    border: 1px solid rgba(151, 108, 53, 0.28);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(251, 246, 236, 0.9)), rgba(255, 252, 246, 0.88);
    box-shadow: 0 14px 30px rgba(67, 42, 22, 0.09);
  }

  body.landing-page .timeline-preview-horizontal__card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: calc(var(--timeline-marker-line-y) - var(--timeline-card-height));
    background: rgba(159, 113, 31, 0.7);
  }

  body.landing-page .timeline-preview-horizontal__item:hover .timeline-preview-horizontal__card,
  body.landing-page .timeline-preview-horizontal__item:focus-visible .timeline-preview-horizontal__card {
    border-color: rgba(164, 118, 31, 0.82);
    box-shadow: 0 16px 32px rgba(67, 42, 22, 0.12);
  }

  body.landing-page .timeline-preview-horizontal__portrait {
    width: var(--timeline-portrait-size) !important;
    height: var(--timeline-portrait-size) !important;
    flex: none;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-bottom: 0.58rem;
    overflow: hidden !important;
    border-radius: 50% !important;
    border: 2px solid rgba(182, 138, 46, 0.52) !important;
    background: #eadfc7 !important;
    box-shadow: 0 7px 14px rgba(71, 46, 25, 0.1) !important;
  }

  body.landing-page .timeline-preview-horizontal__portrait::before,
  body.landing-page .timeline-preview-horizontal__portrait::after {
    display: none !important;
  }

  body.landing-page .timeline-preview-horizontal__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
  }

  body.landing-page .timeline-preview-horizontal__marker {
    position: absolute;
    top: var(--timeline-marker-line-y);
    left: 50%;
    width: var(--timeline-marker-size);
    height: var(--timeline-marker-size);
    box-sizing: border-box;
    border: 3px solid rgba(164, 118, 31, 0.56);
    border-radius: 50%;
    background: #fffaf0;
    box-shadow: 0 0 0 3px rgba(255, 251, 242, 0.92);
    transform: translate(-50%, -50%);
  }

  body.landing-page .timeline-preview-horizontal__item:hover > .timeline-preview-horizontal__marker,
  body.landing-page .timeline-preview-horizontal__item:focus-visible > .timeline-preview-horizontal__marker {
    border-color: #9f7422;
    background: #b68a2e;
    box-shadow: 0 0 0 4px #fffaf0, 0 0 0 6px rgba(182, 138, 46, 0.26);
  }

  body.landing-page .timeline-preview-horizontal__date {
    position: absolute;
    top: calc(var(--timeline-card-height) + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.35rem 0.45rem;
    border-radius: 0.55rem;
    background: color-mix(in srgb, var(--ofc-gold-soft) 65%, var(--ofc-cream, #fffaf0));
    color: var(--ofc-brown);
    font: 600 0.8rem/1.3 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
  }

  body.landing-page .timeline-preview-horizontal__title {
    display: block;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--ink, #2f2117);
    font-family: var(--font-display, Georgia, serif);
    font-size: var(--kv-desktop-preview-name-size);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.018em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.landing-page .timeline-preview-horizontal__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    max-width: 100%;
    min-height: 1.78rem;
    margin: 0.55rem 0 0;
    padding: 0.28rem 0.35rem;
    box-sizing: border-box;
    border: 1px solid rgba(182, 138, 46, 0.3);
    border-radius: 999px;
    color: #9f7422;
    background: rgba(255, 251, 242, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
  }

  body.landing-page .timeline-preview-horizontal__school {
    max-width: 100%;
    margin: 0.25rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink-soft, #705a43);
    font: 500 0.7rem/1.3 var(--font-body);
  }

  body.landing-page .timeline-preview-horizontal__event-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.landing-page .timeline-preview-horizontal__event-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
  }

  body.landing-page .timeline-preview-horizontal__event-mark > svg {
    width: 100%;
    height: 100%;
  }

  body.landing-page .timeline-preview-horizontal__event-mark > .country-flag {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
  }

  body.landing-page .timeline-preview-horizontal__event-mark:has(> .country-flag) > svg {
    display: none;
  }

  body.landing-page .timeline-preview-horizontal__arrow {
    position: absolute;
    top: calc(var(--timeline-marker-line-y) - 0.45rem);
    right: clamp(0.5rem, 1vw, 0.9rem);
    width: 0.85rem;
    height: 0.85rem;
    border-top: 2px solid rgba(183, 128, 38, 0.85);
    border-right: 2px solid rgba(183, 128, 38, 0.85);
    transform: rotate(45deg);
  }

  /* KinLine and KinFolk retain their compact vertical rhythm while consuming the
     shared wider desktop rail owned by the feature-system tokens. */
  body.landing-page #timeline .landing-paired-feature__copy {
    padding-block: clamp(1.08rem, 1.4vw, 1.34rem) !important;
  }

  body.landing-page #timeline .landing-paired-feature__visual--timeline {
    padding-block: clamp(0.7rem, 0.96vw, 0.88rem) !important;
  }

  body.landing-page #timeline .timeline-preview-horizontal {
    margin-top: clamp(0.22rem, 0.3vw, 0.3rem);
  }

  body.landing-page .landing-portrait-row .landing-legacy-topbar {
    padding-block: clamp(1.08rem, 1.4vw, 1.34rem);
  }

  body.landing-page .landing-portrait-row .summary-founders-shell {
    padding-top: clamp(0.72rem, 0.98vw, 0.9rem) !important;
  }

  body.landing-page .landing-kinfolk-preview .home-legacy-preview__card.legacy-family-card {
    min-height: clamp(10.7rem, 13.35vw, 11.6rem);
    padding-block: clamp(0.44rem, 2.2cqi, 0.56rem);
  }

  body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__portrait-ring {
    width: clamp(4.55rem, 52cqi, 5.55rem);
  }

  body.landing-page .landing-portrait-row .summary-legacy-actions {
    margin-top: clamp(0.55rem, 0.7vw, 0.72rem);
    padding-top: 0;
    padding-bottom: var(--kv-desktop-action-bottom-padding);
  }

  /* KinSight, KinCrest, and KinJourney use the same desktop copy rail as KinRoots and
     KinLine. Their existing preview internals remain unchanged in the visual column. */
  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance.landing-feature-frame {
    padding: 0 !important;
    padding-block: 0 !important;
    padding-inline: 0 !important;
    overflow: hidden !important;
  }

  /* KinSight's wrapper is structural only. Flattening it makes the canonical
     frame own the same copy/visual grid used by KinLine and KinJourney. */
  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance.landing-feature-frame
    > .landing-kinsight-preview__inner.landing-feature-showcase__layout {
    display: contents !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance.landing-feature-frame,
  body.landing-page .map-row > .map-card.landing-feature-showcase {
    display: grid !important;
    grid-template-areas: "copy visual" !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    gap: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* KinCrest is declared in the shared desktop grid here, then its premium variant below
     deliberately expands to the full rail for the builder-preview composition. */
  body.landing-page .landing-sigil-creator > .sigil-creator-card.landing-feature-showcase {
    display: grid !important;
    grid-template-areas: "copy visual" !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    gap: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.landing-page .landing-feature-showcase__copy {
    grid-area: copy !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "intro" "cta" !important;
    grid-template-rows: auto !important;
    align-content: center !important;
    align-items: start !important;
    justify-items: start !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: var(--kv-desktop-copy-padding-block) var(--kv-desktop-copy-padding-inline) !important;
    border-right: 1px solid var(--kv-feature-divider-color);
    background:
      radial-gradient(circle at 12% 44%, rgba(255, 255, 255, 0.42), transparent 36%),
      linear-gradient(90deg, rgba(255, 252, 245, 0.42), rgba(247, 229, 198, 0.1));
    box-sizing: border-box !important;
  }

  body.landing-page .landing-feature-showcase__copy + .landing-feature-showcase__visual {
    margin-top: 0 !important;
  }

  body.landing-page .landing-feature-showcase__visual {
    grid-area: visual !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: var(--kv-desktop-visual-padding-block) var(--kv-desktop-visual-padding-inline) !important;
    box-sizing: border-box !important;
  }

  body.landing-page .landing-feature-showcase .landing-feature-section__header,
  body.landing-page .landing-feature-showcase__layout .landing-feature-section__header {
    grid-area: intro !important;
    place-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    --kv-landing-header-rule-margin-inline: 0;
  }

  body.landing-page .landing-feature-showcase .landing-feature-section__header .page-section-header__title,
  body.landing-page .landing-feature-showcase__layout .landing-feature-section__header .page-section-header__title {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: rgba(43, 27, 18, 0.97) !important;
    font-family: var(--kv-landing-header-title-font) !important;
    font-size: var(--kv-desktop-title-size) !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: 0.025em !important;
    text-align: left !important;
    text-shadow: 0 1px 0 rgba(255, 252, 244, 0.48);
  }

  body.landing-page .landing-feature-showcase .landing-feature-section__header .page-section-header__subtitle,
  body.landing-page .landing-feature-showcase__layout .landing-feature-section__header .page-section-header__subtitle {
    width: min(100%, var(--kv-desktop-feature-subtitle-max-width, 16.5rem)) !important;
    max-width: var(--kv-desktop-feature-subtitle-max-width, 16.5rem) !important;
    margin: var(--kv-landing-header-subtitle-gap) 0 0 !important;
    color: var(--kv-landing-header-subtitle-color) !important;
    font-family: var(--kv-landing-header-subtitle-font) !important;
    font-size: var(--kv-landing-header-subtitle-size) !important;
    font-style: var(--kv-section-subheader-style) !important;
    font-weight: var(--kv-section-subheader-weight) !important;
    line-height: var(--kv-section-subheader-line-height) !important;
    letter-spacing: var(--kv-section-subheader-letter-spacing) !important;
    text-align: left !important;
    text-wrap: balance;
  }

  body.landing-page .landing-feature-showcase .landing-feature-section__header .page-section-header__description,
  body.landing-page .landing-feature-showcase__layout .landing-feature-section__header .page-section-header__description {
    display: block !important;
    width: min(100%, 17.5rem) !important;
    max-width: 17.5rem !important;
    margin: var(--kv-desktop-copy-gap) 0 0 !important;
    color: rgba(47, 38, 31, 0.76) !important;
    font-family: "Manrope", "Inter", system-ui, sans-serif !important;
    font-size: var(--kv-desktop-description-size) !important;
    font-weight: 400 !important;
    line-height: 1.58 !important;
    letter-spacing: -0.005em !important;
    text-align: left !important;
    text-wrap: pretty;
  }

  body.landing-page .landing-feature-showcase__copy > .landing-feature-section__cta,
  body.landing-page .landing-feature-showcase__layout > .landing-feature-section__cta,
  body.landing-page .landing-feature-showcase > .landing-feature-showcase__cta {
    grid-area: cta !important;
    display: flex !important;
    align-self: start !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 2 * var(--kv-section-gap)) !important;
    margin: var(--kv-section-cta-gap) 0 0 !important;
  }

  body.landing-page .landing-feature-showcase .landing-feature-section__button,
  body.landing-page .landing-feature-showcase .map-full-link,
  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance .landing-kinsight-preview__button {
    align-self: start !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Compact portrait tracks remain fluid when the workspace is narrower. */
  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance .landing-feature-showcase__visual {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] {
    --ks-compare-columns:
      minmax(0, var(--kv-kinsight-preview-card-width))
      minmax(0, var(--kv-kinsight-preview-card-width))
      minmax(0, var(--kv-kinsight-preview-card-width));
    --ks-compare-gap: clamp(0.48rem, 0.72vw, 0.62rem);
    width: min(100%, var(--kv-kinsight-preview-max-width)) !important;
    max-width: var(--kv-kinsight-preview-max-width) !important;
    margin: 0 auto !important;
    justify-self: center !important;
  }

  /* The portrait cards define the comparison-row height. The score card stretches to
     that exact row height, eliminating the former short-center/tall-portrait mismatch. */
  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] .ks-resemblance-stage {
    align-items: stretch !important;
    justify-content: center !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] .ks-center-card {
    align-self: stretch !important;
    min-height: 0 !important;
    padding-block: clamp(0.5rem, 1vw, 0.65rem) !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] .ks-person-card__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    background: rgb(255, 250, 241) !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] :is(.ks-score-ring, .ks-loading-ring) {
    width: var(--kv-kinsight-preview-meter-size) !important;
    height: var(--kv-kinsight-preview-meter-size) !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] .ks-center-result--ready {
    font-size: var(--kv-kinsight-preview-ready-size) !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] .ks-person-copy {
    gap: 0.14rem !important;
    padding-bottom: 8px !important;
  }

  /* Match KinRoots' museum-card typography and warm neutral metadata treatment. */
  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] .ks-person-name {
    color: rgba(118, 83, 52, 0.98) !important;
    font-weight: 900 !important;
    letter-spacing: 0.01em !important;
  }

  body.landing-page .landing-kinsight-preview.landing-kinsight-preview--quick-glance [data-ks-compare-lab] .ks-person-dates {
    color: rgba(137, 103, 70, 0.9) !important;
    font-family: var(--font-display, "Cormorant Garamond", Georgia, serif) !important;
  }

  /* KinJourney keeps the portrait carousel beside the compact route preview. */
  body.landing-page .map-row .map-sequence-track {
    /* Reserve space inside the clipped track for the enlarged center card. */
    min-height: 12rem;
    margin-top: clamp(0.9rem, 1.2vw, 1.1rem);
  }

  body.landing-page .map-row .map-sequence-item {
    top: 2.5rem;
    bottom: auto;
  }

  body.landing-page .landing-feature-stack .map-row .landing-feature-showcase__visual,
  body.landing-page .map-row .migration-map-experience {
    display: grid;
    align-content: start;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.landing-page .map-row .landing-feature-showcase__visual {
    /* Compact only the desktop section shell; portrait-card presentation is untouched. */
    padding-block: clamp(0.62rem, 0.85vw, 0.78rem) !important;
  }

  body.landing-page.authenticated-home .landing-feature-showcase--journey .landing-feature-showcase__visual {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }

  body.landing-page .map-row .landing-feature-showcase__visual .map-frame,
  body.landing-page .landing-feature-stack .map-row .live-map-frame,
  body.landing-page .map-row #lmMap.lm-map {
    width: 100% !important;
  }

  body.landing-page .map-row:not(.map-row--showcase) .live-map-frame,
  body.landing-page .map-row:not(.map-row--showcase) #lmMap.lm-map {
    height: clamp(15.54rem, 22.575vw, 17.955rem) !important;
    min-height: clamp(15.54rem, 22.575vw, 17.955rem) !important;
  }

}

/* Mobile frame consistency ---------------------------------------------------------------
   Preserve the established mobile feature content, map sizing, and card rhythm. This block
   only keeps one padding owner for the shared outer feature frame. */
@media (max-width: 1099px) {
  body.landing-page .landing-paired-feature__visual--timeline {
    padding-top: var(--landing-timeline-top-inset, 0px);
  }

  body.landing-page {
    --kv-mobile-feature-frame-padding: clamp(0.62rem, 2.8vw, 0.78rem);
  }

  body.landing-page .landing-feature-frame.raised-card.parchment-card {
    box-sizing: border-box !important;
    padding: var(--kv-mobile-feature-frame-padding) !important;
    padding-block: var(--kv-mobile-feature-frame-padding) !important;
    padding-inline: var(--kv-mobile-feature-frame-padding) !important;
  }

  body.landing-page .landing-feature-frame.raised-card.parchment-card > .landing-kinsight-preview__inner,
  body.landing-page .landing-feature-frame.raised-card.parchment-card > .landing-kinsight-preview__inner--quick-glance {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* Canonical responsive Legacy summary layout ---------------------------------------------
   A single dimensional system owns the summary on every breakpoint. The portrait always
   stays left, the four ancestor text lines share one text axis, and all three pills remain
   on one row without wrapping. */
body.landing-page .landing-portrait-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}































/* Name, role, facts, and pills share the same copy axis. */
























/* Container-based compression keeps the same layout even when the page rail is narrow. */
@container (max-width: 620px) {
  

  

  

  

  

  
}

@container (max-width: 430px) {
  

  

  

  

  

  

  

  
}



/* Family Summary -------------------------------------------------------------------------
   One responsive layout source for the founding portraits and square family metrics. */
body.landing-page:not(.authenticated-home) .landing-portrait-row {
  position: relative;
  z-index: 2;
  overflow: visible !important;
}

body.landing-page .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card {
  --summary-carousel-edge-gap: clamp(0.55rem, 1.6vw, 0.82rem);
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: clamp(1rem, 2.4vw, 2rem) clamp(0.7rem, 2.4vw, 1.8rem) clamp(0.85rem, 2vw, 1.55rem) !important;
  overflow: visible;
  border: 1px solid rgba(199, 148, 58, 0.82) !important;
  border-radius: clamp(18px, 2.2vw, 26px) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 253, 248, 0.82), transparent 58%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 238, 222, 0.97)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 250, 239, 0.74) inset,
    0 0.7rem 1.8rem rgba(78, 48, 21, 0.1) !important;
}

body.landing-page .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card::before {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border: 1px solid rgba(235, 207, 157, 0.52);
  border-radius: calc(clamp(18px, 2.2vw, 26px) - 0.3rem);
  pointer-events: none;
}

body.landing-page .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card::after {
  content: none;
}

body.landing-page .landing-legacy-topbar {
  position: relative;
  z-index: 5000;
  isolation: isolate;
  overflow: visible !important;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  margin: 0 0 var(--summary-carousel-edge-gap);
  padding: 0;
}

body.landing-page .landing-legacy-heading {
  width: 100%;
  min-width: 0;
}

body.landing-page:not(.authenticated-home) .landing-legacy-perspective {
  position: relative;
  z-index: 6000;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

body.landing-page:not(.authenticated-home) .landing-legacy-perspective__label {
  color: rgba(69, 48, 32, 0.74);
  font: 650 clamp(0.64rem, 0.68vw, 0.74rem)/1 var(--font-sans, Inter, system-ui, sans-serif);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy {
  position: relative;
  z-index: 7000;
  overflow: visible !important;
  width: clamp(10.8rem, 13.5vw, 13rem);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__trigger {
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  gap: 0.42rem;
  min-height: 2.2rem;
  padding: 0.18rem 0.52rem 0.18rem 0.24rem;
  border-color: rgba(183, 129, 44, 0.42);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 0.22rem 0.55rem rgba(75, 46, 19, 0.055);
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__portrait {
  width: 30px;
  border-width: 1.5px;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__name {
  font-size: clamp(0.76rem, 0.82vw, 0.88rem);
  font-weight: 600;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__meta {
  display: none;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__chevron {
  width: 0.7rem;
  height: 0.7rem;
}

body.landing-page:not(.authenticated-home) .landing-legacy-perspective__label {
  font-size: clamp(0.725rem, 0.77vw, 0.838rem);
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy {
  width: clamp(12.236rem, 15.296vw, 14.729rem);
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__trigger {
  grid-template-columns: 34px minmax(0, 1fr) 15px;
  min-height: 2.493rem;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__portrait {
  width: 34px;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__name {
  font-size: clamp(0.861rem, 0.93vw, 0.997rem);
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__option {
  grid-template-columns: 45px minmax(0, 1fr) 20px;
  gap: 0.7rem;
  min-height: 59px;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__option-portrait {
  width: 45px;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__option-copy strong {
  font-size: 1.088rem;
  line-height: 1.08;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__option-copy small {
  font-size: 0.759rem;
  line-height: 1.13;
}

body.landing-page:not(.authenticated-home) .focal-person-selector--legacy .focal-person-selector__menu {
  right: 0;
  left: auto;
  z-index: 9999 !important;
  width: min(20.39rem, calc(100vw - 2rem));
}

body.landing-page .summary-family-carousel__stage {
  position: relative;
  z-index: 1;
}

body.landing-page .summary-card--capsule .summary-founders-shell {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  gap: clamp(0.38rem, 0.9vw, 0.62rem) !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.landing-page .summary-family-carousel {
  --summary-carousel-gap: clamp(10px, 2.7vw, 12px);
  position: relative;
  z-index: 1;
  --summary-carousel-padding: clamp(12px, 3.6vw, 16px);
  --summary-carousel-card-width: calc((100% - (var(--summary-carousel-gap) * 3)) / 2.16);
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.landing-page .summary-family-carousel__stage {
  position: relative;
  width: 100%;
  min-width: 0;
}

body.landing-page .summary-family-carousel__viewport {
  display: flex;
  align-items: stretch;
  gap: var(--summary-carousel-gap);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.18rem var(--summary-carousel-padding);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--summary-carousel-padding);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  overscroll-behavior-block: auto;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

body.landing-page .summary-family-carousel__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.landing-page .summary-family-carousel__viewport.is-jumping {
  scroll-behavior: auto !important;
  scroll-snap-type: none;
}

/* Desktop pointer dragging follows the KinSight rail while touch remains native. */
body.landing-page .summary-family-carousel__viewport.is-dragging {
  scroll-behavior: auto !important;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

body.landing-page .summary-family-carousel__viewport.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

body.landing-page .summary-family-carousel__viewport:focus-visible {
  outline: 2px solid rgba(126, 82, 26, 0.72);
  outline-offset: 3px;
  border-radius: 18px;
}

body.landing-page .summary-family-carousel__slide {
  display: flex;
  align-items: flex-start;
  flex: 0 0 var(--summary-carousel-card-width);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  container-type: inline-size;
  container-name: summary-family-member;
}

/* On phones, JavaScript centers each two-card window so both outer peeks stay symmetrical. */
@media (max-width: 599px) {
  body.landing-page .summary-family-carousel__viewport {
    scroll-snap-type: none;
  }

  body.landing-page .summary-family-carousel__slide {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
}

/* Landing/Home Legacy card typography retains the existing compact scale; relationship
   labels receive an additional 5% lift without changing the full Legacy directory. */
body.landing-page .summary-family-carousel__card.legacy-family-card .legacy-family-card__generation {
  font-size: clamp(6.8px, 4.79cqi, 8.24px);
  line-height: 1.08;
}

body.landing-page .summary-family-carousel__card.legacy-family-card .legacy-family-card__relationship {
  font-size: clamp(7.35px, 5.89cqi, 9.36px);
  line-height: 1.04;
}

body.landing-page .summary-family-carousel__card.legacy-family-card .legacy-family-card__relationship--long {
  font-size: clamp(6.76px, 5.13cqi, 8.38px);
  line-height: 1.04;
}

body.landing-page .summary-family-carousel__card.legacy-family-card.is-focal-person .legacy-family-card__relationship {
  font-size: clamp(7.79px, 6.16cqi, 9.84px);
  line-height: 1.04;
}

body.landing-page .summary-family-carousel__card.legacy-family-card .legacy-family-card__name {
  font-size: clamp(14.42px, 11.95cqi, 18.54px);
  line-height: 1.08;
}

body.landing-page .summary-family-carousel__card.legacy-family-card .legacy-family-card__fact {
  font-size: clamp(11.85px, 9.79cqi, 15.45px);
  line-height: 1.16;
}

body.landing-page .summary-family-carousel__card.legacy-family-card .legacy-family-card__traits > span {
  /* Grow gently with the card and stop around the 500px card-width range. */
  font-size: clamp(7.75px, calc(6.8px + 0.74cqi), 10.5px);
  line-height: 1.14;
}

/* Legacy family-card visuals are owned by components/legacy-family-card.css.
   This file owns only the carousel rail, edit affordances, arrows and pagination. */
@media (hover: hover) and (pointer: fine) {
  body.landing-page .summary-family-carousel__viewport { cursor: grab; }
}

body.landing-page .summary-family-carousel__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(55, 36, 24, 0.96);
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

body.landing-page .summary-family-carousel__arrow--previous {
  left: -2px;
}

body.landing-page .summary-family-carousel__arrow--next {
  right: -2px;
}

body.landing-page .summary-family-carousel__arrow-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(183, 128, 43, 0.58);
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 0.28rem 0.68rem rgba(71, 45, 21, 0.1);
}

body.landing-page .summary-family-carousel__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.landing-page .summary-family-carousel__arrow:focus-visible {
  outline: 2px solid rgba(132, 86, 25, 0.88);
  outline-offset: 1px;
  border-radius: 50%;
}

body.landing-page .summary-family-carousel__arrow:active .summary-family-carousel__arrow-visual {
  transform: scale(0.97);
}

body.landing-page .summary-family-carousel.is-static .summary-family-carousel__arrow {
  display: none;
}

body.landing-page .summary-family-carousel__status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 16px;
  margin-top: clamp(4px, 0.72vw, 7px);
  padding-inline: var(--summary-carousel-padding);
  color: rgba(52, 35, 24, 0.82);
  box-sizing: border-box;
}

body.landing-page .summary-family-carousel__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.landing-page .summary-family-carousel__dots > span {
  display: block;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(178, 127, 49, 0.62);
  border-radius: 50%;
  background: rgba(242, 222, 184, 0.46);
  box-sizing: border-box;
}

body.landing-page .summary-family-carousel__dots > .is-active {
  width: 6px;
  height: 6px;
  border-color: rgba(168, 110, 27, 0.88);
  background: rgba(190, 132, 38, 0.76);
}

body.landing-page .summary-family-carousel__counter {
  position: absolute;
  right: var(--summary-carousel-padding);
  top: 50%;
  transform: translateY(-50%);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 2.9vw, 13px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* Preserve polite carousel announcements without rendering duplicate visible copy. */
body.landing-page .summary-family-carousel__live {
  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;
}

@media (min-width: 600px) and (max-width: 899px) {
  body.landing-page .summary-family-carousel {
    --summary-carousel-card-width: calc((100% - (var(--summary-carousel-gap) * 3)) / 3.12);
  }
}

@media (min-width: 900px) {
  body.landing-page .summary-family-carousel {
    --summary-carousel-card-width: clamp(11.5rem, 18vw, 13.75rem);
  }
}

@media (max-width: 360px) {
  body.landing-page .summary-family-carousel {
    --summary-carousel-gap: 9px;
    --summary-carousel-padding: 10px;
  }

  body.landing-page .summary-family-carousel__arrow--previous {
    left: -4px;
  }

  body.landing-page .summary-family-carousel__arrow--next {
    right: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.landing-page .summary-family-carousel__viewport {
    scroll-behavior: auto;
  }

  body.landing-page .summary-family-carousel__card {
    transition: none;
  }
}


@media (max-width: 899px) {
  body.landing-page:not(.authenticated-home) .landing-legacy-perspective {
    position: relative;
    top: auto;
    right: auto;
    justify-self: center;
    margin-top: 0.45rem;
  }

  body.landing-page:not(.authenticated-home) .focal-person-selector--legacy {
    width: clamp(11.55rem, 52.8vw, 13.75rem);
  }
}

@media (max-width: 1099px) {
  body.landing-page .landing-subtitle-copy--desktop {
    display: none;
  }

  body.landing-page .landing-subtitle-copy--mobile {
    display: inline;
  }

  body.landing-page .landing-feature-section__header .page-section-header__subtitle {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding-inline: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-wrap: balance !important;
    box-sizing: border-box !important;
  }


  body.landing-page .landing-legacy-heading .page-section-header__subtitle {
    margin-bottom: 0.2rem !important;
  }
}


@media (max-width: 430px) {
  body.landing-page .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card {
    padding-inline: 0.48rem !important;
  }

}



/* KinFolk preview uses one shared carousel component on public Landing and Home. */
body.landing-page .landing-portrait-row,
body.landing-page .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card,
body.landing-page .summary-card--capsule .summary-founders-shell,
body.landing-page .landing-kinfolk-preview,
body.landing-page .landing-kinfolk-preview .summary-family-carousel__stage,
body.landing-page .landing-kinfolk-preview .home-legacy-preview__viewport {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Shared KinFolk previews show four compact cards: a desktop row or a two-row phone grid.
   The dedicated KinFolk page remains the full multi-column directory. */
body.landing-page .landing-kinfolk-preview {
  --summary-carousel-rows: 1;
  --summary-carousel-gap: clamp(0.62rem, 0.8vw, 0.82rem);
  --summary-carousel-padding: clamp(2.25rem, 3vw, 2.75rem);
  /* Card widths resolve only against the scroll viewport. The arrow gutter lives on the
     stage so neighboring cards can never peek through viewport padding at a settled stop. */
  --summary-carousel-card-width: calc((100% - (var(--summary-carousel-gap) * 3)) / 4);
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.landing-page .landing-kinfolk-preview .summary-family-carousel__stage {
  width: 100%;
  padding-inline: var(--summary-carousel-padding);
  box-sizing: border-box;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__viewport {
  /* Keep slide offsets local to the scroll viewport; the carousel runtime aligns using
     offsetLeft, so the stage's external arrow gutter must not enter that coordinate space. */
  position: relative;
  align-items: stretch;
  padding: 0.16rem 0;
  scroll-padding-inline: 0;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 var(--summary-carousel-card-width);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  container-type: inline-size;
  container-name: home-legacy-member;
}

body.landing-page .landing-kinfolk-preview.has-invitations .home-legacy-preview__viewport {
  justify-content: space-between;
  cursor: default;
}

body.landing-page .kinfolk-invitation {
  flex: 0 0 var(--summary-carousel-card-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.35rem;
  border: 0;
  background: transparent;
  text-align: center;
}

body.landing-page .kinfolk-invitation[hidden] { display: none; }

body.landing-page .kinfolk-invitation__portrait {
  width: clamp(3.25rem, 5vw, 5rem);
  aspect-ratio: 1;
  margin-bottom: 0.8rem;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card[data-starter-preview-card] {
  pointer-events: none;
  cursor: default;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card.legacy-family-card {
  align-self: stretch;
  min-height: 0;
  aspect-ratio: auto;
  grid-template-rows: auto auto auto;
  align-content: start;
  padding: clamp(0.55rem, 2.75cqi, 0.68rem) clamp(0.44rem, 2.8cqi, 0.58rem) clamp(0.55rem, 2.75cqi, 0.68rem);
  border-radius: clamp(0.88rem, 7.5cqi, 1.08rem);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__relationship {
  min-height: 1.42rem;
  padding-block: 0.15rem;
  font-size: clamp(7.48px, 6cqi, 9.5px);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__generation {
  font-size: clamp(7.26px, 5.12cqi, 8.8px);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__portrait-stage {
  margin-top: clamp(0.265rem, 2.31cqi, 0.375rem);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__portrait-ring {
  width: clamp(3.5rem, 56cqi, 5rem);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__olive {
  width: clamp(1.8rem, 24cqi, 2.55rem);
  opacity: 0.18;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__identity {
  margin-top: clamp(0.31rem, 2.53cqi, 0.42rem);
  overflow: visible;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__name {
  font-size: var(--kv-desktop-preview-name-size, clamp(0.99rem, 10.78cqi, 1.19rem));
}

/* Keep the calendar and briefcase metadata visible in the slim preview cards. */
body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__fact {
  gap: clamp(0.22rem, 2.2cqi, 0.33rem);
  margin-top: clamp(0.265rem, 2.42cqi, 0.35rem);
  font-size: clamp(0.77rem, 8.36cqi, 0.9rem);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__fact svg {
  width: clamp(0.79rem, 8.14cqi, 0.95rem);
  height: clamp(0.79rem, 8.14cqi, 0.95rem);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__traits > span {
  padding: clamp(2.75px, 2.53cqi, 4.4px) clamp(5.5px, 4.18cqi, 8.8px);
  font-size: clamp(7.48px, 5.28cqi, 9.35px);
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__fact > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__fact--lifespan > span {
  white-space: normal;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__missing-detail--occupation {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin-top: clamp(0.22rem, 2cqi, 0.3rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(96, 76, 59, 0.62);
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(0.66rem, 7.4cqi, 0.78rem);
  font-weight: 500;
  line-height: 1.08;
  white-space: nowrap;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__missing-detail--occupation > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing-page .landing-kinfolk-preview .home-legacy-preview__card .legacy-family-card__missing-detail--occupation svg {
  width: 0.78rem;
  height: 0.78rem;
  opacity: 0.7;
}

@media (max-width: 1099px) {
  /* KinFolk follows the same mobile hierarchy as the other feature sections:
     shared header, visual content, secondary controls, then the primary Explore CTA. */
  body.landing-page .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card {
    grid-template-areas:
      "legacy-heading"
      "legacy-perspective"
      "legacy-gallery"
      "legacy-actions"
      "legacy-cta";
    grid-template-rows: auto auto auto auto auto;
    align-items: start;
  }

  /* Flatten the desktop heading wrapper to preserve the shared mobile order. */
  body.landing-page .landing-legacy-topbar {
    display: contents;
  }

  body.landing-page .landing-legacy-heading {
    grid-area: legacy-heading;
  }

  body.landing-page .summary-card--capsule .summary-founders-shell {
    grid-area: legacy-gallery;
    margin-top: var(--kv-landing-header-content-gap) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-legacy-perspective {
    grid-area: legacy-perspective;
  }

  body.landing-page .summary-legacy-actions {
    grid-area: legacy-actions;
  }

  body.landing-page .landing-legacy-explore-cta {
    grid-area: legacy-cta;
    justify-self: center;
  }
}

@media (min-width: 1100px) {
  body.landing-page .landing-portrait-row {
    width: 100%;
    max-width: 100%;
  }

  body.landing-page .landing-kinfolk-preview {
    --summary-carousel-gap: clamp(0.55rem, 0.68vw, 0.72rem);
    --summary-carousel-padding: clamp(1.3rem, 1.75vw, 1.7rem);
  }

  body.landing-page .landing-kinfolk-preview .home-legacy-preview__card.legacy-family-card {
    min-height: 0;
    height: auto;
    padding-top: clamp(0.59rem, 2.7cqi, 0.7rem);
    padding-bottom: clamp(0.59rem, 2.7cqi, 0.7rem);
  }

  /* KinFolk follows the same copy-left / visual-right composition as every shared
     feature showcase and previews one carousel row in both public and Home contexts. */
  body.landing-page .landing-portrait-row > .summary-card--capsule.raised-card.parchment-card {
    grid-template-areas:
      "legacy-copy legacy-perspective"
      "legacy-copy legacy-gallery"
      "legacy-copy legacy-actions" !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  body.landing-page .landing-legacy-topbar {
    grid-area: legacy-copy;
    align-self: stretch;
    display: grid;
    grid-template-rows: auto;
    align-content: center;
    justify-items: start;
    width: 100%;
    margin: 0;
    padding: var(--kv-desktop-copy-padding-block) var(--kv-desktop-copy-padding-inline);
    border-right: 1px solid var(--kv-feature-divider-color);
    background:
      radial-gradient(circle at 12% 44%, rgba(255, 255, 255, 0.42), transparent 36%),
      linear-gradient(90deg, rgba(255, 252, 245, 0.42), rgba(247, 229, 198, 0.1));
    box-sizing: border-box;
  }

  body.landing-page .landing-legacy-heading {
    align-self: center;
    width: 100%;
    max-width: 100%;
  }

  body.landing-page .landing-legacy-heading .landing-feature-section__header {
    place-items: start;
    align-items: flex-start;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    --kv-landing-header-rule-margin-inline: 0;
  }

  body.landing-page .landing-legacy-heading .page-section-header__title {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: rgba(43, 27, 18, 0.97);
    font-size: var(--kv-desktop-title-size);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: 0.025em;
    text-align: left;
    text-shadow: 0 1px 0 rgba(255, 252, 244, 0.48);
  }

  body.landing-page .landing-legacy-heading > .landing-section-divider {
    margin-left: 0;
    margin-right: 0;
  }

  body.landing-page .landing-legacy-heading .page-section-header__subtitle {
    width: min(100%, var(--kv-desktop-feature-subtitle-max-width, 16.5rem));
    max-width: var(--kv-desktop-feature-subtitle-max-width, 16.5rem);
    margin: var(--kv-landing-header-subtitle-gap) 0 0;
    text-align: left;
    text-wrap: balance;
  }

  body.landing-page .landing-legacy-heading .page-section-header__description {
    display: block;
    width: min(100%, 17.5rem);
    max-width: 17.5rem;
    margin: var(--kv-desktop-copy-gap) 0 0;
    color: rgba(47, 38, 31, 0.76);
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: var(--kv-desktop-description-size);
    font-weight: 400;
    line-height: 1.58;
    letter-spacing: -0.005em;
    text-align: left;
    text-wrap: pretty;
  }

  body.landing-page .landing-legacy-topbar > .landing-legacy-explore-cta {
    grid-area: auto;
    align-self: start;
    justify-self: start;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: var(--kv-section-cta-gap) 0 0 !important;
  }

  body.landing-page:not(.authenticated-home) .landing-legacy-perspective {
    grid-area: legacy-perspective;
    align-self: end;
    justify-self: center;
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 0;
    padding: clamp(0.42rem, 0.58vw, 0.56rem) var(--kv-desktop-visual-padding-inline) clamp(0.18rem, 0.28vw, 0.26rem);
    box-sizing: border-box;
  }

  body.landing-page .summary-card--capsule .summary-founders-shell {
    grid-area: legacy-gallery;
    align-self: center;
    width: 100% !important;
    padding: var(--kv-desktop-visual-padding-block) var(--kv-desktop-visual-padding-inline) !important;
    box-sizing: border-box;
  }

  body.landing-page .summary-card--capsule:has(.summary-legacy-actions) .summary-founders-shell {
    padding-bottom: 0 !important;
  }

  body.landing-page .summary-legacy-actions {
    grid-area: legacy-actions;
    align-self: start;
    padding: clamp(0.24rem, 0.34vw, 0.34rem) var(--kv-desktop-visual-padding-inline) var(--kv-desktop-visual-padding-block);
    box-sizing: border-box;
  }
}

@media (max-width: 1099px) {
  body.landing-page .landing-kinfolk-preview {
    --summary-carousel-padding: clamp(1.8rem, 4vw, 2.2rem);
  }
}

@media (max-width: 599px) {
  body.landing-page .landing-kinfolk-preview {
    --summary-carousel-gap: clamp(0.48rem, 2vw, 0.62rem);
    --summary-carousel-padding: clamp(0.7rem, 3vw, 0.95rem);
    --summary-carousel-rows: 2;
    --summary-carousel-card-width: calc((100% - var(--summary-carousel-gap)) / 2);
  }

  body.landing-page .landing-kinfolk-preview .home-legacy-preview__viewport {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: var(--summary-carousel-card-width);
  }
}

/* Legacy feature actions: edit shortcuts and a clear route into the full Legacy page. */
body.landing-page .summary-family-carousel__slide,
body.landing-page .landing-kinfolk-preview .home-legacy-preview__item {
  position: relative;
}

body.landing-page :is(.summary-family-carousel__edit, .home-legacy-preview__edit) {
  position: absolute;
  top: clamp(0.52rem, 1vw, 0.72rem);
  right: clamp(0.5rem, 1vw, 0.72rem);
  z-index: 8;
  display: grid;
  place-items: center;
  width: 2.09rem;
  height: 2.09rem;
  border: 1px solid rgba(181, 126, 39, 0.5);
  border-radius: 50%;
  color: #7b5019;
  background: rgba(255, 251, 242, 0.96);
  box-shadow: 0 0.35rem 0.8rem rgba(69, 41, 17, 0.12);
  font-size: 0.99rem;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

body.landing-page :is(.summary-family-carousel__edit, .home-legacy-preview__edit):hover,
body.landing-page :is(.summary-family-carousel__edit, .home-legacy-preview__edit):focus-visible {
  transform: translateY(-1px);
  border-color: #b47a22;
  color: #2d190c;
  background: #f2d48b;
  outline: none;
}

body.landing-page .summary-legacy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.52rem;
  width: 100%;
  margin-top: clamp(0.55rem, 1.25vw, 0.85rem);
}

body.landing-page .summary-legacy-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  width: min(100%, 18rem);
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: clamp(0.76rem, 1.3vw, 0.9rem);
  text-decoration: none;
}

body.landing-page .summary-legacy-cta img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

body.landing-page .summary-legacy-add__person-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.landing-page .summary-legacy-add__icon {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1;
}

@media (max-width: 520px) {
  body.landing-page :is(.summary-family-carousel__edit, .home-legacy-preview__edit) {
    top: 0.45rem;
    right: 0.45rem;
    width: 1.72rem;
    height: 1.72rem;
    font-size: 0.82rem;
  }
}
/* KinJourney content alignment --------------------------------------------------------
   The route summary sits inside the carousel gutter, so expand its rail by that inset.
   On narrow screens the calculation also mirrors the map's established 97% width. */
body.landing-page .landing-feature-stack .map-row .migration-map-experience {
  --kv-kinjourney-route-width: calc(100% + 1.4rem);
  --kv-kinjourney-route-offset: -0.7rem;
}

body.landing-page .landing-feature-stack .map-row .map-route-strip {
  position: relative;
  left: var(--kv-kinjourney-route-offset);
  width: var(--kv-kinjourney-route-width) !important;
  max-width: none !important;
}

@media (max-width: 699px) {
  body.landing-page .landing-feature-stack .map-row .migration-map-experience {
    --kv-kinjourney-route-width: calc(97% + 1.358rem);
    --kv-kinjourney-route-offset: calc(1.5% - 0.679rem);
  }
}

@media (max-width: 640px) {
  body.landing-page .landing-feature-stack .map-row .migration-map-experience {
    --kv-kinjourney-route-width: calc(97% + 1.067rem);
    --kv-kinjourney-route-offset: calc(1.5% - 0.5335rem);
  }
}

/* The desktop section shell owns the common 31 / 69 geometry. */
@media (min-width: 1100px) {
  body.landing-page .landing-feature-stack .map-row .landing-feature-showcase__visual,
  body.landing-page .landing-feature-stack .map-row .migration-map-experience,
  body.landing-page .landing-feature-stack .map-row .map-sequence-host,
  body.landing-page .landing-feature-stack .map-row .lm-map {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.landing-page .landing-feature-stack .map-row .migration-map-experience {
    container-type: inline-size;
    --kv-home-map-top-gap: 0px;
    --map-selector-margin: 0px;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    --kv-journey-column-gap: 1.1rem;
    grid-template-areas: "portraits details" "map map";
    gap: 0.6rem var(--kv-journey-column-gap);
  }

  body.landing-page .landing-feature-stack .map-row .map-top-row,
  body.landing-page .landing-feature-stack .map-row .map-sequence-host {
    display: contents !important;
  }

  body.landing-page .landing-feature-stack .map-row .map-sequence-track {
    --map-sequence-node-size: clamp(56px, 9cqi, 88px);
    --landing-person-frame-feature-band: 2px;
    --landing-person-frame-feature-inner-line: 0.5px;
    grid-area: portraits;
    align-self: center;
    min-width: 0;
    width: 100%;
    margin: 0;
  }

  body.landing-page .landing-feature-stack .map-row .map-route-strip {
    grid-area: details;
    align-self: center;
    left: auto;
    width: 100% !important;
    margin: 0 !important;
  }

  body.landing-page .landing-feature-stack .map-row .map-person-summary {
    --map-summary-columns: auto minmax(0, 1fr);
    max-width: 100%;
  }

  body.landing-page .landing-feature-stack .map-row .map-person-summary__content {
    grid-column: 2;
    grid-row: 1;
  }

  body.landing-page .landing-feature-stack .map-row .map-frame,
  body.landing-page .landing-feature-stack .map-row .live-map-frame {
    grid-area: map;
    justify-self: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

}

/* KinJourney Home/Landing summary -------------------------------------------------------
   Each migration stop pairs a date with a compact location label. */
body.landing-page .landing-feature-stack .map-row .map-person-summary {
  gap: clamp(0.66rem, 1.36vw, 1.02rem);
  width: 100% !important;
  min-height: clamp(4.68rem, 8.5vw, 5.2rem);
  margin-inline: auto !important;
  padding: clamp(0.58rem, 1.11vw, 0.78rem) clamp(0.7rem, 1.53vw, 1.02rem);
  border-radius: clamp(0.77rem, 1.45vw, 1.15rem);
  box-sizing: border-box;
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__avatar {
  position: relative;
  width: calc(clamp(3.7rem, 7.23vw, 4.4rem) * var(--map-portrait-scale, 1));
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  box-sizing: border-box;
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__avatar-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit !important;
  clip-path: none;
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__content {
  gap: clamp(0.24rem, 0.5vw, 0.38rem);
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__name {
  font-size: clamp(1.12rem, 2.3vw, 1.45rem);
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: .3rem;
  width: 100%;
  min-width: 0;
  font-size: clamp(0.74rem, 1.1vw, 0.84rem);
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__place {
  position: relative;
  display: grid;
  grid-template-rows: auto;
  align-content: center;
  justify-items: stretch;
  gap: .35rem;
  min-width: 0;
  padding: var(--map-stop-padding, .4rem .45rem);
  overflow: hidden;
  border: var(--map-stop-border, 1px solid rgba(193, 145, 63, 0.36));
  border-radius: clamp(0.58rem, 0.82vw, 0.72rem);
  background: var(--map-stop-background,
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76), transparent 48%),
    rgba(255, 249, 238, 0.76));
  box-shadow: var(--map-stop-shadow,
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0.24rem 0.55rem rgba(73, 45, 20, 0.055));
  box-sizing: border-box;
  grid-template-columns: var(--map-stop-columns);
  align-items: center;
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__place::before {
  content: none;
  position: absolute;
  top: 0.22rem;
  left: 50%;
  width: 0.24rem;
  height: 0.24rem;
  border: 1px solid rgba(187, 132, 44, 0.5);
  background: rgba(255, 250, 239, 0.92);
  transform: translateX(-50%) rotate(45deg);
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__year {
  display: block;
  width: 100%;
  padding-top: 0;
  color: var(--map-stop-date-color, rgba(135, 88, 28, 0.96));
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255, 252, 242, 0.82);
  white-space: nowrap;
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__location {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: rgba(48, 32, 21, 0.92);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: var(--map-stop-location-wrap, nowrap);
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  font-size: .76rem;
}

body.landing-page .landing-feature-stack .map-row .map-person-summary__arrow {
  align-self: end;
  margin-bottom: clamp(0.52rem, 0.82vw, 0.68rem);
  color: rgba(190, 139, 43, 0.92);
  font-size: clamp(1.22rem, 2.35vw, 1.72rem);
  line-height: 1;
}

body.landing-page .map-person-summary__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--kv-section-muted);
  font: 600 0.75rem/1.3 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}

body.landing-page .map-person-summary__toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

body.landing-page .map-person-summary__toggle[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

body.landing-page .map-person-summary__toggle:focus-visible {
  outline: 2px solid var(--kv-section-gold);
  outline-offset: 2px;
}

body.landing-page .map-person-summary__toggle:hover {
  color: var(--kv-section-ink);
}

body.landing-page .map-person-summary__toggle[hidden],
body.landing-page .landing-feature-stack .map-row .map-person-summary__route[hidden] {
  display: none;
}

@media (max-width: 1099px) {
  body.landing-page .map-person-summary__heading {
    align-items: center;
  }

  body.landing-page .landing-feature-stack .map-row .map-person-summary.is-route-collapsed {
    --map-summary-align: center;
    gap: 0.5rem;
    min-height: 0;
    padding: 0.25rem 0.5rem;
    border-width: 1px;
    box-shadow: var(--kv-section-shadow-soft);
  }

  body.landing-page .landing-feature-stack .map-row .map-person-summary.is-route-collapsed .map-person-summary__avatar {
    width: 2.25rem;
  }

  body.landing-page .landing-feature-stack .map-row .map-person-summary.is-route-collapsed .map-person-summary__name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
  }
}

@media (max-width: 700px) {
  body.landing-page .landing-feature-stack .map-row .map-person-summary {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: var(--map-summary-align, start);
    gap: 0.46rem 0.58rem;
    min-height: 0;
    padding: 0.48rem 0.52rem;
    border-radius: 0.78rem;
  }

  body.landing-page .landing-feature-stack .map-row .map-person-summary__avatar {
    grid-row: var(--map-summary-avatar-row, 1);
    width: clamp(3.18rem, 13.4vw, 4rem);
  }

  body.landing-page .landing-feature-stack .map-row .map-person-summary__name {
    font-size: clamp(0.98rem, 4.45vw, 1.24rem);
  }


  body.landing-page .landing-feature-stack .map-row .map-person-summary__place {
    border-radius: 0.56rem;
  }


  body.landing-page .landing-feature-stack .map-row .map-person-summary__arrow {
    margin-bottom: 0.44rem;
    font-size: 1rem;
  }
}


/* Sparse timelines invite real milestones without inventing dated history. */
body.landing-page .timeline-preview-list .timeline-preview-prompt {
  border-bottom: 1px solid rgba(151, 108, 53, 0.14);
}
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-prompt .timeline-preview-body {
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  box-sizing: border-box;
  border: 0;
  background: transparent;
}
body.landing-page .timeline-preview-list .timeline-preview-prompt .timeline-preview-prompt__portrait {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.4rem;
}
body.landing-page .timeline-preview-prompt .timeline-preview-avatar-col { grid-column: 1; }
body.landing-page .timeline-preview-prompt .timeline-preview-copy { grid-column: 2; }

body.landing-page .timeline-preview-prompt__link,
body.landing-page .kinfolk-invitation {
  color: #765634;
  text-decoration: none;
  border-radius: 12px;
}
body.landing-page .timeline-preview-prompt__link:focus-visible,
body.landing-page .kinfolk-invitation:focus-visible {
  outline: 2px solid var(--accent-dark, #966728);
  outline-offset: -2px;
}
body.landing-page .timeline-preview-prompt .timeline-preview-prompt__portrait,
body.landing-page .kinfolk-invitation__portrait {
  display: grid;
  place-items: center;
  border: 1.5px dashed #b79865 !important;
  border-radius: 50%;
  background: rgba(255, 251, 240, 0.7) !important;
  box-shadow: none !important;
  color: #a17b3f;
  font: 300 1.8rem/1 "Manrope", sans-serif;
}
body.landing-page .timeline-preview-prompt__label,
body.landing-page .timeline-preview-prompt__hint { display: block; }
body.landing-page .timeline-preview-prompt__label,
body.landing-page .kinfolk-invitation strong {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}
body.landing-page .timeline-preview-prompt__hint,
body.landing-page .kinfolk-invitation small {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.4;
}
body.landing-page .timeline-preview-prompt__link:hover .timeline-preview-prompt__portrait,
body.landing-page .kinfolk-invitation:hover .kinfolk-invitation__portrait {
  background: #f7ecd5 !important;
  border-color: #967137 !important;
}
@media (min-width: 1100px) {
  body.landing-page .timeline-preview-horizontal__item .timeline-preview-prompt__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    width: 100%;
    height: var(--timeline-card-height);
  }
  body.landing-page .timeline-preview-horizontal__item .timeline-preview-copy {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0.8rem;
  }
  body.landing-page .timeline-preview-prompt .timeline-preview-horizontal__marker {
    background: #fff9ed;
    border: 1px dashed #b79865;
    box-shadow: none;
  }
}


@media (prefers-reduced-motion: no-preference) {
  body.landing-page :is(.kinvella-onboarding-panel__person-portrait, .timeline-preview-prompt__portrait).is-inviting {
    animation: var(--person-invitation-motion);
  }
}
