/* JrSSSY homepage 4.16.558 — bright verdant premium F5 intro */

#jrHomeIntro {
  --intro-ink: #0b2a1c;
  --intro-ink-soft: rgba(11, 42, 28, 0.72);
  --intro-accent: #0d8a64;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: auto;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 55% at 50% 18%, #e8fff6 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 82% 78%, rgba(255, 244, 196, 0.45), transparent 60%),
    linear-gradient(168deg, #b7e8f5 0%, #d6f7e8 38%, #c5efd4 72%, #9fe0bc 100%);
  color: var(--intro-ink);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Soft forest atmosphere — bright, not muddy */
#jrHomeIntro::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 0;
  background:
    url("assets/verdant-wilds-v11/verdant-home-still.jpg?v=4.16.558") center 42% / cover no-repeat;
  filter: blur(10px) saturate(1.2) brightness(1.12) contrast(1.04);
  transform: scale(1.06);
  opacity: 0.55;
  animation: jrIntroStillDrift 16s ease-in-out infinite alternate;
}

#jrHomeIntro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 50% 44%, rgba(255, 255, 255, 0.55), transparent 68%),
    linear-gradient(180deg, rgba(186, 232, 245, 0.35) 0%, rgba(214, 247, 232, 0.5) 48%, rgba(168, 228, 196, 0.55) 100%);
}

.jr-intro-beams {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.jr-intro-beams span {
  position: absolute;
  top: -20%;
  width: 28%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 100%
  );
  transform: rotate(18deg) translateX(-120%);
  animation: jrIntroSweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s infinite;
}
.jr-intro-beams span:nth-child(2) {
  left: 36%;
  animation-delay: 1.5s;
  opacity: 0.7;
}
.jr-intro-beams span:nth-child(3) {
  left: 62%;
  animation-delay: 2.4s;
  opacity: 0.5;
}

.jr-intro-mist {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.jr-intro-mist span {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(200, 245, 220, 0.25) 50%, transparent 72%);
}
.jr-intro-mist span:nth-child(1) {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  left: -6%;
  top: 8%;
  animation: jrIntroMistA 10s ease-in-out infinite alternate;
}
.jr-intro-mist span:nth-child(2) {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: -8%;
  bottom: 4%;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(255, 248, 210, 0.7) 0%, transparent 70%);
  animation: jrIntroMistB 12s ease-in-out infinite alternate;
}
.jr-intro-mist span:nth-child(3) {
  width: min(30vw, 300px);
  height: min(30vw, 300px);
  left: 42%;
  top: 62%;
  opacity: 0.35;
  animation: jrIntroMistA 14s ease-in-out 0.5s infinite alternate;
}

.jr-intro-core {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 28px 20px;
  max-width: min(94vw, 560px);
}

.jr-intro-mark-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(20px) scale(0.86);
  animation: jrIntroMarkIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
.jr-intro-mark-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(180, 240, 210, 0.35) 45%, transparent 70%);
  animation: jrIntroHalo 2.4s ease-in-out infinite;
}
.jr-intro-mark {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow:
    0 22px 48px rgba(8, 48, 32, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.jr-intro-word {
  display: flex;
  gap: 0.02em;
  margin: 0;
  font-family: "Literata", "Be Vietnam Pro", Georgia, serif;
  font-size: clamp(48px, 10vw, 78px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--intro-ink);
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.55);
}
.jr-intro-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotate(-4deg);
  animation: jrIntroLetter 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.jr-intro-word span:nth-child(1) { animation-delay: 0.22s; }
.jr-intro-word span:nth-child(2) { animation-delay: 0.28s; }
.jr-intro-word span:nth-child(3) { animation-delay: 0.34s; }
.jr-intro-word span:nth-child(4) { animation-delay: 0.4s; }
.jr-intro-word span:nth-child(5) { animation-delay: 0.46s; }
.jr-intro-word span:nth-child(6) { animation-delay: 0.52s; }
.jr-intro-word span:nth-child(7) { animation-delay: 0.58s; }

.jr-intro-sub {
  margin: 2px 0 0;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: clamp(11px, 2.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--intro-ink-soft);
  opacity: 0;
  animation: jrIntroFadeUp 0.7s ease 0.7s forwards;
}

.jr-intro-line {
  position: relative;
  width: min(220px, 48vw);
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(11, 42, 28, 0.12);
  overflow: hidden;
  opacity: 0;
  animation: jrIntroFadeUp 0.6s ease 0.85s forwards;
}
.jr-intro-line > i {
  display: block;
  height: 100%;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--intro-accent), #1aa88a, #7fd4b0, transparent);
  animation: jrIntroPulse 1.35s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.jr-intro-status {
  margin: 8px 0 0;
  padding: 8px 16px;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--intro-ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(12, 48, 32, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: jrIntroFadeUp 0.7s ease 0.95s forwards;
}

#jrHomeIntro.is-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(14px) brightness(1.08);
  transform: scale(1.045);
}

body.jr-home-introing .nav-wrap {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
body.jr-home-intro-done .nav-wrap {
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

html[data-theme="dark"] #jrHomeIntro {
  --intro-ink: #eefaf3;
  --intro-ink-soft: rgba(220, 245, 232, 0.72);
  --intro-accent: #6fd4b0;
  background: linear-gradient(168deg, #0c2230 0%, #164044 50%, #1a4a42 100%);
}
html[data-theme="dark"] #jrHomeIntro::before {
  filter: blur(12px) saturate(0.95) brightness(0.62);
  opacity: 0.7;
}
html[data-theme="dark"] .jr-intro-status {
  background: rgba(8, 28, 32, 0.62);
  border-color: rgba(160, 230, 200, 0.22);
  color: #e8fff4;
}

@keyframes jrIntroMarkIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jrIntroLetter {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes jrIntroFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes jrIntroPulse {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(260%); }
}
@keyframes jrIntroSweep {
  0% { transform: rotate(18deg) translateX(-140%); }
  55%, 100% { transform: rotate(18deg) translateX(320%); }
}
@keyframes jrIntroHalo {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes jrIntroMistA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5%, -4%, 0) scale(1.07); }
}
@keyframes jrIntroMistB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 3%, 0) scale(1.09); }
}
@keyframes jrIntroStillDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1%, 0.6%, 0); }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  #jrHomeIntro::before { filter: blur(8px) saturate(1.15) brightness(1.1); animation: none; }
  .jr-intro-beams { display: none; }
  .jr-intro-mist span:nth-child(3) { display: none; }
  .jr-intro-mark-wrap,
  .jr-intro-mark { width: 76px; height: 76px; }
  .jr-intro-mark-wrap::before { inset: -10px; border-radius: 28px; }
  .jr-intro-word { font-size: clamp(40px, 11vw, 56px); }
}

@media (prefers-reduced-motion: reduce) {
  #jrHomeIntro::before,
  .jr-intro-mist span,
  .jr-intro-beams span,
  .jr-intro-line > i,
  .jr-intro-mark-wrap::before {
    animation: none !important;
  }
  .jr-intro-mark-wrap,
  .jr-intro-word span,
  .jr-intro-sub,
  .jr-intro-line,
  .jr-intro-status {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #jrHomeIntro.is-exit {
    transition-duration: 0.22s;
    filter: none;
    transform: none;
  }
}
