/* Cinematic layer for the public site: destination marquee, stacked service
   chapters, live numbers, photo reels and the opportunity explorers
   (/js/explore.js). Loaded after home.css / division.css. Everything degrades
   to plain stacked content without JavaScript or with reduced motion. */

/* ---------- rotating destination word in a hero ---------- */

 
 
@keyframes rotword { 0% { opacity: 0; transform: translateY(.35em); } 3%, 17% { opacity: 1; transform: none; } 20%, 100% { opacity: 0; transform: translateY(-.35em); } }

/* ---------- destination marquee ---------- */

@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes marquee-rtl { to { transform: translateX(50%); } }
.dest { position: relative; flex: none; width: 250px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; color: var(--white); isolation: isolate; margin: 0; }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.dest::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(8, 24, 41, .88)); }
.dest:hover img { transform: scale(1.08); }
.dest figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; }
.dest strong { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.15; }
.dest small { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- stacked service chapters (sticky cards) ---------- */

.chapters { list-style: none; display: grid; gap: 28px; }
.chapter { position: sticky; top: 96px; }
.chapter > a { position: relative; display: grid; align-items: end; min-height: min(78vh, 720px); border-radius: 28px; overflow: hidden; color: var(--white); isolation: isolate;
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(233, 215, 176, .18); }

.chapter > a::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 24, 41, .88) 0%, rgba(8, 24, 41, .45) 45%, rgba(8, 24, 41, 0) 75%), linear-gradient(0deg, rgba(8, 24, 41, .6), transparent 45%); }

[dir="rtl"] .chapter > a::after { transform: scaleX(-1); }

/* ---------- live numbers ---------- */

@keyframes shade-drift { to { transform: translate3d(6%, -4%, 0) scale(1.08); } }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- horizontal photo reel ---------- */

.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--s5), calc((100vw - var(--max)) / 2 + var(--s5))) 22px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.reel > * { scroll-snap-align: start; }

/* ---------- opportunity explorers ---------- */
.x-section { padding: var(--svc-pad, 100px) 0; background: var(--white); }

  

 
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.x-chip { font: 600 14px/1 var(--font-sans); padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.x-chip:hover { border-color: var(--navy); }
.x-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.x-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.x-list[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
.x-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.x-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(16, 42, 67, .5); border-color: #D9C8A4; }

.x-card h3 { font-size: 21px; line-height: 1.25; }

 

  

.x-link { font-weight: 600; font-size: 15px; color: var(--blue); margin-top: auto; }

.x-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.x-note { font-size: 13px; color: var(--warn); }

.x-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: 18px; }

/* events: a date block beside the body */

/* jobs: the whole card links to the original listing */

/* Adzuna credit on world-job cards (its attribution terms): a link under the card's own link. */

/* ---------- a single feature video band ---------- */
.film { position: relative; min-height: 80vh; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; background: var(--navy-deep); }

.film h2 { color: var(--white); font-size: clamp(40px, 6vw, 84px); max-width: 16ch; margin: 14px auto; }
.film .eyebrow { color: var(--gold); }
.film p:not(.eyebrow) { color: #D5E0EE; font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.film .hero-ctas { justify-content: center; }

/* ---------- small shared pieces ---------- */
.vhero h1 em{ font-style: italic; color: #E9D7B0; }
.x-fine { margin-top: 22px; font-size: 13px; color: var(--ink-2); }

.eyebrow .pulse { display: inline-block; vertical-align: middle; margin-right: 6px; }
.mini-steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.mini-steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; color: var(--ink-2); }
.mini-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); color: var(--navy); border: 1px solid var(--gold); }
.mini-steps b { display: block; color: var(--navy); }
[dir="rtl"] .mini-steps li { padding-left: 0; padding-right: 44px; } [dir="rtl"] .mini-steps li::before { left: auto; right: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .x-list { grid-template-columns: repeat(2, 1fr); }
  
  .reel { grid-auto-columns: minmax(260px, 44%); }
}
@media (max-width: 760px) {
  .x-list { grid-template-columns: 1fr; }
  .chapter { position: relative; top: 0; }
  .chapter > a { min-height: 70vh; }
  .chapter > a::after { background: linear-gradient(0deg, rgba(8, 24, 41, .92) 10%, rgba(8, 24, 41, .25) 70%); }
  .reel { grid-auto-columns: 78%; }
  .dest { width: 190px; }
  
  
}

@media (prefers-reduced-motion: reduce) {
   .pulse { animation: none !important; }
   
  
}
