/* Mobile-only compatibility layer for the preserved original portfolio.
   The original 132 KB HTML is kept byte-for-byte in original-source.html. */

html,body{max-width:100%;overflow-x:hidden}

@media (max-width: 980px){
  .container{width:min(100% - 24px,1280px)!important}
  .main{padding-top:150px!important;padding-bottom:56px!important}

  #nav{padding:8px 12px!important}
  #nav .container{width:100%!important}
  .nav-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 10px!important;align-items:center!important}
  .brand{min-width:0!important;gap:10px!important}
  .brand-mark{width:10px!important;height:10px!important;flex:0 0 auto!important}
  .brand-name{font-size:24px!important}
  .brand-sub{font-size:9px!important;letter-spacing:.1em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .lang-switch{grid-column:2!important;grid-row:1!important;margin:0!important;justify-self:end!important}
  .nav-tabs{grid-column:1 / -1!important;grid-row:2!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scrollbar-width:none!important;padding:2px 0 4px!important;-webkit-overflow-scrolling:touch!important}
  .nav-tabs::-webkit-scrollbar{display:none!important}
  .nav-tab{flex:0 0 auto!important;white-space:nowrap!important;padding:8px 11px!important;font-size:11px!important}

  .hero{padding:24px!important;border-radius:24px!important}
  .hero-grid{display:block!important;width:100%!important}
  .hero-left{width:100%!important;min-width:0!important}
  .hero h1.hero-name{font-size:clamp(54px,12vw,84px)!important;line-height:.84!important;margin:18px 0 14px!important}
  .hero h1.hero-name>span{white-space:normal!important;overflow-wrap:anywhere!important}
  .hero .subtitle{font-size:clamp(23px,5vw,31px)!important;line-height:1.12!important}
  .hero .bio{font-size:16px!important;line-height:1.65!important;margin-top:18px!important}
  .hero-actions{gap:9px!important;margin-top:20px!important}
  .btn{font-size:14px!important;padding:12px 15px!important}

  .hero-dashboard-below{grid-template-columns:1fr!important;gap:10px!important;margin-top:22px!important}
  .hero-dashboard-below>.panel,.panel{min-width:0!important;padding:17px!important;border-radius:18px!important}
  .hero-dashboard-below>.panel:last-child{grid-column:auto!important}
  .hero-dashboard-below .investor-status-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .hero-dashboard-below .metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .hero-dashboard-below .metric{min-width:0!important;min-height:68px!important;padding:10px!important}
  .hero-dashboard-below .metric-num{font-size:26px!important}
  .hero-dashboard-below .metric-label{font-size:9px!important;overflow-wrap:anywhere!important}
  .stats-line{overflow-wrap:anywhere!important}

  .section{padding-top:52px!important}
  .section-head{display:block!important;margin-bottom:18px!important}
  .section-title{font-size:clamp(40px,9vw,58px)!important;line-height:.95!important;overflow-wrap:anywhere!important}
  .section-sub{font-size:15px!important;line-height:1.65!important;margin-top:12px!important}
  .dual-grid,.products-grid,.footer-grid{grid-template-columns:1fr!important;gap:14px!important}
  .content-card,.offer-card,.product-card,.timeline-card,.contact-card{min-width:0!important;padding:20px!important;border-radius:20px!important}
  .timeline-card{grid-template-columns:64px minmax(0,1fr)!important;gap:14px!important}
  .timeline-index{font-size:42px!important}
  .timeline-body h3,.content-card h3,.product-card h3,.contact-card h3{font-size:22px!important;overflow-wrap:anywhere!important}
  .timeline-body p,.product-card p,.contact-card p,.offer-card p,.offer-card li{font-size:15px!important;line-height:1.7!important}
  .article-list a{font-size:15px!important;line-height:1.45!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .article-desc{font-size:13.5px!important;line-height:1.6!important}
  .link-chip{max-width:100%!important;overflow-wrap:anywhere!important}
  .product-card .subtle{font-size:13.5px!important;line-height:1.65!important}

  .depth-tile:hover{transform:none!important}
  #cursor-glow{display:none!important}
}

@media (max-width: 650px){
  .container{width:calc(100% - 16px)!important}
  .main{padding-top:142px!important}
  .hero{padding:18px!important;border-radius:20px!important}
  .eyebrow{font-size:10px!important;letter-spacing:.1em!important;padding:7px 10px!important;max-width:100%!important;white-space:normal!important}
  .hero h1.hero-name{font-size:clamp(46px,15vw,70px)!important;line-height:.86!important;margin-top:16px!important}
  .hero .subtitle{font-size:22px!important}
  .hero .bio{font-size:15px!important;line-height:1.6!important}
  .hero-actions{display:grid!important;grid-template-columns:1fr!important}
  .hero-actions .btn{width:100%!important;justify-content:center!important;text-align:center!important}

  .hero-dashboard-below .investor-status-grid{grid-template-columns:1fr!important}
  .hero-dashboard-below .investor-status-item{padding:11px 12px!important;gap:10px!important}
  .hero-dashboard-below .investor-status-year{font-size:27px!important}
  .hero-dashboard-below .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .section{padding-top:44px!important}
  .section-kicker{font-size:10px!important}
  .section-title{font-size:clamp(36px,11vw,48px)!important}
  .section-sub{font-size:14.5px!important}
  .content-card,.offer-card,.product-card,.timeline-card,.contact-card{padding:17px!important;border-radius:17px!important}
  .timeline-card{grid-template-columns:1fr!important;gap:8px!important}
  .timeline-index{font-size:36px!important}
  .timeline-body h3,.content-card h3,.product-card h3,.contact-card h3{font-size:20px!important}
  .offer-card ul{padding-left:18px!important}
  .article-list{gap:9px!important}
  .article-list li{padding:12px 0!important}
  .links-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .link-chip{width:100%!important;text-align:center!important;padding:11px 12px!important}
  .card-tag{font-size:9px!important;letter-spacing:.08em!important;max-width:100%!important;white-space:normal!important}

  #hex-bg,.scan-line{display:none!important}
}

@media (max-width: 390px){
  .main{padding-top:138px!important}
  .brand-name{font-size:21px!important}
  .brand-sub{font-size:8px!important}
  .lang-btn{padding:6px 8px!important;font-size:10px!important}
  .nav-tab{padding:7px 9px!important;font-size:10px!important}
  .hero{padding:15px!important}
  .hero h1.hero-name{font-size:43px!important}
  .hero .subtitle{font-size:20px!important}
  .hero-dashboard-below .metric-num{font-size:23px!important}
  .section-title{font-size:34px!important}
}

@media (hover:none),(pointer:coarse){
  .depth-tile:hover,.btn:hover,.nav-tab:hover{transform:none!important}
  .card-holo:hover::after{transform:translateX(-130%)!important}
}
