/* Unified IGTA-X mobile navigation and editorial hero treatments. */
.nav-mobile-cta{display:none}

@media(max-width:980px){
  body:has(.main-nav.open)::before{
    content:"";position:fixed;inset:0;z-index:68;
    background:rgba(0,0,0,.74);backdrop-filter:blur(5px);
  }
  body:has(.main-nav.open){overflow:hidden}
  .site-header{z-index:90}
  .main-nav{
    position:absolute;top:calc(100% - 1px);left:12px;right:12px;
    width:auto;margin:0;max-height:calc(100dvh - 94px);overflow-y:auto;
    display:none;flex-direction:column;align-items:stretch;gap:4px;
    padding:18px;border:1px solid rgba(219,169,88,.37);
    border-top:2px solid #cba15b;border-radius:0 0 22px 22px;
    background:radial-gradient(circle at 100% 0,rgba(202,144,55,.18),transparent 48%),linear-gradient(160deg,#1b1a1b,#0d0f13 88%);
    box-shadow:0 28px 75px rgba(0,0,0,.78),0 0 34px rgba(188,138,66,.09);
    overscroll-behavior:contain;
  }
  .main-nav.open{display:flex;animation:igta-menu-appear .24s ease-out both;border-radius:0 0 22px 22px}
  .main-nav a{
    display:flex;align-items:center;justify-content:space-between;
    width:100%;min-height:56px;padding:15px 16px;border:1px solid transparent;
    border-bottom-color:rgba(232,196,134,.1);border-radius:11px;
    color:#e0dbd2;font-size:14px;font-weight:750;letter-spacing:.005em;
  }
  .main-nav a::after{content:"→";color:#c9aa73;font-size:20px;font-weight:450;line-height:1}
  .main-nav a[aria-current="page"]{
    color:#f3d390;background:linear-gradient(100deg,rgba(205,151,67,.18),rgba(205,151,67,.045));
    border-color:rgba(232,182,101,.35);padding-left:18px;
  }
  .main-nav a[aria-current="page"]::after{color:#f3d390}
  .nav-mobile-cta{
    display:flex;align-items:center;justify-content:space-between;width:100%;
    margin-top:14px;min-height:55px;padding:14px 18px;border:1px solid #f3d38e;
    border-radius:12px;background:linear-gradient(112deg,#e6bb6b,#f6d89c 51%,#c6954c);
    color:#21180d;font-size:13px;font-weight:850;box-shadow:0 7px 24px rgba(227,175,94,.2);
  }
  .nav-mobile-cta span:last-child{font-size:23px;line-height:1}
  .menu-toggle{
    display:block;width:43px;height:43px;padding:10px 9px;
    border:1px solid rgba(220,181,112,.52);border-radius:12px;
    background:linear-gradient(150deg,rgba(204,159,81,.14),rgba(20,19,18,.88));
    flex:none;transition:background .2s,border-color .2s;
  }
  .menu-toggle span{
    height:2px;width:21px;margin:6px auto;background:#eed2a0;
    border-radius:2px;transition:transform .24s ease;
  }
  .menu-toggle[aria-expanded="true"]{background:#2a2117;border-color:#e5be7b}
  .menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(4px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-4px) rotate(-45deg)}
  .lang-toggle{min-height:43px;padding:8px 2px;font-size:11px}

  /* The older responsive rules hid the 3D icon. Bring it into the heading flow. */
  .page-hero-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
  .page-hero-grid>div:first-child{display:contents}
  .page-hero-grid .page-kicker{order:1}
  .page-hero-grid h1{order:2;margin:24px 0 10px}
  .page-hero-grid .hero-orbit{
    order:3;display:grid;justify-self:center;width:min(270px,66vw);
    margin:16px auto 40px;
  }
  .page-hero-grid p{order:4;max-width:100%;margin:0 0 23px}
  .page-hero-grid .hero-mini-actions{order:5}
}
@media(max-width:650px){
  .main-nav{left:10px;right:10px;padding:14px 13px 16px;max-height:calc(100dvh - 82px)}
  .main-nav a{min-height:53px;padding:12px 14px;font-size:13px}
  .site-header .brand img{width:49px;height:49px}
  .page-hero-grid h1{margin:20px 0 6px;line-height:1.1}
  .page-hero-grid .hero-orbit{width:min(228px,60vw);margin:20px auto 35px}
  .hero-orbit .orbit-label{bottom:-24px;max-width:80vw;white-space:nowrap}
}
@keyframes igta-menu-appear{
  from{opacity:0;transform:translateY(-9px)}
  to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  .main-nav.open{animation:none}
  .menu-toggle span{transition:none}
}
