:root { --neon-accent: #E2FF00; --dark-bg: #050505; }
        body { background-color: var(--dark-bg); color: #ffffff; font-family: 'Space Grotesk', var(--behrouz-font-fallback, sans-serif), sans-serif; overflow-x: hidden; }
        h1, h2, h3, .brand-font { font-family: 'Syne', var(--behrouz-font-fallback, sans-serif), sans-serif; }
        .cinematic-gradient { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0) 100%); }
        .glass-nav { background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .glow-btn { position: relative; overflow: hidden; transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
        .glow-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: 0.5s; }
        .glow-btn:hover::before { left: 100%; }
        .btn-primary { background-color: var(--neon-accent); color: black; }
        .btn-primary:hover { background-color: transparent; color: var(--neon-accent); border: 1px solid var(--neon-accent); }
        .btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; backdrop-filter: blur(5px); }
        .btn-outline:hover { border-color: var(--neon-accent); color: var(--neon-accent); }
        .slide-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; opacity: 0; transform: scale(1.1); transition: opacity 1.5s ease-in-out, transform 8s ease-out; will-change: opacity, transform; background-position: center center; }
        .slide-bg.active { opacity: 1; transform: scale(1); }
        @media (min-width: 769px) { .slide-bg { background-position: center center !important; } }
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        .bts-tooltip { opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
        .group:hover .bts-tooltip { opacity: 1; transform: translateY(0); }
        .mobile-nav-link { transition: transform 0.3s ease, color 0.3s ease; display: block; width: 100%; line-height: 1.2; }
        .mobile-nav-link:active { transform: translateX(10px); color: #E2FF00; }
        #mobile-menu-overlay.active { display: flex; opacity: 1; }        
    
    @media (max-width: 768px){
  html[lang="en"] #mobile-menu-overlay .mobile-nav-link,
  html[lang="tr"] #mobile-menu-overlay .mobile-nav-link{
    font-size: 1.35rem; /* قبلاً 2xl بود؛ اینجا کوچک‌تر */
    line-height: 1.35;
  }
}

        /* --- Location Gallery --- */
        .loc-viewport { scrollbar-width: thin; scrollbar-color: rgba(226,255,0,0.35) rgba(255,255,255,0.08); }
        .loc-viewport::-webkit-scrollbar { height: 10px; }
        .loc-viewport::-webkit-scrollbar-thumb { background: rgba(226,255,0,0.25); border-radius: 999px; }
        .loc-viewport::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 999px; }

        .loc-grid {
            display: grid;
            grid-auto-flow: column;
            grid-template-rows: repeat(3, 88px);
            grid-auto-columns: 116px;
            gap: 10px;
            align-items: stretch;
        }
        @media (max-width: 768px) {
            .loc-grid { grid-template-rows: repeat(3, 72px); grid-auto-columns: 100px; gap: 8px; }
        }
        .loc-viewport{ overflow-y: visible !important; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; } /* allow hover zoom to overlap rows */
        .loc-thumb {
            width: 100%;
            height: 100%;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.02);
            transform: translateZ(0);
            transition: transform 200ms ease, opacity 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
            cursor: pointer;
            position: relative;
            isolation: isolate;
        }
        /* thumbnails: no watermark/number */
        .loc-thumb::before,
        .loc-thumb::after{ content:none !important; display:none !important; }
.loc-thumb:hover{
            transform: scale(1.4);
            border-color: rgba(226,255,0,0.95);
            box-shadow: 0 0 0 2px rgba(226,255,0,0.65), 0 18px 40px rgba(0,0,0,0.55);
            z-index: 5;
        }
        .loc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block;   background:#0a0a0a;
}

        .loc-dim { opacity: 0.25; }
        .loc-lit { opacity: 1 !important; }
        /* RTL: move arrow controls to left and keep layout stable */
        [dir="rtl"] .loc-arrows{ right:auto !important; left:0 !important; flex-direction: row-reverse; }
        [dir="rtl"] .loc-arrows i.fa-arrow-left{ transform: rotate(180deg); }
        [dir="rtl"] .loc-arrows i.fa-arrow-right{ transform: rotate(180deg); }
/* Mobile optimization: Location tags max 2 rows + horizontal scroll */
@media (max-width: 768px){
  .loc-tags{
    display: grid !important;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    gap: 10px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    max-height: 98px; /* ~2 rows */
  }
  .loc-tags::-webkit-scrollbar{ height: 6px; }
  .loc-tag{ white-space: nowrap; }
}



