.family-tree-shell {
  --family-night: #07151b;
  --family-night-raised: #0d222a;
  --family-night-soft: #14313a;
  --family-vellum: #f5f0e7;
  --family-vellum-deep: #e8dfd0;
  --family-ink: #172126;
  --family-ink-soft: #46545a;
  --family-line: rgba(23, 33, 38, .16);
  --family-kessler: #4ea5d9;
  --family-radin: #aa8ed6;
  --family-hahn: #e3b85e;
  --family-stein: #df7e72;
  min-height: 100dvh;
  background: var(--family-vellum);
  color: var(--family-ink);
}

.family-tree-loading {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(78, 165, 217, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 165, 217, .08) 1px, transparent 1px),
    var(--family-night, #07151b);
  background-size: 32px 32px;
}

.family-tree-loading::after {
  content: "Tracing the family lines";
  color: #d8e4e7;
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: family-loading-pulse 1.4s ease-in-out infinite alternate;
}

.family-masthead-note {
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #dce8e9;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.family-masthead-note strong {
  color: #f0c36c;
  font-size: inherit;
  font-weight: 700;
}

.family-masthead-note span {
  color: #8fa2aa;
}

.family-tree-shell main {
  overflow: clip;
}

.family-hero {
  position: relative;
  min-height: min(900px, calc(100svh - var(--masthead)));
  display: grid;
  grid-template-columns: minmax(370px, .78fr) minmax(590px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 4vw, 76px);
  overflow: hidden;
  padding: clamp(72px, 8vw, 128px) clamp(28px, 5vw, 84px);
  background:
    radial-gradient(circle at 74% 38%, rgba(78, 165, 217, .13), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(223, 126, 114, .1), transparent 28%),
    linear-gradient(rgba(206, 232, 240, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 232, 240, .035) 1px, transparent 1px),
    var(--family-night);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: #eef4f1;
}

.family-hero::before {
  content: "DIRECT LINES · FAMILY RECORD";
  position: absolute;
  top: 28px;
  left: clamp(28px, 5vw, 84px);
  color: rgba(219, 235, 238, .34);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
}

.family-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -280px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(255, 255, 255, .018),
    0 0 0 144px rgba(255, 255, 255, .012);
  pointer-events: none;
}

.family-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.family-eyebrow {
  margin: 0 0 18px;
  color: #5d747b;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.family-hero .family-eyebrow,
.family-section-heading--dark .family-eyebrow {
  color: #8da4ab;
}

.family-hero h1 {
  max-width: 620px;
  margin: 0;
  color: #f6f0e6;
  font-family: var(--title);
  font-size: clamp(68px, 7.6vw, 124px);
  font-weight: 430;
  letter-spacing: -.065em;
  line-height: .79;
}

.family-hero h1 em {
  display: block;
  margin-top: .1em;
  color: transparent;
  font-style: italic;
  -webkit-text-stroke: 1px rgba(246, 240, 230, .86);
}

.family-hero-intro {
  max-width: 610px;
  margin: 34px 0 0;
  color: #b7c7c9;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
}

.family-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.family-hero-actions button,
.family-hero-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 8px;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}

.family-hero-actions button {
  border: 1px solid #e7bd69;
  background: #e7bd69;
  color: #101b1f;
}

.family-hero-actions a {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  color: #eef4f1;
}

.family-privacy-note {
  max-width: 560px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  color: #7f979e;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.family-privacy-note svg {
  flex: none;
  margin-top: 2px;
  color: #e7bd69;
}

.lineage-loom {
  position: relative;
  z-index: 2;
  min-width: 580px;
  aspect-ratio: 760 / 540;
  border: 1px solid rgba(212, 233, 237, .12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)),
    rgba(4, 16, 21, .76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 36px 90px rgba(0, 0, 0, .27);
}

.lineage-loom::before {
  content: "THE SHARED TRUNK";
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 22px;
  color: rgba(209, 228, 231, .35);
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .17em;
}

.lineage-loom svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.loom-thread,
.loom-family-link {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3;
}

