:root {
  --grant-purple: #651fff;
  --grant-violet: #5a45ef;
  --grant-cyan: #2bd4e2;
  --grant-ink: #170442;
  --grant-copy: #5e586d;
  --grant-line: rgba(101, 31, 255, .14);
}

.grant-page,
.grant-page button,
.grant-page input,
.grant-page textarea,
.grant-page select {
  font-family: "Exo", Arial, sans-serif;
}

.grant-page h1,
.grant-page h2,
.grant-page h3,
.grant-page .service-eyebrow,
.grant-page .service-button,
.grant-page .service-faq summary {
  font-family: "ExoBold", Arial, sans-serif;
}

.grant-hero {
  position: relative;
  min-height: 850px;
  padding: 170px 0 100px;
  overflow: hidden;
  background:
    linear-gradient(rgba(101, 31, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 31, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 88% 14%, rgba(43, 212, 226, .24), transparent 30%),
    radial-gradient(circle at 74% 82%, rgba(101, 31, 255, .22), transparent 34%),
    linear-gradient(145deg, #fff 0%, #fbfaff 56%, #f0edff 100%);
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
}

.grant-hero::before {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(101, 31, 255, .13);
  border-radius: 50%;
  box-shadow: inset 0 0 110px rgba(43, 212, 226, .08);
  content: "";
}

.grant-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(410px, .88fr);
  gap: 70px;
  align-items: center;
}

.grant-country-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  padding: 6px;
  border: 1px solid var(--grant-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 35px rgba(37, 2, 130, .07);
}

.grant-country-switcher a,
.grant-country-switcher > span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  color: #6c6676;
  font-size: 13px;
  text-decoration: none;
}

.grant-country-switcher a span,
.grant-country-switcher > span b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: #eeeaff;
  color: var(--grant-violet);
  font-family: "ExoBold", sans-serif;
  font-size: 9px;
}

.grant-country-switcher a.is-active {
  color: #fff;
  background: var(--grant-violet);
}

.grant-country-switcher a.is-active span {
  color: var(--grant-violet);
  background: #fff;
}

.grant-country-switcher .is-coming {
  color: #928c9c;
}

.grant-country-switcher small {
  padding: 4px 7px;
  border-radius: 999px;
  color: #837b91;
  background: #efedf3;
  font-size: 9px;
  text-transform: uppercase;
}

.grant-hero h1 {
  max-width: 800px;
  margin: 0;
  color: var(--grant-ink);
  font-family: "ExoBold", sans-serif;
  font-size: clamp(48px, 5vw, 75px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.grant-hero h1::first-line {
  color: var(--grant-purple);
}

.grant-hero h2 {
  max-width: 700px;
  margin: 26px 0 0;
  color: #4c329d;
  font-family: "ExoBold", sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
}

.grant-hero__note {
  max-width: 680px;
  margin: 24px 0 0;
  color: #7e7788;
  font-size: 12px;
  line-height: 1.6;
}

.grant-visual {
  position: relative;
  min-height: 590px;
  border: 1px solid rgba(101, 31, 255, .12);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 70%, rgba(43, 212, 226, .28), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.8), rgba(238,233,255,.94));
  box-shadow: 0 35px 90px rgba(37, 2, 130, .14);
}

.grant-orbit {
  position: absolute;
  border: 1px solid rgba(101, 31, 255, .15);
  border-radius: 50%;
}

.grant-orbit--one {
  inset: 80px 38px 55px;
}

.grant-orbit--two {
  top: 142px;
  right: 87px;
  bottom: 115px;
  left: 87px;
  border-color: rgba(43, 212, 226, .34);
}

