
:root {
  --bg: #060816;
  --bg-soft: #0b1127;
  --panel: rgba(12, 18, 38, 0.72);
  --panel-strong: rgba(9, 14, 30, 0.88);
  --text: #eef3ff;
  --muted: #b7c2de;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7c5cff;
  --accent-2: #36d1dc;
  --accent-3: #ff8a5b;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.35), transparent 30%),
    radial-gradient(circle at top right, rgba(54,209,220,.22), transparent 28%),
    radial-gradient(circle at 50% 120%, rgba(255,138,91,.16), transparent 35%),
    linear-gradient(180deg, #040611 0%, #08101f 38%, #050814 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video, iframe { display: block; width: 100%; border: 0; }
body::before,
body::after {
  content: '';
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
  z-index: 0;
}
body::before { top: -10rem; left: -12rem; background: #7c5cff; }
body::after { right: -10rem; bottom: -12rem; background: #36d1dc; }
.site-shell { position: relative; z-index: 1; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6,8,22,.84), rgba(6,8,22,.52));
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: clamp(110px, 14vw, 180px);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.35));
}
.brand-copy strong { display: block; font-size: .82rem; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
.brand-copy span { display: block; font-size: .95rem; color: rgba(255,255,255,.92); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.ghost-btn, .primary-btn, .menu-btn {
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px;
  background: rgba(255,255,255,.04); color: var(--text);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent), #fe9400);
  border-color: rgba(255,255,255,.12);
  color: white;
  box-shadow: 0 14px 34px rgba(124,92,255,.28);
}
.ghost-btn:hover, .primary-btn:hover, .menu-btn:hover { transform: translateY(-2px); }
.hero { padding: 56px 0 32px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 28px; align-items: stretch;
}
.hero-panel, .hero-mosaic, .toolbar, .summary-band, .cta-panel, .drawer-panel {
  background: linear-gradient(180deg, rgba(16,21,42,.85), rgba(8,12,28,.74));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-panel { padding: clamp(24px, 4vw, 40px); overflow: hidden; position: relative; }
.hero-panel::after {
  content: ''; position: absolute; inset: auto -8% -30% auto; width: 16rem; height: 16rem;
  background: radial-gradient(circle, rgba(54,209,220,.22), transparent 65%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; color: #d7def7; font-size: .9rem; letter-spacing: .04em;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--accent-2), #6effc7); box-shadow: 0 0 18px rgba(54,209,220,.55); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(2rem, 4vw, 4.35rem); line-height: 1.02; letter-spacing: -.04em; }
.hero p.lead { margin: 0; max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stat-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 30px; }
.stat-card {
  padding: 18px; border-radius: 20px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.stat-card strong { display: block; font-size: clamp(1.5rem, 2vw, 2.2rem); margin-bottom: 4px; }
.stat-card span { color: var(--muted); font-size: .9rem; }
.hero-mosaic { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; min-height: 100%; }
.hero-tile {
  position: relative; min-height: 200px; overflow: hidden; border-radius: 20px; margin: 0;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
}
.hero-tile img { height: 100%; object-fit: cover; transition: transform .7s ease; }
.hero-tile:hover img { transform: scale(1.05); }
.hero-tile figcaption {
  position: absolute; inset: auto 12px 12px 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(6,8,20,.1), rgba(6,8,20,.74));
  color: #f6f8ff; font-size: .92rem; font-weight: 600;
}
.summary-band {
  padding: 18px 20px; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.summary-band p { margin: 0; color: var(--muted); }
.toolbar { position: sticky; top: 86px; z-index: 30; padding: 18px; margin: 22px 0 24px; }
.toolbar-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.toolbar-title strong { display: block; font-size: 1.05rem; }
.toolbar-title span { color: var(--muted); font-size: .92rem; }
.searchbox {
  display: inline-flex; align-items: center; gap: 10px; min-width: min(100%, 320px);
  padding: 12px 16px; background: rgba(222, 0, 55, 0.3);
  border-radius: 999px; border: 1px solid rgba(255, 0, 81, 0.06);
}
.searchbox input {
  width: 100%; background: transparent; color: var(--text); border: 0; outline: 0;
}
.searchbox input::placeholder { color: #8f9bbc; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.filter-chip {
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); color: #eaf0ff;
  border-radius: 999px; padding: 10px 14px; cursor: pointer; transition: .25s ease;
}
.filter-chip span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 8px;
  border-radius: 999px; background: rgba(255,255,255,.09); color: var(--muted); font-size: .8rem; padding: 0 6px;
}
.filter-chip:hover, .filter-chip.is-active {
  border-color: rgba(124,92,255,.4);
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(54,209,220,.12));
  box-shadow: 0 12px 30px rgba(124,92,255,.15);
}
.filter-chip.is-active span { color: white; background: rgba(255,255,255,.16); }
.portfolio-section { padding-bottom: 48px; }
.project-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px;
}
.project-card {
  grid-column: span 4; display: flex; flex-direction: column; overflow: hidden; position: relative;
  background: linear-gradient(180deg, rgba(15,20,40,.88), rgba(6,10,24,.82));
  border: 1px solid rgba(255,255,255,.08); border-radius: 24px; box-shadow: var(--shadow);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,.34); box-shadow: 0 28px 70px rgba(0,0,0,.38); }
