/* the entrance overlay: one still photo with its logo, the tagline and the button; lifted away to enter */
.intro { --cream: #fbf1e0; position: fixed; inset: 0; z-index: 100; display: none; background: #6b3f1a; color: var(--cream); overflow: hidden; isolation: isolate; transition: transform 700ms var(--ease-drawer); will-change: transform; }
html[data-intro="on"] .intro { display: block; }
html[data-intro="on"][data-leaving] .intro { transform: translateY(-100%); }
html[data-intro="off"] .intro { display: none; }
html[data-intro="on"] body { overflow: hidden; }
.intro__bg { position: absolute; inset: 0; }
.intro__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; object-position: center; }
/* a soft shade under the words so they read over the photo */
.intro::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgb(38 18 8 / 0.88) 0%, rgb(38 18 8 / 0.62) 30%, rgb(38 18 8 / 0) 62%); }
.intro__lang { position: absolute; z-index: 5; inset-block-start: max(0.75rem, env(safe-area-inset-top)); inset-inline-end: 0.75rem; }
.intro__lang .languages a { background: rgb(251 241 224 / 0.92); }
.intro__copy { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: clamp(4.5rem, 12svh, 7.5rem); display: grid; justify-items: center; gap: clamp(1rem, 2.6svh, 1.5rem); padding-inline: 1.25rem; text-align: center; }
.intro__tagline { margin: 0; max-inline-size: 32ch; font-family: "Amiri", var(--display); font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.5; color: var(--cream); text-wrap: balance; text-shadow: 0 1px 14px rgb(38 18 8 / 0.55); }
html[lang="en"] .intro__tagline { font-family: var(--display); font-weight: 600; font-size: clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.15; max-inline-size: 30ch; }
.intro__enter { min-inline-size: 14rem; min-block-size: 3.25rem; border-color: rgb(251 241 224 / 0.55); font-size: 1.0625rem; }
.intro__cue { position: absolute; z-index: 3; inset-block-end: 0.5rem; inset-inline: 0; display: grid; justify-items: center; gap: 0.3rem; inline-size: max-content; min-block-size: 2.75rem; margin: 0 auto; padding: 0.25rem 1rem; border: 0; background: none; color: rgb(251 241 224 / 0.85); font: inherit; font-size: 0.875rem; cursor: pointer; }
.intro__cue i { display: block; inline-size: 1px; block-size: 1.25rem; background: var(--cream); transform-origin: top; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 48rem) { .intro__cue { inset-inline: auto 2rem; margin: 0; inset-block-end: 1rem; } }

/* phones and tall screens: the portrait photo fills the visible screen from its top edge; the logo sits in the upper third */
.intro__bg picture { display: contents; }
@media (max-width: 47.99rem), (max-aspect-ratio: 1/1) {
  .intro { background: #8a5a2c; }
  .intro__img { object-position: 50% 0; }
  .intro::after { background: linear-gradient(0deg, rgb(38 18 8 / 0.78) 0%, rgb(38 18 8 / 0.5) 22%, rgb(38 18 8 / 0.16) 38%, rgb(38 18 8 / 0) 52%); }
  .intro__copy { inset-block-end: clamp(3.5rem, 8svh, 5.5rem); gap: 0.9rem; }
  .intro__tagline { font-size: clamp(1.375rem, 6vw, 1.75rem); }
  html[lang="en"] .intro__tagline { font-size: clamp(1.5rem, 6.4vw, 1.875rem); }
  .intro__lang .languages a { background: rgb(251 241 224 / 0.9); }
}
@media (max-height: 36rem) { .intro__cue { display: none; } .intro__copy { inset-block-end: 1rem; } }
@media (prefers-reduced-motion: reduce) {
  .intro, .intro__cue i { animation: none; transition: none; }
}

/* the header and the banner appear only once the entrance has gone */
html[data-intro="on"] .hv-header, html[data-intro="on"] .banner { visibility: hidden; }

/* the Diriyah triangle border between the opening and the home page */
.hv-triangles { block-size: 0.875rem; background-color: var(--maroon); clip-path: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 14 0l14 14z'/%3E%3C/svg%3E") repeat-x center bottom / 28px 14px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 14 0l14 14z'/%3E%3C/svg%3E") repeat-x center bottom / 28px 14px; }

/* the home page: the banner at the page's width and its own ratio, the two buttons just under it */
.home { background: #fbf5ea; padding-block-end: clamp(1.5rem, 4vw, 2.5rem); }
.home__frame { position: relative; container-type: inline-size; inline-size: 100%; }
.home__banner { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1672 / 941; }
.home__line { position: absolute; inset-inline: 0; inset-block-start: 79%; margin: 0; padding-inline: 4cqw; text-align: center; color: var(--maroon); font-family: "Amiri", var(--display); font-weight: 700; font-size: clamp(1rem, 3.1cqw, 2.5rem); line-height: 1.4; text-wrap: balance; }
html[lang="en"] .home__line { font-family: var(--display); font-weight: 600; font-size: clamp(1.0625rem, 3.2cqw, 2.625rem); line-height: 1.15; letter-spacing: 0.01em; }
@container (max-width: 30rem) { .home__line { inset-block-start: 79%; font-size: 4.4cqw; } html[lang="en"] .home__line { font-size: 4.3cqw; } }
.home__actions { display: flex; justify-content: center; gap: 0.75rem; padding: clamp(0.9rem, 2.4vw, 1.5rem) 1rem 0; }
.home__actions .hv-btn { flex: 0 1 15rem; min-block-size: 3.25rem; padding-inline: 1rem; text-align: center; }
.hv-btn--outline { border-color: rgb(48 80 16 / 0.55); color: var(--green); background: transparent; }
@media (hover: hover) and (pointer: fine) { .hv-btn--outline:hover { background: var(--green); border-color: var(--green); color: #fbf4e8 !important; } }
@media (max-width: 30rem) { .home__actions .hv-btn { flex: 1 1 0; min-inline-size: 0; font-size: 1rem; } }