.loom-thread {
  stroke-dasharray: 4 8;
  stroke-dashoffset: 120;
  animation: family-thread-draw 1.8s cubic-bezier(.16, 1, .3, 1) forwards;
}

.loom-thread--kessler { stroke: var(--family-kessler); }
.loom-thread--radin { stroke: var(--family-radin); animation-delay: .12s; }
.loom-thread--hahn { stroke: var(--family-hahn); animation-delay: .24s; }
.loom-thread--stein { stroke: var(--family-stein); animation-delay: .36s; }

.loom-family-link {
  stroke: rgba(234, 241, 238, .55);
  stroke-width: 1.5;
}

.loom-branch {
  position: absolute;
  z-index: 4;
  width: 176px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--branch-color) 44%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--branch-color) 9%, rgba(7, 21, 27, .92));
  color: #eef4f1;
  text-align: left;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.loom-branch span {
  color: var(--branch-color);
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .02em;
}

.loom-branch small {
  overflow: hidden;
  color: #91a4a9;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loom-branch--kessler { top: 11%; left: 2.5%; }
.loom-branch--radin { bottom: 10%; left: 2.5%; }
.loom-branch--hahn { top: 11%; right: 2.5%; }
.loom-branch--stein { right: 2.5%; bottom: 10%; }

.loom-core {
  position: absolute;
  z-index: 5;
  top: 31%;
  left: 50%;
  width: 276px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  transform: translateX(-50%);
}

.loom-core button {
  min-height: 108px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 2px 9px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: #f1ecdf;
  color: var(--family-ink);
  text-align: left;
  box-shadow: 0 15px 36px rgba(0, 0, 0, .28);
  cursor: pointer;
}

.loom-monogram {
  grid-row: 1 / 3;
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--family-night-soft);
  color: #f1ecdf;
  font-family: var(--title);
  font-size: 18px;
}

.loom-core strong {
  align-self: end;
  font-family: var(--title);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.loom-core small {
  align-self: start;
  color: #788286;
  font-family: var(--utility);
  font-size: 7px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.family-explorer,
.people-index {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: clamp(84px, 9vw, 144px) clamp(22px, 4vw, 64px);
}

.family-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr);
  align-items: end;
  gap: 48px;
}

.family-section-heading h2,
.people-index-heading h2 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 440;
  letter-spacing: -.055em;
  line-height: .88;
}

.family-section-heading > p {
  max-width: 570px;
  justify-self: end;
  margin: 0;
  color: #647176;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.branch-picker {
  display: flex;
  gap: 8px;
  margin: 52px 0 24px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.branch-picker button,
.history-branch-tabs button {
  min-height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--family-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
  color: #556267;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.branch-picker button > span,
.history-branch-tabs button > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--branch-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--branch-color) 16%, transparent);
}

.branch-picker button.active {
  border-color: var(--family-ink);
  background: var(--family-ink);
  color: #fff;
}

.branch-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.branch-overview-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: clamp(28px, 3vw, 46px);
  border: 1px solid color-mix(in srgb, var(--branch-color) 24%, var(--family-line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 102% -5%, color-mix(in srgb, var(--branch-color) 22%, transparent), transparent 42%),
    rgba(255, 255, 255, .62);
  box-shadow: 0 18px 46px rgba(42, 49, 50, .07);
}

.branch-card-thread {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--branch-color);
}

.branch-overview-card > p {
  margin: 0 0 20px;
  color: #6d797d;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.branch-overview-card h3 {
  margin: 0;
  color: color-mix(in srgb, var(--branch-color) 72%, var(--family-ink));
  font-family: var(--title);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 520;
  letter-spacing: -.045em;
  line-height: .95;
}

.branch-overview-card > strong {
  max-width: 530px;
  display: block;
  margin: 22px 0 34px;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 560;
  line-height: 1.45;
}

.branch-overview-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--family-line);
  border-radius: 9px;
  background: var(--family-line);
}

.branch-overview-card dl div {
  min-height: 83px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  background: rgba(255, 255, 255, .76);
}

