:root {
  --blue: #2f7bff;
  --blue-l: #8fbaff;
  --sky: #e7f0ff;
  --black: #05080f;
  --ink: #0f1a2e;
  --muted: #5d6b82;
  --line: #dfe6f1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.display { font-family: "Anton", "Pretendard", sans-serif; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--blue); }

/* ---------- 첫 화면 (NVE 참고) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--black); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 40%, rgba(47,123,255,.28), transparent 70%); }
.nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; }
.nav__logo { font-size: 13px; line-height: 1.15; letter-spacing: .06em; font-weight: 800; text-decoration: none; }
.nav nav { display: flex; gap: 20px; font-size: 14px; color: #a9b6cc; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: #fff; }
.dots { position: absolute; left: 28px; top: 30%; display: grid; grid-template-columns: repeat(2, 6px); gap: 14px 18px; opacity: .6; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.side { position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 12px; letter-spacing: .24em; font-weight: 700; color: #a9b6cc; }
.center { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; text-align: center; padding: 0 24px; }
.center p { margin: 0 0 14px; color: var(--blue-l); font-weight: 700; letter-spacing: .16em; font-size: 13px; }
.center h1 { margin: 0; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.center h1 em { font-style: normal; color: var(--blue); }
.ring { margin: 36px auto 0; position: relative; width: 120px; height: 120px; display: grid; place-items: center; text-decoration: none; }
.ring svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.ring span { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-size: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.since { position: absolute; left: 28px; bottom: 120px; font-size: 12px; color: #a9b6cc; font-style: italic; z-index: 2; }
.giant { position: relative; z-index: 1; margin: 0; white-space: nowrap; font-size: clamp(72px, 15vw, 220px); line-height: .86; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); transform: translateY(12%); }

/* ---------- 소개 ---------- */
.about { max-width: 1160px; margin: 0 auto; padding: 104px 24px 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.about h2 { margin: 10px 0 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.2; letter-spacing: -.03em; }
.about h2 em { font-style: normal; color: var(--blue); }
.about__facts { margin: 0; display: grid; gap: 22px; padding: 28px; background: var(--sky); border-radius: 20px; }
.about__facts dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.about__facts dd { margin: 2px 0 0; font-weight: 600; }
.chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; background: #fff; }

/* ---------- 경험 (Eventin 참고) ---------- */
.cases { padding: 96px 24px; max-width: 1160px; margin: 0 auto; scroll-margin-top: 24px; }
.cases h2 { margin: 0 0 28px; text-align: center; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; }
.cases h2 span { color: var(--blue); }
.cases__lead { margin: -12px 0 44px; text-align: center; color: var(--muted); }
.pill { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.pill--dark { border-color: var(--blue); background: var(--blue); color: #fff; }

/* 케이스 카드 (누르면 상세 페이지) */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--sky); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.case-card:hover, .case-card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 26, 46, .14); }
.case-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.case-card--feature { background: var(--blue); color: #fff; }
.case-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-card__no { font-size: 44px; line-height: 1; color: var(--blue); margin-top: 6px; }
.case-card--feature .case-card__no { color: #fff; }
.case-card h3 { margin: 0; font-size: 22px; line-height: 1.3; }
.case-card__role { margin: 0; font-size: 14px; opacity: .75; }
.case-card p { margin: 0; font-size: 15px; }
.case-card__nums { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.case-card__nums li { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }
.case-card__more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15px; }

/* 사진 자리: 사진이 없으면 안내 상자로 보임 */
.photo { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--sky); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { display: none; }
.photo.is-empty { display: grid; place-items: center; border: 2px dashed #9fbbe6; background: repeating-linear-gradient(-45deg, var(--sky), var(--sky) 12px, #dde9fc 12px, #dde9fc 24px); }
.photo.is-empty img { display: none; }
.photo--card { aspect-ratio: 16 / 10; border-radius: 0; }
.photo--card.is-empty { border: 0; border-bottom: 2px dashed #9fbbe6; }
.case-card--feature .photo--card.is-empty { background: repeating-linear-gradient(-45deg, #3d86ff, #3d86ff 12px, #4b8fff 12px, #4b8fff 24px); border-bottom-color: rgba(255,255,255,.5); }
.photo--wide { aspect-ratio: 16 / 8; }
.photo--portrait { aspect-ratio: 3 / 4; width: min(100%, 480px); justify-self: center; }

/* ---------- 케이스 상세 페이지 ---------- */
.case-hero { position: relative; background: var(--black); color: #fff; overflow: hidden; padding-bottom: 72px; }
.case-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 30% 30%, rgba(47,123,255,.25), transparent 70%); }
.case-nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); }
.back:hover { background: #fff; color: var(--black); }
.case-hero__body { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 48px 24px 0; }
.case-hero h1 { margin: 16px 0 12px; font-size: clamp(34px, 5.6vw, 68px); line-height: 1.15; letter-spacing: -.03em; }
.case-hero__lead { margin: 0 0 36px; max-width: 40em; color: #c3cfe2; font-size: 18px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; overflow: hidden; }
.facts div { background: rgba(5,8,15,.85); padding: 16px 18px; }
.facts dt { font-size: 12px; letter-spacing: .1em; color: var(--blue-l); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
.case-hero .giant { position: absolute; right: -10px; bottom: -0.18em; font-size: clamp(80px, 14vw, 200px); transform: none; -webkit-text-stroke-color: rgba(255,255,255,.22); z-index: 1; }

.case-body { max-width: 1160px; margin: 0 auto; padding: 56px 24px 24px; display: grid; gap: 56px; }
.block { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.block__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.block__text h2 { margin: 0 0 16px; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; letter-spacing: -.02em; }
.block__text h3 { margin: 20px 0 8px; font-size: 17px; }
.block__text h3:first-child { margin-top: 0; }
.block__text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.block__text ul li { position: relative; padding-left: 18px; }
.block__text ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.block__text .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.block__text .stats li { padding: 18px; border-radius: 16px; background: var(--sky); display: flex; flex-direction: column; gap: 2px; }
.block__text .stats li::before { display: none; }
.stats b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--blue); }
.stats b small { font-family: "Pretendard", sans-serif; font-size: 15px; font-weight: 700; }
.stats span { font-size: 14px; color: var(--muted); }
.muted { margin: 0; color: var(--muted); }
.howto { margin-top: 24px; padding: 22px 24px; border-radius: 18px; background: var(--blue); color: #fff; }
.howto__title { margin: 0 0 12px; font-weight: 800; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.howto li span { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.case-pager { max-width: 1160px; margin: 40px auto 96px; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.case-pager a { flex: 1 1 220px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 18px 22px; border-radius: 18px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 700; }
.case-pager a:hover { background: var(--sky); }
.case-pager small { font-size: 12px; color: var(--muted); font-weight: 600; }
.case-pager__home { background: var(--ink); color: #fff; text-align: center; align-items: center; }
.case-pager__home:hover { background: var(--blue) !important; border-color: var(--blue); }
.case-pager__next { text-align: right; align-items: flex-end; }


/* ---------- 하단 ---------- */
.foot { background: var(--black); color: #fff; text-align: center; padding: 72px 24px 48px; }
.foot p { margin: 0 0 16px; font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.foot em { font-style: normal; color: var(--blue); }
.foot small { color: #a9b6cc; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .nav nav { gap: 14px; }
  .dots, .side { display: none; }
  .since { bottom: 80px; left: 20px; }
  .about { grid-template-columns: 1fr; gap: 28px; padding-top: 80px; }
  .case-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .block { grid-template-columns: 1fr; gap: 12px; }
  .block__text .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .photo--wide { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .nav, .case-nav { padding: 18px 16px; }
  .facts { grid-template-columns: 1fr; }
  .case-hero__body { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring svg { animation: none; }
}
