/* Optional homepage interlude. Toggle data-enabled on #calendar-scene. */
.calendar-connections-scene[hidden] { display: none !important; }
.calendar-connections-scene { position: relative; width: 100vw; margin: 32px calc(50% - 50vw) 0; padding: 0; overflow: clip; }
.calendar-scene-scroll { position: relative; height: 165svh; min-height: 1050px; background: radial-gradient(ellipse at 50% 42%, rgba(242, 213, 201, .48), transparent 65%), linear-gradient(#fff 0%, #f8f5f0 24%, #f5f1eb 66%, #fff 100%); }
.calendar-scene-sticky { position: sticky; top: 0; height: 100svh; min-height: 660px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 24px 30px; }
.calendar-scene-heading { position: relative; z-index: 3; text-align: center; }
.calendar-scene-heading h2 { margin: 0; color: #1a1a18; font-size: clamp(34px, 4.5vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; }
.calendar-scene-stage { position: relative; width: min(1040px, 100%); height: min(58svh, 560px); min-height: 410px; margin-top: 28px; }
.calendar-scene-haven { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 30px; background: #f7f2ec; border: 1px solid rgba(255,255,255,.85); box-shadow: 0 12px 45px rgba(84,48,26,.10), inset 0 1px 1px #fff; transform: translate(-50%, -50%) rotate(-3deg); will-change: transform; }
.calendar-scene-haven img { width: 83px; height: 83px; object-fit: contain; }
.calendar-source { position: absolute; top: calc(50% + var(--source-y)); left: calc(50% + var(--source-x)); z-index: 1; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; background: #fff; border: 1px solid rgba(73,52,35,.055); box-shadow: 0 10px 26px rgba(84,48,26,.065); transform: translate(-50%, -50%) rotate(var(--source-rotation)); will-change: transform, opacity; }
.calendar-source img { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; }
.calendar-source-google-calendar img, .calendar-source-outlook img { width: 48px; height: 48px; border-radius: 0; image-rendering: auto; }
.calendar-scene-orbits { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: .5; }
.calendar-scene-orbits span { position: absolute; width: 340px; height: 340px; border: 1px solid rgba(181,95,58,.09); border-radius: 50%; }
.calendar-scene-orbits span + span { width: 540px; height: 540px; border-color: rgba(181,95,58,.055); }
.calendar-scene-horizon { position: relative; z-index: 4; background: #fff; padding: 40px 24px 90px; text-align: center; }
.calendar-scene-horizon::before { content: ''; position: absolute; z-index: -1; top: -44px; left: -5%; width: 110%; height: 70px; border-radius: 50% 50% 0 0; background: #fff; }
.calendar-scene-horizon h2 { margin: 0 auto 24px; color: #1a1a18; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.04em; font-weight: 600; }
.calendar-scene-horizon p { max-width: 540px; margin: 0 auto 20px; color: #625f58; font-size: 17px; line-height: 1.65; }
.calendar-scene-horizon a { font-size: 15px; text-decoration: none; }
.calendar-scene-horizon a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 700px) {
  .calendar-connections-scene { margin-top: 12px; }
  .calendar-scene-scroll { height: 155svh; min-height: 850px; }
  .calendar-scene-sticky { min-height: 560px; padding: 64px 20px 20px; }
  .calendar-scene-heading h2 { max-width: 310px; font-size: 38px; }
  .calendar-scene-stage { min-height: 330px; height: min(55svh, 470px); margin-top: 18px; }
  .calendar-scene-haven { width: 92px; height: 92px; border-radius: 24px; }
  .calendar-scene-haven img { width: 64px; height: 64px; }
  .calendar-source { width: 57px; height: 57px; border-radius: 16px; }
  .calendar-source img { width: 44px; height: 44px; border-radius: 10px; }
  .calendar-source-google-calendar img, .calendar-source-outlook img { width: 36px; height: 36px; border-radius: 0; }
  .calendar-scene-orbits span { width: 210px; height: 210px; }
  .calendar-scene-orbits span + span { width: 350px; height: 350px; }
  .calendar-scene-horizon { padding: 30px 24px 55px; }
  .calendar-scene-horizon p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .calendar-scene-scroll { height: auto; min-height: 0; }
  .calendar-scene-sticky { position: relative; height: auto; min-height: 0; padding-top: 80px; padding-bottom: 75px; }
  .calendar-scene-stage { height: 450px; }
  .calendar-source, .calendar-scene-haven { will-change: auto; }
}
