/* DICO IS Lab 디자인 샘플 — 학술형 다크 히어로·데이터형 */
:root {
  --bg: #F7F8FA; --alt: #EEF1F6; --dark: #0B1220; --dark-2: #141D31;
  --cyan: #3DD9EB; --violet: #7C5CFF; --ink: #0F172A; --text: #334155; --sub: #64748B; --line: #E2E8F0;
  --header-h: 68px;
  --sans: 'Noto Sans KR', 'Pretendard Variable', -apple-system, sans-serif;
  --mono-f: 'JetBrains Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.75; word-break: keep-all; -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--cyan); color: var(--dark); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono-f); font-size: 13px; letter-spacing: .02em; color: var(--violet); }
.ph { display: inline-block; padding: 0 6px; border: 1px dashed var(--violet); border-radius: 4px; color: #5B3FD6; font-family: var(--sans); font-size: .92em; }
.ph--dark { border-color: rgba(61, 217, 235, .6); color: var(--cyan); }

.sample-banner { background: #000; color: #A9B4C7; font-size: 12.5px; }
.sample-banner__inner { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.sample-banner__tag { flex: none; padding: 0 8px; border: 1px solid var(--cyan); color: var(--cyan); font-family: var(--mono-f); font-size: 11.5px; }
.sample-banner a { color: var(--cyan); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, .88); backdrop-filter: blur(10px); color: #E2E8F0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.logo span { display: grid; line-height: 1.25; }
.logo b { font-family: var(--mono-f); font-size: 16px; color: #fff; }
.logo small { font-size: 11.5px; color: #94A3B8; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav a { font-family: var(--mono-f); font-size: 14px; text-decoration: none; color: #CBD5E1; }
.site-nav a::before { content: "./"; color: var(--violet); opacity: 0; margin-right: 2px; transition: opacity .2s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--cyan); }
.site-nav a:hover::before, .site-nav a.is-active::before { opacity: 1; }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .3s, background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--cyan { background: var(--cyan); color: var(--dark); box-shadow: 0 0 0 0 rgba(61, 217, 235, .5); }
.btn--cyan:hover { box-shadow: 0 0 30px -4px rgba(61, 217, 235, .8); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .3); color: #E2E8F0; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* 등장: 아래에서 + 살짝 잘린 상태에서 */
.has-motion .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.has-motion .reveal.is-in { opacity: 1; transform: none; }

/* 히어로 */
.hero { position: relative; padding: 110px 0 100px; background: radial-gradient(ellipse at 70% 30%, #1A2550 0, var(--dark) 60%); color: #CBD5E1; overflow: hidden; }
.graph { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; pointer-events: none; }
.hero__inner a, .hero__inner .btn { pointer-events: auto; }
.hero__kicker { color: var(--cyan); font-size: 14px; }
.cursor { color: var(--violet); }
.hero__title { margin-top: 20px; font-size: clamp(36px, 4.8vw, 64px); font-weight: 900; line-height: 1.22; letter-spacing: -.03em; color: #fff; max-width: 15em; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 17px; color: #A9B4C7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats { display: flex; gap: 46px; margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); color: #94A3B8; }
.hero__stats dd { margin-top: 4px; font-size: 26px; color: #fff; }
.has-motion .hero__inner > * { animation: hero-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.has-motion .hero__inner > :nth-child(2) { animation-delay: .1s; } .has-motion .hero__inner > :nth-child(3) { animation-delay: .2s; } .has-motion .hero__inner > :nth-child(4) { animation-delay: .3s; } .has-motion .hero__inner > :nth-child(5) { animation-delay: .4s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }

/* 섹션 */
.section { padding: 110px 0; }
.section--alt { background: var(--alt); }
.sec-head { margin-bottom: 44px; }
.sec-head h2, .join h2 { margin-top: 8px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -.03em; color: var(--ink); line-height: 1.25; }
.note { margin-top: 20px; font-size: 13px; color: var(--sub); }
.lead { margin-top: 16px; font-size: 17px; color: var(--sub); }

/* 연구 주제 */
.topics { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.topics__list { display: grid; align-content: start; gap: 6px; }
.topics__list button { display: flex; gap: 12px; align-items: baseline; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; font-size: 16.5px; color: var(--sub); text-align: left; cursor: pointer; transition: all .3s; }
.topics__list button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.topics__list button[aria-selected="true"] .mono { color: var(--cyan); }
.topics__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 36px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.topics__panel[hidden] { display: none; }
.has-motion .topics__panel:not([hidden]) { animation: hero-in .5s cubic-bezier(.2, .8, .2, 1); }
.topics__panel h3 { font-size: 24px; font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 3px 10px; border-radius: 99px; background: #F1EDFF; }
.viz { aspect-ratio: 5 / 4; border-radius: 14px; background: var(--dark); position: relative; overflow: hidden; }
.viz--a span { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.viz--a span:nth-child(odd) { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.viz--a span:nth-child(1) { left: 20%; top: 30%; } .viz--a span:nth-child(2) { left: 70%; top: 20%; } .viz--a span:nth-child(3) { left: 40%; top: 60%; } .viz--a span:nth-child(4) { left: 80%; top: 70%; }
.viz--a span:nth-child(5) { left: 55%; top: 40%; } .viz--a span:nth-child(6) { left: 15%; top: 75%; } .viz--a span:nth-child(7) { left: 30%; top: 15%; } .viz--a span:nth-child(8) { left: 65%; top: 85%; }
.has-motion .viz--a span { animation: cluster 4s ease-in-out infinite alternate; }
.viz--a span:nth-child(2n) { animation-delay: -1.3s !important; }
@keyframes cluster { to { left: 46%; top: 46%; } }
.viz--b svg { width: 100%; height: 100%; padding: 16px; }
.viz--b .arm { fill: none; stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.viz--b circle { fill: var(--violet); }
.viz--b .tip { fill: #fff; }
.has-motion .viz--b svg { animation: arm 3s ease-in-out infinite alternate; transform-origin: 18% 88%; }
@keyframes arm { to { transform: rotate(-14deg); } }
.viz--c { display: flex; align-items: flex-end; gap: 10px; padding: 26px; }
.viz--c span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--cyan), var(--violet)); transform-origin: bottom; }
.has-motion .viz--c span { animation: bar 2.4s ease-in-out infinite alternate; }
.viz--c span:nth-child(2n) { animation-delay: -1s !important; }
@keyframes bar { from { transform: scaleY(.6); } }

/* 논문 */
.pub-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.search input, .year select { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
.search input { padding-left: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8' cy='8' r='6' stroke='%2364748B' stroke-width='2' fill='none'/%3E%3Cpath d='M13 13l5 5' stroke='%2364748B' stroke-width='2'/%3E%3C/svg%3E") 14px center / 16px no-repeat; }
.search input:focus, .year select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .15); }
.chips { display: flex; gap: 6px; }
.chip { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--mono-f); font-size: 13px; cursor: pointer; transition: all .2s; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pub-count { margin: 22px 0 10px; color: var(--sub); }
.pub-list { border-top: 1px solid var(--line); counter-reset: p; }
.pub { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); align-items: start; transition: background .2s; }
.pub:hover { background: #fff; }
.has-motion .pub { animation: hero-in .4s ease both; }
.pub__year { font-family: var(--mono-f); color: var(--sub); }
.pub__title { font-weight: 700; color: var(--ink); }
.pub__title mark { background: #FDF0B5; color: inherit; }
.pub__meta { font-size: 14px; color: var(--sub); margin-top: 2px; }
.pub__type { font-family: var(--mono-f); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: #E0F7FA; color: #0E7490; white-space: nowrap; }
.pub__type--j { background: #EDE9FE; color: #5B21B6; }
.pub-empty { padding: 30px 0; color: var(--sub); text-align: center; }

/* 구성원 */
.pi { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 18px; background: var(--dark); color: #CBD5E1; margin-bottom: 30px; }
.pi__photo { border-radius: 14px; overflow: hidden; }
.pi h3 { margin: 6px 0; font-size: 24px; color: #fff; }
.pi .mono { color: var(--cyan); }
.pi .ph { border-color: rgba(61, 217, 235, .6); color: var(--cyan); }
.pi__mail { margin-top: 10px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.role { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.role.is-on { background: var(--violet); color: #fff; border-color: var(--violet); }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.people li { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.people li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .4); }
.people li.is-out { display: none; }
.av { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c); color: var(--dark); font-family: var(--mono-f); font-weight: 600; }
.people small { font-size: 12.5px; color: var(--sub); }

/* 소식 */
.news__grid { display: grid; grid-template-columns: .5fr 1.5fr; gap: 40px; }
.timeline { border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--violet); }
.timeline li:first-child::before { background: var(--violet); box-shadow: 0 0 0 5px rgba(124, 92, 255, .2); }
.timeline time { color: var(--sub); }
.timeline p { color: var(--ink); font-weight: 500; }

/* 모집 */
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checks { margin: 24px 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-weight: 500; color: var(--ink); }
.checks li::before { content: "▸"; color: var(--violet); }
.term { border-radius: 14px; overflow: hidden; background: var(--dark); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .6); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--dark-2); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.term__bar i:nth-child(2) { background: #FEBC2E; } .term__bar i:nth-child(3) { background: #28C840; }
.term__bar span { margin-left: 10px; color: #64748B; }
.term pre { padding: 24px 22px; color: #CBD5E1; font-size: 14px; line-height: 2; white-space: pre-wrap; }
.term .c { color: var(--cyan); }
.term .k { color: var(--violet); }
.has-motion .blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.site-footer { padding: 30px 0; background: var(--dark); color: #64748B; font-size: 13px; }
.site-footer .mono { color: #94A3B8; }
.credit a { display: inline-flex; align-items: center; gap: 6px; color: #fff; vertical-align: middle; }
.credit img { filter: brightness(0) invert(1); }

@media (max-width: 1023.98px) {
  .nav-toggle { display: block; padding: 8px 14px; border: 1px solid #475569; border-radius: 8px; background: none; color: var(--cyan); cursor: pointer; }
  .site-nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; z-index: 45; background: var(--dark); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .site-nav a { font-size: 26px; }
  .topics { grid-template-columns: 1fr; }
  .topics__list { grid-template-columns: repeat(3, 1fr); }
  .topics__panel { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .news__grid, .join__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 62px; }
  .container { width: calc(100% - 40px); }
  .sample-banner__inner { align-items: flex-start; font-size: 12px; }
  .logo small { display: none; }
  .hero { padding: 64px 0 70px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 80px 0; }
  .topics__list { grid-template-columns: 1fr; }
  .topics__panel { padding: 22px; }
  .pub-tools { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 4px; }
  .pub__type { justify-self: start; }
  .pi { grid-template-columns: 1fr; text-align: left; }
  .pi__photo { width: 140px; }
  .people { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
