/* sponsor page, loads after site.css */

/* page head */
.hero.sp-head {
  /* the homepage hero is a flex row, this one stacks */
  display: block;
  min-height: 0;
  padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px);
}

.sp-head .hero-grid {
  align-items: end;
}

/* tier cards */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pkg {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: rgba(16, 11, 13, 0.72);
  padding: clamp(22px, 2.4vw, 30px);
}

.pkg-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pkg-price {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pkg-summary {
  color: var(--smoke);
  font-size: 15px;
  line-height: 1.55;
}

/* "Includes X" line */
.inherits {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-hot);
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair-soft);
}

.benefits li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* red dash before each benefit */
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  border-top: 2px solid var(--ember);
}

/* pushed down so the buttons line up */
.pkg-foot {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--smoke-dim);
}

.pkg .btn {
  align-self: flex-start;
}

/* Founding Partner card */
.flagship {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(255, 90, 74, 0.3);
  border-radius: 3px;
  background: linear-gradient(158deg, var(--ember-deep), #45060b 80%);
  padding: clamp(28px, 3.4vw, 44px);
}

.flag-left,
.flag-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.flagship .label {
  color: rgba(255, 255, 255, 0.78);
}

.flag-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* an h3 like the other cards, sized like an h2 */
.flag-name h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.flag-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  padding: 5px 10px;
}

.flagship p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 48ch;
}

.flagship .inherits {
  color: #fff;
}

.flagship .benefits {
  align-self: stretch;
  border-top-color: rgba(255, 255, 255, 0.16);
}

.flagship .benefits li {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.flagship .benefits li::before {
  border-top-color: #fff;
}

.sp-email {
  font-size: 14px;
  user-select: all;
}

/* card shift lights */
.lights {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.lights i {
  height: 4px;
  border-radius: 1px;
  background: var(--hair);
}

.lights i.on {
  background: var(--ember);
}

/* lights come on one by one after the card appears */
.js-reveal .reveal .lights i.on {
  background: var(--hair);
}

.js-reveal .reveal.in .lights i.on {
  background: var(--ember);
  transition: background 0.3s ease calc(var(--n) * 140ms + 350ms);
}

/* rev the lights on hover */
@media (hover: hover) {
  .pkg,
  .strip {
    transition: border-color 0.2s ease;
  }

  .pkg:hover,
  .strip:hover {
    border-color: rgba(255, 43, 43, 0.45);
  }

  .pkg:hover .lights i.on,
  .strip:hover .lights i.on {
    animation: rev 0.9s ease calc(var(--n) * 90ms) both;
  }

  /* Founding revs again in white. a new animation name so it restarts */
  .flagship.in:hover .lights-max i.on {
    animation: rev-white 0.9s ease calc(var(--n) * 90ms) both;
  }
}

@keyframes rev-white {
  0% {
    background: rgba(255, 255, 255, 0.25);
  }
  100% {
    background: #fff;
  }
}

@keyframes rev {
  0% {
    background: var(--hair);
  }
  60% {
    background: var(--ember-hot);
  }
  100% {
    background: var(--ember);
  }
}

/* Founding Partner lights rev up to the top once the card is on screen */
.lights-max {
  align-self: stretch;
}

/* .flagship.in rather than .reveal.in, the tiers section is a reveal too
   and would start the lights before anyone scrolls down to this card */
.lights-max i.on,
.js-reveal .flagship.in .lights-max i.on {
  background: #fff;
}

.flagship.in .lights-max i.on,
html:not(.js-reveal) .lights-max i.on {
  animation: rev-up 0.4s ease calc(var(--n) * 120ms + 600ms) both;
}

@keyframes rev-up {
  from {
    background: rgba(255, 255, 255, 0.25);
  }
  to {
    background: #fff;
  }
}

/* enquiry builder */
#enquire {
  padding-bottom: calc(var(--gap) * 1.1);
}

.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.enq-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.enq-tiers {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enq-tiers legend {
  padding: 0;
  margin-bottom: 10px;
}

/* radios styled as chips */
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 10px 14px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.chip input:checked + span {
  color: #fff;
  background: var(--ember-deep);
  border-color: var(--ember);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--ember-hot);
  outline-offset: 3px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field em {
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--bone);
  background: var(--ink-1);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--smoke-dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember-hot);
}

