/* Home page sections */

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 120px 0 80px; background: radial-gradient(120% 90% at 80% 0%, #33473b 0%, var(--deep) 45%, var(--deep-900) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero-copy { display: grid; gap: 26px; justify-items: start; position: relative; z-index: 3; }
.hero-copy .eyebrow { color: var(--cream-2); }
.hero-copy .eyebrow .rec i { width: 8px; height: 8px; }
.hero .h-hero { max-width: 11ch; }
html[lang="en"] .hero .h-hero { max-width: 13ch; }
.accent-hl { color: var(--cream); background: linear-gradient(var(--green), var(--green)) no-repeat var(--hl-x, 100%) 92% / var(--hl, 0%) .16em; transition: background-size 1.1s var(--ease-out) .9s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[dir="ltr"] .accent-hl { --hl-x: 0%; }
.hero.is-in .accent-hl { --hl: 100%; }
.hero .lead { color: var(--cream-2); max-width: 44ch; }
.hero-proof { display: flex; align-items: center; gap: 14px; font-size: var(--fs-small); color: var(--cream-2); }
.hero-proof b { color: var(--cream); font: 900 1.2rem/1 var(--f-display); }

.hero-stage { position: relative; height: min(78vh, 680px); perspective: 1200px; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.ph-pos { position: absolute; left: 56%; top: 50%; }
.ph-pos.ph-main { z-index: 3; transform: translate(-50%, -50%); }
.ph-pos.ph-a { z-index: 2; transform: translate(-108%, -46%) rotate(-9deg); }
.ph-pos.ph-b { z-index: 2; transform: translate(8%, -54%) rotate(8deg); }
.float3d { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); height: auto; }
.f-heart { width: 128px; top: 8%; left: 4%; }
.f-comment { width: 108px; bottom: 14%; right: 2%; }
.f-play { width: 90px; top: 2%; right: 18%; }
.chip-1 { bottom: 24%; left: -4%; }
.chip-2 { top: 26%; right: -2%; }
@media (max-width: 1023px) {
  .hero { padding-top: 110px; }
  .hero-stage { height: 520px; margin-top: 8px; }
  .hero-stage .phone.ph-main { --w: 220px; }
  .hero-stage .phone.ph-side { --w: 180px; }
  .f-heart { width: 90px; } .f-comment { width: 80px; } .f-play { width: 64px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
}
@media (max-width: 520px) {
  .hero-stage { height: 440px; }
  .hero-stage .phone.ph-main { --w: 190px; }
  .hero-stage .phone.ph-side { --w: 150px; }
  .ph-pos.ph-a { transform: translate(-98%, -46%) rotate(-9deg); } .ph-pos.ph-b { transform: translate(-2%, -54%) rotate(8deg); }
  .stat-chip { padding: 9px 13px; font-size: .82rem; } .stat-chip b { font-size: 1.05rem; }
}

.hero .vp-frame { top: 92px; }
@media (max-width: 1023px) { .hero .vp-frame { display: none; } }

/* Phone → full-bleed showreel */
.reel-full { position: absolute; inset: 0; z-index: 6; clip-path: inset(50% 50% 50% 50% round 30px); visibility: hidden; background: var(--black); }
.reel-full video { width: 100%; height: 100%; object-fit: cover; }
.reel-full-ui { position: absolute; inset: auto 0 0; padding: clamp(24px, 5vw, 64px); display: grid; gap: 10px; color: var(--cream); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; z-index: 5; width: 26px; height: 42px; outline-offset: 10px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(223,216,190,.5); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* ---------- 2. Numbers ---------- */
.numbers { padding-bottom: clamp(56px, 7vw, 96px); }
.num-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.num-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
@media (min-width: 900px) { .num-grid { grid-template-columns: repeat(4, 1fr); } }
.num-grid .stat { padding-top: 22px; border-top: 1.5px solid var(--deep); }
.num-grid .stat .n { color: var(--green); }

/* ---------- 3. Trusted ---------- */
.trusted { padding-bottom: clamp(70px, 9vw, 130px); }
.prod-marquee { margin-top: clamp(56px, 7vw, 90px); display: grid; gap: 18px; justify-items: center; color: var(--deep); }
.marquee-label { font-size: var(--fs-small); color: var(--ink-2); }
.prod-marquee .marquee { width: 100%; }

/* ---------- 4. Services ---------- */
.svc-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.svc-head > div { display: grid; gap: 16px; max-width: 760px; }
.svc-list { border-top: 1px solid var(--line-light); }
.svc { position: relative; display: grid; grid-template-columns: 54px 1fr 40px; grid-template-areas: "no t arr" "no p arr"; column-gap: 18px; row-gap: 4px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-light); cursor: default; isolation: isolate; }
@media (min-width: 900px) { .svc { grid-template-columns: 70px 56px 1.1fr 1fr 48px; grid-template-areas: "no ic t p arr"; padding: 30px 0; } }
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--paper); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.svc:hover::before { transform: scaleY(1); }
.svc-no { grid-area: no; font: 500 var(--fs-small)/1 var(--f-sans); color: var(--ink-2); }
.svc-ic { grid-area: ic; width: 30px; height: 30px; color: var(--green); display: none; }
@media (min-width: 900px) { .svc-ic { display: block; } }
.svc h3 { grid-area: t; font: 900 clamp(1.5rem, 1rem + 2vw, 2.6rem)/1.2 var(--f-display); transition: transform .5s var(--ease-out), color .3s; }
.svc:hover h3 { color: var(--green); transform: translateX(calc(var(--dir, 1) * -10px)); }
html[dir="ltr"] .svc:hover h3 { transform: translateX(10px); }
.svc p { grid-area: p; color: var(--ink-2); font-size: 1rem; }
.svc-arr { grid-area: arr; width: 26px; height: 26px; justify-self: end; opacity: .35; transition: transform .5s var(--ease-out), opacity .3s; }
html[dir="ltr"] .svc-arr { transform: scaleX(-1); }
.svc:hover .svc-arr { opacity: 1; transform: rotate(-45deg); }
html[dir="ltr"] .svc:hover .svc-arr { transform: scaleX(-1) rotate(-45deg); }
.svc-preview { position: fixed; top: 0; left: 0; z-index: 30; width: 220px; aspect-ratio: 9/14; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.6); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.svc-preview video { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .svc-preview { display: none; } }

/* ---------- 5. Process (NLE timeline) ---------- */
.process { position: relative; }
.proc-pin { min-height: 100svh; display: grid; align-content: center; gap: clamp(20px, 3vh, 36px); padding: 100px 0 40px; }
.proc-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.proc-top > div { display: grid; gap: 12px; }
.proc-tc { display: flex; align-items: center; gap: 14px; font: 500 clamp(1rem, .8rem + 1vw, 1.6rem)/1 var(--f-sans); color: var(--cream-2); }
.proc-monitor { position: relative; height: clamp(250px, 38vh, 420px); border-radius: var(--r-md); background: radial-gradient(80% 120% at 50% 0%, #22302a, #0d1210); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-dark); }
.proc-steps { position: absolute; inset: 0; }
.proc-step { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 5vw, 80px); padding: 0 clamp(28px, 7vw, 110px); opacity: 0; visibility: hidden; }
.proc-step.is-on { opacity: 1; visibility: visible; }
.proc-obj { width: clamp(110px, 16vw, 240px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.proc-no { font: 500 var(--fs-small)/1 var(--f-sans); color: var(--cream-2); letter-spacing: .1em; }
.proc-step h3 { font: 900 clamp(2.2rem, 1.2rem + 4vw, 5.2rem)/1.15 var(--f-display); margin: 10px 0 8px; }
.proc-step p { font-size: var(--fs-lead); color: var(--cream-2); }
.nle { position: relative; padding: 10px 0 6px; direction: ltr; user-select: none; }
html[dir="rtl"] .nle { direction: rtl; }
.nle-ruler { color: var(--cream); margin-inline-start: 46px; }
.nle-track { display: flex; align-items: center; gap: 12px; height: 46px; margin-top: 8px; }
.trk-l { width: 34px; flex: none; font: 600 var(--fs-micro)/1 var(--f-sans); color: var(--cream-2); text-align: center; padding: 6px 0; border-radius: 6px; background: rgba(223,216,190,.07); direction: ltr; }
.clips { flex: 1; display: flex; gap: 4px; height: 100%; }
.clips i { flex: 1; display: flex; align-items: center; padding-inline: 12px; border-radius: 6px; background: var(--c); color: var(--t, var(--cream)); font: 600 .85rem/1 var(--f-sans); font-style: normal; opacity: .4; transition: opacity .35s, transform .35s var(--ease-out); white-space: nowrap; overflow: hidden; }
.clips i.is-on { opacity: 1; transform: scaleY(1.08); }
.clips i.is-done { opacity: .75; }
.wave { flex: 1; height: 70%; border-radius: 6px; background: rgba(223,216,190,.06);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20h3v-6h3v14h3v-20h3v26h3v-16h3v8h3v-22h3v30h3v-12h3v4h3v-18h3v24h3v-8h3v12h3v-26h3v20h3v-10h3v6h3v-16h3v22h3v-30h3v18h3v-4h3v10h3v-22h3v28h3v-14h3v6h3v-8h3v16h3v-20h3v12h3v-4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / 120px 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20h3v-6h3v14h3v-20h3v26h3v-16h3v8h3v-22h3v30h3v-12h3v4h3v-18h3v24h3v-8h3v12h3v-26h3v20h3v-10h3v6h3v-16h3v22h3v-30h3v18h3v-4h3v10h3v-22h3v28h3v-14h3v6h3v-8h3v16h3v-20h3v12h3v-4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / 120px 100%;
  background: var(--green); }
.playhead { position: absolute; top: 0; bottom: 0; inset-inline-start: 46px; width: 2px; background: var(--cream); pointer-events: none; z-index: 2; }
.playhead span { position: absolute; top: -4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: var(--cream); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.proc-cta { margin-top: 18px; }
@media (max-width: 700px) {
  .proc-step { grid-template-columns: 1fr; justify-items: start; gap: 6px; align-content: center; }
  .proc-obj { width: 100px; position: absolute; inset-inline-end: 22px; top: 22px; }
  .clips i { font-size: 0; padding: 0; }
}

/* ---------- 6. Case ---------- */
.case-grid { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (min-width: 1024px) { .case-grid { grid-template-columns: 1fr 1fr; } }
.case-copy { display: grid; gap: 22px; justify-items: start; }
.case-counter { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font: 900 clamp(4rem, 2rem + 8vw, 9.5rem)/1 var(--f-display); direction: ltr; margin-block: 6px; }
html[dir="rtl"] .case-counter { flex-direction: row-reverse; justify-content: flex-end; }
.cc-from { color: var(--ink-2); opacity: .35; position: relative; }
.cc-from::after { content: ""; position: absolute; left: -6%; right: -6%; top: 52%; height: 6px; background: var(--rec); transform: rotate(-12deg) scaleX(var(--x, 0)); transform-origin: left; transition: transform .8s var(--ease-out) .3s; border-radius: 3px; }
.case-counter.is-in .cc-from::after { --x: 1; }
.cc-arr { width: clamp(30px, 4vw, 54px); height: auto; color: var(--green); }
html[dir="rtl"] .cc-arr { transform: none; }
html[dir="ltr"] .cc-arr { transform: scaleX(-1); }
.cc-to { color: var(--green); }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; padding-block: 22px; border-block: 1px solid var(--line-light); margin-bottom: 8px; }
.case-stats dt { font: 900 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1 var(--f-display); }
html[dir="rtl"] .case-stats dt { text-align: right; }
.case-stats dd { margin: 6px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.case-reels { position: relative; height: clamp(480px, 60vw, 640px); }
.case-reels .reel { position: absolute; --rw: clamp(170px, 19vw, 250px); box-shadow: 0 40px 60px -30px rgba(24,33,28,.55); }
.cr-1 { top: 0; inset-inline-end: 4%; z-index: 2; }
.cr-2 { top: 16%; inset-inline-start: 4%; z-index: 1; rotate: -5deg; }
.cr-3 { bottom: 0; inset-inline-end: 30%; z-index: 3; rotate: 4deg; }

/* ---------- 7. Reel wall ---------- */
.wall { overflow: hidden; }
.wall-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.wall-head > div { display: grid; gap: 14px; }
.drag-hint { display: flex; align-items: center; gap: 10px; color: var(--cream-2); font-size: var(--fs-small); }
.drag-hint svg { width: 18px; height: 18px; }
.wall-viewport { overflow: visible; cursor: grab; padding-inline: var(--gutter); }
.wall-viewport:active { cursor: grabbing; }
.wall-track { display: flex; gap: 18px; width: max-content; }
.wall-track .reel { --rw: clamp(200px, 20vw, 270px); }
.wall-track .reel:nth-child(even) { margin-top: 48px; }
.wall-progress { margin-top: 40px; height: 2px; background: var(--line-dark); position: relative; overflow: hidden; }
.wall-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--cream); transform-origin: var(--o, right); transform: scaleX(.12); }
html[dir="ltr"] .wall-progress span { --o: left; }

/* ---------- 8. Production ---------- */
.prod-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.prod-head > div { display: grid; gap: 14px; }
.prod-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .prod-grid { grid-template-columns: 1.4fr 1fr; grid-auto-rows: 260px; } .pt-1 { grid-row: span 2; } .pt-4 { grid-column: 1 / -1; } }
.prod-tile { position: relative; min-height: 240px; border-radius: var(--r-md); overflow: hidden; background: var(--deep); color: var(--cream); isolation: isolate; }
.prod-tile video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: transform 1.2s var(--ease-out); }
.prod-tile:hover video { transform: scale(1.05); }
.pt-cap { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.pt-cap svg { width: 26px; height: 26px; flex: none; }
.pt-cap h3 { font: 700 clamp(1.15rem, 1rem + .8vw, 1.6rem)/1.3 var(--f-sans); }
.prod-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: var(--r-pill); background: rgba(46,62,53,.08); font-weight: 600; }
html[dir="rtl"] .chip { padding: 10px 14px 10px 20px; }
.chip img { width: auto; height: 30px; }

/* ---------- 9. Packages ---------- */
.packages .sec-head .h2 { max-width: 16ch; }

/* ---------- 10. FAQ ---------- */
.faq-grid { display: grid; gap: clamp(36px, 6vw, 90px); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; align-items: start; } .faq-side { position: sticky; top: 110px; } }
.faq-side { display: grid; gap: 18px; justify-items: start; }
.faq-card { margin-top: 18px; padding: 26px; border-radius: var(--r-md); display: grid; gap: 14px; justify-items: start; width: 100%; max-width: 380px; }
.faq-card p { font: 700 1.2rem/1.3 var(--f-sans); }
/* Phones/tablets: the "another question?" card comes after the questions (client 2026-10-25) */
@media (max-width: 959px) { .faq-grid { row-gap: 0; } .faq-side { display: contents; } .faq-side .h2 { margin-block: 18px clamp(28px, 6vw, 48px); } .faq-card { order: 1; margin-top: clamp(28px, 6vw, 48px); } }

/* ---------- 11. Final CTA ---------- */
.final { position: relative; overflow: hidden; min-height: 92svh; display: grid; place-items: center; text-align: center; padding: 120px 0; isolation: isolate; }
.final-in { display: grid; justify-items: center; gap: 22px; position: relative; z-index: 2; }
.final-h { font: 900 clamp(4rem, 2rem + 9vw, 11rem)/1.05 var(--f-display); }
html[lang="ar"] .final-h { line-height: 1.2; }
.final .lead { max-width: none; color: rgba(223,216,190,.85); }
.final-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 18px; font-size: var(--fs-small); color: rgba(223,216,190,.8); }
.final-proof b { color: var(--cream); font: 900 1.3rem/1 var(--f-display); margin-inline-end: 6px; }
.final .btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(223,216,190,.4); }

