:root {
  --orange: #EE7519;
  --orange-dark: #C45810;
  --gold: #FDBA4D;
  --cream: #FFF4E6;
  --cream-dark: #FDE4C4;
  --charcoal: #1F1612;
  --text: #2B2220;
  --muted: #7A6E68;
  --line: #E8D9C8;
  --navy: #2744A3;
  --green: #10B981;
  --purple: #8B5CF6;

  /* ─── 폰트 시스템 ─────────────────────────
     UI/본문 : Pretendard Variable (꿈식맨 랜딩과 통일)
     Display : Gowun Batang (한글 모던 명조 · 손그림 IP와 결 맞춤)
               → 섹션 타이틀·숫자·인용구에 온기·편집 품격
     원칙    : 한국어 italic 금지 → weight로 강조
  ─────────────────────────────────────── */
  --font-ui: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
             system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
             'Noto Sans KR', sans-serif;
  --font-display: 'Gowun Batang', 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 1; /* 숫자 너비 고정 */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s;
}
nav .wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui);
  font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
nav .brand .dot {
  width: 10px; height: 10px; background: var(--orange); border-radius: 2px;
}
nav ul {
  display: flex; gap: 28px; list-style: none;
  font-size: 14px; font-weight: 500;
  color: var(--text);
}
nav ul a:hover { color: var(--orange); }
nav .cta {
  padding: 10px 20px;
  background: var(--orange); color: #fff;
  border-radius: 6px; font-weight: 600; font-size: 14px;
  transition: background 0.2s;
}
nav .cta:hover { background: var(--orange-dark); }
.menu-toggle { display: none; }

/* ─── Hero · Minimal Light (A) ─── */
.hero {
  /* 🎨 흰 배경 + 은은한 오렌지 글로우 · 타이포 중심
     오렌지 도배 제거 · 주인공은 h1 꿈식판 */
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(253,186,77,0.08), transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(238,117,25,0.05), transparent 60%),
    #fcfaf6;
  color: var(--charcoal);
  padding: 180px 24px 160px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after { display: none; }

.hero .wrap {
  max-width: 1000px; margin: 0 auto;
  display: block;
  position: relative; z-index: 2;
}
.hero-content {
  display: flex; flex-direction: column;
}

.hero .eyebrow {
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--orange); font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-hook {
  /* 공감 훅 — 작고 담백하게. 주인공은 h1 */
  font-family: var(--font-ui);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: hookFade 0.6s ease 0.1s forwards;
}
@keyframes hookFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  /* 🎯 주인공 — Pretendard Black 900 · charcoal · 초대형
     흰 배경에 짙은 타이포가 확 꽂히는 편집 커버 느낌 */
  font-family: var(--font-ui);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 0 0 36px;
  color: var(--charcoal);
  text-shadow: none;
}
.hero-value {
  font-family: var(--font-ui);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 22px;
  line-height: 1.4;
  max-width: 780px;
}
.hero .tagline {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 52px;
  letter-spacing: -0.01em;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 36px;
  background: var(--orange); color: #fff;
  border-radius: 10px;
  font-weight: 700; font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 12px 28px rgba(238,117,25,0.28);
  align-self: flex-start;
}
.hero-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(238,117,25,0.4);
}
.hero-cta .arrow { transition: transform 0.2s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* ─── Section base ─── */
section { padding: 100px 24px; scroll-margin-top: 70px; }
.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.25em;
  color: var(--orange); font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 24px; height: 3px; background: var(--orange);
}
.section-title {
  /* 🏛 Display — 섹션 랜드마크. 세리프로 편집 헤드라인 리듬 */
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.section-lead {
  font-size: 17px; color: var(--muted);
  max-width: 720px; margin-bottom: 60px;
}

/* ─── Brand Story ─── */
.story { background: #fff; }
.story-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600; line-height: 1.5;
  color: var(--charcoal);
  border-left: 4px solid var(--orange);
  padding: 8px 0 8px 28px;
  margin: 30px 0 50px;
  max-width: 900px;
}
.story-quote strong { color: var(--orange); }
.story-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.story-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 12px;
  padding: 32px 28px;
}
.story-card:nth-child(1) { border-top-color: var(--muted); }
.story-card:nth-child(3) { border-top-color: var(--gold); }
.story-card .when {
  font-size: 11px; letter-spacing: 0.25em; font-weight: 700;
  color: var(--muted); margin-bottom: 10px;
}
.story-card:nth-child(2) .when { color: var(--orange); }
.story-card:nth-child(3) .when { color: #aa7a00; }
.story-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 14px;
}
.story-card p {
  font-size: 14px; color: var(--text); line-height: 1.7;
}