.branch-overview-card dt {
  color: #7d888c;
  font-family: var(--utility);
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.branch-overview-card dd {
  margin: 0;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
  font-weight: 630;
  line-height: 1.3;
}

.branch-overview-card > button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--branch-color) 45%, var(--family-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--branch-color) 12%, #fff);
  color: var(--family-ink);
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.branch-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 18px;
}

.all-lines-person-record {
  width: min(100%, 760px);
  margin: 30px auto 0;
}

.all-lines-person-record .person-record {
  position: relative;
  top: auto;
  max-height: none;
}

.branch-tree-panel,
.person-record {
  border: 1px solid var(--family-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 50px rgba(42, 49, 50, .07);
}

.branch-tree-panel {
  min-width: 0;
  overflow: hidden;
}

.branch-tree-toolbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px 14px 22px;
  border-bottom: 1px solid var(--family-line);
}

.branch-tree-toolbar p {
  margin: 0 0 3px;
  color: #788589;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.branch-tree-toolbar h3 {
  margin: 0;
  font-family: var(--title);
  font-size: 25px;
  font-weight: 600;
}

.tree-zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tree-zoom-controls button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--family-line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.tree-zoom-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.tree-zoom-controls span {
  min-width: 48px;
  color: #677478;
  font-family: var(--utility);
  font-size: 9px;
  text-align: center;
}

.branch-tree-instruction {
  margin: 0;
  padding: 9px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: var(--family-night-raised);
  color: #8fa4aa;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
}

.branch-tree-viewport {
  min-height: 450px;
  max-height: 660px;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(204, 230, 236, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 230, 236, .035) 1px, transparent 1px),
    var(--family-night);
  background-size: 28px 28px;
  scrollbar-color: #40545c #0a1a20;
}

.branch-tree-scaled,
.branch-tree-canvas {
  position: relative;
  flex: none;
}

.branch-tree-canvas > svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.branch-tree-canvas > svg path {
  fill: none;
  stroke: color-mix(in srgb, var(--branch-color, #8fa4aa) 66%, #d8e5e6);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.tree-person-node {
  position: absolute;
  width: 224px;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 2px 8px;
  overflow: hidden;
  padding: 11px 13px 10px 15px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-left: 4px solid var(--branch-color);
  border-radius: 8px;
  background: #f3eee3;
  color: var(--family-ink);
  text-align: left;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.tree-person-node::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}

.tree-person-node.selected::after {
  border-color: var(--branch-color);
}

.tree-person-depth {
  grid-column: 1 / 3;
  color: #788488;
  font-family: var(--utility);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tree-person-node strong {
  align-self: end;
  overflow: hidden;
  font-family: var(--title);
  font-size: 16px;
  font-weight: 620;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-person-node small {
  align-self: end;
  color: #687579;
  font-family: var(--utility);
  font-size: 7px;
}

.person-record {
  position: sticky;
  top: calc(var(--masthead) + 18px);
  scroll-margin-top: calc(var(--masthead) + 16px);
  max-height: calc(100dvh - var(--masthead) - 36px);
  overflow: auto;
  padding: 25px;
  scrollbar-width: thin;
}

.person-record--empty {
  min-height: 300px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #748185;
  text-align: center;
}

.person-record--empty h3 {
  margin: 14px 0 5px;
  color: var(--family-ink);
  font-family: var(--title);
  font-size: 25px;
}

.person-record--empty p {
  max-width: 280px;
  margin: 0;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 13px;
}

.person-record-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--family-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.person-record-monogram {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--family-night-soft);
  color: #f2ece1;
  font-family: var(--title);
  font-size: 29px;
}

.person-record-heading {
  padding-right: 28px;
}

.person-branch-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.person-branch-dots span,
.person-branch-dots i {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
}

.person-record-heading > p {
  margin: 10px 0 2px;
  color: #718084;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.person-record-heading h3 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 560;
  letter-spacing: -.035em;
  line-height: .96;
}

.person-record-heading > small {
  display: block;
  margin-top: 9px;
  color: #7a878b;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
  line-height: 1.45;
}

.living-record-notice,
.person-story-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 22px 0 0;
  padding: 15px;
  border: 1px solid rgba(78, 165, 217, .24);
  border-radius: 9px;
  background: rgba(78, 165, 217, .08);
  color: #536268;
}

.living-record-notice svg,
.person-story-note svg {
  flex: none;
  color: #397da7;
}

.living-record-notice p,
.person-story-note p {
  margin: 0;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
  line-height: 1.55;
}

.living-record-notice strong,
.person-story-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--family-ink);
  font-size: 11px;
}

