/**
 * Homepage enhancements — PSU Concerns
 * Linked from index.html only.
 */

/* ---- Typography: align with login portals ---- */
body.psu-home {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* ---- Sticky header polish ---- */
.psu-home-header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.psu-home-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(50, 20, 35, 0.08);
}

/* ---- Top nav: hamburger "Portals" + dropdown (md+) — split CTA style ---- */
.psu-portal-burger {
  --psu-burger-ink: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.5rem 0.25rem 0.3rem;
  min-height: 2.6rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 2px 10px rgba(50, 20, 35, 0.07), 0 0 0 1px rgba(128, 0, 0, 0.04);
  color: var(--psu-burger-ink);
  font-family: inherit;
  line-height: 1.1;
  transition: box-shadow 0.22s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.psu-portal-burger:hover {
  border-color: rgba(128, 0, 0, 0.18);
  box-shadow: 0 1px 0 #fff inset, 0 4px 18px rgba(50, 20, 35, 0.1), 0 0 0 1px rgba(128, 0, 0, 0.06);
  transform: translateY(-1px);
}
.psu-portal-burger:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(50, 20, 35, 0.08);
}
.psu-portal-burger[aria-expanded="true"] {
  border-color: rgba(128, 0, 0, 0.3);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.1), 0 6px 20px rgba(80, 20, 40, 0.1);
  color: #800000;
}
.psu-portal-burger:focus-visible {
  outline: 2px solid #800000;
  outline-offset: 3px;
}
.psu-portal-burger__ico {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  background: linear-gradient(160deg, #9a1f45 0%, #6e1428 48%, #4a0f2a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 10px rgba(60, 12, 30, 0.35);
}
.psu-portal-burger__lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.05rem;
  height: 0.7rem;
}
.psu-portal-burger__lines > span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, width 0.2s ease;
}
.psu-portal-burger__lines > span:nth-child(2) {
  width: 70%;
  align-self: center;
  opacity: 0.95;
}
.psu-portal-burger[aria-expanded="true"] .psu-portal-burger__lines > span {
  width: 100% !important;
  align-self: stretch;
  box-shadow: none;
}
.psu-portal-burger[aria-expanded="true"] .psu-portal-burger__lines > span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.psu-portal-burger[aria-expanded="true"] .psu-portal-burger__lines > span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  width: 0;
}
.psu-portal-burger[aria-expanded="true"] .psu-portal-burger__lines > span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}
.psu-portal-burger__text {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  padding: 0 0.1rem 0 0.05rem;
}
@media (min-width: 640px) {
  .psu-portal-burger__text {
    display: flex;
  }
}
.psu-portal-burger__eyebrow {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .psu-portal-burger__eyebrow {
    display: block;
  }
}
@media (max-width: 1023.98px) {
  .psu-portal-burger__eyebrow {
    display: none;
  }
}
.psu-portal-burger[aria-expanded="true"] .psu-portal-burger__eyebrow {
  color: #b07a7a;
}
.psu-portal-burger__title {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-top: 0.05rem;
}
.psu-portal-burger[aria-expanded="true"] .psu-portal-burger__title {
  color: #800000;
}
.psu-portal-burger__chev {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.05rem;
  color: #6b7280;
  transition: color 0.2s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.psu-portal-burger[aria-expanded="true"] .psu-portal-burger__chev {
  color: #800000;
  transform: rotate(180deg);
}
.psu-portal-burger:hover .psu-portal-burger__chev,
.psu-portal-burger[aria-expanded="true"]:hover .psu-portal-burger__chev {
  color: #800000;
}
.psu-portal-burger__chev-svg {
  display: block;
}

.psu-portal-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 60;
  min-width: 13.5rem;
  padding: 0.75rem 0.75rem 0.85rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(120, 60, 80, 0.14);
  box-shadow: 0 12px 40px rgba(25, 10, 20, 0.14);
}
.psu-portal-dropdown__hint {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #6b7280;
  margin: 0 0.25rem 0.65rem;
  padding: 0 0.1rem;
}
.psu-portal-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.psu-portal-dropdown__link {
  width: 100% !important;
  justify-content: center !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  font-size: 0.8125rem !important;
}

/* Legacy: pill group (still used in mobile menu + portal dropdown) */
.psu-portal-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem 0.2rem 0.45rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #fff 0%, #faf5f6 100%);
  border: 1px solid rgba(120, 60, 80, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 8px rgba(50, 20, 30, 0.06);
}

