:root{
  --nav:#46B1E1;
  --panel:#5cb8e3;
  --ink:#135675;
  --text:#0e1a2b;
  --muted: rgba(14,26,43,.75);
  --card: rgba(127,162,200,.75);
  --btn:#377795;
  --btnText:#fff;
  --shadow: 0 14px 40px rgba(0,0,0,.18);
  --radius: 14px;
  --container: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.muted{ color: var(--muted); }

/* NAV */
.nav{
  position: sticky;
  top:0;
  z-index: 30;
  background: var(--nav);
  color:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.nav__logo{
  height:45px;
  width:auto;
}

.nav__inner{
  height: 68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
  min-width: 210px;
}
.brand__mark{ font-size: 20px; }
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__name{ font-weight:600; font-size:14px; }
.brand__sub{ font-size:12px; opacity:.85; }

.menu{
  display:flex;
  gap:22px;
  align-items:center;
  justify-content:center;
  flex: 1;
}
.menu a{
  color:#d9e6ff;
  text-decoration:none;
  font-size:13px;
  opacity:.95;
}
.menu a:hover{ color:#fff; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.18);
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn--pill{
  padding:10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color:#fff;
  font-size:13px;
}
.btn--pill:hover{ background: rgba(255,255,255,.18); }

.btn--solid{
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btnText);
  border-color: rgba(0,0,0,.0);
}
.btn--solid:hover{ opacity:.92; }

.hamburger{
  display:none;
  width:42px; height:42px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  border-radius:10px;
  cursor:pointer;
}
.hamburger span{
  display:block;
  width:18px; height:2px;
  background:#fff;
  margin:4px auto;
  border-radius:2px;
}

.mobileMenu{
  border-top:1px solid rgba(255,255,255,.12);
  padding:14px 20px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background: var(--nav);
}
.mobileMenu a{
  color:#d9e6ff;
  text-decoration:none;
  padding:10px 8px;
  border-radius:10px;
}
.mobileMenu a:hover{ background: rgba(255,255,255,.10); color:#fff; }
.mobileMenu__cta{ margin-top:6px; }

/* HERO */
.hero{
  position: relative;
  min-height: 74vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=2000&q=70");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
                rgba(0,0,0,0.4),
                rgba(0,0,0,0.4)
              ),
              url('images/factory-bg.jpg') no-repeat center/cover;
  z-index: -1;
}

.card{
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 46px;
  box-shadow: var(--shadow);
  text-align:center;
  width: min(620px, calc(100% - 40px));
  backdrop-filter: blur(2px);
}
.hero__card h1{
  margin:0 0 14px;
  font-size: 46px;
  letter-spacing: .5px;
  color: var(--ink);
}
.hero__card p{
  margin: 0 auto 18px;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.6;
}

/* SPLIT */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}
.split__left{
  background: var(--nav);
  padding: 40px;
  display:flex;
  align-items:flex-start;
}
.split__kicker{
  margin:0;
  color:#d9e6ff;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.6;
  opacity:.95;
}
.split__kicker-main {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #777;              /* 밝은 회색 */
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}
.split__kicker-main .highlight {
  color: #fff;              /* 순백 */
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 약한 그림자 */
  font-weight: 800;
}
.split__kicker-sub {
  font-size: 1.1rem;
  color: #c8c8c8;              /* 서브 텍스트도 중간톤 회색 */
  font-weight: 400;
  letter-spacing: 0.5px;
}
.split__right{
  position: relative;
  min-height: 60vh;
  /* 자식이 둥근 모서리로 잘릴 경우를 대비해 overflow를 숨김 */
  overflow: hidden;
}
.split__img{
  position:absolute; inset:0;
  /* 전체 영역을 채우도록 너비/높이 100% */
  width: 100%;
  height: 100%;
  /* 사각형으로 유지하고 배경을 커버 */
  border-radius: 0;
  background-image: url('images/split-photo.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ABOUT */
.about{
  position: relative;
  min-height: 60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.about__bg{
  position:absolute; inset:0;
  /* 사용자 제공 이미지 + 어두운 쉐이드 오버레이 */
  background:
    linear-gradient(
      rgba(0,0,0,0.3),
      rgba(0,0,0,0.3)
    ),
    url('images/about-bg.jpg') no-repeat center/cover;
  background-size: cover;
  background-position: center;
  filter: saturate(.95) contrast(1.02);
}
.about__card h2{
  margin:0 0 14px;
  font-size: 44px;
  color: var(--ink);
}
.about__card p{
  margin: 0 auto 18px;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.6;
}

/* SERVICES */
.services{
  background: var(--panel);
  padding: 68px 0;
}
.services__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 80px;
}
.svc{
  position: relative;
  padding-top: 10px;
}
.svc::before{
  content:"";
  display:block;
  width: 280px;
  max-width: 100%;
  height: 2px;
  background: rgba(11,47,115,.28);
  margin-bottom: 18px;
}
.svc h3{
  margin:0 0 10px;
  font-size: 28px;
  color: var(--ink);
}
.svc__sub{
  font-size: 12px;
  color: rgba(11,47,115,.80);
  margin-bottom: 10px;
}
.svc p{
  margin:0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(14,26,43,.80);
  max-width: 480px;
}

/* Testimonials */
.testimonials{
  padding: 72px 0;
  background: #fff;
}
.sectionTitle{
  margin: 0 0 18px;
  font-size: 34px;
  color: var(--ink);
}
/* Timeline (Projects) */
.timeline{
  position: relative;
  padding: 64px 0; /* 섹션 높이 증가 */
  list-style: none;
  margin: 0;
}
.timeline::before{
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(20,40,60,0.06);
  transform: translateX(-50%);
}
.timeline-item{
  position: relative;
  min-height: 180px; /* 더 큰 높이로 텍스트 공간 확보 */
  padding: 28px 0;
}
.timeline-dot{
  width: 12px; /* 원래의 단순한 크기로 되돌림 */
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(70,177,225,0.35), var(--nav)); /* 메뉴 색상 기반 그라데이션 */
  border: none;
  box-shadow: none;
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
}
.timeline-content{
  /* 타임라인 콘텐츠 박스의 위치 설정
    - 부모(.timeline-item)를 기준으로 절대 위치를 사용합니다.
    - left:50% 와 transform: translateX(-50%) 조합으로 도트의 중앙에 수평 정렬합니다. */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  /* 박스 너비 관련 설정 (내용에 따라 자동 크기)
    - max-width: 박스가 너무 넓어지는 것을 방지합니다.
    - width: auto 로 설정하면 내부 내용에 맞춰 너비가 줄어들거나 늘어납니다.
    박스 크기를 직접 조절하려면 아래 예시를 참고하세요. */
  max-width: 880px;
  width: 800px; /* 내용에 맞게 너비 자동 조정 */

  /* 내부 여백(패딩)과 타이포그래피 설정
    - padding: 상하/좌우 여백을 조절합니다.
    - line-height: 줄간격을 조절해 요소 높이를 미세하게 제어합니다.
    - font-size: 텍스트 크기 조절(작게 하면 박스가 더 컴팩트해집니다). */
  padding: 6px 12px;
  line-height: 1.06;
  font-size: 12px;
  color: var(--text);

  /* 내부에 들어가는 .timeline-box를 수평 중앙에 배치하기 위해 부모에서 텍스트 정렬을 가운데로 설정
    (박스 내부 텍스트는 .timeline-box에서 별도로 left 정렬합니다). */
  text-align: center; /* inline-block 자식(.timeline-box)을 가운데 정렬 */

  /* 박스 크기 조절 팁(주석으로 안내)
    1) 고정 너비로 만들기: width: 420px; max-width: none; (정해진 크기 사용)
    2) 최소 너비 보장: min-width: 300px; (너무 작아지지 않도록)
    3) 반응형 조절: 미디어쿼리에서 width/max-width 값을 조정하여 작은 화면에서 줄이기
      예) @media (max-width: 768px) { .timeline-content { max-width: 320px; padding: 6px 10px; } }
    4) 내용 길이에 맞춰 완전히 맞추려면 .timeline-box를 inline-block으로 유지하고
      여기서 width: auto로 두면 내부 텍스트 길이에 따라 박스가 맞춰집니다.
    5) 텍스트 줄바꿈을 제어하려면 white-space를 사용하세요:
      - 한 줄로 유지: white-space: nowrap; (긴 텍스트는 잘림)
      - 자연스러운 줄바꿈: white-space: normal; */
}
.timeline-item.up .timeline-content{
  top: -6px; /* 위 박스가 도트에 더 가깝게 */
  transform: translate(-50%,-100%);
  text-align: center;
}
.timeline-item.down .timeline-content{
  top: 36px; /* 아래 박스가 도트에 더 가깝게 */
  transform: translate(-50%, 0);
  text-align: center;
}
.timeline-year{
  position: absolute;
  left: 50%;
  top: 42px; /* dot 아래에 배치 */
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 13px;
  color: var(--nav);
}
.timeline .year{ display:none; }
.timeline .desc{
  font-size: 12px;
  color: var(--muted);
}

/* Desc box + inline preview behavior */
.timeline-desc-inline{ display:none; }
.timeline-box{
  display:inline-block; /* shrink-to-fit content and allow centering by parent */
  vertical-align: middle;
  opacity:0;
  pointer-events:none;
  transform: translateY(6px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  background: #fff;
  border-radius: 6px;
  padding: 8px 18px; /* 좌우 패딩 */
  box-shadow: 0 10px 24px rgba(8,20,40,0.08);
  border: 1px solid rgba(14,26,43,0.04);
  width: auto; /* size to text */
  max-width: calc(100% - 120px);
  white-space: normal;
  writing-mode: horizontal-tb;
  text-align: left; /* text inside box is left-aligned */
}
.timeline-item:hover .timeline-box,
.timeline-item.open .timeline-box{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0) scale(1);
}

/* Desktop: always show box (no hover) */
@media (min-width: 769px) {
  .timeline-desc-inline{ display:none; }
  .timeline-box{ opacity:1; pointer-events:auto; transform:none; }
}
/* Positioning tweaks so box doesn't overlap the dot visually */
.timeline-item.up .timeline-box{ margin-bottom: 6px; }
.timeline-item.down .timeline-box{ margin-top: 6px; }

/* Mobile: show inline single-line preview and hide the hover box */
@media (max-width: 768px){
  .timeline-desc-inline{ display:block; font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:140px; }
  .timeline-box{ display:none; }
  .timeline-content{ position: relative; left:0; transform:none; top:auto; width:auto; }
  .timeline-item:nth-child(odd) .timeline-desc-inline{ text-align:left; }
  .timeline-item:nth-child(even) .timeline-desc-inline{ text-align:right; }
}

/* Responsive: 모바일에서는 좌/우 교차형, 가로 스크롤 허용 */
@media (max-width: 768px){
  .timeline{ display:flex; gap:24px; padding:18px; overflow-x:auto; align-items:center; }
  .timeline::before{ display:none; }
  .timeline-item{ min-width:160px; padding: 12px 0; }
  .timeline-dot{ position: relative; left: 0; transform:none; top:0; margin:0 auto; }
  .timeline-content{ position: absolute; top: 50%; transform: translateY(-50%); width: auto; max-width: none; white-space: nowrap; }
  .timeline-item:nth-child(odd) .timeline-content{ left: calc(100% + 12px); transform: translateY(-50%); text-align: left; }
  .timeline-item:nth-child(even) .timeline-content{ left: auto; right: calc(100% + 12px); transform: translateY(-50%); text-align: right; }
  .timeline .year{ font-size: 12px; }
  .timeline .desc{ font-size: 12px; }
}
.quoteGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote{
  padding: 22px 22px;
  text-align:left;
}
.quote blockquote{
  margin:0 0 12px;
  color: rgba(14,26,43,.85);
  line-height:1.6;
}

/* More */
.more{
  background: #f4f7fb;
  padding: 62px 0;
}

.more > .container > .sectionTitle:first-of-type {
  margin-bottom: 12px;
}

.more > .container > .muted:first-of-type {
  margin-bottom: 42px;
  font-size: 16px;
  line-height: 1.6;
}

/* 클라이언트 로고 섹션 */
.clients__header {
  margin-bottom: 36px;
}

.clients__title {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
}

.clients__header .muted {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(7, 120px);
  gap: 32px;
  margin-top: 32px;
  justify-content: center;
}

.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.client-logo__img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0;
}

.client-logo__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
  top: -6px;
  z-index: 10;
}

