:root {
  color-scheme: dark;
  --ourland-bg: #0b1016;
  --ourland-panel: #111923;
  --ourland-panel-2: #17212d;
  --ourland-line: rgba(235, 239, 245, 0.12);
  --ourland-text: #edf1f6;
  --ourland-muted: #a9b1bc;
  --ourland-gold: #c5a269;
  --ourland-brown: #715d40;
}

/* People: a warmer, portrait-led doorway into the archive. */
.ourland-people__header,
.ourland-tree-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.ourland-people__header > div:first-child,
.ourland-tree-header > div:first-child {
  max-width: 760px;
}

.ourland-page-header__actions,
.ourland-person-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ourland-birthdays {
  margin: 42px 0 50px;
}

.ourland-section-heading h2 {
  margin: 0;
  color: var(--ourland-text);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 430;
  letter-spacing: -0.035em;
}

.ourland-birthdays__rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.ourland-birthday,
.ourland-person-card,
.ourland-relationship-chip {
  border: 1px solid var(--ourland-line);
  background: linear-gradient(145deg, rgba(23, 33, 45, 0.9), rgba(13, 20, 28, 0.88));
}

.ourland-birthday {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 10px;
  border-radius: 15px;
  color: var(--ourland-text);
  text-decoration: none;
}

.ourland-birthday__avatar,
.ourland-relationship-chip__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #151b22;
  background: var(--ourland-gold);
  font-weight: 750;
}

.ourland-birthday img,
.ourland-relationship-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ourland-birthday strong,
.ourland-birthday small {
  display: block;
}

.ourland-birthday small {
  margin-top: 2px;
  color: var(--ourland-muted);
}

.ourland-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.ourland-person-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  min-height: 106px;
  overflow: hidden;
  border-radius: 17px;
  color: var(--ourland-text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ourland-person-card:hover,
.ourland-person-card:focus-visible {
  z-index: 1;
  border-color: rgba(197, 162, 105, 0.48);
  background: var(--ourland-panel-2);
  transform: translateY(-2px);
}

.ourland-person-card__portrait {
  display: grid;
  place-items: center;
  align-self: stretch;
  overflow: hidden;
  color: #111820;
  background: linear-gradient(145deg, #d8bd8d, #987649);
  font-size: 25px;
  font-weight: 780;
}

.ourland-person-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ourland-person-card__copy {
  min-width: 0;
  padding: 13px 14px;
}

.ourland-person-card__copy strong,
.ourland-person-card__copy small,
.ourland-person-card__copy em {
  display: block;
}

.ourland-person-card__copy strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ourland-person-card__copy small {
  margin-top: 3px;
  color: var(--ourland-muted);
}

.ourland-person-card__copy em {
  overflow: hidden;
  margin-top: 7px;
  color: rgba(237, 241, 246, 0.56);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ourland-back-link {
  display: inline-block;
  margin: 8px 0 26px;
  color: var(--ourland-muted);
  text-decoration: none;
}

.ourland-person-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 680px);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  margin: 0 0 62px;
}

.ourland-person-hero__portrait {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ourland-line);
  border-radius: 28px;
  color: #101720;
  background: linear-gradient(145deg, #dfc696, #80603c);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.3);
  font-size: clamp(50px, 8vw, 104px);
  font-weight: 780;
}

.ourland-person-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ourland-person-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 340;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.ourland-person-hero__full-name {
  margin: 14px 0 0;
  color: var(--ourland-muted);
  font-size: 18px;
}

.ourland-person-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0;
}

.ourland-person-facts span {
  padding: 7px 10px;
  border: 1px solid var(--ourland-line);
  border-radius: 999px;
  color: var(--ourland-muted);
  background: rgba(17, 25, 35, 0.76);
  font-size: 12px;
}

.ourland-person-hero__copy > p:not(.ourland-eyebrow, .ourland-person-hero__full-name) {
  color: var(--ourland-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ourland-profile-section {
  margin-top: 58px;
}

.ourland-relationship-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.ourland-relationship-chip {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 9px;
  border-radius: 15px;
}

.ourland-relationship-chip > a:first-child {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 11px;
  color: var(--ourland-text);
  text-decoration: none;
}

.ourland-relationship-chip small,
.ourland-relationship-chip strong {
  display: block;
}

.ourland-relationship-chip small {
  color: var(--ourland-gold);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ourland-relationship-chip__edit {
  padding: 8px;
  color: var(--ourland-muted);
  text-decoration: none;
}

/* Family tree: a navigable map, not a static genealogy chart. */
.ourland-tree {
  overflow: hidden;
  border: 1px solid var(--ourland-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 162, 105, 0.08), transparent 42%),
    #0d141c;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.24);
}

.ourland-tree__toolbar {
  display: flex;
  position: relative;
  z-index: 4;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--ourland-line);
  background: rgba(17, 25, 35, 0.94);
}

.ourland-tree__toolbar > div {
  display: flex;
  gap: 5px;
}

.ourland-tree__focus {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ourland-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ourland-tree__focus select {
  min-width: 170px;
  min-height: 36px;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--ourland-line);
  border-radius: 9px;
  color: var(--ourland-text);
  background: var(--ourland-panel-2);
  font: inherit;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.ourland-tree__toolbar button {
  min-width: 36px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--ourland-line);
  border-radius: 9px;
  color: var(--ourland-text);
  background: var(--ourland-panel-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ourland-tree__toolbar button.is-active {
  border-color: rgba(197, 162, 105, 0.72);
  color: #f3dfb8;
  background: rgba(197, 162, 105, 0.14);
}

.ourland-tree__window-toggle {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  font-size: 19px;
  line-height: 1;
}

.ourland-tree__window-toggle [data-tree-window-exit] {
  display: none;
}

.ourland-tree:fullscreen .ourland-tree__window-toggle,
.ourland-tree.is-tree-window-fullscreen .ourland-tree__window-toggle {
  display: inline-grid;
  place-items: center;
}

.ourland-tree.is-tree-window-fullscreen .ourland-tree__window-toggle [data-tree-window-enter] {
  display: none;
}

.ourland-tree.is-tree-window-fullscreen .ourland-tree__window-toggle [data-tree-window-exit] {
  display: inline;
}

.ourland-tree__connect {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 2fr);
  gap: 28px;
  padding: 22px;
  border-bottom: 1px solid var(--ourland-line);
  background: rgba(11, 16, 22, 0.96);
}

.ourland-tree__connect[hidden] {
  display: none;
}

.ourland-tree__connect h2 {
  margin: 0;
  font-weight: 430;
}

.ourland-relationship-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ourland-relationship-form .form-item {
  margin: 0;
}

.ourland-relationship-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--ourland-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.ourland-relationship-form select,
.ourland-relationship-form input,
.ourland-relationship-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--ourland-line);
  border-radius: 8px;
  color: var(--ourland-text);
  background: var(--ourland-panel);
}

.ourland-relationship-form__dates {
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ourland-relationship-form > .form-item-notes {
  grid-column: 3;
}

.ourland-relationship-form .form-actions {
  grid-column: 1 / -1;
  margin: 0;
}

.ourland-tree__viewport {
  position: relative;
  overflow: auto;
  height: clamp(520px, 67vh, 820px);
  overscroll-behavior: contain;
  scrollbar-color: rgba(197, 162, 105, 0.35) transparent;
}

.ourland-tree__canvas {
  position: relative;
  transform-origin: 0 0;
  transition: transform 180ms ease;
  background-image: radial-gradient(rgba(237, 241, 246, 0.08) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
}

.ourland-tree__canvas svg,
.ourland-tree__canvas [data-tree-cards] {
  position: absolute;
  inset: 0;
}

.ourland-tree-link {
  fill: none;
  stroke: rgba(197, 162, 105, 0.64);
  stroke-width: 2;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
  vector-effect: non-scaling-stroke;
}

.ourland-tree-link.is-downstream {
  stroke: rgba(255, 214, 139, 0.98);
  stroke-width: 5.5;
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(222, 178, 102, 0.68));
}

.ourland-tree-link.is-family-branch {
  stroke: rgba(220, 191, 139, 0.82);
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(220, 191, 139, 0.18));
}

.ourland-tree-link.is-partner-bridge {
  stroke-width: 2.5;
  stroke-linecap: round;
}

