/* ==========================================================
   UKWUANI LGA — THE EXECUTIVE CHAIRMAN PROFILE STYLES
   Page: profile.html
   Includes: 3D Tilt, Card Animations & Framed Living Portrait
   ========================================================== */

/* ---------- 1. ANIMATED BACKGROUND CROSSFADE STACK ---------- */
.chair-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
}

.chair-bg .layer {
  position: absolute;
  inset: -6%;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: bgZoom 18s ease-in-out infinite alternate;
}

.chair-bg .layer.on {
  opacity: 0.38;
}

.chair-bg .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 12, 0.84) 0%,
    rgba(7, 19, 12, 0.94) 60%,
    var(--ink) 100%
  );
}

/* ---------- 2. OPENING HERO & FRAMED LIVING PORTRAIT ---------- */
.chair-open {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.open-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .open-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
  }
}

.chair-open h1 {
  font-size: var(--fs-hero);
  margin: 14px 0 10px;
}

.titles-voice {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--brass-soft);
}

.facts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* Floating Living Portrait Card */
.living-portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.living-portrait-card {
  padding: clamp(16px, 3vw, 24px);
  border: 1.5px solid var(--brass);
  border-radius: var(--r-lg);
  background: rgba(7, 45, 24, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-3), 0 0 30px var(--brass-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floaty 7s ease-in-out infinite, borderSheen 6s infinite ease-in-out;
}

.living-portrait-card img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  display: block;
}

/* ---------- 3. BIOGRAPHY STICKY TWO-COLUMN (3D TILT) ---------- */
.bio-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .bio-grid {
    grid-template-columns: 360px 1fr;
    gap: 54px;
  }

  .bio-left {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.bio-photo {
  border: 1.5px solid var(--brass);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--ink);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.bio-photo:hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(-2.5deg) scale(1.02);
  box-shadow: var(--shadow-3), 0 0 25px var(--brass-glow);
  border-color: var(--brass-soft);
}

.bio-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  animation: bgZoom 20s ease-in-out infinite alternate;
}

.bio-name-tag {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.bio-name-tag:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brass);
  background: var(--glass-hover);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.25);
}

.bio-name-tag strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.bio-name-tag span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 700;
  margin-top: 2px;
}

/* Timeline Track */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: clamp(20px, 3vw, 36px);
  display: grid;
  gap: 28px;
}

.t-item {
  position: relative;
}

.t-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(20px, 3vw, 36px) - 7px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.2);
}

.t-item .t-year {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass-soft);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.t-item h3 {
  font-size: var(--fs-h3);
  margin: 4px 0 6px;
  color: var(--text-main);
}

.t-item p {
  color: var(--text-sub);
  font-size: var(--fs-body);
  max-width: 660px;
  line-height: 1.75;
}

/* ---------- 4. PHILOSOPHY QUOTE BAND ---------- */
.quote-band {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0;
  text-align: center;
}

.quote-band .bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  filter: blur(6px) brightness(0.28) saturate(0.85);
  transform: scale(1.08);
}

.quote-band blockquote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 4.2vw, 2.9rem);
  line-height: 1.35;
  max-width: 960px;
  margin: 0 auto 18px;
}

.quote-band blockquote em {
  color: var(--brass-soft);
  font-style: italic;
}

.quote-band .src {
  position: relative;
  color: var(--text-sub);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- 5. THE PEACE ARC (3D TILT) ---------- */
.arc {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: arcCounter;
  perspective: 1000px;
}

@media (min-width: 680px) {
  .arc {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .arc {
    grid-template-columns: repeat(5, 1fr);
  }
}

.arc li {
  counter-increment: arcCounter;
  position: relative;
  padding: 22px 18px;
  border-top: 2px solid var(--line);
  background: var(--glass);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.arc li:hover {
  transform: translateY(-8px) rotateX(2.5deg) scale(1.02);
  border-top-color: var(--brass);
  background: var(--glass-hover);
  box-shadow: var(--shadow-3), 0 0 20px rgba(197, 155, 39, 0.25);
}

.arc li::before {
  content: "0" counter(arcCounter);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--brass);
  display: block;
}

.arc li h3 {
  font-size: 1.05rem;
  margin: 6px 0 6px;
  color: var(--text-main);
}

.arc li p {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ---------- 6. TWO TERMS CONTINUUM (3D TILT) ---------- */
.terms {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  perspective: 1000px;
}

@media (min-width: 900px) {
  .terms {
    grid-template-columns: 1fr 1fr;
  }
}

.term-card {
  padding: clamp(24px, 4vw, 40px);
  border-top: 4px solid var(--palm);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.term-card:hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(-2deg) scale(1.015);
  border-color: var(--brass);
  box-shadow: var(--shadow-3), 0 0 25px var(--brass-glow);
  background: var(--glass-hover);
}

.term-card:nth-child(even):hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(2deg) scale(1.015);
}

.term-card.now {
  border-top-color: var(--brass);
  background: linear-gradient(
    170deg,
    rgba(197, 155, 39, 0.08) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.term-card h3 {
  font-size: var(--fs-h3);
  margin-top: 4px;
}

.term-card .term-tag {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 800;
}

.term-card ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.term-card li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.term-card li::before {
  content: "—";
  color: var(--brass);
  flex-shrink: 0;
}

/* ---------- 7. AWARDS & HONORS WALL (CAROUSEL & 3D TILT) ---------- */
.award-card {
  flex: 0 0 100%;
  max-width: 100%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}

@media (min-width: 680px) {
  .award-card {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (min-width: 1040px) {
  .award-card {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

.award-card:hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(-2deg) scale(1.02);
  box-shadow: var(--shadow-3), 0 0 25px var(--brass-glow);
  border-color: var(--brass);
  background: var(--glass-hover);
}

.award-card:nth-child(even):hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(2deg) scale(1.02);
}

.award-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  margin: 0;
}

.award-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.award-card:hover img {
  transform: scale(1.07);
}

.award-card .body {
  padding: 18px 18px 22px;
  flex: 1;
}

.award-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.award-card p {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ---------- 8. MOMENTS OF SERVICE CAROUSEL (3D TILT) ---------- */
.moment-card {
  flex: 0 0 100%;
  max-width: 100%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}

@media (min-width: 680px) {
  .moment-card {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (min-width: 1040px) {
  .moment-card {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

.moment-card:hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(2deg) scale(1.02);
  box-shadow: var(--shadow-3), 0 0 25px var(--brass-glow);
  border-color: var(--brass);
  background: var(--glass-hover);
}

.moment-card:nth-child(even):hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(-2deg) scale(1.02);
}

.moment-card figure {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
  margin: 0;
}

.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Ensures head & face are visible on the card */
  transition: transform 0.6s var(--ease);
}

.moment-card:hover img {
  transform: scale(1.08);
}

.moment-card .cap {
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-sub);
  font-weight: 500;
}

/* ---------- 9. FULL-VIEW LIGHTBOX MODAL (100% UNCROPPED) ---------- */
.lightbox-card img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain !important;
  background: var(--ink);
  display: block;
  margin: 0 auto;
}

/* ---------- 10. KEYFRAMES & REDUCED MOTION ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .chair-bg .layer {
    animation: none !important;
  }
  .chair-bg .layer.on {
    opacity: 0.38 !important;
  }
  .living-portrait-card,
  .bio-photo img,
  .bio-photo,
  .bio-name-tag,
  .arc li,
  .term-card,
  .award-card,
  .moment-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}