/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-videos.css
   ---------------------------------------------------------------------------
   Videos. The nineteenth 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, caption plates
     Project detail   bracketed eyebrow, long-form copy beside a sticky rail
     Global Presence  flanking rules, two-column evidence comparison
     Sustainability   diamond marker, quadrant and an empty report table
     News             highlighter band, front page and a date-first archive
     News detail      corner ticks, no banner, a measured column with breakouts
     Gallery          2x2 dot grid glyph, albums drawn as stacks of prints
     Gallery album    three-sided frame, a mosaic with a 2x2 lead tile
     Contact          trailing rule that fills the line, floating-label form
     Careers          chevron tag cut with clip-path, sideways spine labels
     Careers-apply    label banded between two hairlines, form in three parts
     Videos           a DIAGONAL PLATE - the label's leading-top and
                      trailing-bottom corners are fully rounded and the other
                      two are square, so the silhouette leans. Eighteen marks
                      have been pills, rules, textures, glyphs, frames or cut
                      shapes; this is the first asymmetric one.

   AND IT NEEDS NO [dir] OVERRIDE, which is the point worth remembering after
   the last two pages. `clip-path` (Careers) and `transform` have no logical
   form and had to be written twice. `border-radius` DOES: the longhands
   `border-start-start-radius` and `border-end-end-radius` name the corners by
   the writing direction, so the diagonal flips itself in the Arabic and
   Kurdish editions with nothing added.

   THE PAGE'S DEVICE IS A FILMSTRIP: a dark band with sprocket holes punched
   along its top and bottom edges, holding the frames in a rail that scrolls
   and snaps. Three things here appear nowhere else on the site -
   `grid-auto-flow:column`, `scroll-snap-type`, and a repeating radial
   gradient - and the holes are worth one note of their own: a symmetric
   repeating pattern needs no mirroring, unlike the diagonal hatch on
   Careers-apply, which had to carry its angle in a custom property.

   WHAT THIS PAGE DOES NOT INVENT
   The reference design supplies exactly ONE video - the hero slide's film -
   together with the words it puts beside it. That film is here, in full, with
   the design's own copy. The other frames in the strip are drawn EMPTY,
   because a video cannot be invented: no title, no length, no date and no
   subject is drafted for a film that does not exist. The strip is sized for
   six so the shape of the finished page is visible; five of the six are
   openly blank.
   =========================================================================== */

.page-videos{
  --eyebrow-bg:var(--teal-dp);
  --eyebrow-fg:var(--white);
  --page-bg:var(--white);

  /* the perforation: hole size, pitch, and the depth of the punched margin */
  --hole:.4375rem;
  --hole-gap:1.375rem;
  --strip-edge:1.625rem;
}

/* ---------------------------------------------------------------------------
   THE NINETEENTH EYEBROW — a diagonal plate, in logical corners
   --------------------------------------------------------------------------- */
.page-videos .eyebrow{
  border-radius:0;
  /* leading-top and trailing-bottom. Named by direction, so RTL leans the
     other way on its own. */
  border-start-start-radius:var(--r-pill);
  border-end-end-radius:var(--r-pill);
}
.page-videos .eyebrow--onDark{
  border:0;
  background:rgba(4,159,169,.32);
  color:var(--white);
}

/* ---------------------------------------------------------------------------
   THE FILM — the one video the design actually supplies
   --------------------------------------------------------------------------- */
.film{background:var(--white)}
.film__grid{
  display:grid;gap:clamp(2rem,1.5rem + 2vw,3rem) var(--gutter);
  margin-top:clamp(2rem,1.5rem + 2vw,3rem);
}
@media (min-width:62rem){
  .film__grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:center}
}

.film__plate{
  position:relative;margin:0;
  border-radius:var(--r-md);overflow:hidden;
  box-shadow:var(--sh-2);
  background:var(--dark);
}
.film__plate picture{display:block}
.film__plate img{
  display:block;width:100%;height:auto;
  aspect-ratio:16/9;object-fit:cover;
}

/* The whole plate is the button. A play triangle floating over a photograph
   is a small target; the plate is a large one, and the ring still shows
   where the eye should go. */
.film__play{
  position:absolute;inset:0;
  display:grid;place-items:center;gap:var(--s-2);
  align-content:center;
  border:0;cursor:pointer;
  color:var(--white);font:inherit;
  background:linear-gradient(180deg,rgba(20,17,5,.18) 0%,rgba(20,17,5,.52) 100%);
  transition:background var(--dur) var(--ease);
}
.film__play:hover{background:linear-gradient(180deg,rgba(20,17,5,.28) 0%,rgba(20,17,5,.62) 100%)}
.film__play:focus-visible{outline:.1875rem solid var(--gold-lt);outline-offset:-.375rem}

.film__ring{
  width:clamp(3.5rem,3rem + 2vw,4.75rem);
  aspect-ratio:1;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 .0625rem rgba(255,255,255,.5);
  -webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);
  transition:transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}
.film__ring svg{
  width:1.375rem;height:1.375rem;fill:currentColor;
  /* a play triangle points along the reading direction */
  transform:translateX(.0625rem);
}
[dir="rtl"] .film__ring svg{transform:scaleX(-1) translateX(.0625rem)}
.film__play:hover .film__ring{transform:scale(1.06);background:rgba(255,255,255,.24)}
.film__label{font-weight:600;font-size:var(--fs-sm);letter-spacing:.04em}

