/* Brand OS experiment: closing call + footer. The page ends here. */
#closing,
#next-nav-section {
  display: none !important;
}
#base-section {
  padding: 0 !important;
  display: block !important;
  min-height: 0 !important;
}
#base-section > :not(#bos-footer) {
  display: none !important;
}

#bos-footer {
  --p: 0;
  --mx: 50%;
  --my: 30%;
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 0 var(--base-padding-x, 4vw);
  border-radius: clamp(28px, 3.4vw, 64px) clamp(28px, 3.4vw, 64px) 0 0;
  background: #060a1c;
  color: #e9ebf5;
  font-family: BosSans, sans-serif;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.4;
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
}
#bos-footer *,
#bos-footer *::before,
#bos-footer *::after {
  box-sizing: border-box;
}
#bos-footer a,
#bos-footer button {
  color: inherit;
  font: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* light: two slow colour fields, plus one that follows the pointer */
.bf-aura,
.bf-glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.bf-aura {
  inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(
      38% 46% at 16% 30%,
      rgba(96, 120, 234, 0.42),
      transparent 70%
    ),
    radial-gradient(
      34% 40% at 86% 18%,
      rgba(23, 234, 217, 0.2),
      transparent 70%
    ),
    radial-gradient(
      30% 36% at 60% 70%,
      rgba(154, 134, 255, 0.16),
      transparent 70%
    );
  animation: bos-drift 16s ease-in-out infinite alternate;
}
/* placed by the footer script with a transform (the graphics card moves it; nothing is re-measured) */
.bf-glow {
  left: 0;
  top: 0;
  will-change: transform;
  width: 46vw;
  height: 46vw;
  margin: -23vw 0 0 -23vw;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(96, 120, 234, 0.22),
    transparent
  );
  opacity: 0;
  transition: opacity 0.6s;
}
#bos-footer.hot .bf-glow {
  opacity: 1;
}

/* closing call */
.bf-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(96px, 11vw, 220px) 0 clamp(72px, 8vw, 160px);
}
.bf-cta h2 {
  margin: 0;
  font-size: clamp(52px, 9.6vw, 190px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.bf-row {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.06em 0.14em;
  margin: 0 -0.06em -0.14em;
}
.bf-w {
  display: inline-block;
  transform: translateY(118%) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 0.08s);
}
#bos-footer.in .bf-w {
  transform: none;
}
.bf-grad {
  background: linear-gradient(
    100deg,
    #6078ea,
    #17ead9 45%,
    #b69cff 75%,
    #6078ea
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bf-flow 9s linear infinite;
}
@keyframes bf-flow {
  to {
    background-position: -300% 0;
  }
}
.bf-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 3.4vw, 64px);
}
.bf-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.1em;
  padding: 0.5em 0.5em 0.5em 1.7em !important;
  border-radius: 999px;
  background: #fff !important;
  color: #060a1c !important;
  font-size: clamp(17px, 1.3vw, 24px) !important;
  font-weight: 500 !important;
  will-change: transform;
  transition: box-shadow 0.4s;
}
.bf-btn:hover {
  box-shadow:
    0 0 0 6px rgba(96, 120, 234, 0.25),
    0 20px 60px rgba(23, 234, 217, 0.25);
}
.bf-btn i {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  background: linear-gradient(135deg, #6078ea, #17ead9);
  overflow: hidden;
}
.bf-btn svg {
  grid-area: 1 / 1;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: #060a1c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bf-btn svg + svg {
  transform: translateX(-220%);
}
.bf-btn:hover svg {
  transform: translateX(220%);
}
.bf-btn:hover svg + svg {
  transform: none;
}
.bf-ghost {
  padding: 1.05em 1.7em !important;
  border-radius: 999px;
  border: 1px solid rgba(233, 235, 245, 0.24) !important;
  font-size: clamp(17px, 1.3vw, 24px) !important;
  font-weight: 500 !important;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.bf-ghost:hover {
  background: rgba(233, 235, 245, 0.08) !important;
  border-color: rgba(233, 235, 245, 0.5) !important;
}
.bf-small {
  margin: 1.6em 0 0;
  opacity: 0.6;
}
.bf-acts,
.bf-small,
.bf-col,
.bf-bottom {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s,
    transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#bos-footer.in .bf-acts,
#bos-footer.in .bf-small {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}
#bos-footer.in .bf-small {
  opacity: 0.6;
  transition-delay: 0.55s;
}
#bos-footer.in2 .bf-col,
#bos-footer.in2 .bf-bottom {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 0.07s);
}

/* the pulsing line */
.bf-line {
  position: relative;
  height: 1px;
  background: rgba(233, 235, 245, 0.12);
  overflow: hidden;
}
.bf-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(
    90deg,
    transparent,
    #6078ea,
    #17ead9,
    transparent
  );
  animation: bf-pulse 4.2s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes bf-pulse {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}

/* links */
.bf-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
  gap: 3vw;
  padding: clamp(44px, 4.4vw, 90px) 0 clamp(36px, 3.4vw, 70px);
}
.bf-brand img {
  display: block;
  height: clamp(24px, 1.9vw, 36px);
  width: auto;
}
.bf-brand p {
  margin: 1.2em 0 0;
  max-width: 17em;
  font-size: clamp(17px, 1.3vw, 24px);
  line-height: 1.3;
  opacity: 0.75;
}
.bf-col h4 {
  margin: 0 0 1.2em;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.5;
}
.bf-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bf-col li + li {
  margin-top: 0.62em;
}
.bf-l {
  position: relative;
  display: inline-block;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s;
}
.bf-l::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 1px;
  background: linear-gradient(90deg, #6078ea, #17ead9);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bf-l:hover {
  color: #fff !important;
  transform: translateX(4px);
}
.bf-l:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* last row */
.bf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 1.4vw, 28px) 0;
  border-top: 1px solid rgba(233, 235, 245, 0.12);
  font-size: 0.9em;
}