.psu-portal-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border-radius: 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

@media (min-width: 1024px) {
  .psu-portal-nav__btn {
    font-size: 0.8rem;
    padding: 0 0.75rem;
  }
}

@media (min-width: 1200px) {
  .psu-portal-nav__btn {
    font-size: 0.8125rem;
    padding: 0 0.9rem;
  }
}

.psu-portal-nav__btn:hover {
  transform: none;
}
.psu-portal-nav__btn:active {
  transform: scale(0.99);
}
.psu-portal-nav__btn:focus-visible {
  outline: 2px solid #800000;
  outline-offset: 2px;
}

.psu-portal-nav__btn--student {
  color: #6e1428;
  background: #fff;
  border-color: #c9aeb8;
}
.psu-portal-nav__btn--admin {
  color: #8a5a0a;
  background: #fff;
  border-color: #e5c584;
}
.psu-portal-nav__btn--super {
  color: #2e335f;
  background: #fff;
  border-color: #bac4e8;
}

.psu-portal-nav__btn--student:hover {
  background: #fbf5f7;
  border-color: #ba97a5;
}
.psu-portal-nav__btn--admin:hover {
  background: #fff8eb;
  border-color: #d9ae5f;
}
.psu-portal-nav__btn--super:hover {
  background: #f6f8ff;
  border-color: #97a7dc;
}

/* ---- Feature cards: role CTA buttons (minimal) ---- */
.psu-role-card-btn {
  border: 1px solid transparent;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.psu-role-card-btn--student {
  color: #6e1428;
  border-color: #c9aeb8;
}

.psu-role-card-btn--student:hover {
  background: #fbf5f7;
  border-color: #ba97a5;
}

.psu-role-card-btn--admin {
  color: #8a5a0a;
  border-color: #e5c584;
}

.psu-role-card-btn--admin:hover {
  background: #fff8eb;
  border-color: #d9ae5f;
}

.psu-role-card-btn--super {
  color: #2e335f;
  border-color: #bac4e8;
}

.psu-role-card-btn--super:hover {
  background: #f6f8ff;
  border-color: #97a7dc;
}

.psu-role-card-btn:focus-visible {
  outline: 2px solid #800000;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .psu-portal-burger {
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .psu-portal-burger,
  .psu-portal-burger:hover,
  .psu-portal-burger:active {
    transform: none;
  }
  .psu-portal-burger__lines > span,
  .psu-portal-burger__chev {
    transition: none;
  }
  .psu-portal-burger[aria-expanded="true"] .psu-portal-burger__lines > span:nth-child(1),
  .psu-portal-burger[aria-expanded="true"] .psu-portal-burger__lines > span:nth-child(3) {
    transform: none;
  }
  .psu-portal-burger[aria-expanded="true"] .psu-portal-burger__lines > span:nth-child(2) {
    opacity: 0;
  }
  .psu-portal-burger[aria-expanded="true"] .psu-portal-burger__chev {
    transform: rotate(180deg);
  }
  .psu-portal-nav__btn {
    transition: filter 0.2s ease;
  }
  .psu-portal-nav__btn:active {
    transform: none;
  }
}

/* ---- Hero: depth + motion (respects reduced motion) ---- */
.psu-home-hero {
  position: relative;
  min-height: min(92vh, 56rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.psu-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.psu-home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: psuHomeKenBurns 28s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .psu-home-hero__img {
    animation: none;
    transform: scale(1.02);
  }
}

@keyframes psuHomeKenBurns {
  0% {
    transform: scale(1.04) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-1.5%, -0.5%);
  }
}

/* Softer, richer overlays — photo stays more visible */
.psu-home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      195deg,
      rgba(25, 8, 18, 0.45) 0%,
      rgba(80, 15, 40, 0.42) 35%,
      rgba(20, 5, 14, 0.78) 100%
    ),
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(246, 174, 45, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(200, 80, 120, 0.12) 0%, transparent 50%);
}

.psu-home-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(255, 220, 160, 0.12) 0%,
    rgba(255, 255, 255, 0) 45%
  );
  animation: psuHomeGlowPulse 8s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .psu-home-hero__glow {
    animation: none;
  }
}