.film__body h2{margin:0 0 var(--s-2)}
.film__body p{margin:0;color:var(--muted)}
.film__body p + p{margin-top:var(--s-2)}
.film__meta{
  display:flex;flex-wrap:wrap;gap:.5rem var(--s-2);
  margin-top:var(--s-3);padding-top:var(--s-3);
  border-top:.0625rem solid var(--line);
  font-size:var(--fs-xs);color:var(--muted);
}

/* ---------------------------------------------------------------------------
   THE FILMSTRIP
   ---------------------------------------------------------------------------
   A dark band with the frames in a snapping rail. The holes are punched by a
   single repeating radial gradient per edge, in the colour of the section
   behind, so they read as holes rather than as dots.
   --------------------------------------------------------------------------- */
.reel{background:var(--cream)}
.strip{
  position:relative;
  margin-top:clamp(2rem,1.5rem + 2vw,3rem);
  padding-block:var(--strip-edge);
  background:var(--dark);
  border-radius:var(--r-md);
}
.strip::before,
.strip::after{
  content:"";position:absolute;inset-inline:0;
  height:var(--strip-edge);
  /* one circle per --hole-gap, centred in the punched margin. The pattern is
     symmetric, so nothing about it needs mirroring. */
  background-image:radial-gradient(circle at center,
    var(--cream) 0 calc(var(--hole) / 2),
    transparent calc(var(--hole) / 2));
  background-size:var(--hole-gap) var(--strip-edge);
  background-repeat:repeat-x;
  background-position:center;
  pointer-events:none;
}
.strip::before{top:0}
.strip::after{bottom:0}

/* The rail is focusable on purpose: an overflow container is scrollable by
   pointer and by touch but not by keyboard unless it can be reached, and a
   filmstrip that a keyboard cannot advance is a filmstrip with one frame. */
.strip__rail{
  display:grid;grid-auto-flow:column;
  grid-auto-columns:minmax(min(78vw,20rem),1fr);
  gap:clamp(.75rem,.5rem + 1vw,1.25rem);
  padding-inline:clamp(.75rem,.5rem + 1vw,1.25rem);
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:inline mandatory;
  scrollbar-color:var(--gold-dk) rgba(255,255,255,.12);
  scrollbar-width:thin;
}
.strip__rail:focus-visible{outline:.1875rem solid var(--gold-lt);outline-offset:.25rem}
.strip__rail::-webkit-scrollbar{height:.5rem}
.strip__rail::-webkit-scrollbar-track{background:rgba(255,255,255,.12);border-radius:.25rem}
.strip__rail::-webkit-scrollbar-thumb{background:var(--gold-dk);border-radius:.25rem}

.frame{
  scroll-snap-align:center;
  min-width:0;margin:0;
  display:grid;gap:.625rem;align-content:start;
}
.frame__plate{
  position:relative;
  border-radius:var(--r-sm);overflow:hidden;
  background:rgba(255,255,255,.06);
  aspect-ratio:16/9;
}
.frame__plate img{display:block;width:100%;height:100%;object-fit:cover}
.frame__play{
  position:absolute;inset:0;
  display:grid;place-items:center;
  border:0;cursor:pointer;color:var(--white);
  background:rgba(20,17,5,.34);
  transition:background var(--dur-fast) var(--ease);
}
.frame__play:hover{background:rgba(20,17,5,.14)}
.frame__play svg{width:1.5rem;height:1.5rem;fill:currentColor}
[dir="rtl"] .frame__play svg{transform:scaleX(-1)}

.frame__caption{
  font-size:var(--fs-xs);color:rgba(255,255,255,.72);
  line-height:1.45;
}
.frame__caption b{color:var(--white);font-weight:600}

/* the empty frames. .slot--frame already draws the dashed field; on this dark
   band it needs the tint dialled down so it does not glare. */
.frame--empty .slot--frame{
  aspect-ratio:16/9;padding:var(--s-2);
  background:rgba(196,160,68,.10);
  border-color:rgba(196,160,68,.55);
  border-radius:var(--r-sm);
}
.frame--empty .slot--frame span{color:var(--gold-lt);max-width:24ch}

/* ---------------------------------------------------------------------------
   WHAT TO SEND — the four things a video needs, as fields not prose
   --------------------------------------------------------------------------- */
.needs{background:var(--white)}
.needs__list{
  list-style:none;margin:clamp(1.75rem,1.25rem + 1.5vw,2.5rem) 0 0;padding:0;
  display:grid;gap:var(--s-2);
  max-width:min(52rem,100%);
}
.needs__list li{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem var(--s-2);
  padding-block:.875rem;
  border-top:.0625rem solid var(--line);
}
.needs__list li:last-child{border-bottom:.0625rem solid var(--line)}
.needs__key{
  flex:0 0 auto;min-width:9rem;
  font-family:var(--ff-head, inherit);font-weight:600;color:var(--ink);
}
.needs__note{font-size:var(--fs-sm);color:var(--muted)}

/* ---------------------------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .film__play,.film__ring,.frame__play{transition:none}
  .film__play:hover .film__ring{transform:none}
  .strip__rail{scroll-snap-type:none}
}
