/* Shared motion layer for the static prototype. Content remains visible without JS. */
.tc-scroll-progress {
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #3f51b5, #00bcd4);
}

[data-hero-media] {
  transform: translate3d(0, var(--tc-hero-shift, 0px), 0) scale(1.035);
  transform-origin: center;
  will-change: transform;
}

.tc-page-hero {
  isolation: isolate;
}

.tc-page-hero-scrim {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.96) 38%,
      rgba(255, 255, 255, 0.78) 66%,
      rgba(255, 255, 255, 0.2) 100%
    );
}

details {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

details[open] {
  border-color: rgba(63, 81, 181, 0.28);
  box-shadow: 0 14px 30px -22px rgba(15, 23, 42, 0.34);
}

details > div {
  transition: opacity 220ms ease;
}

details[open] > div {
  opacity: 1;
}

.tc-apply-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.55);
}

.tc-apply-banner-image {
  display: block;
  width: 100%;
}

.tc-apply-panel {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.tc-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: 0.875rem;
  background: #3f51b5;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 18px 32px -18px rgba(63, 81, 181, 0.65);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.tc-apply-button:hover {
  background: #303f9f;
  box-shadow: 0 22px 36px -18px rgba(63, 81, 181, 0.72);
  transform: translateY(-1px);
}

.tc-apply-button:active {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .tc-apply-panel {
    padding: 1.125rem 1.25rem;
  }

  .tc-apply-button {
    min-width: 15rem;
  }
}

@media (max-width: 639px) {
  .tc-page-hero {
    min-height: auto;
    align-items: flex-start;
    background: #fff;
  }

  .tc-page-hero-media {
    opacity: 0.34;
    object-position: right top !important;
    transform: none !important;
  }

  .tc-page-hero-scrim {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.96) 58%,
        rgba(255, 255, 255, 0.8) 82%,
        rgba(255, 255, 255, 0.64) 100%
      );
    backdrop-filter: blur(1px);
  }

  .tc-page-hero-copy {
    width: 100%;
    max-width: none;
  }

  .tc-page-hero-copy h1 {
    font-size: 2.625rem;
    line-height: 1.08;
  }

  .tc-page-hero-copy p {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .tc-apply-banner {
    border-radius: 1rem;
  }

  .tc-apply-button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .tc-page-hero-copy h1 {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal],
  .js .reveal {
    opacity: 0;
    transform:
      translate3d(var(--tc-reveal-x, 0), var(--tc-reveal-y, 18px), 0)
      scale(var(--tc-reveal-scale, 1));
    filter: blur(var(--tc-reveal-blur, 0));
    transition:
      opacity var(--tc-reveal-duration, 660ms) cubic-bezier(0.22, 1, 0.36, 1),
      transform var(--tc-reveal-duration, 660ms) cubic-bezier(0.22, 1, 0.36, 1),
      filter var(--tc-reveal-duration, 660ms) cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--tc-reveal-delay, 0ms);
    will-change: opacity, transform, filter;
  }

  .js [data-reveal].is-visible,
  .js .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  [data-reveal="fade-left"] {
    --tc-reveal-x: -28px;
    --tc-reveal-y: 0;
  }

  [data-reveal="fade-right"] {
    --tc-reveal-x: 28px;
    --tc-reveal-y: 0;
  }

  [data-reveal="scale-in"] {
    --tc-reveal-y: 12px;
    --tc-reveal-scale: 0.97;
  }

  [data-reveal="soft"] {
    --tc-reveal-y: 10px;
    --tc-reveal-blur: 4px;
    --tc-reveal-duration: 760ms;
  }

  [data-reveal="hero"] {
    --tc-reveal-y: 20px;
    --tc-reveal-blur: 3px;
    --tc-reveal-duration: 780ms;
  }
}

@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  [data-reveal="fade-left"],
  [data-reveal="fade-right"] {
    --tc-reveal-x: 0;
    --tc-reveal-y: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js .reveal,
  [data-hero-media] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  #astro-video,
  #astro-video-2 {
    display: none;
  }
}
