/* ================================================================
   C-SP — Global Mobile / Responsive Stylesheet
   Breakpoints: desktop ≥1025px  |  tablet ≤1024px  |  mobile ≤768px  |  xs ≤390px
================================================================ */

/* ================================================================
   DESKTOP — Content width limiter
   Keeps all page content ≤ 1280px, centered on wide monitors.
   Uses max() so nothing changes below 1424px viewport width.
================================================================ */
@media(min-width:1025px){
  /* sections and page-level containers */
  section,
  .biz-hero,
  .biz-section,
  .page-hero,
  .lp-hero,
  .lp-section,
  footer,
  #cta {
    padding-left:  max(72px, calc((100% - 1280px) / 2)) !important;
    padding-right: max(72px, calc((100% - 1280px) / 2)) !important;
  }
  /* hero inner content */
  .hero-inner {
    padding-left:  max(72px, calc((100vw - 1280px) / 2));
    padding-right: max(72px, calc((100vw - 1280px) / 2));
  }
  /* hero status bar */
  .hero-status {
    left:  max(72px, calc((100vw - 1280px) / 2));
    right: max(72px, calc((100vw - 1280px) / 2));
  }
  /* floated link grid */
  .link-grid {
    margin-left:  max(72px, calc((100% - 1280px) / 2)) !important;
    margin-right: max(72px, calc((100% - 1280px) / 2)) !important;
  }
  /* service page CTA block */
  .biz-cta {
    margin-left:  max(72px, calc((100% - 1280px) / 2)) !important;
    margin-right: max(72px, calc((100% - 1280px) / 2)) !important;
  }
}