.grant-funding-badge {
  position: absolute;
  z-index: 5;
  top: 38px;
  right: 34px;
  display: grid;
  width: 165px;
  min-height: 100px;
  place-content: center;
  padding: 16px;
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(130deg, #651fff, #2cbfcc);
  box-shadow: 0 18px 40px rgba(90, 69, 239, .3);
  text-align: center;
}

.grant-funding-badge strong {
  font-family: "ExoBold", sans-serif;
  font-size: 28px;
}

.grant-funding-badge span {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.grant-phone {
  position: absolute;
  z-index: 3;
  width: 210px;
  height: 425px;
  padding: 10px;
  border: 5px solid #1b103a;
  border-radius: 36px;
  background: #1b103a;
  box-shadow: 0 28px 60px rgba(23, 4, 66, .28);
}

.grant-phone--front {
  bottom: 50px;
  left: 70px;
  transform: rotate(-5deg);
}

.grant-phone--back {
  right: 58px;
  bottom: 80px;
  opacity: .93;
  transform: rotate(7deg) scale(.92);
}

.grant-phone__top {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 76px;
  height: 20px;
  border-radius: 999px;
  background: #1b103a;
  transform: translateX(-50%);
}

.grant-phone__screen {
  display: flex;
  height: 100%;
  padding: 48px 18px 22px;
  flex-direction: column;
  border-radius: 25px;
  background: linear-gradient(160deg, #fff, #f0ebff 60%, #dbf9fb);
}

.grant-phone__screen > span {
  color: var(--grant-violet);
  font-family: "ExoBold", sans-serif;
  font-size: 9px;
  letter-spacing: .12em;
}

.grant-phone__screen > b {
  margin: 12px 0 25px;
  color: var(--grant-ink);
  font-family: "ExoBold", sans-serif;
  font-size: 18px;
  line-height: 1.15;
}

.grant-phone__screen > i {
  height: 53px;
  margin-bottom: 11px;
  border: 1px solid rgba(101,31,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}

.grant-app-chart {
  display: flex;
  height: 140px;
  margin-bottom: 24px;
  align-items: end;
  justify-content: center;
  gap: 11px;
  padding: 19px;
  border-radius: 19px;
  background: linear-gradient(145deg, #ede7ff, #e2fafc);
}

.grant-app-chart i {
  width: 22px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(#2bd4e2, #651fff);
}

.grant-app-chart i:nth-child(1) { height: 40%; }
.grant-app-chart i:nth-child(2) { height: 72%; }
.grant-app-chart i:nth-child(3) { height: 55%; }
.grant-app-chart i:nth-child(4) { height: 92%; }

.grant-app-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grant-app-row i {
  height: 62px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37,2,130,.07);
}

.grant-visual__chip {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 25px;
  padding: 12px 16px;
  border: 1px solid rgba(101,31,255,.12);
  border-radius: 999px;
  color: #4e4180;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(37,2,130,.1);
  font-size: 11px;
}

.grant-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
  gap: 80px;
  align-items: center;
}

.grant-overview h2 {
  max-width: 690px;
  margin: 0;
  font-family: "ExoBold", sans-serif;
  font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.grant-overview__intro p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--grant-copy);
  font-size: 17px;
  line-height: 1.75;
}

.grant-text-link {
  display: inline-flex;
  margin-top: 25px;
  color: var(--grant-violet);
  font-family: "ExoBold", sans-serif;
  font-size: 13px;
  text-decoration: none;
}

.grant-eligibility {
  padding: 38px;
  border: 1px solid rgba(101,31,255,.16);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f5f2ff);
  box-shadow: 0 25px 65px rgba(37,2,130,.1);
}

.grant-card-label {
  color: var(--grant-violet);
  font-family: "ExoBold", sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.grant-eligibility h3 {
  margin: 15px 0 23px;
  color: var(--grant-ink);
  font-family: "ExoBold", sans-serif;
  font-size: 30px;
}

.grant-eligibility ul {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.grant-eligibility li {
  position: relative;
  padding-left: 32px;
  color: var(--grant-copy);
  font-size: 15px;
  line-height: 1.55;
}

.grant-eligibility li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--grant-purple), var(--grant-cyan));
  content: "✓";
  font-size: 11px;
}

.grant-eligibility small {
  display: block;
  margin-top: 21px;
  color: #837d8c;
  font-size: 11px;
  line-height: 1.55;
}

.grant-eligibility .grant-eligibility__button,
.grant-eligibility .grant-eligibility__button:visited,
.grant-eligibility .grant-eligibility__button:hover,
.grant-eligibility .grant-eligibility__button:focus-visible {
  color: #fff;
}

.grant-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grant-outcomes article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--grant-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37,2,130,.06);
}

.grant-outcomes span,
.grant-process__face > span {
  color: var(--grant-cyan);
  font-family: "ExoBold", sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
}

.grant-outcomes h3 {
  margin: 65px 0 14px;
  color: var(--grant-ink);
  font-family: "ExoBold", sans-serif;
  font-size: 21px;
  line-height: 1.2;
}

.grant-outcomes p {
  margin: 0;
  color: var(--grant-copy);
  font-size: 14px;
  line-height: 1.7;
}

.grant-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  align-items: stretch;
}

.grant-process__item {
  position: relative;
  min-height: 350px;
  border-radius: 25px;
  outline: none;
  perspective: 1100px;
  cursor: pointer;
}

.grant-process__card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.2, .72, .2, 1), filter .3s ease;
}

