:root {
  --petrol: #0f4a58;
  --petrol-deep: #0a3540;
  --petrol-soft: #dbe7e8;
  --ivory: #f4eddf;
  --stone: #ebe5da;
  --sand: #d8cfbf;
  --ink: #142326;
  --ink-soft: #4b5a5c;
  --line: rgba(20, 35, 38, 0.14);
  --saffron: #e0a43a;
  --radius: 14px;
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --wrap: min(1200px, 100% - 2 * clamp(1rem, 5vw, 4rem));
  --hero-length: 520vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 0;
  font: 600 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn svg { width: 1.2em; height: 1.2em; transition: transform .25s ease; }
.btn--primary { background: var(--petrol); color: var(--ivory); box-shadow: 0 10px 30px -12px rgba(10, 53, 64, .7); }
.btn--primary:hover { background: var(--petrol-deep); transform: translateY(-2px); }
.btn--primary:hover svg { transform: translateX(-4px); }

/* ------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateY(-110%); transition: transform .5s cubic-bezier(.2,.7,.2,1), background-color .3s ease;
}
.site-header.is-visible { transform: none; }
.site-header.is-solid { background: rgba(235, 229, 218, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--petrol); }
.brand__mark { width: 2.2rem; height: 2.2rem; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; color: var(--ink); }
.brand__name b { font-size: 1.05rem; }
.brand__name small { font-size: .78rem; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2rem); font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; }
.nav a:not(.nav__cta):hover { color: var(--petrol); }
.nav__cta { background: var(--ink); color: var(--ivory); padding: .5rem 1.1rem; border-radius: 999px; }
@media (max-width: 720px) { .nav a:not(.nav__cta) { display: none; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: var(--hero-length); background: #e7e2d8; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__poster, .hero__still, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img, .hero__still img { width: 100%; height: 100%; object-fit: cover; }
.hero__still { display: none; }
.hero__canvas { opacity: 0; transition: opacity .6s ease; }
.hero__copy, .hero__cue { z-index: 1; }
.hero.is-live .hero__canvas { opacity: 1; }
.hero.is-live .hero__poster { opacity: 0; transition: opacity .6s ease .2s; }

.hero__copy {
  position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none;
}
.hero__text {
  width: min(46rem, 54%);
  margin-inline-start: 0;        /* RTL: hugs the right edge */
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-start;
  transform: translateY(-6vh);
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.45;           /* room for dots and descenders */
  letter-spacing: 0;
  color: var(--ink);
  padding-block: .1em;
  opacity: var(--t, 0);
  transform: translateY(calc((1 - var(--t, 0)) * 26px));
  text-wrap: balance;
}
.hero__btn {
  margin-top: clamp(1rem, 2.4vw, 1.75rem);
  opacity: var(--b, 0);
  transform: translateY(calc((1 - var(--b, 0)) * 18px));
  pointer-events: auto;
}
.hero__btn[inert] { pointer-events: none; }

.hero__cue {
  position: absolute; inset-inline: 0; bottom: max(1.6rem, env(safe-area-inset-bottom, 0px) + 1rem);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-size: .85rem; color: rgba(244, 237, 223, .88); text-shadow: 0 1px 8px rgba(0,0,0,.35); opacity: var(--c, 1);
  pointer-events: none;
}
.hero__cue i { width: 1px; height: 2.6rem; background: linear-gradient(rgba(244,237,223,.8), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-aspect-ratio: 9/10) {
  .hero { --hero-length: 380vh; }
  .hero__copy { align-items: flex-start; padding-top: calc(env(safe-area-inset-top, 0px) + 31svh); }
  .hero__text { width: 100%; transform: none; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 4.2rem); }
}

