/* Embrace in motion: how each part arrives, answers a hand and passes to the next page. A keyframe moves `translate`,
   `scale` and `rotate`, a hover and a pointer move `transform`, so neither undoes the other. Nothing a person needs
   waits on a script: what opens a page moves by this sheet alone, and what waits to be reached waits only where the
   page's script said it is there (`data-motion` on the root). Under `prefers-reduced-motion` nothing moves. */

@property --em-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* From page to page: the old page lifts away, the new one settles; the header and the bar stay; a residence's window
   flies to its page's opening. */
@view-transition {
  navigation: auto;
}

.em-root {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

.em-root::view-transition-old(root) {
  animation: em-page-out 0.26s ease both;
}

.em-root::view-transition-new(root) {
  animation: em-page-in 0.55s var(--em-ease) both;
}

.em-root::view-transition-group(embrace-photo) {
  animation-duration: 0.65s;
  animation-timing-function: var(--em-ease);
}

.em-header {
  view-transition-name: embrace-header;
}

.em-bar {
  view-transition-name: embrace-bar;
}

.em-intro-photo {
  view-transition-name: embrace-photo;
}

/* The theme turns as an iris opening from the button pressed. */
.em-root[data-turning] .em-header,
.em-root[data-turning] .em-bar,
.em-root[data-turning] .em-intro-photo {
  view-transition-name: none;
}

.em-root[data-turning]::view-transition-old(root) {
  animation: none;
  z-index: 0;
}

.em-root[data-turning]::view-transition-new(root) {
  animation: em-iris 0.8s var(--em-ease) both;
  z-index: 1;
}

/* The order of a thing among its siblings, which each wave of arrivals reads. */
.em-stagger > :nth-child(1),
.em-words > :nth-child(1),
.em-figures > :nth-child(1),
.em-drawer-inner > :nth-child(1) {
  --em-i: 0;
}

.em-stagger > :nth-child(2),
.em-words > :nth-child(2),
.em-figures > :nth-child(2),
.em-drawer-inner > :nth-child(2) {
  --em-i: 1;
}

.em-stagger > :nth-child(3),
.em-words > :nth-child(3),
.em-figures > :nth-child(3),
.em-drawer-inner > :nth-child(3) {
  --em-i: 2;
}

.em-stagger > :nth-child(4),
.em-words > :nth-child(4),
.em-figures > :nth-child(4),
.em-drawer-inner > :nth-child(4) {
  --em-i: 3;
}

.em-stagger > :nth-child(5),
.em-words > :nth-child(5),
.em-drawer-inner > :nth-child(5) {
  --em-i: 4;
}

.em-stagger > :nth-child(6),
.em-words > :nth-child(6),
.em-drawer-inner > :nth-child(6) {
  --em-i: 5;
}

.em-stagger > :nth-child(7),
.em-words > :nth-child(7),
.em-drawer-inner > :nth-child(7) {
  --em-i: 6;
}

.em-stagger > :nth-child(8),
.em-words > :nth-child(8),
.em-drawer-inner > :nth-child(8) {
  --em-i: 7;
}

.em-stagger > :nth-child(9),
.em-words > :nth-child(9),
.em-drawer-inner > :nth-child(9) {
  --em-i: 8;
}

.em-stagger > :nth-child(10),
.em-words > :nth-child(10),
.em-drawer-inner > :nth-child(10) {
  --em-i: 9;
}

.em-stagger > :nth-child(n + 11),
.em-words > :nth-child(n + 11),
.em-drawer-inner > :nth-child(n + 11) {
  --em-i: 10;
}

/* What waits to be reached: a part rises, a group rises one after another, a window opens from its sill. */
[data-motion] .em-reveal:not([data-seen]),
[data-motion] .em-unveil:not([data-seen]),
[data-motion] .em-stagger:not([data-seen]) > * {
  opacity: 0;
}

[data-motion] .em-reveal[data-seen] {
  animation: em-rise 0.95s var(--em-ease) both;
}

[data-motion] .em-stagger[data-seen] > * {
  animation: em-rise 0.85s var(--em-ease) both;
  animation-delay: calc(var(--em-i, 0) * 80ms);
}

[data-motion] .em-mosaic.em-stagger[data-seen] > *,
[data-motion] .em-gallery.em-stagger[data-seen] > * {
  animation-name: em-bloom;
  animation-delay: calc(var(--em-i, 0) * 65ms);
}

[data-motion] .em-unveil[data-seen],
[data-motion] .em-stagger[data-seen] .em-arch {
  animation: em-unveil 1.15s var(--em-ease) both;
  animation-delay: calc(var(--em-i, 0) * 80ms);
}

[data-motion] .em-unveil[data-seen] .em-arch-photo,
[data-motion] .em-stagger[data-seen] .em-arch-photo {
  animation: em-kenburns 1.9s var(--em-ease) both;
  animation-delay: calc(var(--em-i, 0) * 80ms);
}

/* A title arrives word by word; its italic turn carries a slow light. */
.em-word {
  display: inline-block;
}

.em-hero .em-word,
.em-intro .em-word,
[data-motion] [data-seen] .em-word {
  animation: em-word 0.95s var(--em-ease) both;
  animation-delay: calc(0.12s + var(--em-i, 0) * 75ms);
}

[data-motion] [data-see]:not([data-seen]) .em-word {
  opacity: 0;
}

.em-shine {
  margin: -0.1em -0.14em -0.2em;
  padding: 0.1em 0.14em 0.2em;
  background: linear-gradient(100deg, var(--em-accent) 15%, var(--em-terracotta) 50%, var(--em-accent) 85%) 0 0 / 240%
    100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.em-hero .em-word.em-shine,
.em-intro .em-word.em-shine,
[data-motion] [data-seen] .em-word.em-shine {
  animation:
    em-word 0.95s var(--em-ease) both,
    em-shine 9s linear infinite;
  animation-delay: calc(0.12s + var(--em-i, 0) * 75ms), 0s;
}

/* The kicker's line draws itself before its words. */
.em-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.em-kicker::before {
  content: '';
  flex: 0 0 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 0 50%;
  transition: scale 0.9s var(--em-ease) 0.3s;
}

[data-motion] .em-stagger:not([data-seen]) .em-kicker::before {
  scale: 0 1;
}

.em-hero .em-kicker::before,
.em-intro .em-kicker::before {
  animation: em-grow 0.9s 0.35s var(--em-ease) both;
}

/* The opening of a page: the kicker, the title's words, the lead, the actions, the figures, each in its turn. */
.em-hero .em-kicker,
.em-intro .em-kicker,
.em-intro .em-crumbs {
  animation: em-rise 0.8s 0.05s var(--em-ease) both;
}

.em-hero .em-lead,
.em-intro .em-lead {
  animation: em-rise 0.9s 0.7s var(--em-ease) both;
}

.em-hero .em-actions,
.em-intro .em-actions {
  animation: em-rise 0.9s 0.85s var(--em-ease) both;
}

.em-figures > * {
  animation: em-rise 0.8s var(--em-ease) both;
  animation-delay: calc(1s + var(--em-i, 0) * 90ms);
}

.em-figure {
  transition: background-color 0.35s ease;
}

.em-figure:hover {
  background: var(--em-surface);
}

.em-figure-value {
  background: linear-gradient(115deg, var(--em-accent), var(--em-terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  justify-self: start;
  font-variant-numeric: tabular-nums;
}

/* The hero's air: two slow lights behind it, a grain over it, an orbit around the disc. */
.em-hero,
.em-intro {
  position: relative;
  isolation: isolate;
}

.em-intro {
  overflow: clip;
}

.em-hero-grid,
.em-intro > .em-wrap {
  position: relative;
  z-index: 1;
}

.em-hero::after,
.em-intro::after,
.em-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--em-grain);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.em-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.em-aura-blob {
  position: absolute;
  border-radius: 50%;
  translate: calc(var(--em-px, 0) * 22px) calc(var(--em-py, 0) * 22px);
  transition: translate 0.9s ease-out;
}

.em-aura-warm {
  width: 62vmax;
  height: 62vmax;
  right: -22vmax;
  top: -26vmax;
  background: radial-gradient(circle, var(--em-glow-warm), transparent 66%);
  animation: em-float-a 24s ease-in-out infinite alternate;
}

.em-aura-cool {
  width: 52vmax;
  height: 52vmax;
  left: -24vmax;
  bottom: -28vmax;
  background: radial-gradient(circle, var(--em-glow-cool), transparent 66%);
  animation: em-float-b 30s ease-in-out infinite alternate;
}

.em-disc {
  animation: em-settle 1.2s var(--em-ease) both;
}

.em-disc-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from var(--em-angle),
    transparent 0 50%,
    var(--em-peach-deep) 72%,
    var(--em-terracotta) 82%,
    transparent 94%
  );
  -webkit-mask: radial-gradient(closest-side, transparent 93.2%, #000 94%);
  mask: radial-gradient(closest-side, transparent 93.2%, #000 94%);
  animation: em-turn 10s linear infinite;
}

.em-disc-hole {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.em-disc-hole .em-disc-photo {
  border-radius: 0;
  scale: 1.07;
  translate: calc(var(--em-px, 0) * -9px) calc(var(--em-py, 0) * -9px);
  transition: translate 0.7s ease-out;
  animation: em-kenburns-in 2.8s var(--em-ease) both;
}

.em-orbit {
  position: absolute;
  inset: -6.5%;
  border-radius: 50%;
  border: 1.5px dashed var(--em-line-strong);
  pointer-events: none;
  animation: em-spin 90s linear infinite;
}

.em-orb {
  position: absolute;
  left: -7px;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--em-terracotta);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--em-terracotta) 20%, transparent);
}

.em-orb-far {
  left: calc(82.1% - 10px);
  top: calc(11.7% - 10px);
  width: 20px;
  height: 20px;
  background: var(--em-peach-deep);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--em-peach-deep) 28%, transparent);
}

