/* opening: responsibility-owned styles; cascade order preserved. */
.site-header {
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--ivory);
  padding: 20px max(32px,calc((100vw - 1200px)/2));
  min-height: 86px;
  border-bottom: 1px solid #c6a15c40;
}

.header-rihla {
  font-family: 'Segoe UI',Tahoma,serif;
  font-size: 34px;
  line-height: 1.2;
  color: var(--gold);
  padding-right: 22px;
  border-right: 1px solid #c6a15c55;
  flex-shrink: 0;
}

.site-header .brand {
  font: 500 13px/1.5 var(--font-reading);
  letter-spacing: 1.3px;
  color: var(--paper);
  white-space: nowrap;
}

.site-header .brand-symbol {
  display: none;
}

.site-header nav {
  display: flex;
  gap: 21px;
  margin-left: auto;
  align-items: center;
}

.site-header nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: #e1dfd4;
  white-space: nowrap;
}

.site-header nav a:hover, .site-header nav a[aria-current="location"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--navy);
  color: var(--ivory);
  padding: 28px max(32px,calc((100vw - 1200px)/2)) 64px;
  gap: 0;
}

.hero-artwork {
  margin: 0 0 35px;
  min-width: 0;
}

.hero-artwork {
  overflow: hidden;
}

.hero-artwork img {
  display: block;
  width: 100%;
  height: clamp(260px,27vw,365px);
  object-fit: cover;
  object-position: 50% 59%;
  border: 0;
  background: var(--paper);
  clip-path: inset(0 5px);
}

.hero-image-credit {
  font: 12px/1.6 var(--font-reading);
  color: #c4c4b9;
  margin-top: 9px;
  text-align: right;
}

.hero-image-credit a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-copy {
  display: block;
}

.hero h1 {
  font: 400 clamp(56px,6vw,84px)/1.08 var(--serif);
  color: var(--gold);
  margin: 0 0 18px;
  max-width: none;
  text-wrap: balance;
}

.hero-description {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-reading);
  line-height: 1.6;
  color: var(--paper);
}

.hero-description span {
  display: block;
}

.hero-description span:first-child {
  font-size: 23px;
}

.hero-description span:last-child {
  font-size: 17px;
  color: #c9cabe;
  margin-top: 5px;
}

.hero .actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  width: auto;
  margin: 28px 0 0;
}

.hero .button.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 53px;
  padding: 13px 20px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 28px;
  color: var(--navy);
  font: 600 17px/1.4 var(--font-reading);
  letter-spacing: 0;
  text-transform: none;
}

.hero .button.primary:hover {
  background: #dfbd7e;
  border-color: #dfbd7e;
}

.atlas-invitation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  padding: 13px 22px;
  border: 1px solid #c6a15c88;
  border-radius: 28px;
  min-height: 53px;
}

.atlas-invitation-copy>span {
  font: 17px/1.5 var(--font-reading);
}

.atlas-invitation-arrow {
  font-size: 22px;
  color: var(--gold);
}

.hero .atlas-invitation:hover {
  color: var(--ivory);
  border-color: var(--gold);
  background: #c6a15c20;
}

.hero .actions a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 5px;
}

.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 17px;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.back-top.is-visible, .back-top:focus {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media(max-width:1100px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px 22px;
  }

  .site-header nav {
    flex-basis: 100%;
    margin: 0;
    flex-wrap: wrap;
  }

  .hero-copy {
    column-gap: 28px;
  }

  .hero h1 {
    font-size: 62px;
  }
}

@media(max-width:760px) {
  .site-header {
    padding: 18px 6%;
  }

  .hero {
    padding: 24px 6% 42px;
  }

  .hero-artwork img {
    height: 230px;
  }

  .hero-image-credit {
    text-align: left;
  }

  .hero-copy {
    display: block;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .hero-description span:first-child {
    font-size: 20px;
  }

  .hero .actions {
    margin-top: 28px;
    width: min(100%,300px);
  }

  .site-header nav {
    gap: 10px 18px;
  }

  .header-rihla {
    font-size: 30px;
  }
}

@media(min-width:761px) {
  .site-header {
    height: 74px;
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: nowrap;
  }

  .hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 46px);
    justify-content: flex-end;
    padding: 80px max(40px,calc((100vw - 1200px)/2)) clamp(112px, 14vh, 142px);
    overflow: hidden;
  }

  .hero-artwork {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: -2;
  }

  .hero-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 46%;
    clip-path: none;
    transform: scale(1.016);
    background: transparent;
    border: 0;
  }

  .hero:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg,#101f34 0%,#101f34e8 12%,#101f3469 46%,#101f340d 80%),linear-gradient(90deg,#101f34a8 0%,#101f342e 56%,transparent 100%);
  }

  .hero-copy {
    position: relative;
    max-width: 1000px;
  }

  .hero h1 {
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--gold);
    text-shadow: 0 2px 18px #101f3466;
  }

  .hero-description span:first-child {
    font-size: 26px;
    color: var(--ivory);
  }

  .hero-description span:last-child {
    font-size: 19px;
    color: var(--paper);
    margin-top: 4px;
  }

  .hero .actions {
    margin-top: 28px;
    gap: 18px;
  }

  .hero .button.primary, .hero .atlas-invitation {
    min-height: 54px;
    padding: 13px 23px;
  }

  .hero .atlas-invitation {
    background: #101f3470;
    border-color: #c6a15caa;
  }

  .hero-image-credit {
    position: absolute;
    bottom: 15px;
    right: max(40px, calc((100vw - 1200px) / 2 - 48px));
    left: 40px;
    margin: 0;
    text-align: right;
    font-size: 11px;
    color: #d4d0c5;
  }
}