/* 태블릿: 로고 4~5개 표시 */
@media (max-width: 1024px) {
  .clients__grid {
    grid-template-columns: repeat(4, 120px);
    justify-content: center;
  }
}

/* 작은 화면: 로고도 보이고 텍스트도 표시 */
@media (max-width: 768px) {
  .clients__grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 20px;
    justify-content: center;
  }
  
  .client-logo__img {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }
  
  .client-logo__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    position: relative;
    top: -4px;
    z-index: 10;
  }
}

/* Footer */
.footer{
  background: var(--nav);
  padding-bottom: 36px;
}
.footer__mapWrap{
  width:100%;
  height: 270px;
  overflow:hidden;
}
.footer__mapWrap iframe{
  width:100%;
  height:100%;
  border:0;
}

.footer__content{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items:center;
  padding-top: 26px;
}
.footer__left {
  flex: 0 0 auto;         /* 고정 너비 */
  padding-right: 2rem;    /* 오른쪽 여백 */
  min-width: 250px;       /* 최소 너비 확보 */
}
.footer__logo{
  height: 60px;
}
.footer__brand{
  white-space: nowrap;    /* 줄바꿈 방지 */
  font-size: 1.2rem;
}
.footer__info{
  font-size: 12px;
  color: rgba(14,26,43,.78);
  line-height: 1.6;
  text-align:center;
}
.social{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 10px;
}
.social a{
  width: 26px; height: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  text-decoration:none;
  background: rgba(0,0,0,.12);
  color: rgba(0,0,0,.55);
  font-size: 12px;
}



