.family-tree-shell {
  --atlas-charcoal: #282a2b;
  --atlas-charcoal-soft: #343738;
  --atlas-charcoal-deep: #202223;
  --atlas-bone: #f2efe8;
  --atlas-paper: #fbf9f3;
  --atlas-ink: #1f2426;
  --atlas-muted: #687276;
  background: var(--atlas-bone);
}

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

.family-tree-loading {
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    var(--atlas-charcoal, #282a2b);
  background-size: 30px 30px;
}

.family-atlas {
  position: relative;
  padding: clamp(42px, 5vw, 78px) 0 clamp(42px, 6vw, 84px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, .06), transparent 34%),
    var(--atlas-charcoal);
  color: var(--atlas-bone);
}

.family-atlas::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  pointer-events: none;
}

.family-atlas-heading {
  position: relative;
  z-index: 2;
  width: min(100%, 1760px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: end;
  gap: 40px;
  margin: 0 auto 32px;
  padding: 0 clamp(22px, 3.6vw, 64px);
}

.family-atlas-heading .family-eyebrow {
  margin-bottom: 12px;
  color: #9cadb2;
}

.family-atlas-heading h1 {
  margin: 0;
  color: #f4f0e8;
  font-family: var(--title);
  font-size: clamp(58px, 6.2vw, 104px);
  font-weight: 460;
  letter-spacing: -.064em;
  line-height: .86;
}

.family-atlas-key {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  padding-bottom: 3px;
}

.family-atlas-key span {
  position: relative;
  padding-left: 18px;
  color: #c7cecf;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.family-atlas-key span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 2px;
  border-radius: 99px;
  background: var(--branch-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--branch-color) 60%, transparent);
}

.family-atlas-frame {
  position: relative;
  z-index: 2;
  width: min(calc(100% - clamp(24px, 4vw, 70px)), 1840px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 15px;
  background: var(--atlas-charcoal-soft);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .05);
}

.family-atlas-toolbar {
  position: relative;
  z-index: 8;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background: rgba(29, 31, 32, .93);
  backdrop-filter: blur(16px);
}

.atlas-scope-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.atlas-scope-controls::-webkit-scrollbar {
  display: none;
}

.atlas-scope-controls button,
.atlas-zoom-controls button {
  min-height: 37px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  color: #bec7c9;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 11px;
  font-weight: 660;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.atlas-scope-controls button {
  padding: 0 12px;
}

.atlas-scope-controls button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--branch-color);
}

.atlas-scope-controls button.active {
  border-color: rgba(255, 255, 255, .74);
  background: #f1eee6;
  color: #242728;
}

.atlas-scope-controls .atlas-extended-toggle {
  border-color: rgba(217, 173, 82, .35);
  color: #e4cf9d;
}

.atlas-scope-controls .atlas-extended-toggle small {
  font-family: var(--utility);
  font-size: 7px;
  letter-spacing: .04em;
}

.atlas-scope-controls .atlas-extended-toggle.active {
  border-color: #d9ad52;
  background: #d9ad52;
  color: #242728;
}

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

.atlas-zoom-controls button {
  width: 37px;
  padding: 0;
}

.atlas-zoom-controls button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.atlas-zoom-controls span {
  width: 45px;
  color: #98a3a5;
  font-family: var(--utility);
  font-size: 8px;
  text-align: center;
}

.family-atlas-viewport {
  position: relative;
  height: clamp(660px, 72vh, 850px);
  overflow: auto;
  overscroll-behavior: contain;
  cursor: grab;
  scrollbar-color: rgba(255, 255, 255, .26) rgba(255, 255, 255, .04);
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

.family-atlas-viewport.dragging {
  cursor: grabbing;
  user-select: none;
}

.family-atlas-viewport:focus-visible {
  outline: 2px solid #f2c56f;
  outline-offset: -3px;
}

.family-atlas-scaled {
  position: relative;
}

.family-atlas-canvas {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform-origin: top left;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 50% 53%, rgba(255, 255, 255, .075), transparent 16%),
    #343738;
  background-size: 58px 58px, 58px 58px, auto, auto;
}

