/* Shared application entry and modal; interactive timings preserved. */
.funding-application-modal { --funding-line: rgba(36,26,20,.14); --funding-ink: #191919; --funding-muted: #68625c; --funding-orange: #ff8a3d; }
.funding-application-modal .funding-button {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--funding-line);
  border-radius: 999px;
  color: var(--funding-ink);
  background: transparent;
  background-size: 240% 240%;
  background-position: 0% 50%;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-rendering: geometricPrecision;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    background-position 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    color 0.25s ease;
}

.funding-application-modal .funding-button-primary {
  border: 0;
  color: #191919;
  background-color: var(--funding-orange);
  background-image: var(--button-flow, linear-gradient(120deg, #ffc24d 0%, #ff8a3d 28%, #f45f45 50%, #ff8a3d 72%, #ffc24d 100%));
  box-shadow: 0 14px 35px rgba(255, 138, 61, 0.26);
}

.funding-application-modal .funding-button-primary:hover,
.funding-application-modal .funding-button-primary:focus-visible {
  color: #191919;
  background-position: 100% 50%;
  box-shadow: 0 14px 35px rgba(255, 138, 61, 0.34);
}




body.funding-modal-open {
  overflow: hidden;
}


.funding-application-modal[hidden],
.funding-application-form[hidden],
.funding-application-success[hidden] {
  display: none;
}


.funding-application-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}


.funding-application-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(37, 29, 23, 0.2);
  opacity: 0;
  cursor: default;
  backdrop-filter: blur(0);
  transition: opacity 300ms ease, backdrop-filter 300ms ease;
}


.funding-application-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  max-height: calc(100dvh - 48px);
  padding: clamp(32px, 5vw, 54px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(47, 38, 31, 0.12);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: 0 28px 80px rgba(78, 48, 27, 0.18);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.982);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}


.funding-application-modal.is-open .funding-application-backdrop {
  opacity: 1;
  backdrop-filter: blur(10px);
}


.funding-application-modal.is-open .funding-application-dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}


.funding-application-modal.is-closing .funding-application-backdrop,
.funding-application-modal.is-closing .funding-application-dialog {
  pointer-events: none;
}


.funding-application-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--funding-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  place-items: center;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}


.funding-application-close span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}


.funding-application-close span::before,
.funding-application-close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}


.funding-application-close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}


.funding-application-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


.funding-application-close:hover,
.funding-application-close:focus-visible {
  color: var(--funding-orange);
  border-color: rgba(255, 125, 66, 0.5);
  background: #fff8f2;
}


.funding-application-close:hover span,
.funding-application-close:focus-visible span {
  transform: rotate(90deg);
}


.funding-application-header {
  padding-right: 44px;
}


.funding-application-header h2,
.funding-application-success h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.16;
}


.funding-application-header > p:last-child,
.funding-application-success p {
  margin-top: 14px;
  color: var(--funding-muted);
  font-size: 15px;
  line-height: 1.75;
}


.funding-application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}


.funding-application-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}


.funding-application-select-field {
  position: relative;
}


.funding-application-select-field.is-open {
  z-index: 5;
}


.funding-application-field-full {
  grid-column: 1 / -1;
}


.funding-application-field > span {
  color: var(--funding-ink);
  font-size: 14px;
  font-weight: 400;
}


.funding-application-field input,
.funding-application-field textarea,
.funding-application-select-trigger {
  width: 100%;
  border: 1px solid var(--funding-line);
  border-radius: 6px;
  outline: 0;
  color: var(--funding-ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}


.funding-application-field input,
.funding-application-select-trigger {
  height: 52px;
  padding: 0 16px;
}


.funding-application-select-trigger {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}


.funding-application-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.funding-application-select-trigger i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(24, 23, 20, 0.52);
  border-bottom: 1.5px solid rgba(24, 23, 20, 0.52);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
}


.funding-application-select-field.is-open .funding-application-select-trigger i {
  border-color: var(--funding-orange);
  transform: translateY(2px) rotate(225deg);
}


.funding-application-select-options {
  position: absolute;
  z-index: 6;
  top: 88px;
  right: 0;
  left: 0;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(36, 31, 27, 0.14);
  border-radius: 7px;
  background: rgba(255, 253, 251, 0.97);
  box-shadow: 0 18px 42px rgba(51, 37, 27, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(20px) saturate(1.08);
  transform: translate3d(0, -6px, 0) scale(0.99);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 220ms;
}


.funding-application-select-options[hidden] {
  display: none;
}


.funding-application-select-options.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
}


.funding-application-select-options button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--funding-muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease;
}


.funding-application-select-options button:hover,
.funding-application-select-options button:focus-visible,
.funding-application-select-options button[aria-selected="true"] {
  color: var(--funding-ink);
  background: linear-gradient(100deg, rgba(255, 201, 94, 0.22), rgba(255, 125, 66, 0.1));
}


.funding-application-field textarea {
  min-height: 126px;
  padding: 15px 16px;
  line-height: 1.65;
  resize: vertical;
}


.funding-application-field input::placeholder,
.funding-application-field textarea::placeholder {
  color: #908a84;
  font-weight: 400;
  opacity: 1;
}


