/* تجربة السكرول: أقسام بخلفية ثابتة داخل كل سكشن، وكشف ناعم بأسلوب SaaS */

.atmosphere {
  background:
    radial-gradient(900px 500px at 85% -10%, var(--orb-1), transparent 60%),
    radial-gradient(700px 480px at 0% 15%, var(--orb-2), transparent 55%),
    radial-gradient(600px 400px at 70% 85%, var(--orb-3), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 32%, var(--bg) 100%);
  transition: background 280ms ease;
}

.exp {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 108px 0 48px;
  scroll-margin-top: 96px;
}

.exp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.exp-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
}

.exp-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.exp-snacks .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(26, 8, 2, .55) 0%, rgba(26, 8, 2, .28) 42%, rgba(12, 4, 0, .68) 100%),
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.12) 3px 4px);
}

.exp-board .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(4, 16, 10, .55) 0%, rgba(4, 16, 10, .28) 42%, rgba(2, 10, 6, .68) 100%),
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.12) 3px 4px);
}

.exp-hookah .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(22, 8, 2, .55) 0%, rgba(22, 8, 2, .28) 42%, rgba(10, 4, 0, .7) 100%),
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.14) 3px 4px);
}

.exp-gta .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(8,0,16,.35) 0%, rgba(8,0,16,.15) 40%, rgba(8,0,16,.72) 100%),
    repeating-linear-gradient(
      to bottom,
      transparent 0 3px,
      rgba(0, 0, 0, .18) 3px 4px
    );
}

.scene-inner,
.gta-inner {
  position: relative;
  z-index: 2;
}

/* SaaS reveal-on-scroll: fade + slight rise + blur-to-sharp, once */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 60ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .scene-stills li,
  .gta-stills li,
  .gta-ps5 {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  }
  .js .scene-stills li.reveal.is-in:hover,
  .js .gta-stills li.reveal.is-in:hover,
  .js .gta-ps5.reveal.is-in:hover {
    transform: translateY(-4px);
  }
}

/* GTA VI section typography and layout — same arrangement as the approved GTA section */
.gta-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "copy ps5"
    "stills stills"
    "credit credit";
  gap: 16px 36px;
  align-items: center;
}
.gta-copy { grid-area: copy; }
.gta-ps5 { grid-area: ps5; }
.gta-stills { grid-area: stills; }
.gta-credit { grid-area: credit; }
.gta-wanted {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  width: max-content;
  padding: 6px 12px;
  border: 1px solid rgba(255, 46, 151, .55);
  background: rgba(0,0,0,.35);
  border-radius: 8px;
}
.wanted-label {
  font-family: "Bebas Neue", "Cairo", sans-serif;
  letter-spacing: .2em;
  font-size: 16px;
  color: #FF2E97;
}
.wanted-stars { display: flex; gap: 4px; }
.wanted-stars span {
  width: 16px;
  height: 16px;
  display: block;
  background: #3A2430;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.wanted-stars span.is-on {
  background: #FF2E97;
  filter: drop-shadow(0 0 6px #FF2E97);
}
.gta-kicker {
  font-family: "Bebas Neue", "Cairo", sans-serif;
  letter-spacing: .18em;
  font-size: 18px;
  color: #00F0FF;
  margin-bottom: 8px;
}
.exp-gta h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 8px;
}
.gta-display {
  display: inline-block;
  font-family: "Bebas Neue", "Cairo", sans-serif;
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: .04em;
  line-height: .9;
  background: linear-gradient(180deg, #fff 10%, #FF6B9D 55%, #00F0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  vertical-align: middle;
}
.exp-gta .lead { color: #FFD6EC; max-width: 28em; margin-bottom: 14px; }
.gta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-gta {
  background: linear-gradient(90deg, #FF2E97, #FF6B35);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 46, 151, .4);
  border: 0;
}
.btn-gta:hover { filter: brightness(1.07); }
.gta-stills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gta-stills li {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, .35);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.gta-stills img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}
.gta-credit {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 214, 236, .62);
  letter-spacing: .01em;
}
.gta-ps5 {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, .35);
  box-shadow:
    0 0 0 1px rgba(255, 46, 151, .25),
    0 24px 60px rgba(255, 46, 151, .28),
    0 0 80px rgba(0, 240, 255, .18);
  background: rgba(255,255,255,.92);
}
.gta-ps5 img { width: 100%; height: auto; max-height: 220px; object-fit: cover; object-position: center; }
.exp-gta { isolation: isolate; }