.project-card.is-hidden { display: none; }
.project-media { position: relative; background: #0b0f1d; aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img, .project-media video, .project-media iframe {
  width: 100%; height: 100%; object-fit: cover; background: #090d18;
}
.media-iframe { aspect-ratio: 9 / 16; }
.media-video { aspect-ratio: 4 / 3; }
.project-media::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); pointer-events: none;
}
.card-zoom {
  position: absolute; right: 14px; top: 14px; z-index: 2; width: 42px; height: 42px;
  display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(6,9,22,.66); color: white; backdrop-filter: blur(10px); cursor: pointer;
}
.project-body { padding: 18px; display: grid; gap: 10px; }
.project-badge {
  width: fit-content; padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  color: #e8eeff; background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.22);
}
.project-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.project-body p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.project-body p.muted { color: #8f9bbc; }
.cta-panel {
  margin: 18px 0 72px; padding: clamp(22px, 3vw, 30px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
}
.cta-panel h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2vw, 2.2rem); }
.cta-panel p { margin: 0; color: var(--muted); max-width: 60ch; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-footer {
  padding: 0 0 46px;
}
.footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 0; color: var(--muted); border-top: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: #dbe4ff; }
.backtop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,26,.76); color: white; backdrop-filter: blur(14px); box-shadow: var(--shadow);
  display: inline-grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .28s ease;
}
.backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.result-meta { color: var(--muted); font-size: .92rem; }
.drawer {
  position: fixed; inset: 0; z-index: 80; display: none;
}
.drawer.is-open { display: block; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(1,4,10,.52); backdrop-filter: blur(6px);
}
.drawer-panel {
  position: absolute; top: 0; right: 0; width: min(420px, 92vw); height: 100%;
  padding: 22px; border-radius: 32px 0 0 32px; overflow-y: auto;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-close {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: white; cursor: pointer;
}
.drawer-nav { display: grid; gap: 8px; }
.drawer-nav a, .drawer-section {
  padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.drawer-nav a:hover { border-color: rgba(124,92,255,.32); background: rgba(124,92,255,.08); }
.drawer-section { color: #9aa8cf; font-weight: 700; }
.modal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(1,4,10,.84); backdrop-filter: blur(14px);
}
.modal.is-open { display: flex; }
.modal-inner {
  width: min(1120px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: rgba(8,12,24,.92); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; box-shadow: var(--shadow);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1rem; }
.modal-close {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: white; cursor: pointer;
}
.modal-body { padding: 18px; }
.modal-body img { border-radius: 18px; max-height: 75vh; object-fit: contain; background: #0b1020; }
.reveal {
  opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--stagger) * 28ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.empty-state {
  display: none; padding: 36px 22px; text-align: center; color: var(--muted);
  border: 1px dashed rgba(255,255,255,.1); border-radius: 24px; margin-top: 16px; background: rgba(255,255,255,.02);
}
.empty-state.is-visible { display: block; }
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .project-card { grid-column: span 6; }
}
@media (max-width: 860px) {
  .topbar-inner { padding: 12px 0; }
  .brand-copy { display: none; }
  .toolbar { top: 76px; }
  .stat-list { grid-template-columns: 1fr; }
  .project-card { grid-column: span 12; }
  .hero-mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .summary-band { align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 20px), var(--max)); }
  .hero { padding-top: 30px; }
  .hero-panel, .hero-mosaic, .toolbar, .summary-band, .cta-panel, .drawer-panel { border-radius: 22px; }
  .hero-mosaic { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  .hero-tile { min-height: 140px; border-radius: 16px; }
  .toolbar { padding: 14px; }
  .searchbox { min-width: 100%; }
  .topbar-actions .ghost-btn { display: none; }
  .project-body { padding: 16px; }
  .footer-meta { padding-bottom: 8px; }
}

.cta-panel {background: linear-gradient(135deg, #be1c00b4, #100201);}