.ourland-tree-link.is-routed-partner {
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ourland-tree-link.is-step-branch {
  stroke-width: 1.5;
  opacity: 0.7;
}

.ourland-tree-junction {
  fill: #c5a269;
  stroke: rgba(10, 16, 23, 0.9);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ourland-tree-junction.is-downstream,
.ourland-tree-child-junction.is-downstream {
  fill: #ffd68b;
  filter: drop-shadow(0 0 4px rgba(222, 178, 102, 0.72));
}

.ourland-tree-child-junction {
  fill: rgba(220, 191, 139, 0.92);
  stroke: rgba(10, 16, 23, 0.88);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.ourland-tree-link.is-step_parent,
.ourland-tree-link.is-step_sibling {
  stroke: rgba(127, 178, 205, 0.68);
  stroke-dasharray: 7 5;
}

.ourland-tree-link.is-former_spouse {
  stroke: rgba(210, 151, 151, 0.62);
  stroke-dasharray: 3 5;
}

.ourland-tree-link.is-spouse,
.ourland-tree-link.is-partner {
  stroke: rgba(214, 184, 132, 0.8);
  stroke-width: 2.5;
}

.ourland-tree-link.has-family-tone:not(.is-step_parent):not(.is-former_spouse) {
  stroke: rgba(var(--family-rgb), 0.92);
}

.ourland-tree-link.is-downstream {
  stroke-width: 5.5;
  opacity: 1;
}

.ourland-tree-card {
  display: grid;
  position: absolute;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr);
  width: 250px;
  height: 170px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(235, 239, 245, 0.14);
  border-radius: 15px;
  color: var(--ourland-text);
  background: rgba(18, 27, 37, 0.97);
  box-shadow: 0 13px 38px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.ourland-tree-family-zone {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid rgba(197, 162, 105, 0.13);
  border-radius: 20px;
  background: rgba(197, 162, 105, 0.035);
  pointer-events: none;
}

.ourland-tree-family-zone.has-family-tone {
  border-color: rgba(var(--family-rgb), 0.9);
  background:
    linear-gradient(
      135deg,
      rgba(var(--family-rgb), 0.4),
      rgba(var(--family-rgb), 0.17)
    );
  box-shadow:
    inset 0 1px 0 rgba(var(--family-rgb), 0.42),
    0 0 26px rgba(var(--family-rgb), 0.14);
}

.ourland-tree-family-zone.is-downstream {
  border-color: rgba(var(--family-rgb, 222, 178, 102), 0.82);
  background:
    linear-gradient(
      135deg,
      rgba(var(--family-rgb, 222, 178, 102), 0.25),
      rgba(var(--family-rgb, 222, 178, 102), 0.1)
    );
  box-shadow:
    inset 0 0 0 1px rgba(var(--family-rgb, 222, 178, 102), 0.24),
    0 0 28px rgba(var(--family-rgb, 222, 178, 102), 0.2);
}

.ourland-tree-card.has-family-tone:not(.is-focus) {
  border-color: rgba(var(--family-rgb), 0.94);
  background:
    linear-gradient(
      150deg,
      rgba(var(--family-rgb), 0.34),
      rgba(18, 27, 37, 0.97) 64%
    );
  box-shadow:
    inset 0 5px 0 rgba(var(--family-rgb), 0.98),
    0 0 22px rgba(var(--family-rgb), 0.15),
    0 13px 38px rgba(0, 0, 0, 0.3);
}

.ourland-tree-card.is-spouse-card:not(.is-focus) {
  border-color: rgba(var(--family-rgb, 235, 239, 245), 0.62);
  color: rgba(237, 241, 246, 0.78);
  background:
    linear-gradient(
      150deg,
      rgba(var(--family-rgb, 235, 239, 245), 0.21),
      rgba(12, 19, 27, 0.97) 66%
    );
  box-shadow:
    inset 0 4px 0 rgba(var(--family-rgb, 235, 239, 245), 0.72),
    0 10px 28px rgba(0, 0, 0, 0.24);
}

.ourland-tree-card.is-deemphasized:not(.is-focus) {
  opacity: 0.62;
  filter: grayscale(0.78);
}

.ourland-tree-card.is-extended-family:not(.is-focus) {
  opacity: 0.24;
  filter: grayscale(0.88) saturate(0.38);
}

.ourland-tree-card.is-downstream:not(.is-focus) {
  opacity: 1;
  filter: none;
  border-color: rgba(var(--family-rgb, 222, 178, 102), 0.92);
  box-shadow:
    inset 0 4px 0 rgba(var(--family-rgb, 222, 178, 102), 0.9),
    0 0 0 2px rgba(var(--family-rgb, 222, 178, 102), 0.24),
    0 0 24px rgba(var(--family-rgb, 222, 178, 102), 0.22),
    0 16px 42px rgba(0, 0, 0, 0.38);
}

.ourland-tree-card:hover,
.ourland-tree-card:focus-visible {
  z-index: 3;
  opacity: 1;
  filter: none;
  border-color: var(--ourland-gold);
  transform: scale(1.035);
}

.ourland-tree-card.is-focus {
  z-index: 4;
  border-color: rgba(255, 215, 145, 1);
  color: #fff;
  background:
    linear-gradient(
      145deg,
      rgba(58, 67, 78, 0.99),
      rgba(29, 38, 49, 0.99)
    );
  transform: scale(1.34);
  box-shadow:
    inset 0 3px 0 rgba(255, 225, 169, 0.42),
    0 0 0 6px rgba(222, 178, 102, 0.38),
    0 0 58px rgba(222, 178, 102, 0.58),
    0 30px 70px rgba(0, 0, 0, 0.58);
}

.ourland-tree-card.is-focus::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 235, 195, 0.18);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.ourland-tree-card__portrait {
  display: none;
  align-self: stretch;
  place-items: center;
  overflow: hidden;
  color: #111820;
  background: linear-gradient(145deg, #d8bd8d, #8f6b43);
  font-size: 18px;
  font-weight: 760;
}

.ourland-tree-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ourland-tree-card > span:last-child {
  display: flex;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 12px 12px 9px;
}

.ourland-tree-card strong,
.ourland-tree-card small,
.ourland-tree-card em {
  display: block;
}

.ourland-tree-card strong {
  overflow: hidden;
  color: rgba(250, 252, 255, 0.98);
  font-size: 50px;
  font-weight: 740;
  line-height: 1.08;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ourland-tree.is-showing-last-names .ourland-tree-card strong {
  font-size: 42px;
}

.ourland-tree.is-showing-last-names .ourland-tree-card.has-long-name strong {
  font-size: 34px;
}

.ourland-tree.is-showing-last-names .ourland-tree-card.has-very-long-name strong {
  font-size: 25px;
}

.ourland-tree-card small {
  margin-top: 4px;
  font-weight: 620;
  line-height: 1.12;
}

.ourland-tree-card__birthday {
  color: rgba(205, 213, 223, 0.86);
  font-size: 22px;
  white-space: nowrap;
}

.ourland-tree-card__age {
  margin-top: 3px !important;
  color: #e3bd78 !important;
  font-size: 26px;
  font-weight: 730 !important;
}

.ourland-tree-card__age.is-deceased {
  color: #dc8f89 !important;
}

.ourland-tree-card em {
  overflow: hidden;
  margin-top: 5px;
  padding-bottom: 2px;
  color: rgba(197, 162, 105, 0.82);
  font-size: 17px;
  font-weight: 680;
  line-height: 1.2;
  font-style: normal;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ourland-tree-card em:empty {
  display: none;
}

.ourland-tree__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 15px;
  border-top: 1px solid var(--ourland-line);
  color: var(--ourland-muted);
  background: rgba(17, 25, 35, 0.94);
  font-size: 11px;
}

.ourland-tree__summary {
  margin-right: auto;
  color: rgba(237, 241, 246, 0.7);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.ourland-tree__legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ourland-tree__legend i {
  display: inline-block;
  width: 21px;
  height: 2px;
  background: rgba(197, 162, 105, 0.7);
}

.ourland-tree__legend .is-step {
  background: repeating-linear-gradient(90deg, #7fb2cd 0 5px, transparent 5px 8px);
}

.ourland-tree__legend .is-former {
  background: repeating-linear-gradient(90deg, #d29797 0 3px, transparent 3px 6px);
}

@media (max-width: 760px) {
  .ourland-people__header,
  .ourland-tree-header,
  .ourland-person-hero,
  .ourland-tree__connect {
    display: block;
  }

  .ourland-page-header__actions {
    margin-top: 20px;
  }

  .ourland-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .ourland-person-card {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 86px;
  }

  .ourland-person-card__copy {
    padding: 9px;
  }

  .ourland-person-card__copy strong {
    font-size: 14px;
  }

  .ourland-person-card__copy em {
    display: none;
  }

  .ourland-person-hero__portrait {
    width: min(72vw, 300px);
    margin: 0 0 30px;
  }

  .ourland-person-hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  .ourland-tree__connect > div:first-child {
    margin-bottom: 18px;
  }

  .ourland-tree__toolbar {
    flex-wrap: wrap;
  }

  .ourland-tree__focus {
    order: 3;
    width: 100%;
  }

  .ourland-tree__focus select {
    flex: 1;
  }

  .ourland-relationship-form {
    grid-template-columns: 1fr;
  }

  .ourland-relationship-form__dates,
  .ourland-relationship-form > .form-item-notes,
  .ourland-relationship-form .form-actions {
    grid-column: 1;
  }

  .ourland-tree__viewport {
    height: 64vh;
  }
}

@font-face {
  font-family: "KinDex Inter";
  src: url("../../archive_scrubber/fonts/InterVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.ourland-explorer-page {
  background: var(--ourland-bg);
  color: var(--ourland-text);
  font-family: "KinDex Inter", Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body.ourland-explorer-page,
body.ourland-explorer-page .dialog-off-canvas-main-canvas,
body.ourland-explorer-page .page-wrapper,
body.ourland-explorer-page .layout-container,
body.ourland-explorer-page .site-main,
body.ourland-explorer-page .main-content {
  background: var(--ourland-bg) !important;
}

/*
 * Olivero caps the entire page at --max-bg-color (1570px), which leaves a
 * large unused column on ultrawide and 4K displays. OurLand is an immersive
 * media surface, so its shell and header should always use the full viewport.
 */
body.ourland-explorer-page .dialog-off-canvas-main-canvas,
body.ourland-explorer-page .page-wrapper,
body.ourland-explorer-page .layout-container,
body.ourland-explorer-page .site-main,
body.ourland-explorer-page .main-content,
body.ourland-explorer-page .main-content__container {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

body.ourland-explorer-page #block-olivero-page-title,
body.ourland-explorer-page .region--highlighted,
body.ourland-explorer-page .region--breadcrumb,
body.ourland-explorer-page .region--content-above,
body.ourland-explorer-page .social-bar,
body.ourland-explorer-page .site-footer {
  display: none !important;
}

body.ourland-explorer-page .layout-main-wrapper,
body.ourland-explorer-page .layout-main,
body.ourland-explorer-page main,
body.ourland-explorer-page .region--content,
body.ourland-explorer-page #block-olivero-content {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--ourland-bg) !important;
}

body.ourland-explorer-page .main-content {
  width: 100% !important;
}

body.ourland-explorer-page .main-content__container {
  max-width: none;
  padding: 0 !important;
}

body.ourland-explorer-page #block-olivero-content {
  grid-column: 1 / -1;
}

body.ourland-explorer-page .site-header,
body.ourland-explorer-page .site-header__fixable,
body.ourland-explorer-page .site-header__inner,
body.ourland-explorer-page .site-header__inner__container,
body.ourland-explorer-page .header-nav {
  height: 78px !important;
  min-height: 78px !important;
  width: 100% !important;
  max-width: none !important;
  background: #101720 !important;
}

body.ourland-explorer-page .site-header {
  margin-top: 0 !important;
  inset-block-start: 0 !important;
}

body.ourland-explorer-page .site-header__fixable {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
}

body.ourland-explorer-page .site-header__initial {
  display: none !important;
}

body.ourland-explorer-page .site-header__inner {
  width: 100% !important;
  margin-left: 0 !important;
  transform: none !important;
}

body.ourland-explorer-page .site-branding {
  min-height: 78px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

body.ourland-explorer-page .site-branding__inner {
  height: auto !important;
  gap: 3px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.ourland-explorer-page .site-branding__name {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.ourland-explorer-page .site-branding__name > a:first-child {
  font-size: 27px;
  line-height: 30px;
}

body.ourland-explorer-page .site-branding__slogan {
  font-size: 12px;
  font-style: italic;
  line-height: 14px;
  opacity: 0.82;
}

body.ourland-explorer-page .kindex-mark {
  display: inline-flex;
  width: 46px;
  height: 31px;
  flex: 0 0 auto;
  color: #d1ae70;
  line-height: 0;
  opacity: 0.92;
}

body.ourland-explorer-page .kindex-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}

body.ourland-explorer-page .kindex-mark__frame {
  fill: rgba(17, 23, 32, 0.16);
  stroke: rgba(241, 234, 223, 0.48);
  stroke-width: 1;
}

body.ourland-explorer-page .kindex-mark__world {
  fill: rgba(17, 23, 32, 0.2);
  stroke: currentColor;
  stroke-width: 2.4;
}

body.ourland-explorer-page .kindex-mark__land {
  fill: none;
  stroke: rgba(245, 238, 227, 0.62);
  stroke-width: 1.25;
  stroke-linecap: round;
}

body.ourland-explorer-page .kindex-mark__rewind-left {
  fill: currentColor;
}

body.ourland-explorer-page .kindex-mark__rewind-right,
body.ourland-explorer-page .kindex-mark__memory {
  fill: #f5eee3;
}

body.ourland-explorer-page .kindex-mark__stem {
  fill: none;
  stroke: #f5eee3;
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.ourland-shell,
.ourland-shell * {
  box-sizing: border-box;
}

.ourland-shell {
  --ourland-shell-pad: clamp(18px, 3vw, 52px);
  width: 100%;
  max-width: none;
  min-height: 70vh;
  margin: 0 auto;
  padding: 12px var(--ourland-shell-pad) 80px;
  color: var(--ourland-text);
  font-family: "KinDex Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ourland-section-nav {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0 0 20px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--ourland-line);
  border-radius: 14px;
  background: rgba(17, 25, 35, 0.86);
  scrollbar-width: none;
}

.ourland-section-nav::-webkit-scrollbar {
  display: none;
}

.ourland-section-nav a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--ourland-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.ourland-section-nav a:hover,
.ourland-section-nav a:focus-visible {
  color: var(--ourland-text);
}

.ourland-section-nav a.is-active {
  color: var(--ourland-text);
  background: var(--ourland-panel-2);
  box-shadow: inset 0 0 0 1px rgba(197, 162, 105, 0.25);
}

.ourland-hero {
  max-width: 850px;
  margin: 0 auto 64px;
  text-align: center;
}

.ourland-hero--discover {
  margin-bottom: 28px;
}

.ourland-hero--discover > p:not(.ourland-eyebrow) {
  max-width: 720px;
}

.ourland-entry-locked {
  overflow: hidden;
}

.ourland-entry-locked .ourland-discover > :not(.ourland-entry-gate) {
  opacity: 0.2;
  filter: blur(18px) brightness(0.42) saturate(0.7);
  transform: scale(0.91);
  transform-origin: 50% 42vh;
}

.ourland-world-entering {
  overflow: hidden;
}

.ourland-world-entering .ourland-discover > :not(.ourland-entry-gate) {
  animation: ourland-world-arrival 1750ms
    cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 50% 42vh;
}

.ourland-world-entering .ourland-discover > .ourland-memory-ribbon {
  animation: ourland-memory-awaken 1850ms
    cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ourland-world-arrival {
  0% {
    opacity: 0.2;
    filter: blur(18px) brightness(0.42) saturate(0.7);
    transform: scale(0.91);
  }
  38% {
    opacity: 0.72;
    filter: blur(7px) brightness(0.72) saturate(0.9);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: scale(1);
  }
}

@keyframes ourland-memory-awaken {
  0% {
    opacity: 0.08;
    filter: blur(14px) saturate(0.45);
    transform: scale(0.94);
  }
  48% {
    opacity: 0.58;
  }
  100% {
    opacity: 1;
    filter: none;
    transform: scale(1);
  }
}

.ourland-stage-host,
.ourland-stage-host body {
  overflow: hidden;
}

.ourland-stage-host body::after {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  background: #080d13;
  content: "";
  pointer-events: none;
}

.ourland-immersive-stage {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: #080d13;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.ourland-immersive-stage.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.ourland-immersive-stage.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.ourland-embedded-stage .ourland-entry-gate {
  display: none !important;
}

@media (hover: none) and (pointer: coarse) {
  html,
  body {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .ourland-immersive-stage {
    transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.ourland-entry-gate {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  color: #f3eee6;
  background:
    radial-gradient(circle at 50% 43%, rgba(132, 103, 67, 0.24), transparent 34%),
    linear-gradient(145deg, #080c11, #020406 72%);
  opacity: 1;
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 900ms linear;
}

.ourland-entry-gate::before,
.ourland-entry-gate::after,
.ourland-entry-gate__atmosphere {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(74vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(207, 172, 111, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition:
    transform 1800ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1400ms ease;
}

.ourland-entry-gate::after {
  width: min(52vw, 600px);
  border-color: rgba(207, 172, 111, 0.17);
  transition-delay: 100ms;
}

.ourland-entry-gate__atmosphere {
  width: min(31vw, 360px);
  border-color: rgba(207, 172, 111, 0.26);
  box-shadow:
    0 0 90px rgba(207, 172, 111, 0.08),
    inset 0 0 70px rgba(207, 172, 111, 0.05);
  transition-delay: 180ms;
}

.ourland-entry-gate.is-ready::before,
.ourland-entry-gate.is-ready::after,
.ourland-entry-gate.is-ready .ourland-entry-gate__atmosphere {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ourland-entry-gate__content {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 900ms ease 160ms,
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) 160ms;
}

.ourland-entry-gate.is-ready .ourland-entry-gate__content {
  opacity: 1;
  transform: none;
}

.ourland-entry-gate__eyebrow {
  margin: 0 0 15px;
  color: #caa96e;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ourland-entry-gate h1 {
  margin: 0;
  color: #f5f1ea;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.ourland-entry-gate__content > p:not(.ourland-entry-gate__eyebrow) {
  margin: 22px auto 32px;
  color: rgba(239, 235, 228, 0.63);
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.01em;
}

.ourland-entry-gate__enter {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 13px 19px 13px 23px;
  border: 1px solid rgba(214, 179, 118, 0.64);
  border-radius: 999px;
  color: #111418;
  background: #d1ad6d;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 220ms ease,
    color 260ms ease,
    background 260ms ease,
    opacity 400ms ease;
}

.ourland-entry-gate__enter:disabled {
  opacity: 0.34;
  cursor: wait;
}

.ourland-entry-gate__enter:not(:disabled):hover,
.ourland-entry-gate__enter:not(:disabled):focus-visible {
  color: #f4eee5;
  background: rgba(207, 172, 111, 0.15);
  transform: scale(1.025);
}

.ourland-entry-gate__silent {
  display: block;
  margin: 16px auto 0;
  padding: 7px 12px;
  border: 0;
  color: rgba(238, 235, 229, 0.36);
  background: transparent;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 180ms ease;
}

.ourland-entry-gate__silent:hover,
.ourland-entry-gate__silent:focus-visible {
  color: rgba(238, 235, 229, 0.72);
}

.ourland-entry-gate.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition-duration: 1600ms;
}

.ourland-entry-gate.is-leaving::before,
.ourland-entry-gate.is-leaving::after,
.ourland-entry-gate.is-leaving .ourland-entry-gate__atmosphere {
  opacity: 0;
  transform: translate(-50%, -50%) scale(4.8);
  transition:
    transform 1650ms cubic-bezier(0.12, 0.82, 0.18, 1),
    opacity 1250ms ease;
  transition-delay: 0ms;
}

.ourland-entry-gate.is-leaving .ourland-entry-gate__content {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.16);
  transition-duration: 1000ms;
  transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  .ourland-world-entering .ourland-discover > :not(.ourland-entry-gate),
  .ourland-world-entering .ourland-discover > .ourland-memory-ribbon {
    animation-duration: 1ms;
  }

  .ourland-entry-gate.is-leaving::before,
  .ourland-entry-gate.is-leaving::after,
  .ourland-entry-gate.is-leaving .ourland-entry-gate__atmosphere {
    transform: translate(-50%, -50%) scale(1);
  }
}

.ourland-memory-ribbon {
  position: relative;
  margin: 0 calc(var(--ourland-shell-pad) * -1) 26px;
  isolation: isolate;
}

.ourland-memory-ribbon::before,
.ourland-memory-ribbon::after {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: clamp(34px, 6vw, 105px);
  content: "";
  pointer-events: none;
}

.ourland-memory-ribbon::before {
  left: 0;
  background: linear-gradient(90deg, var(--ourland-bg), transparent);
}

.ourland-memory-ribbon::after {
  right: 0;
  background: linear-gradient(270deg, var(--ourland-bg), transparent);
}

.ourland-memory-ribbon__film {
  position: relative;
  padding: 19px 0;
  overflow: hidden;
  border-block: 1px solid rgba(197, 162, 105, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.025)),
    #030609;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.4),
    inset 0 0 42px rgba(0, 0, 0, 0.72);
}

.ourland-memory-ribbon__film::before,
.ourland-memory-ribbon__film::after {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  height: 13px;
  background:
    radial-gradient(
      ellipse at center,
      #0b1016 0 4px,
      rgba(197, 162, 105, 0.2) 4.5px 5px,
      transparent 5.5px
    )
    0 50% / 30px 12px repeat-x;
  content: "";
  pointer-events: none;
}

.ourland-memory-ribbon__film::before {
  top: 2px;
}

.ourland-memory-ribbon__film::after {
  bottom: 2px;
}

.ourland-memory-ribbon__viewport {
  position: relative;
  overflow: hidden;
  contain: layout paint;
}

.ourland-memory-ribbon__track {
  display: flex;
  width: max-content;
  gap: 4px;
  transform-style: preserve-3d;
  will-change: transform;
}

.ourland-memory-ribbon__frame {
  position: relative;
  width: clamp(270px, 26vw, 390px);
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(197, 162, 105, 0.2);
  background: #020304;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backface-visibility: hidden;
  contain: layout paint style;
  cursor: pointer;
}

.ourland-memory-ribbon__frame:focus {
  outline: none;
}

.ourland-memory-ribbon__frame:focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(223, 189, 126, 0.75),
    0 0 0 2px rgba(223, 189, 126, 0.25);
}

.ourland-memory-ribbon__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.018);
  backface-visibility: hidden;
  filter: saturate(0.92) contrast(1.02);
  transition: opacity 180ms ease-out;
  will-change: transform, opacity;
}

.ourland-memory-ribbon__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 6, 0.14), transparent 34%),
    linear-gradient(0deg, rgba(2, 4, 6, 0.72), transparent 36%);
  pointer-events: none;
}

.ourland-memory-ribbon__identity {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px;
  color: rgba(245, 238, 227, 0.78);
  text-shadow: 0 1px 8px #000;
  pointer-events: none;
}

.ourland-memory-ribbon__identity strong {
  color: #dfbd7e;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.ourland-memory-ribbon__identity small {
  min-width: 0;
  overflow: hidden;
  opacity: 0.58;
  font-size: 10px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ourland-memory-ribbon__controls {
  position: absolute;
  z-index: 7;
  right: clamp(16px, 2.8vw, 44px);
  bottom: 29px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ourland-memory-ribbon__pause,
.ourland-memory-ribbon__sound {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(237, 241, 246, 0.18);
  border-radius: 50%;
  color: rgba(237, 241, 246, 0.58);
  background: rgba(5, 9, 13, 0.56);
  font-size: 10px;
  line-height: 1;
  opacity: 0.32;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ourland-memory-ribbon__sound svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.ourland-memory-ribbon__speaker {
  fill: currentColor;
  stroke: none;
}

.ourland-memory-ribbon__waves,
.ourland-memory-ribbon__mute {
  transition: opacity 180ms ease;
}

.ourland-memory-ribbon__waves {
  opacity: 0.1;
}

.ourland-memory-ribbon__mute {
  opacity: 0.9;
}

.ourland-memory-ribbon.is-sound-on .ourland-memory-ribbon__waves {
  opacity: 1;
}

.ourland-memory-ribbon.is-sound-on .ourland-memory-ribbon__mute {
  opacity: 0;
}

.ourland-memory-ribbon:hover .ourland-memory-ribbon__pause,
.ourland-memory-ribbon:hover .ourland-memory-ribbon__sound,
.ourland-memory-ribbon__pause:focus-visible,
.ourland-memory-ribbon__sound:focus-visible,
.ourland-memory-ribbon.is-paused .ourland-memory-ribbon__pause {
  border-color: rgba(197, 162, 105, 0.42);
  color: rgba(237, 241, 246, 0.9);
  opacity: 0.88;
}

.ourland-discover-entry {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}

.ourland-discover-entry .ourland-hero-search {
  margin-top: 0;
}

.ourland-discover-entry .ourland-hero__actions {
  margin-top: 16px;
}

.ourland-eyebrow {
  margin: 0 0 12px;
  color: var(--ourland-gold) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ourland-hero h1,
.ourland-page-header h1,
.ourland-moment__info h1 {
  margin: 0;
  color: var(--ourland-text);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.ourland-hero > p:not(.ourland-eyebrow) {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--ourland-muted);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.55;
}

.ourland-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.ourland-hero-search,
.ourland-search-form {
  display: flex;
  width: min(100%, 640px);
  margin: 30px auto 0;
  overflow: hidden;
  border: 1px solid rgba(235, 239, 245, 0.16);
  border-radius: 13px;
  background: rgba(17, 25, 35, 0.88);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.ourland-search-form {
  flex-direction: column;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ourland-search-form__query {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(235, 239, 245, 0.16);
  border-radius: 13px;
  background: rgba(17, 25, 35, 0.88);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.ourland-hero-search input,
.ourland-search-form input {
  min-width: 0;
  flex: 1;
  padding: 13px 16px;
  border: 0;
  outline: 0;
  color: var(--ourland-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.ourland-hero-search button,
.ourland-search-form button {
  min-width: 50px;
  border: 0;
  color: var(--ourland-muted);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.ourland-hero-search:focus-within,
.ourland-search-form__query:focus-within {
  border-color: rgba(197, 162, 105, 0.58);
  box-shadow: 0 0 0 3px rgba(197, 162, 105, 0.09);
}

.ourland-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--ourland-line);
  border-radius: 10px;
  color: var(--ourland-text) !important;
  background: var(--ourland-panel);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
}

.ourland-button.is-primary {
  border-color: transparent;
  color: #111820 !important;
  background: var(--ourland-gold);
}

.ourland-button--shuffle {
  gap: 9px;
  min-height: 48px;
  padding-inline: 21px;
  border-color: rgba(224, 190, 130, 0.68);
  color: #111820 !important;
  background:
    linear-gradient(135deg, #d8b878 0%, #bd9557 100%);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 238, 199, 0.08) inset;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.ourland-button--shuffle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ourland-button--shuffle:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 244, 215, 0.14) inset;
}

.ourland-button--shuffle:active {
  transform: translateY(0) scale(0.985);
}

.ourland-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto 80px;
  border: 1px solid var(--ourland-line);
  border-radius: 16px;
  background: var(--ourland-panel);
}

.ourland-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-right: 1px solid var(--ourland-line);
}

.ourland-stats div:last-child {
  border: 0;
}

.ourland-stats strong {
  color: var(--ourland-text);
  font-size: 27px;
  font-weight: 450;
}

.ourland-stats span {
  color: var(--ourland-muted);
  font-size: 12px;
}

.ourland-section {
  margin: 0 0 78px;
}

.ourland-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 0 0 22px;
}

.ourland-section__heading h2,
.ourland-empty h2 {
  margin: 0;
  color: var(--ourland-text);
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.ourland-section__heading > a {
  color: var(--ourland-muted);
  font-size: 14px;
  text-decoration: none;
}

.ourland-portals {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ourland-portals a {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--ourland-line);
  border-radius: 14px;
  color: var(--ourland-text);
  background:
    radial-gradient(circle at 80% 10%, rgba(197, 162, 105, 0.17), transparent 48%),
    linear-gradient(150deg, var(--ourland-panel-2), var(--ourland-panel));
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.ourland-portals a:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 162, 105, 0.42);
}

.ourland-portals span {
  font-size: 21px;
  font-weight: 520;
}

.ourland-portals small {
  color: var(--ourland-muted);
  font-size: 12px;
}

.ourland-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px 10px;
}

.ourland-card {
  min-width: 0;
  color: var(--ourland-text) !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.ourland-card:focus,
.ourland-card:active {
  outline: none !important;
  box-shadow: none !important;
}

.ourland-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 9px;
  background: #05080b;
}

.ourland-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.ourland-card:hover .ourland-card__visual img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.ourland-card__visual.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(197, 162, 105, 0.22), transparent 30%),
    linear-gradient(145deg, #1b2633, #101720);
}

.ourland-card__visual.is-placeholder > span:first-child {
  color: rgba(237, 241, 246, 0.22);
  font-size: 58px;
  font-weight: 250;
}

.ourland-card__type {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(3, 6, 9, 0.56);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.ourland-card__copy {
  padding: 9px 2px 0;
}

.ourland-card__copy h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ourland-text);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ourland-card__copy p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--ourland-muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ourland-card__copy .ourland-card__meta {
  color: var(--ourland-gold);
  -webkit-line-clamp: 1;
}

.ourland-decades {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.ourland-decades a {
  display: flex;
  min-width: 150px;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--ourland-line);
  border-radius: 12px;
  color: var(--ourland-text);
  background: var(--ourland-panel);
  text-decoration: none;
}

.ourland-decades strong {
  font-size: 25px;
  font-weight: 400;
}

.ourland-decades span {
  color: var(--ourland-muted);
  font-size: 11px;
}

.ourland-page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 0 0 28px;
}

.ourland-page-header > div {
  max-width: 760px;
}

.ourland-page-header h1 {
  font-size: clamp(40px, 5vw, 68px);
}

.ourland-page-header > div > p:last-child {
  max-width: 660px;
  margin: 17px 0 0;
  color: var(--ourland-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ourland-empty {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  border: 1px dashed rgba(235, 239, 245, 0.18);
  border-radius: 18px;
  text-align: center;
  background: radial-gradient(circle, rgba(197, 162, 105, 0.06), transparent 50%);
}

.ourland-empty--quiet {
  min-height: 240px;
}

.ourland-search-form {
  margin: -12px 0 36px;
}

.ourland-search-form button {
  min-width: 92px;
  color: #111820;
  background: var(--ourland-gold);
  font-size: 13px;
  font-weight: 700;
}

.ourland-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.ourland-type-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--ourland-line);
  border-radius: 999px;
  color: var(--ourland-muted);
  background: rgba(17, 25, 35, 0.72);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.ourland-type-chip:hover {
  border-color: rgba(197, 162, 105, 0.48);
  color: var(--ourland-text);
}

.ourland-type-chip.is-active {
  border-color: rgba(197, 162, 105, 0.65);
  color: #111820;
  background: var(--ourland-gold);
}

.ourland-type-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ourland-search-form.is-filtering {
  opacity: 0.72;
  pointer-events: none;
}

.ourland-search-count {
  margin: 0 0 18px;
  color: var(--ourland-muted);
  font-size: 12px;
}

.ourland-entity-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  margin: 0 0 80px;
}

.ourland-entity-hero__visual {
  display: grid;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ourland-panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.ourland-entity-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ourland-entity-hero__visual span {
  color: rgba(237, 241, 246, 0.16);
  font-size: clamp(80px, 12vw, 170px);
  font-weight: 250;
}

.ourland-entity-hero h1 {
  margin: 0;
  color: var(--ourland-text);
  font-size: clamp(44px, 7vw, 94px);
  font-weight: 340;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.ourland-entity-hero > div:last-child > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ourland-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ourland-maker {
  margin: -18px 0 42px;
  border: 1px solid var(--ourland-line);
  border-radius: 16px;
  background: var(--ourland-panel);
}

.ourland-maker__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  color: var(--ourland-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
}

.ourland-maker__toggle span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(197, 162, 105, 0.4);
  border-radius: 50%;
  color: var(--ourland-gold);
  font-size: 17px;
  font-weight: 350;
}

.ourland-maker__toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.ourland-maker__panel {
  padding: 2px 18px 20px;
  border-top: 1px solid var(--ourland-line);
}

.ourland-clip-form__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 24px;
  padding-top: 18px;
}

.ourland-clip-form__player {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #020305;
}

.ourland-clip-form__player video {
  display: block;
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
}

.ourland-clip-form__player p {
  position: absolute;
  margin: 0;
  color: #727b87;
  font-size: 14px;
}

.ourland-clip-form__fields {
  min-width: 0;
}

.ourland-clip-form label,
.ourland-clip-form .form-item__label {
  color: var(--ourland-muted) !important;
  font-size: 11px !important;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ourland-clip-form input,
.ourland-clip-form select,
.ourland-clip-form textarea {
  width: 100%;
  border: 1px solid var(--ourland-line) !important;
  border-radius: 8px !important;
  color: var(--ourland-text) !important;
  background: #0b1118 !important;
}

.ourland-clip-form .form-item {
  margin-block: 0 14px;
}

.ourland-clip-form__marks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.ourland-clip-form__marks .form-item {
  margin-bottom: 0;
}

.ourland-mark-button,
.ourland-clip-form__selection input {
  min-height: 40px;
  padding: 7px 10px !important;
  border: 1px solid var(--ourland-line) !important;
  border-radius: 8px !important;
  color: var(--ourland-text) !important;
  background: var(--ourland-panel-2) !important;
  font-size: 11px !important;
  cursor: pointer;
}

.ourland-clip-form__selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ourland-line);
}

.ourland-clip-form__selection span {
  color: var(--ourland-gold);
  font-size: 12px;
}

.ourland-clip-form .form-actions {
  justify-content: flex-end;
  margin: 0;
}

.ourland-clip-form .form-actions input[type="submit"] {
  width: auto;
  min-height: 42px;
  padding: 9px 18px !important;
  border-color: transparent !important;
  color: #111820 !important;
  background: var(--ourland-gold) !important;
  font-weight: 700;
}

.ourland-empty > span {
  margin-bottom: 10px;
  color: var(--ourland-gold);
  font-size: 52px;
  font-weight: 200;
}

.ourland-empty > p {
  max-width: 520px;
  margin: 12px auto 22px;
  color: var(--ourland-muted);
}

.ourland-timeline__rail {
  position: relative;
  padding-left: 128px;
}

.ourland-timeline__rail::before {
  position: absolute;
  top: 9px;
  bottom: 0;
  left: 96px;
  width: 1px;
  background: linear-gradient(var(--ourland-gold), rgba(197, 162, 105, 0.06));
  content: "";
}

.ourland-year {
  position: relative;
  margin-bottom: 60px;
}

.ourland-year::before {
  position: absolute;
  top: 7px;
  left: -36px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ourland-bg);
  border-radius: 50%;
  background: var(--ourland-gold);
  box-shadow: 0 0 0 1px var(--ourland-gold);
  content: "";
}

.ourland-year__label {
  position: absolute;
  top: -2px;
  left: -128px;
  display: flex;
  width: 80px;
  flex-direction: column;
  text-align: right;
}

.ourland-year__label strong {
  font-size: 20px;
  font-weight: 450;
}

.ourland-year__label span {
  color: var(--ourland-muted);
  font-size: 9px;
}

.ourland-back {
  display: inline-block;
  margin: -28px 0 24px;
  color: var(--ourland-muted);
  font-size: 13px;
  text-decoration: none;
}

.ourland-moment article {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.ourland-moment__player {
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.ourland-moment__player video,
.ourland-moment__player img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.ourland-moment__info h1 {
  font-size: clamp(38px, 5vw, 70px);
}

.ourland-moment__summary {
  margin: 22px 0;
  color: var(--ourland-muted);
  font-size: 16px;
  line-height: 1.6;
}

.ourland-moment__info dl {
  margin-top: 30px;
  border-top: 1px solid var(--ourland-line);
}

.ourland-moment__info dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--ourland-line);
  font-size: 13px;
}

.ourland-moment__info dt {
  color: var(--ourland-muted);
}

.ourland-moment__info dd {
  margin: 0;
}

.ourland-moment__info a {
  color: var(--ourland-text);
}

@media (max-width: 900px) {
  .ourland-section-nav {
    margin-bottom: 18px;
  }

  .ourland-portals {
    grid-template-columns: repeat(2, 1fr);
  }

  .ourland-portals a:last-child {
    grid-column: 1 / -1;
  }

  .ourland-moment article {
    grid-template-columns: 1fr;
  }

  .ourland-entity-hero {
    grid-template-columns: 1fr;
  }

  .ourland-clip-form__workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  /*
   * Keep authenticated local previews pixel-aligned with the anonymous
   * production experience. This only hides Drupal's admin chrome on OurLand
   * frontend routes; /admin remains unchanged.
   */
  body.ourland-explorer-page > .admin-toolbar-control-bar,
  body.ourland-explorer-page > #admin-toolbar {
    display: none !important;
  }

  body.ourland-explorer-page .site-header,
  body.ourland-explorer-page .site-header__fixable,
  body.ourland-explorer-page .site-header__inner,
  body.ourland-explorer-page .site-header__inner__container,
  body.ourland-explorer-page .site-branding,
  body.ourland-explorer-page .header-nav {
    height: 56px !important;
    min-height: 56px !important;
  }

  body.ourland-explorer-page .site-branding {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  body.ourland-explorer-page .site-branding__name {
    gap: 9px;
  }

  body.ourland-explorer-page .site-branding__name > a:first-child {
    font-size: 22px;
    line-height: 24px;
  }

  body.ourland-explorer-page .site-branding__slogan {
    font-size: 10px;
    line-height: 12px;
  }

  body.ourland-explorer-page .kindex-mark {
    width: 38px;
    height: 26px;
  }

  .ourland-shell {
    --ourland-shell-pad: 12px;
    padding: 8px 12px 50px;
  }

  .ourland-section-nav {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 1px;
    margin-right: -12px;
    margin-bottom: 14px;
    margin-left: -12px;
    padding: 4px;
    overflow-x: hidden;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .ourland-section-nav a {
    min-width: 0;
    padding: 8px 1px;
    overflow: hidden;
    font-size: clamp(8px, 2.35vw, 11px);
    letter-spacing: -0.025em;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
  }

  .ourland-hero {
    margin-bottom: 42px;
    text-align: left;
  }

  .ourland-hero--discover {
    margin-bottom: 20px;
  }

  .ourland-memory-ribbon {
    margin-bottom: 20px;
  }

  .ourland-memory-ribbon::before,
  .ourland-memory-ribbon::after {
    width: 22px;
  }

  .ourland-memory-ribbon__film {
    padding-block: 16px;
  }

  .ourland-memory-ribbon__film::before,
  .ourland-memory-ribbon__film::after {
    height: 10px;
    background-size: 25px 10px;
  }

  .ourland-memory-ribbon__frame {
    width: clamp(118px, 34vw, 170px);
  }

  .ourland-memory-ribbon__identity {
    right: 10px;
    bottom: 8px;
    left: 10px;
  }

  .ourland-memory-ribbon__controls {
    right: 16px;
    bottom: 24px;
  }

  .ourland-discover-entry {
    margin-bottom: 44px;
    text-align: center;
  }

  .ourland-hero__actions {
    justify-content: flex-start;
  }

  .ourland-hero-search {
    margin-right: 0;
    margin-left: 0;
  }

  .ourland-discover .ourland-hero--discover {
    text-align: center;
  }

  .ourland-discover .ourland-hero__actions {
    justify-content: center;
  }

  .ourland-discover .ourland-hero-search {
    margin-right: auto;
    margin-left: auto;
  }

  .ourland-discover .ourland-section__heading {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .ourland-discover .ourland-section__heading > div {
    width: 100%;
  }

  .ourland-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 52px;
  }

  .ourland-stats div:nth-child(2) {
    border-right: 0;
  }

  .ourland-stats div:nth-child(-n+2) {
    border-bottom: 1px solid var(--ourland-line);
  }

  .ourland-portals {
    grid-template-columns: 1fr 1fr;
  }

  .ourland-portals a {
    min-height: 115px;
    padding: 14px;
  }

  .ourland-portals span {
    font-size: 17px;
  }

  .ourland-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 5px;
  }

  .ourland-page-header {
    display: block;
    margin-bottom: 32px;
  }

  .ourland-page-header .ourland-button {
    margin-top: 20px;
  }

  .ourland-maker {
    margin-top: -8px;
  }

  .ourland-maker__panel {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ourland-clip-form__player {
    min-height: 220px;
  }

  .ourland-clip-form__marks {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ourland-timeline__rail {
    padding-left: 0;
  }

  .ourland-search-form {
    width: 100%;
  }

  .ourland-entity-hero {
    margin-bottom: 50px;
  }

  .ourland-entity-hero__visual {
    min-height: 0;
  }

  .ourland-timeline__rail::before,
  .ourland-year::before {
    display: none;
  }

  .ourland-year__label {
    position: static;
    width: auto;
    margin-bottom: 12px;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  /*
   * Mobile family tree: treat the page as a single-screen workspace. The
   * desktop composition is intentionally untouched.
   */
  .ourland-family-tree-page {
    display: flex;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    min-height: 0;
    flex-direction: column;
    padding: 8px 7px 0;
    overflow: hidden;
  }

  .ourland-family-tree-page .ourland-section-nav {
    margin-right: -7px;
    margin-left: -7px;
  }

  .ourland-family-tree-page .ourland-tree-header {
    display: block;
    flex: 0 0 auto;
    margin: 0 2px 6px;
  }

  .ourland-family-tree-page .ourland-tree-header .ourland-eyebrow {
    margin-bottom: 2px;
    font-size: 8px !important;
    line-height: 1;
    letter-spacing: 0.1em;
  }

  .ourland-family-tree-page .ourland-tree-header h1 {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .ourland-family-tree-page .ourland-tree-header > div > p:last-child,
  .ourland-family-tree-page .ourland-tree-header > .ourland-button {
    display: none;
  }

  .ourland-family-tree-page .ourland-tree {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    border-radius: 11px;
  }

  .ourland-family-tree-page .ourland-tree__toolbar {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 3px;
  }

  .ourland-family-tree-page .ourland-tree__toolbar > div {
    display: grid;
    grid-template-columns: 26px repeat(3, minmax(0, 1fr)) 26px 26px;
    gap: 3px;
  }

  .ourland-family-tree-page .ourland-tree__toolbar button {
    min-width: 0;
    min-height: 26px;
    height: 26px;
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }

  .ourland-family-tree-page .ourland-tree__focus {
    display: grid;
    order: initial;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
    width: 100%;
    min-height: 24px;
    height: 24px;
    margin: 0;
    font-size: 8px;
    line-height: 1;
  }

  .ourland-family-tree-page .ourland-tree__focus > span {
    white-space: nowrap;
  }

  .ourland-family-tree-page .ourland-tree__focus select {
    width: 100%;
    min-width: 0;
    min-height: 24px;
    height: 24px;
    padding: 0 25px 0 7px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1;
  }

  .ourland-family-tree-page [data-tree-connect-toggle] {
    width: 100%;
  }

  .ourland-family-tree-page .ourland-tree__viewport {
    min-height: 0;
    height: auto;
    flex: 1 1 auto;
  }

  .ourland-family-tree-page .ourland-tree__legend {
    min-height: 18px;
    flex: 0 0 auto;
    padding: 2px 7px;
    font-size: 8px;
    line-height: 1.1;
  }

  .ourland-family-tree-page .ourland-tree__legend > span:not(.ourland-tree__summary) {
    display: none;
  }
}

/* The tree can become its own focused workspace on every screen size. */
.ourland-tree:fullscreen,
.ourland-tree.is-tree-window-fullscreen {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: #091018;
}

.ourland-tree:fullscreen .ourland-tree__toolbar,
.ourland-tree.is-tree-window-fullscreen .ourland-tree__toolbar {
  flex: 0 0 auto;
}

.ourland-tree:fullscreen .ourland-tree__viewport,
.ourland-tree.is-tree-window-fullscreen .ourland-tree__viewport {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
}

.ourland-tree:fullscreen .ourland-tree__legend,
.ourland-tree.is-tree-window-fullscreen .ourland-tree__legend {
  flex: 0 0 auto;
}

html.has-tree-window-fullscreen,
html.has-tree-window-fullscreen body {
  overflow: hidden;
}

@media (max-width: 600px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .ourland-family-tree-page .ourland-tree__window-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
  }

  .ourland-tree:fullscreen,
  .ourland-tree.is-tree-window-fullscreen {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: flex;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: #091018;
  }

  .ourland-tree:fullscreen .ourland-tree__toolbar,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__toolbar {
    display: flex;
    min-height: 38px;
    padding: 3px 8px;
    align-items: center;
    gap: 8px;
    background: rgba(9, 16, 24, 0.96);
  }

  .ourland-tree:fullscreen .ourland-tree__toolbar > div,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__toolbar > div {
    display: flex;
    gap: 4px;
  }

  .ourland-tree:fullscreen .ourland-tree__toolbar button,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__toolbar button {
    min-width: 34px;
    min-height: 30px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .ourland-tree:fullscreen .ourland-tree__focus,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__focus {
    display: flex;
    width: min(270px, 35vw);
    height: 30px;
    margin-left: auto;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    white-space: nowrap;
  }

  .ourland-tree:fullscreen .ourland-tree__focus select,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__focus select {
    width: 100%;
    min-height: 30px;
    height: 30px;
    padding-block: 0;
    font-size: 11px;
  }

  .ourland-tree:fullscreen .ourland-tree__viewport,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__viewport {
    min-height: 0;
    height: auto;
    flex: 1 1 auto;
  }

  .ourland-tree:fullscreen .ourland-tree__legend,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__legend {
    min-height: 18px;
    flex: 0 0 auto;
    padding: 2px 8px;
    font-size: 8px;
    line-height: 1.1;
  }

  .ourland-tree:fullscreen .ourland-tree__summary,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__summary {
    font-size: 9px;
  }

  .ourland-tree:fullscreen .ourland-tree__legend > span:not(.ourland-tree__summary),
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__legend > span:not(.ourland-tree__summary) {
    display: none;
  }

  html.has-tree-window-fullscreen,
  html.has-tree-window-fullscreen body {
    overflow: hidden;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .ourland-tree:fullscreen .ourland-tree__toolbar,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__toolbar {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 3px;
  }

  .ourland-tree:fullscreen .ourland-tree__toolbar > div,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__toolbar > div {
    display: grid;
    grid-template-columns: 26px repeat(3, minmax(0, 1fr)) 26px 26px;
    gap: 3px;
  }

  .ourland-tree:fullscreen .ourland-tree__toolbar button,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__toolbar button {
    min-width: 0;
    min-height: 26px;
    height: 26px;
    padding: 1px 4px;
    font-size: 10px;
  }

  .ourland-family-tree-page .ourland-tree__window-toggle,
  .ourland-tree:fullscreen .ourland-tree__window-toggle,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__window-toggle {
    width: 26px;
    min-width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .ourland-tree:fullscreen .ourland-tree__focus,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__focus {
    display: grid;
    width: 100%;
    height: 24px;
    margin: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
    font-size: 8px;
  }

  .ourland-tree:fullscreen .ourland-tree__focus select,
  .ourland-tree.is-tree-window-fullscreen .ourland-tree__focus select {
    min-height: 24px;
    height: 24px;
    font-size: 10px;
  }
}

/* Universe: the tape archive as a living, spatial family-memory graph. */
.ourland-universe {
  width: 100%;
  max-width: none;
  padding-inline: 14px;
}

.ourland-universe .ourland-section-nav {
  position: relative;
  z-index: 40;
}

.ourland-universe__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  height: calc(100svh - 126px);
  margin-top: 8px;
  border: 1px solid rgba(197, 162, 105, 0.18);
  border-radius: 22px;
  color: #edf3f8;
  background:
    radial-gradient(circle at 48% 46%, rgba(35, 28, 65, 0.3), transparent 31%),
    radial-gradient(circle at 70% 22%, rgba(14, 58, 77, 0.26), transparent 26%),
    radial-gradient(circle at 18% 72%, rgba(91, 50, 20, 0.17), transparent 25%),
    #010204;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.88), 0 28px 80px rgba(0, 0, 0, 0.38);
}

.ourland-universe__stage::before,
.ourland-universe__stage::after,
.ourland-universe__nebula {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.ourland-universe__stage::before {
  opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(124, 192, 225, 0.64) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(224, 181, 105, 0.5) 0 0.8px, transparent 1.3px);
  background-position: 0 0, 37px 53px, 71px 19px;
  background-size: 117px 131px, 173px 157px, 211px 193px;
  animation: ourland-stars-drift 90s linear infinite;
}

.ourland-universe__stage::after {
  opacity: 0.22;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 62px, rgba(116, 176, 216, 0.1) 63px, transparent 64px 125px);
  transform: rotate(-8deg) scale(1.4, 0.7);
}

.ourland-universe__nebula {
  opacity: 0.32;
  filter: blur(42px);
  background:
    radial-gradient(ellipse at 52% 45%, rgba(102, 58, 150, 0.34), transparent 28%),
    radial-gradient(ellipse at 33% 62%, rgba(22, 103, 127, 0.24), transparent 23%),
    radial-gradient(ellipse at 74% 53%, rgba(137, 82, 31, 0.2), transparent 20%);
  animation: ourland-nebula-breathe 18s ease-in-out infinite alternate;
}

.ourland-universe__intro {
  position: absolute;
  top: 24px;
  left: 27px;
  z-index: 30;
  max-width: 470px;
  pointer-events: none;
  text-shadow: 0 2px 24px #000;
}

.ourland-universe__intro h1 {
  margin: 1px 0 3px;
  color: #f4f6fa;
  font-size: clamp(37px, 5vw, 70px);
  font-weight: 330;
  letter-spacing: -0.055em;
}

.ourland-universe__intro > p:last-child {
  margin: 0;
  color: rgba(223, 230, 239, 0.7);
  font-size: clamp(12px, 1.2vw, 16px);
}

.ourland-universe__tools {
  position: absolute;
  top: 25px;
  right: 26px;
  z-index: 35;
  display: flex;
  gap: 7px;
}

.ourland-universe__tools button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(204, 220, 236, 0.19);
  border-radius: 50%;
  color: rgba(233, 239, 246, 0.72);
  background: rgba(8, 13, 20, 0.58);
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(13px);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ourland-universe__tools button:hover,
.ourland-universe__tools button:focus-visible {
  border-color: rgba(197, 162, 105, 0.62);
  color: #fff;
  background: rgba(30, 37, 47, 0.78);
  transform: scale(1.07);
}

.ourland-universe__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.ourland-universe__viewport:active {
  cursor: grabbing;
}

.ourland-universe__world {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 50% 50%;
  will-change: transform;
}

.ourland-universe__connections {
  position: absolute;
  inset: 0;
  overflow: visible;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  transition: opacity 500ms ease;
}

.ourland-universe__connections path {
  fill: none;
  stroke: rgba(106, 174, 213, 0.2);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.ourland-universe__connections .is-timeline path {
  stroke: rgba(210, 167, 94, 0.22);
  stroke-dasharray: 2 8;
}

.ourland-universe__connections .is-person-link {
  stroke: rgba(74, 177, 215, 0.28);
  stroke-dasharray: 1 7;
  transition: opacity 300ms ease, stroke 300ms ease, stroke-width 300ms ease;
}

.ourland-universe__connections .is-person-link.is-selected {
  opacity: 1;
  stroke: rgba(135, 213, 241, 0.9);
  stroke-width: 2.4;
}

.ourland-universe.is-connections-hidden .ourland-universe__connections {
  opacity: 0;
}

.ourland-universe-memory {
  position: absolute;
  top: var(--universe-y);
  left: var(--universe-x);
  display: block;
  width: var(--universe-width);
  aspect-ratio: 4 / 3;
  color: #fff;
  text-decoration: none;
  transform: translate(-50%, -50%) rotate(var(--universe-rotation)) scale(var(--universe-scale));
  transform-origin: center;
  transition: opacity 420ms ease, filter 420ms ease;
  will-change: transform, opacity;
}

.ourland-universe-memory__surface {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(243, 205, 137, 0.4);
  border-radius: 8px;
  background: #030405;
  box-shadow:
    0 0 0 1px rgba(255, 235, 198, 0.07),
    0 0 22px rgba(205, 157, 80, 0.18),
    0 16px 38px rgba(0, 0, 0, 0.7);
  animation: ourland-memory-float 8s ease-in-out var(--universe-delay) infinite alternate;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}

.ourland-universe-memory img,
.ourland-universe-memory video,
.ourland-universe-memory .archive-scrubber {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

.ourland-universe-memory__glow {
  position: absolute;
  inset: -28%;
  z-index: -1;
  opacity: 0.45;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 170, 92, 0.4), transparent 66%);
  filter: blur(18px);
  pointer-events: none;
}

.ourland-universe-memory__identity {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 9px 7px;
  opacity: 0.64;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ourland-universe-memory__identity strong {
  color: #ead09e;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.08em;
}

.ourland-universe-memory__identity small {
  overflow: hidden;
  max-width: 70%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ourland-universe-memory:hover,
.ourland-universe-memory:focus-visible {
  z-index: 999 !important;
  outline: none;
}

.ourland-universe-memory:hover .ourland-universe-memory__surface,
.ourland-universe-memory:focus-visible .ourland-universe-memory__surface {
  border-color: rgba(255, 220, 157, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 229, 181, 0.24),
    0 0 46px rgba(228, 171, 82, 0.46),
    0 23px 48px rgba(0, 0, 0, 0.8);
  transform: scale(1.09);
}

.ourland-universe-memory:hover .ourland-universe-memory__identity,
.ourland-universe-memory:focus-visible .ourland-universe-memory__identity {
  opacity: 1;
}

.ourland-universe-person {
  position: absolute;
  top: var(--person-y);
  left: var(--person-x);
  z-index: 180;
  display: grid;
  place-items: center;
  width: 86px;
  min-height: 86px;
  padding: 0;
  border: 0;
  color: rgba(235, 242, 248, 0.74);
  background: transparent;
  text-align: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.ourland-universe-person > span {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(161, 222, 244, 0.9);
  border-radius: 50%;
  background: #e8f8ff;
  box-shadow:
    0 0 8px #fff,
    0 0 22px rgba(91, 199, 238, 0.94),
    0 0 48px rgba(106, 85, 210, 0.6);
  animation: ourland-person-pulse 4.5s ease-in-out var(--person-delay) infinite;
}

.ourland-universe-person strong,
.ourland-universe-person small {
  position: relative;
  top: 30px;
  display: block;
  max-width: 110px;
  text-shadow: 0 1px 9px #000;
}

.ourland-universe-person strong {
  font-size: 11px;
  font-weight: 560;
}

.ourland-universe-person small {
  margin-top: 1px;
  color: rgba(188, 202, 215, 0.58);
  font-size: 8px;
}

.ourland-universe-person:hover > span,
.ourland-universe-person.is-selected > span {
  background: #fff1c7;
  border-color: #f4cc7a;
  box-shadow:
    0 0 8px #fff,
    0 0 30px rgba(244, 190, 92, 1),
    0 0 70px rgba(113, 88, 225, 0.8);
  transform: scale(1.4);
}

.ourland-universe.is-person-focus .ourland-universe-memory {
  opacity: 0.15;
  filter: saturate(0.4) brightness(0.55);
}

.ourland-universe.is-person-focus .ourland-universe-memory.is-related {
  opacity: 1;
  filter: none;
}

.ourland-universe__status {
  position: absolute;
  right: 20px;
  bottom: 15px;
  left: 20px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(197, 207, 219, 0.48);
  font-size: 10px;
  letter-spacing: 0.045em;
  pointer-events: none;
  text-shadow: 0 1px 8px #000;
}

.ourland-universe__status strong {
  color: rgba(226, 193, 134, 0.9);
  font-weight: 580;
}

@keyframes ourland-stars-drift {
  to { transform: translate3d(-5%, 4%, 0) rotate(0.5deg); }
}

@keyframes ourland-nebula-breathe {
  to { opacity: 0.48; transform: scale(1.07) rotate(2deg); }
}

@keyframes ourland-memory-float {
  from { transform: translate3d(0, -3px, 0); }
  to { transform: translate3d(0, 7px, 0); }
}

@keyframes ourland-person-pulse {
  0%, 100% { opacity: 0.68; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.18); }
}

@media (max-width: 700px) {
  .ourland-universe {
    padding-inline: 5px;
  }

  .ourland-universe__stage {
    min-height: 620px;
    height: calc(100svh - 150px);
    margin-top: 4px;
    border-radius: 13px;
  }

  .ourland-universe__intro {
    top: 15px;
    left: 16px;
    max-width: calc(100% - 125px);
  }

  .ourland-universe__intro h1 {
    font-size: 37px;
  }

  .ourland-universe__intro > p:last-child {
    max-width: 240px;
    font-size: 10px;
  }

  .ourland-universe__tools {
    top: 14px;
    right: 13px;
    gap: 5px;
  }

  .ourland-universe__tools button {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .ourland-universe__status {
    right: 11px;
    bottom: 9px;
    left: 11px;
    font-size: 8px;
  }

  .ourland-universe__status span:last-child {
    max-width: 180px;
    text-align: right;
  }

  .ourland-universe-memory__surface {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ourland-universe__stage::before,
  .ourland-universe__nebula,
  .ourland-universe-memory__surface,
  .ourland-universe-person > span {
    animation: none;
  }
}