.scene-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "copy stills";
  gap: 20px 36px;
  align-items: center;
}
.scene-copy { grid-area: copy; }
.scene-stills { grid-area: stills; }
.scene-kicker {
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 15px;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.scene-copy h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 8px;
}
.scene-copy .lead { color: var(--text-2); max-width: 28em; margin-bottom: 14px; }
.detail-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 16px; padding: 0;
}
.detail-chips li {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.scene-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-scene { border: 0; color: #fff; }
.btn-snacks {
  background: linear-gradient(90deg, #F97316, #FBBF24);
  box-shadow: 0 8px 28px rgba(249, 115, 22, .4);
}
.btn-board {
  background: linear-gradient(90deg, #16A34A, #4ADE80);
  box-shadow: 0 8px 28px rgba(22, 163, 74, .35);
}
.btn-hookah {
  background: linear-gradient(90deg, #C2410C, #E8C27A);
  box-shadow: 0 8px 28px rgba(194, 65, 12, .4);
}
.btn-scene:hover { filter: brightness(1.07); }
.scene-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.scene-stills li {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.scene-stills img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}
.scene-stills span {
  display: block;
  padding: 6px 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .exp { min-height: 0; overflow: visible; padding: 72px 0 56px; }
  .exp-layout, .gta-inner, .scene-inner { grid-template-columns: 1fr; gap: 28px; }
  .gta-inner {
    grid-template-areas:
      "copy"
      "stills"
      "credit"
      "ps5";
  }
  .scene-inner {
    grid-template-areas:
      "copy"
      "stills";
    gap: 24px;
  }
  .gta-ps5 { max-width: 420px; }
  .gta-stills { grid-template-columns: 1fr 1fr; }
  .scene-stills { grid-template-columns: 1fr 1fr; }
  .gta-stills img { height: 110px; }
  .scene-stills img { height: 110px; }
  .gta-ps5 img { max-height: none; }
  .scene-copy h2 { font-size: clamp(28px, 9vw, 40px); }
}

@media (max-width: 560px) {
  .exp-layout, .gta-inner, .scene-inner { width: min(var(--max), calc(100% - 28px)); }
  .gta-stills img,
  .scene-stills img { height: 96px; }
  .detail-chips li { font-size: 12px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Word-mask typography (Arabic words, never letters) */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.18em 0.04em 0.2em;
  margin: -0.18em -0.04em -0.2em;
}
.word-inner { display: inline-block; }

/* Background is slightly taller so cheap parallax never shows edges */
.exp-bg img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.scene-stills,
.gta-stills,
.gta-ps5 { perspective: 900px; }

/* Fullpage / section-snap navigator */
#services { display: contents; }

.fp-dots {
  position: fixed;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-dots a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  position: relative;
}
.fp-dots a::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}
.fp-dots a[aria-current="true"]::after {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

.fp-on,
.fp-on body {
  height: 100%;
  overflow: hidden;
}
.fp-on { scroll-behavior: auto; }
.fp-on header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  padding: 14px 0 0;
}
.fp-on .fp-root {
  height: 100svh;
  overflow: hidden;
}
.fp-on .fp-root,
.fp-on .fp-track {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.fp-on .fp-track { will-change: auto; }
.fp-on .fp-section {
  position: absolute;
  inset: 0;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}
.fp-on .fp-section.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.fp-on .fp-section.is-entering {
  z-index: 3;
  visibility: visible;
  pointer-events: auto;
}
.fp-on .fp-hero,
.fp-on .fp-plain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 108px 0 40px;
  box-sizing: border-box;
}
.fp-on .fp-contact {
  justify-content: flex-start;
  padding-bottom: 0;
}
.fp-on .fp-contact .wrap { margin-top: auto; margin-bottom: auto; }
.fp-on .fp-contact footer {
  margin-top: auto;
  padding: 16px 0 20px;
}
.fp-on .exp {
  height: 100svh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}
.fp-on .reveal,
.fp-on .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* Reduced motion: native scroll-snap, no observer hijack */
.fp-snap,
.fp-snap body { scroll-behavior: auto; }
.fp-snap { scroll-snap-type: y mandatory; }
.fp-snap .fp-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100svh;
}
.fp-snap .fp-dots { display: none; }

@media (max-width: 900px) {
  .fp-on .exp,
  .fp-on .fp-section.exp {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 116px 0 28px;
  }
  .fp-on .fp-hero,
  .fp-on .fp-plain { padding: 116px 0 28px; }
  .fp-dots { inset-inline-end: 4px; }
  .fp-on .exp-gta { padding-top: 148px; }
}

@media (prefers-reduced-motion: reduce) {
  .word-inner { transform: none !important; }
  .fp-on .fp-track { will-change: auto; }
}


/* Cinematic overlays — cheap CSS only */
.cine-fx {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
}
.cine-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px 36px rgba(0,0,0,.42);
}
.cine-grain {
  position: absolute;
  inset: 0;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.cine-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.5), transparent 62%);
  mix-blend-mode: screen;
}
.cine-sweep {
  position: absolute;
  inset: -10% -30%;
  opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.2) 50%, transparent 58%);
}
.cine-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 7.5vh;
  background: #050308;
  transform: scaleY(0);
}
.cine-bar-top { top: 0; transform-origin: 50% 0%; }
.cine-bar-bot { bottom: 0; transform-origin: 50% 100%; }

