/* =====================================================
   PENTA CUBE 회사소개 홈페이지
   ===================================================== */

/* 한글 웹폰트: Google Fonts (Noto Sans KR) - assets/index.html <head> 에서 로드.
   네트워크가 없는 환경에서도 시스템 한글 글꼴(맑은 고딕 / Apple SD Gothic Neo)로 자연스럽게 대체됩니다. */

:root{
  --navy-900:#111f3d;
  --navy-800:#16305c;
  --navy-700:#1f3864;
  --navy-600:#2f5596;
  --navy-500:#3d6bb3;
  --navy-100:#e7edf7;
  --navy-050:#f3f6fc;
  --orange-600:#c96a2e;
  --orange-500:#dd8340;
  --orange-100:#fbe8d6;
  --ink:#161a22;
  --gray-700:#4a5162;
  --gray-500:#707788;
  --gray-300:#c7cddb;
  --gray-100:#eef1f6;
  --white:#ffffff;
  --shadow-md: 0 10px 30px rgba(17,31,61,.10);
  --shadow-lg: 0 24px 60px rgba(17,31,61,.16);
  --radius:18px;
  --header-h:76px;
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font);
  color:var(--ink);
  background:var(--white);
  font-weight:500;
  letter-spacing:-0.01em;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

a:focus-visible,
button:focus-visible{
  outline:3px solid var(--orange-500);
  outline-offset:3px;
}

