/* Round 6: the constellation, in its own section under the hero. The loose pieces of a file gather
   around one sentence, then let go, become streaks of light and land in the Overview. Owns .cs-*, .mn-*. */
.cs {
  --fl-peek: 128px;
  --fl-sun: 1;
  --cs-track: 72vh;
  position: relative;
  z-index: 1;
  background: var(--bg, #04070c);
  color: #fff;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
.cs-pin {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: clip;
}
.js .cs-pin {
  position: sticky;
  top: 0;
}
/* night water: a low blue light from where the lake was */
.cs-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 56% at 50% 46%,
    rgba(46, 96, 176, 0.26) 0,
    rgba(30, 64, 124, 0.1) 52%,
    rgba(4, 7, 12, 0) 100%
  );
}
.cs-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(to bottom, var(--bg, #04070c), rgba(4, 7, 12, 0));
}
.cs-head {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% - var(--fl-peek));
  box-sizing: border-box;
  padding: 56px 24px 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  opacity: var(--o, 1);
}
.cs-head h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  text-wrap: balance;
}
/* desktop, once file.js has found the skyline: the sentence hangs in the sky, not mid-screen on the rock */
.cs-head.cs-head--sky {
  place-items: start center;
}
.cs-l1,
.cs-l2 {
  display: block;
}
.cs-l2 {
  margin-top: 0.16em;
  color: rgb(var(--c2, 142 156 176));
}

.cs-shore {
  position: relative;
  z-index: 4;
  margin-top: calc(var(--fl-peek) * -1);
  padding: 0 24px;
}
.js .cs-shore {
  position: sticky;
  top: calc(100vh - var(--fl-peek));
}
.fl-stagewrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.cs .hero-stage {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.cs .hero-stage:empty {
  aspect-ratio: 1180 / 720;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: #0c131d;
}
.cs-track {
  height: 0;
}
.js .cs-track {
  height: var(--cs-track);
}

.r5-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.r5-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.r5-nodes {
  position: absolute;
  inset: 0;
}
.mn {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: 0 0;
}
.mn-c {
  position: relative;
  zoom: var(--z, 1);
  rotate: var(--rot, 0deg);
  box-sizing: border-box;
  border-radius: 11px;
  padding: 10px 12px 11px;
  color: var(--text);
  font:
    500 11px/1.25 "Inter",
    system-ui,
    sans-serif;
  letter-spacing: -0.003em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(20, 30, 46, 0.94) 0, rgba(9, 15, 25, 0.95) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 44px -20px rgba(0, 0, 0, 0.95),
    0 3px 8px rgba(0, 0, 0, 0.4);
}
/* each piece catches a little cold light on its upper edge */
.mn-c::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: var(--fl-sun);
  background: linear-gradient(
    222deg,
    rgba(214, 228, 248, 0.6) 0,
    rgba(190, 212, 242, 0.2) 16%,
    rgba(190, 212, 242, 0) 42%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.mn.is-mid .mn-c {
  --z: .84;
}
.mn.is-far .mn-c {
  --z: .7;
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.88) 0, rgba(9, 15, 25, 0.9) 100%);
  color: var(--soft);
}
.mn-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.mn-h b {
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  letter-spacing: -0.01em;
}
.mn-h span {
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}
.mn-org {
  margin-top: 1px;
  font-size: 10px;
  color: var(--faint);
}
.mn-sky {
  color: #8ec2f7;
}