/* Reduced motion / no-JS fallbacks */
html.reduced .proc-steps, html.no-js .proc-steps, .process.is-static .proc-steps { position: static; display: grid; gap: 24px; padding: 28px; }
html.reduced .proc-step, html.no-js .proc-step, .process.is-static .proc-step { position: static; opacity: 1; visibility: visible; padding: 0; }
html.reduced .proc-monitor, html.no-js .proc-monitor, .process.is-static .proc-monitor { height: auto; }
html.reduced .proc-obj, html.no-js .proc-obj, .process.is-static .proc-obj { width: 80px; }
html.reduced .playhead { display: none; }
html.reduced .clips i { opacity: 1; }
.svc { cursor: pointer; }
.wall-cta { margin-top: 28px; }
.num-grid .stat { --vf-inset: -14px; --vf-inset-on: -8px; --vf-o: 0; }
.num-grid .stat.is-focus { --vf-o: 1; }
.num-grid .stat::after { color: var(--green); }
.final-stamp { position: absolute; z-index: 2; --s: clamp(96px, 11vw, 150px); top: clamp(80px, 12vh, 140px); inset-inline-end: clamp(20px, 8vw, 140px); color: var(--cream); }
@media (max-width: 700px) { .final-stamp { display: none; } }
@media (min-width: 1024px) { .hero { padding-top: 156px; } }

