/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-project-details.css
   ---------------------------------------------------------------------------
   Project detail. The ninth distinct visual key:
     Home            teal filled eyebrow, expanding six-panel strip
     About           gold filled eyebrow, timeline on one rule
     Chairman        gold-on-dark eyebrow, letter on the dark ground
     Leadership      outlined eyebrow, portrait grid with no card boxes
     Sectors         rule-and-label eyebrow, alternating full-width rows
     Sector detail   dark filled eyebrow pill, one page as a tab set
     Companies       underlined eyebrow, filterable directory of crest cards
     Projects        vertical bar eyebrow, staggered grid with caption plates
     Project detail  a BRACKETED eyebrow - gold square brackets around the
                     label, typographic rather than geometric - and the page
                     is long-form: one column of running copy beside a fact
                     rail that stays with the reader.

   Nothing else on the site sets running copy against a data panel. The
   Chairman page does declare position:sticky on its portrait, but that one is
   inert - the portrait is the taller of its two columns, so it has zero travel
   (tools/qa-sticky.js reports it). This rail is the first sticky on the site
   that actually moves.

   Square brackets are mirrored characters, so the bidi algorithm turns them
   round on its own in the Arabic and Kurdish editions - no [dir] override.
   =========================================================================== */

.page-project-details{
  --eyebrow-fg:var(--gold-dk);
  --page-bg:var(--white);
}

/* The ninth eyebrow treatment. */
.page-project-details .eyebrow{
  background:none;box-shadow:none;border:0;border-radius:0;
  padding:0;gap:.4375rem;
  color:var(--eyebrow-fg);
}
.page-project-details .eyebrow::before{content:"[";color:var(--gold)}
.page-project-details .eyebrow::after{content:"]";color:var(--gold)}
.page-project-details .eyebrow--onDark{color:var(--gold-lt)}
.page-project-details .eyebrow--onDark::before,
.page-project-details .eyebrow--onDark::after{color:var(--gold-lt)}

/* The banner photograph for project 01 is one of the two portrait sources
   (0.81), so a wide banner keeps only about a third of its height. 30% puts
   that band on the men working rather than on the floor below them. */
.page-project-details .page-hero__bg img{object-position:50% 30%}

/* ---------------------------------------------------------------------------
   ARTICLE + FACT RAIL
   --------------------------------------------------------------------------- */
.dossier{background:var(--white)}
.dossier__grid{
  display:grid;gap:var(--s-5) var(--gutter);
  grid-template-columns:1fr;
  align-items:start;
}
@media (min-width:62rem){
  .dossier__grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
}

/* --- running copy ------------------------------------------------------- */
.dossier__body{max-width:64ch}
.dossier__lead{
  margin:var(--s-3) 0 0;
  font-size:var(--fs-lg);color:var(--ink-2);
}
/* a gold rule under the lead, closing the opening block off from the body */
.dossier__lead::after{
  content:"";display:block;
  width:clamp(3rem,2rem + 4vw,5rem);height:.125rem;
  background:var(--gold);
  margin-top:var(--s-3);
}
.dossier__h3{
  margin:var(--s-4) 0 var(--s-2);
  font-size:var(--fs-h4);color:var(--ink);
}
.dossier__body p{margin:0 0 var(--s-2);color:var(--muted)}
.dossier__body p:last-child{margin-bottom:0}

/* a plain list of scope items, hairline separated rather than bulleted */
.scope{margin:var(--s-2) 0 0;padding:0;list-style:none}
.scope li{
  display:grid;gap:.75rem;
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  padding-block:.75rem;
  border-top:.0625rem solid var(--line);
  color:var(--ink-2);font-size:var(--fs-sm);
}
.scope li:last-child{border-bottom:.0625rem solid var(--line)}
.scope li::before{
  content:"";
  width:.375rem;height:.375rem;border-radius:50%;
  background:var(--teal);
  transform:translateY(-.15rem);
}

/* --- fact rail ---------------------------------------------------------- */
/* Sticks once the reader passes it, so the project's particulars stay on
   screen while the copy scrolls. Two things have to hold for that, and both
   were measured with tools/qa-sticky.js rather than assumed:

     - `align-self:start`, so the rail keeps its own height instead of being
       stretched to the row - a stretched item has nothing to stick within;
     - the rail must be SHORTER than the article beside it. Sticky travels
       inside its containing block, and the block is as tall as the taller
       column, so a rail taller than the copy has zero travel and the
       declaration does nothing at all. That is exactly what happened first
       time round, with five separate "awaited" rows: 804px of rail against
       804px of row. Condensing those five into one line left 242px of travel,
       which is what it now sticks through.

   Guarded to the two-column breakpoint: on one column it would sit over the
   copy it belongs to. */
