@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --primary: #0f2348;
  --primary-2: #132a57;

  --bg: #ffffff;
  --muted: #f6f7f9;

  --text: #0b1220;
  --subtext: #4a556d;

  --line: rgba(15, 35, 72, 0.16);

  /* ✅ 각진/그리드 느낌 */
  --radius: 0px;               /* 라운드 제거 */
  --shadow: none;              /* 그림자 제거(대기업 느낌) */
  --max: 1200px;

  /* ✅ spacing scale (8px base) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}
.section-muted {
  background: var(--muted);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section-title {
  position: relative;
  padding-top: 10px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--primary);
}
.section-head.center .section-title::before {
  left: 50%;
  transform: translateX(-50%);
}

.section-desc {
  margin: 10px 0 0;
  color: var(--subtext);
  line-height: 1.7;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(10, 16, 30, 0.18);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-logo { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 16px; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav-list a:hover { color: #fff; }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.9);
}

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 74px; /* fixed header */
  overflow: hidden;
  color: #fff;
  background: #081022;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 35, 72, 0.92),
    rgba(15, 35, 72, 0.70) 45%,
    rgba(15, 35, 72, 0.86)
  );
}

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(780px, 86vw);
  opacity: 0.14;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 72px 0 90px;
  text-align: center;
}
.hero-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  font-size: 13px;
  opacity: 0.9;
}
.hero-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(42px, 6vw, 78px);
}
.hero-sub {
  margin: 18px auto 0;
  max-width: 720px;
  line-height: 1.8;
  opacity: 0.92;
  font-size: 15px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: rgba(255,255,255,0.5);
}
.btn-primary:hover {
  background: rgba(255,255,255,0.92);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
}
.btn-pill { border-radius: 999px; }
.btn-wide { width: 100%; }

/* GRIDS / CARDS */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 35, 72, 0.06);
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.card p, .feature-desc, .project-desc {
  margin-top: 6px;
}

.card-link { position: relative; }
.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* FEATURES */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 35, 72, 0.06);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(15, 35, 72, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.feature-icon img { width: 26px; height: 26px; }
.feature-title { margin: 0 0 8px; font-size: 18px; }
.feature-desc { margin: 0; color: var(--subtext); line-height: 1.7; }

/* FILTERS */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 35, 72, 0.08);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(15, 35, 72, 0.14);
}
.project-thumb img { width: 100%; height: 170px; object-fit: cover; }
.project-body { padding: 16px 16px 18px; position: relative; }
.project-meta { margin: 0; font-size: 12px; color: var(--subtext); }
.project-title { margin: 8px 0 6px; font-size: 16px; letter-spacing: -0.02em; }
.project-desc { margin: 0; color: var(--subtext); font-size: 13px; line-height: 1.6; }
.project-link {
  position: absolute;
  right: 14px;
  top: 14px;
  color: rgba(15, 35, 72, 0.55);
  font-weight: 900;
}

/* PARTNERS */
.partners {
  background: linear-gradient(120deg, rgba(15,35,72,0.96), rgba(15,35,72,0.85));
  color: #fff;
  padding: 26px 0;
}
.partners-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.partners-title { margin: 0; font-weight: 700; opacity: 0.9; }
.partners-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.partner-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12px;
}

/* LOCATION / CONTACT */
.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}
.info-list { margin-top: 18px; display: grid; gap: 10px; }
.info-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.info-label { color: rgba(15,35,72,0.75); font-weight: 800; }
.info-value { color: var(--text); line-height: 1.6; }