.em-cradle-line {
  animation: em-draw 1.7s 0.45s var(--em-ease) both;
}

.em-badge {
  translate: calc(var(--em-px, 0) * 14px) calc(var(--em-py, 0) * 14px);
  transition: translate 0.6s ease-out;
  animation:
    em-pop 0.9s 1s var(--em-spring) both,
    em-bob 7s 2s ease-in-out infinite;
}

.em-badge::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px dashed var(--em-terracotta);
  opacity: 0.6;
  animation: em-spin 40s linear infinite;
}

/* The names of the residences pass, slowly, between the opening and the residences. */
.em-marquee {
  position: relative;
  z-index: 2;
  margin: 4px 0 0;
  padding: 16px 0 18px;
  overflow: hidden;
  rotate: -1.4deg;
  scale: 1.04;
  background: var(--em-paper-warm);
  border-block: 1px solid var(--em-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.em-marquee-track {
  display: flex;
  width: max-content;
  animation: em-marquee 48s linear infinite;
}

.em-marquee:hover .em-marquee-track {
  animation-play-state: paused;
}

.em-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding-right: 0.75em;
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 6.4vw, 3.4rem);
  line-height: 1.15;
  white-space: nowrap;
  color: var(--em-ink);
}

.em-marquee-item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--em-accent);
}