/* ─── Mission & Vision ─── */
.vision {
  background: var(--charcoal);
  color: var(--cream);
}
.vision .section-title { color: #fff; }
.vision .section-label { color: var(--gold); }
.vision .section-label::before { background: var(--gold); }
.vision .section-lead { color: #c4b6a6; }

.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 72px;
}
.mv-card {
  background: rgba(255, 244, 230, 0.03);
  border: 1px solid rgba(253, 186, 77, 0.2);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
}
.mv-card.mission::before { background: var(--orange); }
.mv-card.visioncard::before { background: var(--gold); }
.mv-label {
  font-size: 11px; letter-spacing: 0.3em;
  font-weight: 700; margin-bottom: 10px;
}
.mv-card.mission .mv-label { color: var(--orange); }
.mv-card.visioncard .mv-label { color: var(--gold); }
.mv-sub {
  font-size: 13px; color: #9a8a7a;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(253, 186, 77, 0.15);
}
.mv-card p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: #fff;
  font-weight: 500;
}
.mv-card p strong { color: var(--gold); font-weight: 700; }

.values-header {
  font-size: 11px; letter-spacing: 0.25em;
  color: var(--gold); font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
  justify-content: center;
}
.values-header::before,
.values-header::after {
  content: '';
  flex: 1; max-width: 80px;
  height: 1px;
  background: rgba(253, 186, 77, 0.3);
}