@keyframes psuHomeGlowPulse {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Staggered entrance for hero text */
.psu-home-hero__enter {
  opacity: 0;
  transform: translateY(18px);
  animation: psuHomeEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.psu-home-hero__enter--1 {
  animation-delay: 0.08s;
}
.psu-home-hero__enter--2 {
  animation-delay: 0.2s;
}
.psu-home-hero__enter--3 {
  animation-delay: 0.32s;
}
.psu-home-hero__enter--4 {
  animation-delay: 0.44s;
}
.psu-home-hero__enter--5 {
  animation-delay: 0.52s;
}

@media (prefers-reduced-motion: reduce) {
  .psu-home-hero__enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

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

/* Primary CTAs */
.psu-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.psu-home-btn--light {
  background: #fff;
  color: #800000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.psu-home-btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  filter: brightness(1.02);
}

.psu-home-btn--gold {
  background: #f6ae2d;
  color: #1a1a1a;
  box-shadow: 0 4px 18px rgba(200, 140, 30, 0.35);
}
.psu-home-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 140, 30, 0.45);
  filter: brightness(1.04);
}

.psu-home-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .psu-home-btn--light:hover,
  .psu-home-btn--gold:hover {
    transform: none;
  }
}

/* Scroll hint */
.psu-home-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  animation: psuHomeScrollBounce 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .psu-home-scroll {
    animation: none;
  }
}

@keyframes psuHomeScrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ---- Stats strip: glass cards ---- */
.psu-home-stats {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #6e1638 0%, #5a1230 50%, #4a0f28 100%);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.psu-home-stats.psu-home-stats-js:not(.psu-home-stats--play) .psu-stat-card {
  opacity: 0;
  transition: none;
}

.psu-home-stats--play .psu-stat-card:nth-child(1) {
  animation: psuStatFadeRight 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.12s;
}

.psu-home-stats--play .psu-stat-card:nth-child(2) {
  animation: psuStatFadeDown 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.24s;
}

.psu-home-stats--play .psu-stat-card:nth-child(3) {
  animation: psuStatFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.36s;
}

.psu-home-stats--play .psu-stat-card:nth-child(4) {
  animation: psuStatFadeLeft 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.48s;
}