/* ── Hamburger button (hidden on desktop, shown on mobile) ── */
.nav-hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  background:none;border:none;cursor:pointer;padding:8px;margin-left:6px;
  z-index:901;flex-shrink:0;
}
.nav-hamburger span{
  display:block;width:22px;height:1.5px;background:#fff;border-radius:2px;
  transition:transform .35s cubic-bezier(.77,0,.18,1),opacity .2s;
}
.nav-hamburger.active span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav-hamburger.active span:nth-child(2){opacity:0;transform:scaleX(0)}
.nav-hamburger.active span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* ── Mobile nav drawer ── */
.nav-drawer{
  position:fixed;inset:0;
  background:rgba(4,6,13,0.97);
  backdrop-filter:blur(24px);
  z-index:799;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  transform:translateX(100%);
  transition:transform .42s cubic-bezier(.77,0,.18,1);
  padding:40px 32px;
  gap:0;
}
.nav-drawer.open{transform:translateX(0)}
.nav-drawer-links{display:flex;flex-direction:column;align-items:center;width:100%;gap:0}
.nav-drawer-links a{
  display:block;font-size:32px;font-weight:900;
  color:rgba(255,255,255,0.7);text-decoration:none;
  letter-spacing:-.02em;padding:14px 0;text-align:center;
  width:100%;border-bottom:1px solid rgba(255,255,255,0.05);
  transition:color .2s;font-family:'Exo 2',sans-serif;
}
.nav-drawer-links a:first-child{border-top:1px solid rgba(255,255,255,0.05)}
.nav-drawer-links a:hover{color:#00d4ff}
.nav-drawer .drawer-cta{
  display:inline-flex;align-items:center;gap:8px;
  background:#00d4ff;color:#000 !important;
  font-size:14px !important;font-weight:800;letter-spacing:.06em;
  padding:16px 44px !important;border-radius:999px;
  border:none !important;width:auto !important;
  text-align:center;margin-top:36px;
  transition:opacity .2s;
}
.nav-drawer .drawer-cta:hover{opacity:.88;color:#000 !important}
/* drawer close hint */
.drawer-esc{
  position:absolute;top:24px;right:28px;
  font-size:10px;letter-spacing:.18em;color:rgba(255,255,255,0.2);
  font-family:'Exo 2',sans-serif;
}

/* ================================================================
   TABLET  ≤ 1024px
================================================================ */
@media(max-width:1024px){
  section{padding:80px 40px !important}
  footer{padding:24px 40px !important}
  .link-grid{margin:0 40px 80px !important}
  nav.main-nav{left:20px;right:20px;transform:none;top:16px;width:auto;max-width:none}
  .hero-inner{padding:0 40px;gap:40px}
  .hero-status{left:40px;right:40px}
  .hero-content{width:min(460px,50%)}
  /* orb scale down */
  .hv-scene{width:300px;height:300px}
  .hv-ring-1{width:270px;height:270px}
  .hv-ring-2{width:200px;height:200px}
  .hv-ring-3{width:148px;height:148px}
  .hv-core{width:90px;height:90px}
  .hv-core svg{width:34px;height:34px}
  .hv-scan{width:270px}
  .hv-b1,.hv-b2{right:0}
  .hv-b3,.hv-b4{left:0}
  /* section grids */
  .card-grid.cols-3{grid-template-columns:repeat(2,1fr)}
  /* about – tablet */
  .mvva-grid{grid-template-columns:1fr !important}
  .mvva-card{border-right:none !important;border-bottom:1px solid rgba(0,212,255,0.07) !important;padding:32px 28px !important}
  .mvva-card:last-child{border-bottom:none !important}
  .officers-grid{grid-template-columns:1fr !important}
  .value-grid{grid-template-columns:repeat(3,1fr)}
  #cta{padding:80px 40px !important}
  .cta-hl{font-size:clamp(38px,5.5vw,68px) !important}
}

/* ================================================================
   MOBILE  ≤ 768px
================================================================ */
@media(max-width:768px){
  /* cursor off */
  body{cursor:auto !important}
  #cursor,#cursor-ring{display:none !important}

  /* ── NAV ── */
  nav.main-nav{
    top:12px;left:12px;right:12px;transform:none;width:auto;max-width:none;
    border-radius:14px;padding:10px 10px 10px 14px;justify-content:space-between;
  }
  .nav-links{display:none !important}
  .nav-cta{display:none !important}
  .nav-hamburger{display:flex}

  /* ── HERO ── */
  #hero{height:auto;min-height:100svh;min-height:100vh}
  .hero-inner{
    flex-direction:column;align-items:flex-start;
    padding:100px 20px 60px;gap:0;width:100%;
  }
  .hero-content{width:100%;max-width:none}
  .hero-badge{font-size:9px;letter-spacing:.1em;padding:4px 12px;margin-bottom:20px}
  .hero-headline{
    font-size:clamp(34px,9vw,50px) !important;
    white-space:normal !important;
    line-height:1.2;margin-bottom:16px;
  }
  .hero-sub{font-size:13px;line-height:1.8;max-width:100%;margin-bottom:28px}
  .hero-sub br{display:none}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:14px}
  .btn-primary{width:100%;justify-content:center;font-size:14px;padding:15px 24px}
  .btn-ghost{padding:0}
  .hero-stats{flex-wrap:wrap;gap:24px 36px;margin-top:32px;padding-top:24px}
  .hero-stat .num{font-size:28px}
  .hero-stat .num .unit{font-size:16px}
  .hero-stat .lbl{font-size:9px}
  .hero-visual{display:none !important}
  .hero-status{display:none !important}
  .bracket{display:none !important}

  /* ── SECTIONS ── */
  section{padding:56px 20px !important;overflow:hidden}
  .section-inner{overflow:hidden}
  .section-label{margin-bottom:20px;font-size:9px}
  .section-headline{font-size:clamp(24px,7vw,36px) !important;line-height:1.15}
  .bg-label{font-size:clamp(44px,16vw,72px);top:10px}

  /* ── MISSION ── */
  .mission-grid{grid-template-columns:1fr !important;gap:32px;margin-top:28px}
  .mission-text h3{font-size:clamp(20px,5.5vw,26px)}
  .mission-text h3 br{display:none}
  .mission-text p{font-size:13px}
  .mission-visual{padding:20px}
  .mv-item h4{font-size:13px}
  .mv-item p{font-size:12px}

  /* ── SERVICES ── */
  .card-grid.cols-3{grid-template-columns:1fr !important}
  .card{padding:22px 18px}
  .card-title{font-size:15px}
  .card-body{font-size:12px}

  /* ── CYBER SP TEASER ── */
  .csp-grid{grid-template-columns:1fr !important;gap:28px;margin-top:28px}
  .csp-left h2{font-size:clamp(22px,7vw,32px) !important}
  .csp-left h2 br{display:none}
  .csp-left p{font-size:13px;max-width:100%}
  .csp-badge{font-size:9px;letter-spacing:.08em}
  .csp-stat-row{gap:8px}
  .csp-stat .n{font-size:18px}

  /* ── NEWS ── */
  .news-item{grid-template-columns:1fr 24px !important;gap:12px;padding:14px 0}
  .news-date,.news-tag{display:none !important}
  .news-title{font-size:13px}

  /* ── CTA ── */
  #cta{padding:72px 20px !important;text-align:left}
  .cta-hl{font-size:clamp(30px,9vw,44px) !important;line-height:1.1;margin-bottom:28px;text-align:left}
  .cta-hl br{display:none}
  .cta-btn{width:100%;justify-content:center;font-size:14px;padding:16px 24px}

  /* ── LINK GRID ── */
  .link-grid{grid-template-columns:1fr !important;margin:0 0 56px !important;gap:0}
  .link-card{padding:32px 20px;min-height:auto}
  .lc-title{font-size:26px}
  .lc-desc{font-size:12px;max-width:100%}
  .lc-label{font-size:9px}

  /* ── FOOTER ── */
  footer{flex-direction:column !important;gap:16px;text-align:center;padding:28px 20px !important}
  .footer-links{flex-wrap:wrap;justify-content:center;gap:10px 16px}
  .footer-links a{font-size:10px}

  /* ── ABOUT page ── */
  .page-hero{padding:110px 20px 56px !important}
  .page-hero h1{font-size:clamp(38px,11vw,56px) !important;line-height:1.08}
  .page-hero p{font-size:13px;margin-top:16px}
  .breadcrumb{font-size:9px;margin-bottom:18px}

  /* MVV about */
  #mvv-about{overflow:hidden}
  .mvva-grid{grid-template-columns:1fr !important;border-radius:14px}
  .mvva-card{
    border-right:none !important;
    border-bottom:1px solid rgba(0,212,255,0.08) !important;
    padding:28px 20px !important;
  }
  .mvva-card:last-child{border-bottom:none !important}
  .mvva-title{font-size:22px !important}
  .mvva-icon{width:32px;height:32px;margin-bottom:14px}
  .val-list{margin-top:6px}
  .val-item{font-size:12px;padding:4px 0}

  /* Protect/Detect/Respond */
  .value-grid{grid-template-columns:1fr !important;gap:12px;margin-top:28px}
  .value-card{padding:22px 18px;text-align:left}
  .vc-num{font-size:34px;margin-bottom:6px}
  .vc-title{font-size:15px}
  .vc-body{font-size:12px}

  /* Officers */
  .officers-grid{grid-template-columns:1fr !important;gap:20px}
  .officer-portrait{height:180px}
  .officer-body{padding:22px 18px}
  .officer-name{font-size:22px}
  .officer-bio{font-size:12px}

  /* Company info table */
  .info-table{margin-top:28px}
  .info-table th,.info-table td{font-size:12px !important;padding:14px 12px !important;display:block;width:100% !important}
  .info-table th{padding-bottom:2px !important;border-bottom:none !important}
  .info-table td{padding-top:4px !important;color:rgba(255,255,255,0.65)}
  .info-table tr{border-bottom:1px solid rgba(255,255,255,0.07)}
  .company-table th,.company-table td{font-size:13px;padding:14px 10px}
  .company-table th{width:100px;min-width:100px}
  .about-hero-visual,.about-visual{display:none}

  /* Timeline */
  .timeline{padding-left:24px;margin-top:28px}
  .tl-item{padding-bottom:22px}
  .tl-item::before{left:-18px;width:7px;height:7px}
  .tl-year{font-size:10px}
  .tl-text{font-size:12px}

  /* ── SERVICE page ── */
  .service-hero-grid{grid-template-columns:1fr !important}
  .services-grid{grid-template-columns:1fr !important}
  .service-card{padding:24px 18px}

  /* ── CYBER SP page ── */
  .lp-hero{flex-direction:column !important;gap:40px;padding-top:110px;min-height:auto}
  .lp-hero-text{width:100% !important;max-width:none}
  .lp-hero-mockup{width:100% !important;max-width:none;display:none}
  .lp-hero-headline{font-size:clamp(30px,8vw,44px) !important;white-space:normal !important}
  .plans-grid{grid-template-columns:1fr !important}
  .plan-card{padding:24px 18px}
  .compare-table{font-size:12px}
  .compare-table th,.compare-table td{padding:10px 8px}
  .compare-table th:first-child{min-width:100px}
  .feature-grid{grid-template-columns:1fr !important}
  .mockup-grid{grid-template-columns:1fr !important}
  .lp-section{padding:56px 20px !important}

  /* ── NEWS page ── */
  .news-grid{grid-template-columns:1fr !important}
  .news-hero-headline{font-size:clamp(28px,8vw,40px) !important}

  /* ── RECRUIT page ── */
  .recruit-grid{grid-template-columns:1fr !important}
  .job-card{padding:24px 18px}
  .job-meta{flex-wrap:wrap;gap:8px}

  /* ── MVV Section ── */
  .mvv-grid{grid-template-columns:1fr !important;border-radius:14px}
  .mvv-card{border-right:none !important;border-bottom:1px solid rgba(0,212,255,0.08);padding:32px 20px}
  .mvv-card:last-child{border-bottom:none}
  .mvv-title{font-size:24px}
  /* ── Radar ── */
  .radar-body{padding:16px}
  #csp-radar{max-width:220px;height:220px}
  .threat-ticker{gap:8px}
  .threat-tick-num{font-size:18px}

  /* ── CONTACT page ── */
  .contact-grid{grid-template-columns:1fr !important}
  .form-row{grid-template-columns:1fr !important}
  input,textarea,select{font-size:16px !important} /* prevents iOS zoom */

  /* ── APPLY page ── */
  .apply-steps{gap:4px}
  .step-label{display:none}
  .step-num{width:28px;height:28px;font-size:10px}
  .apply-card{padding:28px 18px}
  .form-2col{grid-template-columns:1fr !important}

  /* overflow safety */
  *{max-width:100%;word-break:break-word}
  img,video,canvas{max-width:100%}
  pre,code{overflow-x:auto}
  table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* ================================================================
   XS  ≤ 390px
================================================================ */
@media(max-width:390px){
  nav.main-nav{left:8px;right:8px}
  .hero-inner{padding:96px 16px 48px}
  .page-hero{padding:100px 16px 48px !important}
  section{padding:48px 16px !important}
  .hero-headline{font-size:30px !important}
  .nav-drawer-links a{font-size:26px}
  .cta-hl{font-size:28px !important}
  .mvva-title{font-size:20px !important}
  .officer-name{font-size:20px}
  .section-headline{font-size:clamp(22px,7vw,30px) !important}
}