.family-atlas-canvas::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .17) 22%, rgba(255, 255, 255, .17) 78%, transparent);
}

.family-atlas-canvas svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.atlas-family-line,
.atlas-nucleus-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atlas-family-line {
  stroke: color-mix(in srgb, var(--branch-color) 74%, #d9d9d5);
  stroke-width: 2.2px;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  opacity: .78;
  animation: atlas-line-draw 1.15s cubic-bezier(.2, .7, .2, 1) forwards;
}

.atlas-family-line--core {
  stroke-width: 3px;
  opacity: .9;
}

.atlas-nucleus-line {
  stroke: rgba(244, 240, 232, .62);
  stroke-width: 2px;
}

.atlas-generation {
  position: absolute;
  top: 24px;
  color: rgba(236, 239, 235, .34);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.atlas-generation span {
  color: rgba(236, 239, 235, .68);
}

.atlas-generation--left { left: 34px; }
.atlas-generation--right { right: 34px; }

.atlas-side-label {
  position: absolute;
  top: 660px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: rgba(244, 240, 232, .24);
  pointer-events: none;
}

.atlas-side-label strong {
  font-family: var(--title);
  font-size: 43px;
  font-weight: 470;
  letter-spacing: -.04em;
}

.atlas-side-label span {
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.atlas-side-label--dad { left: 680px; text-align: right; }
.atlas-side-label--mom { right: 680px; }

.atlas-branch-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--branch-color);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}

.atlas-branch-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--branch-color);
}

.atlas-person-card {
  position: absolute;
  z-index: 5;
  width: 226px;
  height: 78px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  overflow: hidden;
  padding: 6px 14px 6px 7px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 7px;
  background: rgba(248, 246, 239, .96);
  color: var(--atlas-ink);
  text-align: left;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.atlas-person-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--branch-color);
}

.atlas-person-card .family-portrait {
  width: 58px;
  height: 66px;
  border-radius: 4px;
}

.atlas-person-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.atlas-person-card strong {
  overflow: hidden;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-person-card small {
  color: #687174;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: .04em;
}

.atlas-person-card > i {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--branch-color);
  opacity: .7;
}

.atlas-person-card > em {
  position: absolute;
  right: 12px;
  bottom: 5px;
  color: color-mix(in srgb, var(--branch-color) 72%, #394346);
  font-family: var(--utility);
  font-size: 6px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.atlas-person-card.selected {
  border-color: var(--branch-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--branch-color) 36%, transparent), 0 13px 32px rgba(0, 0, 0, .38);
}

.family-portrait {
  display: block;
  overflow: hidden;
  object-fit: cover;
  object-position: 50% 34%;
  background: #d8d4ca;
}

.family-portrait--initials {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), transparent),
    #5c6668;
  color: #f3efe7;
  font-family: var(--title);
  font-size: 22px;
  font-weight: 560;
}

.atlas-core {
  position: absolute;
  z-index: 7;
  top: 620px;
  left: 1740px;
  width: 380px;
  height: 390px;
}

