/* ========================================================================== 
   Chairman's Message — Washnah | Premium portrait presentation
   ========================================================================== */
.chairman-message {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(86px, 8vw, 132px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.075), transparent 26%),
    radial-gradient(circle at 86% 78%, rgba(229,174,180,.12), transparent 30%),
    linear-gradient(138deg, #17080c 0%, #4b0e15 38%, #801922 71%, #2a0b11 100%);
}

.chairman-message::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../patterns/washnah-pattern-light.png");
  background-repeat: repeat;
  background-size: 390px auto;
  opacity: .075;
  mix-blend-mode: screen;
  pointer-events: none;
}

.chairman-message::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 44%, rgba(0,0,0,.13)),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.12));
  pointer-events: none;
}

.chairman-message__shell {
  display: grid;
  grid-template-columns: minmax(430px, 560px) minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: clamp(58px, 7vw, 112px);
}

/* --------------------------------------------------------------------------
   Premium portrait card
   -------------------------------------------------------------------------- */
.chairman-message__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  margin-inline: auto;
  padding: 12px;
}

.chairman-message__visual::before {
  content: "";
  position: absolute;
  inset: 5% -8% -6%;
  z-index: -1;
  border-radius: 48%;
  background: radial-gradient(circle, rgba(255,255,255,.15), rgba(255,255,255,.025) 48%, transparent 72%);
  filter: blur(20px);
  opacity: .72;
  pointer-events: none;
}

.chairman-message__portrait-frame {
  position: relative;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.045)),
    rgba(32,7,12,.34);
  box-shadow:
    0 36px 90px rgba(0,0,0,.36),
    0 10px 30px rgba(50,7,13,.22),
    inset 0 1px 0 rgba(255,255,255,.17);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.chairman-message__portrait-frame::before,
.chairman-message__portrait-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Fine outer line for a tailored frame. */
.chairman-message__portrait-frame::before {
  inset: -8px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 48px;
}

/* Inner trim keeps the photograph perfectly aligned with the frame. */
.chairman-message__portrait-frame::after {
  inset: 24px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(31,8,12,.14);
}

.chairman-message__portrait {
  position: relative;
  width: 100%;
  min-height: 680px;
  aspect-ratio: 4 / 5;
  will-change: transform, opacity, filter;
  overflow: hidden;
  border-radius: 29px;
  background: linear-gradient(145deg, #421018, #17080c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.chairman-message__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,3,6,.14), transparent 28%, transparent 72%, rgba(10,3,6,.12)),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 35%);
}

.chairman-message__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(16,4,8,.18) 72%, rgba(16,4,8,.82) 100%);
}

.chairman-message__picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chairman-message__portrait img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(.92) contrast(1.035) brightness(.985);
  transform: scale(1.02);
  transition: transform .8s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}

.chairman-message__visual:hover .chairman-message__portrait img {
  transform: scale(1.05);
  filter: saturate(.96) contrast(1.045) brightness(1.01);
}

.chairman-message__badge {
  position: relative;
  z-index: 5;
  width: fit-content;
  max-width: min(100%, 340px);
  min-width: 260px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(20,5,9,.90), rgba(73,12,21,.72));
  box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(26px) scale(.96);
  opacity: 0;
  animation: chairmanBadgeReveal .9s cubic-bezier(.2,.8,.22,1) 1s forwards;
}

.chairman-message__badge::before {
  content: "";
  grid-row: 1 / 3;
  width: 3px;
  height: 38px;
  border-radius: 99px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.28));
  box-shadow: 0 0 18px rgba(255,255,255,.28);
}

.chairman-message__badge small,
.chairman-message__badge strong {
  display: block;
  grid-column: 2;
}

.chairman-message__badge small {
  margin-bottom: 2px;
  color: rgba(255,255,255,.64);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.chairman-message__badge strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Message content
   -------------------------------------------------------------------------- */
.chairman-message__content {
  position: relative;
  max-width: 700px;
  padding: clamp(8px, 1.2vw, 18px) 0;
}

.chairman-message__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.chairman-message__eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.chairman-message h2 {
  max-width: 700px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(2.65rem, 4.5vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.chairman-message__quote-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 28px;
}

.chairman-message__lead {
  max-width: 670px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.15rem, 1.55vw, 1.38rem);
  font-weight: 600;
  line-height: 1.88;
}

.chairman-message__body {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.76);
  font-size: clamp(.98rem, 1.06vw, 1.065rem);
  line-height: 2;
}

.chairman-message__signature {
  display: flex;
  align-items: center;
  gap: 17px;
  max-width: 680px;
  padding-top: 23px;
  border-top: 1px solid rgba(255,255,255,.17);
}

.chairman-message__signature-line {
  width: 54px;
  height: 1px;
  flex: 0 0 auto;
  background: rgba(255,255,255,.65);
}

.chairman-message__signature strong,
.chairman-message__signature span {
  display: block;
}

.chairman-message__signature strong {
  color: #fff;
  font-size: 16px;
}

.chairman-message__signature span {
  margin-top: 4px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}


@keyframes chairmanPortraitReveal {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(.965);
    filter: blur(12px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes chairmanBadgeReveal {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chairmanContentReveal {
  0% {
    opacity: 0;
    transform: translateX(24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.chairman-message__portrait-frame {
  animation: chairmanPortraitReveal 1.05s cubic-bezier(.2,.8,.22,1) .08s both;
}

.chairman-message__content {
  animation: chairmanContentReveal .85s cubic-bezier(.2,.8,.22,1) .28s both;
}

html[dir="rtl"] .chairman-message__content {
  animation-name: chairmanContentRevealRtl;
}

@keyframes chairmanContentRevealRtl {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Keep the leadership section visible even if reveal JS is unavailable. */
.chairman-message .motion-reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

html[dir="rtl"] .chairman-message__eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .chairman-message h2 {
  letter-spacing: 0;
}

html[dir="rtl"] .chairman-message__badge small {
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1199px) {
  .chairman-message__shell {
    grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
    gap: clamp(42px, 5vw, 68px);
  }

  .chairman-message__portrait {
    min-height: 610px;
  }
}

@media (max-width: 991px) {
  .chairman-message__shell {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .chairman-message__visual {
    max-width: 560px;
  }

  .chairman-message__portrait {
    min-height: 640px;
  }

  .chairman-message__content {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .chairman-message__eyebrow,
  .chairman-message__signature {
    justify-content: center;
  }

  .chairman-message__quote-mark {
    margin-inline: auto;
  }

  .chairman-message__lead,
  .chairman-message__body,
  .chairman-message__signature {
    margin-inline: auto;
  }
}

@media (max-width: 575px) {
  .chairman-message {
    padding: 74px 0 82px;
  }

  .chairman-message__visual {
    width: min(100%, 420px);
    padding: 5px;
  }

  .chairman-message__portrait-frame {
    padding: 8px;
    border-radius: 28px;
  }

  .chairman-message__portrait-frame::before {
    inset: -5px;
    border-radius: 33px;
  }

  .chairman-message__portrait-frame::after {
    inset: 15px;
    border-radius: 20px;
  }

  .chairman-message__portrait {
    min-height: 500px;
    border-radius: 21px;
  }

  .chairman-message__badge {
    max-width: 100%;
    min-width: 0;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 15px;
  }

  .chairman-message__badge strong {
    font-size: 14px;
  }

  .chairman-message h2 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }

  .chairman-message__lead,
  .chairman-message__body {
    line-height: 1.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chairman-message__portrait img {
    transition: none;
  }

  .chairman-message__visual:hover .chairman-message__portrait img {
    transform: scale(1.02);
  }
}
