/* Quiet motion; decoration stays behind the website content. */
:root { --brand-accent: #e5bc4b; --accent-soft: #fff0b1; }
body { position: relative; isolation: isolate; }
.site-header, main, .footer { position: relative; z-index: 1; }
.hero { scroll-margin-top: 90px; }
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; contain: strict; }
.ambient-orbit { position: absolute; transition: transform .7s ease-out; }
.ambient-orbit-blue {
  width: 182px; height: 182px; left: 4.5%; top: 24%;
  transform: translate3d(var(--pointer-x, 0px), calc(var(--pointer-y, 0px) + var(--scroll-drift, 0px)), 0);
}
.ambient-orbit-yellow {
  width: 142px; height: 142px; right: 6.5%; top: 48%;
  transform: translate3d(calc(var(--pointer-x, 0px) * -.7), calc(var(--pointer-y, 0px) * -.7 + var(--scroll-drift, 0px) * -.6), 0);
}
.ambient-orbit-rose {
  width: 54px; height: 75px; left: 15%; top: 74%;
  transform: translate3d(calc(var(--pointer-x, 0px) * .5), calc(var(--pointer-y, 0px) + var(--scroll-drift, 0px) * .5), 0);
}
.ambient-drift { width: 100%; height: 100%; animation: ambient-drift 18s ease-in-out infinite; }
.ambient-orbit-yellow .ambient-drift { animation-duration: 23s; animation-delay: -8s; }
.ambient-orbit-rose .ambient-drift { animation-duration: 21s; animation-delay: -12s; }
.ambient-ring {
  display: block; width: 100%; height: 100%; border-radius: 50%; border: 25px solid #dbe7f080;
  box-shadow: inset 3px 5px 10px #ffffffb0, 6px 12px 22px #b5cde514; transform: rotate(-28deg) scaleY(.79);
}
.ambient-petal {
  display: block; width: 100%; height: 100%; border-radius: 45% 55% 57% 43% / 40% 43% 57% 60%;
  background: radial-gradient(circle at 26% 23%, #ffffffb0, var(--accent-soft) 75%);
  box-shadow: inset -6px -9px 25px #d2cdbb0a; opacity: .48; transform: rotate(23deg); transition: background .6s;
}
.ambient-seed { display: block; width: 100%; height: 100%; border-radius: 48%; background: linear-gradient(130deg, #f7e2e94f, #eed0dc7a); transform: rotate(-35deg); }

/* A new lowercase wordmark in the website's own type family. */
.brand {
  font-family: var(--font); display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 29px; line-height: 1.2; letter-spacing: -1.45px; font-weight: 400; color: #242722;
}
.brand-wordmark { display: inline-flex; }
.brand-web { font-weight: 400; }
.brand-sitter { font-weight: 500; }
.brand-dot, .footer .brand-dot {
  position: relative; flex: none; width: 11px; height: 11px; margin: 0 0 2px 1px; border-radius: 50%;
  background: var(--brand-accent); box-shadow: inset 1px 2px 2px #ffffff60;
  animation: dot-breathe 6s ease-in-out infinite; transition: background-color .45s, box-shadow .45s;
}
.brand-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--brand-accent);
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .5s, border-color .45s;
}
.brand:hover .brand-dot::after, .brand:focus-visible .brand-dot::after { opacity: .35; transform: scale(1); }
.brand:hover .brand-dot { animation: dot-hello .8s ease-in-out; }
.footer .brand { font-size: 24px; }
.footer .brand-dot { width: 9px; height: 9px; }

/* Gaze and blinking belong only to the upper character. */
.hero-character .sitter { transform: rotate(var(--head-turn, 0deg)); transform-origin: 50% 72%; transition: transform .4s ease-out; }
.hero-character .sitter-gaze { transform: translate(var(--gaze-x, 0px), var(--gaze-y, 0px)); transition: transform .18s ease-out; }
.hero-character .sitter-eyes { transform-origin: 100px 84px; animation: sitter-blink 8.5s ease-in-out infinite; }
.motion-paused *, .motion-paused *::after { animation-play-state: paused !important; }

@keyframes ambient-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(5px, -14px, 0) rotate(3deg); }
}
@keyframes dot-breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1.5px) scale(1.08); } }
@keyframes dot-hello { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-5px); } 72% { transform: translateY(1px); } }
@keyframes sitter-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.13); } }
@media (max-width: 1050px) {
  .ambient-orbit-blue { left: -5%; width: 142px; height: 142px; }
  .ambient-orbit-yellow { right: -4%; width: 110px; height: 110px; }
  .ambient-orbit-rose { left: 5%; }
}
@media (max-width: 760px) {
  .site-header .brand { font-size: 26px; }
  .ambient-orbit-blue { width: 100px; height: 100px; left: -48px; top: 21%; }
  .ambient-ring { border-width: 16px; }
  .ambient-orbit-yellow { width: 72px; height: 72px; right: -42px; top: 53%; }
  .ambient-orbit-rose { display: none; }
  .footer .brand { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient *, .brand-dot, .hero-character .sitter, .hero-character .sitter-eyes { animation: none !important; }
  .ambient-orbit, .hero-character .sitter, .hero-character .sitter-gaze { transform: none !important; }
  .brand-dot { transform: none !important; }
  *, *::before, *::after { transition: none !important; }
}