@media (max-width: 900px) {
  .cine-grain { opacity: .03; }
  .cine-vignette { box-shadow: inset 0 0 80px 20px rgba(0,0,0,.35); }
  .cine-bar { height: 5vh; }
}

/* ===== Mobile: native momentum scroll + compact layout (desktop .fp-on unchanged) ===== */
.m-cta { display: none; }

.fp-mobile,
.fp-mobile body {
  height: auto !important;
  overflow: visible;
}
.fp-mobile {
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scroll-snap-type: y proximity;
}
.fp-mobile .fp-root,
.fp-mobile .fp-track {
  position: relative;
  height: auto !important;
  overflow: visible !important;
}
.fp-mobile .fp-section,
.fp-mobile .fp-section.exp,
.fp-mobile .exp {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: auto !important;
  scroll-snap-align: start;
  scroll-margin-top: 76px;
}
.fp-mobile .fp-hero,
.fp-mobile .fp-plain {
  display: block;
  padding: 88px 0 112px;
}
.fp-mobile .fp-contact { padding: 72px 0 24px; }
.fp-mobile .exp { padding: 88px 0 112px; }
.fp-mobile .hero { padding: 20px 0 8px; text-align: center; }
.fp-mobile header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 8px 0 14px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 18, .94) 0%, rgba(8, 6, 18, .72) 58%, rgba(8, 6, 18, 0) 100%);
}
.fp-mobile header .nav { pointer-events: auto; }
.fp-mobile .nav { padding: 8px 12px; border-radius: 18px; }
.fp-mobile .brand img { height: 28px; }
.fp-mobile .fp-dots,
.fp-mobile .cine-fx { display: none !important; }

.fp-mobile h1 { font-size: clamp(28px, 8.4vw, 40px); line-height: 1.28; }
.fp-mobile .lead { font-size: 16px; line-height: 1.75; margin-bottom: 20px; }
.fp-mobile .scene-copy h2,
.fp-mobile .exp-gta h2 { font-size: clamp(26px, 8vw, 36px); line-height: 1.25; }
.fp-mobile .scene-copy .lead { max-width: none; }
.fp-mobile .nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
}
.fp-mobile .btn,
.fp-mobile .btn-scene,
.fp-mobile .btn-gta,
.fp-mobile .hero-actions .btn,
.fp-mobile .scene-actions .btn,
.fp-mobile .gta-actions .btn {
  min-height: 44px;
}

/* Stronger photo scrims so Arabic text stays readable */
.fp-mobile .exp-snacks .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(26, 8, 2, .78) 0%, rgba(26, 8, 2, .5) 42%, rgba(12, 4, 0, .86) 100%);
}
.fp-mobile .exp-board .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(4, 16, 10, .78) 0%, rgba(4, 16, 10, .5) 42%, rgba(2, 10, 6, .86) 100%);
}
.fp-mobile .exp-hookah .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(22, 8, 2, .78) 0%, rgba(22, 8, 2, .5) 42%, rgba(10, 4, 0, .88) 100%);
}
.fp-mobile .exp-gta .exp-bg::after {
  background:
    linear-gradient(180deg, rgba(8, 0, 16, .78) 0%, rgba(8, 0, 16, .48) 40%, rgba(8, 0, 16, .9) 100%);
}
.fp-mobile .exp-bg img { object-position: center 28%; }
.fp-mobile .exp-gta .exp-bg img { object-position: center 38%; }
.fp-mobile .scene-stills img,
.fp-mobile .gta-stills img { height: 122px; }
.fp-mobile .gta-wanted { margin-top: 0; }

/* Cheap scroll-triggered motion: no blur/filter */
.fp-mobile .js .reveal {
  filter: none !important;
  transform: translateY(16px);
}
.fp-mobile .js .reveal.is-in {
  filter: none !important;
  opacity: 1;
  transform: none;
}
.fp-mobile .word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease;
}
.fp-mobile .word-inner.is-in {
  transform: none;
  opacity: 1;
}

.fp-mobile .m-cta {
  display: flex;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 35;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--glass) 90%, #000 10%);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.fp-mobile .m-cta .btn {
  flex: 1;
  min-height: 44px;
  height: 44px;
}
.fp-mobile #main { padding-bottom: 88px; }

@media (prefers-reduced-motion: reduce) {
  .fp-mobile { scroll-snap-type: none; }
  .fp-mobile .word-inner,
  .fp-mobile .js .reveal,
  .fp-mobile .js .reveal.is-in,
  .fp-mobile .word-inner.is-in {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
}