.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.value-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(122, 110, 104, 0.25);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.value-card:hover {
  border-color: rgba(253, 186, 77, 0.4);
  transform: translateY(-3px);
}
.value-num {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--orange);
  line-height: 1; margin-bottom: 14px;
}
.value-en {
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold); font-weight: 700;
  margin-bottom: 10px;
}
.value-card h4 {
  font-size: 19px; color: #fff;
  font-weight: 700; margin-bottom: 12px;
}
.value-card p {
  font-size: 12.5px;
  color: #b8aa9a;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Services ─── */
.services { background: var(--cream); }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.service {
  background: #fff; border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(238,117,25,0.12);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--orange); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  margin-bottom: 20px;
}
.service h3 {
  font-size: 22px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 10px;
}
.service p { font-size: 14px; color: var(--text); }

/* ─── Process ─── */
.process { background: #fff; }
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 38px; left: 8%; right: 8%; height: 3px;
  background: var(--orange); z-index: 0;
}
.step {
  position: relative; z-index: 1;
  text-align: center;
}
.step-num {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  background: var(--orange); color: #fff;
  border: 5px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
}
.step h4 {
  font-size: 17px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 4px;
}
.step .dur {
  display: inline-block;
  padding: 3px 10px; margin: 4px 0 8px;
  background: var(--gold); color: var(--charcoal);
  border-radius: 4px; font-size: 11px; font-weight: 700;
}
.step p {
  font-size: 12px; color: var(--muted);
  line-height: 1.6;
}
.process-note {
  background: var(--cream); border: 2px solid var(--orange);
  border-radius: 10px; padding: 18px 24px;
  margin-top: 40px;
  font-size: 14px; color: var(--charcoal);
}
.process-note strong { color: var(--orange); }

/* ─── Pricing ─── */
.pricing { background: var(--cream); }
.pricing-builds {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 60px;
}
.build-row {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 10px;
  padding: 24px 28px;
}
.build-row.highlight-gold { border-left-color: var(--gold); }
.build-row.highlight-amber { border-left-color: #F59E1C; }
.build-row.highlight-deep { border-left-color: var(--orange-dark); }
.build-row.highlight-dark { border-left-color: var(--charcoal); }
.build-name {
  font-size: 19px; font-weight: 700;
  color: var(--charcoal);
}
.build-desc {
  font-size: 13px; color: var(--muted);
  margin-top: 3px;
}
.build-tag {
  padding: 5px 14px;
  background: var(--orange); color: #fff;
  border-radius: 4px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.build-row.highlight-gold .build-tag { background: var(--gold); color: var(--charcoal); }
.build-row.highlight-amber .build-tag { background: #F59E1C; color: var(--charcoal); }
.build-row.highlight-deep .build-tag { background: var(--orange-dark); color: #fff; }
.build-row.highlight-dark .build-tag { background: var(--charcoal); color: #fff; }
.build-price {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}

.pricing-subhead {
  font-size: 14px; letter-spacing: 0.2em;
  color: var(--orange); font-weight: 700;
  margin-bottom: 16px;
}

.care-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.care {
  background: #fff; border: 2px solid var(--line);
  border-radius: 12px; padding: 32px 28px;
}
.care.premium {
  background: var(--orange); color: #fff;
  border-color: var(--orange);
}
.care-tier {
  font-size: 11px; letter-spacing: 0.25em; font-weight: 700;
  color: var(--orange); margin-bottom: 6px;
}
.care.premium .care-tier { color: var(--gold); }
.care h3 {
  font-size: 22px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 12px;
}
.care.premium h3 { color: #fff; }
.care .price {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--orange); margin-bottom: 18px;
}
.care.premium .price { color: var(--gold); }
.care ul { list-style: none; }
.care li {
  padding: 8px 0 8px 22px; position: relative;
  font-size: 14px; color: var(--text);
  border-bottom: 1px dashed var(--line);
}
.care li:last-child { border-bottom: none; }
.care li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--orange); font-weight: 700;
}
.care.premium li { color: var(--cream); border-color: rgba(255,255,255,0.2); }
.care.premium li::before { color: var(--gold); }

/* ─── Portfolio ─── */
.portfolio { background: #fff; }

.port-tabs {
  display: flex; justify-content: center;
  gap: 10px; margin: 10px 0 50px;
  flex-wrap: wrap;
}
.port-tab {
  padding: 12px 28px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 30px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.port-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.port-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(238,117,25,0.25);
}

.port-panel { display: none; animation: fadeIn 0.3s ease; }
.port-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.port-item {
  position: relative;
  background: var(--cream);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.port-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(238,117,25,0.15);
}
.port-item.featured {
  background: linear-gradient(145deg, #FFF4E6 0%, #FDE4C4 100%);
  border: 2px solid var(--orange);
}
.port-icon {
  width: 96px; height: 96px;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.port-item h4 {
  font-size: 18px; font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.port-item p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  flex: 1; /* push tags to bottom */
  margin-bottom: 16px;
}
.port-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.port-tags span {
  padding: 4px 12px;
  background: #fff;
  color: var(--orange);
  border: 1px solid rgba(238,117,25,0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.port-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  background: var(--orange);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.port-item.featured .port-tags span {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ─── Stealth Mode 카드 (자체 SaaS · 비공개) ─── */
.port-stealth-note {
  background: linear-gradient(135deg, rgba(31,22,18,0.04), rgba(238,117,25,0.06));
  border: 1px dashed rgba(122,110,104,0.4);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.port-stealth-note strong { color: var(--orange); font-weight: 700; }

.port-item.stealth {
  background: linear-gradient(145deg, #f5eee3 0%, #ebe0cf 100%);
  border: 1px dashed rgba(122,110,104,0.45);
  position: relative;
  overflow: hidden;
}
.port-item.stealth::before {
  content: ''; position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 18px,
      rgba(122,110,104,0.04) 18px,
      rgba(122,110,104,0.04) 36px
    );
  pointer-events: none;
}
.port-item.stealth .port-icon {
  background: var(--cream-dark);
  color: var(--muted);
  filter: grayscale(0.4);
}
.port-item.stealth h4 { color: var(--charcoal); }
.port-item.stealth p { color: var(--muted); }
.port-item.stealth .port-tags span {
  background: rgba(255,255,255,0.6);
  color: var(--muted);
  border-color: rgba(122,110,104,0.35);
}
.port-item.stealth.featured {
  background: linear-gradient(145deg, #FFF4E6 0%, #FDE4C4 100%);
  border: 2px solid var(--orange);
}
.port-item.stealth.featured .port-tags span {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ─── Featured Cards · iframe 실제 프리뷰 (랜딩·홈페이지 탭) ───
   카드 안에서 실제 사이트를 축소해서 보여주고,
   클릭하면 모달로 전체 크기 인터렉티브 프리뷰 */
.port-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.port-featured {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.port-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(238,117,25,0.15);
}
.preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.preview-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 400%; height: 400%;
  transform: scale(0.25);
  transform-origin: top left;
  border: 0;
  pointer-events: none;
  background: #fff;
}
.preview-overlay {
  position: absolute; inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  background: rgba(31, 22, 18, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.preview-frame:hover .preview-overlay,
.preview-frame:focus-visible .preview-overlay {
  opacity: 1;
}
.preview-btn {
  padding: 14px 28px;
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transform: translateY(8px);
  transition: transform 0.25s;
}
.preview-frame:hover .preview-btn { transform: translateY(0); }
.port-featured-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.port-featured-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}
.port-featured-body p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.port-featured-body .port-tags {
  margin-top: 4px;
}

/* ─── Preview Modal · iframe lightbox ─── */
.preview-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 32px 20px;
}
.preview-modal.open { display: flex; }
.preview-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 10, 6, 0.82);
  backdrop-filter: blur(6px);
  animation: modalFade 0.2s ease;
}
.preview-modal-frame {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: modalUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes modalFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.preview-modal-header {
  flex-shrink: 0;
  padding: 14px 20px;
  background: var(--charcoal);
  color: #fff;
  display: flex;
  justify-content: space-between; align-items: center;
  gap: 16px;
}
.preview-modal-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-modal-actions {
  display: flex; gap: 10px; align-items: center;
  flex-shrink: 0;
}
.preview-modal-open {
  padding: 7px 14px;
  background: var(--orange);
  color: #fff;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.preview-modal-open:hover { background: var(--orange-dark); }
.preview-modal-close {
  width: 34px; height: 34px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.preview-modal-close:hover { background: rgba(255,255,255,0.12); }
.preview-modal-body {
  flex: 1;
  overflow: hidden;
  background: #f1ebe3;
}
.preview-modal-body iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .port-featured-grid { grid-template-columns: 1fr; gap: 18px; }
  .preview-frame {
    aspect-ratio: 16 / 11;
    position: relative;
  }
  .preview-frame iframe {
    width: 333%; height: 333%;
    transform: scale(0.3);
  }
  .preview-modal { padding: 8px; }
  .preview-modal-frame { height: 94vh; border-radius: 10px; }
  .preview-modal-header { padding: 10px 14px; }
  .preview-modal-title { font-size: 13px; }
  .preview-modal-open { padding: 6px 10px; font-size: 11px; }

  /* 모바일 · 오버레이 숨기고 작은 코너 칩으로 탭 유도
     → 프리뷰 영역을 가리지 않음 */
  .preview-overlay { display: none; }
  .preview-frame::after {
    content: '▶ 직접 체험';
    position: absolute;
    bottom: 10px; right: 10px;
    padding: 7px 13px;
    background: rgba(238,117,25,0.95);
    color: #fff;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 2;
    font-family: var(--font-ui);
  }
  /* 탭 순간 전체 톤 살짝 어둡게 → 반응 피드백 */
  .preview-frame:active {
    filter: brightness(0.85);
  }
}

/* ─── Partners ─── */
.partners { background: var(--charcoal); color: #fff; }
.partners .section-title { color: #fff; }
.partners .section-lead { color: var(--cream); }
.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.partner {
  background: #2a1f15; border: 1px solid #3d2514;
  border-radius: 12px; padding: 0 0 20px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.partner:hover { transform: translateY(-4px); border-color: var(--orange); }
.partner-head {
  padding: 20px 22px;
  color: #fff;
}
.partner.brand .partner-head { background: var(--orange); }
.partner.growth .partner-head { background: var(--green); }
.partner.qa .partner-head { background: var(--purple); }
.partner.enterprise .partner-head { background: var(--navy); }
.partner-head .en {
  font-size: 10px; letter-spacing: 0.2em;
  opacity: 0.9; margin-bottom: 4px;
}
.partner-head .name {
  font-size: 20px; font-weight: 700;
}
.partner-body { padding: 20px 22px; }
.partner .role {
  font-size: 13px; font-weight: 700;
  margin-bottom: 10px;
}
.partner.brand .role { color: var(--orange); }
.partner.growth .role { color: var(--green); }
.partner.qa .role { color: var(--purple); }
.partner.enterprise .role { color: var(--gold); }
.partner .desc {
  font-size: 12px; color: var(--cream);
  min-height: 100px; /* 데스크톱 4카드 그리드 맞춤 */
}
@media (max-width: 960px) {
  .partner .desc { min-height: 0; } /* 모바일에선 데드스페이스 제거 */
}
.partner .scope {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed #3d2514;
  font-size: 11px; color: var(--gold);
  font-weight: 600;
}

/* ─── Why ─── */
.why { background: var(--cream); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.why-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 32px 28px;
  position: relative;
}
.why-num {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  border-radius: 12px 0 12px 0;
}
.why-card .sub {
  padding-left: 54px;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--orange); font-weight: 700;
  margin-bottom: 14px; line-height: 2.5;
}
.why-card h4 {
  font-size: 18px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 10px;
}
.why-card p { font-size: 13px; color: var(--text); }

/* ─── Contact ─── */
.contact {
  background: linear-gradient(135deg, #1F1612 0%, #2B2220 100%);
  color: #fff;
  padding: 120px 24px;
}
.contact .section-title { color: #fff; }
.contact .section-label { color: var(--gold); }
.contact .section-label::before { background: var(--gold); }
.contact-main {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items: center;
}
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15; font-weight: 700;
  margin-bottom: 20px;
}
.contact h2 strong { color: var(--gold); }
.contact .lead {
  font-size: 18px; color: var(--cream);
  margin-bottom: 36px;
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px;
  background: var(--orange); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.contact-btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
.contact-info {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px;
}
.contact-info .row {
  display: flex; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: baseline;
}
.contact-info .row:last-child { border-bottom: none; }
.contact-info .label {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--orange); font-weight: 700;
  min-width: 80px;
}
.contact-info .val {
  font-size: 15px; font-weight: 600;
  color: #fff;
}
.contact-info .val.sm { font-size: 13px; }

/* ─── Footer ─── */
footer {
  background: #1a1511; color: #c4b3a0;
  padding: 48px 24px 28px;
  font-size: 13px;
}
.footer-main {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  padding-bottom: 28px;
}
.footer-col { min-width: 0; }
.footer-brand-name {
  color: #fff; font-weight: 800; font-size: 16px;
  margin-bottom: 10px;
}
.footer-brand-name span {
  color: #b8a896; font-weight: 500; font-size: 13px; margin-left: 4px;
}
.footer-tag {
  color: #f0e2cf; font-size: 13.5px; margin-bottom: 10px; font-weight: 500;
}
.footer-desc {
  color: #c4b3a0; line-height: 1.7; font-size: 12.5px; margin-bottom: 14px;
}
.footer-contact {
  font-size: 13px; color: #c4b3a0;
}
.footer-contact a {
  color: var(--gold); text-decoration: none; font-weight: 600;
}
.footer-contact a:hover { color: var(--orange); }
.footer-contact span { margin: 0 6px; color: #6b5d4e; }

.footer-col.biz {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px;
}
.biz-row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 3px 0;
}
.biz-label {
  color: #9a8a7a; min-width: 96px;
  font-size: 11.5px; letter-spacing: 0.05em;
  font-weight: 500;
}
.biz-val {
  color: #ece0cc; font-weight: 500;
}

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #2a211b;
}
.footer-bottom .quote {
  /* 🏛 Display — 마지막 여운. 이탤릭 제거, 세리프 품격만 유지 */
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.footer-bottom > div:last-child {
  color: #9a8a7a; font-size: 12.5px;
}

@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .biz-label { min-width: 80px; font-size: 10.5px; }
}

/* ─── Nav scrolled state ─── */
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px; gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  nav ul.open { display: flex; }
  .menu-toggle {
    display: block; background: none; border: none;
    font-size: 24px; color: var(--charcoal); cursor: pointer;
  }
  nav .cta { display: none; }
  .hero { padding: 120px 22px 90px; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero-hook { margin-bottom: 20px; }
  .hero h1 {
    margin: 0 0 24px;
    letter-spacing: -0.06em;
    line-height: 0.88;
    font-size: clamp(64px, 18vw, 100px);
  }
  .hero-value { font-size: clamp(20px, 5.5vw, 24px); margin-bottom: 18px; }
  .hero .tagline { margin-bottom: 36px; font-size: 15px; }
  .hero-cta { padding: 16px 28px; font-size: 15px; }
  section { padding: 70px 20px; }
  .story-cards,
  .services-grid,
  .care-grid,
  .port-grid,
  .partners-grid,
  .why-grid,
  .contact-main {
    grid-template-columns: 1fr !important;
  }
  .build-row { grid-template-columns: 1fr; gap: 10px; }
  .build-price { font-size: 22px; }
  .port-tabs { gap: 6px; }
  .port-tab { padding: 10px 18px; font-size: 13px; }

  /* ─── 섹션 기본 패딩 추가 축소 ─── */
  section { padding: 56px 18px; }
  .section-lead { margin-bottom: 40px; font-size: 15px; }

  /* ─── Partners 모바일 · 가로 콤팩트 카드 ───
     헤더 색 띠 + 본문을 좌우 2분할로 축소
     → 한 눈에 4개 파트너 파악 가능 */
  .partner {
    display: grid;
    grid-template-columns: 110px 1fr;
    padding: 0;
    min-height: 0;
  }
  .partner-head {
    padding: 16px 14px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .partner-head .en {
    font-size: 9px; letter-spacing: 0.15em; margin-bottom: 4px;
    line-height: 1.3;
  }
  .partner-head .name {
    font-size: 16px; font-weight: 700; line-height: 1.2;
  }
  .partner-body {
    padding: 14px 16px;
    border-top: none !important;
  }
  .partner .role {
    font-size: 12px; margin-bottom: 6px;
  }
  .partner .desc {
    font-size: 12px; line-height: 1.6;
    min-height: 0;
  }
  .partner .scope {
    margin-top: 10px; padding-top: 10px;
    font-size: 10.5px;
  }

  /* ─── Why 카드 · 모바일 2열 압축 ─── */
  .why-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .why-card { padding: 22px 18px 18px; }
  .why-card .sub { padding-left: 48px; font-size: 9px; line-height: 2.6; margin-bottom: 8px; }
  .why-num { width: 38px; height: 38px; font-size: 12px; }
  .why-card h4 { font-size: 15px; margin-bottom: 6px; }
  .why-card p { font-size: 12px; }

  /* ─── Mission & Vision 카드 패딩 축소 ─── */
  .mv-card { padding: 28px 22px; }
  .mv-card p { font-size: 17px; line-height: 1.5; }
  .values-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .value-card { padding: 20px 18px; }
  .value-num { font-size: 26px; margin-bottom: 10px; }
  .value-card h4 { font-size: 16px; }
  .value-card p { font-size: 11.5px; }

  /* ─── Services 카드 여백 축소 ─── */
  .service { padding: 26px 22px; }
  .service h3 { font-size: 19px; }
  .service-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 14px; }

  /* ─── Portfolio 탭 스크롤 허용 ─── */
  .port-tabs {
    overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start;
    padding: 0 4px 8px; margin: 10px -18px 30px;
    scrollbar-width: none;
  }
  .port-tabs::-webkit-scrollbar { display: none; }
  .port-tab { white-space: nowrap; flex-shrink: 0; }
  .port-item { padding: 24px 22px; }
  .port-icon { width: 72px; height: 72px; font-size: 40px; margin-bottom: 16px; }

  /* ─── Pricing build 행 간결하게 ─── */
  .build-row {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "name price"
      "desc price"
      "tag  tag";
    gap: 4px 12px;
    padding: 18px 20px;
  }
  .build-row > div:first-child { grid-area: name; }
  .build-row > div:nth-child(2) { display: none; }
  .build-tag { grid-area: tag; justify-self: start; margin-top: 6px; }
  .build-price { grid-area: price; font-size: 20px; }
  .build-name { font-size: 17px; }
  .build-desc { font-size: 12px; }

  /* ─── Care 카드 ─── */
  .care { padding: 24px 22px; }
  .care .price { font-size: 22px; margin-bottom: 14px; }

  /* ─── Story 카드 ─── */
  .story-card { padding: 24px 22px; }
  .story-quote {
    padding: 6px 0 6px 20px;
    margin: 20px 0 36px;
  }

  /* ─── Process 모바일 · 세로 타임라인 ───
     좌측: 번호 원 + 오렌지 세로 라인
     우측: 제목·기간 배지·설명 (좌정렬) */
  .process-steps {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    position: relative;
    padding: 0;
  }
  .process-steps::before {
    display: block !important;
    content: '';
    position: absolute;
    top: 40px; bottom: 40px;
    left: 26px;
    width: 3px; height: auto;
    background: var(--orange);
    z-index: 0;
  }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      "num dur"
      "num desc";
    column-gap: 20px;
    row-gap: 4px;
    align-items: start;
    padding: 10px 0 24px;
    text-align: left;
    position: relative;
    z-index: 1;
  }
  .step-num {
    grid-area: num;
    width: 54px; height: 54px;
    margin: 0;
    font-size: 22px;
    border-width: 4px;
    align-self: start;
  }
  .step h4 {
    grid-area: title;
    font-size: 18px;
    margin: 10px 0 0;
  }
  .step .dur {
    grid-area: dur;
    justify-self: start;
    margin: 2px 0 0;
  }
  .step p {
    grid-area: desc;
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
    margin-top: 4px;
  }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .port-grid { grid-template-columns: repeat(2, 1fr); }
}
