/* Footer: a quiet close to the site with clear routes back into it. */
.apple-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 112px) 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: #0c0d11;
  color: #b9bac2;
  font-size: 14px;
}
.apple-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  background: radial-gradient(ellipse at 14% 0%, rgba(55,78,123,.16), transparent 60%);
  pointer-events: none;
}
.apple-footer > .canvas { position: relative; max-width: 1500px; }
.apple-footer .footer-invitation { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255,255,255,.1); }
.apple-footer .footer-kicker { color: #e7bd80; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.apple-footer .footer-invitation-title { max-width: 20ch; margin-top: 16px; color: #f5f5f7; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; }
.apple-footer .footer-invitation-title span { color: #a1a1a6; }
.apple-footer .footer-invitation-link { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; color: #f5f5f7; font-size: 14px; font-weight: 600; text-decoration: none; }
.apple-footer .footer-invitation-link span:last-child { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(167,206,255,.35); border-radius: 50%; color: #a7ceff; font-size: 20px; transition: background-color 180ms ease; }
.apple-footer .footer-invitation-link:hover span:last-child { background: rgba(167,206,255,.12); }
.apple-footer .apple-footer-grid {
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(60px, 7vw, 96px);
}
.apple-footer .footer-brand > div {
  margin-bottom: 18px;
  color: #f5f5f7;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.apple-footer .footer-brand p {
  max-width: 34ch;
  color: #aeb0ba;
  font-size: 15px;
  line-height: 1.65;
}
.apple-footer .footer-col-links { align-items: flex-start; gap: 14px; line-height: 1.5; }
.apple-footer .footer-col-title {
  margin-bottom: 8px;
  color: #e7bd80;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.apple-footer .apple-footer-link, .apple-footer .footer-col-links > span { color: #b9bac2; }
.apple-footer .apple-footer-link { transition: color 180ms ease; }
.apple-footer .apple-footer-link:hover, .apple-footer .footer-col-links a:hover { color: #fff; }
.apple-footer a:focus-visible { outline: 2px solid #a7ceff; outline-offset: 4px; border-radius: 2px; }
.apple-footer .apple-legal-row {
  gap: 16px 32px;
  padding-top: 24px;
  border-color: rgba(255,255,255,.1);
  color: #a3a5af;
  font-size: 12px;
  line-height: 1.6;
}
.apple-footer .footer-values { display: flex; flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 900px) {
  .apple-footer .apple-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apple-footer .apple-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .apple-footer .footer-invitation { align-items: flex-start; flex-direction: column; gap: 24px; }
  .apple-footer .apple-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .apple-footer .apple-legal-row { flex-direction: column; }
  .apple-footer { padding-bottom: max(88px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .apple-footer .apple-footer-link, .apple-footer .footer-invitation-link span:last-child { transition: none; }
}

.back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 17px 6px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(12, 13, 18, .96);
  color: #f5f5f7;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.back-to-top[hidden] { display: none; }
.back-to-top svg {
  box-sizing: content-box;
  padding: 9px;
  border-radius: 50%;
  background: rgba(142, 190, 255, .12);
  color: #a7ceff;
  transition: transform 180ms ease, background-color 180ms ease;
}
.back-to-top:hover { border-color: rgba(167, 206, 255, .55); background: #191c24; }
.back-to-top:hover svg { transform: translateY(-2px); background: rgba(142, 190, 255, .2); }
.back-to-top:focus-visible { outline: 2px solid #a7ceff; outline-offset: 4px; }
@supports (backdrop-filter: blur(16px)) {
  .back-to-top { background: rgba(12, 13, 18, .88); backdrop-filter: blur(16px) saturate(150%); }
}
@media (max-width: 600px) {
  .back-to-top { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top, .back-to-top svg { transition: none; }
  .back-to-top:hover svg { transform: none; }
}
@media print { .back-to-top { display: none; } }
