/* The end of the homepage, after gutgutgoose.com's: a band of open sky with one line that finishes
   itself ("Go through your day without…" and a phrase that rolls on every few seconds, the ones
   before and after it dimmed above and below), then the footer. One sky photo runs behind both:
   the band is clear, and the footer rises over the sky as a pane of frosted glass with rounded top
   corners, so its text reads while the sky still shows through. Set in our type and the 1024px
   column of sections 2 to 5. */
/* The band and the footer share one wrapper and one sky photo, shown as it is at the full width of
   the page from the top: open blue behind the closing line, the clouds rising into the band's lower
   half and carrying on down under the footer. The photo is never stretched to the wrapper's full
   height (that would push every cloud under the footer); below its bottom edge the same sky starts
   again (the wrapper's background, sized and placed exactly like the photo, repeating downward), and
   that join sits under the footer's frosted glass, which blurs it into more sky. On narrow screens
   the photo still covers the whole band. */
.sky-end {
  --sky-w: max(100%, calc(560 * var(--px) * 16 / 9));
  position: relative; isolation: isolate; overflow: hidden;
  background: #92a8bb url("assets/sky-2560.webp") 50% 0 / var(--sky-w) auto repeat-y;
}
.sky-end__sky {
  position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: auto; min-height: calc(560 * var(--px));
  object-fit: cover; object-position: 50% 0;
}
.closing { position: relative; height: calc(560 * var(--px)); padding: 0 calc(60 * var(--px)); color: #fff; }
.closing__inner {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(40 * var(--px));
  max-width: calc(1024 * var(--w)); margin: 0 auto; padding-top: calc(150 * var(--px));
}
.closing__lead { margin: 0; font: 400 calc(16 * var(--px))/calc(24 * var(--px)) var(--landing-body); color: rgba(255, 255, 255, .9); white-space: nowrap; }

/* Three lines show: the phrase before, the current one, the next. The list moves up one line at a
   time; the current line is full white, its neighbours dimmed. */
.closing__roll { height: calc(var(--roll-line) * 3); overflow: hidden; --roll-line: calc(52 * var(--px)); }
.closing__roll ul {
  margin: 0; padding: 0; list-style: none;
  transform: translateY(calc(var(--roll-index, 0) * var(--roll-line) * -1));
  transition: transform .8s var(--quint);
}
.closing__roll ul.is-jumping, .closing__roll ul.is-jumping li { transition: none; }
.closing__roll li {
  height: var(--roll-line); font: 500 calc(36 * var(--px))/var(--roll-line) var(--landing-head); letter-spacing: -0.5px; white-space: nowrap;
  opacity: .42; transition: opacity .8s var(--quint);
}
.closing__roll li.is-current { opacity: 1; }

/* The site's one button: the off-white pill of Acuity's "Get started" (plans.css). */
.closing__cta {
  display: inline-flex; align-items: center; gap: calc(8 * var(--px)); height: calc(46 * var(--px)); padding: 0 calc(24 * var(--px)) 0 calc(26 * var(--px));
  border-radius: var(--landing-pill); background: #f2f2f0; color: #120c08;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .3);
  font: 500 calc(15 * var(--px))/1 var(--landing-body); letter-spacing: -.015em; white-space: nowrap;
  transition: background-color .2s ease;
}
.closing__cta:hover { background: #fff; }
.closing__cta:focus-visible { outline: 2px solid #fff; outline-offset: calc(3 * var(--px)); }
.closing__arrow { flex: none; width: calc(10 * var(--px)); height: calc(10 * var(--px)); overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.closing__arrow-stem { opacity: 0; transition: opacity .15s ease; }
.closing__arrow-head { transition: transform .15s ease; }
.closing__cta:hover .closing__arrow-stem { opacity: 1; }
.closing__cta:hover .closing__arrow-head { transform: translateX(calc(3 * var(--px))); }

/* ---------- Footer ---------- */
/* One flat pane of frosted glass over the sky: a dark tint, not a gradient, blurred enough that the
   clouds behind turn soft and every line of text stays readable. It rises 30px over the closing
   band's bottom edge with rounded top corners. */
.site-footer {
  position: relative; margin-top: calc(-30 * var(--px)); padding: calc(64 * var(--px)) calc(60 * var(--px)) calc(32 * var(--px));
  border-radius: calc(30 * var(--px)) calc(30 * var(--px)) 0 0; color: #fff;
  background: rgba(6, 24, 40, .6); -webkit-backdrop-filter: blur(24px) saturate(1.1); backdrop-filter: blur(24px) saturate(1.1);
}
/* Where there is no closing band above it (Founder Wellness), the footer starts at the top of the sky. */
.sky-end__sky + .site-footer { margin-top: 0; }
.site-footer__inner { max-width: calc(1024 * var(--w)); margin: 0 auto; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(48 * var(--px)); }
.site-footer__brand { display: inline-block; padding: calc(7 * var(--px)) 0; margin: calc(-7 * var(--px)) 0; }
.site-footer__brand img { display: block; width: auto; height: calc(30 * var(--px)); }
.site-footer__tagline { margin: calc(16 * var(--px)) 0 0; font: 400 calc(15 * var(--px))/calc(22 * var(--px)) var(--landing-body); color: rgba(255, 255, 255, .82); }
.site-footer__contact { display: grid; justify-items: start; gap: 2px; margin: calc(26 * var(--px)) 0 0; padding: 0; list-style: none; }
.site-footer__contact a {
  display: inline-flex; align-items: center; gap: calc(10 * var(--px)); padding: calc(6 * var(--px)) 0;
  font: 400 calc(14 * var(--px))/calc(20 * var(--px)) var(--landing-body); color: rgba(255, 255, 255, .82);
}
.site-footer__contact svg { flex: none; width: calc(16 * var(--px)); height: calc(16 * var(--px)); fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; }
.site-footer__note { max-width: 58ch; margin: calc(26 * var(--px)) 0 0; font: 400 calc(13 * var(--px))/calc(19 * var(--px)) var(--landing-body); color: rgba(255, 255, 255, .9); }
.site-footer__note + .site-footer__note { margin-top: calc(10 * var(--px)); }

.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(calc(150 * var(--px)), auto)); gap: calc(64 * var(--px)); }
.site-footer__nav h2 { margin: 0 0 calc(14 * var(--px)); font: 400 calc(14 * var(--px))/calc(20 * var(--px)) var(--landing-body); color: rgba(255, 255, 255, .82); }
.site-footer__nav ul { display: grid; gap: calc(4 * var(--px)); margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-block; padding: calc(5 * var(--px)) 0; font: 400 calc(15 * var(--px))/calc(22 * var(--px)) var(--landing-body); color: #fff; }

/* The wordmark across the full column, faint white on the glass. Drawn from the vector wordmark, so
   it stays sharp at any width. */
.site-footer__mark {
  width: 100%; aspect-ratio: 1931 / 400; margin: calc(72 * var(--px)) 0 calc(36 * var(--px)); background: rgba(255, 255, 255, .1);
  -webkit-mask: url("assets/logo-word-white.svg") center / 100% 100% no-repeat;
          mask: url("assets/logo-word-white.svg") center / 100% 100% no-repeat;
}

.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: calc(12 * var(--px)) calc(24 * var(--px)); }
.site-footer__bottom p { margin: 0; font: 400 calc(13 * var(--px))/calc(20 * var(--px)) var(--landing-body); color: rgba(255, 255, 255, .9); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: calc(4 * var(--px)) calc(24 * var(--px)); }
.site-footer__legal a, .site-footer__legal button {
  padding: calc(5 * var(--px)) 0; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: 400 calc(13 * var(--px))/calc(20 * var(--px)) var(--landing-body); color: rgba(255, 255, 255, .92);
}
.site-footer a:hover, .site-footer__legal button:hover { color: #fff; text-decoration: underline; text-underline-offset: calc(4 * var(--px)); }
.site-footer :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: calc(3 * var(--px)); border-radius: calc(4 * var(--px)); }

/* The hero's own type steps. */
@media (max-width: 1069.98px) {
  .closing { padding: 0 15px; }
  .closing__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; padding-top: 110px; text-align: center; }
  .closing__roll { --roll-line: 44px; }
  .closing__roll li { font-size: 30px; }
  .site-footer { padding: 56px 24px 28px; }
}
@media (max-width: 809.98px) {
  .closing { height: 520px; }
  .sky-end { --sky-w: max(100%, calc(520px * 16 / 9)); }
  .sky-end__sky { min-height: 520px; }
  .closing__inner { padding-top: 96px; gap: 18px; }
  .closing__roll { --roll-line: 34px; }
  .closing__roll li { font-size: 22px; letter-spacing: -0.3px; }
  .site-footer { padding: 48px 20px 24px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .site-footer__nav a, .site-footer__contact a { padding: 11px 0; }
  .site-footer__legal a, .site-footer__legal button { padding: 12px 0; }
  .site-footer__mark { margin: 48px 0 24px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .closing__roll ul, .closing__roll li, .closing__cta, .closing__arrow-stem, .closing__arrow-head { transition: none; }
}