@media(min-width:761px) and (max-width:1100px) {
  .site-header {
    height: 120px;
    min-height: 120px;
    flex-wrap: wrap;
  }

  .hero {
    min-height: calc(100svh - 120px);
  }

  .hero h1 {
    font-size: 64px;
  }
}

@media(min-width:761px) and (max-height:700px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero h1 {
    margin-bottom: 12px;
  }

  .hero-description span:first-child {
    font-size: 22px;
  }
}

@media print {
  .hero {
    min-height: 0;
    background: white;
    color: black;
  }

  .hero:before {
    display: none;
  }

  .hero-artwork {
    position: static;
  }

  .hero h1, .hero-description span {
    color: black;
  }

  .hero .actions {
    display: none;
  }
}

.site-header {
  padding-left: 32px;
  padding-right: 32px;
  gap: 20px;
}

.hero-arabic {
  font: 400 25px/1.6 'Segoe UI',Tahoma,serif;
  text-align: left;
  width: fit-content;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero h1 {
  font-kerning: normal;
  letter-spacing: -1.4px;
  line-height: 1.1;
}

.hero-description {
  padding-left: 0;
  border-left: 0;
}

.hero .button.primary, .hero .atlas-invitation {
  min-height: 44px;
  padding: 9px 22px;
  border-radius: 24px;
  font-size: 16px;
  line-height: 1.4;
  gap: 20px;
  transition: background-color .18s ease,border-color .18s ease,color .18s ease;
}

.hero .atlas-invitation-copy>span {
  font-size: 16px;
  line-height: 1.4;
}

.hero .atlas-invitation-arrow {
  font-size: 18px;
}

.hero .actions {
  gap: 14px;
  margin-top: 24px;
}

@media(min-width:761px) {
  .hero-copy {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(66px,6.6vw,96px);
    margin-bottom: 22px;
  }
}

@media(min-width:761px) and (max-height:700px) {
  .hero-copy {
    padding-top: 10px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-arabic {
    font-size: 23px;
    margin-bottom: 8px;
  }

  .hero .actions {
    margin-top: 18px;
  }
}

@media(max-width:760px) {
  .site-header {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero-arabic {
    font-size: 24px;
  }
}

/* Keep the desktop header stable at compact laptop widths. The old overlapping
   breakpoints let the navigation wrap unpredictably and push the hero down. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header {
    height: auto;
    min-height: 108px;
    flex-wrap: wrap;
    align-content: center;
    gap: 4px 16px;
    padding: 9px 4%;
  }

  .site-header nav {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: clamp(14px, 2vw, 22px);
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 108px);
  }

  .hero-copy {
    min-width: 0;
    max-width: min(100%, 900px);
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(44px, 6vw, 64px);
    overflow-wrap: anywhere;
  }
}

@media(prefers-reduced-motion:reduce) {
  .hero .button.primary, .hero .atlas-invitation {
    transition: none;
  }
}

.hero-translation {
  margin: 0 0 12px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
}

.hero-translation summary.hero-arabic {
  display: block;
  width: fit-content;
  list-style: none;
  cursor: default;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  transform: none;
}

.hero-translation summary::-webkit-details-marker {
  display: none;
}

.hero-translation summary::marker {
  content: '';
}

.hero-translation summary:before, .hero-translation summary:after {
  content: none;
}

.hero-translation summary.hero-arabic span, .hero-translation[open] summary.hero-arabic span {
  display: inline-block;
  transform: none;
  rotate: none;
  font: inherit;
  color: inherit;
}

.hero-translation .hero-translation-text {
  margin-top: 8px;
  color: var(--paper);
}

.hero-translation-text p {
  font: 15px/1.5 var(--font-reading);
  margin: 0;
}

.hero-translation-text p+p {
  margin-top: 3px;
}

.hero-translation summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.hero-image-credit{z-index:2}

.hero-translation summary.hero-arabic {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #ffd477;
  cursor: pointer;
}

.hero-translation summary.hero-arabic span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-translation summary.hero-arabic::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.hero-translation summary.hero-arabic:hover,
.hero-translation[open] summary.hero-arabic {
  color: #ffe2a0;
}

.site-header .header-hourglass {
  margin-inline-start: 8px;
  vertical-align: middle;
  color: var(--gold);
  flex: none;
}