.person-vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--family-line);
  border-radius: 9px;
  background: var(--family-line);
}

.person-vitals div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px;
  background: rgba(255, 255, 255, .72);
}

.person-vitals dt,
.person-record h4 {
  color: #6c7a7e;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.person-vitals dd {
  margin: 0;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
  font-weight: 610;
  line-height: 1.35;
}

.person-story-note {
  border-color: rgba(227, 184, 94, .3);
  background: rgba(227, 184, 94, .1);
  font-style: normal;
}

.person-story-note svg { color: #a47a25; }

.person-life-record,
.person-family-links,
.person-evidence {
  margin-top: 24px;
}

.person-record h4 {
  margin: 0 0 10px;
}

.person-life-record ol,
.branch-history-moments {
  margin: 0;
  padding: 0;
  list-style: none;
}

.person-life-record li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 0 0 16px;
}

.person-life-record li::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -3px;
  left: 52px;
  width: 1px;
  background: var(--family-line);
}

.person-life-record li:last-child::before { display: none; }

.person-life-record li > span {
  color: #6f7d81;
  font-family: var(--utility);
  font-size: 8px;
  text-align: right;
}

.person-life-record li > div {
  position: relative;
  padding-left: 12px;
}

.person-life-record li > div::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -1px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #718c96;
  box-shadow: 0 0 0 1px #718c96;
}

.person-life-record li strong {
  display: block;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
}

.person-life-record li small,
.person-life-record li p {
  display: block;
  margin: 2px 0 0;
  color: #738084;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 9px;
  line-height: 1.45;
}

.event-disputed {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(185, 119, 47, .28);
  border-radius: 999px;
  background: rgba(227, 184, 94, .13);
  color: #8b6129;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.person-family-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.person-family-links button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid var(--family-line);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 9px;
  font-weight: 620;
  cursor: pointer;
}

.person-evidence {
  border-top: 1px solid var(--family-line);
  padding-top: 18px;
}

.person-evidence summary {
  color: #526166;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.person-evidence > div {
  display: grid;
  gap: 18px;
  padding-top: 16px;
}

.person-evidence section p,
.person-evidence li {
  color: #718084;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 9px;
  line-height: 1.45;
}

.person-evidence ul {
  margin: 0;
  padding-left: 17px;
}

.person-evidence li small {
  display: block;
  color: #8b9699;
}

.person-quality-flags h4 {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9b6a20;
}

.family-history {
  padding: clamp(86px, 9vw, 146px) clamp(22px, 5vw, 84px);
  background:
    radial-gradient(circle at 15% 15%, rgba(170, 142, 214, .1), transparent 28%),
    radial-gradient(circle at 88% 88%, rgba(227, 184, 94, .08), transparent 28%),
    var(--family-night);
  color: #ecf1ee;
}

.family-history > * {
  width: min(100%, 1430px);
  margin-right: auto;
  margin-left: auto;
}

.family-section-heading--dark > p {
  color: #92a5aa;
}

.history-branch-tabs {
  display: flex;
  gap: 8px;
  margin-top: 52px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.history-branch-tabs button {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .04);
  color: #9eb0b4;
}

.history-branch-tabs button.active {
  border-color: color-mix(in srgb, var(--branch-color) 60%, transparent);
  background: color-mix(in srgb, var(--branch-color) 13%, transparent);
  color: #edf3f1;
}

.branch-history-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(42px, 7vw, 108px);
  margin-top: 38px;
  padding-top: 42px;
  border-top: 1px solid color-mix(in srgb, var(--branch-color) 48%, rgba(255, 255, 255, .1));
}

