/* ===== PAGE OVERRIDES ===== */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}

.page-remembering-jim {
  background: #fff;
}

/* ===== BACK BUTTON ===== */
.back-home {
  position: fixed;
  top: 32px;
  left: 40px;
  z-index: 3000;
  color: #000;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.back-home:hover {
  opacity: 1;
  transform: translateX(-4px);
}

/* Dark burger lines for white background pages */
.burger__line--dark {
  background: #000 !important;
}

.burger.is-open .burger__line--dark {
  background: #000 !important;
}

/* ===== HERO ===== */
.jim-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  background: #fff;
}

.jim-hero__portrait-wrap {
  width: clamp(200px, 28vw, 340px);
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.2s cubic-bezier(0.33, 1, 0.68, 1) 0.2s forwards;
}

.jim-hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.jim-hero__text {
  text-align: center;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) 0.6s forwards;
}

.jim-hero__foundation-logo {
  width: clamp(260px, 36vw, 480px);
  height: auto;
}

.jim-hero__dates {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #888;
  margin-top: 20px;
  text-transform: uppercase;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ABOUT SECTION ===== */
.jim-about {
  padding: 120px 40px;
  background: #fff;
}

.jim-about__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.jim-about__block {
  position: relative;
}

.jim-about__block--fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.jim-about__block--fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.jim-about__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: #000;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.jim-about__block p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  line-height: 1.8;
  color: #333;
}

.jim-about__read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #0053A1;
  text-decoration: none;
  border: 1.5px solid #0053A1;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.jim-about__read-btn:hover {
  background: #0053A1;
  color: #fff;
  transform: translateY(-2px);
}

.jim-about__read-btn svg {
  transition: transform 0.3s ease;
}

.jim-about__read-btn:hover svg {
  transform: translateX(3px);
}

/* ===== MISSION / CTA SECTION ===== */
.jim-mission {
  padding: 120px 40px;
  background: #0053A1;
  position: relative;
}

.jim-mission__inner {
  max-width: 800px;
  margin: 0 auto;
}

.jim-mission__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.jim-mission__text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.jim-mission__text:last-of-type {
  margin-bottom: 48px;
}

.jim-mission__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.jim-mission__btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  background: #fff;
  color: #0053A1;
  border: 2px solid #fff;
}

.jim-mission__btn:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.jim-mission__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.jim-mission__btn--outline:hover {
  background: #fff;
  color: #0053A1;
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.jim-footer {
  padding: 60px 40px;
  background: #000;
  display: flex;
  justify-content: center;
}

.jim-footer__logo {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.jim-footer__logo:hover {
  opacity: 1;
}

.jim-footer__logo img {
  width: 120px;
  height: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .back-home {
    top: 24px;
    left: 24px;
  }

  .jim-hero {
    padding: 100px 24px 60px;
  }

  .jim-hero__portrait-wrap {
    width: clamp(180px, 55vw, 260px);
  }

  .jim-hero__text {
    margin-top: 36px;
  }

  .jim-about {
    padding: 80px 24px;
  }

  .jim-about__inner {
    gap: 60px;
  }

  .jim-mission {
    padding: 80px 24px;
  }

  .jim-mission__actions {
    flex-direction: column;
  }

  .jim-mission__btn {
    text-align: center;
  }

  .jim-footer {
    padding: 48px 24px;
  }
}
