/* =====================================================================
   Home banner — full-viewport cover hero
   Fits in one screen: banner height = viewport height minus the header,
   so nothing in the banner requires scrolling.
   Scoped with the .jn- prefix; only linked from index.html.
   ===================================================================== */

:root {
  /* measured at runtime by the inline script in index.html */
  --jn-nav-h: 92px;
}

.jn-hero {
  --jn-accent: #ed553b;
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--jn-nav-h));
  /* svh keeps mobile browser chrome from pushing the banner taller
     than the visible area */
  min-height: calc(100svh - var(--jn-nav-h));
  padding: clamp(24px, 4vh, 56px) 0;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(
      100deg,
      rgba(9, 24, 35, 0.92) 0%,
      rgba(9, 24, 35, 0.78) 34%,
      rgba(9, 24, 35, 0.44) 62%,
      rgba(9, 24, 35, 0.26) 100%
    ),
    url(../images/home/final.jpg);
  /* bias right so the subject stays in frame and the blurred side sits
     under the headline */
  background-position: 62% center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* standard desktops don't need the 2880px file */
@media screen and (max-width: 1399px) {
  .jn-hero {
    background-image: linear-gradient(
        100deg,
        rgba(9, 24, 35, 0.92) 0%,
        rgba(9, 24, 35, 0.78) 34%,
        rgba(9, 24, 35, 0.44) 62%,
        rgba(9, 24, 35, 0.26) 100%
      ),
      url(../images/home/final.jpg);
  }
}

/* vignette + a fade into the page below, so the banner doesn't end on a
   hard horizontal line */
.jn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      130% 100% at 50% 42%,
      transparent 52%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    linear-gradient(to bottom, transparent 82%, rgba(255, 255, 255, 0.14) 100%);
}

.jn-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 48px);
}

.jn-hero-copy {
  max-width: 40rem;
}

/* ------------------------------- COPY ------------------------------ */
.jn-hero-eyebrow {
  font-size: clamp(0.68rem, 0.8vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.66);
  margin: 0 0 clamp(10px, 1.6vh, 18px);
}

.jn-hero-title {
  font-size: clamp(1.85rem, 3.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 clamp(12px, 1.8vh, 20px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.jn-hero-title em {
  font-style: normal;
  display: block;
  color: #ffd9a8;
}

.jn-hero-sub {
  font-size: clamp(0.95rem, 1.15vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 46ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

/* ------------------------------ BUTTONS ---------------------------- */
.jn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(18px, 3vh, 34px);
}

.jn-btn {
  display: inline-block;
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  font-weight: 600;
  padding: clamp(11px, 1.5vh, 15px) clamp(22px, 2.4vw, 32px);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease;
}

.jn-btn-primary {
  background: var(--jn-accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(237, 85, 59, 0.9);
}

.jn-btn-primary:hover {
  background: #d94a31;
  color: #fff;
  transform: translateY(-2px);
}

.jn-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.jn-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ------------------------------- TRUST ----------------------------- */
.jn-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: clamp(18px, 3vh, 32px) 0 0;
}

.jn-hero-trust li {
  font-size: clamp(0.74rem, 0.85vw, 0.86rem);
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.jn-hero-founder {
  font-size: clamp(0.8rem, 0.92vw, 0.94rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: clamp(14px, 2.2vh, 22px) 0 0;
  max-width: 46ch;
}

.jn-hero-founder strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* ----------------------------- SCROLL CUE -------------------------- */
.jn-hero-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vh, 26px);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.jn-hero-cue:hover {
  color: #fff;
}

.jn-hero-cue span {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ---------------------------- RESPONSIVE --------------------------- */
@media screen and (max-width: 991px) {
  .jn-hero {
    background-image: linear-gradient(
        180deg,
        rgba(9, 24, 35, 0.84) 0%,
        rgba(9, 24, 35, 0.74) 55%,
        rgba(9, 24, 35, 0.88) 100%
      ),
      url(../images/home/final.jpg);
    background-position: 62% center;
    text-align: center;
  }
  .jn-hero-copy {
    max-width: none;
  }
  .jn-hero-sub,
  .jn-hero-founder {
    margin-left: auto;
    margin-right: auto;
  }
  .jn-hero-actions,
  .jn-hero-trust {
    justify-content: center;
  }
}

@media screen and (max-width: 575px) {
  .jn-btn {
    flex: 1 1 100%;
    text-align: center;
  }
  /* keep everything inside one screen on small phones */
  .jn-hero-founder {
    display: none;
  }
}

/* short screens (small laptops, landscape phones): trim the extras
   rather than letting the banner spill past one viewport */
@media screen and (max-height: 640px) {
  .jn-hero-founder,
  .jn-hero-cue {
    display: none;
  }
  .jn-hero-trust {
    margin-top: 14px;
  }
}

@media screen and (max-height: 520px) {
  .jn-hero-trust {
    display: none;
  }
}

/* entrance motion — one subtle move, off for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  .jn-hero-eyebrow,
  .jn-hero-title,
  .jn-hero-sub,
  .jn-hero-actions,
  .jn-hero-trust,
  .jn-hero-founder {
    animation: jnRise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .jn-hero-title {
    animation-delay: 0.06s;
  }
  .jn-hero-sub {
    animation-delay: 0.12s;
  }
  .jn-hero-actions {
    animation-delay: 0.18s;
  }
  .jn-hero-trust {
    animation-delay: 0.24s;
  }
  .jn-hero-founder {
    animation-delay: 0.3s;
  }
}

@keyframes jnRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