.em-marquee-dot {
  width: 0.36em;
  height: 0.36em;
  flex: 0 0 0.36em;
  border-radius: 50%;
  background: var(--em-terracotta);
}

/* The header: it draws in as the page is read, and a line under it says how far. */
.em-header {
  transition: box-shadow 0.35s ease;
}

.em-header-row {
  transition: height 0.35s var(--em-ease);
}

.em-header[data-scrolled] {
  box-shadow: 0 14px 32px -22px rgba(31, 37, 102, 0.5);
}

.em-header[data-scrolled] .em-header-row {
  height: 60px;
}

.em-brand-logo {
  transform-origin: 0 50%;
  transition: transform 0.35s var(--em-ease);
}

.em-header[data-scrolled] .em-brand-logo {
  transform: scale(0.86);
}

.em-brand:hover .em-brand-logo {
  transform: rotate(-6deg) scale(1.04);
}

.em-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  transform-origin: 0 50%;
  scale: var(--em-progress, 0) 1;
  background: linear-gradient(90deg, var(--em-accent), var(--em-terracotta) 70%, var(--em-peach-deep));
  pointer-events: none;
}

.em-page .em-nav-link {
  position: relative;
}

.em-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--em-terracotta);
  scale: 0 1;
  transform-origin: 0 50%;
  transition: scale 0.4s var(--em-ease);
}

