@font-face {
  font-family: "DAMOON VF";
  src: url("DAMOON-VF.woff2") format("woff2"),
       url("DAMOON-VF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ims-gold: #c3996d;
  --ims-blue: #347ec1;
  --ims-black: #050505;
  --ims-text: #171717;
  --ims-muted: #737373;
  --ims-max: 1440px;
  --ims-font: "DAMOON VF";
  --ims-heading-font: "DAMOON VF";
}

html { scroll-behavior: smooth; }
body.imam-sadr-special-page {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  color: var(--ims-text);
  font-family: "DAMOON VF" !important;
  direction: rtl;
}
body.imam-sadr-special-page #wpadminbar { direction: ltr; }
#imam-sadr-page, #imam-sadr-page * { box-sizing: border-box; }
#imam-sadr-page {
  overflow: hidden;
  background: #fff;
  font-family: "DAMOON VF" !important;
}
body.imam-sadr-special-page,
body.imam-sadr-special-page *,
body.imam-sadr-special-page *::before,
body.imam-sadr-special-page *::after,
#imam-sadr-page,
#imam-sadr-page *,
#imam-sadr-page *::before,
#imam-sadr-page *::after,
#imam-sadr-page .ims-shell,
#imam-sadr-page .ims-shell *,
#imam-sadr-page .ims-event,
#imam-sadr-page .ims-event *,
#imam-sadr-page .ims-year-content,
#imam-sadr-page .ims-year-content *,
#imam-sadr-page .ims-quote-row,
#imam-sadr-page .ims-quote-row *,
#imam-sadr-page .ims-more-grid,
#imam-sadr-page .ims-more-grid * {
  font-family: "DAMOON VF" !important;
}
html body.imam-sadr-special-page h1,
html body.imam-sadr-special-page h2,
html body.imam-sadr-special-page h3,
html body.imam-sadr-special-page h4,
html body.imam-sadr-special-page h5,
html body.imam-sadr-special-page h6,
#imam-sadr-page h1,
#imam-sadr-page h2,
#imam-sadr-page h3,
#imam-sadr-page .ims-date,
#imam-sadr-page .ims-year,
#imam-sadr-page .ims-quote,
#imam-sadr-page .ims-more-copy h3,
#imam-sadr-page .ims-quote-row .ims-quote span,
#imam-sadr-page .ims-dna p,
#imam-sadr-page .ims-hero-copy p {
  font-family: "DAMOON VF" !important;
}
#imam-sadr-page img { display: block; max-width: 100%; height: auto; }
.ims-shell { width: min(100% - 48px, 1220px); margin-inline: auto; }
.ims-blue-links { list-style: none; padding: 0; margin: 24px 0 0; color: var(--ims-blue); font-size: clamp(14px, 1.3vw, 20px); line-height: 1.9; font-family: var(--ims-heading-font) !important; }
.ims-blue-links li::before { content: "■"; color: var(--ims-blue); font-size: .65em; margin-left: 10px; }
.ims-blue-links a { color: inherit; text-decoration: none; font-family: inherit !important; }
.ims-blue-links a:hover { text-decoration: underline; }

