.home-page {
  overflow: visible;
}

.home-layout {
  --rail-gap: clamp(1rem, 3vh, 2.25rem);
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  background: url("../img/stencil-wall-desktop-v2.jpg") center / 100% 100% no-repeat;
}

@media (max-width: 575.98px) and (orientation: portrait) {
  .home-layout {
    background-image: url("../img/stencil-wall-home.jpg");
    background-position: 60% center;
    background-size: cover;
  }
}

@media (max-width: 991.98px) and (max-height: 550px) and (orientation: landscape) {
  .home-layout { background-image: url("../img/stencil-wall-home.jpg"); }
}

/* These landscape phone sizes used the desktop crop in the original layout. */
@media (min-width: 568px) and (max-width: 700px) and (max-height: 430px) and (orientation: landscape),
       (min-width: 701px) and (max-width: 991.98px) and (max-height: 550px) and (orientation: landscape) {
  .home-layout { background-image: url("../img/stencil-wall-desktop-v2.jpg"); }
}

.home-layout-plaque {
  position: absolute;
  top: calc(100svh * 5 / 11);
  left: calc(var(--nav-column-end) / 2);
  width: min(52vw, 960px, calc(var(--nav-column-end) - 1.5rem));
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 3px rgba(16, 16, 15, 0.34));
}

.home-layout-rail {
  position: relative;
  width: var(--nav-width);
  margin-left: auto;
  margin-right: var(--nav-right);
  padding: calc(var(--nav-top) + var(--nav-height) + var(--rail-gap)) var(--nav-inset) 1.5rem;
  text-align: left;
}

.home-layout-profile {
  position: absolute;
  top: var(--profile-top);
  left: var(--nav-inset);
  width: var(--portrait-width);
}

.home-layout-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--zlxv-black);
  object-fit: cover;
  box-shadow: 0 3px 4px rgba(16, 16, 15, 0.28);
}

.home-layout-contact {
  display: block;
  margin: var(--contact-gap) 0 0 clamp(3px, 0.45vw, 8px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zlxv-black);
  font-size: calc(var(--contact-line) + 2pt);
  line-height: var(--contact-line);
  width: fit-content;
}

.home-layout-contact:hover,
.home-layout-contact:focus-visible { color: #ffd400; }

.home-layout-socials {
  color: #ffd400;
  font-size: clamp(0.9rem, min(1.65vw, 2.5vh), 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px var(--zlxv-black);
}

.home-layout-handle {
  position: relative;
  width: fit-content;
  margin: 0 0 0.65em clamp(-12px, -0.6vw, -4px);
  color: var(--zlxv-black);
  text-shadow: none;
}

.home-layout-handle summary {
  font-size: calc(1em + 2pt);
  cursor: pointer;
  list-style: none;
}

.home-layout-handle summary::-webkit-details-marker { display: none; }
.home-layout-handle summary:hover,
.home-layout-handle summary:focus-visible,
.home-layout-handle[open] summary { color: #ffd400; }

.home-copy-popup {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  width: max-content;
  max-width: min(12rem, 70vw);
  padding: 0.35rem;
  background: var(--zlxv-black);
  color: #ffd400;
  font-size: 0.95rem;
}

.home-copy-popup button {
  border: 1px solid currentColor;
  padding: 0.25rem 0.55rem;
  background: transparent;
  color: inherit;
}

.home-copy-popup span:not(:empty) { display: block; padding: 0.3rem; }

.home-layout-socials ul {
  margin: 0 0 0 2px;
  padding: 0;
  list-style: none;
}

@media (max-width: 767.98px), (max-height: 560px) {
  .home-layout-profile { position: static; }
  .home-layout-socials { margin-top: var(--rail-gap); }
}

@media (max-width: 420px) {
  .home-layout-handle { margin-left: -24px; }
}