/* pay stub */
.mn-pay {
  width: 178px;
}
.mn-pay dl {
  margin: 8px 0 0;
  display: grid;
  gap: 3px;
}
.mn-pay dl div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--soft);
}
.mn-pay dt,
.mn-pay dd {
  margin: 0;
}
.mn-net {
  margin: 7px -5px 0;
  padding: 5px 6px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(125, 180, 240, 0.16);
  box-shadow: inset 0 0 0 1px rgba(125, 180, 240, 0.34);
}
.mn-net span {
  font-size: 10px;
  color: #b9d6f5;
}
.mn-net b {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
/* T4 slip */
.mn-t4 {
  width: 184px;
}
.mn-t4g {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mn-t4g div {
  position: relative;
  border-radius: 4px;
  padding: 11px 6px 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-size: 11px;
  color: #fff;
  text-align: right;
}
.mn-t4g i {
  position: absolute;
  left: 5px;
  top: 3px;
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  color: #8ec2f7;
}
.mn-t4g em {
  position: absolute;
  left: 17px;
  top: 3px;
  font-style: normal;
  font-size: 8px;
  color: var(--faint);
  white-space: nowrap;
}
.mn-t4g .w {
  grid-column: 1 / -1;
  background: rgba(125, 180, 240, 0.12);
  box-shadow: inset 0 0 0 1px rgba(125, 180, 240, 0.32);
  font-weight: 600;
  font-size: 12px;
}
/* driver's licence */
.mn-id {
  width: 172px;
  padding: 0;
  overflow: hidden;
}
.mn-id-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(90deg, rgba(60, 120, 200, 0.5), rgba(60, 120, 200, 0.12));
}
.mn-id-top span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--soft);
}
.mn-id-b {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 9px;
  padding: 8px 10px 10px;
}
.mn-id-ph {
  height: 54px;
  border-radius: 5px;
  background: linear-gradient(180deg, #33465f, #1c2a3d);
  display: grid;
  place-items: end center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.mn-id-ph svg {
  display: block;
}
.mn-id-l b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.mn-id-l span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--faint);
}
.mn-id-l .x {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--soft);
}
/* phone photo */
.mn-img {
  width: 118px;
  padding: 6px 6px 7px;
  --rot: -5deg;
}
.mn-img-ph {
  position: relative;
  height: 84px;
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #6b5a48 0, #3d3229 55%, #241d18 100%);
}
.mn-img-ph::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 12%;
  width: 58%;
  height: 92%;
  rotate: 8deg;
  border-radius: 2px;
  background:
    repeating-linear-gradient(to bottom, rgba(40, 50, 70, 0) 0 6px, rgba(40, 50, 70, 0.34) 6px 7px),
    linear-gradient(180deg, #f4f1ea, #dcd6c9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}
.mn-img-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 38%);
}
.mn-img span {
  display: block;
  margin-top: 6px;
  padding: 0 3px;
  font-size: 10px;
  color: var(--soft);
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: -0.02em;
}
/* text message */
.mn-txt {
  width: 168px;
  padding: 9px 10px 10px;
}
.mn-who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--soft);
}
.mn-who i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  color: var(--text);
  background: #24466f;
}
.mn-who span {
  margin-left: auto;
  color: var(--faint);
}
.mn-txt p {
  margin: 7px 0 0;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  background: #2b7fe0;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}
/* voicemail */
.mn-vm {
  width: 172px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  align-items: center;
}
.mn-vm-p {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(125, 180, 240, 0.2);
  box-shadow: inset 0 0 0 1px rgba(125, 180, 240, 0.4);
  color: #cfe4fb;
}
.mn-vm-w {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  margin-top: 4px;
}
.mn-vm-w i {
  flex: none;
  width: 2px;
  border-radius: 1px;
  background: #5f7088;
}
.mn-vm-w i.on {
  background: #8ec2f7;
}
/* bank statement */
.mn-bank {
  width: 184px;
}
.mn-bank svg {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 6px;
  overflow: visible;
}
.mn-bank-f {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
  font-size: 10px;
  color: var(--faint);
}
.mn-bank-f b {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
/* lender email */
.mn-mail {
  width: 176px;
  padding: 0;
  overflow: hidden;
}
.mn-mail-t {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: var(--soft);
}
.mn-mail-t i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #3d5a80, #22344f);
}
.mn-mail-t span {
  margin-left: auto;
  color: var(--faint);
}
.mn-mail-b {
  padding: 8px 10px 10px;
}
.mn-mail-b b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.mn-ln {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 6px;
}
.mn-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 600;
  color: #cfe4fb;
  background: rgba(125, 180, 240, 0.18);
  box-shadow: inset 0 0 0 1px rgba(125, 180, 240, 0.34);
}
/* calendar hold */
.mn-cal {
  width: 150px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 11px 9px 9px;
}
.mn-cal-d {
  border-radius: 7px;
  overflow: hidden;
  text-align: center;
  background: #f4f6f9;
  color: #0b1626;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.mn-cal-d i {
  display: block;
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 0;
  color: #fff;
  background: #d0463c;
}
.mn-cal-d b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}
.mn-cal b.t {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.mn-cal span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--faint);
}
/* Form 1A: the real page */
.mn-form {
  width: 132px;
  padding: 6px 6px 7px;
  --rot: 3deg;
}
.mn-form img {
  display: block;
  width: 100%;
  height: 138px;
  object-fit: cover;
  object-position: 0 0;
  border-radius: 4px;
  background: #fff;
}
.mn-form span {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 3px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.mn-form span em {
  font-style: normal;
  font-weight: 500;
  color: var(--faint);
}
/* gift letter */
.mn-gift {
  width: 160px;
  --rot: -3deg;
}
.mn-gift svg {
  display: block;
  margin-top: 4px;
}
.mn-gift .amt {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.mn-gift .sg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 3px;
  font-size: 9px;
  color: var(--faint);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  padding-bottom: 3px;
}
/* small far pieces */
.mn-s {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 12px 8px 9px;
  white-space: nowrap;
}
.mn-s > i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.mn-s svg {
  width: 14px;
  height: 14px;
  display: block;
}
.mn-s svg .a {
  stroke: #8ec2f7;
}
.mn-s b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.mn-s span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--faint);
}

@media (max-width: 760px) {
  .cs {
    --fl-peek: 96px;
    --cs-track: 0px;
  }
  .cs-pin {
    height: 100svh;
    min-height: 560px;
  }
  /* nothing is pinned on a phone: the section scrolls like any other and file.js plays it on its own time */
  .js .cs-pin,
  .js .cs-shore {
    position: relative;
    top: auto;
  }
  .cs-shore {
    padding: 0 16px;
  }
  .cs-head {
    padding: 104px 24px 0;
    place-items: start center;
  }
  .cs-head h2 {
    font-size: 28px;
    max-width: 330px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .cs-track {
    height: 0;
  }
  .js .cs-pin,
  .js .cs-shore {
    position: relative;
    top: auto;
  }
}

/* the hero's photo is the backdrop here (see hero.css), so the pinned stage is see-through and the
   section's own top fade is not needed */
@media (prefers-reduced-motion: no-preference) {
  .js .cs {
    background: transparent;
  }
  .js .cs-bg::after {
    display: none;
  }
  /* the glows start below the section's top edge, or that edge draws a line across the sky as it rises */
  .js .cs-bg {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 45%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 45%);
  }
}
