/* ==========================================================================
   Look: Living background — a drifting network behind the page
   ========================================================================== */

.living-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.look--living main,
.look--living .colophon { position: relative; z-index: 1; }

/* Let the network show through the paper areas; keep text crisp over it */
.look--living .profile__stack,
.look--living .print { background-color: var(--paper); }
.look--living .profile__body,
.look--living .practice__item p,
.look--living .cover__intro { text-shadow: 0 0 12px var(--paper), 0 0 2px var(--paper); }

/* The career spread stays solid dark — the network passes behind it */
.look--living main > section.career { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   First screen: name, photo, intro and the figures together
   -------------------------------------------------------------------------- */
.look--living main > section.cover {
  max-width: none;
  padding-top: clamp(12px, 2vh, 28px);
  padding-bottom: clamp(32px, 6vh, 72px);
}

.look--living .cover__figures {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 0;
  margin-top: clamp(24px, 4vh, 44px);
}

@media (min-width: 761px) {
  .look--living .cover {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    align-content: start;
    grid-template-rows: auto 1fr auto;   /* spare height goes under the intro, not between name and intro */
  }
  .look--living .cover__lede { align-self: start; }

  .look--living .cover__name { font-size: clamp(4rem, min(12vw, 17vh), 10.5rem); }
  .look--living .cover__last { padding-left: 11%; }

  .look--living .cover__lede {
    grid-column: 1 / span 7;
    margin-top: clamp(14px, 2.4vh, 28px);
  }
  .look--living .lede-serif { font-size: clamp(1.35rem, 2.1vw, 1.8rem); margin-bottom: 12px; }
  .look--living .cover__intro { margin-bottom: 16px; max-width: 64ch; }

  /* photo: up and in from the right edge */
  .look--living .cover__photo {
    grid-column: 8 / span 5;
    justify-self: start;
    width: fit-content;          /* so the lamp note's % anchors track the print */
    margin-top: clamp(96px, 11vh, 110px);
  }
  /* size the print by the window's height, so everything fits on one screen */
  .look--living .cover__photo img {
    height: max(300px, calc(100vh - 440px));
    height: max(300px, calc(100svh - 440px));
    width: auto;
    max-width: 100%;
    object-fit: cover;
  }

  /* figures: compact, one row */
  .look--living .cover__figures .figure { padding-top: 12px; }
  .look--living .cover__figures .figure--b { padding-top: 30px; }
  .look--living .cover__figures .figure--d { padding-top: 20px; }
  .look--living .cover__figures .figure dd { font-size: clamp(2.6rem, min(5vw, 7.5vh), 4.6rem); }
  .look--living .cover__figures .figure dd.figure__eras { font-size: clamp(1.2rem, 1.9vw, 1.7rem); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .look--living .cover__photo img { height: max(280px, calc(100svh - 470px)); }
  .look--living .cover__intro { font-size: .95rem; line-height: 1.55; }
  .look--living .lede-serif { font-size: 1.3rem; }
  .look--living .cover__figures .figure dd { font-size: clamp(2.2rem, 6.5vh, 3.4rem); }
}