.atlas-core > p {
  position: absolute;
  top: -42px;
  left: 50%;
  margin: 0;
  color: rgba(244, 240, 232, .48);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.atlas-core-person {
  position: absolute;
  width: 170px;
  height: 114px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 11px;
  background: #f7f3e9;
  color: #202426;
  text-align: left;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .38);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.atlas-core-person .family-portrait {
  width: 72px;
  height: 92px;
  border-radius: 7px;
}

.atlas-core-person > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.atlas-core-person strong {
  font-family: var(--title);
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -.025em;
  line-height: .95;
}

.atlas-core-person small {
  color: #778083;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atlas-core-person[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(240, 194, 104, .52), 0 24px 58px rgba(0, 0, 0, .45);
}

.atlas-core-person--adam-kessler { top: 24px; left: 0; }
.atlas-core-person--lisa-hahn { top: 24px; right: 0; }
.atlas-core-person--phil-kessler { top: 222px; left: 20px; }
.atlas-core-person--hannah-kessler { top: 222px; right: 20px; }

.atlas-immediate-family {
  position: absolute;
  z-index: 7;
  top: 1050px;
  left: 1460px;
  width: 940px;
  text-align: center;
}

.atlas-immediate-family > p {
  margin: 0 0 13px;
  color: rgba(244, 240, 232, .48);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.atlas-immediate-family > div {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.atlas-immediate-family button {
  width: 170px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: rgba(39, 43, 44, .93);
  color: #eef0ec;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,.23);
  cursor: pointer;
}

.atlas-immediate-family .family-portrait { width: 42px; height: 50px; border-radius: 5px; }
.atlas-immediate-family button > span { min-width: 0; display: grid; gap: 4px; }
.atlas-immediate-family strong { overflow: hidden; font-family: var(--font-geist-sans), sans-serif; font-size: 10px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.atlas-immediate-family small { color: #aab4b6; font-family: var(--utility); font-size: 6px; letter-spacing: .1em; text-transform: uppercase; }

.atlas-drag-hint {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #242627;
  color: #849093;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.person-story {
  position: absolute;
  z-index: 12;
  top: 82px;
  right: 18px;
  width: min(410px, calc(100% - 36px));
  max-height: calc(100% - 138px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: rgba(247, 244, 236, .97);
  color: var(--atlas-ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
  animation: person-story-in .3s cubic-bezier(.2, .75, .2, 1) both;
}

.person-story-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 36, 38, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: #465154;
  cursor: pointer;
}

.person-story-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: end;
  gap: 17px;
  padding-right: 25px;
}

.person-story-hero > .family-portrait {
  width: 104px;
  height: 132px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(30, 34, 35, .18);
}

.person-story-hero > div {
  min-width: 0;
  padding-bottom: 4px;
}

.person-story-hero p {
  margin: 8px 0 4px;
  color: #717a7d;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.person-story-hero h2 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: .93;
}

.person-story-hero small {
  display: block;
  margin-top: 8px;
  color: #7a8385;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
  line-height: 1.4;
}

.person-story blockquote,
.living-story-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(31, 36, 38, .11);
  border-radius: 8px;
  background: #ebe6da;
}

.person-story blockquote svg,
.living-story-note svg {
  flex: none;
  margin-top: 2px;
  color: #9a7436;
}

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

.living-story-note strong {
  display: block;
  margin-bottom: 3px;
  color: #273033;
}

.person-story-timeline,
.person-story-relatives {
  margin-top: 22px;
}

.person-story h3 {
  margin: 0 0 11px;
  color: #677174;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.person-story-timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.person-story-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  min-height: 54px;
}

.person-story-timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: -7px;
  left: 50px;
  width: 1px;
  background: rgba(31, 36, 38, .16);
}

.person-story-timeline li:last-child::before {
  display: none;
}

.person-story-timeline li > span {
  padding-top: 2px;
  color: #7a6441;
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 700;
}

.person-story-timeline li > div {
  position: relative;
  padding: 0 0 16px 13px;
}

.person-story-timeline li > div::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -8px;
  width: 7px;
  height: 7px;
  border: 2px solid #f6f3eb;
  border-radius: 50%;
  background: #b18a48;
  box-shadow: 0 0 0 1px #b18a48;
}

.person-story-timeline strong {
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 12px;
  font-weight: 760;
}

.person-story-timeline p {
  margin: 4px 0 0;
  color: #697376;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
  line-height: 1.45;
}

.person-story-relatives section {
  margin-top: 12px;
}

.person-story-relatives h4 {
  margin: 0 0 6px;
  color: #8a9294;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.person-story-relatives section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.person-story-relatives button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(31, 36, 38, .14);
  border-radius: 999px;
  background: #fff;
  color: #394346;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.family-story-intro {
  width: min(100%, 1560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
  align-items: start;
  gap: clamp(44px, 7vw, 120px);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 150px) clamp(22px, 4vw, 64px);
}

.family-story-intro h2 {
  max-width: 830px;
  margin: 0;
  font-family: var(--title);
  font-size: clamp(58px, 7vw, 110px);
  font-weight: 450;
  letter-spacing: -.06em;
  line-height: .86;
}

.family-story-intro > div:last-child > p:first-child {
  margin: 8px 0 0;
  color: #566367;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

.family-story-intro .family-privacy-note {
  color: #68767a;
}

.origin-atlas {
  width: min(calc(100% - clamp(28px, 7vw, 112px)), 1500px);
  display: grid;
  grid-template-columns: minmax(300px, .62fr) minmax(560px, 1.38fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  margin: 0 auto clamp(90px, 11vw, 170px);
}

.origin-atlas-copy h2 {
  margin: 0;
  color: #202729;
  font-family: var(--title);
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 460;
  letter-spacing: -.06em;
  line-height: .88;
}

.origin-atlas-copy > p:last-of-type {
  max-width: 520px;
  margin: 28px 0 0;
  color: #5c696d;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.origin-atlas-legend {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 22px;
  margin-top: 30px;
}

.origin-atlas-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #465154;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.origin-atlas-legend i {
  width: 14px;
  height: 3px;
  border-radius: 99px;
  background: var(--branch-color);
}

.origin-map-card {
  overflow: hidden;
  border: 1px solid #b8b2a6;
  border-radius: 12px;
  background: #e7e0d1;
  box-shadow: 0 30px 80px rgba(54, 50, 42, .2);
}

.origin-map-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(68, 64, 55, .2);
  color: #554f42;
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.origin-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    linear-gradient(rgba(78, 91, 91, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 91, 91, .09) 1px, transparent 1px),
    #d8e0dc;
  background-size: 52px 52px, 52px 52px, auto;
}

.origin-map::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(216, 224, 220, .64), transparent 22% 80%, rgba(216, 224, 220, .52));
}