.em-nav-link:hover::after,
.em-nav-link[aria-current='page']::after {
  scale: 1 1;
}

.em-round {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--em-ease);
}

.em-round:hover {
  background: var(--em-accent-soft);
  border-color: var(--em-accent);
}

.em-round:active {
  transform: scale(0.92);
}

.em-round svg {
  transition: rotate 0.5s var(--em-ease);
}

[data-theme-toggle]:hover svg {
  rotate: 40deg;
}

[popovertargetaction='hide']:hover svg,
[data-lens-close]:hover svg {
  rotate: 90deg;
}

.em-lens .em-round:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

/* The menu comes down, its lines one after another. */
.em-drawer {
  opacity: 0;
  translate: 0 -16px;
  transition:
    opacity 0.35s ease,
    translate 0.4s var(--em-ease),
    overlay 0.4s allow-discrete,
    display 0.4s allow-discrete;
}

.em-drawer:popover-open {
  opacity: 1;
  translate: 0 0;
}

@starting-style {
  .em-drawer:popover-open {
    opacity: 0;
    translate: 0 -16px;
  }
}

.em-drawer:popover-open .em-drawer-inner > * {
  animation: em-rise 0.6s var(--em-ease) both;
  animation-delay: calc(80ms + var(--em-i, 0) * 45ms);
}

.em-drawer-link {
  transition: padding-left 0.3s var(--em-ease);
}

.em-drawer-link:hover {
  padding-left: 12px;
}

/* Buttons: a light crosses the full one, the lined one fills, the arrow leans on. */
.em-button {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--em-ease),
    background-color 0.25s ease,
    box-shadow 0.3s ease;
}

.em-button:active {
  transform: scale(0.97);
}

.em-page .em-button-solid:hover {
  transform: translateY(-2px);
  box-shadow: var(--em-shadow-lift);
}

.em-button-solid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, var(--em-sheen) 50%, transparent 68%);
  translate: -130% 0;
  transition: translate 0.9s var(--em-ease);
  pointer-events: none;
}

.em-button-solid:hover::after {
  translate: 130% 0;
}

.em-page .em-button-line {
  background: linear-gradient(var(--em-accent-soft), var(--em-accent-soft)) no-repeat 0 0 / 0% 100%;
  transition:
    transform 0.3s var(--em-ease),
    background-size 0.5s var(--em-ease);
}

.em-page .em-button-line:hover {
  background-size: 100% 100%;
}

.em-icon-go {
  transition: transform 0.35s var(--em-ease);
}

.em-button:hover .em-icon-go,
.em-drawer-link:hover .em-icon-go {
  transform: translateX(5px);
}

/* The residences: a window leans to the hand, a light crosses its glass, an arrow says it opens. */
.em-arch {
  position: relative;
  transition:
    transform 0.6s var(--em-ease),
    box-shadow 0.5s ease;
}

.em-arch-photo {
  transition: transform 1.1s var(--em-ease);
}

.em-home-name {
  transition: color 0.3s ease;
}

.em-arch-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  background: var(--em-header);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--em-ink);
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  transition:
    opacity 0.4s ease,
    transform 0.5s var(--em-spring);
}

@media (hover: hover) {
  [data-tilt] {
    transform: perspective(900px) rotateX(calc(var(--em-rx, 0) * 1deg)) rotateY(calc(var(--em-ry, 0) * 1deg));
  }

  [data-tilt][data-tilting] {
    transition-duration: 0.12s, 0.5s;
  }

  .em-arch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
      60% 50% at var(--em-gx, 50%) var(--em-gy, 0%),
      rgba(255, 255, 255, 0.34),
      transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  .em-home:hover .em-arch,
  .em-listing-photo:hover {
    box-shadow: var(--em-shadow-lift);
  }

  .em-home:hover .em-arch::after,
  .em-listing-photo:hover::after {
    opacity: 1;
  }

  .em-home:hover .em-arch-photo,
  .em-listing-photo:hover .em-arch-photo {
    transform: scale(1.08);
  }

  .em-home:hover .em-arch-cue {
    opacity: 1;
    transform: none;
  }

  .em-page .em-home:hover .em-home-name {
    color: var(--em-accent);
  }
}

