@font-face {
  font-family: "Stencil PTx Sprayed";
  src: url("./assets/fonts/StencilPTx-Sprayed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stencil PTx";
  src: url("./assets/fonts/StencilPTx-Sprayed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas-width: 1920;
  /* 6475 with book section; ends at reward collage while book is hidden */
  --canvas-height: 5316;
  --paper: #eff1eb;
  --ink: #080808;
  --serif: "Hiragino Mincho Pro", "Hiragino Mincho ProN", "Yu Mincho", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", Arial, sans-serif;
  --spray: "Stencil PTx Sprayed", "Stencil PTx", "Special Elite", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Match paper while book CTA is hidden so the page doesn’t end in a black void */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  overflow-x: clip;
  overflow-y: visible;
}

/* Author `display` rules must not override the hidden book CTA */
.book[hidden],
.side-label[hidden] {
  display: none !important;
}

.stage {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.canvas {
  position: relative;
  width: calc(var(--canvas-width) * 1px);
  height: calc(var(--canvas-height) * 1px);
  background: var(--paper);
  overflow: hidden;
  transform-origin: top left;
}

.paper-texture {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: calc(var(--canvas-height) * 1px);
  opacity: 0.5;
  object-fit: cover;
}

.hero {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 1080px;
  overflow: hidden;
}

.hero-base,
.hero-photo,
.hero-overlay {
  position: absolute;
  left: 0;
  pointer-events: none;
  width: 1920px;
}

.hero-base {
  top: -36px;
  height: 1116px;
  object-fit: cover;
}

.hero-photo {
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
  transition: opacity 450ms ease;
}

.hero-overlay {
  top: 0;
  height: 397px;
  opacity: 0.6;
  object-fit: cover;
}

.pager {
  position: absolute;
  top: 489px;
  right: 33px;
  z-index: 5;
  display: grid;
  gap: 15px;
}

.pager button {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.pager button.is-active {
  background: #fff;
}

.hero-link {
  position: absolute;
  top: 972px;
  left: 745px;
  width: 430px;
  color: #eff1eb;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 1.25px;
  text-align: center;
}

.hero-arrow {
  position: absolute;
  top: 1034px;
  left: 970px;
  width: 19px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-arrow img {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
}

.side-label {
  position: absolute;
  z-index: 3;
  font-size: 18px;
  letter-spacing: 0.83px;
  line-height: 20px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.side-label--lisbon,
.side-label--barcelona,
.side-label--venice,
.side-label--paris,
.side-label--london {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.side-label--lisbon {
  top: 1266px;
  left: 1802px;
}

.side-label--barcelona {
  top: 1860px;
  left: 81px;
}

.side-label--venice {
  top: 3770px;
  left: 81px;
}

.side-label--paris {
  top: 4369px;
  left: 1802px;
}

.side-label--london {
  top: 4779px;
  left: 80px;
}

.side-label--visit-left {
  top: 5991px;
  left: 89px;
}

.side-label--visit-right {
  top: 5991px;
  left: 1811px;
}

.intro,
.video,
.map-story,
.reward,
.book {
  position: absolute;
  z-index: 2;
}

.intro {
  inset: 0;
}

.intro-title {
  position: absolute;
  top: 1191px;
  left: 409px;
  width: 474px;
  margin: 0;
  font-size: 75px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.75px;
}

.intro-title span,
.reward h2 span {
  display: block;
}

.spray {
  font-family: var(--spray);
  font-weight: 400;
  text-transform: uppercase;
  /* Match Photoshop tracking on ANTI-TOURISM / VANDALISM / INVITATION */
  letter-spacing: 0.75px;
}

.logo-gif {
  position: absolute;
  display: block;
  width: 372px;
  height: auto;
  object-fit: contain;
}

.logo-gif--intro {
  top: 1543px;
  left: 1095px;
}

.rule {
  position: absolute;
  width: 101px;
  height: 1px;
}

.rule--intro {
  top: 1584px;
  left: 897px;
}

.intro-copy {
  position: absolute;
  top: 1626px;
  left: 897px;
  width: 579px;
  margin: 0;
  font-size: 25px;
  line-height: 30px;
  letter-spacing: 1.25px;
  text-align: justify;
}

.watch-link {
  position: absolute;
  top: 1999px;
  left: 897px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--spray);
  font-size: 32px;
  line-height: 31px;
  letter-spacing: 0.31px;
}

.watch-link img {
  width: 17px;
  height: 17px;
}

.watch-link .watch-label {
  width: 162px;
  height: 26px;
}

.video {
  top: 2157px;
  left: -4px;
  z-index: 3;
  width: 1928px;
  height: 1081px;
  background: #07366a;
}

.video > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 482px;
  left: 930px;
  z-index: 2;
  width: 116px;
  height: 100px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.play-button img {
  width: 100%;
  height: 100%;
  transform: rotate(90deg);
}

.video.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.map-story {
  inset: 0;
}

.map-panorama-wrap {
  position: absolute;
  top: 3363px;
  left: 190px;
  z-index: 1;
  width: 888px;
  height: 607px;
  overflow: hidden;
  background: #0d0d0d;
}

.map-panorama-portal {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 25;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
}

.map-panorama,
#map-panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

#map-panorama canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.map-thumbs-anchor {
  position: absolute;
  top: 3996px;
  left: 190px;
  width: 887px;
  height: 193px;
  pointer-events: none;
  visibility: hidden;
}

.map-thumbs-portal {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 30;
  box-sizing: border-box;
  pointer-events: none;
}

.map-thumbs {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.map-thumbs--fixed {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.map-thumb {
  display: block;
  width: 277px;
  height: 193px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-thumb--crop img {
  height: calc(100% + 52px);
  object-position: center center;
  transform: translateY(-52px);
}

.map-thumb:hover {
  opacity: 0.92;
}

.map-thumb:focus-visible {
  outline: 2px solid rgba(8, 8, 8, 0.25);
  outline-offset: 3px;
}

.map-text {
  position: absolute;
  top: 3355px;
  left: 1205px;
  width: 533px;
}

.map-text .map-heading {
  width: 432px;
  margin: 0 0 56px;
  margin-left: auto;
  text-align: right;
  font-size: 75px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.75px;
}

.map-text .map-heading span {
  display: block;
}

.map-text .rule {
  top: 452px;
  right: 0;
}

.map-text p {
  position: absolute;
  top: 494px;
  left: 0;
  width: 533px;
  margin: 0;
  font-size: 25px;
  line-height: 30px;
  letter-spacing: 1.25px;
  text-align: right;
}

/* `< EXPLORE THE MAP` — same spray face/tracking as intro title */
.map-text .map-explore-link {
  position: absolute;
  top: 811px;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--spray);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.75px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

.map-text .map-explore-chevron {
  font-family: var(--spray);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.75px;
  transform: translateY(1px);
}

.map-text .map-explore-label {
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.reward {
  inset: 0;
}

.reward h2 {
  position: absolute;
  top: 4441px;
  left: 513px;
  width: 420px;
  margin: 0;
  font-size: 75px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.75px;
}

.reward .rule {
  top: 4600px;
  left: 966px;
}

.reward p {
  position: absolute;
  top: 4644px;
  left: 966px;
  width: 520px;
  margin: 0;
  font-size: 25px;
  line-height: 30px;
  letter-spacing: 1.25px;
  text-align: left;
}

.reward p strong {
  font-weight: 600;
}

.reward-collage {
  position: absolute;
  top: 4998px;
  left: 0;
  width: 1920px;
  height: 318px;
  overflow: hidden;
}

.reward-collage img {
  position: absolute;
  top: 0;
  height: 318px;
  object-fit: cover;
  object-position: center;
}

/* Photoshop: 5 equal panels (384px). left asset = panels 1–2 */
.reward-left {
  left: 0;
  width: 768px;
}

.reward-small {
  left: 768px;
  width: 384px;
}

.reward-mid {
  left: 1152px;
  width: 384px;
}

.reward-right {
  left: 1536px;
  width: 384px;
}

.book {
  top: 0;
  width: calc(var(--canvas-width) * 1px);
  height: calc(var(--canvas-height) * 1px);
  right: auto;
  bottom: auto;
}

.logo-gif--book {
  top: 5490px;
  left: 180px;
}

.book p {
  position: absolute;
  top: 5507px;
  left: 1067px;
  width: 736px;
  margin: 0;
  font-size: 25px;
  line-height: 30px;
  letter-spacing: 1.25px;
  text-align: center;
}

.book-panel {
  position: absolute;
  top: 5576px;
  left: 194px;
  width: 1533px;
  height: 561px;
  object-fit: cover;
}

.book-button {
  position: absolute;
  top: 6185px;
  left: 734px;
  display: grid;
  place-items: center;
  width: 453px;
  height: 91px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(239, 241, 235, 0.9);
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 1.25px;
  text-align: center;
}

.book-button:hover,
.book-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* —— Mobile / narrow: stacked flow layout (not a scaled 1920 artboard) —— */
@media (max-width: 900px) {
  body {
    background: var(--paper);
  }

  .stage {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible;
  }

  .canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible;
    transform: none !important;
  }

  .paper-texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
  }

  .side-label {
    display: none;
  }

  .hero,
  .intro,
  .video,
  .map-story,
  .reward,
  .book {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: 100%;
    height: auto;
  }

  .hero {
    height: min(100svh, 680px);
    min-height: 420px;
    z-index: 4;
  }

  .hero-base,
  .hero-photo,
  .hero-overlay {
    width: 100%;
    left: 0;
  }

  .hero-base {
    top: 0;
    height: 100%;
    object-fit: cover;
  }

  .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Default bias toward person + Visit Saudi merch; JS overrides per slide */
    object-position: 70% 55%;
  }

  .hero-overlay {
    height: 36%;
    object-fit: cover;
  }

  .pager {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    gap: 12px;
  }

  .pager button {
    width: 14px;
    height: 14px;
  }

  .hero-link {
    top: auto;
    left: 50%;
    bottom: 58px;
    width: min(92%, 360px);
    transform: translateX(-50%);
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: 0.6px;
  }

  .hero-arrow {
    top: auto;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
  }

  .intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 48px 20px 40px;
  }

  .intro-title,
  .logo-gif--intro,
  .rule--intro,
  .intro-copy,
  .intro .watch-link {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
  }

  .intro-title {
    width: min(100%, 340px);
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.12;
    letter-spacing: 0.4px;
  }

  .intro-title span {
    padding: 0.04em 0;
  }

  .logo-gif {
    width: min(260px, 72vw);
  }

  .logo-gif--intro {
    margin: 0 auto;
  }

  .rule--intro {
    position: relative;
  }

  .intro-copy {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.4px;
    text-align: left;
  }

  .intro .watch-link {
    position: relative;
    font-size: 22px;
    line-height: 1.2;
    gap: 8px;
  }

  .watch-link .watch-label {
    width: 140px;
    height: auto;
  }

  .video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #07366a;
  }

  .play-button {
    top: 50%;
    left: 50%;
    width: 72px;
    height: 62px;
    transform: translate(-50%, -50%);
  }

  .map-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 16px 32px;
  }

  .map-text {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: 100%;
  }

  .map-text .map-heading {
    width: 100%;
    margin: 0 0 18px;
    text-align: left;
    font-size: clamp(40px, 11vw, 56px);
    letter-spacing: 0.4px;
  }

  .map-text .map-heading span {
    display: block;
  }

  .map-text .rule {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    margin: 0 0 16px;
  }

  .map-text p {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.4px;
    text-align: left;
  }

  .map-text .map-explore-link {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    justify-content: flex-start;
    margin-top: 18px;
    font-size: 22px;
    letter-spacing: 0.4px;
    white-space: normal;
  }

  .map-panorama-wrap {
    position: relative;
    top: auto;
    left: auto;
    order: 2;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 888 / 607;
  }

  .map-thumbs-anchor {
    position: relative;
    top: auto;
    left: auto;
    order: 3;
    width: 100%;
    height: 104px;
    visibility: hidden;
  }

  html.map-inline .map-thumbs-anchor {
    visibility: visible;
    pointer-events: auto;
  }

  html.map-inline .map-panorama-wrap {
    pointer-events: auto;
  }

  html.map-inline .map-thumbs--fixed {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
  }

  html.map-inline #map-panorama,
  html.map-inline .map-panorama {
    position: absolute;
    inset: 0;
  }

  .map-thumbs {
    gap: 10px;
    height: 100%;
  }

  .map-thumb {
    flex: 1 1 0;
    width: auto;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #0d0d0d;
  }

  .map-thumb--crop img {
    height: calc(100% + 52px);
    object-fit: cover;
    object-position: center center;
    transform: translateY(-52px);
  }

  .reward {
    position: relative !important;
    inset: auto !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 20px 28px;
    overflow: visible;
  }

  .reward h2,
  .reward .rule,
  .reward p,
  .reward-collage {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    max-width: 100%;
  }

  .reward h2 {
    margin: 0;
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.12;
    letter-spacing: 0.4px;
  }

  .reward h2 span {
    display: block;
    margin: 0;
    padding: 0.04em 0;
  }

  .reward .rule {
    margin: 4px 0 0;
  }

  .reward p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.4px;
    text-align: left;
  }

  .reward-collage {
    display: flex;
    gap: 8px;
    height: 168px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .reward-collage img {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 auto;
    width: auto;
    height: 100%;
    scroll-snap-align: start;
  }

  .reward-left,
  .reward-small,
  .reward-mid,
  .reward-right {
    width: auto;
    height: 100%;
  }

  .book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: auto;
    padding: 36px 20px 56px;
  }

  .logo-gif--book,
  .book p,
  .book-panel,
  .book-button {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
  }

  .logo-gif--book {
    width: min(240px, 64vw);
  }

  .book p {
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: 0.4px;
  }

  .book-panel {
    height: auto;
    aspect-ratio: 1533 / 561;
    object-fit: cover;
  }

  .book-button {
    width: min(100%, 320px);
    height: 56px;
    font-size: 18px;
    line-height: 1.2;
  }
}
