/**
 * Homepage UI/UX layer — PSU Concerns (index.html only).
 * Loaded after homepage.css. Hover lifts and tilts use the individual `translate` / `rotate`
 * properties because the scroll-reveal animations hold `transform` with fill-mode both.
 */

:root {
  --psu-maroon: #800000;
  --psu-maroon-deep: #5f0d33;
  --psu-gold: #f6ae2d;
  --psu-gold-soft: #ffd27a;
  --psu-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --psu-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

::selection {
  background: rgba(128, 0, 0, 0.85);
  color: #fff;
}

html {
  scroll-padding-top: 5.25rem;
}

/* ---- Skip link ---- */
.psu-skip {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background: var(--psu-maroon);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-250%);
  transition: transform 0.25s var(--psu-ease-out);
}
.psu-skip:focus {
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(80, 10, 30, 0.3);
  outline: 2px solid var(--psu-gold);
  outline-offset: 2px;
}

/* ---- Scroll progress (bottom edge of sticky header) ---- */
.psu-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
  overflow: hidden;
}
.psu-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--psu-maroon), #b0244f 55%, var(--psu-gold));
  box-shadow: 0 0 12px rgba(246, 174, 45, 0.55);
}

/* ---- Header: solid maroon bar ---- */
#siteHeader {
  background: linear-gradient(180deg, #8a0a12 0%, var(--psu-maroon) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#siteHeader.is-scrolled {
  box-shadow: 0 10px 30px rgba(40, 4, 12, 0.35);
}
#siteHeader > nav > a .text-heading {
  color: #fff;
}
#siteHeader > nav > a .text-gray-500 {
  color: rgba(255, 228, 200, 0.75);
}
#siteHeader > nav > a:focus {
  --tw-ring-color: var(--psu-gold);
}
#siteHeader .psu-nav-link {
  color: rgba(255, 255, 255, 0.82);
}
#siteHeader .psu-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
#siteHeader .psu-nav-link.is-active {
  color: #fff;
}
#siteHeader .psu-nav-link:focus-visible {
  outline-color: var(--psu-gold);
}
#siteHeader nav span.bg-gray-200 {
  background: rgba(255, 255, 255, 0.22);
}
#siteHeader #menuButton {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}
#siteHeader #menuButton:hover {
  background: rgba(255, 255, 255, 0.18);
}
#siteHeader #mobileMenu {
  background: var(--psu-maroon);
  border-top-color: rgba(255, 255, 255, 0.12);
}
#siteHeader .psu-mnav-link {
  color: rgba(255, 255, 255, 0.88);
}
#siteHeader .psu-mnav-link:hover,
#siteHeader .psu-mnav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
#siteHeader .psu-mnav-link:focus-visible {
  outline-color: var(--psu-gold);
}
#siteHeader .psu-progress__bar {
  background: linear-gradient(90deg, #ffe0a3, var(--psu-gold));
}

/* ---- Desktop nav: animated underline + scroll-spy state ---- */
.psu-nav-link {
  position: relative;
}
.psu-nav-link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffe0a3, var(--psu-gold));
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.3s var(--psu-ease-out);
}
.psu-nav-link:hover::after,
.psu-nav-link.is-active::after {
  transform: scaleX(1);
}
.psu-nav-link.is-active {
  color: var(--psu-maroon);
  font-weight: 600;
}
.psu-nav-link:focus-visible,
.psu-mnav-link:focus-visible {
  outline: 2px solid var(--psu-maroon);
  outline-offset: 2px;
}
.psu-mnav-link.is-active {
  background: #f9f0f2;
  color: var(--psu-maroon);
  font-weight: 600;
}

/* ---- Mobile menu: slide down instead of popping in ---- */
#mobileMenu:not(.hidden) {
  animation: psuMenuDrop 0.32s var(--psu-ease-out) both;
}
#mobileMenu:not(.hidden) a {
  animation: psuMenuItem 0.4s var(--psu-ease-out) both;
}
#mobileMenu:not(.hidden) a:nth-child(1) { animation-delay: 0.03s; }
#mobileMenu:not(.hidden) a:nth-child(2) { animation-delay: 0.06s; }
#mobileMenu:not(.hidden) a:nth-child(3) { animation-delay: 0.09s; }
#mobileMenu:not(.hidden) a:nth-child(4) { animation-delay: 0.12s; }
#mobileMenu:not(.hidden) a:nth-child(5) { animation-delay: 0.15s; }

