:root{
    --navy-950:#081b36;
    --navy-900:#0a2647;
    --navy-800:#0d3266;
    --gold-500:#d4a94a;
    --gold-400:#e2bc6c;
    --ink-900:#152641;
    --ink-600:#4b5a70;
    --ink-400:#8896a8;
    --line:#e7ebf1;
    --bg:#eef1f5;
    --card:#ffffff;
    --blue:#2f6fed;
    --teal:#14b8a6;
    --purple:#8b5cf6;
    --red:#ef4444;
    --orange:#f97316;
    --gold:#eab308;
    --pink:#ec4899;
    --radius:18px;
    --shadow: 0 10px 30px rgba(11,30,60,0.08);
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;height:100%;background:#0a1530;}
  body{
    font-family:'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background:var(--bg);
    color:var(--ink-900);
    overflow:hidden;
    -webkit-tap-highlight-color:transparent;
    user-select:none;
  }
  .app{
    display:grid;
    grid-template-columns:250px 1fr;
    height:100vh;
    height:100dvh;
    width:100vw;
  }

  /* ---------------- SIDEBAR ---------------- */
  .sidebar{
    background:linear-gradient(180deg,var(--navy-900),var(--navy-950));
    color:#fff;
    display:flex;
    flex-direction:column;
    padding:26px 18px;
    position:relative;
    height:100%;
    min-height:0;
  }
  .brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding-bottom:22px;
    border-bottom:1px solid rgba(255,255,255,0.12);
    margin-bottom:18px;
  }
  .brand-badge{
    width:82px;height:82px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    margin-bottom:10px;
    overflow:hidden;
  }
  .brand-badge img{width:100%;height:100%;object-fit:contain;}
  .brand-name{font-size:15px;font-weight:700;letter-spacing:1px;line-height:1.3;}
  .brand-name .accent{color:var(--gold-400);}
  .brand-sub{font-size:9.5px;letter-spacing:1px;color:var(--gold-500);margin-top:4px;line-height:1.4;}
  .brand-role{font-size:9.5px;letter-spacing:1.5px;color:#9fb0c8;margin-top:3px;}

  nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow-y:auto;}
  .nav-btn{
    display:flex;align-items:center;gap:14px;
    padding:13px 14px;border-radius:12px;
    background:transparent;border:none;color:#c7d3e3;
    font-size:14.5px;font-weight:600;text-align:left;cursor:pointer;
    transition:background .15s ease, color .15s ease;
    width:100%;
  }
  .nav-btn .ico{
    width:26px;height:26px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  }
  .nav-btn:active{transform:scale(0.98);}
  .nav-btn.active{
    background:var(--gold-500);
    color:var(--navy-950);
  }
  .nav-btn:not(.active):hover{background:rgba(255,255,255,0.06);}

  .sidebar-footer{
    border-top:1px solid rgba(255,255,255,0.12);
    padding-top:16px;margin-top:14px;
    display:flex;align-items:center;gap:10px;
    color:#9fb0c8;font-size:12.5px;
    flex:0 0 auto;
  }

  /* ---------------- MAIN ---------------- */
  main{
    display:flex;flex-direction:column;
    height:100vh;overflow:hidden;
  }
  header.topbar{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 30px;background:#fff;border-bottom:1px solid var(--line);
    flex:0 0 auto;
    padding-top:calc(16px + env(safe-area-inset-top));
    gap:14px;
  }
  .hamburger-btn{
    display:none;
    flex-direction:column;justify-content:center;gap:5px;
    width:40px;height:40px;border-radius:10px;border:1.5px solid var(--line);
    background:#fff;cursor:pointer;flex:0 0 auto;
  }
  .hamburger-btn span{
    display:block;width:18px;height:2px;background:var(--navy-900);margin:0 auto;border-radius:2px;
  }
  .sidebar-backdrop{
    display:none;position:fixed;inset:0;background:rgba(8,20,40,0.5);z-index:40;
  }
  .sidebar-backdrop.show{display:block;}
  .logo-row{display:flex;align-items:center;gap:12px;}
  .logo-mark{
    width:38px;height:38px;border-radius:10px;
    background:linear-gradient(135deg,var(--blue),var(--teal));
    display:flex;align-items:center;justify-content:center;color:#fff;
  }
  .logo-text{line-height:1.15;}
  .logo-text .t1{font-size:20px;font-weight:800;color:var(--navy-900);}
  .logo-text .t1 span{color:var(--gold-500);}
  .logo-text .t2{font-size:11px;color:var(--ink-400);letter-spacing:.5px;}

  .lang-row{display:flex;align-items:center;gap:10px;}
  .lang-btn{
    padding:11px 18px;border-radius:12px;border:1.5px solid var(--line);
    background:#fff;color:var(--ink-600);font-weight:700;font-size:13.5px;cursor:pointer;
  }
  .lang-btn.active{background:var(--navy-900);color:#fff;border-color:var(--navy-900);}
  .icon-btn{
    width:44px;height:44px;border-radius:12px;border:1.5px solid var(--line);
    background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ink-600);
  }

  .content{
    flex:1;overflow-y:auto;padding:26px 30px calc(40px + 76px);
  }
  .panel{display:none;animation:fade .25s ease;}
  .panel.active{display:block;}
  @keyframes fade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

  /* ---- HOME HERO ---- */
  .hero{
    background:linear-gradient(120deg,#f6f8fb 0%, #e8edf4 100%);
    border-radius:22px;
    padding:34px 40px;
    display:grid;grid-template-columns:1.1fr 340px 1fr;
    align-items:center;gap:24px;
    margin-bottom:22px;
    position:relative;overflow:hidden;
  }
  .hero-eyebrow{color:var(--ink-400);font-size:20px;font-weight:600;}
  .hero-title{font-size:44px;font-weight:800;color:var(--navy-900);line-height:1.05;margin:2px 0 10px;}
  .hero-title .hl{color:var(--gold-500);}
  .hero-sub{font-size:15px;color:var(--ink-600);}
  .hero-underline{width:46px;height:4px;background:var(--gold-500);border-radius:3px;margin-top:14px;}
  .doc-photo{
    width:100%;aspect-ratio:1/1.05;border-radius:18px;
    background:linear-gradient(160deg,var(--navy-800),var(--navy-950));
    display:block;object-fit:cover;object-position:top center;
    box-shadow:var(--shadow);
  }
  .doc-info h2{font-size:22px;margin:0 0 4px;color:var(--navy-900);}
  .doc-info p{margin:0 0 14px;color:var(--ink-600);font-size:14px;}
  .stat-row{display:flex;flex-direction:column;gap:10px;}
  .stat-card{
    background:#fff;border-radius:14px;padding:12px 16px;
    display:flex;align-items:center;gap:12px;box-shadow:var(--shadow);
  }
  .stat-ico{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto;}
  .stat-num{font-size:19px;font-weight:800;color:var(--navy-900);line-height:1;}
  .stat-label{font-size:11.5px;color:var(--ink-400);}

  /* ---- BOTTOM NAV BAR (mobile-app style quick access) ---- */
  .bottom-nav{
    position:fixed; left:0; right:0; bottom:0; z-index:900;
    background:#fff; border-top:1px solid var(--line);
    display:flex; justify-content:center; overflow-x:auto; -webkit-overflow-scrolling:touch;
    padding:6px 6px calc(6px + env(safe-area-inset-bottom));
    gap:2px; box-shadow:0 -4px 16px rgba(11,30,60,0.06);
  }
  .bottom-nav::-webkit-scrollbar{ display:none; }
  .bottom-nav-item{
    flex:0 0 auto; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; padding:7px 12px; border:none; background:none; cursor:pointer;
    color:var(--ink-400); min-width:56px; border-radius:10px;
  }
  .bottom-nav-item.active{ color:var(--navy-900); background:#eef1f5; }
  .bottom-nav-item .bn-ico{ width:20px; height:20px; display:flex; align-items:center; justify-content:center; }
  .bottom-nav-item .bn-label{ font-size:9px; font-weight:700; white-space:nowrap; letter-spacing:.2px; }

  /* ---- FEATURED BANNER ---- */
  .featured{
    background:linear-gradient(120deg,var(--navy-900),var(--navy-950));
    border-radius:20px;padding:24px 30px;color:#fff;
    display:grid;grid-template-columns:150px 1fr auto auto;gap:24px;align-items:center;
  }
  .tag{
    position:absolute;margin-top:-46px;background:var(--gold-500);color:var(--navy-950);
    font-size:11px;font-weight:800;letter-spacing:1px;padding:5px 12px;border-radius:20px;
  }
  .feat-thumb{
    width:150px;height:180px;border-radius:14px;
    object-fit:cover;object-position:top center;
    border:2px solid var(--gold-500);
    display:block;
  }
  .feat-title{font-size:20px;font-weight:800;margin:0 0 6px;}
  .feat-desc{font-size:13.5px;color:#c7d3e3;max-width:440px;line-height:1.5;}
  .btn-outline{
    display:flex;align-items:center;gap:8px;background:transparent;border:1.5px solid rgba(255,255,255,0.4);
    color:#fff;padding:13px 18px;border-radius:12px;font-weight:700;font-size:13.5px;cursor:pointer;white-space:nowrap;
  }
  .btn-gold{
    display:flex;align-items:center;gap:6px;background:var(--gold-500);color:var(--navy-950);
    padding:13px 20px;border-radius:12px;font-weight:800;font-size:13.5px;border:none;cursor:pointer;white-space:nowrap;
  }

  /* ---- GENERIC SECTION HEADER ---- */
  .section-head{margin-bottom:18px;}
  .section-head h1{font-size:28px;color:var(--navy-900);margin:0 0 4px;}
  .section-head p{color:var(--ink-600);font-size:14.5px;margin:0;}

  /* ---- CARD GRID (conditions/treatments/education) ---- */
  .card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
  .info-card{
    background:#fff;border-radius:18px;padding:22px;box-shadow:var(--shadow);
    display:flex;flex-direction:column;gap:10px;cursor:pointer;transition:transform .12s ease;
  }
  .info-card:active{transform:scale(0.97);}
  .info-ico{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;}
  .info-card h3{margin:0;font-size:17px;color:var(--navy-900);}
  .info-card p{margin:0;font-size:13.5px;color:var(--ink-600);line-height:1.5;}
  .pill{align-self:flex-start;font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px;background:#eef1f5;color:var(--ink-600);}

  /* ---- VIDEOS ---- */
  .video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
  .video-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:var(--shadow);cursor:pointer;}
  .video-thumb{
    height:130px;position:relative;
    background:linear-gradient(135deg,var(--ink-900),var(--navy-800));
    display:flex;align-items:center;justify-content:center;
  }
  .play-circle{
    width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,0.92);
    display:flex;align-items:center;justify-content:center;color:var(--navy-900);
  }
  .duration{position:absolute;bottom:8px;right:10px;background:rgba(0,0,0,0.6);color:#fff;font-size:11px;padding:2px 7px;border-radius:6px;}
  .video-info{padding:14px 16px;}
  .video-info h4{margin:0 0 4px;font-size:14.5px;color:var(--navy-900);}
  .video-info span{font-size:12px;color:var(--ink-400);}

  /* ---- TESTIMONIALS / REVIEWS ---- */
  .test-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;}
  .test-card{background:#fff;border-radius:18px;padding:22px;box-shadow:var(--shadow);display:flex;gap:16px;}
  .avatar{width:56px;height:56px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:18px;}
  .test-name{font-weight:700;color:var(--navy-900);font-size:15px;}
  .test-meta{font-size:12px;color:var(--ink-400);margin-bottom:8px;}
  .stars{color:var(--gold);font-size:14px;letter-spacing:2px;margin-bottom:6px;}
  .test-quote{font-size:13.5px;color:var(--ink-600);line-height:1.55;}

  /* ---- APPOINTMENT ---- */
  .submit-btn{
    width:100%;padding:16px;border:none;border-radius:14px;background:var(--gold-500);
    color:var(--navy-950);font-weight:800;font-size:15px;cursor:pointer;
  }

  /* ---- QR PAGE ---- */
  .qr-wrap{background:#fff;border-radius:20px;padding:50px;box-shadow:var(--shadow);text-align:center;max-width:560px;margin:0 auto;}
  .qr-box{
    width:230px;height:230px;margin:0 auto 22px;border-radius:16px;border:3px solid var(--navy-900);
    display:flex;align-items:center;justify-content:center;
  }

  /* ---- WHATSAPP CARD ---- */
  .whatsapp-card{
    background:linear-gradient(120deg,#0b3d2e,#0d4d38);
    border-radius:20px;padding:28px 32px;margin-bottom:20px;
    display:grid;grid-template-columns:1fr 190px;gap:24px;align-items:center;color:#fff;
  }
  .wa-badge{
    width:46px;height:46px;border-radius:12px;background:#25D366;color:#fff;
    display:flex;align-items:center;justify-content:center;margin-bottom:10px;
  }
  .whatsapp-card h2{margin:0 0 6px;font-size:20px;}
  .whatsapp-card p{margin:0 0 10px;font-size:13.5px;color:#c9e3d8;max-width:420px;line-height:1.5;}
  .wa-contact{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#c9e3d8;}
  .wa-right{background:#fff;border-radius:16px;padding:14px;display:flex;align-items:center;justify-content:center;}
  .wa-qr-img{width:100%;aspect-ratio:1/1;border-radius:8px;display:block;}

  /* ---- MEET DOCTOR ---- */
  .doctor-wrap{display:grid;grid-template-columns:280px 1fr;gap:30px;align-items:start;}
  .doctor-photo-lg{
    width:100%;aspect-ratio:3/4;border-radius:20px;background:linear-gradient(160deg,var(--navy-800),var(--navy-950));
    display:block;object-fit:cover;object-position:top center;box-shadow:var(--shadow);
  }
  .cred-list{display:flex;flex-direction:column;gap:10px;margin-top:16px;}
  .cred-item{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--ink-600);}
  .cred-dot{width:6px;height:6px;border-radius:50%;background:var(--gold-500);margin-top:6px;flex:0 0 auto;}
  .spec-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
  .social-row{
    display:flex;align-items:center;gap:12px;margin-top:24px;padding-top:18px;
    border-top:1px solid var(--line);
  }
  .social-label{font-size:12px;color:var(--ink-400);font-weight:600;}
  .social-icons{display:flex;gap:8px;}
  .social-icon{
    width:34px;height:34px;border-radius:50%;background:#eef1f5;color:var(--ink-600);
    display:flex;align-items:center;justify-content:center;text-decoration:none;
    transition:background .15s ease,color .15s ease;
  }
  .social-icon:hover{background:var(--navy-900);color:#fff;}
  .spec-tag{background:#eef1f5;color:var(--navy-900);padding:8px 14px;border-radius:20px;font-size:12.5px;font-weight:700;}

  ::-webkit-scrollbar{width:8px;}
  ::-webkit-scrollbar-thumb{background:#c7d0dc;border-radius:8px;}

  /* ---- BACK BUTTON ---- */
  .back-btn{
    display:inline-flex;align-items:center;gap:6px;
    background:#fff;border:1.5px solid var(--line);color:var(--ink-600);
    font-weight:700;font-size:13.5px;padding:11px 18px;border-radius:12px;
    cursor:pointer;margin-bottom:18px;
  }
  .back-btn:active{transform:scale(0.97);}

  /* ---- DETAIL PAGE ---- */
  .detail-head{
    display:flex;align-items:center;gap:18px;margin-bottom:22px;
  }
  .detail-ico{
    width:64px;height:64px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto;
  }
  .detail-head h1{font-size:26px;color:var(--navy-900);margin:0 0 4px;}
  .detail-tag{font-size:11.5px;font-weight:700;color:var(--ink-400);text-transform:uppercase;letter-spacing:.5px;}
  .detail-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;align-items:start;}
  .detail-card{background:#fff;border-radius:18px;padding:24px 26px;box-shadow:var(--shadow);margin-bottom:18px;}
  .detail-card h3{margin:0 0 10px;font-size:16px;color:var(--navy-900);}
  .detail-card p{margin:0;font-size:14px;color:var(--ink-600);line-height:1.65;}
  .detail-list{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:10px;}
  .detail-list li{display:flex;gap:10px;font-size:13.5px;color:var(--ink-600);line-height:1.5;}
  .detail-list .num{
    width:22px;height:22px;border-radius:50%;background:var(--navy-900);color:#fff;
    font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  }
  .detail-list .check{color:var(--teal);flex:0 0 auto;}
  .related-card{
    background:#fff;border-radius:18px;padding:20px;box-shadow:var(--shadow);cursor:pointer;
    display:flex;align-items:center;gap:14px;margin-bottom:12px;transition:transform .12s ease;
  }
  .related-card:active{transform:scale(0.97);}
  .related-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto;}
  .related-card h4{margin:0 0 2px;font-size:14.5px;color:var(--navy-900);}
  .related-card span{font-size:12px;color:var(--ink-400);}
  .cta-card{
    background:linear-gradient(120deg,var(--navy-900),var(--navy-950));border-radius:18px;
    padding:22px;color:#fff;text-align:center;
  }
  .cta-card p{font-size:13px;color:#c7d3e3;margin:0 0 14px;}
  .cta-card button{width:100%;}

  /* ---- VIDEO MODAL ---- */
  .modal-overlay{
    display:none;position:fixed;inset:0;background:rgba(8,20,40,0.7);
    align-items:center;justify-content:center;z-index:999;padding:30px;
  }
  .modal-overlay.show{display:flex;}
  .modal-box{
    background:#0b1e38;border-radius:18px;padding:16px;width:100%;max-width:720px;position:relative;
  }
  .modal-box video{width:100%;max-height:70vh;border-radius:12px;background:#000;display:block;}
  .modal-video-wrap{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000;}
  .modal-video-wrap video, .modal-video-wrap iframe{
    position:absolute;top:0;left:0;width:100%;height:100%;border:0;display:block;
  }
  .modal-yt-link{
    display:flex;align-items:center;gap:6px;color:#c7d3e3;font-size:12.5px;font-weight:600;
    text-decoration:none;margin-top:10px;width:fit-content;
  }
  .modal-yt-link:hover{color:#fff;}
  .modal-close{
    position:absolute;top:-14px;right:-14px;width:34px;height:34px;border-radius:50%;
    background:#fff;border:none;color:var(--navy-900);font-weight:800;cursor:pointer;box-shadow:var(--shadow);
  }
  .modal-video-title{color:#fff;font-weight:700;font-size:15px;margin-top:12px;}
  .modal-video-sub{color:#8896a8;font-size:12px;margin-top:3px;}

  /* ============================================================
     RESPONSIVE / MOBILE LAYOUT
     Below this width the sidebar becomes a slide-out drawer
     (triggered by the hamburger button) and every multi-column
     grid collapses to a single column so nothing gets squeezed.
     ============================================================ */
  @media (max-width: 860px){
    .app{ grid-template-columns: 1fr; }

    .hamburger-btn{ display:flex; }

    .sidebar{
      position:fixed; top:0; left:0; bottom:0; z-index:50;
      width:82vw; max-width:320px;
      transform:translateX(-100%);
      transition:transform .25s ease;
      padding-top:calc(26px + env(safe-area-inset-top));
      padding-bottom:calc(26px + env(safe-area-inset-bottom));
      box-shadow:6px 0 24px rgba(0,0,0,0.25);
    }
    .sidebar.open{ transform:translateX(0); }

    header.topbar{ padding-left:16px; padding-right:16px; flex-wrap:wrap; row-gap:10px; }
    .lang-row{ width:100%; justify-content:center; }
    .logo-text .t1{ font-size:17px; }
    .logo-text .t2{ font-size:9.5px; }
    .lang-row{ gap:6px; }
    .lang-btn{ padding:9px 12px; font-size:12px; }
    .icon-btn{ width:38px; height:38px; }

    .content{ padding:18px 16px calc(140px + env(safe-area-inset-bottom)); }

    /* Bottom nav: 2 rows of 5 icons instead of one long scrolling row */
    .bottom-nav{
      flex-wrap:wrap; justify-content:center; overflow-x:visible; gap:0;
    }
    .bottom-nav-item{
      flex:0 0 20%; min-width:0; padding:6px 2px;
    }
    .bottom-nav-item .bn-label{ font-size:8.5px; }

    /* Hero */
    .hero{
      grid-template-columns:1fr; padding:22px 20px; text-align:center;
    }
    .hero-title{ font-size:32px; }
    .hero-eyebrow{ font-size:16px; }
    .hero-underline{ margin-left:auto; margin-right:auto; }
    .doc-photo{ max-width:220px; margin:0 auto; }
    .doc-info{ text-align:left; }
    .stat-row{ flex-direction:row; flex-wrap:wrap; }
    .stat-card{ flex:1 1 calc(50% - 6px); }

    /* Cards, videos, testimonials */
    .card-grid{ grid-template-columns:1fr; }
    .video-grid{ grid-template-columns:1fr 1fr; gap:12px; }
    .test-grid{ grid-template-columns:1fr; }

    /* Featured banner */
    .featured{
      grid-template-columns:1fr; text-align:center; padding:20px;
    }
    .feat-thumb{ margin:0 auto; }
    .btn-outline, .btn-gold{ justify-content:center; }

    /* Meet Doctor */
    .doctor-wrap{ grid-template-columns:1fr; }
    .doctor-photo-lg{ max-width:260px; margin:0 auto; aspect-ratio:1/1; }

    /* Detail pages */
    .detail-grid{ grid-template-columns:1fr; }
    .detail-head{ flex-direction:column; text-align:center; }

    /* WhatsApp / Appointment */
    .whatsapp-card{ grid-template-columns:1fr; text-align:center; }
    .wa-right{ max-width:220px; margin:0 auto; }
    .wa-contact{ justify-content:center; }

    .qr-wrap{ padding:30px 20px; }

    /* Modals */
    .modal-box{ max-width:94vw; }
  }

  @media (max-width: 480px){
    .video-grid{ grid-template-columns:1fr; }
    .stat-card{ flex:1 1 100%; }
    .hero-title{ font-size:26px; }
    .lang-btn{ padding:8px 9px; font-size:11px; }
  }

  /* ============================================================
     SPLASH / INTRO SCREEN — IR@SABAH design
     ============================================================ */
  .splash{
    position:fixed; inset:0; z-index:2000;
    background:#0a1530;
    overflow:hidden;
    height:100vh;
    height:100dvh;
  }
  .splash.hide{ opacity:0; visibility:hidden; pointer-events:none; }
  .splash-stage-wrapper{
    position:relative;
    width:100vw;
    width:min(100vw, 177.68vh);
    width:min(100vw, 177.68dvh);
    margin:auto;
    top:50%; transform:translateY(-50%);
  }
  .splash-stage-spacer{ width:100%; padding-top:56.281%; }
  .splash-stage{
    position:absolute; top:0; left:0; right:0; bottom:0;
  }
  .splash-bg-img{
    position:absolute; top:0; left:0; right:0; bottom:0;
    width:100%; height:100%; object-fit:cover; display:block;
  }
  .splash-content{
    position:absolute; top:0; left:0; right:0; bottom:0;
    z-index:1;
  }
  .splash-ring{
    position:absolute; left:50%; top:40.38%;
    width:23.33%; height:41.45%;
    transform:translate(-50%, -50%) rotate(0deg);
    border-radius:50%;
    pointer-events:none;
  }
  .splash-ring::before{
    /* crisp static gold ring outline, reinforcing the ring baked into the artwork */
    content:"";
    position:absolute; inset:0;
    border-radius:50%;
    border:2px solid rgba(243,211,135,0.55);
    box-shadow:
      0 0 14px 2px rgba(233,185,73,0.25),
      inset 0 0 14px 2px rgba(233,185,73,0.15);
  }
  .splash-orbit-wrap{
    position:absolute; left:50%; top:40.38%;
    width:23.33%; height:41.45%;
    transform:translate(-50%, -50%) rotate(0deg);
    pointer-events:none;
    animation: splashOrbit 6s linear infinite;
  }
  .splash-orbit-wrap .dot{
    position:absolute; top:0%; left:50%;
    width:5%; height:5%;
    transform:translate(-50%, -50%);
    border-radius:50%;
    background:radial-gradient(circle, #fffaf0 0%, #f8dfa0 45%, rgba(243,211,135,0) 75%);
    box-shadow:0 0 10px 3px rgba(255,248,224,0.85), 0 0 20px 6px rgba(233,185,73,0.45);
  }
  .splash-orbit-wrap.o2{ animation-delay:-1.5s; }
  .splash-orbit-wrap.o3{ animation-delay:-3s; }
  .splash-orbit-wrap.o4{ animation-delay:-4.5s; }
  @keyframes splashOrbit{
    from{ transform:translate(-50%, -50%) rotate(0deg); }
    to{ transform:translate(-50%, -50%) rotate(360deg); }
  }
  .splash-logo-img{
    position:absolute; left:50%; top:10.5%;
    width:7.5%; height:13.4%;
    transform:translate(-50%, -50%);
    object-fit:contain;
    filter: drop-shadow(0 0 10px rgba(233,185,73,0.35));
    opacity:0;
    animation: splashLogoIn 1s ease-out both, splashLogoPulse 3s ease-in-out 1s infinite;
  }
  .splash-wordmark{
    position:absolute; left:50%; top:66.5%;
    transform:translate(-50%, -50%);
    font-weight:800; letter-spacing:0.5px; line-height:1;
    font-size:clamp(20px, 3vw, 46px);
    white-space:nowrap;
    opacity:0;
    animation: splashFadeUp2 1s ease-out 0.4s both;
  }
  .splash-wordmark .w{ color:#fff; }
  .splash-wordmark .g{
    background:linear-gradient(90deg, #f3d387, #e9b949, #f3d387);
    background-size:200% auto;
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    animation: splashShimmer 4s linear 1.4s infinite;
  }
  .splash-name{
    position:absolute; left:50%; top:71.5%;
    transform:translate(-50%, -50%);
    font-weight:700; color:#fff;
    font-size:clamp(11px, 1.6vw, 22px);
    white-space:nowrap;
    opacity:0;
    animation: splashFadeUp2 1s ease-out 0.8s both;
  }
  .splash-heartbeat{
    position:absolute; left:50%; top:76%;
    transform:translate(-50%, -50%);
    width:15%; height:auto;
    opacity:0;
    animation: splashFadeUp2 1s ease-out 0.9s both;
  }
  .splash-role{
    position:absolute; left:50%; top:79.8%;
    transform:translate(-50%, -50%);
    font-size:clamp(9px, 1vw, 14px); color:#f3d387;
    white-space:nowrap;
    opacity:0;
    animation: splashFadeUp2 1s ease-out 1s both;
  }
  .splash-enter-btn{
    position:absolute; left:50%; top:85%;
    transform:translate(-50%, -50%);
    padding:0.8% 2.4%; border:none; border-radius:999px;
    background:linear-gradient(135deg, #f3d387, #e9b949);
    color:#1a1204; font-weight:800; letter-spacing:0.5px; cursor:pointer;
    font-size:clamp(8px, 0.8vw, 11px);
    box-shadow:0 6px 18px rgba(212,169,74,0.3);
    opacity:0;
    animation: splashFadeUp2 0.9s ease-out 1.2s both, splashBtnPulse 2.6s ease-in-out 2.1s infinite;
    transition:transform .15s ease;
  }
  .splash-enter-btn:hover{ transform:translate(-50%, -50%) scale(1.05); }

  @keyframes splashLogoIn{ from{ opacity:0; transform:translate(-50%,-50%) scale(0.7);} to{ opacity:1; transform:translate(-50%,-50%) scale(1);} }
  @keyframes splashLogoPulse{
    0%,100%{ filter:drop-shadow(0 0 8px rgba(233,185,73,0.3)); }
    50%{ filter:drop-shadow(0 0 20px rgba(233,185,73,0.65)); }
  }
  @keyframes splashFadeUp2{ from{ opacity:0; transform:translate(-50%,-40%);} to{ opacity:1; transform:translate(-50%,-50%);} }
  @keyframes splashShimmer{ 0%{ background-position:0% center;} 100%{ background-position:200% center;} }
  @keyframes splashBtnPulse{
    0%,100%{ box-shadow:0 0 14px rgba(233,185,73,0.25); }
    50%{ box-shadow:0 0 30px rgba(233,185,73,0.6); }
  }

  @media (prefers-reduced-motion: reduce){
    .splash-logo-img, .splash-wordmark, .splash-name, .splash-enter-btn{
      animation:none !important; opacity:1 !important; transform:translate(-50%,-50%) !important;
    }
    .splash-wordmark .g{ animation:none !important; }
  }

  /* ============================================================
     MOBILE / TABLET PORTRAIT — dedicated taller layout so the
     splash actually fills a phone/tablet screen instead of
     shrinking the wide desktop artwork into a tiny strip.
     ============================================================ */
  .splash-mobile-wrapper{ display:none; }

  @media (max-width: 760px), (orientation: portrait) and (max-width: 1024px){
    .splash-stage-wrapper{ display:none; }
    .splash-mobile-wrapper{
      display:block;
      position:relative;
      width:100vw;
      height:100vh;
      height:100dvh;
      margin:auto;
    }
    .splash-mobile-spacer{ display:none; }
    .splash-mobile-stage{
      position:absolute; top:0; left:0; right:0; bottom:0;
      width:100%; height:100%;
    }
    .splash-mobile-stage .splash-bg-img{
      position:absolute; top:0; left:0; right:0; bottom:0;
      width:100%; height:100%; object-fit:cover; display:block;
    }
    .splash-mobile-stage .splash-content{
      position:absolute; top:0; left:0; right:0; bottom:0; z-index:1;
    }
    .splash-logo-img.m{ top:15.6%; width:11%; height:9.9%; }
    .splash-wordmark.m{ top:56.25%; font-size:clamp(26px, 8vw, 42px); }
    .splash-name.m{ top:59.4%; font-size:clamp(14px, 4vw, 20px); }
    .splash-heartbeat.m{ top:62.15%; width:38%; }
    .splash-role.m{ top:64.76%; font-size:clamp(11px, 3vw, 14px); }
    .splash-enter-btn.m{ top:69.2%; padding:2.2% 7%; font-size:clamp(14px, 4vw, 17px); }
    .splash-orbit-wrap.m{ left:50%; top:40.625%; width:44.44%; height:25%; }
  }
