/* v43 — One restrained editorial type system across the portfolio.
   The fonts are already hosted by the site: no extra font download. */
:root {
  --ib-v43-latin: 'Manrope', Arial, sans-serif;
  --ib-v43-arabic: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --ib-v43-gold: #d8b989;
}

html[lang='en'] body,
html[lang='en'] button,
html[lang='en'] input { font-family: var(--ib-v43-latin); }
html[lang='ar'] body,
html[lang='ar'] button,
html[lang='ar'] input { font-family: var(--ib-v43-arabic); }

/* The photographer's name is the signature: same casing, weight and tracking. */
.brandstack strong,
.topbar .brand,
footer .brand,
.site-shell .brand {
  font-family: var(--ib-v43-latin) !important;
  font-weight: 800 !important;
  letter-spacing: .065em !important;
  line-height: 1.25;
  text-transform: uppercase;
}
.brandstack small,
.topbar .brand small,
.site-shell .brand small {
  font-family: var(--ib-v43-latin) !important;
  font-weight: 600;
  letter-spacing: .11em;
}

/* Project names have one editorial hierarchy, whether photo, film or runway. */
html[lang='en'] :is(#work .real-title, #work .ib-film-details h3,
  #work .fashion-showcase .real-title, .site-shell .collection-head h2,
  .site-shell .image-details h3, .site-shell .fashion-grid h3),
html[lang='en'] :is(.site-shell h1, .site-shell .intro-block h1) {
  font-family: var(--ib-v43-latin) !important;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.28;
  text-wrap: balance;
}
html[lang='ar'] :is(#work .real-title, #work .ib-film-details h3,
  #work .fashion-showcase .real-title, .site-shell .collection-head h2,
  .site-shell .image-details h3, .site-shell .fashion-grid h3),
html[lang='ar'] :is(.site-shell h1, .site-shell .intro-block h1) {
  font-family: var(--ib-v43-arabic) !important;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-wrap: balance;
}

html[lang='en'] #work :is(.real-sub, .ib-film-details p, .real-open),
html[lang='en'] .site-shell :is(.intro-copy, .image-details p) {
  font-family: var(--ib-v43-latin) !important;
}
html[lang='ar'] #work :is(.real-sub, .ib-film-details p, .real-open),
html[lang='ar'] .site-shell :is(.intro-copy, .image-details p) {
  font-family: var(--ib-v43-arabic) !important;
}

#work :is(.real-tag, .ib-film-eyebrow, .fashion-showcase-top),
.site-shell :is(.eyebrow, .collection-count, .detail-index) {
  font-family: var(--ib-v43-latin) !important;
  font-weight: 750;
  letter-spacing: .075em;
}

.ib-v43-jumpnav { display: none; }

@media (max-width: 740px) {
  /* Replace the now-hidden legacy filter strip with one useful category chooser. */
  html body #work > .wrap .filters { display: none !important; }
  #work > .wrap > .ib-v43-jumpnav {
    display: grid !important;
    order: 1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin: 0 0 18px;
  }
  .ib-v43-jumpnav a {
    min-height: 61px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    border: 1px solid rgba(216, 185, 137, .44);
    border-radius: 12px;
    background: #172a3e;
    color: #f1e9dd;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(4, 13, 22, .12);
    transition: border-color .2s, background .2s;
  }
  .ib-v43-jumpnav a:hover,
  .ib-v43-jumpnav a:focus-visible {
    border-color: var(--ib-v43-gold);
    background: #203850;
  }
  .ib-v43-jumpnav a:last-child {
    border-color: var(--ib-v43-gold);
    background: #d8b989;
    color: #152235;
  }
  .ib-v43-jumpnav__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ib-v43-jumpnav__label small {
    font: 700 9px/1.2 var(--ib-v43-latin);
    letter-spacing: .09em;
    opacity: .68;
  }
  .ib-v43-jumpnav__label strong {
    font-size: clamp(12px, 3.45vw, 15px);
    font-weight: 750;
    line-height: 1.5;
  }
  .ib-v43-jumpnav__arrow { font: 700 18px/1 var(--ib-v43-latin); flex: 0 0 auto; }
  #projects { scroll-margin-top: 96px; }
  #eventAlbums, #fashionAlbums { scroll-margin-top: 96px; }
  #work .ib-film-details h3 { overflow-wrap: anywhere; }
}