/* The care band: two lights drift in its blue; a service lifts under the hand and its sign draws itself. */
.em-band {
  overflow: clip;
  isolation: isolate;
}

.em-band > .em-wrap {
  position: relative;
  z-index: 1;
}

.em-band::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 70vmax;
  height: 70vmax;
  right: -30vmax;
  top: -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--em-glow-cool), transparent 64%);
  animation: em-float-b 26s ease-in-out infinite alternate;
  pointer-events: none;
}

.em-service,
.em-phone {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--em-ease),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.em-service::before,
.em-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--em-mx, 50%) var(--em-my, 50%), var(--em-sheen), transparent 72%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.em-service::before {
  background: radial-gradient(
    260px circle at var(--em-mx, 50%) var(--em-my, 50%),
    rgba(255, 255, 255, 0.16),
    transparent 72%
  );
}

.em-service:hover::before,
.em-phone:hover::before {
  opacity: 1;
}

.em-service:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
}

.em-service .em-icon {
  transition: transform 0.5s var(--em-spring);
}

.em-service:hover .em-icon {
  transform: scale(1.12) rotate(-5deg);
}

.em-service .em-icon path {
  stroke-dasharray: 260;
}

[data-motion] .em-stagger:not([data-seen]) .em-icon path {
  stroke-dashoffset: 260;
}

[data-motion] .em-stagger[data-seen] .em-icon path {
  animation: em-draw-in 1.5s var(--em-ease) both;
  animation-delay: calc(0.25s + var(--em-i, 0) * 80ms);
}

.em-gift {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.em-gift::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -96px;
  top: -96px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1.5px dashed var(--em-terracotta);
  opacity: 0.5;
  animation: em-spin 50s linear infinite;
}

.em-gift::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, var(--em-sheen) 50%, transparent 62%);
  animation: em-sweep 7s 2s ease-in-out infinite;
  pointer-events: none;
}

/* Life with us: a photograph breathes under the hand, and drifts in its frame as the page passes. */
.em-tile-photo,
.em-shot-photo {
  transition: transform 1.1s var(--em-ease);
}

.em-tile::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(15, 18, 50, 0.35));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.em-caption {
  z-index: 1;
  transition: transform 0.45s var(--em-ease);
}

@media (hover: hover) {
  .em-tile:hover .em-tile-photo,
  .em-shot:hover .em-shot-photo {
    transform: scale(1.07);
  }

  .em-tile:hover::after {
    opacity: 1;
  }

  .em-tile:hover .em-caption {
    transform: translateY(-4px);
  }
}

@supports (animation-timeline: view()) {
  .em-tile-tall .em-tile-photo,
  .em-tile-wide .em-tile-photo {
    animation: em-pan linear both;
    animation-timeline: view();
  }

  .em-aura {
    animation: em-sink linear both;
    animation-timeline: scroll(root);
    animation-range: 0 900px;
  }
}

.em-shot {
  position: relative;
}

.em-shot::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--em-header)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23323b8d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--em-spring);
}

.em-shot:hover::after,
.em-shot:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* The quote: its line grows, its words come one by one, a great mark stands behind it. */
.em-quote {
  position: relative;
  isolation: isolate;
  border-left: 0;
  padding-left: 24px;
}

.em-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--em-terracotta);
  transform-origin: 50% 0;
  transition: scale 1.1s var(--em-ease);
}

[data-motion] .em-quote:not([data-seen])::before {
  scale: 1 0;
}

.em-quote::after {
  content: '“';
  position: absolute;
  z-index: -1;
  left: 10px;
  top: -0.12em;
  font-size: 9rem;
  line-height: 1;
  font-style: normal;
  color: var(--em-peach);
}

[data-motion] .em-quote[data-seen] .em-word {
  animation-duration: 0.7s;
  animation-delay: calc(0.15s + var(--em-i, 0) * 55ms);
}

