﻿:root {
  --bg: #f7f6f2;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #0f1114;
  --muted: #6b6f76;
  --accent: #c46524;
  --accent-2: #e7c3a1;
  --border: rgba(15, 17, 20, 0.14);
  --shadow: 0 18px 40px rgba(15, 17, 20, 0.12);
  --shadow-soft: 0 8px 16px rgba(15, 17, 20, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f6f2 0%, #f1efea 100%);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -0.02em;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92vw);
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 5;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 17, 20, 0.08);
  z-index: 3;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  background: rgba(247, 246, 242, 0.96);
  box-shadow: 0 10px 22px rgba(15, 17, 20, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand-title {
  font-weight: 700;
}

.nav {
  display: none;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(196, 101, 36, 0.22);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(196, 101, 36, 0.24);
}

.btn:hover::after {
  opacity: 1;
}

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(15, 17, 20, 0.18);
  box-shadow: none;
}

.hero {
  padding: 90px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -240px;
  background: radial-gradient(circle, rgba(196, 101, 36, 0.16), transparent 70%);
  filter: blur(12px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(231, 195, 161, 0.28), transparent 70%);
  filter: blur(14px);
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4rem);
  margin: 12px 0 16px;
  letter-spacing: -0.04em;
}

.hero-title {
  font-weight: 700;
  color: #0b0d10;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.strengths {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.strengths li {
  background: #ffffff;
  border: 1px solid rgba(15, 17, 20, 0.12);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: none;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(239, 235, 230, 0.9));
  border: 1px solid rgba(15, 17, 20, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: 46px;
  top: 48px;
  background: radial-gradient(circle at 30% 30%, #ffffff, rgba(231, 195, 161, 0.9) 45%, rgba(15, 17, 20, 0.08) 72%);
  box-shadow: 0 18px 40px rgba(196, 101, 36, 0.2);
  z-index: 2;
}

.hero-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: 14px;
  top: 24px;
  border: 1px solid rgba(196, 101, 36, 0.3);
  z-index: 3;
}

.hero-gridlines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 17, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 20, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.3;
  z-index: 1;
}

.hero-console {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
  box-shadow: none;
  border: 1px solid rgba(15, 17, 20, 0.14);
  z-index: 4;
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.console-line.accent {
  color: var(--accent);
}

.section {
  padding: 78px 0;
}

.section-alt {
  background: #f1eee8;
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  border: 1px solid rgba(15, 17, 20, 0.16);
  background: #ffffff;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 17, 20, 0.22);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.project-grid {
  display: grid;
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid rgba(15, 17, 20, 0.16);
  padding: 20px;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 101, 36, 0.5);
  box-shadow: 0 10px 20px rgba(15, 17, 20, 0.12);
}

.media {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(228, 228, 228, 0.8));
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid rgba(15, 17, 20, 0.12);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(15, 17, 20, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.empty-state {
  color: var(--muted);
  margin-top: 16px;
}

.project-detail-page {
  padding: 72px 0 80px;
}

.detail-header {
  display: grid;
  gap: 24px;
  align-items: center;
}

.detail-media {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(228, 228, 228, 0.9));
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin: 28px 0 16px;
}

.meta-card {
  background: var(--surface);
  border: 1px solid rgba(15, 17, 20, 0.16);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  box-shadow: none;
}

.meta-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  gap: 20px;
}

.detail-section {
  background: var(--surface);
  border: 1px solid rgba(15, 17, 20, 0.16);
  border-radius: 12px;
  padding: 20px;
  box-shadow: none;
}

.detail-section h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.stack-list {
  display: grid;
  gap: 6px;
}

.notes {
  margin-top: 24px;
}

.detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-grid {
  display: grid;
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid rgba(15, 17, 20, 0.16);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(15, 17, 20, 0.12);
}

.service-label {
  font-weight: 700;
  color: var(--muted);
  margin-bottom: -6px;
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.contact {
  background: #f1eee8;
}

.contact-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.contact-email {
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  border: 1px solid rgba(15, 17, 20, 0.16);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 17, 20, 0.18);
  font-size: 1rem;
}

.contact-form input:focus {
  outline: none;
  border-color: rgba(196, 101, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 101, 36, 0.12);
}

.site-footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-header {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .detail-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .hero-visual {
    min-height: 260px;
  }

  .hero-orb {
    width: 180px;
    height: 180px;
    right: 24px;
    top: 30px;
  }

  .hero-ring {
    width: 230px;
    height: 230px;
    right: -10px;
    top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .project-card,
  .service-card,
  .reveal {
    transition: none;
  }
}
