/* ===== CJ ONNETWORKS 톤앤매너: 라이트 베이스 + 포인트 컬러(블루) 하나만 사용 ===== */
:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --bg-card: #ffffff;
  --text: #14171f;
  --text-dim: #5b6273;
  --text-faint: #9aa1b0;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --accent: #006ecd;
  --accent-soft: rgba(0, 110, 205, 0.1);
  --accent-soft-strong: rgba(0, 110, 205, 0.18);

  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Progress bar ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(247, 248, 250, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 40%, rgba(0, 110, 205, 0.12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}
.hero-photo {
  position: relative;
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 16px 40px rgba(15, 23, 42, 0.1);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-name {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--text);
}
.hero-role {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; }
.btn {
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: #fff;
}
.btn-ghost:hover { background: var(--bg-alt); }

.scroll-down {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-down span {
  display: block;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateY(8px) rotate(45deg); opacity: 1; }
}

.mobile-break { display: none; }

/* ===== Sections ===== */
.section { padding: 110px 24px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 860px;
  color: var(--text);
}
.section-lead {
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 56px;
  font-size: 1rem;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Timeline (About) ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
  border-left: 2px solid var(--border);
  padding-left: 28px;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.timeline-item p { color: var(--text-dim); font-size: 0.92rem; }

.awards-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.award-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
}
.award-chip strong {
  font-size: 0.88rem;
  color: var(--accent);
}
.award-chip span { color: var(--text-dim); }

/* ===== Flagship project ===== */
.flagship {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 44px;
  margin-bottom: 64px;
}
.flagship-cover {
  margin: -44px -44px 32px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--bg-alt);
}
.flagship-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flagship-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.badge-gold {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-soft-strong);
}
.flagship-head h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.flagship-sub { color: var(--text-dim); font-size: 0.88rem; }

.contribution-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  min-width: 160px;
}
.contribution-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.contribution-label { font-size: 0.76rem; color: var(--text-dim); margin-top: 4px; }

.flagship-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  border-left: 2px solid var(--border-strong);
  padding-left: 12px;
  margin-bottom: 24px;
}
.flagship-role {
  margin-bottom: 12px;
}
.flagship-role strong { font-size: 0.85rem; color: var(--accent); display: block; margin-bottom: 6px; }
.flagship-role p { font-size: 0.94rem; color: var(--text); }

.pill-row { display: flex; gap: 10px; margin: 20px 0 24px; flex-wrap: wrap; }
.pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.block-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 36px 0 10px;
  color: var(--text);
}
.block-desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 18px; }

.prompt-example {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 8px;
}
.prompt-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.prompt-example p {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.prompt-example p + p { margin-top: 16px; }
.prompt-example p strong { color: var(--accent); }

/* ===== Before / After 비교 ===== */
.ba-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin: 28px 0 12px;
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 8px;
}
.ba-grid-portrait { max-width: 580px; }
.ba-item { margin: 0; }
.ba-media {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.ba-media-portrait { aspect-ratio: 9 / 16; }
.ba-media img,
.ba-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-item figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.ba-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.ba-tag-before { background: var(--bg-alt); color: var(--text-faint); border: 1px solid var(--border); }
.ba-tag-after { background: var(--accent); color: #fff; }
.ba-note { margin-top: 28px; }

/* ===== Problem / Action / Result ===== */
.par-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  padding: 26px 28px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.par-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.par-item h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.par-item p { font-size: 0.9rem; color: var(--text-dim); }
.par-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.par-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.par-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.par-list strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}
.par-list code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82em;
  background: rgba(0, 110, 205, 0.08);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
}

.track-list { margin-top: 0; margin-bottom: 8px; }

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.photo-item { margin: 0; }
.photo-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-alt);
}
.photo-media img { width: 100%; height: 100%; object-fit: cover; }
.photo-item figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
}

.turnaround-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  max-width: 760px;
  margin-bottom: 8px;
}
.turnaround-card img { width: 100%; height: auto; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}
.video-card { display: flex; flex-direction: column; }
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title { font-size: 0.88rem; font-weight: 700; margin-top: 10px; color: var(--text); }
.video-meta { font-size: 0.78rem; color: var(--text-dim); }
.video-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
}

.stat-scope {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: -4px 0 14px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ads-shot { margin: 0 0 24px; }
.ads-shot a {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.ads-shot img { width: 100%; height: auto; }
.ads-shot figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.stat-num { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.76rem; color: var(--text-dim); margin-top: 4px; }

.insight-list { display: flex; flex-direction: column; gap: 10px; }
.insight-group {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 20px 0 8px;
}
.ads-shot + .insight-group { margin-top: 0; }
.insight-lesson {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.insight-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.insight-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Other projects grid ===== */
.projects-grid-title { margin-top: 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.project-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project-card h4 { font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.project-award {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-soft-strong);
  white-space: nowrap;
}
.project-meta-row { font-size: 0.8rem; color: var(--text-dim); display: flex; gap: 6px; }
.project-meta-row b { color: var(--text-faint); font-weight: 600; min-width: 40px; }
.project-purpose { font-size: 0.84rem; color: var(--text); margin-top: 4px; }

/* ===== Skills ===== */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.skill-group h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.skill-list { display: flex; flex-direction: column; gap: 12px; }
.skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}
.skill-name { color: var(--text); }
.skill-level {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.level-high { background: var(--accent); color: #fff; }
.level-mid-high { background: var(--accent-soft-strong); color: var(--accent); }
.level-mid { background: var(--accent-soft); color: var(--accent); }
.level-low { background: var(--bg-alt); color: var(--text-faint); border: 1px solid var(--border); }

/* ===== Contact ===== */
.section-contact { text-align: center; }
.section-contact .section-eyebrow,
.section-contact .section-title { margin-left: auto; margin-right: auto; }
.contact-email {
  display: inline-block;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  margin-top: 12px;
}
.contact-channels {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.contact-channels a {
  font-size: 0.86rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.contact-channels a:hover { color: var(--text); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.78rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-groups { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mobile-break { display: block; }
  .nav-links {
    position: fixed;
    top: 60px; right: 24px;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 20px; }
  .flagship { padding: 26px; }
  .flagship-cover { margin: -26px -26px 22px; }
  .flagship-head { flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; max-width: 260px; margin-left: auto; margin-right: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .contribution-box { align-self: stretch; }
  .par-block { padding: 20px; }
  .ba-grid { gap: 10px; }
  .photo-grid { grid-template-columns: 1fr; }
}