.contact-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 92px;
}
.contact-kicker { margin: 0; opacity: 0.9; font-weight: 700; }
.contact-phone { margin: 10px 0 12px; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.contact-mini p { margin: 6px 0 0; opacity: 0.9; }

.map-placeholder {
  margin-top: 18px;
  height: 320px;
  border-radius: var(--radius);
  border: 1px dashed rgba(15,35,72,0.25);
  background: linear-gradient(180deg, rgba(15,35,72,0.04), rgba(15,35,72,0.02));
  display: grid;
  place-items: center;
  color: rgba(15,35,72,0.7);
  font-weight: 700;
}

/* FOOTER */
.footer {
  background: #0a1226;
  color: rgba(255,255,255,0.88);
}
.footer-inner {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin: 10px 0 0; opacity: 0.9; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.footer-cols h4 { margin: 0 0 10px; color: #fff; }
.footer-cols p { margin: 0 0 6px; opacity: 0.9; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 14px 0;
  color: rgba(255,255,255,0.75);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-card { position: relative; top: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    right: 20px;
    top: 74px;
    width: min(320px, calc(100vw - 40px));
    background: rgba(10, 16, 30, 0.92);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 10px 10px; width: 100%; }
  .header-cta { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
}
/* ====== GRID-BASED CLEAN SYSTEM ====== */
.section { padding: var(--s5) 0; }

.section-head {
  margin-bottom: var(--s3);
  gap: var(--s3);
}

.section-desc {
  max-width: 64ch;      /* ✅ 텍스트 줄 길이 제한 */
  line-height: 1.75;
  letter-spacing: -0.01em;
}

/* HEADER: 더 정갈하게 */
.site-header {
  background: rgba(15, 35, 72, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav-list a {
  font-size: 13px;
  letter-spacing: -0.02em;
}

/* BUTTONS: 각지고 선명하게 */
.btn {
  border-radius: 0;
  height: 46px;
  padding: 0 20px;
  font-weight: 700;
  border-width: 1px;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.40);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* CARDS: shadow 대신 라인/패딩으로 정리 */
.card, .feature, .project-card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--line);
}

.card { padding: var(--s3); }
.feature { padding: var(--s3); }
.project-card { background: #fff; }

/* 그리드 간격 딱 떨어지게 */
.grid { gap: var(--s2); }
.feature-cards { gap: var(--s2); }
.projects-grid { gap: var(--s2); }

/* 프로젝트 썸네일도 각지게 */
.project-thumb img { border-radius: 0; }
.project-thumb img { height: 180px; }

/* 텍스트 ‘지저분함’ 줄이는 핵심: 타이포 스케일 */
.hero-title {
  letter-spacing: -0.03em;
}
.project-title, .feature-title, .card h3 {
  letter-spacing: -0.02em;
}

/* 칩(필터)도 각지게 */
.chip {
  border-radius: 0;
  height: 34px;
  padding: 0 14px;
}

/* LOCATION 정보 블록도 각지게 */
.info-item, .contact-card, .map-placeholder {
  border-radius: 0;
}
.contact-card { box-shadow: none; }

/* 파트너 pill도 각지게 */
.partner-pill {
  border-radius: 0;
}
/* ===== PORTFOLIO STYLE PROJECTS ===== */
.portfolio-head {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s3);
  justify-items: center;
  text-align: center;
}

.portfolio-title {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.03em;
}

.portfolio-sub {
  margin: 10px 0 0;
  color: var(--subtext);
  max-width: 62ch;
  line-height: 1.7;
}

.portfolio-tabs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}

.tab {
  background: transparent;
  border: 0;
  padding: 10px 4px;
  font-weight: 800;
  color: rgba(15, 35, 72, 0.55);
  letter-spacing: -0.02em;
  cursor: pointer;
  position: relative;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.15s ease;
}

.tab:hover { color: var(--primary); }
.tab.is-active { color: var(--primary); }
.tab.is-active::after { width: 100%; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s2);
}

.pf-card {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 35, 72, 0.35);
}

.pf-thumb {
  background: var(--muted);
  border-bottom: 1px solid var(--line);
  height: 200px;
  overflow: hidden;
}

.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-body {
  padding: var(--s3);
}

.pf-meta {
  margin: 0;
  color: rgba(15, 35, 72, 0.65);
  font-size: 12px;
  font-weight: 700;
}

.pf-name {
  margin: 10px 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.pf-desc {
  margin: 0;
  color: var(--subtext);
  line-height: 1.7;
  font-size: 13px;
}

/* ===== TRUST / PARTNERS: LOGO WALL ===== */
.trust {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-head {
  text-align: center;
  margin-bottom: var(--s3);
}

.trust-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
}

.trust-sub {
  margin: 10px auto 0;
  max-width: 64ch;
  color: var(--subtext);
  line-height: 1.7;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.logo-item {
  height: 78px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(15, 35, 72, 0.55);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.logo-item:nth-child(6n) { border-right: 0; }

.trust-metrics {
  margin-top: var(--s3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.metric {
  padding: var(--s3);
  border-right: 1px solid var(--line);
  background: var(--muted);
}
.metric:last-child { border-right: 0; }

.metric-num {
  margin: 0;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.metric-label {
  margin: 8px 0 0;
  color: var(--subtext);
  line-height: 1.6;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-item:nth-child(6n) { border-right: 1px solid var(--line); }
  .logo-item:nth-child(3n) { border-right: 0; }
  .trust-metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .logo-item:nth-child(2n) { border-right: 0; }
}
/* ===== Horizontal Portfolio Rail ===== */
.pf-rail{
  margin-top: var(--s2);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;

  /* 스크롤이 "툭툭" 카드 단위로 멈추는 느낌 */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* 스크롤바 스타일(너무 튀지 않게) */
  scrollbar-width: thin;
  scrollbar-color: rgba(15,35,72,0.35) transparent;
}
.pf-rail::-webkit-scrollbar { height: 8px; }
.pf-rail::-webkit-scrollbar-track { background: transparent; }
.pf-rail::-webkit-scrollbar-thumb { background: rgba(15,35,72,0.25); }
.pf-rail::-webkit-scrollbar-thumb:hover { background: rgba(15,35,72,0.38); }

.portfolio-row{
  display: flex;
  gap: var(--s3);
  padding: 0 2px; /* 라인 잘림 방지 */
  width: max-content; /* ✅ 카드가 늘어나면 트랙도 같이 늘어남 */
}

/* 카드 폭 고정(원하는 값으로 조정) */
.pf-card{
  width: 360px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* 썸네일 높이는 유지 */
.pf-thumb{ height: 210px; }

/* 모바일에서 카드 폭 살짝 줄이기 */
@media (max-width: 640px){
  .pf-card{ width: 280px; }
  .pf-thumb{ height: 180px; }
}
/* ===== LOCATION: LEFT INFO + RIGHT MAP ===== */
.loc-grid{
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--s4);
  align-items: start;
}

.loc-title{
  margin: 0 0 var(--s3);
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
}

.loc-info{
  padding-top: 6px;
}

.loc-block{
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.loc-block:first-of-type{ border-top: 1px solid var(--line); }

.loc-label{
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.loc-value{
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.7;
}
.loc-value:last-child{ margin-bottom: 0; }

.loc-map .map-placeholder{
  height: 420px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
}

/* ===== PARTNERS STRIP (LOGO ROW) ===== */
.partners-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
}

.partners-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.p-logo{
  height: 26px;
  width: auto;
  opacity: 0.65;             /* ✅ 시원하고 깔끔 */
  filter: grayscale(1);
  transition: opacity .15s ease, filter .15s ease;
}
.p-logo:hover{
  opacity: 0.95;
  filter: grayscale(0);
}

/* 스크롤바 최소화 */
.partners-row{
  scrollbar-width: thin;
  scrollbar-color: rgba(15,35,72,0.25) transparent;
}
.partners-row::-webkit-scrollbar{ height: 6px; }
.partners-row::-webkit-scrollbar-thumb{ background: rgba(15,35,72,0.20); }
.partners-row::-webkit-scrollbar-track{ background: transparent; }

/* RESPONSIVE */
@media (max-width: 980px){
  .loc-grid{ grid-template-columns: 1fr; }
  .loc-map .map-placeholder{ height: 320px; }
}