.origin-map > img {
  position: absolute;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 49%;
  opacity: .46;
  filter: sepia(.14) saturate(.55) contrast(.78);
}

.origin-country {
  position: absolute;
  z-index: 4;
  min-width: 82px;
  display: grid;
  gap: 2px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(67, 67, 58, .22);
  border-radius: 6px;
  background: rgba(250, 247, 237, .9);
  box-shadow: 0 10px 24px rgba(58, 58, 48, .16);
  backdrop-filter: blur(7px);
  transform: translate(-50%, -50%);
}

.origin-country > i { display: flex; gap: 3px; margin-bottom: 2px; }
.origin-country > i b { width: 12px; height: 3px; border-radius: 9px; }
.origin-country strong { color: #2d3435; font-family: var(--title); font-size: 17px; font-weight: 650; line-height: 1; }
.origin-country small { color: #778083; font-family: var(--utility); font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.origin-map-card > p {
  margin: 0;
  padding: 13px 18px 15px;
  border-top: 1px solid rgba(68, 64, 55, .16);
  color: #6b665b;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
  line-height: 1.5;
}

.route-map {
  position: relative;
  min-height: 210px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    #232a2c;
  background-size: 30px 30px;
}

.route-map-shore {
  position: absolute;
  color: rgba(225, 232, 230, .16);
  font-family: var(--title);
  font-size: 20px;
  font-style: italic;
}

.route-map-shore--europe { left: 7%; top: 12%; }
.route-map-shore--america { right: 5%; bottom: 10%; }
.route-map-ocean { position: absolute; left: 46%; top: 52%; color: rgba(213, 225, 225, .17); font-family: var(--utility); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-13deg); }

.route-map-line {
  position: absolute;
  z-index: 2;
  height: 1px;
  border-top: 1px dashed color-mix(in srgb, var(--branch-color) 75%, white);
  transform-origin: left center;
}

