:root {
  --ink: #102b46;
  --muted: #60758a;
  --blue: #0c6da4;
  --pale: #f3f8fb;
  --line: #cad9e4;
  --paper: #fff;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tour[data-direction="back"] .scene {
  --from: -24px;
}
.tour[data-direction="back"] .scene.is-leaving {
  --from: 24px;
}
.copy.is-arriving > * {
  animation: copy-in 0.42s var(--ease) both;
}
.copy.is-arriving > :nth-child(2) {
  animation-delay: 0.05s;
}
.copy.is-arriving > :nth-child(3) {
  animation-delay: 0.1s;
}
.copy.is-arriving > :nth-child(4) {
  animation-delay: 0.14s;
}
.scene.is-active img {
  animation: frame-settle 0.7s var(--ease) both;
}
@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes frame-settle {
  from {
    transform: scale(1.018) translateX(5px);
  }
  to {
    transform: none;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html, body {
  min-height: 100%;
  margin: 0;
}
body {
  background: #e9f1f6;
  color: var(--ink);
  font-family: Heebo, system-ui, sans-serif;
}
[lang="ar"] body, [lang="ar"] .tour {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
[lang="en"] body, [lang="en"] .tour {
  font-family: Inter, system-ui, sans-serif;
}
button, a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible, a:focus-visible {
  outline: 3px solid #0d75b2;
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tour {
  position: relative;
  width: min(1280px, 100%);
  min-height: 100svh;
  margin: auto;
  overflow: hidden;
  background: var(--paper);
  border-inline: 1px solid #d3e0e9;
}
.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid #e1eaf0;
}
.topbar-actions, .languages, .transport, .choice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.languages {
  border: 1px solid var(--line);
  padding: 3px;
}
.languages button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.languages button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.icon-button, .control {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.icon-button {
  font-size: 25px;
  line-height: 1;
}
.film {
  display: grid;
  grid-template-columns: minmax(250px, 0.76fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
  min-height: calc(100svh - 180px);
  padding: clamp(38px, 6vw, 84px) clamp(22px, 6vw, 88px) 132px;
}
.copy {
  max-width: 410px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-inline-end: 9px;
  vertical-align: middle;
  background: currentColor;
}
.copy h1, .endcard h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-wrap: balance;
}
.lede, .endcard p {
  max-width: 35ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.58;
}
.scene-count {
  margin: 24px 0 0;
  color: #4e6578;
  font-size: 13px;
  font-weight: 700;
}
.stage {
  position: relative;
  min-height: clamp(260px, 42vw, 560px);
}
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--from, 24px));
  transition: opacity 0.42s var(--ease), transform 0.62s var(--ease);
}
.scene.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.scene.is-leaving {
  --from: -24px;
}
.scene img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #b9cbd8;
  box-shadow: 16px 18px 0 #dbe8f0;
}
.scene-opening img {
  object-position: center;
}
.scene-opening figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 18px;
  background: rgba(16, 43, 70, 0.88);
  color: #fff;
  font-size: 14px;
}
.controls {
  position: absolute;
  z-index: 5;
  right: clamp(16px, 4vw, 56px);
  bottom: 22px;
  left: clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.timeline {
  display: flex;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline button {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.timeline button::before {
  content: "";
  position: absolute;
  inset: 18px 7px;
  background: #d8e3eb;
}
.timeline button[aria-current="step"] {
  background: transparent;
}
.timeline button[aria-current="step"]::before {
  background: var(--blue);
}
.control.play {
  gap: 8px;
  min-width: 104px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.control:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.endcard {
  position: absolute;
  z-index: 3;
  inset: 84px 0 88px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  background: #f5fafc;
}
.endcard > div {
  max-width: 510px;
}
.endcard h2 {
  margin-inline: auto;
}
.endcard p {
  margin-inline: auto;
}
.primary-action {
  min-height: 52px;
  margin-top: 28px;
  padding: 0 22px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.choice-dialog {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 43, 70, 0.54);
}
.choice-card {
  position: relative;
  width: min(460px, 100%);
  padding: 42px;
  background: #fff;
  text-align: center;
}
.choice-card h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
}
.choice-card p {
  color: var(--muted);
  line-height: 1.5;
}
.dialog-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
}
.choice-actions {
  justify-content: center;
  margin-top: 24px;
}
.choice-actions button {
  min-width: 132px;
  min-height: 52px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.choice-actions button:first-child {
  background: var(--ink);
  color: #fff;
}
[dir="ltr"] {
  font-family: Inter, system-ui, sans-serif;
}
[dir="ltr"] .copy h1 {
  max-width: 13ch;
}
@media (max-width: 780px) {
  .tour {
    border: 0;
    overflow: hidden;
  }
  .topbar {
    padding: 18px;
  }
  .film {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    min-height: 0;
    padding: 38px 22px 30px;
  }
  .copy {
    text-align: center;
  }
  .copy h1 {
    margin-inline: auto;
    max-width: 16ch;
  }
  .lede {
    margin-inline: auto;
  }
  .stage {
    width: 100%;
    min-height: min(60vw, 400px);
  }
  /*
   * The scene box is 234px tall at 390px, but the image kept its own
   * intrinsic height and rendered 400px — 166px of it hanging out below the
   * frame, with the caption (pinned to the frame's bottom edge) landing across
   * the middle of the picture and the subject cropped out of view. The image
   * now fills the frame it was always meant to fill.
   */
  .scene {
    overflow: hidden;
  }
  .scene img {
    height: 100%;
    max-height: none;
    box-shadow: 9px 11px 0 #dbe8f0;
  }
  .controls {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
    padding: 16px 22px 22px;
    background: var(--paper);
  }
  /*
   * Nine 44px stops plus gaps need 460px and the phone has 346px, so this
   * strip wraps to 6 + 3. Squeezing it onto one row was tried and reverted:
   * it costs every stop its 44px width, and a comfortable touch target beats
   * a tidier-looking progress bar.
   */
  .timeline {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .endcard {
    inset: 80px 0 82px;
  }
  .choice-card {
    padding: 46px 20px 28px;
  }
}
@media (max-width: 360px) {
  .topbar {
    gap: 10px;
  }
  .topbar .folio-brand {
    --folio-brand-gap: 0;
    flex: 0 0 44px;
    justify-content: center;
  }
  .topbar .folio-brand__type {
    display: none;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .topbar {
    padding: 12px 26px;
  }
  .film {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    min-height: 0;
    padding: 22px 50px 24px;
    gap: 38px;
  }
  .copy h1 {
    font-size: clamp(28px, 4vw, 42px);
  }
  .lede {
    margin-top: 12px;
    font-size: 15px;
  }
  .stage {
    min-height: 210px;
  }
  .scene img {
    max-height: 250px;
  }
  .controls {
    padding-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .scene {
    position: absolute;
    transform: none;
  }
  .scene:not(.is-active) {
    display: none;
  }
}

/*
 * The tour is a full-screen experience with its own close control, so it
 * carried no footer and therefore no route to the policies — the site rule is
 * that privacy, terms and accessibility are reachable from every page. A quiet
 * strip under the tour, not a second chrome bar competing with it.
 */
.tour-legal {
  padding: 18px clamp(16px, 4vw, 56px) 26px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.tour-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}
.tour-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.tour-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
