/* =========================================================
   Lounge Zero — AI Creative Studio Portfolio
   공용 스타일시트 (index + 작품 상세 페이지 공용)
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-gradient:
    radial-gradient(circle at 50% -15%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(circle at 100% 10%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(180deg, #141414 0%, #0a0a0a 55%);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.6);
  --text: #ffffff;
  --text-soft: #e6e6e6;
  --text-muted: #a3a3a3;
  --accent-1: #ffffff;
  --accent-2: #cfcfcf;
  --accent-grad: #000000;
  --radius-card: 22px;
  --radius-section: 36px;
  --radius-pill: 999px;
  --font-display: 'Space Grotesk', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  background: var(--bg-gradient);
  background-color: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.logo span {
  color: var(--text-muted);
  font-weight: 400;
}
.logo-mark {
  width: 26px;
  height: 26px;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav .btn-nav {
  padding: 0.3rem 1.1rem;
  background: var(--text);
  color: #000000;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.nav .btn-nav:hover { opacity: 0.9; color: #000000; }
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: width 0.2s;
}
.menu-btn span:nth-child(1) { width: 26px; }
.menu-btn span:nth-child(2) { width: 26px; }
.menu-btn span:nth-child(3) { width: 16px; }
.menu-btn:hover span { width: 26px; }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.55s;
}
.menu-overlay.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}
.menu-overlay-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 3rem 4rem;
  flex: 1;
  gap: 3rem;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.menu-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.2s;
}
.menu-nav-link:hover { color: var(--text-muted); }
.menu-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
.menu-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.menu-social:hover { color: var(--text); }
.menu-email {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.menu-email:hover { color: var(--text); }
.menu-close {
  position: absolute;
  top: 1.4rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: opacity 0.2s;
}
.menu-close:hover { opacity: 0.6; }

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.hero-tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-tab {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-tab.active { color: var(--text); }
a.hero-tab:hover { color: var(--text); }
.hero-tab-sep { color: var(--border-strong); font-weight: 400; }
.hero-tab {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.hero-panel[data-panel="contact"] {
  margin-top: 2rem;
  width: 100%;
  max-width: 480px;
}
.hero-panel .contact-form { margin-top: 0; }
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-logo-mark {
  width: 52px;
  height: 52px;
}
.hero-brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.hero-brand-text span {
  color: var(--text-muted);
  font-weight: 400;
}
.hero-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-weight: 400;
}

/* When the hero's Contact tab is active, hide everything below the
   hero (and the footer) so it's a full screen swap, not a scroll. */
body.hero-contact-active .section,
body.hero-contact-active .footer {
  display: none;
}
body.hero-contact-active .hero { min-height: calc(100vh - 72px); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 1.25rem;
}
.hero .sub {
  max-width: 480px;
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 2.25rem;
}
.hero .cta {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  background: var(--accent-grad);
  color: var(--text);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.hero .cta:hover { transform: scale(1.03); opacity: 0.92; }

/* ---------- Section shell ---------- */
.section {
  padding: 4.5rem 2rem;
  max-width: 100%;
}
.section-head { margin-bottom: 2rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.section-title-lg {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 460px;
  font-size: 0.95rem;
}

/* ---------- Filter bar (text tabs) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.9rem;
}
.filter-pill {
  padding: 0 0 0.6rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -0.9rem;
}
.filter-pill:hover { color: var(--text); }
.filter-pill.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ---------- Work grid & cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  row-gap: 0;
}
.work-card-wide {
  grid-column: auto;
}
.work-card-wide .work-thumb,
.work-card-tall .work-thumb { height: 280px; }
.work-card {
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
}
.work-card .work-thumb {
  border-radius: 0;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.work-card .work-thumb span {
  display: inline-block;
  transition: transform 0.35s ease;
}
.work-thumb-img {
  width: 40%;
  max-width: 110px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}
.work-card:hover .work-thumb-img { transform: scale(1.06); }
.work-card:hover { transform: translateY(-3px); }
.work-card:hover .work-thumb span { transform: scale(1.12); }
.work-thumb {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  background: transparent;
}
.work-info { padding: 1.1rem 0.1rem 2rem; }
.work-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.work-card-wide .work-info h3 { font-size: 1.35rem; }
.work-award {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.work-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.work-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}

/* category thumbnail colors (no real photography yet, so each
   category gets a distinct gradient block instead of a flat photo) */
.work-thumb.cat-app,
.work-thumb.cat-web,
.work-thumb.cat-film,
.work-thumb.cat-ad,
.work-thumb.cat-comic { background: transparent; }

/* ---------- About / tools ---------- */
.about-text {
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 2rem;
  font-size: 0.98rem;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tech-stack span {
  padding: 0.55rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ---------- Contact ---------- */
.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--border-strong);
}
.contact-form textarea { min-height: 120px; }
.contact-form button {
  align-self: flex-start;
  padding: 0.85rem 2rem;
  background: var(--accent-grad);
  color: var(--text);
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.contact-form button:hover { transform: scale(1.02); opacity: 0.92; }
.form-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-note.success { color: var(--text-soft); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.footer .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer .brand span {
  color: var(--text-muted);
  font-weight: 400;
}
.footer-logo-mark {
  width: 22px;
  height: 22px;
}
.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact:hover { color: var(--text); }

/* =========================================================
   작품 상세 페이지 (works/*.html)
   ========================================================= */
.detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--text); }
.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.detail-meta-row .work-tag { display: inline-block; margin-bottom: 0; }
.detail-meta-row .year { color: var(--text-muted); font-size: 0.85rem; }
.detail-award {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}
.detail-links a {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
}
.detail-links a:hover { border-color: var(--border-strong); color: var(--text); }
.detail-links a.primary { background: var(--text); color: #000000; border-color: transparent; }
.detail-links a.primary:hover { opacity: 0.9; color: #000000; }
.detail h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.detail-hero {
  height: 320px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 2.25rem;
  position: relative;
  overflow: hidden;
}
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
}
.detail-hero-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}
.detail-body p {
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}
.detail-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.25rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.detail-info div h5 {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.detail-info div p {
  font-size: 0.9rem;
  color: var(--text-soft);
}
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.detail-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.detail-nav a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-info { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card-wide { grid-column: auto; }
  .work-card-wide .work-thumb,
  .work-card-tall .work-thumb { height: 220px; }
  .work-card-wide .work-info h3 { font-size: 1.15rem; }
  .header { padding: 1rem 1.25rem; }
  .nav { gap: 1rem; }
  .nav a:not(.btn-nav) { font-size: 0.82rem; }
}