.facts-rail{
  background:var(--cream);
  border-radius:var(--r-lg);
  padding:clamp(1.5rem,1.25rem + 1vw,2rem);
  border-inline-start:.25rem solid var(--gold);
}
@media (min-width:62rem){
  .facts-rail{position:sticky;top:var(--s-4);align-self:start}
}
.facts-rail__title{
  margin:0 0 var(--s-2);
  font-size:var(--fs-eyebrow);font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--teal-dp);
}
.facts-rail dl{margin:0;display:grid;gap:0}
.facts-rail div{
  display:grid;gap:.1875rem;
  padding-block:.8125rem;
  border-top:.0625rem solid var(--line);
}
.facts-rail div:first-of-type{border-top:0;padding-top:0}
.facts-rail dt{
  font-size:var(--fs-xs);font-weight:700;
  color:var(--muted);letter-spacing:.06em;text-transform:uppercase;
}
.facts-rail dd{
  margin:0;font-family:var(--ff-head, inherit);font-weight:600;
  font-size:var(--fs-sm);color:var(--ink);
}
/* a particular the reference design does not supply. Said plainly, in the
   muted grey, so a reader can tell it apart from a real value at a glance. */
.facts-rail dd[data-placeholder]{
  font-weight:500;color:var(--muted);font-style:italic;
}
.facts-rail__foot{
  margin:var(--s-3) 0 0;padding-top:var(--s-3);
  border-top:.0625rem solid var(--line);
}

/* ---------------------------------------------------------------------------
   PREVIOUS / NEXT
   ---------------------------------------------------------------------------
   Two halves of one band, split by a hairline. The arrows point outward - the
   previous arrow towards the start of the inline axis, the next towards its
   end - which mirrors with the direction because each is its own element.
   --------------------------------------------------------------------------- */
.stepper{background:var(--cream)}
.stepper__grid{
  display:grid;gap:var(--s-3);
  grid-template-columns:1fr;
}
@media (min-width:48rem){
  .stepper__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  .stepper__item + .stepper__item{
    border-inline-start:.0625rem solid var(--line);
    padding-inline-start:var(--gutter);
  }
  .stepper__item:first-child{padding-inline-end:var(--gutter)}
}
.stepper__item{display:block;padding-block:var(--s-2)}
.stepper__item--next{text-align:end}
.stepper__kicker{
  display:block;
  font-size:var(--fs-xs);font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:var(--gold-dk);
}
.stepper__name{
  display:block;margin-top:.375rem;
  font-family:var(--ff-head, inherit);font-weight:700;
  font-size:var(--fs-h4);line-height:1.25;color:var(--ink);
  transition:color var(--dur-fast) var(--ease);
}
.stepper__item:hover .stepper__name{color:var(--gold-dk)}

/* ---------------------------------------------------------------------------
   THE OTHER PROJECTS
   --------------------------------------------------------------------------- */
.others{background:var(--white);overflow-x:clip}
.others__list{
  display:grid;gap:var(--gutter);
  grid-template-columns:1fr;
  margin:clamp(1.75rem,1.25rem + 2vw,2.5rem) 0 0;
  padding:0;list-style:none;
}
@media (min-width:36rem){ .others__list{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:62rem){ .others__list{grid-template-columns:repeat(4,minmax(0,1fr))} }

.other{display:block;position:relative;border-radius:var(--r-md);overflow:hidden}
.other picture{display:block;width:100%;aspect-ratio:3/2}
.other img{
  width:100%;height:100%;object-fit:cover;
  object-position:var(--focus, 50% 50%);
  transition:transform var(--dur-slow) var(--ease);
}
.other:hover img{transform:scale(1.05)}
.other::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top,
    rgba(20,17,5,.88) 0%,rgba(20,17,5,.34) 46%,rgba(20,17,5,0) 76%);
}
.other__body{
  position:absolute;z-index:1;inset-inline:0;bottom:0;
  padding:var(--s-3);
}
.other__place{
  display:block;
  font-size:var(--fs-xs);font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;
  color:var(--gold-lt);
}
.other__name{
  display:block;margin-top:.25rem;
  font-family:var(--ff-head, inherit);font-weight:700;
  font-size:var(--fs-body);line-height:1.3;color:var(--white);
}

/* ---------------------------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .other img,
  .stepper__name{transition:none}
  .other:hover img{transform:none}
}
