/* ══════════════════════════════════════════════════════════
   chairman.css  —  Message from the Chairman page
   All classes prefixed  ch-  — zero conflicts with
   style.css / home.css / about.css / contact.css
   Sections:
   1. Hero Banner
   2. Message section  (sticky photo + scrolling text)
══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────
   KEYFRAMES  (ch- prefix)
─────────────────────────────────────────── */
@keyframes ch-fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes ch-slideRight {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ch-slideLeft {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ch-shimmer {
  from {
    transform: rotate(25deg) translateX(-120px);
  }

  to {
    transform: rotate(25deg) translateX(500px);
  }
}

/* ──────────────────────────────────────────
   1. HERO BANNER
─────────────────────────────────────────── */
.ch-hero {
  background: #0d1b3e;
  padding: 68px 0 64px;
  position: relative;
  overflow: hidden;
}

/* diagonal stripe texture */
.ch-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: repeating-linear-gradient(-55deg, transparent, transparent 40px,
      rgba(255, 255, 255, .025) 40px, rgba(255, 255, 255, .025) 41px); */
  pointer-events: none;
  z-index: 0;
}

/* red accent line on bottom */
.ch-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e63946 0%, transparent 60%);
  z-index: 2;
}

.ch-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ch-hero-left {
  opacity: 0;
  animation: ch-slideRight .7s cubic-bezier(.4, 0, .2, 1) .05s forwards;
}

.ch-eyebrow {
  font-family: var(--font-family-secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e63946;
  margin-bottom: 18px;
}

.ch-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: #e63946;
  border-radius: 2px;
  flex-shrink: 0;
}

.ch-hero-title {
  font-family: var(--font-family-secondary);
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.ch-hero-title span {
  color: #e63946;
  display: block;
}

.ch-hero-right {
  opacity: 0;
  animation: ch-slideLeft .7s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}

.ch-hero-desc {
  font-family: var(--font-family-primary);
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.78;
  max-width: 420px;
}

/* ──────────────────────────────────────────
   2. MESSAGE SECTION
─────────────────────────────────────────── */
.ch-section {
  background: #fff;
  padding: 90px 0 100px;
}

.ch-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: flex-start;
}

/* ── Left column — sticky photo card ── */
.ch-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: ch-fadeUp .8s ease forwards .2s;
  position: sticky;
  top: 88px;
  /* clears the sticky header */
  align-self: flex-start;
}

/* Photo box */
.ch-photo {
  width: 100%;
  aspect-ratio: 3 / 3.5;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #b0bfcf 0%, #7a8fa8 50%, #5a6f88 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* subtle darkening gradient over photo */
.ch-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .14) 100%);
  pointer-events: none;
}

/* Placeholder icon (shown when no real image) */
.ch-photo-icon {
  font-size: 5rem;
  opacity: .4;
  position: relative;
  z-index: 1;
  user-select: none;
}

/* Name plate — red box directly below photo */
.ch-nameplate {
  background: #e63946;
  border-radius: 0 0 14px 14px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .4s ease;
}

/* Navy fill that sweeps up from bottom on hover */
.ch-nameplate::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: #0d1b3e;
  transition: height .45s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
  border-radius: 0 0 14px 14px;
}

.ch-nameplate:hover::before {
  height: 100%;
}

/* diagonal shimmer sweep */
.ch-nameplate::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -40%;
  width: 60px;
  height: 200%;
  background: rgba(255, 255, 255, .12);
  transform: rotate(25deg) translateX(-120px);
  transition: transform .5s ease;
  z-index: 1;
}

.ch-nameplate:hover::after {
  transform: rotate(25deg) translateX(500px);
}

.ch-nameplate:hover {
  box-shadow: 0 8px 28px rgba(13, 27, 62, .35);
}

.ch-nameplate h3 {
  font-family: var(--font-family-secondary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
  transition: letter-spacing .3s ease;
}

.ch-nameplate:hover h3 {
  letter-spacing: .03em;
}

.ch-nameplate-title {
  font-family: var(--font-family-primary);
  font-size: .85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .85);
  position: relative;
  z-index: 2;
  transition: color .3s;
}

.ch-nameplate:hover .ch-nameplate-title {
  color: rgba(255, 255, 255, .7);
}

/* ── Right column — message body ── */
.ch-right {
  padding-top: 4px;
}

/* Large opening quote mark */
.ch-quote-icon {
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: ch-fadeUp .6s ease forwards .1s;
}

.ch-quote-icon svg {
  width: 52px;
  height: 42px;
  fill: #0d1b3e;
  opacity: .15;
}

/* Heading */
.ch-right h2 {
  font-family: var(--font-family-secondary);
  font-size: 45px;
  font-weight: 700;
  color: #121212;
  line-height: 1.25;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(22px);
  animation: ch-fadeUp .7s ease forwards .2s;
}

/* Sub-label line */
.ch-org-line {
  font-size: .78rem;
  color: #aaa;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(18px);
  animation: ch-fadeUp .7s ease forwards .3s;
}

/* Body paragraphs — scroll-triggered via .ch-visible */
.ch-right p {
  font-family: var(--font-family-primary);
  font-size: .8rem;
  color: #24271f;
  line-height: 1.85;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

.ch-right p.ch-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for paragraphs (applied via JS but also available as classes) */
.ch-p1 {
  transition-delay: .00s;
}

.ch-p2 {
  transition-delay: .08s;
}

.ch-p3 {
  transition-delay: .16s;
}

.ch-p4 {
  transition-delay: .24s;
}

.ch-p5 {
  transition-delay: .32s;
}

.ch-p6 {
  transition-delay: .40s;
}

.ch-p7 {
  transition-delay: .48s;
}

.ch-p8 {
  transition-delay: .56s;
}

/* Signature block */
.ch-signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eef0f4;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease .6s, transform .6s ease .6s;
}

.ch-signature.ch-visible {
  opacity: 1;
  transform: translateY(0);
}

.ch-sig-name {
  font-family: var(--font-family-secondary);
  font-size: .92rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 4px;
}

.ch-sig-title {
  font-family: var(--font-family-secondary);
  font-size: .75rem;
  color: #121212;
  line-height: 1.65;
}

/* ──────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────── */
@media (max-width: 860px) {
  .ch-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 36px;
  }

  .ch-hero-desc {
    max-width: 100%;
  }

  .ch-hero {
    padding: 52px 0 48px;
  }

  .ch-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 0 36px;
  }

  /* On tablet: photo + nameplate side-by-side */
  .ch-left {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    max-width: 480px;
    position: static;
    /* unstick on mobile */
  }

  .ch-photo {
    border-radius: 14px 0 0 0;
    aspect-ratio: 1 / 1.2;
  }

  .ch-nameplate {
    border-radius: 0 14px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .ch-hero-inner {
    padding: 0 20px;
  }

  .ch-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .ch-section {
    padding: 56px 0 64px;
  }

  .ch-inner {
    padding: 0 20px;
    gap: 32px;
  }

  .ch-left {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .ch-photo {
    border-radius: 14px 14px 0 0;
  }

  .ch-nameplate {
    border-radius: 0 0 14px 14px;
  }
}