@keyframes psuMenuDrop {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: none; }
}
@keyframes psuMenuItem {
  from { opacity: 0; transform: translateX(-0.6rem); }
  to { opacity: 1; transform: none; }
}

/* ---- Hero: animated accent, cursor spotlight, floating sparks ---- */
.psu-hero-accent {
  background: linear-gradient(100deg, var(--psu-gold) 0%, var(--psu-gold-soft) 30%, #fff1cf 45%, var(--psu-gold) 60%, #f39c12 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: psuAccentFlow 7s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 4px 22px rgba(246, 174, 45, 0.35));
}
@keyframes psuAccentFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.psu-hero-spot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 40%), rgba(255, 214, 150, 0.16), transparent 60%);
}
.psu-home-hero.is-lit .psu-hero-spot {
  opacity: 1;
}

.psu-hero-sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.psu-hero-sparks span {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.95), rgba(246, 174, 45, 0) 70%);
  opacity: 0;
  animation: psuSpark 14s linear infinite;
}
.psu-hero-sparks span:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 15s; }
.psu-hero-sparks span:nth-child(2) { left: 19%; animation-delay: 3s; width: 4px; height: 4px; }
.psu-hero-sparks span:nth-child(3) { left: 31%; animation-delay: 7s; animation-duration: 17s; }
.psu-hero-sparks span:nth-child(4) { left: 44%; animation-delay: 1.5s; width: 8px; height: 8px; }
.psu-hero-sparks span:nth-child(5) { left: 57%; animation-delay: 9s; width: 4px; height: 4px; }
.psu-hero-sparks span:nth-child(6) { left: 66%; animation-delay: 4.5s; animation-duration: 16s; }
.psu-hero-sparks span:nth-child(7) { left: 78%; animation-delay: 11s; width: 5px; height: 5px; }
.psu-hero-sparks span:nth-child(8) { left: 90%; animation-delay: 6s; animation-duration: 13s; }

@keyframes psuSpark {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  10% { opacity: 0.9; }
  60% { opacity: 0.55; }
  100% { transform: translate3d(28px, -78vh, 0) scale(1.15); opacity: 0; }
}

/* ---- Stats strip: let the hero photo run behind the cards ---- */
.psu-home-stats {
  background: linear-gradient(180deg, rgba(40, 8, 22, 0) 0%, rgba(40, 8, 22, 0.35) 28%, rgba(28, 6, 17, 0.62) 100%);
  border-top: 0;
  box-shadow: none;
}
.psu-home-stats .psu-stat-card {
  background: rgba(30, 6, 16, 0.32);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(10, 2, 6, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) {
  .psu-home-stats .psu-stat-card:hover {
    background: rgba(30, 6, 16, 0.45);
    border-color: rgba(246, 174, 45, 0.4);
  }
}

/* ---- Hero CTAs ---- */
.psu-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.psu-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, translate 0.35s var(--psu-ease-out);
  -webkit-tap-highlight-color: transparent;
}
.psu-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.psu-cta__arrow {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.3s var(--psu-ease-out);
}
.psu-cta:hover .psu-cta__arrow {
  transform: translateX(4px);
}

