body[data-route="/residents"] .residents-page {
  font-size: 20px;
  background: var(--paper);
  color: var(--ink);
}

body[data-route="/residents"] .residents-page p {
  text-wrap: pretty;
}

body[data-route="/residents"] .residents-page h1,
body[data-route="/residents"] .residents-page h2,
body[data-route="/residents"] .residents-page h3 {
  text-wrap: balance;
}

body[data-route="/residents"] .residents-page .residents-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  padding-block: 72px 96px;
}

body[data-route="/residents"] .residents-page .residents-hero h1 {
  font-size: var(--type-h1);
}

body[data-route="/residents"] .residents-page .residents-hero .subhead,
body[data-route="/residents"] .residents-page .body-large,
body[data-route="/residents"] .residents-page .resident-benefits .card p,
body[data-route="/residents"] .residents-page .day-scene p,
body[data-route="/residents"] .residents-page .lifestyle-dialogue p {
  font-size: 20px;
}

body[data-route="/residents"] .residents-page .resident-hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, var(--resident-photo-width));
}

body[data-route="/residents"] .residents-page .resident-interior {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone);
}

body[data-route="/residents"] .residents-page .resident-interior img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: inherit;
}

body[data-route="/residents"] .residents-page .resident-hero-bubbles {
  position: absolute;
  z-index: 1;
  inset: 0;
  color: var(--ink);
  pointer-events: none;
}

body[data-route="/residents"] .residents-page .resident-visual-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

body[data-route="/residents"] .residents-page .resident-bubble {
  position: absolute;
  max-width: 170px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 9px 22px var(--light-sage);
  font-size: var(--type-small);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  animation: resident-bubble-reveal 600ms ease forwards;
}

body[data-route="/residents"] .residents-page .bubble-light {
  top: 8%;
  left: 7%;
  animation-delay: 100ms;
}

body[data-route="/residents"] .residents-page .bubble-light-response {
  top: 25%;
  left: 43%;
  animation-delay: 260ms;
}

body[data-route="/residents"] .residents-page .bubble-door {
  top: 41%;
  left: 31%;
  animation-delay: 420ms;
}

body[data-route="/residents"] .residents-page .bubble-thermostat {
  top: 51%;
  left: 7%;
  animation-delay: 580ms;
}

body[data-route="/residents"] .residents-page .bubble-sink {
  top: 63%;
  left: 48%;
  animation-delay: 740ms;
}

body[data-route="/residents"] .residents-page .bubble-welcome {
  bottom: 9%;
  left: 7%;
  animation-delay: 900ms;
}

body[data-route="/residents"] .residents-page .bubble-evening {
  top: 8%;
  right: 6%;
  animation-delay: 1060ms;
}

@keyframes resident-bubble-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-route="/residents"] .residents-page .resident-benefits .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-route="/residents"] .residents-page .resident-benefits .card {
  min-height: 278px;
  border: 1px solid var(--line);
  background: var(--pale-sage);
  color: var(--ink);
}

body[data-route="/residents"] .residents-page .resident-benefits .card .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
  color: var(--sage-dark);
}

body[data-route="/residents"] .residents-page .resident-benefits .card h3 {
  min-height: 1.2em;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(18px, 1.3vw, 20px);
  line-height: 1.2;
  letter-spacing: -.025em;
  white-space: nowrap;
}

body[data-route="/residents"] .residents-page .resident-benefits .card p {
  min-height: 4.35em;
  max-width: 34ch;
  color: var(--ink);
  line-height: 1.45;
}

body[data-route="/residents"] .residents-page .band {
  width: 100%;
  background: var(--sage-dark);
  color: var(--white);
}

body[data-route="/residents"] .residents-page .band .section-heading {
  max-width: 760px;
}

body[data-route="/residents"] .residents-page .band .section-heading h2,
body[data-route="/residents"] .residents-page .band .section-heading p,
body[data-route="/residents"] .residents-page .band .day-scene h3,
body[data-route="/residents"] .residents-page .band .day-scene p,
body[data-route="/residents"] .residents-page .band .illustrative-label {
  color: var(--white);
}

body[data-route="/residents"] .residents-page .day-scenes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body[data-route="/residents"] .residents-page .day-scene {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--light-sage);
  border-radius: var(--radius);
}

body[data-route="/residents"] .residents-page .day-scene figure,
body[data-route="/residents"] .residents-page .lifestyle-scene figure {
  margin: 0;
}

body[data-route="/residents"] .residents-page .day-scene-art {
  display: block;
  width: 100%;
  color: var(--white);
}

body[data-route="/residents"] .residents-page .day-scene .illustrative-label,
body[data-route="/residents"] .residents-page .lifestyle-scene .illustrative-label {
  padding: 0;
  text-align: left;
}

body[data-route="/residents"] .residents-page .day-scene h3,
body[data-route="/residents"] .residents-page .lifestyle-scene h3 {
  margin-bottom: 12px;
  font-size: var(--type-card);
}

body[data-route="/residents"] .residents-page .resident-platforms {
  text-align: center;
}

body[data-route="/residents"] .residents-page .resident-platforms .section-heading,
body[data-route="/residents"] .residents-page .resident-platforms .body-large {
  margin-inline: auto;
}

body[data-route="/residents"] .residents-page .resident-logo-groups {
  display: grid;
  gap: 18px;
  justify-items: center;
}