/* ---------- Layout / Scroll snap ---------- */
.snap-container{
  height:100vh;
  height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-padding-top: var(--header-h);
  scroll-snap-type:y proximity;
}
.section{
  min-height:100vh;
  min-height:100dvh;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  padding: calc(var(--header-h) + 34px) 6vw 56px;
  scroll-snap-align:start;
}
.section-inner{
  width:100%;
  max-width:1280px;
  margin:0 auto;
}
.section-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:clamp(13px,1.1vw,15px);
  font-weight:800;
  letter-spacing:.06em;
  color:var(--orange-600);
  text-transform:uppercase;
  margin-bottom:14px;
}
.section-tag::before{
  content:"";
  width:26px; height:3px;
  background:var(--orange-500);
  border-radius:2px;
  display:inline-block;
}
.section-title{
  font-size:clamp(28px, 3.6vw, 48px);
  font-weight:800;
  line-height:1.2;
  color:var(--navy-900);
}
.section-desc{
  margin-top:16px;
  font-size:clamp(16px, 1.5vw, 19px);
  font-weight:600;
  line-height:1.65;
  color:var(--gray-700);
  max-width:900px;
}
#company .section-desc{ max-width:none; font-size:clamp(15px, 1.3vw, 17px); }
/* Nav-click landing position: align these sections' top gap with .history-page's tight gap */
#company, #biz-area, #business, #clients{
  justify-content:flex-start;
  padding-top:18px;
}
.section-light{ background:var(--white); }
.section-tint{ background:var(--navy-050); }
.section-navy{ background:linear-gradient(160deg,var(--navy-700),var(--navy-900)); color:var(--white); }
.section-navy .section-title{ color:var(--white); }
.section-navy .section-desc{ color:#cfd9ee; }
.section-navy .section-tag{ color:var(--orange-500); }

.back-link{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:26px;
  font-weight:700;
  font-size:15px;
  color:var(--navy-700);
  background:var(--white);
  border:2px solid var(--navy-100);
  padding:10px 18px;
  border-radius:999px;
  box-shadow:var(--shadow-md);
  transition:.2s;
}
.back-link:hover{ background:var(--navy-700); color:var(--white); border-color:var(--navy-700); }

/* ---------- Header / Nav ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0;
  height:var(--header-h);
  z-index:1000;
  display:flex; align-items:center;
  padding:0 4vw;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(17,31,61,.06);
  transition:background .3s, box-shadow .3s;
}
.site-header.scrolled{ box-shadow:0 6px 24px rgba(17,31,61,.08); }
.brand{ display:flex; align-items:center; gap:10px; margin-right:auto; }
.brand img{ height:48px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:2px; }
.main-nav > ul{ display:flex; align-items:center; gap:2px; }
.nav-link{
  padding:12px 16px;
  font-size:16px;
  font-weight:700;
  color:var(--navy-800);
  border-radius:10px;
  position:relative;
  display:flex; align-items:center; gap:4px;
}
.nav-link:hover{ background:var(--navy-100); }
.nav-item.active > .nav-link{ color:var(--orange-600); }

.nav-item.has-sub{ position:relative; }
.sub-menu{
  position:absolute; top:100%; left:50%;
  transform:translateX(-50%);
  padding-top:10px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s, transform .18s;
}
.nav-item.has-sub:hover .sub-menu,
.nav-item.has-sub:focus-within .sub-menu{
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
.sub-menu-inner{
  background:var(--white);
  border-radius:14px;
  box-shadow:var(--shadow-lg);
  padding:10px;
  min-width:260px;
  display:grid;
  gap:2px;
}
.sub-menu a{
  padding:10px 14px;
  border-radius:8px;
  font-size:14.5px;
  font-weight:700;
  color:var(--navy-700);
}
.sub-menu a:hover{ background:var(--navy-050); color:var(--orange-600); }

.hamburger{
  display:none;
  width:44px; height:44px;
  border:none; background:none;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.hamburger span{ width:24px; height:3px; background:var(--navy-800); border-radius:2px; transition:.25s; }
.hamburger.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

.mobile-nav{
  position:fixed; inset:0;
  background:linear-gradient(165deg,var(--navy-800),var(--navy-900));
  z-index:1500;
  display:flex; flex-direction:column;
  padding:26px 8vw 40px;
  transform:translateY(-100%);
  visibility:hidden;
  pointer-events:none;
  transition:transform .35s cubic-bezier(.6,0,.2,1), visibility 0s linear .35s;
  overflow-y:auto;
}
.mobile-nav.open{
  transform:translateY(0);
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s;
}
.mobile-nav-top{ display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:30px; }
.mobile-nav-top img{ height:30px; width:auto; max-width:55%; flex:0 0 auto; object-fit:contain; }
.mobile-nav-close{ width:44px; height:44px; border:none; background:rgba(255,255,255,.1); border-radius:50%; color:#fff; font-size:22px; }
.mobile-nav ul{ display:flex; flex-direction:column; }
.mobile-nav li{ border-bottom:1px solid rgba(255,255,255,.12); }
.mobile-nav a{ display:block; padding:16px 4px; font-size:20px; font-weight:800; color:#fff; }
.mobile-nav .sub-list{ padding-left:14px; display:none; }
.mobile-nav .sub-list.open{ display:block; }
.mobile-nav .sub-list a{ font-size:16px; font-weight:700; color:#cfd9ee; padding:12px 4px; }
.mobile-toggle-arrow{ float:right; transition:.25s; }
.mobile-toggle-arrow.open{ transform:rotate(180deg); }

/* ---------- Progress dots ---------- */
.progress-nav{
  position:fixed; right:22px; top:50%; transform:translateY(-50%);
  z-index:900;
  display:flex; flex-direction:column; gap:10px;
}
.progress-nav button{
  width:9px; height:9px; border-radius:50%;
  border:none; background:var(--gray-300);
  transition:.25s;
}
.progress-nav button.active{ background:var(--orange-500); width:11px; height:26px; border-radius:6px; }
@media (max-width:900px){ .progress-nav{ display:none; } }

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(150deg,#1b2c54 0%, #101c38 55%, #070c18 100%);
  color:#fff;
  overflow:hidden;
  padding-top: var(--header-h);
}
.hero .section-inner{ display:grid; grid-template-columns:1.1fr .9fr; gap:8px; align-items:center; }
.hero-eyebrow{ font-size:clamp(15px,1.4vw,20px); font-weight:800; color:#bcd0f5; letter-spacing:.02em; }
.hero-title{
  margin-top:18px;
  font-size:clamp(40px, 6vw, 76px);
  font-weight:800;
  line-height:1.12;
}
.hero-title em{ font-style:normal; color:var(--orange-500); }
.hero-sub{
  margin-top:22px;
  font-size:clamp(17px, 1.6vw, 21px);
  font-weight:600;
  color:#d6dff2;
  max-width:none;
  line-height:1.6;
}
.hero-actions{ margin-top:34px; display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:16px 26px;
  border-radius:999px;
  font-weight:800;
  font-size:16px;
  transition:.2s;
}
.btn-primary{ background:var(--orange-500); color:#191008; }
.btn-primary:hover{ background:#fff; }
.btn-ghost{ background:rgba(255,255,255,.08); color:#fff; border:2px solid rgba(255,255,255,.35); }
.btn-ghost:hover{ background:rgba(255,255,255,.18); }
.hero-visual{ position:relative; }
.hero-visual img{ width:100%; height:auto; filter:drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero-scroll-cue{
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size:13px; font-weight:700; color:#b9c8e6;
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll-cue .line{ width:1px; height:36px; background:linear-gradient(#b9c8e6,transparent); }
@keyframes bob{ 0%,100%{ transform:translate(-50%,0);} 50%{ transform:translate(-50%,8px);} }

/* ---------- Company / history ---------- */
.company-grid{ margin-top:44px; display:grid; grid-template-columns:1fr 1.15fr; gap:56px; align-items:start; }
.stat-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:34px; }
.stat-card{
  background:var(--white); border-radius:16px; padding:22px 18px;
  box-shadow:var(--shadow-md); text-align:left;
}
.stat-num{ font-size:clamp(26px,2.6vw,34px); font-weight:800; color:var(--navy-700); }
.stat-num span{ color:var(--orange-600); }
.stat-label{ margin-top:6px; font-size:14.5px; font-weight:700; color:var(--gray-500); }

.timeline{ position:relative; padding-left:28px; }
.timeline::before{
  content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px;
  background:var(--gray-300);
}
.timeline-item{ position:relative; padding-bottom:22px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-28px; top:4px;
  width:13px; height:13px; border-radius:50%;
  background:var(--white); border:3px solid var(--orange-500);
}
.timeline-year{ font-weight:800; color:var(--navy-700); font-size:15.5px; }
.timeline-text{ margin-top:3px; font-weight:600; color:var(--ink); font-size:16.5px; line-height:1.5; }

.location-card{
  margin-top:34px; display:flex; gap:14px; align-items:flex-start;
  background:var(--navy-050); border-radius:16px; padding:20px 22px;
}
.location-card .ico{ font-size:26px; }
.location-card b{ display:block; color:var(--navy-800); font-size:15px; font-weight:800; margin-bottom:4px;}
.location-card p{ font-weight:600; color:var(--gray-700); font-size:15.5px; line-height:1.5; }

/* ---------- Org chart ---------- */
.orgchart{ margin-top:174px; display:flex; flex-direction:column; align-items:center; gap:0; }
.org-node{
  background:var(--white); border:2px solid var(--navy-500); color:var(--navy-800);
  font-weight:800; padding:14px 30px; border-radius:12px; box-shadow:var(--shadow-md);
  font-size:16px; white-space:nowrap;
}
.org-node.ceo{ background:var(--navy-700); color:#fff; border-color:var(--navy-700); }
.org-connector{ width:2px; height:26px; background:var(--navy-500); }
.org-row{ display:flex; align-items:flex-start; gap:70px; position:relative; }
.org-branch{ position:relative; padding-top:26px; }
.org-branch::before{
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:2px; height:26px; background:var(--navy-500);
}
.org-branch::after{
  content:""; position:absolute; top:0; height:2px; width:calc(50% + 35px); background:var(--navy-500);
}
.org-branch:first-child::after{ left:50%; }
.org-branch:last-child::after{ right:50%; }

/* ---------- Business flow (사업내용: 회로 설계 흐름별 솔루션) ---------- */
.biz-flow{
  margin-top:40px; display:flex; align-items:stretch; gap:12px;
}
.biz-card{
  flex:1 1 0; min-width:0;
  background:var(--white); border-radius:16px; padding:22px 18px;
  border:2px solid var(--gray-100); box-shadow:var(--shadow-md);
  display:flex; flex-direction:column; gap:12px;
}
.biz-card.biz-card-accent{ border-color:var(--navy-500); background:var(--navy-050); }
.biz-card-num{ font-weight:800; color:var(--orange-500); font-size:13px; }
.biz-card-title{ font-weight:800; color:var(--navy-900); font-size:16.5px; line-height:1.3; }
.biz-card-list{ display:flex; flex-direction:column; gap:8px; margin-top:2px; }
.biz-card-list li{ font-weight:600; font-size:14px; color:var(--gray-700); line-height:1.4; }
.biz-card-list a{ color:var(--navy-600); text-decoration:underline; text-decoration-color:var(--gray-300); text-underline-offset:3px; }
.biz-card-list a:hover{ color:var(--orange-600); }
.biz-arrow{
  flex:0 0 auto; align-self:center;
  color:var(--gray-300); font-size:22px; font-weight:800;
}

/* ---------- Solution menu grid ---------- */
.sol-grid{
  margin-top:40px; display:grid;
  grid-template-columns:repeat(5,1fr); gap:16px;
}
.sol-card{
  background:var(--white); border-radius:16px; padding:22px 18px;
  border:2px solid var(--gray-100);
  box-shadow:var(--shadow-md);
  transition:.2s;
  display:flex; flex-direction:column; gap:10px; min-height:150px;
}
.sol-card:hover{ transform:translateY(-6px); border-color:var(--orange-500); box-shadow:var(--shadow-lg); }
.sol-card .num{ font-weight:800; color:var(--orange-500); font-size:13px; }
.sol-card .name{ font-weight:800; color:var(--navy-900); font-size:17px; line-height:1.35; }
.sol-card .sub{ font-weight:600; color:var(--gray-500); font-size:13px; }
.sol-card .arrow{ margin-top:auto; font-weight:800; color:var(--navy-500); font-size:14px; }

/* ---------- Solution detail sections ---------- */
.detail-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.pill{
  display:inline-block; padding:6px 14px; border-radius:999px;
  background:var(--orange-100); color:var(--orange-600); font-weight:800; font-size:13px; margin-bottom:12px;
}
.detail-grid{ margin-top:36px; display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.detail-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.img-card{
  background:var(--white); border-radius:16px; padding:14px; box-shadow:var(--shadow-md);
  border:1px solid var(--gray-100);
}
.img-card img{ border-radius:10px; width:100%; }
.img-card .cap{ margin-top:10px; font-weight:700; font-size:14px; color:var(--gray-700); text-align:center; }
.feature-list{ margin-top:22px; display:flex; flex-direction:column; gap:14px; }
.feature-item{ display:flex; gap:14px; align-items:flex-start; }
.feature-dot{
  flex:none; width:30px; height:30px; border-radius:9px; background:var(--navy-700);
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px;
}
.feature-text{ font-weight:700; font-size:16px; color:var(--ink); line-height:1.5; }
.feature-text small{ display:block; font-weight:600; color:var(--gray-500); font-size:13.5px; margin-top:2px; }

.badge-row{ margin-top:22px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.badge-row .img-card{ padding:10px 16px; display:flex; align-items:center; }
.badge-row img{ height:26px; width:auto; }

.step-flow{ margin-top:38px; display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.step-flow.cols-7{ grid-template-columns:repeat(7,1fr); }
.step-box{
  background:var(--white); border-radius:12px; padding:14px 10px; text-align:center;
  box-shadow:var(--shadow-md); font-weight:800; color:var(--navy-800); font-size:14px;
  border-top:4px solid var(--orange-500);
}
.step-box .n{ display:block; font-size:12px; color:var(--orange-600); margin-bottom:4px; }

.case-box{
  margin-top:30px; background:var(--white); border-radius:18px; padding:28px;
  box-shadow:var(--shadow-md);
}
.case-box h4{ font-size:19px; font-weight:800; color:var(--navy-900); margin-bottom:14px; }
.case-flags{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:6px; }
.case-flags li{ font-weight:600; font-size:15px; color:var(--gray-700); padding-left:20px; position:relative; }
.case-flags li::before{ content:"—"; position:absolute; left:0; color:var(--orange-500); font-weight:800; }

.mini-steps{ margin-top:20px; display:flex; flex-direction:column; gap:10px; }
.mini-step{ display:flex; gap:12px; align-items:center; }
.mini-step .idx{ flex:none; width:26px; height:26px; border-radius:50%; background:var(--navy-100); color:var(--navy-700); font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; }
.mini-step p{ font-weight:600; font-size:14.5px; color:var(--ink); }

/* memory gallery */
.gallery-tabs{ margin-top:34px; display:flex; flex-wrap:wrap; gap:8px; }
.gallery-tab{
  padding:10px 16px; border-radius:999px; background:var(--white); border:2px solid var(--gray-100);
  font-weight:700; font-size:13.5px; color:var(--navy-700);
}
.gallery-tab.active{ background:var(--navy-700); border-color:var(--navy-700); color:#fff; }
.gallery-view{ margin-top:22px; display:grid; grid-template-columns:1fr; gap:24px; align-items:start; }
.gallery-view.gallery-view-compact{ grid-template-columns:1.1fr .9fr; }
.gallery-view.gallery-view-compact .img-card img{ max-height:360px; object-fit:contain; margin:0 auto; }

/* ---------- Solution pages: fit title → back-link into one screen ---------- */
.solution-page{
  height:calc(100vh - var(--header-h));
  height:calc(100dvh - var(--header-h));
  min-height:520px;
  overflow-y:auto;
  justify-content:flex-start;
  padding-top:18px;
  padding-bottom:18px;
}
.solution-page .section-inner{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.solution-page .detail-head{ flex:none; }
.solution-page .section-desc{ max-width:none; }
.solution-page .gallery-tabs{ flex:none; margin-top:16px; }
.solution-page .back-link-row{ flex:none; margin-top:16px; }
.solution-page .gallery-view{
  margin-top:16px;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.solution-page .gallery-view .img-card{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  display:flex;
  flex-direction:column;
}
.solution-page .gallery-view .img-card img{
  flex:1 1 auto;
  min-height:0;
  width:auto;
  max-width:100%;
  object-fit:contain;
  margin:0 auto;
}
.solution-page > .section-inner > .img-card{
  margin-top:16px;
  flex:1 1 auto;
  min-height:0;
  width:100%;
  display:flex;
  flex-direction:column;
}
.solution-page > .section-inner > .img-card img{
  flex:1 1 auto;
  min-height:0;
  width:auto;
  max-width:100%;
  object-fit:contain;
  margin:0 auto;
}
.solution-page .gallery-view.gallery-view-compact{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  min-height:0;
}
.solution-page .gallery-view.gallery-view-compact .img-card{
  min-height:0;
  height:100%;
}
.solution-page .gallery-view.gallery-view-compact .img-card img{
  max-height:100%;
  width:auto;
  max-width:100%;
  object-fit:contain;
  margin:0 auto;
}
.solution-page .gallery-view.gallery-view-compact .feature-list{
  min-height:0;
  overflow-y:auto;
  padding-right:4px;
}

/* ---------- Clients ---------- */
.client-grid{
  margin-top:36px; display:grid; grid-template-columns:repeat(6,1fr); gap:12px;
}
.client-tile{
  background:var(--white); border-radius:12px; padding:16px 12px; height:78px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); border:1px solid var(--gray-100);
  transition:.2s;
}
.client-tile img{ max-height:34px; max-width:100%; object-fit:contain; }
.client-tile.linked{ cursor:pointer; }
.client-tile.linked:hover{ transform:translateY(-4px); border-color:var(--orange-500); box-shadow:var(--shadow-lg); }
.client-tile.linked::after{
  content:"자세히 보기"; position:absolute; opacity:0;
}
.client-note{ margin-top:18px; font-size:14px; font-weight:600; color:var(--gray-500); }

.client-history{ margin-top:36px; display:flex; flex-direction:column; gap:12px; }
.client-history .row{
  display:grid; grid-template-columns:120px 1fr; gap:18px;
  background:var(--white); border-radius:12px; padding:16px 20px; box-shadow:var(--shadow-md);
}
.client-history .row b{ color:var(--orange-600); font-weight:800; font-size:14.5px; }
.client-history .row span{ font-weight:600; color:var(--ink); font-size:15.5px; line-height:1.5; }
.client-logo-lg{ height:46px; margin-bottom:20px; }

/* 고객 상세(협력 이력) 섹션: 평소 스크롤에서는 숨기고, 로고 클릭 시에만 노출 */
.client-detail{ display:none; }
.client-detail.is-open{ display:flex; }

/* ---------- 고객 협력 이력 (fit one screen, scroll inside) ---------- */
.history-page{
  height:calc(100vh - var(--header-h));
  height:calc(100dvh - var(--header-h));
  min-height:0;
  overflow-y:auto;
  justify-content:flex-start;
  padding-top:18px;
  padding-bottom:18px;
}
.history-list{
  margin-top:28px; display:flex; flex-direction:column;
  border-top:1px solid var(--gray-100);
}
.history-list .row{
  display:grid; grid-template-columns:100px 1fr; gap:16px;
  padding:11px 4px; border-bottom:1px solid var(--gray-100);
}
.history-list .row b{ color:var(--orange-600); font-weight:800; font-size:13.5px; }
.history-list .row span{ font-weight:600; color:var(--ink); font-size:14.5px; line-height:1.5; }

/* ---------- Footer / contact ---------- */
.footer-grid{ display:grid; grid-template-columns:1.3fr .8fr .8fr .8fr; gap:40px; margin-top:40px; }
.footer-col b{ display:block; font-size:15px; font-weight:800; color:#fff; margin-bottom:12px; }
.footer-col p, .footer-col a{ font-weight:600; color:#c3ceea; font-size:15px; line-height:1.8; display:block; }
.footer-bottom{ margin-top:50px; padding-top:22px; border-top:1px solid rgba(255,255,255,.14); font-size:13.5px; color:#93a1c6; font-weight:600; }

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .main-nav{ display:none; }
  .hamburger{ display:flex; }
  .hero .section-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:340px; margin:0 auto; }
  .company-grid{ grid-template-columns:1fr; gap:36px; }
  .sol-grid{ grid-template-columns:repeat(3,1fr); }
  .detail-grid{ grid-template-columns:1fr; }
  .detail-grid.cols-3{ grid-template-columns:1fr 1fr; }
  .step-flow{ grid-template-columns:repeat(3,1fr); }
  .step-flow.cols-7{ grid-template-columns:repeat(4,1fr); }
  .client-grid{ grid-template-columns:repeat(4,1fr); }
  .gallery-view{ grid-template-columns:1fr; }
  .gallery-view.gallery-view-compact{ grid-template-columns:1fr; }
  .solution-page .gallery-view.gallery-view-compact{ grid-template-columns:1fr; flex:none; }
  .solution-page .gallery-view.gallery-view-compact .img-card{ height:auto; }
  .solution-page .gallery-view.gallery-view-compact .img-card img{ max-height:280px; }
  .solution-page .gallery-view.gallery-view-compact .feature-list{ overflow-y:visible; max-height:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .orgchart{ margin-top:40px; }
  .org-row{ gap:30px; }
  .org-branch::after{ width:calc(50% + 15px); }
  .biz-flow{ flex-wrap:wrap; }
  .biz-card{ flex:1 1 calc(33.333% - 8px); min-width:150px; }
  .biz-arrow{ display:none; }
}
@media (max-width:640px){
  :root{ --header-h:64px; }
  .section{ padding:calc(var(--header-h) + 22px) 6vw 44px; }
  .solution-page{ min-height:440px; }
  .solution-page .gallery-view{ min-height:216px; }
  .solution-page .gallery-view .img-card,
  .solution-page > .section-inner > .img-card{ min-height:200px; }
  .solution-page .gallery-view .img-card img,
  .solution-page > .section-inner > .img-card img{ min-height:160px; }
  .sol-grid{ grid-template-columns:repeat(2,1fr); }
  .stat-row{ grid-template-columns:1fr; }
  .client-grid{ grid-template-columns:repeat(3,1fr); }
  .step-flow{ grid-template-columns:repeat(2,1fr); }
  .step-flow.cols-7{ grid-template-columns:repeat(2,1fr); }
  .detail-grid.cols-3{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:26px; }
  .case-flags{ grid-template-columns:1fr; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ justify-content:center; }
  .org-row{ flex-direction:row; align-items:stretch; gap:12px; width:100%; }
  .org-branch{ flex:1 1 0; min-width:0; display:flex; }
  .org-branch::after{ width:calc(50% + 6px); }
  .org-node{
    width:100%; min-height:72px; padding:12px 8px;
    display:flex; align-items:center; justify-content:center;
    font-size:13.5px; line-height:1.4; white-space:normal; text-align:center;
  }
  .org-node.ceo{ width:auto; min-height:0; padding:12px 22px; }
  .biz-card{ flex:1 1 100%; }
}

/* Safety: never allow horizontal scrollbars regardless of section content */
html, body{ overflow-x:hidden; max-width:100%; }
.section-inner{ max-width:100%; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