.branch-history-intro > p:first-child {
  margin: 0 0 13px;
  color: var(--branch-color);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.branch-history-intro h3 {
  max-width: 660px;
  margin: 0;
  font-family: var(--title);
  font-size: clamp(43px, 5vw, 76px);
  font-weight: 460;
  letter-spacing: -.045em;
  line-height: .95;
}

.branch-history-intro > p:last-child {
  max-width: 640px;
  margin: 28px 0 0;
  color: #a7b8bb;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

.branch-history-route {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 2px;
  margin-top: 28px;
}

.branch-history-route span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7f979d;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
}

.branch-history-route span svg:first-child { color: var(--branch-color); }

.branch-history-moments {
  counter-reset: history-moments;
}

.branch-history-moments li {
  counter-increment: history-moments;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 20px;
  padding: 0 0 26px;
}

.branch-history-moments li > span {
  padding-top: 2px;
  color: var(--branch-color);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.branch-history-moments li > div {
  position: relative;
  padding: 0 0 26px 27px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.branch-history-moments li > div::before {
  content: counter(history-moments);
  position: absolute;
  top: -3px;
  left: -12px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--branch-color) 58%, transparent);
  border-radius: 50%;
  background: var(--family-night);
  color: var(--branch-color);
  font-family: var(--utility);
  font-size: 7px;
}

.branch-history-moments li:last-child > div {
  border-left-color: transparent;
}

.branch-history-moments strong {
  display: block;
  font-family: var(--title);
  font-size: 24px;
  font-weight: 560;
  line-height: 1.1;
}

.branch-history-moments p {
  margin: 8px 0 0;
  color: #93a6aa;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
  line-height: 1.65;
}

.history-source-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 42px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: #849ba0;
}

.history-source-note svg {
  flex: none;
  color: #e3b85e;
}

.history-source-note strong {
  color: #dce7e5;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
}

.history-source-note p {
  margin: 4px 0 0;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
  line-height: 1.6;
}

.people-index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .5fr);
  align-items: end;
  gap: 50px;
}

.people-index-heading > div > p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: #69767a;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 14px;
}

.people-index-heading form {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--family-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
}

.people-index-heading form > svg {
  flex: none;
  color: #6f7d81;
}

.people-index-heading input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--family-ink);
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 13px;
}

.people-index-heading form button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 33, 38, .07);
  cursor: pointer;
}

.people-result-count {
  margin: 48px 0 14px;
  color: #768387;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.people-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.people-index-grid > button {
  min-height: 74px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--family-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .56);
  color: var(--family-ink);
  text-align: left;
  cursor: pointer;
}

.people-index-monogram {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--family-night-soft);
  color: #f2ece1;
  font-family: var(--title);
  font-size: 18px;
}

.people-index-grid > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.people-index-grid strong {
  overflow: hidden;
  font-family: var(--title);
  font-size: 16px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-index-grid small {
  color: #7a878b;
  font-family: var(--utility);
  font-size: 7px;
}

.people-index-grid .person-branch-dots {
  flex-direction: column;
  gap: 3px;
}

.people-index-grid .person-branch-dots i {
  width: 6px;
  height: 6px;
}

.people-index-grid > button > svg {
  color: #869296;
}

.people-empty-state {
  min-height: 280px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 30px;
  border: 1px dashed var(--family-line);
  border-radius: 12px;
  color: #718085;
  text-align: center;
}

.people-empty-state strong {
  margin-top: 14px;
  color: var(--family-ink);
  font-family: var(--title);
  font-size: 25px;
}

.people-empty-state p {
  margin: 5px 0 16px;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
}

.people-empty-state button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--family-line);
  border-radius: 7px;
  background: #fff;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .loom-branch,
  .loom-core button,
  .branch-overview-card,
  .tree-person-node,
  .people-index-grid > button {
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  }

  .loom-branch:hover,
  .loom-core button:hover {
    transform: translateY(-3px);
    box-shadow: 0 19px 42px rgba(0, 0, 0, .3);
  }

  .loom-core button:hover {
    transform: translateY(-3px);
  }

  .branch-overview-card:hover {
    border-color: color-mix(in srgb, var(--branch-color) 48%, var(--family-line));
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(42, 49, 50, .1);
  }

  .tree-person-node:hover {
    border-color: color-mix(in srgb, var(--branch-color) 55%, rgba(255,255,255,.3));
    transform: translateY(-2px);
  }

  .people-index-grid > button:hover {
    border-color: rgba(23, 33, 38, .28);
    background: rgba(255, 255, 255, .9);
    transform: translateY(-2px);
  }
}