.route-map-stop {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.route-map-stop b {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid #232a2c;
  border-radius: 50%;
  background: var(--branch-color);
  color: #192022;
  font-family: var(--utility);
  font-size: 7px;
  box-shadow: 0 0 0 1px var(--branch-color), 0 0 18px color-mix(in srgb, var(--branch-color) 38%, transparent);
}

.route-map-stop em {
  position: absolute;
  top: 26px;
  left: 50%;
  width: max-content;
  max-width: 110px;
  color: #dce4e2;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  transform: translateX(-50%);
}

.people-index-grid > button > .family-portrait {
  width: 46px;
  height: 52px;
  flex: none;
  border-radius: 5px;
}

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

.people-index-grid > button {
  min-height: 76px;
}

.people-index-grid .family-portrait--initials {
  font-size: 15px;
}

.person-branch-dots {
  display: flex;
  gap: 4px;
}

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

@media (hover: hover) and (pointer: fine) {
  .atlas-person-card:hover {
    z-index: 8;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
  }

  .atlas-core-person:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 58px rgba(0, 0, 0, .46);
  }

  .atlas-scope-controls button:hover,
  .atlas-zoom-controls button:not(:disabled):hover {
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
  }

  .person-story-relatives button:hover {
    border-color: #7d8587;
  }
}

@media (max-width: 1120px) {
  .family-atlas-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-atlas-key {
    justify-self: start;
  }

  .origin-atlas {
    grid-template-columns: 1fr;
  }

  .family-atlas-toolbar {
    align-items: flex-start;
  }

  .person-story {
    width: 370px;
  }

  .family-story-intro {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  }
}

@media (max-width: 760px) {
  .family-masthead-note {
    display: none;
  }

  .family-atlas {
    padding-top: 34px;
  }

  .family-atlas-heading {
    margin-bottom: 23px;
  }

  .family-atlas-heading h1 {
    font-size: clamp(56px, 17vw, 82px);
  }

  .family-atlas-key {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .family-atlas-frame {
    width: calc(100% - 18px);
    border-radius: 11px;
  }

  .family-atlas-toolbar {
    min-height: 104px;
    flex-direction: column;
    gap: 7px;
    padding: 9px;
  }

  .atlas-scope-controls {
    width: 100%;
  }

  .atlas-zoom-controls {
    align-self: flex-end;
  }

  .family-atlas-viewport {
    height: 600px;
  }

  .atlas-drag-hint {
    min-height: 42px;
    padding: 0 14px;
    font-size: 7px;
    line-height: 1.5;
    text-align: center;
  }

  .person-story {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .person-story-hero {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .person-story-hero > .family-portrait {
    width: 88px;
    height: 112px;
  }

  .family-story-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .family-story-intro h2 {
    font-size: clamp(55px, 16vw, 80px);
  }

  .origin-atlas {
    width: calc(100% - 36px);
    gap: 34px;
    margin-bottom: 92px;
  }

  .origin-atlas-copy h2 {
    font-size: clamp(54px, 16vw, 76px);
  }

  .origin-atlas-legend {
    grid-template-columns: 1fr;
  }

  .origin-map-card {
    transform: none;
  }

  .origin-map {
    min-height: 520px;
  }

  .origin-country {
    min-width: 68px;
    padding: 7px 8px;
  }

  .origin-country strong {
    font-size: 14px;
  }

  .route-map {
    min-height: 230px;
  }

  .people-index-grid > button > .family-portrait {
    width: 42px;
    height: 48px;
  }
}

@media (max-width: 430px) {
  .family-atlas-heading {
    padding-inline: 18px;
  }

  .family-atlas-heading h1 {
    font-size: 56px;
  }

  .atlas-scope-controls button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .family-atlas-viewport {
    height: 540px;
  }

  .person-story {
    padding: 15px;
  }

  .person-story-hero h2 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-family-line,
  .person-story {
    animation: none;
  }

  .atlas-person-card,
  .atlas-core-person,
  .atlas-scope-controls button,
  .atlas-zoom-controls button {
    transition: none;
  }
}

@keyframes atlas-line-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes person-story-in {
  from { opacity: 0; transform: translateX(20px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