.psu-cta--gold {
  color: #2a1406;
  background: linear-gradient(135deg, #ffc65a 0%, var(--psu-gold) 45%, #e8940f 100%);
  box-shadow: 0 10px 30px rgba(246, 174, 45, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.psu-cta--gold:hover {
  box-shadow: 0 16px 40px rgba(246, 174, 45, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.psu-cta--gold::after,
.psu-cta--maroon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: psuShine 4.8s ease-in-out infinite;
}
@keyframes psuShine {
  0%, 62% { left: -60%; }
  100% { left: 130%; }
}

.psu-cta--glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.psu-cta--glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

.psu-cta--maroon {
  color: #fff;
  background: linear-gradient(135deg, #9b1030 0%, var(--psu-maroon) 55%, var(--psu-maroon-deep) 100%);
  box-shadow: 0 12px 28px rgba(128, 0, 0, 0.28);
}
.psu-cta--maroon:hover {
  box-shadow: 0 18px 38px rgba(128, 0, 0, 0.36);
}
.psu-cta--maroon:focus-visible {
  outline-color: var(--psu-maroon);
}

.psu-cta--white {
  color: var(--psu-maroon);
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 4, 12, 0.25);
}
.psu-cta--white:hover {
  box-shadow: 0 16px 36px rgba(20, 4, 12, 0.32);
}

.psu-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}
.psu-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.psu-hero-trust svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--psu-gold);
}

/* ---- Cards: cursor spotlight + 3D tilt ---- */
.psu-features-grid,
.psu-stories-grid {
  perspective: 1100px;
}

[data-psu-spot] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
[data-psu-spot]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(128, 0, 0, 0.08), rgba(246, 174, 45, 0.06) 40%, transparent 70%);
}
[data-psu-spot]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(128, 0, 0, 0.55), rgba(246, 174, 45, 0.45) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
[data-psu-spot]:hover::before,
[data-psu-spot]:hover::after {
  opacity: 1;
}
[data-psu-spot] > * {
  position: relative;
  z-index: 1;
}

[data-psu-tilt] {
  transition: rotate 0.45s var(--psu-ease-out), translate 0.45s var(--psu-ease-out), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
[data-psu-tilt]:hover {
  translate: 0 -6px;
  box-shadow: 0 26px 50px rgba(60, 12, 28, 0.13);
}
[data-psu-tilt].is-tilting {
  transition: rotate 0.12s linear, translate 0.45s var(--psu-ease-out), box-shadow 0.35s ease;
}

.psu-features-card .psu-features-card__motion > div:first-child {
  transition: transform 0.45s var(--psu-ease-spring), background-color 0.3s ease, color 0.3s ease;
}
.psu-features-card:hover .psu-features-card__motion > div:first-child {
  transform: translateY(-3px) rotate(-6deg) scale(1.08);
  background-color: var(--psu-maroon);
  color: #fff;
}

/* ---- How it works: real CTA + icon pulse ---- */
.psu-how-step > div:first-child {
  transition: transform 0.4s var(--psu-ease-spring), box-shadow 0.3s ease;
}
.psu-how-step:hover > div:first-child {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 0 6px rgba(128, 0, 0, 0.08), 0 14px 28px rgba(80, 10, 30, 0.16);
}

/* ---- FAQ: indicator, open state, smooth height (JS) ---- */
.psu-faq-item {
  transition: border-color 0.25s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}
.psu-faq-item:hover {
  border-color: rgba(128, 0, 0, 0.25);
}
.psu-faq-item[open] {
  border-color: rgba(128, 0, 0, 0.28);
  background: linear-gradient(180deg, #fffafa, #fff);
  box-shadow: 0 14px 34px rgba(80, 10, 30, 0.08);
}
.psu-faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.6rem;
}
.psu-faq-item > summary::-webkit-details-marker {
  display: none;
}
.psu-faq-item > summary:focus-visible {
  outline: 2px solid var(--psu-maroon);
  outline-offset: 6px;
}
.psu-faq-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(128, 0, 0, 0.07);
  color: var(--psu-maroon);
  transition: transform 0.4s var(--psu-ease-spring), background-color 0.3s ease, color 0.3s ease;
}
.psu-faq-icon::before,
.psu-faq-icon::after {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.psu-faq-icon::after {
  transform: rotate(90deg);
  transition: transform 0.35s var(--psu-ease-out);
}
.psu-faq-item[open] .psu-faq-icon {
  background: var(--psu-maroon);
  color: #fff;
  transform: rotate(180deg);
}
.psu-faq-item[open] .psu-faq-icon::after {
  transform: rotate(0deg);
}
.psu-faq-item:hover .psu-faq-icon {
  background: rgba(128, 0, 0, 0.13);
}
.psu-faq-item[open]:hover .psu-faq-icon {
  background: var(--psu-maroon);
}

.psu-faq-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: #6b5d62;
}
.psu-faq-help a {
  font-weight: 600;
  color: var(--psu-maroon);
  text-decoration: underline;
  text-decoration-color: rgba(246, 174, 45, 0.8);
  text-underline-offset: 3px;
}