.grant-process__face {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: 350px;
  padding: 26px 24px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(43,212,226,.28);
  border-radius: 25px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 45px rgba(4, 1, 22, .12);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.grant-process__back {
  justify-content: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(43,212,226,.2), transparent 34%),
    linear-gradient(145deg, rgba(101,31,255,.36), rgba(255,255,255,.08));
  transform: rotateY(180deg);
}

.grant-process__item:hover .grant-process__face,
.grant-process__item:focus-visible .grant-process__face,
.grant-process__item.is-flipped .grant-process__face {
  border-color: rgba(43,212,226,.62);
  background: rgba(255,255,255,.085);
  box-shadow: 0 24px 55px rgba(2, 0, 20, .22);
}

.grant-process__item:hover .grant-process__back,
.grant-process__item:focus-visible .grant-process__back,
.grant-process__item.is-flipped .grant-process__back {
  background:
    radial-gradient(circle at 85% 15%, rgba(43,212,226,.24), transparent 34%),
    linear-gradient(145deg, rgba(101,31,255,.52), rgba(255,255,255,.1));
}

@media (hover: hover) and (pointer: fine) {
  .grant-process__item:hover .grant-process__card,
  .grant-process__item:focus-visible .grant-process__card {
    transform: translateY(-7px) rotateY(180deg);
  }
}

.grant-process__item.is-flipped .grant-process__card {
  transform: translateY(-7px) rotateY(180deg);
}

.grant-process__icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-top: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 21px;
  color: #9bf2f6;
  background: rgba(43,212,226,.08);
  font-family: "ExoBold", sans-serif;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.grant-process h3 {
  margin: 28px 0 0;
  color: #fff;
  font-family: "ExoBold", sans-serif;
  font-size: 19px;
  line-height: 1.25;
}

.grant-process p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.7;
}

.grant-process__back > span {
  color: #9bf2f6;
}

.grant-process__back h3 {
  margin-top: 20px;
  font-size: 21px;
}

.grant-process__hint {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.grant-process__hint::after {
  content: "↻";
  color: var(--grant-cyan);
  font-size: 13px;
}

@media (hover: none), (pointer: coarse) {
  .grant-process__front .grant-process__hint {
    font-size: 0;
  }

  .grant-process__front .grant-process__hint::before {
    content: "Tap to reveal";
    font-size: 10px;
  }
}

@media (max-width: 1120px) {
  .grant-hero__grid {
    grid-template-columns: 1fr 410px;
    gap: 35px;
  }

  .grant-process {
    grid-template-columns: repeat(3, 1fr);
  }

  .grant-outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .grant-hero {
    min-height: auto;
    padding: 135px 0 80px;
  }

  .grant-hero__grid,
  .grant-overview {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .grant-visual {
    width: min(100%, 590px);
    min-height: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .grant-hero {
    padding-top: 116px;
  }

  .grant-country-switcher {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
  }

  .grant-country-switcher a,
  .grant-country-switcher > span {
    justify-content: center;
    padding: 0 10px;
  }

  .grant-country-switcher small {
    display: none;
  }

  .grant-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .grant-hero h2 {
    font-size: 24px;
  }

  .grant-visual {
    min-height: 470px;
    border-radius: 30px;
  }

  .grant-phone {
    width: 165px;
    height: 345px;
    border-width: 4px;
    border-radius: 29px;
  }

  .grant-phone--front {
    bottom: 42px;
    left: 28px;
  }

  .grant-phone--back {
    right: 18px;
    bottom: 70px;
  }

  .grant-funding-badge {
    top: 20px;
    right: 17px;
    width: 135px;
    min-height: 82px;
  }

  .grant-funding-badge strong {
    font-size: 22px;
  }

  .grant-phone__screen {
    padding: 42px 13px 16px;
  }

  .grant-phone__screen > b {
    font-size: 14px;
  }

  .grant-app-chart {
    height: 110px;
    padding: 15px;
  }

  .grant-app-row i {
    height: 45px;
  }

  .grant-visual__chip {
    right: 18px;
    bottom: 18px;
  }

  .grant-eligibility {
    padding: 28px 22px;
  }

  .grant-outcomes,
  .grant-process {
    grid-template-columns: 1fr;
  }

  .grant-outcomes article,
  .grant-process__item,
  .grant-process__card,
  .grant-process__face {
    min-height: auto;
  }

  .grant-process__item,
  .grant-process__card,
  .grant-process__face {
    min-height: 310px;
  }

  .grant-outcomes h3 {
    margin-top: 35px;
  }

  .grant-process__icon {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grant-process__card,
  .grant-process__face {
    transition: none;
  }
}