.psu-home-stats--play .psu-stat-card {
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

@keyframes psuStatFadeRight {
  from {
    opacity: 0;
    transform: translateX(-56px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes psuStatFadeDown {
  from {
    opacity: 0;
    transform: translateY(-48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes psuStatFadeUp {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes psuStatFadeLeft {
  from {
    opacity: 0;
    transform: translateX(56px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .psu-home-stats .psu-stat-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.psu-stat-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.1rem 0.5rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  will-change: transform, opacity;
}

@media (min-width: 640px) {
  .psu-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .psu-stat-card:hover {
    transform: none;
  }
}

.psu-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(246, 174, 45, 0.15);
  color: #ffd788;
  border: 1px solid rgba(246, 174, 45, 0.35);
}

.psu-stat-value {
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 800;
  color: #f6ae2d;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .psu-stat-value {
    font-size: 2.1rem;
  }
}

.psu-stat-label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Badge in hero */
.psu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(246, 174, 45, 0.45);
  background: linear-gradient(135deg, rgba(246, 174, 45, 0.2), rgba(255, 200, 120, 0.12));
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffe5b0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
}

/* Headline: subtle text shadow for readability */
.psu-hero-title {
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

/* Section cards elsewhere: light hover lift (optional utility) */
.psu-section-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.psu-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(18, 18, 18, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .psu-section-card:hover {
    transform: none;
  }
}

/* ---- Features (#features) ---- */
.psu-features-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8f5f5f;
  background: rgba(128, 0, 0, 0.06);
  border: 1px solid rgba(128, 0, 0, 0.09);
}

.psu-features-rule {
  display: block;
  height: 0.2rem;
  width: min(100%, 4.75rem);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #800000, #cfa24a, transparent);
}

/* Scroll entrance (.psu-features-js + .psu-features-in-view) */
@media (prefers-reduced-motion: no-preference) {
  #features.psu-features-js:not(.psu-features-in-view) .psu-features-intro__motion {
    visibility: hidden;
    transform: translate3d(-7rem, 0, 0);
  }

  #features.psu-features-in-view .psu-features-intro__motion {
    visibility: visible;
    animation: psuFeaturesSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform;
  }

  #features.psu-features-js:not(.psu-features-in-view) .psu-features-card {
    opacity: 0;
    transform: translate3d(0, 1.85rem, 0);
    transition: none;
  }

  #features.psu-features-in-view .psu-features-card {
    animation: psuCatFadeUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  #features.psu-features-in-view .psu-features-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  #features.psu-features-in-view .psu-features-card:nth-child(2) {
    animation-delay: 0.26s;
  }

  #features.psu-features-in-view .psu-features-card:nth-child(3) {
    animation-delay: 0.42s;
  }
}

@keyframes psuFeaturesSlideRight {
  0% {
    transform: translate3d(-7rem, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #features .psu-features-intro__motion,
  #features .psu-features-card,
  #features .psu-features-card__motion {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Final CTA + Footer polish ---- */
.psu-home-final-cta {
  background: linear-gradient(135deg, #8b1046 0%, #7a0d3d 52%, #5f0d33 100%);
}

.psu-final-cta__card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(24, 7, 18, 0.16);
}

.psu-final-cta__kicker {
  color: rgba(255, 230, 236, 0.9);
}

.psu-final-cta__badges {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

.psu-final-cta__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.22rem 0.62rem;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.psu-final-cta__btn {
  display: inline-flex;
  min-height: 2.45rem;
  min-width: 10.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.psu-final-cta__btn--primary {
  background: #fff;
  border: 1px solid #fff;
  color: #800000;
}

.psu-final-cta__btn--primary:hover {
  filter: brightness(0.98);
  transform: none;
}

.psu-final-cta__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.psu-home-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 15% 10%, rgba(139, 16, 70, 0.2) 0%, transparent 36%), linear-gradient(145deg, #1a0f14 0%, #150b12 55%, #0f070d 100%);
}

.psu-home-footer a {
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .psu-final-cta__btn:hover {
    transform: none;
  }
}

/* ---- How it works: scroll entrance (needs .psu-how-js + .psu-how-in-view; see inline script) ---- */
@media (prefers-reduced-motion: no-preference) {
  #how-it-works.psu-how-js:not(.psu-how-in-view) .psu-how-intro__motion {
    visibility: hidden;
    transform: translate3d(-7rem, 0, 0);
  }

  #how-it-works.psu-how-in-view .psu-how-intro__motion {
    visibility: visible;
    animation: psuFeaturesSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform;
  }

  #how-it-works.psu-how-js:not(.psu-how-in-view) .psu-how-step {
    opacity: 0;
    transform: translate3d(0, 1.85rem, 0);
  }

  #how-it-works.psu-how-js:not(.psu-how-in-view) .psu-how-step > div:first-child {
    transform: scale(0.9);
  }

  #how-it-works.psu-how-js:not(.psu-how-in-view) .psu-how-cta {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }

  #how-it-works.psu-how-js:not(.psu-how-in-view) .psu-how-steps__rail {
    opacity: 0;
    transform: scaleX(0.15);
  }
}

#how-it-works .psu-how-step {
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

#how-it-works .psu-how-step > div:first-child {
  transition: transform 0.52s cubic-bezier(0.34, 1.3, 0.54, 1);
}

#how-it-works .psu-how-steps__rail {
  transition: opacity 0.45s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

#how-it-works .psu-how-cta {
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  #how-it-works.psu-how-in-view .psu-how-steps__rail {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0.12s;
  }

  /* Grid child 2–4 == three steps (after the connector rail div) */
  #how-it-works.psu-how-in-view .psu-how-steps article.psu-how-step:nth-child(2) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.1s;
  }

  #how-it-works.psu-how-in-view .psu-how-steps article.psu-how-step:nth-child(3) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.26s;
  }

  #how-it-works.psu-how-in-view .psu-how-steps article.psu-how-step:nth-child(4) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.42s;
  }

  #how-it-works.psu-how-in-view .psu-how-steps article.psu-how-step:nth-child(2) > div:first-child {
    transform: scale(1);
    transition-delay: 0.2s;
  }

  #how-it-works.psu-how-in-view .psu-how-steps article.psu-how-step:nth-child(3) > div:first-child {
    transform: scale(1);
    transition-delay: 0.36s;
  }

  #how-it-works.psu-how-in-view .psu-how-steps article.psu-how-step:nth-child(4) > div:first-child {
    transform: scale(1);
    transition-delay: 0.52s;
  }

  #how-it-works.psu-how-in-view .psu-how-cta {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.52s;
  }
}