/* ---- Final CTA: drifting orbs + buttons ---- */
.psu-home-final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.psu-cta-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.psu-cta-orb--a {
  width: 22rem;
  height: 22rem;
  top: -9rem;
  left: -6rem;
  background: rgba(246, 174, 45, 0.28);
  animation: psuOrbA 16s ease-in-out infinite alternate;
}
.psu-cta-orb--b {
  width: 26rem;
  height: 26rem;
  bottom: -13rem;
  right: -8rem;
  background: rgba(255, 120, 160, 0.22);
  animation: psuOrbB 19s ease-in-out infinite alternate;
}
@keyframes psuOrbA {
  to { transform: translate3d(12rem, 4rem, 0) scale(1.15); }
}
@keyframes psuOrbB {
  to { transform: translate3d(-14rem, -3rem, 0) scale(0.9); }
}

.psu-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---- Back to top with scroll-progress ring ---- */
.psu-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--psu-maroon);
  box-shadow: 0 12px 30px rgba(60, 12, 28, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.4s var(--psu-ease-spring), visibility 0s linear 0.3s, box-shadow 0.3s ease;
}
.psu-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.4s var(--psu-ease-spring), visibility 0s, box-shadow 0.3s ease;
}
.psu-to-top:hover {
  box-shadow: 0 16px 36px rgba(60, 12, 28, 0.28);
}
.psu-to-top:hover .psu-to-top__arrow {
  transform: translateY(-2px);
}
.psu-to-top:focus-visible {
  outline: 2px solid var(--psu-maroon);
  outline-offset: 3px;
}
.psu-to-top__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.psu-to-top__ring circle {
  fill: none;
  stroke-width: 3;
}
.psu-to-top__track {
  stroke: rgba(128, 0, 0, 0.1);
}
.psu-to-top__fill {
  stroke: url(#psuRingGradient);
  stroke-linecap: round;
  stroke-dasharray: 138.2;
  stroke-dashoffset: 138.2;
}
.psu-to-top__arrow {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.3s var(--psu-ease-out);
}

/* ---- Login Portal dropdown card ---- */
#siteHeader .psu-portal-burger[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(246, 174, 45, 0.55), 0 8px 24px rgba(30, 4, 10, 0.35);
  border-color: transparent;
}
.psu-portal-dropdown {
  top: calc(100% + 0.75rem);
  width: 19.5rem;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(128, 0, 0, 0.1);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 24px 60px -12px rgba(40, 6, 16, 0.45), 0 8px 20px -8px rgba(40, 6, 16, 0.25);
  transform-origin: calc(100% - 2.25rem) -0.5rem;
}
.psu-portal-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 2rem;
  width: 12px;
  height: 12px;
  background: #8a0a12;
  border-radius: 2px 0 0 0;
  rotate: 45deg;
}
.psu-portal-dropdown:not(.hidden) {
  animation: psu-pd-in 0.32s var(--psu-ease-out) both;
}
.psu-portal-dropdown:not(.hidden) .psu-pd__primary,
.psu-portal-dropdown:not(.hidden) .psu-pd__roles li,
.psu-portal-dropdown:not(.hidden) .psu-pd__foot {
  animation: psu-pd-item 0.4s var(--psu-ease-out) both;
}
.psu-portal-dropdown:not(.hidden) .psu-pd__primary { animation-delay: 0.06s; }
.psu-portal-dropdown:not(.hidden) .psu-pd__roles li:nth-child(1) { animation-delay: 0.12s; }
.psu-portal-dropdown:not(.hidden) .psu-pd__roles li:nth-child(2) { animation-delay: 0.16s; }
.psu-portal-dropdown:not(.hidden) .psu-pd__roles li:nth-child(3) { animation-delay: 0.2s; }
.psu-portal-dropdown:not(.hidden) .psu-pd__foot { animation-delay: 0.24s; }