body[data-route="/residents"] .residents-page .resident-logo-row,
body[data-route="/residents"] .residents-page .resident-assistant-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

body[data-route="/residents"] .residents-page .resident-logo {
  display: grid;
  inline-size: 158px;
  block-size: 96px;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

body[data-route="/residents"] .residents-page .resident-logo img {
  width: auto;
  max-width: 112px;
  max-height: 38px;
}

body[data-route="/residents"] .residents-page .lifestyle-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body[data-route="/residents"] .residents-page .lifestyle-scene {
  display: grid;
  grid-template-columns: minmax(188px, .85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale-sage);
  color: var(--ink);
}

body[data-route="/residents"] .residents-page .lifestyle-scene figure {
  color: var(--sage-dark);
}

body[data-route="/residents"] .residents-page .lifestyle-scene-art {
  display: block;
  width: 100%;
  max-width: 212px;
  color: var(--sage-dark);
}

body[data-route="/residents"] .residents-page .lifestyle-scene .illustrative-label {
  color: var(--ink);
}

body[data-route="/residents"] .residents-page .lifestyle-dialogue {
  display: grid;
  gap: 10px;
}

body[data-route="/residents"] .residents-page .lifestyle-dialogue p {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  line-height: 1.35;
}

body[data-route="/residents"] .residents-page .resident-command {
  background: var(--paper);
}

body[data-route="/residents"] .residents-page .resident-response {
  background: var(--white);
}

@media (max-width: 900px) {
  body[data-route="/residents"] .residents-page .residents-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body[data-route="/residents"] .residents-page .resident-hero-visual {
    justify-self: start;
  }

  body[data-route="/residents"] .residents-page .resident-benefits .cards,
  body[data-route="/residents"] .residents-page .day-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route="/residents"] .residents-page .lifestyle-scenes {
    grid-template-columns: 1fr;
  }

  body[data-route="/residents"] .residents-page .resident-benefits .card h3 {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  body[data-route="/residents"] .residents-page {
    font-size: 18px;
  }

  body[data-route="/residents"] .residents-page .residents-hero {
    padding-block: 38px 58px;
  }

  body[data-route="/residents"] .residents-page .resident-hero-visual {
    order: -1;
    width: 100%;
  }

  body[data-route="/residents"] .residents-page .residents-hero .subhead,
  body[data-route="/residents"] .residents-page .body-large,
  body[data-route="/residents"] .residents-page .resident-benefits .card p,
  body[data-route="/residents"] .residents-page .day-scene p,
  body[data-route="/residents"] .residents-page .lifestyle-dialogue p {
    font-size: 18px;
  }

  body[data-route="/residents"] .residents-page .resident-benefits .cards,
  body[data-route="/residents"] .residents-page .day-scenes,
  body[data-route="/residents"] .residents-page .lifestyle-scenes {
    grid-template-columns: 1fr;
  }

  body[data-route="/residents"] .residents-page .resident-benefits .card {
    min-height: 0;
  }

  body[data-route="/residents"] .residents-page .resident-benefits .card h3 {
    white-space: normal;
  }

  body[data-route="/residents"] .residents-page .resident-benefits .card p {
    min-height: 0;
  }

  body[data-route="/residents"] .residents-page .resident-bubble {
    max-width: 130px;
    padding: 7px 9px;
    line-height: 1.2;
  }

  body[data-route="/residents"] .residents-page .bubble-light {
    top: 3%;
    left: 3%;
  }

  body[data-route="/residents"] .residents-page .bubble-light-response {
    top: 30%;
    right: 3%;
    left: auto;
  }

  body[data-route="/residents"] .residents-page .bubble-door {
    top: 30%;
    left: 3%;
  }

  body[data-route="/residents"] .residents-page .bubble-thermostat {
    top: 55%;
    left: 3%;
  }

  body[data-route="/residents"] .residents-page .bubble-sink {
    top: 53%;
    right: 3%;
    left: auto;
  }

  body[data-route="/residents"] .residents-page .bubble-welcome {
    bottom: 3%;
    left: 3%;
    max-width: none;
    white-space: nowrap;
  }

  body[data-route="/residents"] .residents-page .bubble-evening {
    top: 3%;
    right: 3%;
  }

  body[data-route="/residents"] .residents-page .resident-visual-label {
    right: 3%;
    bottom: 3%;
  }

  body[data-route="/residents"] .residents-page .resident-logo-row,
  body[data-route="/residents"] .residents-page .resident-assistant-row {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-route="/residents"] .residents-page .resident-logo {
    inline-size: 100%;
    block-size: 76px;
    padding: 12px 8px;
  }

  body[data-route="/residents"] .residents-page .resident-logo img {
    max-width: 72px;
    max-height: 31px;
  }

  body[data-route="/residents"] .residents-page .lifestyle-scene {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-route="/residents"] .residents-page .resident-bubble {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

body[data-route='/residents'] .residents-page .resident-logo img { width: 56px; height: 56px; max-width: 56px; max-height: 56px; object-fit: contain; }
@media(max-width:600px) {
  body[data-route='/residents'] .residents-page .bubble-light { max-width: 142px; }
  body[data-route='/residents'] .residents-page .bubble-door { top: 30%; }
  body[data-route='/residents'] .residents-page .resident-logo img { width: 44px; height: 44px; max-width: 44px; max-height: 44px; }
}

body[data-route='/residents'] .residents-page .bubble-command { width: max-content; max-width: 190px; white-space: nowrap; }
