/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-chairman.css
   ---------------------------------------------------------------------------
   Chairman's Message. Home and About both set their main content on light
   grounds; this page inverts that - the letter itself runs on the dark brand
   ground, set as editorial copy beside a portrait, with a gold quotation mark
   and a signed sign-off. The commitments that follow return to a light ground
   so the letter reads as the page's centre of gravity.
   Direction-agnostic: logical properties throughout.
   =========================================================================== */

.page-chairman{
  --eyebrow-bg:rgba(196,160,68,.14);
  --eyebrow-fg:var(--gold-lt);
  --page-bg:var(--white);
}

/* ---------------------------------------------------------------------------
   THE LETTER
   --------------------------------------------------------------------------- */
.message{background:var(--dark);color:rgba(255,255,255,.82);position:relative;overflow:hidden}
/* a faint warm wash so the flat dark does not read as a solid slab */
.message::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(46rem 30rem at 12% 0%, rgba(196,160,68,.13), transparent 68%),
    radial-gradient(38rem 26rem at 92% 92%, rgba(4,159,169,.12), transparent 70%);
}
.message__inner{position:relative;row-gap:clamp(2.5rem,2rem + 4vw,4rem)}

/* portrait ---------------------------------------------------------------- */
.portrait{margin:0;position:relative}
.portrait picture{display:block;width:100%;aspect-ratio:4/5}
.portrait img{
  width:100%;height:100%;object-fit:cover;object-position:50% 35%;
  border-radius:var(--r-md);
}
/* a single gold hairline tucked behind the plate, echoing the group's rules
   without repeating the Home page's two-corner frame */
/* The negative insets need their clamp bounds in ascending order - written
   as clamp(-1.25rem, -3vw, -2.25rem) the minimum sits above the maximum, and
   the function just returns the minimum, so the offset never grew with the
   viewport. Ascending: clamp(-2.25rem, -3vw, -1.25rem). */
.portrait::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset-block:clamp(1.25rem,3vw,2.25rem) clamp(-2.25rem,-3vw,-1.25rem);
  inset-inline:clamp(1.25rem,3vw,2.25rem) clamp(-2.25rem,-3vw,-1.25rem);
  border:.09375rem solid rgba(196,160,68,.55);
  border-radius:var(--r-md);
}
.portrait__caption{
  margin-top:var(--s-3);
  font-size:var(--fs-sm);color:rgba(255,255,255,.6);
}
.portrait__caption b{display:block;color:var(--white);font-size:var(--fs-lg);margin-bottom:.125rem}

/* the letter itself -------------------------------------------------------- */
.letter{position:relative}
/* oversized quotation mark, set as decoration rather than text */
.letter__mark{
  display:block;font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(4.5rem,3rem + 6vw,7.5rem);line-height:.72;
  color:var(--gold);opacity:.55;margin-bottom:.25rem;
  user-select:none;
}
[dir="rtl"] .letter__mark{transform:scaleX(-1);transform-origin:right}
.letter__lead{
  color:var(--white);font-size:var(--fs-h4);line-height:1.6;
  margin:0 0 var(--s-3);max-width:56ch;
}
.letter__text{margin:0 0 var(--s-3);max-width:62ch;line-height:1.85}
.letter__text:last-of-type{margin-bottom:var(--s-4)}

/* pull quote --------------------------------------------------------------- */
.letter__quote{
  margin:var(--s-4) 0;padding-inline-start:clamp(1.25rem,1rem + 1vw,2rem);
  border-inline-start:.1875rem solid var(--gold);
  font-family:var(--ff-head, inherit);
  font-size:var(--fs-h3);line-height:1.4;color:var(--gold-lt);
  max-width:44ch;
}

/* signature ---------------------------------------------------------------- */
.signature{
  display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-3);
  padding-top:var(--s-3);
  border-top:.0625rem solid var(--line-dark);
}
.signature__mark{
  font-family:Georgia,"Times New Roman",serif;font-style:italic;
  font-size:clamp(1.75rem,1.4rem + 1.4vw,2.5rem);line-height:1;
  color:var(--gold-lt);
}
.signature__who b{display:block;color:var(--white);font-size:var(--fs-lg)}
.signature__who span{font-size:var(--fs-sm);color:rgba(255,255,255,.62)}

@media (min-width:62rem){
  /* the portrait holds its place while the letter scrolls past it */
  .message__portrait{position:sticky;top:var(--s-5);align-self:start}
}

/* ---------------------------------------------------------------------------
   COMMITMENTS — the four clauses of the founding philosophy, as numbered rows
   Deliberately not the About page's cards: open rows on a hairline, no fill.
   --------------------------------------------------------------------------- */
.commitments{background:var(--white)}
.commit-list{display:grid;gap:0}
.commit{
  display:grid;gap:.5rem var(--gutter);align-items:baseline;
  grid-template-columns:1fr;
  padding-block:clamp(1.5rem,1.1rem + 1.4vw,2.25rem);
  border-top:.0625rem solid var(--line);
  transition:background var(--dur) var(--ease);
}
.commit:last-child{border-bottom:.0625rem solid var(--line)}
.commit:hover{background:var(--cream)}
.commit__idx{
  font-family:var(--ff-head, inherit);font-size:var(--fs-sm);font-weight:700;
  color:var(--gold-dk);letter-spacing:.14em;
  font-variant-numeric:tabular-nums;direction:ltr;
}
.commit__title{font-size:var(--fs-h3);margin:0}
.commit__text{color:var(--muted);font-size:var(--fs-sm);margin:0;max-width:52ch}
@media (min-width:48rem){
  .commit{grid-template-columns:4rem minmax(0,1fr) minmax(0,1.15fr)}
}