/* ===== Round 4 fixes ===== */
/* Hero fits short laptop screens (1366x768, 1536x864, 1280x720) */
@media (min-width: 1024px) {
  .hero { padding-top: clamp(104px, 15vh, 156px); padding-bottom: clamp(40px, 7vh, 80px); }
  .hero-copy { gap: clamp(14px, 2.6vh, 26px); }
  .hero .h-hero { font-size: min(var(--fs-hero), 11.4vh); }
  .hero-stage { height: min(74vh, 680px); }
  .hero-stage .phone.ph-main { --w: min(280px, 31vh); }
  .hero-stage .phone.ph-side { --w: min(230px, 25.5vh); }
}
.proc-pin { padding-top: clamp(76px, 10vh, 100px); }
.proc-top .h2 { font-size: min(var(--fs-h2), 8vh); }
/* Case */
.case .h2 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.4rem); text-wrap: balance; }
@media (max-width: 1023px) {
  .case-reels { height: auto; display: flex; justify-content: center; gap: 14px; }
  .case-reels .reel { position: relative; inset: auto; rotate: none; --rw: min(31%, 230px); }
  .case-reels .cr-2 { margin-top: 36px; }
}
/* Final CTA */
.final .shot { justify-self: center; }
.final-shutter { opacity: 1; }
/* Hero HUD lives on the stage side only, so it never collides with the copy */
.hero .vp-frame .hud.tr, .hero .vp-frame .hud.br { display: none; }
html[dir="ltr"] .hero .vp-frame .hud.tl, html[dir="ltr"] .hero .vp-frame .hud.bl { left: auto; right: 20px; }
@media (max-width: 700px) { .proc-obj { top: 44px; width: 84px; } }

.case-reels.one { display: grid; place-items: center; height: auto; }
.case-reels.one .phone { position: relative; inset: auto; rotate: none; }
.phone .scr .play-full { border-radius: inherit; }

/* Phones: stacked steps instead of the pinned timeline (B9) */
.process.is-static .proc-pin { min-height: 0; }
.process.is-static .proc-step { grid-template-columns: 64px 1fr; align-items: start; gap: 14px; }
.process.is-static .proc-obj { position: static; width: 64px; }
.process.is-static .proc-step h3 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); margin: 4px 0 2px; }
.process.is-static .proc-step + .proc-step { padding-top: 22px; border-top: 1px solid var(--line-dark); }
.process.is-static .playhead, .process.is-static .proc-tc { display: none; }
/* bigger invisible hit area around the small mouse icon (44px tap target) */
.scroll-cue::after { content: ""; position: absolute; inset: -6px -10px; }