/* Modal visibility */
#loc-modal.hidden{display:none;}
#loc-modal.active{display:flex;}


.loc-tag.active{border-color: rgba(226,255,0,0.9) !important; color:#fff !important;}

@media (max-width: 768px){
  .project-item{
    position: relative;
    overflow: hidden;
  }

  /* تصویر reveal تبدیل به بک‌گراند محو داخل همان کارت */
@media (max-width: 768px){
  .project-item .project-reveal-img{
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;

    opacity: 0;
    transform: scale(1.06) !important;
    filter: blur(3px) grayscale(80%);
    z-index: 0 !important;
    pointer-events: none !important;
  }

  .project-item.is-touch-active .project-reveal-img{
    opacity: .55 !important;
    transform: scale(1.12) !important;
  }
}
@media (max-width: 768px){
  .project-item.is-touch-active{
    background: transparent !important;
  }
}

/* لایه تیره روی عکس برای خوانایی متن */
@media (max-width: 768px){
  .project-item::after{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 1;
    pointer-events:none;
  }
  .project-item.is-touch-active::after{
    opacity: 1;
  }

  .project-item > *{
    position: relative;
    z-index: 2;
  }
}


}



        /* ===== landing page bulletproof fixes ===== */
        .brand-ribbon-shell{position:relative;}
        .brand-ribbon{
            display:grid;
            grid-auto-flow:column;
            grid-template-rows:repeat(2,minmax(0,1fr));
            gap:12px;
            overflow-x:auto;
            overflow-y:hidden;
            padding:4px 50px 10px;
            scroll-behavior:smooth;
            scrollbar-width:none;
            -webkit-overflow-scrolling:touch;
            align-items:stretch;
        }
        .brand-ribbon::-webkit-scrollbar{display:none;}
        .brand-card{
            position:relative;
            min-width:152px;
            min-height:102px;
            border-radius:18px;
            overflow:hidden;
            border:1px solid rgba(255,255,255,.12);
            background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
            display:flex;
            flex-direction:column;
            justify-content:flex-end;
            padding:12px;
            box-shadow:0 18px 48px rgba(0,0,0,.22);
            isolation:isolate;
        }
        .brand-card__bg,
        .brand-card__overlay{
            position:absolute;
            inset:0;
            pointer-events:none;
        }
        .brand-card__bg{
            background-image:var(--brand-image);
            background-position:center;
            background-size:72%;
            background-repeat:no-repeat;
            filter:blur(10px) saturate(1.05);
            transform:scale(1.06);
            opacity:.14;
        }
        .brand-card__overlay{background:linear-gradient(180deg, rgba(6,8,10,.06), rgba(6,8,10,.20) 45%, rgba(6,8,10,.42));}
        .brand-card__stage{
            position:relative;
            z-index:2;
            width:100%;
            min-height:54px;
            border-radius:14px;
            background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,248,246,.88));
            border:1px solid rgba(255,255,255,.30);
            display:flex;
            align-items:center;
            justify-content:center;
            padding:10px 12px;
            box-shadow:inset 0 1px 0 rgba(255,255,255,.65), 0 12px 30px rgba(0,0,0,.12);
            backdrop-filter:blur(10px);
            -webkit-backdrop-filter:blur(10px);
        }
        .brand-card__logo{
            display:block;
            width:auto;
            max-width:100%;
            max-height:38px;
            height:auto;
            object-fit:contain;
            object-position:center;
        }
        .brand-card__name{
            position:relative;
            z-index:2;
            margin-top:10px;
            font-size:.68rem;
            line-height:1.15;
            font-weight:600;
            letter-spacing:.06em;
            text-transform:uppercase;
            color:rgba(255,255,255,.86);
            text-align:center;
            white-space:normal;
        }
        .brand-ribbon-arrow{
            position:absolute;top:50%;transform:translateY(-50%);
            width:38px;height:38px;border-radius:999px;
            display:inline-flex;align-items:center;justify-content:center;
            border:1px solid rgba(255,255,255,.12);
            background:rgba(5,5,5,.72);color:#fff;z-index:3;
            transition:.2s ease;
            backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
        }
        .brand-ribbon-arrow:hover{border-color:rgba(226,255,0,.45);color:#E2FF00;}
        .brand-ribbon-arrow.prev{left:0;}
        .brand-ribbon-arrow.next{right:0;}

        .video-modal-shell{
            position:relative;
            width:min(1120px,96vw);
            max-height:min(92vh,960px);
            overflow:auto;
            display:grid;
            grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
            align-items:stretch;
        }
        .video-modal-shell.is-horizontal{width:min(1120px,96vw);grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);}
        .video-modal-shell.is-vertical{width:min(560px,92vw);grid-template-columns:1fr;}
        .video-modal-media{
            display:flex;align-items:center;justify-content:center;
            min-height:280px;max-height:72vh;background:#000;
        }
        .video-modal-media video{width:100%;height:100%;object-fit:contain;background:#000;max-height:72vh;}
        .video-modal-shell.is-vertical .video-modal-media{min-height:420px;max-height:70vh;}
        .video-modal-shell.is-vertical .video-modal-media video{max-height:70vh;}
        .video-modal-meta{min-width:0;}

        .sw-modal-card{max-height:min(92vh,980px) !important;overflow:hidden;}
        .sw-modal-body{display:flex;flex-direction:column;min-height:0;overflow:auto;}

        @media (max-width: 768px){
          #mobile-menu-overlay .flex.justify-between.items-center{padding:14px 18px !important;}
          #mobile-menu-overlay .flex.flex-col.justify-center.items-start{padding:16px 20px 12px !important;gap:10px !important;justify-content:flex-start !important;}
          #mobile-menu-overlay .mobile-nav-link{font-size:clamp(.98rem,4.4vw,1.14rem) !important;line-height:1.02 !important;letter-spacing:.06em !important;}
          #mobile-menu-overlay .flex.gap-4.mb-4{margin-bottom:10px !important;padding-bottom:10px !important;gap:10px !important;row-gap:8px !important;flex-wrap:wrap !important;font-size:12px !important;}
          #mobile-menu-overlay .p-10{padding:14px 20px 18px !important;}
          #mobile-menu-overlay .p-10 .flex.gap-6{gap:14px !important;flex-wrap:wrap !important;font-size:1rem !important;}
          #mobile-menu-overlay .p-10 p{margin-bottom:10px !important;}
          

          .video-modal-shell,
          .video-modal-shell.is-horizontal,
          .video-modal-shell.is-vertical{width:min(94vw,94vw);grid-template-columns:1fr;max-height:92vh;}
          .video-modal-media{min-height:220px;max-height:58vh;}
          .video-modal-media video{max-height:58vh;}
          .video-modal-shell.is-vertical .video-modal-media{min-height:46vh;max-height:58vh;}
          .video-modal-shell.is-vertical .video-modal-media video{max-height:58vh;}
          .video-modal-meta{padding:18px;gap:14px;}
          #video-modal > button{top:10px !important;right:12px !important;font-size:2rem !important;}

          .sw-modal-card{width:min(94vw,94vw) !important;border-radius:18px !important;}
          .sw-modal-close{top:8px !important;right:8px !important;}

          .brand-ribbon{padding-inline:38px;gap:10px;}
          .brand-card{min-width:128px;min-height:94px;padding:10px;border-radius:16px;}
          .brand-card__stage{min-height:48px;padding:8px 10px;border-radius:12px;}
          .brand-card__logo{max-height:30px;}
          .brand-card__name{font-size:.62rem;margin-top:8px;}
          .brand-ribbon-arrow{width:34px;height:34px;}
        }

        html[data-theme="light"] body{
          background:
            radial-gradient(circle at 10% 8%, rgba(226,255,0,.18), transparent 0 20%),
            radial-gradient(circle at 88% 10%, rgba(88,114,255,.10), transparent 0 18%),
            radial-gradient(circle at 80% 74%, rgba(31,41,55,.05), transparent 0 16%),
            linear-gradient(135deg, #fbfcf9 0%, #f1f5f2 28%, #edf2f6 62%, #f7faf7 100%) !important;
          color:#111316 !important;
          background-attachment: fixed !important;
        }
        html[data-theme="light"] body > section:nth-of-type(2),
        html[data-theme="light"] #director,
        html[data-theme="light"] #producer,
        html[data-theme="light"] #location,
        html[data-theme="light"] #showcase,
        html[data-theme="light"] #work,
        html[data-theme="light"] #sample-works,
        html[data-theme="light"] #bts,
        html[data-theme="light"] #recognition,
        html[data-theme="light"] #services,
        html[data-theme="light"] #seo-hub,
        html[data-theme="light"] #contact{
          background:transparent !important;
          border-color:rgba(15,23,42,.08) !important;
        }
        html[data-theme="light"] body > section:nth-of-type(2),
        html[data-theme="light"] #producer,
        html[data-theme="light"] #location,
        html[data-theme="light"] #work,
        html[data-theme="light"] #sample-works,
        html[data-theme="light"] #bts,
        html[data-theme="light"] #seo-hub,
        html[data-theme="light"] #contact{
          background-image:linear-gradient(180deg, rgba(255,255,255,.44), rgba(246,249,244,.88)) !important;
        }
        html[data-theme="light"] #director,
        html[data-theme="light"] #showcase,
        html[data-theme="light"] #recognition,
        html[data-theme="light"] #services{
          background-image:
            radial-gradient(circle at top left, rgba(226,255,0,.10), transparent 26%),
            linear-gradient(180deg, rgba(255,255,255,.50), rgba(244,247,242,.94)) !important;
        }
        html[data-theme="light"] #director > .absolute.inset-0 img,
        html[data-theme="light"] #showcase > .absolute.inset-0 img{opacity:.14 !important;filter:blur(12px) saturate(1.02) !important;}
        html[data-theme="light"] #director > .absolute.inset-0 > div,
        html[data-theme="light"] #showcase > .absolute.inset-0 > div{background:linear-gradient(180deg, rgba(251,252,248,.46), rgba(251,252,248,.72) 46%, rgba(245,247,242,.96)) !important;}
        html[data-theme="light"] h1,
        html[data-theme="light"] h2,
        html[data-theme="light"] h3,
        html[data-theme="light"] h4,
        html[data-theme="light"] h5,
        html[data-theme="light"] h6,
        html[data-theme="light"] .brand-font,
        html[data-theme="light"] .text-white,
        html[data-theme="light"] .mix-blend-difference,
        html[data-theme="light"] .mix-blend-difference.text-white{color:#111316 !important;mix-blend-mode:normal !important;}
        html[data-theme="light"] .text-gray-700{color:#718199 !important;}
        html[data-theme="light"] .text-gray-300{color:#4e5c6c !important;}
        html[data-theme="light"] .text-gray-400{color:#5f6d7d !important;}
        html[data-theme="light"] .text-gray-500,
        html[data-theme="light"] .text-gray-600{color:#748194 !important;}
        html[data-theme="light"] #director .group.relative,
        html[data-theme="light"] #producer .group.relative,
        html[data-theme="light"] #location #loc-viewport,
        html[data-theme="light"] #location .relative.w-full.overflow-hidden.rounded-2xl,
        html[data-theme="light"] #work .project-item,
        html[data-theme="light"] #sample-works .sw-grid-card,
        html[data-theme="light"] #sample-works .sw-modal-card,
        html[data-theme="light"] #bts .group.relative,
        html[data-theme="light"] #services .shell-card,
        html[data-theme="light"] #seo-hub .shell-card,
        html[data-theme="light"] #seo-hub .upgrade-hub-card,
        html[data-theme="light"] #seo-hub .shell-cta,
        html[data-theme="light"] #recognition .recognition-card,
        html[data-theme="light"] .capability-chip{
          background:linear-gradient(180deg, rgba(255,255,255,.84), rgba(248,250,245,.74)) !important;
          border-color:rgba(15,23,42,.10) !important;
          box-shadow:0 22px 58px rgba(15,23,42,.08) !important;
          backdrop-filter:blur(10px);
          -webkit-backdrop-filter:blur(10px);
        }
        html[data-theme="light"] #recognition .grid{
          padding:22px;
          border:1px solid rgba(15,23,42,.08);
          border-radius:28px;
          background:linear-gradient(180deg, rgba(255,255,255,.42), rgba(247,250,246,.22));
          box-shadow:0 16px 46px rgba(15,23,42,.05);
        }
        html[data-theme="light"] #recognition .recognition-card:hover,
        html[data-theme="light"] .capability-chip:hover{
          background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,252,248,.88)) !important;
          border-color:rgba(170,190,0,.34) !important;
          box-shadow:0 24px 60px rgba(15,23,42,.10) !important;
        }
        html[data-theme="light"] .capability-chip{color:#4f5d6d !important;}
        html[data-theme="light"] .capability-chip:hover{color:#111316 !important;}
        html[data-theme="light"] #work .project-item:hover,
        html[data-theme="light"] #work .project-item.is-touch-active{background:rgba(255,255,255,.90) !important;}
        html[data-theme="light"] #work .project-item h3{color:#111316 !important;}
        html[data-theme="light"] #location #loc-modal-backdrop,
        html[data-theme="light"] #video-modal,
        html[data-theme="light"] #youtube-modal,
        html[data-theme="light"] #mobile-menu-overlay,
        html[data-theme="light"] .sw-modal-backdrop{background:rgba(244,247,241,.92) !important;}
        html[data-theme="light"] #loc-modal-img,
        html[data-theme="light"] .video-modal-media,
        html[data-theme="light"] .sw-embed,
        html[data-theme="light"] #youtube-modal .aspect-video{background:#e7ece5 !important;border-color:rgba(15,23,42,.12) !important;}
        html[data-theme="light"] #director .group.relative,
        html[data-theme="light"] #producer .group.relative{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);}
        html[data-theme="light"] .loc-tag,
        html[data-theme="light"] .shell-chip,
        html[data-theme="light"] .btn-outline,
        html[data-theme="light"] .theme-toggle,
        html[data-theme="light"] .shell-button.secondary,
        html[data-theme="light"] .sw-modal-links a,
        html[data-theme="light"] .mobile-lang-item,
        html[data-theme="light"] .loc-nav-btn{
          background:rgba(255,255,255,.84) !important;
          color:#111316 !important;
          border-color:rgba(15,23,42,.12) !important;
        }
        html[data-theme="light"] .loc-tag.active{background:#E2FF00 !important;color:#111316 !important;border-color:#d0eb00 !important;}
        html[data-theme="light"] #mobile-menu-overlay .mobile-nav-link,
        html[data-theme="light"] #mobile-menu-overlay .text-white{color:#111316 !important;}
        html[data-theme="light"] #mobile-menu-overlay .text-gray-500{color:#6a7688 !important;}
        html[data-theme="light"] #backToTop{color:#111316 !important;border-color:rgba(15,23,42,.16) !important;background:rgba(255,255,255,.82) !important;}
        html[data-theme="light"] .brand-card{
          border-color:rgba(15,23,42,.10) !important;
          background:linear-gradient(180deg, rgba(255,255,255,.76), rgba(247,249,244,.64)) !important;
          box-shadow:0 16px 44px rgba(15,23,42,.08) !important;
        }
        html[data-theme="light"] .brand-card__overlay{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.10) 45%, rgba(255,255,255,.22)) !important;}
        html[data-theme="light"] .brand-card__bg{opacity:.08 !important;filter:blur(8px) saturate(.92) !important;}
        html[data-theme="light"] .brand-card__stage{
          background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,247,243,.88)) !important;
          border-color:rgba(15,23,42,.08) !important;
          box-shadow:inset 0 1px 0 rgba(255,255,255,.86), 0 12px 30px rgba(15,23,42,.07) !important;
        }
        html[data-theme="light"] .brand-card__name{color:#394659 !important;}
        html[data-theme="light"] .brand-ribbon-arrow{background:rgba(255,255,255,.88) !important;color:#111316 !important;border-color:rgba(15,23,42,.12) !important;}
        html[data-theme="light"] .bts-tooltip{background:#111316 !important;color:#fff !important;}
        html[data-theme="light"] .text-\[\#E2FF00\]{color:#587600 !important;}
        html[data-theme="light"] .hover\:text-\[\#E2FF00\]:hover{color:#3f5f00 !important;}
        html[data-theme="light"] .border-\[\#E2FF00\]{border-color:#6f8f00 !important;}
        html[data-theme="light"] .hover\:border-\[\#E2FF00\]:hover{border-color:#587600 !important;}
        html[data-theme="light"] .bg-\[\#E2FF00\]{background-color:#6f8f00 !important;color:#fff !important;}
        html[data-theme="light"] .selection\:bg-\[\#E2FF00\]::selection{background:#6f8f00 !important;color:#fff !important;}
        html[data-theme="light"] .brand-font .text-\[\#E2FF00\],
        html[data-theme="light"] .shell-brand span,
        html[data-theme="light"] .loc-tags + .relative .text-\[\#E2FF00\]{color:#587600 !important;}