/* email preview */
.enq-mail {
  border: 1px solid rgba(255, 90, 74, 0.3);
  border-radius: 3px;
  background: linear-gradient(158deg, var(--ember-deep), #45060b 80%);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.enq-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: #fff;
}

.enq-meta span:not(.label) {
  overflow-wrap: anywhere;
}

.enq-body {
  margin: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* statement band */
.statement {
  padding-block: calc(var(--gap) * 1.1);
  gap: 24px;
}

.scrub {
  font-family: var(--display);
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18ch;
}

.scrub em {
  font-style: normal;
  color: var(--ember);
}

/* words light up as you scroll, key words in red */
.scrub .w {
  color: rgba(243, 238, 238, 0.14);
  transition: color 0.25s ease;
}

.scrub .w.lit {
  color: var(--bone);
}

.scrub .w.key.lit {
  color: var(--ember);
}

/* kit picker */
.kit {
  border: 0;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kit legend {
  padding: 0;
  margin-bottom: 10px;
}

.kit-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kit-chip span {
  display: inline-block;
  font-size: 13px;
  border: 1px solid var(--band-hair);
  border-radius: 3px;
  padding: 8px 12px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.kit-chip input:checked + span {
  background: var(--band-ink);
  border-color: var(--band-ink);
  color: #fff;
}

.kit-chip input:focus-visible + span {
  outline: 2px solid var(--ember-deep);
  outline-offset: 2px;
}

.kit-uses {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ember-deep);
  font-weight: 600;
}

.kit-uses:empty {
  display: none;
}

/* prompt above the start lights */
.gantry-ask {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
}

/* start lights hanging from a beam */
.gantry-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 40px);
  padding-top: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.gantry-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 2px solid var(--hair);
}

.gantry {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.gantry-lights {
  display: grid;
  grid-template-columns: repeat(5, clamp(44px, 5vw, 64px));
  gap: clamp(8px, 1vw, 12px);
}

/* each pod has two lights on a short stalk */
.pod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: #000;
  border: 1px solid var(--hair-soft);
  border-radius: 6px;
}

.pod::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 50%;
  height: 18px;
  border-left: 2px solid var(--hair);
}

.pod i {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #2a1215;
  transition:
    background 0.06s linear,
    box-shadow 0.06s linear;
}

.pod.on i {
  background: var(--ember);
  box-shadow: 0 0 18px rgba(255, 43, 43, 0.55);
}

/* green at lights out */
.pod.go i {
  background: #22d65e;
  box-shadow: 0 0 18px rgba(34, 214, 94, 0.55);
}

.gantry-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  font-variant-numeric: tabular-nums;
}

.gantry-msg {
  color: var(--bone);
}

.gantry-days {
  font-variant-numeric: tabular-nums;
}

.sp-copy {
  max-width: 760px;
}

@media (hover: hover) {
  .gantry:hover .pod {
    border-color: rgba(243, 238, 238, 0.3);
  }

  .route-tiers a:hover span:first-child {
    color: var(--ember);
  }
}

/* tier list in the Cash half */
.route-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: stretch;
  border-top: 1px solid var(--hair);
}

.route-tiers a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--bone);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.mini-lights {
  display: grid;
  grid-template-columns: repeat(10, 8px);
  gap: 3px;
}

.mini-lights i {
  height: 4px;
  background: var(--hair);
}

.mini-lights i.on {
  background: var(--ember);
}

/* --p goes 0 to 1 as the words light up, so the photo brightens with them */
.statement-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --p: 1;
}

.statement-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  z-index: -2;
  opacity: calc(0.25 + var(--p) * 0.65);
  transform: scale(calc(1.1 - var(--p) * 0.1));
  filter: grayscale(calc(1 - var(--p) * 0.6));
}

/* fade the photo into the page */
.statement-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    var(--ink) 0%,
    rgba(7, 5, 6, 0) 22%,
    rgba(7, 5, 6, 0) 78%,
    var(--ink) 100%
  );
}

.statement-cap {
  color: rgba(243, 238, 238, 0.55);
}

/* red email card */
.enq-mail .label {
  color: rgba(255, 255, 255, 0.7);
}

.enq-mail .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.enq-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* cash and kit split, edge to edge */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* --gap only exists on .wrap, so the split needs its own */
  --gap: clamp(64px, 8vw, 120px);
}

.split-half {
  display: flex;
  align-items: flex-start;
  padding-block: calc(var(--gap) * 1.2);
}

.split-cash {
  background: var(--ink-1);
  padding-inline: max(
      var(--gutter),
      calc((100vw - var(--maxw)) / 2 + var(--gutter))
    )
    clamp(28px, 4vw, 64px);
}

.split-kit {
  background: var(--band);
  color: var(--band-ink);
  padding-inline: clamp(28px, 4vw, 64px)
    max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}

.split-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 520px;
}

.split-inner > .label {
  margin-bottom: -12px;
}

.split-inner .kit,
.split-inner .route-tiers {
  margin-top: 8px;
}

.split-inner > p:not(.label) {
  max-width: 46ch;
  color: var(--smoke);
}

.split-kit .label,
.split-kit .split-inner > p:not(.label) {
  color: var(--band-sub);
}

