:root {
  --black: #0b0b0d;
  --panel: #121216;
  --gold: #d4af37;
  --gold-soft: #e8c15a;
  --text: #f2efe8;
  --muted: #cfccc0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .nav-brand, .footer-brand { font-family: 'Sora', 'Inter', sans-serif; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 16px 10px;
  background: rgba(11,11,13,.88); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(212,175,55,.2);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(11,11,13,.94); box-shadow: 0 1px 0 rgba(212,175,55,.3); }
.nav-top { display: flex; align-items: center; justify-content: center; }
.nav-spacer { width: 42px; flex: none; }
main { padding-top: 44px; }
.nav-brand { cursor: pointer;  display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-photo { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(212,175,55,.45); object-fit: cover; flex: none; }
.brand-name {
  font-family: 'Cinzel Decorative', 'Sora', serif; font-weight: 700;
  font-size: clamp(22px, 6.6vw, 42px); letter-spacing: .08em; white-space: nowrap;
  background: linear-gradient(100deg, #ffffff 34%, var(--gold) 45%, #fff3c4 50%, var(--gold) 55%, #ffffff 66%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: goldSweep 5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(212,175,55,.35));
}
@keyframes goldSweep { 0% { background-position: 130% 0; } 50% { background-position: -30% 0; } 100% { background-position: 130% 0; } }
.nav-menu-wrap { position: relative; align-self: flex-start; display: flex; justify-content: flex-start; }
.nav-burger { background: rgba(59,42,26,.6); border: 1px solid rgba(212,175,55,.45); border-radius: 10px; width: 42px; height: 38px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 176px; background: #3b2a1a; border: 1px solid rgba(212,175,55,.35); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.65); z-index: 60; }
.nav-drop-item { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: #f0e6d2; font-family: inherit; font-size: 15px; font-weight: 600; padding: 12px 14px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-drop-item:hover, .nav-drop-item:active { color: #ffd54a; background: rgba(255,213,74,.12); }
.nav-drop-item[hidden] { display: none; }
.nav-links { display: flex; gap: 14px; align-items: center; justify-content: center; }
.nav-link { background: none; border: none; cursor: pointer; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500; padding: 8px 4px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-link:hover { color: var(--gold-soft); }
.nav-link.active { color: var(--gold-soft); border-bottom-color: var(--gold); }
.nav-cta { border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); background: none; cursor: pointer; font-family: inherit; text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 16px; white-space: nowrap; transition: background .2s, color .2s; }
.nav-cta:hover, .nav-cta.active { background: var(--gold); color: var(--black); }
@media (max-width: 720px) {
  .nav { padding: 8px 12px 8px; gap: 6px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 2px; }
  .nav-link { font-size: 10.5px; padding: 6px 0; white-space: nowrap; }
  .nav-cta { font-size: 11px; padding: 5px 10px; }
  .brand-name { letter-spacing: .04em; font-size: clamp(18px, 5.8vw, 25px); }
  .brand-photo { width: 40px; height: 40px; }
  .nav-spacer { width: 36px; }
  .nav-burger { width: 36px; height: 34px; }
}

/* Tabs */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn .3s ease; }
@keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }
.tab-panel:not(#panel-home) { padding: 150px 22px 24px; max-width: 1040px; margin: 0 auto; }
.panel-sub { color: var(--muted); margin: -24px 0 26px; font-size: 14px; }
.order-alt { color: var(--muted); font-size: 14px; margin-top: 18px; }
.order-alt a { color: var(--gold-soft); }

/* Free sample */
.nav-sample { font-weight: 600; animation: samplePulse 1.5s ease-in-out infinite; }
@keyframes samplePulse { 0%, 100% { color: inherit; text-shadow: none; } 50% { color: var(--gold-soft); text-shadow: 0 0 10px rgba(212,175,55,.75); } }
.sample-promo { padding: 70px 22px; max-width: 1040px; margin: 0 auto; text-align: center; background: linear-gradient(160deg, rgba(212,175,55,.12), rgba(212,175,55,.02)); border-top: 1px solid rgba(212,175,55,.25); border-bottom: 1px solid rgba(212,175,55,.25); }
.sample-promo h2 { font-size: clamp(24px, 5vw, 38px); font-weight: 800; margin-bottom: 16px; }
.sample-promo p:not(.kicker) { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.sample-next { margin-top: 22px; padding: 22px; border: 1px solid rgba(212,175,55,.4); border-radius: 16px; text-align: center; }
.sample-next p { margin-bottom: 16px; }

/* Work carousel */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ad-card { position: relative; isolation: isolate; background: transparent; border: 1px solid rgba(212,175,55,.14); border-radius: 14px; overflow: hidden; }
.ad-card video { position: relative; z-index: 1; width: 100%; aspect-ratio: 9/16; object-fit: contain; display: block; background: transparent; }
.ad-card h3 { position: relative; z-index: 1; font-size: 13px; padding: 10px 12px 2px; margin: 0; }
.ad-badges { position: relative; z-index: 1; padding: 6px 12px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ad-badges .badge { margin-bottom: 0; font-size: 10px; padding: 3px 9px; }
@media (min-width: 860px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
.order-fab { position: fixed; bottom: 16px; right: 16px; z-index: 45; background: #121216; color: var(--gold-soft); border: 1px solid rgba(212,175,55,.75); font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; text-decoration: none; padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 26px rgba(0,0,0,.6), 0 0 14px rgba(212,175,55,.22); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.order-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.65), 0 0 20px rgba(212,175,55,.35); }
.order-fab { transition: transform .2s, box-shadow .2s, opacity .22s; }
.order-fab.scroll-hide, .order-fab.text-hide { opacity: 0; pointer-events: none; transform: translateY(8px); }
/* Extra breathing room so the fixed fab/pick bar never sits on the contact grid or footer links at rest */
.contact-buttons { margin-bottom: 26px; }
#panel-about .footer { padding-bottom: 84px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,13,.55) 0%, rgba(11,11,13,.72) 60%, var(--black) 100%); }
.hero-content { position: relative; padding: 120px 22px 80px; max-width: 900px; }
.hero-kicker, .kicker { color: var(--gold); letter-spacing: .28em; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 8vw, 76px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: #ede7da; max-width: 560px; margin: 22px 0 34px; font-size: clamp(15px, 2.4vw, 18px); }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; border: 1px solid rgba(242,239,232,.35); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* Sections */
#panel-home { padding-bottom: 40px; }
.section-title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; margin-bottom: 40px; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 14px; border-radius: 2px; }

/* Meet Ahmed */
.meet { display: grid; gap: 44px; align-items: center; padding: 84px 22px; max-width: 1040px; margin: 0 auto; }
.meet-video { display: flex; justify-content: center; }
.meet-card { max-width: 292px; width: 100%; background: var(--panel); border: 1px solid rgba(212,175,55,.45); border-radius: 22px; padding: 10px; box-shadow: 0 22px 55px rgba(0,0,0,.55), 0 0 26px rgba(212,175,55,.12); }
.meet-frame { position: relative; border-radius: 15px; overflow: hidden; border: 1px solid rgba(212,175,55,.35); background: #000; }
.meet-frame video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.meet-mute { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(11,11,13,.72); border: 1px solid rgba(212,175,55,.8); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: background .18s, color .18s, transform .15s; padding: 0; }
.meet-mute:active { transform: scale(.92); }
.meet-mute .ic-on { display: none; }
.meet-mute.on { background: var(--gold); color: #0b0b0d; }
.meet-mute.on .ic-on { display: block; }
.meet-mute.on .ic-off { display: none; }
.meet-card h3 { text-align: center; font-size: 13px; color: var(--muted); padding: 11px 10px 4px; margin: 0; font-weight: 600; }
.meet-video video { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 1px solid rgba(212,175,55,.35); display: block; background: #000; }
.meet-placeholder {
  width: 100%; height: 100%; border: 1px dashed rgba(212,175,55,.5); border-radius: 18px;
  display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center;
  color: var(--muted); text-align: center; background: var(--panel);
}
.meet-play { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.meet-text h2 { font-size: clamp(24px, 4.6vw, 34px); font-weight: 800; margin-bottom: 16px; }
.meet-text p:last-child { color: var(--muted); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { background: var(--panel); border: 1px solid rgba(212,175,55,.14); border-radius: 14px; padding: 16px 10px; text-align: center; }
.step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--black); font-weight: 800; font-size: 14px; align-items: center; justify-content: center; margin-bottom: 8px; font-family: 'Sora', sans-serif; }
.step h3 { font-size: 12.5px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 11.5px; line-height: 1.4; }

/* Work */
.project { display: grid; gap: 22px; margin-bottom: 64px; align-items: center; }
.project-media video { width: 100%; border-radius: 18px; display: block; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.badge { display: inline-block; font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--gold); border: 1px solid rgba(212,175,55,.45); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.project-text h3 { font-size: clamp(20px, 4vw, 28px); margin-bottom: 10px; }
.project-text p { color: var(--muted); max-width: 420px; }
.work-more { text-align: center; color: var(--muted); font-size: 14px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.service { background: var(--panel); border: 1px solid rgba(212,175,55,.14); border-radius: 14px; padding: 14px 14px; transition: border-color .25s; }
.service:hover { border-color: rgba(212,175,55,.5); }
.service h3 { font-size: 14px; margin-bottom: 4px; color: var(--gold-soft); }
.service p { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.quote-box { margin-top: 36px; text-align: center; background: linear-gradient(160deg, rgba(212,175,55,.14), rgba(212,175,55,.03)); border: 1px solid rgba(212,175,55,.3); border-radius: 22px; padding: 40px 26px; }
.quote-box p { max-width: 460px; margin: 0 auto 24px; color: var(--text); font-size: 17px; }

/* About */
.about-text { font-size: clamp(17px, 2.6vw, 21px); color: #ede7da; max-width: 760px; line-height: 1.75; }

/* Contact */
.contact { text-align: center; padding-bottom: 110px; }
.contact .section-title::after { margin-left: auto; margin-right: auto; }
.contact-sub { color: var(--muted); margin: -18px 0 32px; }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; }

/* Footer */
.footer { border-top: 1px solid rgba(212,175,55,.18); padding: 44px 22px 54px; text-align: center; }
.footer-brand { font-weight: 800; letter-spacing: .2em; font-size: 14px; color: var(--gold); }
.footer-line { color: var(--muted); font-size: 13px; margin: 10px 0 18px; }
.footer-copy { color: #8a877d; font-size: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Desktop */
@media (min-width: 860px) {
  .meet { grid-template-columns: 1.1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 1.15fr 1fr; gap: 44px; }
  .project.flip .project-media { order: 2; }
  .project.flip .project-text { order: 1; text-align: right; }
  .project.flip .project-text p { margin-left: auto; }
}

/* Product stills gallery */
.stills { padding: 90px 6vw; }
.stills-sub { color: var(--muted); max-width: 560px; margin: -22px 0 36px; }
.stills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-name { margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--gold, #d4af37); }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.still { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid rgba(212,175,55,.25); }
.still img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .5s ease; }
.still:hover img { transform: scale(1.04); }
.still .badge { position: absolute; left: 12px; bottom: 12px; margin: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.still .tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag-before { background: rgba(255,255,255,.85); color: #333; }
.tag-after { background: rgba(212,175,55,.92); color: #000; }
@media (max-width: 560px) { .still .badge { font-size: 9px; padding: 2px 7px; left: 8px; bottom: 8px; } .still .tag { font-size: 9px; padding: 2px 8px; } }
@media (min-width: 860px) { .stills-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Reviews */
.review-card { max-width: 640px; background: var(--panel); border: 1px solid rgba(212,175,55,.3); border-radius: 18px; padding: 28px; }
.review-text { font-size: 17px; line-height: 1.6; margin-bottom: 12px; }
.review-note { color: var(--muted); font-size: 14px; }

/* Order form */
.order { padding: 90px 6vw; }
.order-sub { color: var(--muted); max-width: 560px; margin: -22px 0 36px; }
.order-form { max-width: 560px; display: grid; gap: 18px; background: var(--panel); border: 1px solid rgba(212,175,55,.3); border-radius: 18px; padding: 30px; transition: box-shadow .4s ease; }
.order-form.flash { box-shadow: 0 0 0 2px var(--gold), 0 18px 50px rgba(212,175,55,.18); }
.order-form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.order-form input[type=text], .order-form input[type=url], .order-form select, .order-form textarea {
  background: #141414; border: 1px solid rgba(212,175,55,.5); border-radius: 12px; padding: 14px 15px;
  color: var(--text, #f2ead8); font-size: 16px; font-family: inherit; text-transform: none; letter-spacing: normal; width: 100%;
  display: block; min-height: 50px; position: relative; z-index: 2; pointer-events: auto; -webkit-appearance: none; appearance: none;
}
.order-form input[type=file] {
  display: block; width: 100%; background: #141414; border: 1px dashed rgba(212,175,55,.5); border-radius: 12px;
  padding: 14px 15px; color: var(--text, #f2ead8); font-size: 15px; position: relative; z-index: 2; pointer-events: auto;
}
.order-form input::placeholder, .order-form textarea::placeholder { color: rgba(242,234,216,.78); }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--gold); }
.order-form textarea { resize: vertical; }
.order-submit { justify-self: start; border: none; cursor: pointer; font-size: 16px; }
.order-status { margin: 0; min-height: 20px; font-size: 15px; color: var(--muted); }
.order-status.ok { color: #7dd87d; }
.order-status.err { color: #e08080; }

/* Custom dropdown (order form) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.order-form select.sr-only { display: none; }
.cs-wrap { position: relative; }
.cs-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px 15px;
  color: var(--text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; font-family: inherit; cursor: pointer; text-align: left;
}
html[lang="ar"] .cs-btn { letter-spacing: 0; }
.cs-btn:focus { outline: none; border-color: var(--gold); }
.cs-btn svg { flex: none; color: var(--gold); transition: transform .15s ease; }
.cs-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cs-list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  margin: 0; padding: 8px; list-style: none; display: grid; gap: 6px;
  background: #141414; border: 1px solid rgba(212,175,55,.35); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.65);
}
.cs-list[hidden] { display: none; }
.cs-item {
  padding: 13px 14px; border-radius: 10px; color: var(--text); font-size: 15.5px; cursor: pointer;
  background: #1b1b1b; border: 1px solid rgba(255,255,255,.06);
}
.cs-item:hover, .cs-item.active { background: rgba(212,175,55,.14); border-color: rgba(212,175,55,.5); color: var(--gold-soft); }
.order-field { display: grid; gap: 8px; }
.order-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Nav emojis: hidden on phone widths where space is tight */
.nav-emoji { margin-right: 3px; }
@media (max-width: 720px) { .nav-emoji { display: none; } }

/* Templates */
.templates-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 860px) { .templates-grid { grid-template-columns: repeat(3, 1fr); } }
.template-card { position: relative; background: var(--panel); border: 1px solid rgba(212,175,55,.14); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .2s; }
.template-card:hover { border-color: rgba(212,175,55,.55); }
.template-card img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.template-card p { margin: 0; padding: 10px 12px; font-size: 13px; font-weight: 600; color: #f0e6d2; transition: color .15s; }
.template-card:hover p, .template-card:active p { color: #ffd54a; }
.template-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,4,3,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.template-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* Language toggle */
.nav-menu-wrap { width: auto; gap: 8px; align-items: center; margin-top: 2px; }
.lang-toggle { background: rgba(59,42,26,.6); border: 1px solid rgba(212,175,55,.45); border-radius: 999px; color: var(--gold); cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700; padding: 5px 10px; line-height: 1.2; transition: background .2s, color .2s; }
.lang-toggle:hover { background: rgba(212,175,55,.18); }

/* Arabic / RTL */
html[lang="ar"] body { font-family: 'Cairo', system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: 'Cairo', 'Sora', sans-serif; }
html[lang="ar"] .hero-kicker, html[lang="ar"] .kicker, html[lang="ar"] .order-label { letter-spacing: 0; }
html.ar .cs-btn { text-align: right; }
html.ar .nav-drop-item { text-align: right; }
html.ar .order-status { direction: rtl; }

/* Header balance with lang toggle */
.nav-spacer { width: 0; }
.brand-photo { width: 40px; height: 40px; }
html[lang="ar"] .nav-brand .brand-name { font-size: clamp(18px, 5.6vw, 42px); }
@media (max-width: 720px) {
  .nav-brand .brand-name { font-size: clamp(18px, 5.6vw, 30px); }
  .nav-brand { gap: 8px; }
  .lang-toggle { padding: 4px 8px; font-size: 11px; }
}

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.price-card { background: var(--panel); border: 1px solid rgba(212,175,55,.14); border-radius: 14px; padding: 16px 14px; text-align: center; }
.price-card h3 { margin: 0 0 6px; font-size: 15px; }
.price-card p { margin: 0; font-size: 13px; color: var(--muted); }
.price-num { font-family: 'Sora', sans-serif; font-size: 26px !important; font-weight: 800; color: var(--gold) !important; margin: 4px 0 8px !important; }
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

/* Brand showcase: 5 logos + 5 ad images */
.brand-sec { margin-top: 34px; }
.brand-sec .section-title { text-align: center; }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.brand-card { background: var(--panel); border: 1px solid rgba(212,175,55,.14); border-radius: 14px; overflow: hidden; text-align: center; }
.brand-card .brand-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #0b0b0f; overflow: hidden; }
.brand-card .brand-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card .brand-img img.contain { object-fit: contain; padding: 14px; box-sizing: border-box; }
.brand-card .brand-name { margin: 0; padding: 9px 8px 11px; font-size: 12.5px; font-weight: 600; color: var(--gold); line-height: 1.35; }
@media (min-width: 720px) { .brand-grid { grid-template-columns: repeat(5, 1fr); } }
.template-name { margin: 0; padding: 9px 8px 11px; font-size: 12.5px; font-weight: 600; color: var(--gold); text-align: center; }
.template-card p.logo-src { margin: 0; padding: 0 10px 10px; font-size: 10.5px; font-weight: 500; color: #b8a26a; text-align: center; line-height: 1.35; }
.btn-wa-order { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 14px 0 4px; }
.pay-box { background: var(--panel); border: 1px solid rgba(212,175,55,.22); border-radius: 16px; padding: 16px 14px; margin-top: 26px; }
.pay-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--gold); }
.pay-row { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid rgba(212,175,55,.12); }
.pay-row:first-of-type { border-top: none; }
.pay-ico { font-size: 15px; }
.pay-name { font-weight: 600; color: #f0e6d2; font-size: 13.5px; }
.pay-val { margin-inline-start: auto; color: #b8a26a; font-size: 12.5px; }
.pay-copy { flex: none; background: transparent; border: 1px solid rgba(212,175,55,.5); color: var(--gold); border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s, color .15s; }
.pay-copy:not([disabled]):active { background: var(--gold); color: #191204; }
.pay-copy[disabled] { opacity: .45; cursor: default; }
.pay-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.template-card .template-name:has(+ .logo-src) { padding-bottom: 3px; }
.template-card:active { border-color: var(--gold); }

.tpl-dropdown { margin-bottom: 14px; }
.tpl-dd-headers { display: flex; gap: 10px; align-items: stretch; position: sticky; top: var(--nav-h, 130px); z-index: 40; background: #0b0b0d; padding: 8px 0 18px; box-shadow: 0 1px 0 rgba(212,175,55,.25); }
.tpl-dd-headers .tpl-dd-btn { flex: 1 1 0; width: auto; justify-content: center; gap: 6px; font-size: 14px; line-height: 1.25; padding: 12px 8px; text-align: center; }
.tpl-dd-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: rgba(59,42,26,.6); border: 1px solid rgba(212,175,55,.45); border-radius: 14px; color: var(--gold); cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 800; padding: 14px 16px; transition: background .2s, color .2s; }
.tpl-dd-btn .dd-arrow { font-size: 15px; transition: transform .2s; }
.tpl-dd-btn.open, .tpl-dd-btn:active { background: var(--gold); color: #241a10; }
.tpl-dd-btn.open .dd-arrow { transform: rotate(180deg); }
.tpl-dd-body { padding-top: 20px; scroll-margin-top: calc(var(--sticky-stack, 240px) + 12px); }
.tpl-dd-body .panel-sub { margin-top: 0; }

/* Arabic: right-align text inside blocks, never mirror layout */
html.ar p, html.ar .panel-sub, html.ar .section-title, html.ar h1, html.ar h2, html.ar h3, html.ar li, html.ar .card-body, html.ar .tpl-dd-btn span:first-child { text-align: right; }

/* upload buttons (sample + order) */
.upload-btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 6px;
  background: #14100a; border: 1px solid rgba(242,180,60,.55); color: var(--gold-soft);
  padding: 12px 20px; border-radius: 14px; font-weight: 700; transition: all .18s ease; }
.upload-btn .up-icon { font-size: 1.1em; }
.upload-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); box-shadow: 0 4px 18px rgba(242,180,60,.35); }
.upload-btn:active { transform: scale(.96); box-shadow: none; }
.up-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; background: #1c1710; border: 1px solid rgba(242,180,60,.35); color: var(--gold-soft); font-size: .8rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.upload-preview:empty { margin-top: 0; }
.upload-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(242,180,60,.4); }

/* upload button overrides (form label grid + hidden input) */
.order-form input[hidden] { display: none !important; }
.order-form label.upload-btn { display: inline-flex; width: fit-content; align-items: center; justify-content: center; }

/* selectable pricing cards */
.price-card{cursor:pointer;position:relative;transition:transform .15s,border-color .2s,box-shadow .25s}
.price-card:hover{transform:translateY(-3px)}
.price-card.selected{border-color:#f2b43c;box-shadow:0 0 0 1px #f2b43c,0 8px 28px rgba(242,180,60,.35)}
.pick-check{position:absolute;top:10px;inset-inline-end:10px;width:22px;height:22px;border-radius:50%;background:linear-gradient(160deg,#ffd97a,#f2a41f);color:#241a08;font-size:13px;font-weight:800;display:none;align-items:center;justify-content:center;line-height:1}
.price-card.selected .pick-check{display:inline-flex}

/* chosen-service chip in the order form */
.picked-chip{display:flex;align-items:center;gap:10px;background:#1c1610;border:1px solid rgba(242,180,60,.55);border-radius:12px;padding:10px 14px;color:#ffd97a;font-weight:700;width:fit-content;max-width:100%}
.chip-price{color:var(--gold);font-weight:800}
.picked-chip span{overflow-wrap:anywhere}
#picked-clear{background:none;border:none;color:#c9b48a;font-size:15px;cursor:pointer;padding:2px 6px;border-radius:6px}
#picked-clear:hover{color:#ffd97a;background:rgba(242,180,60,.15)}

/* multi-select chips */
.picked-chips{display:flex;flex-wrap:wrap;gap:10px}
.picked-chip{padding:6px 6px 6px 14px}
html.ar .picked-chip{padding:6px 14px 6px 6px}
.picked-x{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;color:rgba(255,217,122,.75);font-size:14px;font-weight:700;cursor:pointer;padding:2px 6px;border-radius:6px;touch-action:manipulation}
.picked-x:hover,.picked-x:active{color:#241a08;background:#f2b43c}
.picked-total{color:#ffd97a;font-weight:800;margin:12px 0 0;font-size:17px}
.pick-bar{position:fixed;bottom:88px;transition:opacity .18s;left:50%;transform:translateX(-50%);z-index:44;display:flex;align-items:center;gap:14px;background:#0b0b0d;border:1px solid rgba(242,180,60,.6);border-radius:999px;padding:10px 12px 10px 20px;box-shadow:0 12px 40px rgba(0,0,0,.65),0 0 18px rgba(242,180,60,.18);max-width:calc(100% - 24px)}
html.ar .pick-bar{padding:10px 20px 10px 12px}
.pick-bar[hidden]{display:none}
.pick-bar-info{color:#ffd97a;font-weight:800;font-size:14px;white-space:nowrap;background:none;border:none;font-family:inherit;cursor:pointer;padding:4px 2px;touch-action:manipulation;display:flex;align-items:center;gap:8px;max-width:100%;overflow:hidden}
.pick-bar-info>span:first-child{overflow:hidden;text-overflow:ellipsis}
.pick-sep{opacity:.55}
.pick-total,.chip-price,.sheet-row-price,.picked-total bdi{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.pick-bar-info::after{content:'▾';margin-inline-start:5px;font-size:11px;opacity:.85}
.pick-bar-info:active{opacity:.7}

/* picks review bottom sheet */
.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:68}
.sheet-backdrop[hidden]{display:none}
.picks-sheet{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(480px,100%);max-height:72vh;display:flex;flex-direction:column;background:#0f0f12;border:1px solid rgba(242,180,60,.5);border-bottom:none;border-radius:20px 20px 0 0;padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px));z-index:69;box-shadow:0 -18px 50px rgba(0,0,0,.6)}
.picks-sheet[hidden]{display:none}
.sheet-handle{width:44px;height:4px;border-radius:999px;background:rgba(242,180,60,.4);margin:0 auto 10px;flex:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;flex:none}
.sheet-head h3{margin:0;font-size:16px;font-weight:800;color:var(--gold)}
.sheet-close{background:none;border:1px solid rgba(242,180,60,.5);color:#ffd97a;width:34px;height:34px;border-radius:50%;font-size:14px;cursor:pointer;touch-action:manipulation}
.sheet-rows{overflow-y:auto;margin-top:8px;flex:1}
.sheet-row{display:flex;align-items:center;gap:10px;padding:12px 2px;border-top:1px solid rgba(212,175,55,.12)}
.sheet-row:first-child{border-top:none}
.sheet-row-name{flex:1;color:#f0e6d2;font-weight:600;font-size:14px;line-height:1.4}
html.ar .sheet-row-name{text-align:right}
.sheet-row-price{color:var(--gold);font-weight:800;font-size:14px;white-space:nowrap}
.sheet-row-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:none;border:1px solid rgba(242,180,60,.45);border-radius:50%;color:rgba(255,217,122,.85);font-size:13px;font-weight:700;cursor:pointer;touch-action:manipulation}
.sheet-row-x:active{background:#f2b43c;color:#241a08}
.sheet-total{color:#ffd97a;font-weight:800;font-size:16px;margin:12px 0 0;text-align:center;flex:none}
.sheet-actions{display:flex;gap:10px;margin-top:14px;flex:none}
.sheet-clear{flex:1;background:transparent;border:1px solid rgba(242,180,60,.5);color:#ffd97a;border-radius:999px;padding:12px;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer;touch-action:manipulation}
.sheet-clear:active{background:rgba(242,180,60,.15)}
.sheet-go{flex:2;text-align:center}
.pick-bar-go{background:var(--gold);color:var(--black);font-weight:800;font-family:inherit;border:none;border-radius:999px;padding:10px 18px;font-size:14px;cursor:pointer;touch-action:manipulation;white-space:nowrap}
.pick-bar-go:active{transform:scale(.96)}

/* v37: Arabic scale-down - every section fits inside its card at 412px, max two lines */
html.ar .brand-card .brand-name { font-family: 'Cairo', sans-serif; font-size: 12.5px; letter-spacing: 0; white-space: normal; line-height: 1.4; background: none; color: var(--gold); -webkit-text-fill-color: var(--gold); filter: none; }
html.ar .template-name, html.ar .pair-name { font-size: 12px; }
html.ar .template-card p.logo-src { font-size: 10px; }
html.ar .service h3, html.ar .price-card h3 { font-size: 13px; }
html.ar .service p, html.ar .price-card p { font-size: 11.5px; }
html.ar .section-title { font-size: clamp(22px, 4.6vw, 32px); }
html.ar .panel-sub, html.ar .order-sub { font-size: 13px; }
html.ar .btn { font-size: 14px; }
html.ar .tpl-dd-headers .tpl-dd-btn { font-size: 12.5px; }
html.ar .quote-box p { font-size: 15px; }
html.ar .step h3 { font-size: 13.5px; }
html.ar .step p { font-size: 12px; }
html.ar .pay-title { font-size: 15px; }
html.ar .pay-name { font-size: 13px; }
html.ar .order-form label, html.ar .order-label { font-size: 13px; }
html.ar .hero-sub { font-size: 14.5px; }
html.ar .about-text { font-size: 15px; }

/* Readability scrim: text that sits directly on the animated backdrop gets a soft dark halo */
.panel-sub, .hero-sub, .about-text, .work-more, .stills-sub, .order-sub, .contact-sub,
.sample-promo p:not(.kicker), .order-alt, .review-note, .meet-text p:last-child, .footer-line {
  text-shadow: 0 1px 10px rgba(0,0,0,.65), 0 0 3px rgba(0,0,0,.5);
}

/* Cinematic abstract backdrop: breathing glows, sweeping beams, gold dust parallax, rotating arc, grain, vignette */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#main { position: relative; z-index: 1; }
.bg-glow { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.g1 { top: -28vmax; left: -24vmax; width: 100vmax; height: 100vmax;
  background: radial-gradient(circle, rgba(248,190,70,.22), rgba(242,180,60,.07) 45%, transparent 65%);
  animation: bgBreathe1 11s ease-in-out infinite; }
.g2 { bottom: -30vmax; right: -22vmax; width: 85vmax; height: 85vmax;
  background: radial-gradient(circle, rgba(255,210,110,.17), rgba(242,180,60,.06) 45%, transparent 65%);
  animation: bgBreathe2 16s ease-in-out infinite; }
@keyframes bgBreathe1 { 0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .7; } 50% { transform: translate3d(7vw,5vh,0) scale(1.18); opacity: 1; } }
@keyframes bgBreathe2 { 0%,100% { transform: translate3d(0,0,0) scale(1.12); opacity: 1; } 50% { transform: translate3d(-6vw,-6vh,0) scale(1); opacity: .55; } }
.bg-arc { position: absolute; top: 50%; left: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; will-change: transform;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,218,135,.10) 45deg, transparent 100deg, transparent 180deg, rgba(255,218,135,.07) 235deg, transparent 290deg);
  animation: arcSpin 42s linear infinite; }
@keyframes arcSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.bg-beam { position: absolute; top: -30%; height: 160%; will-change: transform;
  background: linear-gradient(90deg, transparent, rgba(255,226,150,.12) 42%, rgba(255,242,205,.22) 50%, rgba(255,226,150,.12) 58%, transparent); }
.b1 { left: 0; width: 17vw; animation: beamSweep 9s linear infinite; }
.b2 { left: 0; width: 9vw; animation: beamSweep 15s linear -6s infinite; opacity: .8; }
@keyframes beamSweep { from { transform: translateX(-25vw) skewX(-14deg); } to { transform: translateX(125vw) skewX(-14deg); } }
/* v40: twinkling star field - four-point gold sparkles, staggered twinkle + slow diagonal drift */
.stars { position: absolute; inset: 0; overflow: hidden; }
.star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; will-change: transform, opacity; opacity: var(--o);
  background: radial-gradient(circle, rgba(255,240,200,.95) 0%, rgba(255,214,120,.5) 45%, transparent 72%);
  animation: twinkle var(--td) ease-in-out var(--tdel) infinite, starDrift var(--dd) ease-in-out var(--ddel) infinite alternate; }
.star::before, .star::after { content: ''; position: absolute; left: 50%; top: 50%; pointer-events: none; }
.star::before { width: 1px; height: 340%; transform: translate(-50%,-50%);
  background: linear-gradient(180deg, transparent, rgba(255,232,170,.85) 50%, transparent); }
.star::after { height: 1px; width: 340%; transform: translate(-50%,-50%);
  background: linear-gradient(90deg, transparent, rgba(255,232,170,.85) 50%, transparent); }
@keyframes twinkle { 0%, 100% { opacity: var(--o); transform: scale(1); } 50% { opacity: calc(var(--o) * .25); transform: scale(.7); } }
@keyframes starDrift { from { translate: 0 0; } to { translate: var(--dx) var(--dy); } }

.bg-grain { position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }
.bg-vignette { position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, transparent 55%, rgba(0,0,0,.5) 100%); }
@media (prefers-reduced-motion: reduce) {
  .bg-glow, .bg-beam, .bg-arc, .star { animation: none !important; }
  .bg-beam { display: none; }
}

/* Image lightbox */
.template-lightbox[hidden] { display: none; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 81; width: 46px; height: 46px; border-radius: 50%; background: rgba(11,11,13,.85); border: 1px solid rgba(242,180,60,.6); color: #f2ead8; font-size: 19px; line-height: 1; cursor: pointer; }
.brand-card { cursor: pointer; }
.brand-card:active { border-color: var(--gold); }

/* Reels-style ad previews + big player */
.ad-card video { cursor: pointer; }
.video-modal { position: fixed; inset: 0; z-index: 85; background: rgba(5,4,3,.94); display: flex; align-items: center; justify-content: center; padding: 18px; }
.video-modal[hidden] { display: none; }
.vm-box { position: relative; width: min(92vw, 400px); }
.vm-box video { width: 100%; max-height: 76vh; border-radius: 14px; background: #000; display: block; }
.vm-close { top: -54px; right: 0; }
.vm-title { margin: 10px 4px 0; color: var(--gold); font-weight: 600; font-size: 15px; text-align: center; }

/* upload preview remove buttons */
.up-item { position: relative; display: inline-block; }
.up-x { position: absolute; top: -7px; inset-inline-end: -7px; width: 24px; height: 24px; border-radius: 50%; background: #0b0b0d; border: 1px solid rgba(242,180,60,.7); color: #f2ead8; font-size: 12px; line-height: 1; cursor: pointer; z-index: 2; padding: 0; display: flex; align-items: center; justify-content: center; }

/* bottom clearance so the floating fab / pick bar never cover content at scroll end */
main { padding-bottom: 122px; }
body.has-picks main { padding-bottom: 192px; }

/* Living stills: Ken Burns drift + gold light sweep + press feedback on every image card */
.brand-card .brand-img img, .template-card img, .still img {
  animation: kbDrift 15s ease-in-out infinite alternate; will-change: transform;
}
.brand-card:nth-child(3n+2) .brand-img img, .template-card:nth-child(3n+2) img, .still:nth-child(3n+2) img { animation-duration: 12s; animation-delay: -5s; animation-direction: alternate-reverse; }
.brand-card:nth-child(3n) .brand-img img, .template-card:nth-child(3n) img, .still:nth-child(3n) img { animation-duration: 18s; animation-delay: -9s; }
@keyframes kbDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, 1.5%); } }

.brand-img, .still, .template-card { position: relative; }
.brand-img::after, .still::after, .template-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 30%, rgba(255,224,150,.14) 45%, rgba(255,242,205,.2) 50%, rgba(255,224,150,.14) 55%, transparent 70%);
  transform: translateX(-130%); animation: cardSweep 7.5s linear infinite;
}
.brand-card:nth-child(3n+2) .brand-img::after, .template-card:nth-child(3n+2)::after, .still:nth-child(3n+2)::after { animation-delay: -2.6s; }
.brand-card:nth-child(3n) .brand-img::after, .template-card:nth-child(3n)::after, .still:nth-child(3n)::after { animation-delay: -5.1s; }
@keyframes cardSweep { 0% { transform: translateX(-130%); } 32% { transform: translateX(130%); } 100% { transform: translateX(130%); } }

.brand-card, .template-card, .still { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.brand-card:active, .template-card:active, .still:active {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 18px rgba(212,175,55,.35);
  border-color: rgba(212,175,55,.65);
}

@media (prefers-reduced-motion: reduce) {
  .brand-card .brand-img img, .template-card img, .still img { animation: none !important; }
  .brand-img::after, .still::after, .template-card::after { animation: none !important; opacity: 0; }
}


/* v30: card background clips */
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; pointer-events: none; z-index: 0; border-radius: inherit; }
.card-bg.on { opacity: .55; }
.card-bg-hot.on { opacity: .68; transform: scale(1.06); }
.service::after, .price-card::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(6,6,10,0) 28%, rgba(6,6,10,.5) 74%, rgba(6,6,10,.8) 100%); }
.service, .price-card { position: relative; overflow: hidden; }
.service > *:not(.card-bg), .price-card > *:not(.card-bg) { position: relative; z-index: 1; }
.service h3, .service p, .price-card h3, .price-card p { text-shadow: 0 1px 10px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.85); }

/* v39: travelling border light + glow pulse + caption shimmer restored at Ahmed's request (v36 look) */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.brand-card, .template-card, .still { position: relative; }
.brand-card::after, .template-card::after, .still::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0deg, transparent 268deg, rgba(255,214,90,.95) 322deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  pointer-events: none; z-index: 2;
  animation: borderLight 5.2s linear infinite;
}
@keyframes borderLight { to { --ang: 360deg; } }
.brand-card:nth-child(3n+2)::after, .template-card:nth-child(3n+2)::after, .still:nth-child(3n+2)::after { animation-delay: -1.7s; }
.brand-card:nth-child(3n)::after, .template-card:nth-child(3n)::after, .still:nth-child(3n)::after { animation-delay: -3.4s; }

@keyframes cardGlow { 0%, 100% { box-shadow: 0 0 0 rgba(212,175,55,0); } 50% { box-shadow: 0 8px 30px rgba(212,175,55,.16); } }
.brand-card, .template-card, .still { animation: cardGlow 6.4s ease-in-out infinite; }
.brand-card:nth-child(2n), .template-card:nth-child(2n), .still:nth-child(2n) { animation-delay: -3.2s; }

.brand-name, .template-card p { position: relative; overflow: hidden; }
.brand-name::after, .template-card p::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,236,170,.28) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: captionShine 7.5s ease-in-out infinite;
}
@keyframes captionShine { 0%, 55% { transform: translateX(-130%); } 75%, 100% { transform: translateX(130%); } }
.template-card:nth-child(2n) p::after, .brand-card:nth-child(2n) .brand-name::after { animation-delay: -3.7s; }

@media (prefers-reduced-motion: reduce) {
  .brand-card::after, .template-card::after, .still::after, .brand-name::after, .template-card p::after { display: none; }
  .brand-card, .template-card, .still { animation: none; }
  .card-bg { display: none; }
}


/* v33: deliberate Add control on orderable gallery items */
.pick-add { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 5px; border: 1px solid rgba(212,175,55,.6); border-radius: 999px; background: rgba(8,8,12,.8); color: var(--gold); font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; backdrop-filter: blur(3px); }
[dir="rtl"] .pick-add, .pair .pick-add { padding: 3px 5px 3px 9px; }
.pair { position: relative; }
.pair > .pick-add { position: absolute; top: auto; bottom: 8px; inset-inline-end: 8px; margin: 0; z-index: 5; padding: 8px 14px; min-height: 40px; box-sizing: border-box; font-size: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pick-add b { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: #0b0b0f; font-size: 12px; font-weight: 800; line-height: 1; }
.pick-add.added { background: var(--gold); color: #0b0b0f; border-color: var(--gold); }
.pick-add.added b { background: #0b0b0f; color: var(--gold); }
.template-card { position: relative; }

/* Before/After comparison slider */
.pair-imgs.ba { display: block; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(212,175,55,.25); --pos: 50%; }
.ba .still { border: none; border-radius: 0; overflow: visible; }
.ba .still img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba .still-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba .still-after img { width: 100%; height: 100%; }
.ba .still-after .tag { left: auto; right: 10px; }
.ba .still:hover img { transform: none; }
.ba:hover .still img { transform: scale(1.02); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: linear-gradient(rgba(212,175,55,.15), rgba(212,175,55,.95), rgba(212,175,55,.15)); z-index: 3; pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(8,8,12,.85); border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--gold); font-size: 13px; font-weight: 800; z-index: 4; pointer-events: none; backdrop-filter: blur(2px); animation: handlePulse 2.6s ease-in-out infinite; }
@keyframes handlePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.5); } 50% { box-shadow: 0 0 0 8px rgba(212,175,55,0); } }
.pair.ba-live .pair-imgs { box-shadow: 0 0 0 1.5px rgba(212,175,55,.6), 0 10px 34px rgba(212,175,55,.25); }
.pair-imgs { transition: box-shadow .5s ease; }
/* pair entrance */
.pair-pre { opacity: 0; transform: translateY(16px); }
.pair-pre.pair-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .ba-handle { animation: none; }
  .pair-pre { opacity: 1; transform: none; }
  .pair-pre.pair-in { transition: none; }
}


/* Living gold inside template/logo/poster tiles: slow flow + soft sweep, over the art but never hiding it */
.tile-gold { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; overflow: hidden; opacity: 0; transition: opacity .7s ease; }
.tile-gold.on { opacity: 1; }
.tile-gold::before { content: ''; position: absolute; inset: -45%; background:
  radial-gradient(42% 34% at 30% 28%, rgba(255,205,80,.17), transparent 70%),
  radial-gradient(38% 30% at 72% 66%, rgba(212,175,55,.13), transparent 70%),
  radial-gradient(30% 24% at 55% 85%, rgba(255,230,150,.08), transparent 70%);
  animation: tileFlow 15s ease-in-out infinite alternate; animation-delay: var(--fd, 0s); }
.tile-gold::after { content: ''; position: absolute; top: -25%; bottom: -25%; left: 0; width: 42%; background: linear-gradient(100deg, transparent, rgba(255,220,120,.10) 42%, rgba(255,238,190,.17) 50%, rgba(255,220,120,.10) 58%, transparent); transform: translateX(-170%) skewX(-12deg); animation: tileSweep 8s ease-in-out infinite; animation-delay: var(--sd, 0s); }
@keyframes tileFlow { from { transform: translate(-5%, -4%) scale(1); } to { transform: translate(5%, 4%) scale(1.09); } }
@keyframes tileSweep { 0% { transform: translateX(-170%) skewX(-12deg); } 55%, 100% { transform: translateX(380%) skewX(-12deg); } }
@media (prefers-reduced-motion: reduce) { .tile-gold.on::before, .tile-gold.on::after { animation: none; } .tile-gold::after { display: none; } }

/* Silver + gold poster frame around each sample video: static metallic ring, travelling shine, corner ticks */
.vid-frame { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: var(--va, 9/16); z-index: 2; pointer-events: none; border-radius: 13px 13px 0 0; }
.vid-frame::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; background: linear-gradient(135deg, #e8e8e8, #d4af37 28%, #f7ecc8 50%, #9a9a9a 72%, #d4af37); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.ad-card.inview .vid-frame::before { animation: framePulse 4.5s ease-in-out infinite alternate; }
.vid-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.8) 46%, rgba(255,240,200,.95) 50%, rgba(255,255,255,.8) 54%, transparent 70%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; transform: translateX(-101%); }
.ad-card.inview .vid-frame::after { animation: frameShine 5.5s linear infinite; }
@keyframes frameShine { from { transform: translateX(-101%); } to { transform: translateX(101%); } }
@keyframes framePulse { from { opacity: .72; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ad-card.inview .vid-frame::before, .ad-card.inview .vid-frame::after { animation: none; } }

/* Landscape sample videos span the full row so they never sit ragged beside portrait cards */
.work-grid .ad-card.landscape { grid-column: auto; }
@media (min-width: 860px) {
  /* landscape samples sit exactly 2 per row on desktop (portraits stay 3 per row) */
  .work-grid { grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; }
  .work-grid .ad-card { grid-column: span 2; }
  .work-grid .ad-card.landscape { grid-column: span 3; }
}
.work-grid .ad-card.landscape video { aspect-ratio: 16/9; object-fit: cover; }

/* Compact pair cards at 2-per-row */
.stills-grid .pair-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 6px; padding: 0 2px; line-height: 1.5; }
.stills-grid .pair > .pick-add { padding: 3px 8px; font-size: 10px; min-height: 30px; gap: 4px; bottom: 6px; inset-inline-end: 6px; }
.stills-grid .pair > .pick-add b { width: 13px; height: 13px; font-size: 10px; }
.stills-grid .still .badge { font-size: 8px; padding: 2px 6px; left: 6px; bottom: 6px; }
.stills-grid .still .tag { font-size: 8px; padding: 2px 7px; top: 6px; left: 6px; }
.stills-grid .ba .still-after .tag { left: auto; right: 6px; }

/* === Electric charge on sample-grid cards (logos/posters/templates) === */
@property --ea { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.template-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  pointer-events: none; z-index: 3; padding: 2px;
  background: conic-gradient(from var(--ea),
    transparent 0deg, transparent 250deg,
    rgba(255,235,170,.15) 285deg,
    #fffbe8 305deg, #ffd54a 318deg, rgba(255,180,60,.6) 330deg,
    transparent 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(255,213,74,.85)) drop-shadow(0 0 12px rgba(255,170,40,.35));
  animation: ea-spin 3.4s linear infinite, ea-flicker 1.9s steps(1) infinite;
}
.template-card:nth-child(2n)::before { animation-duration: 4.1s, 2.3s; animation-delay: -1.2s, -.7s; }
.template-card:nth-child(3n)::before { animation-duration: 2.9s, 1.6s; animation-delay: -2.1s, -.3s; }
.template-card:nth-child(5n)::before { animation-direction: reverse, normal; animation-delay: -.6s, -1.1s; }
@keyframes ea-spin { to { --ea: 360deg; } }
@keyframes ea-flicker {
  0%, 100% { opacity: .9; }
  11% { opacity: .35; } 13% { opacity: 1; }
  37% { opacity: .55; } 39% { opacity: .95; }
  58% { opacity: .25; } 60% { opacity: 1; }
  82% { opacity: .6; } 84% { opacity: .9; }
}
.template-card { animation: ea-pulse 2.7s steps(1) infinite; }
.template-card:nth-child(2n) { animation-duration: 3.3s; animation-delay: -1.4s; }
.template-card:nth-child(3n) { animation-duration: 2.3s; animation-delay: -.8s; }
@keyframes ea-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,213,74,0); }
  43% { box-shadow: 0 0 16px rgba(255,213,74,.28), inset 0 0 10px rgba(255,213,74,.10); }
  46% { box-shadow: 0 0 4px rgba(255,213,74,.08); }
  49% { box-shadow: 0 0 22px rgba(255,213,74,.45), inset 0 0 14px rgba(255,213,74,.16); }
  62% { box-shadow: 0 0 8px rgba(255,213,74,.15); }
}
@media (prefers-reduced-motion: reduce) {
  .template-card::before { animation: none; opacity: .5; }
  .template-card { animation: none; }
}

/* swipe between sections */
@keyframes swipeInR { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes swipeInL { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.tab-panel.swipe-in-r { animation: swipeInR .28s ease-out; }
.tab-panel.swipe-in-l { animation: swipeInL .28s ease-out; }
@media (prefers-reduced-motion: reduce) { .tab-panel.swipe-in-r, .tab-panel.swipe-in-l { animation: none; } }

.ts-box{margin:12px 0;min-height:65px}
.aec-ts{width:100%;margin:6px 0}

.brand-stack{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1;min-width:0}
.brand-sub{font-family:Inter,Cairo,sans-serif;font-size:11px;letter-spacing:.06em;color:#cfc8b0;margin-top:3px;white-space:nowrap}
html[lang="ar"] .brand-sub{letter-spacing:0;font-family:Cairo,sans-serif;font-size:12px}
