/* The page sections: hero, intro, the Explore panel, finale facts, Helipad Moments carousel, maps cards, credits. */

/* Hero: replace the background photo in .ab-hero-media, or put a <video autoplay muted loop playsinline>
   inside .ab-hero-media for a real video. @keyframes drift = slow zoom, glint = moving light sweep. */
/* hero */
.ab-hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #c39a6b; color: #fff; z-index: 4; }
.ab-hero-media { inset: -4%; background: url("../media/burj-aerial.jpg") center 42% / cover no-repeat; animation: drift 34s ease-in-out infinite alternate; transform-origin: 62% 45%; }
.ab-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.16) 48%, transparent 62%); background-size: 260% 100%; animation: glint 9s linear infinite; mix-blend-mode: soft-light; }
.ab-hero-shade { inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0.12), rgba(0,0,0,0.42) 75%), linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.38)); }
.ab-hero.ab-paused .ab-hero-media, .ab-hero.ab-paused .ab-hero-media::after { animation-play-state: paused; }
@keyframes drift { 0% { transform: scale(1.04) translate(0, 0); } 100% { transform: scale(1.2) translate(-3%, 1.5%); } }
@keyframes glint { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.ab-hero-title { inset: 0; place-content: center; }
.ab-hero-title .ab-pre { font-size: clamp(16px, 1.9vw, 26px); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ab-hero-title h1 { margin: 0; font-size: clamp(46px, 8.4vw, 124px); line-height: 0.92; font-weight: 600; letter-spacing: -0.02em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.ab-hero-title h1 small { font-size: 0.5em; font-weight: 600; vertical-align: 0.2em; }
.ab-hero-title .ab-ar { font-family: var(--arabic); font-size: clamp(58px, 9vw, 132px); line-height: 1.1; margin-top: -0.12em; direction: rtl; text-shadow: 0 2px 24px rgba(0,0,0,0.3); }
.ab-hero-bar { left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.ab-pause { width: 34px; height: 34px; border: 0; background: rgba(32,33,36,0.72); color: #fff; place-items: center; }
.ab-pause svg { width: 12px; height: 12px; fill: currentColor; }
.ab-hero-credit { font-size: 15px; gap: 14px; }
.ab-hero-credit span + span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.7); }

/* intro statement */
.ab-intro { min-height: 100vh; background: var(--dark); color: var(--light); place-content: center; padding-block: 18vh; }
.ab-intro p { margin: 0 auto; max-width: 30ch; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.22; font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
.ab-intro .ab-alt { margin-top: 48px; font-size: clamp(18px, 1.8vw, 26px); max-width: none; }
/* the Burj Al Arab icon above the intro (the loader's drawing, added in JS): it waits, hidden, until the intro scrolls
   into view (.ab-play), then builds itself once; no breathing here */
.ab-intro .ab-burj-icon { width: clamp(64px, 7vw, 96px); margin: 0 auto clamp(22px, 4vh, 40px); }
.ab-intro .ab-burj-icon.ab-play { animation: none; }
.ab-intro .ab-burj-icon:not(.ab-play), .ab-intro .ab-burj-icon:not(.ab-play) * { animation: none !important; }
body.ab-cyber .ab-intro .ab-burj-icon path { stroke: var(--cy); }
.ab-linkbtn { background: none; border: 0; color: var(--orange); font: inherit; text-decoration: underline; text-underline-offset: 5px; }
.ab-linkbtn svg { width: 0.9em; height: 0.9em; }

/* explore panel */
.ab-ar-icon { width: 210px; height: 110px; }

/* finale facts */
.ab-finale .ab-copy { width: min(560px, 100%); }
.ab-factgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-fact { --al-border-bg: var(--line-dark); min-width: 0; }   /* outline: alfuix al-border along the cut corners */
.ab-fact b { font-size: 24px; font-weight: 500; color: #f6b26b; line-height: 1; font-variant-numeric: tabular-nums; }
.ab-fact p { font-size: 14.5px; line-height: 1.45; }
/* aquarium species guide: smaller names, each with a little colour swatch of the fish (tail on the left) */
.ab-species .ab-fact b { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.ab-species .ab-fact b i { width: 28px; height: 10px; border-radius: 3px 7px 7px 3px; flex: none; }

/* Helipad moments carousel: cards are generated in JS from `momentsData`. */
/* carousel */
.ab-moments { background: var(--paper); color: var(--ink); padding-block: 14vh 12vh; overflow: hidden; }
.ab-moments .ab-head { display: grid; justify-items: center; gap: 18px; }
.ab-moments .ab-head p { max-width: 48ch; margin: 0; color: var(--ink-soft); }
.ab-track { gap: 6vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 48px 22vw 8px; }
.ab-track::-webkit-scrollbar { display: none; }
.ab-moment-card { flex: 0 0 min(460px, 78vw); scroll-snap-align: center; justify-items: center; opacity: 0.45; transition: opacity 0.3s; }
.ab-moment-card.ab-on { opacity: 1; }
.ab-moment-card svg { width: 100%; height: auto; }
.ab-moment-card h3 { margin: 6px 0 0; font-size: 21px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; }
.ab-moment-card p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.ab-car-nav { gap: 14px; }
.ab-arrow { width: 40px; height: 40px; border: 1px solid var(--line-light); background: #fff; place-items: center; color: var(--ink); }
.ab-arrow svg { width: 14px; height: 14px; }
.ab-dot { width: 8px; height: 8px; border: 0; background: #c9c3bb; }
.ab-dot[aria-current="true"] { background: var(--orange); box-shadow: 0 0 0 7px rgba(227,116,0,0.15); }

/* maps cards */
.ab-maps { background: #f8f9fa; color: var(--ink); padding-block: 12vh; }   /* light grey, like the end bar; in Cyber dark #061019, also like the end bar (css/modes.css) */
.ab-maps .ab-head { display: grid; justify-items: center; gap: 12px; margin-bottom: 44px; }
.ab-maps .ab-head .ab-big { font-size: clamp(28px, 3.2vw, 46px); }
.ab-maps .ab-head .ab-the { font-size: clamp(16px, 1.6vw, 22px); }
.ab-maps .ab-head p { margin: 0; max-width: 46ch; color: var(--ink-soft); }
.ab-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1440px; }
.ab-mcard { justify-items: center; align-content: start; min-width: 0; }
.ab-mcard .ab-ph { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #ddd; }   /* corners cut by alfuix al-corner al-corner-all-12 in the markup */
.ab-mcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-mcard p { margin: 0; color: var(--ink-soft); max-width: 42ch; }

/* credits */
.ab-credits { background: var(--paper); color: var(--ink); padding-block: 10vh 12vh; justify-items: center; }
.ab-credits .ab-more { margin: 0; max-width: 60ch; font-size: clamp(18px, 1.6vw, 22px); }
.ab-credits .ab-more a { font-weight: 500; text-underline-offset: 4px; }
.ab-credits .small { margin: 0; max-width: 60ch; font-size: 14px; color: var(--ink-soft); }
.ab-credits .small b { color: var(--ink); font-weight: 500; }
.ab-wordmark { justify-items: center; }
.ab-wordmark .ab-en { font-size: 15px; font-weight: 600; letter-spacing: 0.3em; }
.ab-wordmark .ab-ar { font-family: var(--arabic); font-size: 46px; line-height: 1.2; }
details.ab-refs { width: min(710px, 100%); background: #f8f9fa; text-align: left; }
details.ab-refs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
details.ab-refs summary::-webkit-details-marker { display: none; }
details.ab-refs summary svg { width: 16px; height: 16px; transition: transform 0.2s; }
details.ab-refs[open] summary svg { transform: rotate(180deg); }
details.ab-refs ol { margin: 0; padding: 0 26px 22px 46px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
details.ab-refs a { color: var(--ink); }

.ab-endbar { background: #f8f9fa; color: var(--ink); padding-block: 44px; }
.ab-endbar .ab-in { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.ab-endbar .ab-lbl { font-size: 20px; }
footer { background: var(--dark); color: #fff; padding-block: 52px calc(52px + env(safe-area-inset-bottom, 0px)); }
footer .ab-in { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
footer nav { display: flex; flex-wrap: wrap; gap: 40px; }
footer nav a { text-decoration: none; font-size: 16px; }
footer nav a:hover { text-decoration: underline; }
footer .ab-brandmark { display: flex; align-items: center; gap: 18px; font-size: 14px; letter-spacing: 0.24em; font-weight: 600; }
footer .ab-brandmark .ab-ar { font-family: var(--arabic); font-size: 30px; letter-spacing: 0; font-weight: 700; padding-left: 18px; border-left: 1px solid rgba(255,255,255,0.6); }
footer .ab-disc { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--light-soft); }
/* the design credit: "Design by" and a name typed out letter by letter after a blinking cursor (js/page-ui.js); the
   cursor's blink is opacity only. min-height keeps the line from jumping while a name is deleted and retyped */
footer .ab-designer { flex-basis: 100%; min-height: 1.6em; font-size: 14px; color: var(--light-soft); }
footer .ab-typed { color: #fff; font-weight: 600; letter-spacing: 0.04em; }
footer .ab-typed::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 3px; vertical-align: -0.15em; background: var(--orange); animation: ab-caret 1s steps(1) infinite; }
@keyframes ab-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { footer .ab-typed::after { display: none; } }