/* sized so Financial. fits inside half the screen */
.split-word {
  font-size: clamp(48px, 5.6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.split-cash .split-word {
  color: var(--ember);
}

@media (max-width: 1040px) {
  .flagship {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pkg .btn,
  .flagship .btn,
  .split .btn {
    align-self: stretch;
    justify-content: center;
  }
}

/* one section per screen on desktop */
@media (min-width: 861px) and (min-height: 640px) {
  .hero.sp-head {
    min-height: calc(100svh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* full width instead of centred */
    align-items: stretch;
  }

  .statement,
  #enquire {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #tiers {
    padding-block: calc(var(--gap) * 1.5);
  }
}

/* phones and small tablets */
@media (max-width: 860px) {
  .tier-grid,
  .enquiry,
  .split {
    grid-template-columns: 1fr;
  }

  #tiers,
  #enquire {
    padding-block: calc(var(--gap) * 1.4);
  }

  .statement {
    min-height: 80svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .statement-photo {
    object-position: 80% 40%;
  }

  .statement-band::before {
    background:
      linear-gradient(
        180deg,
        var(--ink) 0%,
        rgba(7, 5, 6, 0.25) 25%,
        rgba(7, 5, 6, 0.25) 75%,
        var(--ink) 100%
      ),
      linear-gradient(90deg, rgba(7, 5, 6, 0.7), rgba(7, 5, 6, 0.35));
  }

  .split-cash,
  .split-kit {
    padding-inline: var(--gutter);
  }

  .gantry-wrap {
    flex-direction: column;
    gap: 12px;
  }
}

/* desktop: photo on the right, faded on its left edge */
@media (min-width: 861px) {
  .statement-photo {
    left: 38%;
    width: 62%;
    object-position: 60% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  }
}

/* why now: heading on the left, three numbered reasons on the right */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.why-reach {
  margin-top: 8px;
  font-size: 15px;
  color: var(--smoke);
}

.why-fig {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35em;
  color: var(--bone);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.why-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
}

.why-n {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}

.why-item h3 {
  margin-bottom: 8px;
}

.why-item p {
  color: var(--smoke);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52ch;
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .why-n {
    font-size: 22px;
  }
}

/* the statement pinned full screen. the wrapper height is how long it stays */
.statement-pin {
  height: 250vh;
}

.statement-band.pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.statement-band.pinned .statement {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 0;
}

.statement-band.pinned .scrub {
  font-size: clamp(44px, min(7.4vw, 10.5svh), 124px);
  line-height: 1;
  max-width: 15ch;
}

/* words start invisible, fade in as ghosts, then go white */
.statement-band.pinned .scrub .w {
  color: rgba(243, 238, 238, calc(var(--in, 0) * 0.16));
  transition: color 0.3s ease;
}

.statement-band.pinned .scrub .w.lit {
  color: var(--bone);
}

.statement-band.pinned .scrub .w.key.lit {
  color: var(--ember);
}

.statement-band.pinned .statement-cap {
  opacity: var(--in, 0);
}

/* the clip takes the right 70% and fades in on its left edge */
.statement-band.pinned .statement-photo {
  left: 30%;
  width: 70%;
  object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.statement-video {
  opacity: calc(0.35 + var(--p) * 0.65);
  transform: scale(calc(1.08 - var(--p) * 0.08));
  filter: saturate(calc(0.5 + var(--p) * 0.6))
    brightness(calc(0.75 + var(--p) * 0.4));
}

/* the still hides once the clip has a frame */
.statement-band.has-video img.statement-photo {
  visibility: hidden;
}

.statement-band.pinned::before {
  background:
    linear-gradient(
      180deg,
      var(--ink) 0%,
      rgba(7, 5, 6, 0) 16%,
      rgba(7, 5, 6, 0) 84%,
      var(--ink) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 5, 6, 0.7) 0%,
      rgba(7, 5, 6, 0.3) 45%,
      rgba(7, 5, 6, 0) 100%
    );
}

/* phones: the clip sits behind all the words, so a more even shade */
@media (max-width: 860px) {
  .statement-pin {
    height: 210vh;
  }

  .statement-band.pinned .statement-photo {
    left: 0;
    width: 100%;
    object-position: 70% 50%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .statement-band.pinned::before {
    background:
      linear-gradient(
        180deg,
        var(--ink) 0%,
        rgba(7, 5, 6, 0.2) 18%,
        rgba(7, 5, 6, 0.2) 82%,
        var(--ink) 100%
      ),
      linear-gradient(90deg, rgba(7, 5, 6, 0.6), rgba(7, 5, 6, 0.25));
  }
}

/* Supporting Partner strip, over Team and Innovation */
.strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: rgba(16, 11, 13, 0.72);
  padding: clamp(18px, 2vw, 24px);
}

.strip-head,
.strip-get {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.strip-get .btn {
  align-self: flex-start;
}

/* first row of the grid: the note over Community, Supporting over Team and Innovation */
.tier-grid .strip {
  grid-column: 2 / span 2;
  grid-row: 1;
}

.tier-note {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed rgba(255, 90, 74, 0.45);
  border-radius: 3px;
  padding: clamp(18px, 2vw, 24px);
}

.tier-note .label {
  color: var(--ember-hot);
}

.tier-note p {
  color: var(--smoke);
  font-size: 14px;
  line-height: 1.55;
}

.note-link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
}

/* one column: Supporting first, then the note, then the cards */
@media (max-width: 860px) {
  .strip {
    grid-template-columns: 1fr;
  }

  .tier-grid .strip,
  .tier-note {
    grid-column: auto;
    grid-row: auto;
  }
}