@media (prefers-reduced-motion: reduce) {
  #how-it-works .psu-how-intro__motion,
  #how-it-works .psu-how-step,
  #how-it-works .psu-how-cta,
  #how-it-works .psu-how-steps__rail,
  #how-it-works .psu-how-step > div:first-child {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Categories: scroll entrance (mirror #how-it-works) ---- */
@keyframes psuCatFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 1.85rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes psuCatDotPop {
  from {
    transform: scale(0.75);
  }
  to {
    transform: scale(1);
  }
}

#categories .psu-categories-tag {
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
}

#categories .psu-categories-marquee {
  width: 100%;
  max-width: 100%;
}

#categories .psu-categories-marquee__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

#categories .psu-categories-marquee__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: max-content !important;
  min-width: max-content;
  will-change: transform;
}

#categories .psu-categories-marquee__group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
  width: max-content !important;
  min-width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  #categories.psu-categories-js:not(.psu-categories-in-view) .psu-categories-intro__motion {
    visibility: hidden;
    transform: translate3d(-7rem, 0, 0);
  }

  #categories.psu-categories-in-view .psu-categories-intro__motion {
    visibility: visible;
    animation: psuFeaturesSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform;
  }

  /* Keep sliding continuously once the page loads (not only after scroll). */
  #categories .psu-categories-marquee__track {
    animation: psuCatMarqueeLtr 26s linear infinite;
  }

  #categories .psu-categories-marquee:hover .psu-categories-marquee__track {
    animation-play-state: paused;
  }
}

@keyframes psuCatMarqueeLtr {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #categories .psu-categories-intro__motion,
  #categories .psu-categories-tag,
  #categories .psu-categories-tag__chip,
  #categories .psu-categories-tag__dot,
  #categories .psu-categories-marquee__track {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  #categories .psu-categories-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }

  #categories .psu-categories-marquee__track {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
    flex-wrap: wrap !important;
    row-gap: 0.75rem;
  }

  #categories .psu-categories-marquee__group[aria-hidden="true"] {
    display: none !important;
  }

  #categories .psu-categories-marquee__group {
    flex-wrap: wrap !important;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    padding-right: 0;
  }
}

/* ---- FAQ: scroll entrance (mirror #categories) ---- */
@media (prefers-reduced-motion: no-preference) {
  #faq.psu-faq-js:not(.psu-faq-in-view) .psu-faq-intro__motion {
    visibility: hidden;
    transform: translate3d(-7rem, 0, 0);
  }

  #faq.psu-faq-in-view .psu-faq-intro__motion {
    visibility: visible;
    animation: psuFeaturesSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform;
  }

  #faq.psu-faq-js:not(.psu-faq-in-view) .psu-faq-item {
    opacity: 0;
    transform: translate3d(0, 1.85rem, 0);
  }

  #faq.psu-faq-in-view .psu-faq-item {
    animation: psuCatFadeUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #faq.psu-faq-in-view .psu-faq-item:nth-child(1) {
    animation-delay: 0.12s;
  }

  #faq.psu-faq-in-view .psu-faq-item:nth-child(2) {
    animation-delay: 0.22s;
  }

  #faq.psu-faq-in-view .psu-faq-item:nth-child(3) {
    animation-delay: 0.32s;
  }

  #faq.psu-faq-in-view .psu-faq-item:nth-child(4) {
    animation-delay: 0.42s;
  }
}

@media (prefers-reduced-motion: reduce) {
  #faq .psu-faq-intro__motion,
  #faq .psu-faq-item {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Student stories: scroll entrance (mirror #faq) ---- */
@media (prefers-reduced-motion: no-preference) {
  #student-stories.psu-stories-js:not(.psu-stories-in-view) .psu-stories-intro__motion {
    visibility: hidden;
    transform: translate3d(-7rem, 0, 0);
  }

  #student-stories.psu-stories-in-view .psu-stories-intro__motion {
    visibility: visible;
    animation: psuFeaturesSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform;
  }

  #student-stories.psu-stories-js:not(.psu-stories-in-view) .psu-stories-card {
    opacity: 0;
    transform: translate3d(0, 1.85rem, 0);
  }

  #student-stories.psu-stories-in-view .psu-stories-card {
    animation: psuCatFadeUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #student-stories.psu-stories-in-view .psu-stories-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  #student-stories.psu-stories-in-view .psu-stories-card:nth-child(2) {
    animation-delay: 0.26s;
  }

  #student-stories.psu-stories-in-view .psu-stories-card:nth-child(3) {
    animation-delay: 0.42s;
  }
}

@media (prefers-reduced-motion: reduce) {
  #student-stories .psu-stories-intro__motion,
  #student-stories .psu-stories-card {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