/* Responsive */
@media (max-width: 980px){
  .menu{ display:none; }
  .hamburger{ display:inline-block; }
  .btn--pill{ display:none; }
  .split{ grid-template-columns: 1fr; }
  .split__right{ min-height: 46vh; }
  .services__grid{ grid-template-columns: 1fr; gap: 28px; }
  .quoteGrid{ grid-template-columns: 1fr; }
  .footer__content{ grid-template-columns: 1fr; text-align:center; justify-items:center; }
  .footer__left { text-align: center; min-width: auto; padding-right: 0; }
  .footer__logo{ display: block; margin: 0 auto; }
}

/* 모바일 메뉴 - 기본적으로 숨김 (데스크탑) */
.mobileMenu {
  display: none;
}

/* 모바일 화면에서만 보이기 */
@media (max-width: 768px) {
  .mobileMenu {
    display: block;
  }
}

/* 데스크탑에서 햄버거 버튼 숨김 */
.hamburger {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

/* 프로젝트 타임라인 */
.projectTimeline {
  list-style: none;
  padding: 0;
}

.projectTimeline li {
  margin-bottom: 1.5rem;
}

.projectTimeline .year {
  font-weight: bold;
  margin-bottom: .25rem;
}

.projectTimeline .description {
  margin-left: 1rem;
}

/* projects 타임라인 – 기본(데스크탑) 가로 레이아웃 */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  list-style: none;
  margin: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 4px;
  background: #ddd;
  transform: translateY(-50%);
}
.timeline li {
  position: relative;
  flex: 1 1 0;
  text-align: center;
}
.timeline .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.timeline .info { margin-top: .5rem; }
.timeline .year { font-weight: bold; margin-bottom: .25rem; }
.timeline .desc { font-size: .9rem; color: #555; }

/* 색상 클래스 - 블루 톤 그라데이션 (옅음→진함) */
.color1 { background: #a8c5dd; }      /* 옅은 블루 */
.color2 { background: #7fa8ce; }      /* 라이트 블루 */
.color3 { background: #5680b8; }      /* 미디엄 블루 */
.color4 { background: #2c4a7a; }      /* 진한 블루 */

/* 모바일에서는 항목을 세로로 쌓음 */
@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline::before { display: none; }         /* 가운데 선 숨김 */
  .timeline li {
    margin-bottom: 2rem;
    text-align: left;
  }
  .timeline .dot { margin-left: 0; }
}

/* 모바일 메뉴 표시/숨김 */
.mobileMenu { display: none; }
@media (max-width: 768px) {
  .mobileMenu { display: block; }
  .hamburger { display: block; }
}
.hamburger { display: none; }

@media (max-width: 768px) {
  .footer__brand {
    font-size: 0.9rem;
    white-space: normal;  /* 모바일에서는 줄바꿈 허용 */
  }
}
/* 모바일 반응형 */
@media (max-width: 768px) {
  .split__kicker-main {
    font-size: 1.8rem;
  }
  
  .split__kicker-sub {
    font-size: 1rem;
  }
  
  .split__img {
    height: 300px;
  }
}