@media (max-width: 1220px) {
  .family-hero {
    grid-template-columns: minmax(330px, .72fr) minmax(500px, 1.28fr);
    padding-right: 36px;
    padding-left: 36px;
  }

  .lineage-loom {
    min-width: 500px;
  }

  .branch-workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .people-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .family-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .family-hero-copy {
    max-width: 760px;
  }

  .lineage-loom {
    width: min(100%, 760px);
    min-width: 0;
    justify-self: center;
  }

  .family-section-heading,
  .people-index-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .family-section-heading > p {
    justify-self: start;
  }

  .branch-workspace {
    grid-template-columns: 1fr;
  }

  .person-record {
    position: relative;
    top: auto;
    max-height: none;
  }

  .branch-history-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .family-tree-shell {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .family-masthead-note {
    display: none;
  }

  .family-tree-shell .masthead {
    grid-template-columns: 1fr;
  }

  .branch-overview-card dl {
    grid-template-columns: 1fr;
  }

  .branch-overview-card dl div {
    min-height: 62px;
  }
}

@media (max-width: 720px) {
  .family-hero {
    padding: 84px 18px 62px;
  }

  .family-hero::before {
    top: 20px;
    left: 18px;
  }

  .family-hero h1 {
    font-size: clamp(66px, 20vw, 92px);
  }

  .family-hero-intro {
    font-size: 15px;
  }

  .lineage-loom {
    min-height: 640px;
    aspect-ratio: auto;
  }

  .lineage-loom svg {
    display: none;
  }

  .loom-branch {
    width: calc(50% - 25px);
  }

  .loom-branch--kessler { top: 54px; left: 16px; }
  .loom-branch--hahn { top: 54px; right: 16px; }
  .loom-branch--radin { top: 144px; bottom: auto; left: 16px; }
  .loom-branch--stein { top: 144px; right: 16px; bottom: auto; }

  .loom-core {
    top: 260px;
    width: calc(100% - 32px);
  }

  .loom-core button {
    min-height: 142px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    text-align: center;
  }

  .loom-monogram {
    grid-row: auto;
  }

  .branch-overview-grid {
    grid-template-columns: 1fr;
  }

  .branch-overview-card {
    min-height: 0;
  }

  .branch-tree-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tree-zoom-controls {
    width: 100%;
  }

  .tree-zoom-controls button:last-child {
    margin-left: auto;
  }

  .branch-tree-viewport {
    height: 440px;
    min-height: 440px;
    max-height: 440px;
  }

  .family-history,
  .family-explorer,
  .people-index {
    padding-right: 18px;
    padding-left: 18px;
  }

  .branch-history-moments li {
    grid-template-columns: 60px 1fr;
    gap: 13px;
  }

  .people-index-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .family-hero-actions {
    display: grid;
  }

  .family-hero-actions button,
  .family-hero-actions a {
    width: 100%;
  }

  .lineage-loom {
    min-height: 676px;
  }

  .loom-branch {
    width: calc(50% - 20px);
    padding: 11px;
  }

  .loom-branch small {
    white-space: normal;
  }

  .loom-core {
    top: 280px;
  }

  .branch-picker {
    margin-top: 38px;
  }

  .person-vitals {
    grid-template-columns: 1fr;
  }

  .people-index-grid > button {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .people-index-grid .person-branch-dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-tree-shell *,
  .family-tree-shell *::before,
  .family-tree-shell *::after {
    scroll-behavior: auto !important;
  }

  .loom-thread,
  .family-tree-loading::after {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@keyframes family-thread-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes family-loading-pulse {
  from { opacity: .42; }
  to { opacity: 1; }
}
