/* Let both the composition and its background use the browser canvas. */
body { max-width: none; margin: 0; }
@media (min-width: 801px) {
  :root { --pad: clamp(36px, 4.5vw, 116px); }
}

/* Carry the ambient light past the opening without a visible panel edge. */
.ambient-field { height: 150svh; max-height: none; mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); }
header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0;
  padding: 0 var(--pad);
  border-bottom-color: transparent;
  transition: background-color .25s, border-color .25s;
}
header.is-scrolled {
  background-color: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: color-mix(in srgb, var(--fg) 6%, transparent);
}
@media (max-width: 800px) {
  .mobile-context { top: 58px; }
  html { scroll-padding-top: 120px; }
}
#about { border-top-color: transparent; }

/* Contain the contact overlay: otherwise it covers all of main, from the header down. */
.contact { position: relative; }

.social-logo { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.contact-links a { gap: 10px; }
.contact-links a > span { margin-left: 6px; }
@media (max-width: 800px) {
  .seam-row { line-height: 1.8; white-space: normal; }
  .seam-value { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
}
@media (min-width: 801px) {
  .projection-field {
    right: var(--pad);
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .projection-object { font-size: clamp(11px, min(1.35vw, 2.1vh), 20px); }
  .projection-row { width: 100%; white-space: normal; align-items: baseline; gap: 10px; }
  .projection-key { flex: 0 0 5.8em; width: auto; white-space: nowrap; }
  .projection-field[data-section="work"] .projection-key { flex-basis: 8em; }
  .projection-value { min-width: 0; overflow-wrap: anywhere; }
  .projection-punctuation { flex: none; }
  .projection-meta { gap: 20px; flex-wrap: wrap; }
}
@media (min-width: 801px) {
  .contact {
    min-height: calc(100svh - 68px);
    padding-top: max(60px, calc(20vh - 58px));
    display: flex;
    flex-direction: column;
  }
  .contact h2 { max-width: 57%; }
  .contact-links { margin-bottom: 80px; }
  .contact .footer { margin-top: auto; }
}