/* static composition: reduced motion, or no WebGL */
.hero.is-static { height: 100vh; height: 100svh; }
.hero.is-static .hero__poster, .hero.is-static .hero__canvas, .hero.is-static .hero__cue { display: none; }
.hero.is-static .hero__still { display: block; }
.hero.is-static .hero__title, .hero.is-static .hero__btn { opacity: 1; transform: none; }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; color: var(--petrol); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--saffron); }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.lede { margin-top: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 38rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* services */
.services { background: var(--ivory); position: relative; }
.services__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--ivory); padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; box-shadow: 0 0 0 .5px var(--line); transition: background-color .3s ease, opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.service:hover { background: #fbf7ee; }
.service__no { position: absolute; inset-inline-end: 1.5rem; top: 1.4rem; font-size: .9rem; font-weight: 600; color: var(--sand); }
.service__icon { width: 2.8rem; height: 2.8rem; color: var(--petrol); margin-bottom: 1.4rem; }
.service h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service p { color: var(--ink-soft); font-size: 1rem; }

/* destinations: boarding passes */
.destinations { background: var(--stone); }
.passes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.4rem; }
.pass {
  display: grid; grid-template-columns: 1fr auto; background: #fbf8f2; border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -28px rgba(20,35,38,.45);
  position: relative; transition: transform .35s ease, box-shadow .35s ease;
}
.pass:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 26px 50px -28px rgba(20,35,38,.55); }
.pass__main { padding: 1.6rem 1.6rem 1.5rem; display: flex; flex-direction: column; }
.pass__label { font-size: .78rem; color: var(--ink-soft); font-weight: 500; }
.pass__city { font-size: 1.55rem; line-height: 1.4; margin-top: .1rem; }
.pass__country { font-size: .92rem; color: var(--petrol); font-weight: 600; }
.pass__main p { margin-top: .9rem; font-size: .96rem; color: var(--ink-soft); }
.pass__stub {
  width: 7.2rem; padding: 1.4rem .9rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
  border-inline-start: 2px dashed var(--sand); position: relative;
}
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; inset-inline-start: -.85rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--stone); }
.pass__stub::before { top: -.8rem; }
.pass__stub::after { bottom: -.8rem; }
.pass__code { font-family: 'IBM Plex Sans Arabic', ui-monospace, monospace; font-weight: 700; font-size: 1.7rem; letter-spacing: .08em; color: var(--petrol); writing-mode: vertical-rl; transform: rotate(180deg); }
.pass__stub a { font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--saffron); padding-bottom: 2px; white-space: nowrap; }
.pass__stub a:hover { color: var(--petrol); }

/* how */
.how { background: var(--petrol-deep); color: var(--ivory); }
.how .eyebrow { color: #9fc9cf; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: s; }
.step { border-top: 1px solid rgba(244,237,223,.22); padding-top: 1.6rem; }
.step__no { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--saffron); color: var(--petrol-deep); font-weight: 700; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.step p { color: rgba(244,237,223,.75); }
.promises { list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(244,237,223,.22); display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; font-weight: 500; }
.promises li { display: flex; align-items: center; gap: .6rem; }
.promises li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--saffron); }

/* contact */
.contact { background: var(--ivory); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }
.contact__list { margin: 2.2rem 0 0; display: grid; gap: 1.1rem; }
.contact__list div { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact__list dt { font-size: .85rem; color: var(--ink-soft); }
.contact__list dd { margin: .15rem 0 0; font-weight: 600; font-size: 1.1rem; }
.contact__list a { text-decoration: none; }
.contact__list [dir="ltr"] { display: inline-block; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; background: #fbf8f2; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: calc(var(--radius) + 4px); box-shadow: 0 30px 60px -40px rgba(20,35,38,.5); }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .4rem; }
.field--half { grid-column: span 1; }
@media (max-width: 480px) { .field--half { grid-column: 1 / -1; } }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5 var(--font); color: var(--ink); background: #fff;
  border: 1px solid rgba(20,35,38,.2); border-radius: 10px; padding: .75rem .9rem; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(15,74,88,.15); }
.field input:user-invalid { border-color: #b4452f; }
.form__submit { grid-column: 1 / -1; justify-content: center; margin-top: .4rem; }
.form__msg { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-soft); min-height: 1.5em; }

/* footer */
.site-footer { background: var(--ink); color: rgba(244,237,223,.75); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer__brand b { color: var(--ivory); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer__copy { width: 100%; font-size: .85rem; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cue i { animation: none; }
}