@keyframes psu-pd-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes psu-pd-item {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.psu-pd__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem 1.1rem 0 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(246, 174, 45, 0.28) 0%, rgba(246, 174, 45, 0) 55%),
    linear-gradient(135deg, #8a0a12 0%, var(--psu-maroon) 55%, var(--psu-maroon-deep) 100%);
}
.psu-pd__head::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -2.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.psu-pd__badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  color: #3b0a0a;
  background: linear-gradient(145deg, #ffe0a3, var(--psu-gold));
  box-shadow: 0 6px 16px rgba(20, 2, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.psu-pd__badge svg {
  width: 1.3rem;
  height: 1.3rem;
}
.psu-pd__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.psu-pd__sub {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(255, 236, 214, 0.82);
}

.psu-pd__body {
  padding: 0.9rem 0.9rem 0.75rem;
}
.psu-pd__primary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem 0.7rem 0.7rem;
  border-radius: 0.9rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #9a1020 0%, var(--psu-maroon) 60%, var(--psu-maroon-deep) 100%);
  box-shadow: 0 10px 22px -10px rgba(128, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.25s ease, translate 0.25s var(--psu-ease-out);
}
.psu-pd__primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.7s var(--psu-ease-out);
  pointer-events: none;
}
.psu-pd__primary:hover {
  translate: 0 -2px;
  box-shadow: 0 16px 28px -12px rgba(128, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.psu-pd__primary:hover::after {
  translate: 120% 0;
}
.psu-pd__primary:focus-visible {
  outline: 3px solid var(--psu-gold);
  outline-offset: 2px;
}
.psu-pd__primary-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.psu-pd__primary-ico svg {
  width: 1.1rem;
  height: 1.1rem;
}
.psu-pd__primary-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.psu-pd__primary-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}
.psu-pd__primary-sub {
  font-size: 0.7rem;
  color: rgba(255, 228, 200, 0.8);
  line-height: 1.35;
}
.psu-pd__primary-arrow {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--psu-gold-soft);
  transition: translate 0.3s var(--psu-ease-spring);
}
.psu-pd__primary:hover .psu-pd__primary-arrow {
  translate: 4px 0;
}

.psu-pd__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.psu-pd__roles li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4b5563;
  background: #f8f4f5;
  border: 1px solid #efe4e7;
}
.psu-pd__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}
.psu-pd__dot--student { background: var(--psu-maroon); }
.psu-pd__dot--admin { background: var(--psu-gold); }
.psu-pd__dot--super { background: #4f5bb5; }

.psu-pd__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #f1e8ea;
  border-radius: 0 0 1.1rem 1.1rem;
  background: #fcf9fa;
}
.psu-pd__secure {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
}
.psu-pd__secure svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #15803d;
}
.psu-pd__help {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--psu-maroon);
  text-decoration: none;
  border-radius: 0.4rem;
  padding: 0.15rem 0.3rem;
  margin-right: -0.3rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.psu-pd__help:hover {
  background: rgba(128, 0, 0, 0.08);
}
.psu-pd__help:focus-visible {
  outline: 2px solid var(--psu-maroon);
  outline-offset: 1px;
}

/* ---- Footer links ---- */
.psu-home-footer ul a {
  display: inline-block;
  transition: color 0.2s ease, translate 0.25s var(--psu-ease-out);
}
.psu-home-footer ul a:hover {
  translate: 4px 0;
}

/* ---- Reduced motion: keep the layout, drop the movement ---- */
@media (prefers-reduced-motion: reduce) {
  .psu-hero-accent,
  .psu-hero-sparks span,
  .psu-cta--gold::after,
  .psu-cta--maroon::after,
  .psu-cta-orb,
  #mobileMenu:not(.hidden),
  #mobileMenu:not(.hidden) a,
  .psu-portal-dropdown:not(.hidden),
  .psu-portal-dropdown:not(.hidden) * {
    animation: none !important;
  }
  .psu-pd__primary:hover,
  .psu-pd__primary:hover .psu-pd__primary-arrow {
    translate: none;
  }
  .psu-hero-sparks,
  .psu-hero-spot {
    display: none;
  }
  [data-psu-tilt],
  [data-psu-tilt]:hover,
  .psu-home-footer ul a:hover {
    translate: none;
    rotate: none;
  }
  .psu-features-card:hover .psu-features-card__motion > div:first-child,
  .psu-how-step:hover > div:first-child {
    transform: none;
  }
}
