/* ==========================================================
   UKWUANI LGA — STUDENTS' TRIBUTE STYLES
   Page: thank-you.html
   ========================================================== */

/* ---------- 1. READING PROGRESS BAR ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: var(--z-progress);
  background: rgba(255, 255, 255, 0.08);
}

.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-soft), #2ed573);
  box-shadow: 0 0 10px var(--brass-glow);
}

/* ---------- 2. TOPBAR & RETURN BUTTON ---------- */
.tribute-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-shell);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 2vh, 16px) var(--gutter);
  background: rgba(7, 19, 12, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1.5px solid var(--line);
  box-shadow: var(--shadow-2);
}

.return-btn span.desktop-text {
  display: none;
}

@media (min-width: 600px) {
  .return-btn span.desktop-text {
    display: inline;
  }
  .return-btn span.mobile-text {
    display: none;
  }
}

/* ---------- 3. 2.5D PARALLAX STAGE ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
  pointer-events: none;
}

.stage-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 130%;
  transform: translate(calc(-50% + (var(--px, 0px) * -0.3)), calc(-50% + (var(--py, 0px) * -0.3)));
  background: url("../../images/brand/chairman-parallax.jpg") center / cover no-repeat;
  filter: blur(28px) brightness(0.28) saturate(0.85);
  opacity: 0.7;
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-subject {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(500px, 88vw);
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px var(--brass-glow);
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px))) translate(var(--sx, 0px), var(--sy, 0px)) scale(var(--sc, 1));
  opacity: var(--op, 1);
  transition: transform 1.1s var(--ease), opacity 0.9s ease;
  background: var(--ink);
}

.stage-subject img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.subject-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(to top, rgba(7, 19, 12, 0.96), transparent);
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  color: var(--brass-soft);
  text-align: center;
  font-weight: 600;
}

/* Scene Choreography — Mobile Base */
body[data-scene="1"] .stage-subject { --sx: 0px; --sy: 32vh; --sc: 0.58; --op: 0.65; }
body[data-scene="2"] .stage-subject { --sx: 0px; --sy: -28vh; --sc: 0.52; --op: 1; }
body[data-scene="3"] .stage-subject { --sx: 0px; --sy: 0px; --sc: 1; --op: 0.12; }
body[data-scene="4"] .stage-subject { --sx: 0px; --sy: -24vh; --sc: 0.48; --op: 1; }

@media (min-width: 900px) {
  .stage-subject {
    width: min(740px, 84vw);
  }
  body[data-scene="1"] .stage-subject { --sy: 26vh; --sc: 0.82; --op: 0.75; }
  body[data-scene="2"] .stage-subject { --sx: 26vw; --sy: -4vh; --sc: 0.62; }
  body[data-scene="3"] .stage-subject { --sc: 1.05; --op: 0.14; }
  body[data-scene="4"] .stage-subject { --sy: -26vh; --sc: 0.52; }
}

/* ---------- 4. SCENES CHOREOGRAPHY ---------- */
.scene {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 12vh, 130px) var(--gutter) clamp(60px, 8vh, 90px);
  position: relative;
  width: 100%;
}

/* Scene 1: Arrival */
.scene-1 {
  align-items: center;
  text-align: center;
}

/* Emerald Frosted Glass Hero Card */
.hero-card {
  max-width: 740px;
  padding: clamp(26px, 5vw, 48px) clamp(20px, 4vw, 44px);
  background: rgba(7, 45, 24, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid var(--brass);
  box-shadow: var(--shadow-3), 0 0 30px var(--brass-glow);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--brass);
  color: var(--brass-soft);
  background: rgba(197, 155, 39, 0.2);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}

.scene-1 h1 {
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 12px;
}

.scene-1 p {
  max-width: 580px;
  margin: 14px auto 0;
  font-size: clamp(0.95rem, 2.4vw, 1.18rem);
  color: #edf5ef;
  line-height: 1.75;
}

.scroll-hint {
  position: absolute;
  bottom: clamp(14px, 2.5vh, 24px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--brass-soft);
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bob 2s infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* Scene 2: The Letter */
.letter-card {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  background: var(--paper);
  color: #122117;
  border-radius: var(--r-lg);
  border-left: 6px solid var(--brass);
  padding: clamp(24px, 5vw, 50px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .letter-card {
    margin-left: 6%;
  }
}

.letter-card h2 {
  color: var(--palm-deep);
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  margin-bottom: 4px;
}

.letter-card .role-subtitle {
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}

.letter-card p {
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  line-height: 1.85;
  color: #334237;
  margin-bottom: 14px;
}

.letter-card p strong {
  color: var(--palm-deep);
}

.letter-signature {
  margin-top: 22px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--statesman);
  font-size: 0.98rem;
  border-top: 1px dashed rgba(14, 90, 50, 0.2);
  padding-top: 14px;
}

.letter-signature small {
  display: block;
  font-weight: 600;
  color: #637768;
  font-size: 0.76rem;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Scene 3: The Proof & Student Works */
.scene-3 {
  background: linear-gradient(rgba(7, 19, 12, 0.88), rgba(7, 19, 12, 0.96));
  border-block: 1px solid var(--line);
}

.scene-3 .head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(26px, 4vw, 40px);
}

.scene-3 h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 10px;
  color: var(--text-main);
}

.scene-3 .head p {
  color: var(--text-sub);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.7;
}

.work-card {
  flex: 0 0 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

@media (min-width: 680px) {
  .work-card {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (min-width: 1040px) {
  .work-card {
    flex: 0 0 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
  }
}

.work-card figure {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  overflow: hidden;
  margin: 0;
}

.work-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover figure img {
  transform: scale(1.08);
}

.work-card .body {
  padding: 16px 14px 18px;
}

.work-card h3 {
  font-size: 1rem;
  color: var(--brass-soft);
  margin-bottom: 4px;
}

.work-card p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* Skills Badges Cloud */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 840px;
  margin: 32px auto 0;
}

.skill-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--brass-soft);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
}

.skill-badge:hover {
  background: rgba(197, 155, 39, 0.25);
  transform: translateY(-2px);
}

.anon-note {
  text-align: center;
  margin-top: 18px;
  font-size: 0.78rem;
  color: #a4c0ae;
  font-style: italic;
}

/* Scene 4: Sign-Off */
.scene-4 {
  align-items: center;
  text-align: center;
  padding-top: clamp(120px, 20vh, 220px);
}

.crest-signoff {
  width: clamp(70px, 12vw, 92px);
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.6));
}

.scene-4 h2 {
  font-size: clamp(1.4rem, 3.8vw, 2.4rem);
  max-width: 780px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-main);
}

.scene-4 .sub-text {
  max-width: 660px;
  margin: 0 auto 26px;
  color: #dcebe2;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  line-height: 1.7;
}

.credits-box {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  width: 100%;
}

.credit-card {
  padding: 10px 22px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.credit-card small {
  display: block;
  color: var(--brass-soft);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 2px;
}

.return-main-btn {
  padding: 14px 34px;
  font-size: 0.95rem;
}

.motto-final {
  margin-top: 36px;
  font-size: 0.74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 700;
}

/* ---------- 5. REDUCED MOTION SAFETY ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage-subject {
    transition: none !important;
  }
  .scroll-hint {
    animation: none !important;
  }
}