.funding-application-field input:focus,
.funding-application-field textarea:focus,
.funding-application-select-trigger:focus-visible {
  border-color: rgba(255, 125, 66, 0.66);
  box-shadow: 0 0 0 3px rgba(255, 151, 68, 0.1);
  background: #fffdfa;
}


.funding-application-field.has-error input,
.funding-application-field.has-error textarea,
.funding-application-field.has-error .funding-application-select-trigger {
  border-color: #d95736;
  box-shadow: 0 0 0 3px rgba(217, 87, 54, 0.1);
}


.funding-application-field em {
  min-height: 17px;
  color: #c5482d;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}


.funding-application-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
}


.funding-application-note {
  grid-column: 1 / -1;
  color: var(--funding-muted);
  font-size: 12px;
  line-height: 1.7;
}


.funding-application-success {
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: center;
  text-align: center;
}




.funding-application-success .funding-button {
  margin-top: 28px;
}


@keyframes funding-application-icon-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


@keyframes funding-application-icon-ring {
  from {
    opacity: 0.8;
    transform: scale(0.72);
  }
  to {
    opacity: 0;
    transform: scale(1.18);
  }
}


@keyframes funding-application-check-in {
  from {
    opacity: 0;
    transform: translateY(-2px) rotate(-45deg) scale(0.52);
  }
  to {
    opacity: 1;
    transform: translateY(-2px) rotate(-45deg) scale(1);
  }
}


@media (max-width: 760px) {

  .funding-application-submit,
  .funding-application-success .funding-button {
    width: auto;
  }


  .funding-application-modal {
    padding: 12px;
  }


  .funding-application-dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 34px 22px 28px;
  }


  .funding-application-close {
    top: 12px;
    right: 12px;
  }


  .funding-application-header {
    padding-right: 36px;
  }


  .funding-application-form {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
  }


  .funding-application-field-full,
  .funding-application-submit,
  .funding-application-note {
    grid-column: 1;
  }


  .funding-application-submit,
  .funding-application-success .funding-button {
    width: 100%;
  }
}


@media (max-height: 820px) {
  .funding-application-modal {
    padding: 12px;
  }


  .funding-application-dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 26px 32px 22px;
  }


  .funding-application-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 23px;
  }


  .funding-application-header {
    padding-right: 38px;
  }


  .funding-application-header h2,
  .funding-application-success h2 {
    margin-top: 6px;
    font-size: 30px;
  }


  .funding-application-header > p:last-child,
  .funding-application-success p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
  }


  .funding-application-form {
    gap: 9px 14px;
    margin-top: 16px;
  }


  .funding-application-field {
    gap: 5px;
  }


  .funding-application-field input,
  .funding-application-select-trigger {
    height: 44px;
    min-height: 44px;
  }


  .funding-application-select-options {
    top: 74px;
  }


  .funding-application-field textarea {
    min-height: 82px;
    padding-top: 11px;
    padding-bottom: 11px;
  }


  .funding-application-field em {
    min-height: 14px;
    font-size: 11px;
    line-height: 1.25;
  }


  .funding-application-note {
    line-height: 1.45;
  }


  .funding-application-success {
    min-height: 300px;
  }
}


@media (max-width: 760px) and (max-height: 820px) {
  .funding-application-dialog {
    padding: 30px 20px 24px;
  }


  .funding-application-form {
    margin-top: 20px;
  }
}


@media (hover: hover) and (pointer: fine) {
  :where(
    .funding-button,
    .funding-text-link,
    .funding-process-tabs button,
    .funding-leadership-next,
    .funding-case-controls button,
    .funding-application-close,
    .funding-application-select-options button
  ):not(:hover):not(:focus-visible):not(:active) {
    transition-delay: var(--hover-exit-delay);
  }


  :where(
    .funding-button,
    .funding-text-link,
    .funding-process-tabs button,
    .funding-leadership-next,
    .funding-case-controls button,
    .funding-application-close,
    .funding-application-select-options button
  ):hover,
  :where(
    .funding-button,
    .funding-text-link,
    .funding-process-tabs button,
    .funding-leadership-next,
    .funding-case-controls button,
    .funding-application-close,
    .funding-application-select-options button
  ):focus-visible,
  :where(
    .funding-button,
    .funding-text-link,
    .funding-process-tabs button,
    .funding-leadership-next,
    .funding-case-controls button,
    .funding-application-close,
    .funding-application-select-options button
  ):active {
    transition-delay: 0ms;
  }
}
.application-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: clamp(44px,5vw,76px); padding: clamp(36px,5vw,68px); border-radius: 14px; color: #fffaf4; background: #241a14; }
.application-cta-copy { max-width: 780px; }
.application-cta h2 { margin: 0; font-size: clamp(28px,2.15vw,36px); line-height: 1.25; font-weight: 650; }
.application-cta p { margin: 20px 0 0; color: rgba(255,250,244,.72); font-size: 15px; line-height: 1.8; }
.application-cta > button { flex-shrink: 0; white-space: nowrap; }
.secondary-main:has(.cases-hero) > .application-cta { width: min(1850px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
@media (max-width:760px) { .application-cta { align-items: flex-start; flex-direction: column; gap: 26px; } }
@media (prefers-reduced-motion:reduce) { .funding-application-modal *, .funding-application-modal *::before, .funding-application-modal *::after { animation: none !important; transition: none !important; } }