/* The map: the river runs, each pin drops in its turn and beats. */
.em-map-river {
  stroke-dasharray: 420;
}

.em-map-pin,
.em-map-pin-out,
.em-map-pulse {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.em-map-pulse {
  fill: none;
  stroke: var(--em-accent);
  stroke-width: 2;
  animation: em-pulse 3s ease-out infinite;
}

.em-map-home:nth-of-type(even) .em-map-pulse {
  animation-delay: 1.4s;
}

.em-map-home:nth-of-type(1) {
  --em-i: 0;
}

.em-map-home:nth-of-type(2) {
  --em-i: 1;
}

.em-map-home:nth-of-type(3) {
  --em-i: 2;
}

.em-map-home:nth-of-type(4) {
  --em-i: 3;
}

.em-map-home:nth-of-type(n + 5) {
  --em-i: 4;
}

[data-motion] .em-map:not([data-seen]) .em-map-river {
  stroke-dashoffset: 420;
}

[data-motion] .em-map:not([data-seen]) .em-map-home {
  opacity: 0;
}

[data-motion] .em-map[data-seen] .em-map-river {
  animation: em-draw-river 2.4s 0.3s var(--em-ease) both;
}

[data-motion] .em-map[data-seen] .em-map-home {
  animation: em-fade 0.5s both;
  animation-delay: calc(0.7s + var(--em-i, 0) * 160ms);
}

[data-motion] .em-map[data-seen] .em-map-pin,
[data-motion] .em-map[data-seen] .em-map-pin-out {
  animation: em-drop 0.8s var(--em-spring) both;
  animation-delay: calc(0.7s + var(--em-i, 0) * 160ms);
}

/* The calls: a card lifts, its sign rings. */
.em-phone:hover {
  transform: translateY(-4px);
  box-shadow: var(--em-shadow-lift);
}

.em-phone-icon {
  transition: transform 0.4s var(--em-spring);
}

.em-phone:hover .em-phone-icon {
  transform: scale(1.08);
}

.em-phone:hover .em-phone-icon svg {
  animation: em-ring 0.8s ease both;
}

.em-fact {
  transition: background-color 0.3s ease;
}

.em-fact:hover {
  background: var(--em-paper);
}

/* An inner page's opening: its window opens, and its photograph settles. */
.em-intro-photo {
  position: relative;
  animation: em-unveil 1.2s 0.15s var(--em-ease) both;
  transition: transform 0.6s var(--em-ease);
}

.em-intro-img {
  animation: em-kenburns 2.4s 0.15s var(--em-ease) both;
}

[data-arrived] .em-intro-photo,
[data-arrived] .em-intro-img {
  animation: none;
}

/* The lens: it opens softly, and each photograph follows the last. */
.em-lens {
  opacity: 0;
  transition:
    opacity 0.3s ease,
    overlay 0.3s allow-discrete,
    display 0.3s allow-discrete;
}

.em-lens[open] {
  opacity: 1;
}

@starting-style {
  .em-lens[open] {
    opacity: 0;
  }
}

.em-lens::backdrop {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.em-lens[open] .em-lens-photo {
  animation: em-zoom 0.45s var(--em-ease) both;
}

.em-lens[open] .em-lens-photo[data-swap] {
  animation: em-swap 0.4s var(--em-ease) both;
}

/* The footer: what Assistance for Life says of itself, set large. */
.em-page .em-footer-big {
  margin: 0 0 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--em-line-strong);
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-weight: 560;
  font-variation-settings: 'SOFT' 50;
  font-size: clamp(2.5rem, 9.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--em-ink);
  text-wrap: balance;
}

.em-page .em-footer-links a {
  transition:
    color 0.25s ease,
    transform 0.3s var(--em-ease);
}

.em-page .em-footer-links a:hover {
  color: var(--em-accent);
  transform: translateX(4px);
}

/* The phone's bar rises, and its call rings now and then. */
.em-bar {
  animation: em-up 0.7s 0.7s var(--em-ease) both;
}

.em-bar-call svg {
  transform-origin: 50% 50%;
  animation: em-ring-now 6s 3s ease-in-out infinite;
}

.em-bar-link {
  transition: transform 0.2s var(--em-ease);
}

.em-bar-link:active {
  transform: scale(0.96);
}

@media (min-width: 860px) {
  .em-header[data-scrolled] .em-header-row {
    height: 68px;
  }

  .em-rail > :nth-child(even) {
    margin-top: 44px;
  }

  .em-marquee {
    margin-top: -12px;
  }
}

@keyframes em-rise {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes em-bloom {
  from {
    opacity: 0;
    scale: 0.9;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes em-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes em-unveil {
  from {
    opacity: 1;
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes em-kenburns {
  from {
    scale: 1.22;
  }
  to {
    scale: 1;
  }
}

@keyframes em-kenburns-in {
  from {
    scale: 1.24;
  }
  to {
    scale: 1.07;
  }
}

@keyframes em-word {
  from {
    opacity: 0;
    translate: 0 0.5em;
    rotate: 3deg;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
    filter: blur(0);
  }
}

@keyframes em-shine {
  to {
    background-position: -240% 0;
  }
}

@keyframes em-grow {
  from {
    scale: 0 1;
  }
  to {
    scale: 1 1;
  }
}

@keyframes em-settle {
  from {
    opacity: 0;
    scale: 0.9;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes em-turn {
  to {
    --em-angle: 360deg;
  }
}

@keyframes em-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes em-draw {
  from {
    stroke-dashoffset: 900;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes em-draw-in {
  from {
    stroke-dashoffset: 260;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes em-draw-river {
  from {
    stroke-dashoffset: 420;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes em-pop {
  from {
    opacity: 0;
    scale: 0.5;
    rotate: -14deg;
  }
  to {
    opacity: 1;
    scale: 1;
    rotate: 8deg;
  }
}

@keyframes em-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes em-float-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-7vmax, 6vmax) scale(1.14);
  }
}

@keyframes em-float-b {
  from {
    transform: translate(0, 0) scale(1.08);
  }
  to {
    transform: translate(8vmax, -5vmax) scale(0.94);
  }
}

@keyframes em-sink {
  to {
    translate: 0 170px;
  }
}

@keyframes em-pan {
  from {
    object-position: 50% 22%;
  }
  to {
    object-position: 50% 78%;
  }
}

@keyframes em-marquee {
  to {
    translate: -50% 0;
  }
}

@keyframes em-sweep {
  0%,
  62% {
    translate: -130% 0;
  }
  100% {
    translate: 130% 0;
  }
}

@keyframes em-pulse {
  from {
    scale: 1;
    opacity: 0.75;
  }
  to {
    scale: 2.7;
    opacity: 0;
  }
}

@keyframes em-drop {
  from {
    translate: 0 -34px;
  }
  to {
    translate: 0 0;
  }
}

@keyframes em-ring {
  0%,
  100% {
    rotate: 0deg;
  }
  20% {
    rotate: -16deg;
  }
  40% {
    rotate: 13deg;
  }
  60% {
    rotate: -9deg;
  }
  80% {
    rotate: 5deg;
  }
}

@keyframes em-ring-now {
  0%,
  14%,
  100% {
    rotate: 0deg;
  }
  2% {
    rotate: -16deg;
  }
  5% {
    rotate: 13deg;
  }
  8% {
    rotate: -9deg;
  }
  11% {
    rotate: 5deg;
  }
}

@keyframes em-up {
  from {
    opacity: 0;
    translate: 0 34px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes em-zoom {
  from {
    opacity: 0;
    scale: 0.94;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes em-swap {
  from {
    opacity: 0;
    scale: 0.985;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes em-page-out {
  to {
    opacity: 0;
    translate: 0 -12px;
  }
}

@keyframes em-page-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes em-iris {
  from {
    clip-path: circle(0 at var(--em-tx, 90%) var(--em-ty, 5%));
  }
  to {
    clip-path: circle(150vmax at var(--em-tx, 90%) var(--em-ty, 5%));
  }
}

@media (prefers-reduced-motion: reduce) {
  .em-root {
    scroll-behavior: auto;
  }

  .em-root::view-transition-group(*),
  .em-root::view-transition-old(*),
  .em-root::view-transition-new(*) {
    animation: none !important;
  }
}