/* Hero */
.ims-hero {
  min-height: 650px;
  background: var(--ims-black) url("images/black-texture.webp") repeat;
  background-size: 250px 227px;
  color: #fff;
  display: grid;
  align-items: center;
  position: relative;
}
.ims-hero-grid {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  direction: ltr;
}
.ims-hero-map { direction: rtl; }
.ims-hero-map img { width: 100%; max-width: 520px; margin: auto; filter: saturate(.85); }
.ims-hero-copy { direction: rtl; text-align: right; position: relative; padding-right: 56px; }
.ims-hero-copy::before, .ims-hero-copy::after {
  content: ""; position: absolute; right: 0; width: 3px; background: var(--ims-gold);
}
.ims-hero-copy::before { top: -20px; height: 145px; }
.ims-hero-copy::after { top: 66px; right: -48px; height: 80px; }
.ims-hero-copy h1 { margin: 0; font-size: clamp(42px, 5vw, 76px); line-height: 1.15; font-weight: 900; color: #fff; }
.ims-hero-copy p { margin: 18px 0 0; font-size: clamp(22px, 2.15vw, 33px); font-weight: 300; color: #bdbdbd; }
.ims-hero-dash { width: 44px; height: 8px; background: var(--ims-gold); margin-top: 28px; }

/* Timeline */
.ims-timeline { padding: 70px 0 36px; position: relative; }
.ims-event {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .72fr);
  gap: clamp(40px, 7vw, 115px);
  min-height: 310px;
  align-items: center;
  direction: ltr;
}
.ims-event-copy { direction: rtl; text-align: right; align-self: start; padding-top: 10px; }
.ims-event-visual { direction: rtl; }
.ims-event-visual img { width: min(100%, 820px); }


/* 1982 road video: the viewport keeps the road.webp proportions (965 × 500),
   while the 1504 × 640 source video itself stays at native CSS dimensions.
   The larger video is cropped from the top-left; it is not scaled to fit. */
.ims-road-scrub {
  position: relative;
  width: min(100%, 965px);
  aspect-ratio: 965 / 500;
  overflow: hidden;
  direction: ltr;
  background: #000;
}
.ims-road-scrub-video {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 1300px;
  height: 500px;
  min-width: 1300px;
  min-height: 500px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  /* Alternative if you ever prefer letterboxing instead of filling: object-fit: contain; */
  object-position: left top;
  pointer-events: none;
}
.ims-event-no-visual { min-height: 150px; }
.ims-date {
  display: flex; direction: rtl; align-items: center; justify-content: flex-start; gap: 14px;
  color: var(--ims-gold); font-weight: 300; font-size: clamp(50px, 6vw, 88px); line-height: 1;
}
.ims-date img { width: 48px; height: auto; }
.ims-date span { border-bottom: 6px solid var(--ims-gold); padding-bottom: 8px; }
.ims-event-copy h2 { margin: 22px 0 0; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.5; font-weight: 500; color: #111; font-family: var(--ims-heading-font) !important; }
.ims-event-copy .ims-kicker { color: var(--ims-muted); font-size: 28px; margin-right: 0px; display: inline-block; font-family: var(--ims-heading-font) !important; }
.ims-timeline-links { max-width: 390px; margin-right: auto; }
.ims-gold-divider { height: 8px; width: min(610px, 70%); background: var(--ims-gold); margin: 36px auto 0; }

/* Claims */
.ims-claims { padding: 70px 0 80px; position: relative; }
.ims-ornament-single { width: 76px; margin: 0 0 24px auto; }
.ims-strike-paragraph { position: relative; max-width: 1080px; margin: 0 auto; padding: 40px 0; }
.ims-strike-paragraph p { position: relative; z-index: 1; margin: 0; font-size: clamp(27px, 3.1vw, 46px); line-height: 1.85; font-weight: 500; text-align: right; font-family: var(--ims-heading-font) !important; }
.ims-strike-paragraph i { position: absolute; left: 3%; right: 3%; height: 8px; background: var(--ims-gold); z-index: 2; }
.ims-strike-paragraph i:nth-of-type(1) { top: 39%; }
.ims-strike-paragraph i:nth-of-type(2) { top: 58%; }
.ims-strike-paragraph i:nth-of-type(3) { top: 77%; }
.ims-claims .ims-blue-links { width: min(560px, 100%); margin-right: auto; }

/* Year bands */
.ims-year-section { position: relative; }
.ims-year-band { height: 170px; background: #000; position: relative; }
.ims-year-band .ims-year { position: absolute; right: max(32px, calc((100% - 1220px)/2)); bottom: 25px; color: #fff; font-size: clamp(64px, 7vw, 100px); font-weight: 200; line-height: 1; }
.ims-year-content { padding: 48px 0 90px; }
.ims-feature-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(42px, 7vw, 95px); align-items: center; direction: ltr; }
.ims-feature-image { direction: rtl; }
.ims-feature-copy { direction: rtl; text-align: right; }
.ims-feature-copy h3 { margin: 0; font-size: clamp(27px, 3vw, 44px); line-height: 1.45; font-weight: 500; font-family: var(--ims-heading-font) !important; }
.ims-feature-copy .ims-subline { color: var(--ims-gold); margin: 12px 0 0; font-size: clamp(18px, 2vw, 29px); font-family: var(--ims-heading-font) !important; }
.ims-feature-copy .ims-blue-links { margin-top: 50px; }
.ims-2015-intro { padding: 20px 0 55px; }
.ims-2015-intro .ims-strike-paragraph { padding-top: 0; }
.ims-hannibal { margin: 20px auto 75px; width: min(100%, 1180px); }

/* Quotes */
.ims-quote-blocks { padding-bottom: 100px; }
.ims-quote-row { display: grid; grid-template-columns: 230px minmax(0, 700px); justify-content: end; align-items: end; gap: 20px; margin: 0 0 75px; }
.ims-quote-row img { width: 110px; justify-self: end; }
.ims-quote { margin: 0; font-size: clamp(24px, 2.6vw, 39px); line-height: 1.65; color: #fff; text-align: right; font-family: var(--ims-heading-font) !important; }
.ims-quote span { background: #000; padding: 5px 12px; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-family: inherit !important; }
.ims-quote-links { grid-column: 2; margin-top: 0px; }
.ims-quote-row.compact { grid-template-columns: minmax(0, 680px); }
.ims-quote-row.compact .ims-quote-links { grid-column: 1; }

/* DNA */
.ims-dna {
  min-height: 530px; position: relative; display: grid; place-items: center;
  color: #fff; background: #050505 url("images/black-texture.webp") repeat; background-size: 250px 227px;
}
.ims-dna-word { position: absolute; font-family: "DAMOON VF"; font-size: clamp(150px, 21vw, 310px); font-weight: 200; color: transparent; -webkit-text-stroke: 2px var(--ims-gold); opacity: .92; letter-spacing: .02em; direction: ltr; }
.ims-dna p { position: relative; z-index: 2; margin: 0; width: min(90%, 1050px); text-align: center; font-size: clamp(25px, 2.6vw, 40px); line-height: 1.7; font-family: var(--ims-heading-font) !important; }
.ims-link-ribbon { background: #fff; padding: 24px 0; }
.ims-link-ribbon .ims-blue-links { margin: 0; }
.ims-wide-photo img { width: 100%; }

/* Read more */
.ims-more { padding: 65px 0 70px; }
.ims-more-grid { display: grid; grid-template-columns: 1fr 330px; gap: 55px; align-items: center; direction: ltr; }
.ims-more-grid img { width: min(100%, 760px); direction: rtl; }
.ims-more-copy { direction: rtl; text-align: right; }
.ims-more-copy h3 { margin: 0 0 12px; color: var(--ims-gold); font-size: 23px; font-weight: 400; font-family: var(--ims-heading-font) !important; }
.ims-more-copy ul { list-style: none; padding: 0; margin: 0; color: var(--ims-blue); font-size: 20px; line-height: 1.9; font-family: var(--ims-heading-font) !important; }
.ims-more-copy li::before { content: "■"; font-size: .65em; margin-left: 10px; }
.ims-more-copy li.sub::before { content: "–"; }
.ims-final img { width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .ims-shell { width: min(100% - 32px, 760px); }
  .ims-hero { min-height: auto; padding: 54px 0 64px; }
  .ims-hero-grid { width: min(100% - 32px, 760px); grid-template-columns: 1fr; gap: 36px; }
  .ims-hero-copy { grid-row: 1; padding-right: 34px; }
  .ims-hero-map { grid-row: 2; }
  .ims-hero-map img { max-width: 620px; }
  .ims-event { grid-template-columns: 1fr; gap: 24px; min-height: auto; padding: 30px 0 45px; }
  .ims-event-copy { grid-row: 1; }
  .ims-event-visual { grid-row: 2; }
  .ims-event-no-visual { display: none; }
  .ims-event-visual img { width: 100%; }
  .ims-date { font-size: clamp(52px, 15vw, 82px); }
  .ims-timeline-links { margin-right: 0; }
  .ims-strike-paragraph p { font-size: clamp(24px, 6vw, 37px); line-height: 1.9; }
  .ims-strike-paragraph i { height: 5px; }
  .ims-year-band { height: 120px; }
  .ims-year-band .ims-year { right: 24px; bottom: 20px; }
  .ims-feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .ims-feature-copy { grid-row: 1; }
  .ims-feature-image { grid-row: 2; }
  .ims-quote-row, .ims-quote-row.compact { grid-template-columns: 1fr; gap: 24px; }
  .ims-quote-row img { width: 80px; }
  .ims-quote-links, .ims-quote-row.compact .ims-quote-links { grid-column: 1; margin-top: 0; }
  .ims-more-grid { grid-template-columns: 1fr; }
  .ims-more-grid img { grid-row: 2; }
  .ims-more-copy { grid-row: 1; }
}
@media (max-width: 560px) {
  .ims-hero-copy h1 { font-size: 42px; }
  .ims-hero-copy p { font-size: 21px; }
  .ims-timeline { padding-top: 35px; }
  .ims-event-copy h2 { font-size: 25px; }
  .ims-date img { width: 36px; }
  .ims-date span { border-width: 4px; }
  .ims-claims { padding-top: 35px; }
  .ims-strike-paragraph { padding: 20px 0; }
  .ims-quote { font-size: 23px; }
  .ims-dna { min-height: 360px; }
  .ims-dna-word { font-size: 120px; }
  .ims-dna p { font-size: 22px; }
  .ims-more { padding: 45px 0; }
}
  
.ims-road-scrub-frame,
.ims-road-scrub,
.ims-road-scroll-scrub {
    margin-top: -365px;
    background: #fff !important;
}

.ims-road-scrub-video {
    background: #fff !important;

    width: 1300px;
    height: 500px;

    object-fit: cover;
    object-position: left top;
}  
  


/* Hide the browser's black undecoded video surface */
.ims-road-scrub-video {
  background: #fff;
}


/*
 * Allow the native 1504×640 video to extend outside
 * the former 965×500 image area.
 */
.ims-road-scrub,
.ims-road-scrub-frame {
  position: relative;
  overflow: visible !important;
  background: #fff !important;
  z-index: 0;
}


/*
 * Video itself stays on the lower visual layer.
 */
.ims-road-scrub-video {
  position: relative;
  z-index: 0;

  width: 1300px;
  height: 500px;

  object-fit: cover;
  object-position: left top;

  background: #fff !important;
  margin-top:-290px;
}


/*
 * Everything that contains actual page content should
 * paint ABOVE the overflowing video.
 */
#imam-sadr-page .ims-event-copy,
#imam-sadr-page .ims-date,
#imam-sadr-page .ims-kicker,
#imam-sadr-page .ims-blue-links,
#imam-sadr-page .ims-event h2,
#imam-sadr-page .ims-gold-divider {
  position: relative;
  z-index: 5;
}
.ims-road-scrub-video {
  display: block !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
@-moz-document url-prefix() {
  .ims-road-scrub-video {
    clip-path: inset(1px);
  }
}

/* =========================================================
   ROAD SCRUB — FINAL MOBILE / iOS OVERRIDES
   ========================================================= */
/* =========================================================
   ROAD SCRUB — MOBILE ONLY
   Desktop layout is intentionally untouched.
   ========================================================= */

/*
 * The extra fallback image added for iOS should have
 * absolutely no effect on desktop.
 */
.ims-road-scrub-poster {
  display: none;
}


/* ---------------------------------------------------------
   MOBILE / TABLET ONLY
   --------------------------------------------------------- */
@media (max-width: 900px) {

  #imam-sadr-page .ims-event-visual {
    width: 100%;
    min-width: 0;
    overflow: visible !important;
  }


  /*
   * Keep the existing -165px upward positioning,
   * but reserve enough room for:
   *
   *   500px video
   * + 60px breathing space beneath
   *
   * This prevents the 1996 section from colliding
   * with the bottom of the video.
   */
  #imam-sadr-page .ims-road-scrub {
    position: relative;

    width: 100%;

    height: 500px;
    min-height: 500px;

    aspect-ratio: auto;

    margin-top: -165px !important;
    margin-bottom: 0 !important;

    overflow: visible !important;

    background: #fff !important;

    direction: ltr;
    z-index: 0;
  }


  /*
   * iPhone fallback image.
   *
   * It exists ONLY on mobile and sits directly
   * underneath the actual video.
   */
  #imam-sadr-page .ims-road-scrub-poster {
    display: block !important;

    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 1300px !important;
    min-width: 1300px !important;
    max-width: none !important;

    height: 500px !important;
    min-height: 500px !important;
    max-height: none !important;

    margin: 0 !important;

    object-fit: cover;
    object-position: left top;

    /*
     * Move image/video 30% toward the left,
     * as requested.
     */
    transform: translateX(-30%);

    pointer-events: none;

    z-index: 0;
  }


  /*
   * Actual scrub video.
   */
  #imam-sadr-page .ims-road-scrub-video {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 1300px !important;
    min-width: 1300px !important;
    max-width: none !important;

    height: 500px !important;
    min-height: 500px !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    object-fit: cover;
    object-position: left top;

    transform: translateX(-30%);

    pointer-events: none;

    background: #fff !important;

    /*
     * Poster image remains visible until iPhone
     * has actually decoded the video.
     */
    opacity: 0;

    z-index: 1;
  }


  #imam-sadr-page
  .ims-road-scrub-video.ims-video-ready {
    opacity: 1;
  }
}


/*
 * Firefox hairline correction.
 * Mobile only, so desktop Firefox is also untouched.
 */
@media (max-width: 900px) {
  @-moz-document url-prefix() {
    #imam-sadr-page .ims-road-scrub-video {
      clip-path: inset(1px);
    }
  }
}

/* =========================================================
   ROAD POSTER — DESKTOP HIDDEN, MOBILE ONLY
   ========================================================= */

/* NEVER show the separate fallback image on desktop */
#imam-sadr-page .ims-road-scrub-poster {
  display: none !important;
}


/* Show it only on mobile/iPhone */
@media (max-width: 900px) {

  #imam-sadr-page .ims-road-scrub-poster {
    display: block !important;

    position: absolute !important;
    top: 0 !important;
    left: 0 !important;

    width: 1300px !important;
    min-width: 1300px !important;
    max-width: none !important;

    height: 500px !important;
    min-height: 500px !important;
    max-height: none !important;

    margin: 0 !important;

    object-fit: cover;
    object-position: left top;

    transform: translateX(-30%);

    pointer-events: none;
    z-index: 0;
  }
}