/* big wordmark, bleeding off the bottom edge */
.bf-wordwrap {
  margin: clamp(8px, 1vw, 20px) calc(var(--base-padding-x, 4vw) * -1) 0;
  overflow: hidden;
  text-align: center;
  line-height: 0;
}
.bf-word {
  display: inline-block;
  font-size: 21vw;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.8;
  margin-bottom: -0.085em;
  padding: 0.03em 0.04em 0 0;
  white-space: nowrap;
  user-select: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(6, 10, 28, 0.74) 100%),
    linear-gradient(100deg, #2b3780, #6078ea 22%, #17ead9 44%, #9a86ff 66%, #2b3780);
  background-size: 100% 100%, 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(calc((1 - var(--p)) * 55%));
  animation: bf-word 14s linear infinite;
}
@keyframes bf-word {
  to {
    background-position: 0 0, -300% 0;
  }
}
.bf-bottom span {
  opacity: 0.72;
}
.bf-up {
  display: inline-flex !important;
  align-items: center;
  gap: 0.8em;
  padding: 0.45em 0.45em 0.45em 1.2em !important;
  border-radius: 999px;
  background: rgba(6, 10, 28, 0.55) !important;
  border: 1px solid rgba(233, 235, 245, 0.22) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.bf-up:hover {
  border-color: rgba(233, 235, 245, 0.6) !important;
}
.bf-up i {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.bf-up svg {
  grid-area: 1 / 1;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: #060a1c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bf-up svg + svg {
  transform: translateY(220%);
}
.bf-up:hover svg {
  transform: translateY(-220%);
}
.bf-up:hover svg + svg {
  transform: none;
}

@media (max-width: 812px) {
  #bos-footer {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100svh;
  }
  #bos-footer .bf-cta {
    flex: 1 0 auto;
    justify-content: center;
  }
  .bf-cols {
    grid-template-columns: 1fr 1fr;
  }
  .bf-brand {
    display: none;
  }
  .bf-cta {
    padding: 84px 0 26px;
  }
  .bf-cta h2 {
    font-size: 44px;
  }
  .bf-acts {
    margin-top: 22px;
  }
  .bf-small {
    margin-top: 1em;
  }
  .bf-cols {
    padding: 22px 0 14px;
    gap: 16px 20px;
  }
  .bf-col h4 {
    margin-bottom: 0.7em;
  }
  .bf-col li + li {
    margin-top: 0.4em;
  }
  .bf-wordwrap {
    margin: 8px -20px 0;
  }
  .bf-bottom {
    flex-wrap: wrap;
  }
  .bf-glow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bf-aura,
  .bf-grad,
  .bf-word,
  .bf-line::after {
    animation: none;
  }
}
@keyframes bos-drift {
  to {
    transform: translate(4%, -3%) rotate(6deg) scale(1.08);
  }
}

/* pointer colour trail (app/bos-foot-trail.js) replaces the single glow */
.bf-glow {
  display: none;
}
.bf-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* phones: the whole footer fits one screen, heading clear of the header */
@media (max-width: 812px) {
  #bos-footer {
    font-size: 14.5px;
  }
  .bf-cta {
    padding: 80px 0 16px;
  }
  .bf-cta h2 {
    font-size: 38px;
  }
  .bf-acts {
    margin-top: 16px;
    gap: 10px;
  }
  .bf-btn,
  .bf-ghost {
    font-size: 16px !important;
  }
  .bf-small {
    margin-top: 0.7em;
    font-size: 13.5px;
  }
  .bf-cols {
    padding: 14px 0 8px;
    gap: 10px 20px;
  }
  .bf-col h4 {
    margin-bottom: 0.45em;
  }
  .bf-col li + li {
    margin-top: 0.22em;
  }
  .bf-bottom {
    flex-wrap: nowrap;
    padding: 8px 0;
    font-size: 12px;
  }
  .bf-up {
    font-size: 12px;
    white-space: nowrap;
  }
  .bf-wordwrap {
    margin-top: 2px;
  }
  .bf-word {
    font-size: 18vw;
  }
}
@media (max-width: 812px) {
  .bf-acts {
    flex-wrap: nowrap;
  }
  .bf-btn,
  .bf-ghost {
    font-size: 15px !important;
    white-space: nowrap;
  }
  .bf-bottom span {
    font-size: 11.5px;
    white-space: nowrap;
  }
}
@media (max-width: 812px) {
  .bf-bottom {
    gap: 8px;
  }
  .bf-bottom span {
    font-size: 11px;
  }
}
