:root {
  --bg: #121212;
  --bg-raised: #1a1a1a;
  --text: #fafafa;
  --text-muted: rgba(250, 250, 250, 0.6);
  --line: rgba(250, 250, 250, 0.14);
  --accent: #23533c;
  --accent-soft: rgba(35, 83, 60, 0.28);
  --max-width: 1120px;

  --font-display: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "Space Grotesk", "Pretendard Variable", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

h1, h2 { text-wrap: balance; font-family: var(--font-display); }

/* Recurring brand mark: echoes the square+dot in the Q.MEDIA logo */
.mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img { height: 40px; width: auto; object-fit: contain; display: block; filter: invert(1); }

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow { justify-content: center; }

.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-mark {
  position: absolute;
  right: -6%;
  bottom: -18%;
  width: 44%;
  min-width: 360px;
  filter: invert(1);
  opacity: 0.06;
  pointer-events: none;
}

.btn {
  margin-top: 40px;
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: transparent;
  border-color: var(--text);
}

/* Sections */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-raised);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  max-width: 46ch;
  font-size: 16px;
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  gap: 22px;
  padding-top: 4px;
}

.info-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  font-size: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 2px;
}

.info-value a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Works */
.works-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.works-grid li:last-child {
  grid-column: 1 / -1;
}

.work-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
  padding: 30px 28px;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.work-arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.work-card:hover {
  background: var(--accent-soft);
  padding-left: 34px;
}

.work-card:hover .work-arrow {
  color: var(--accent);
  transform: translateX(0);
  opacity: 1;
}

/* Contact */
.contact-text {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-box {
  display: grid;
  gap: 20px;
  max-width: 46ch;
}

.contact-box p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-box strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-box a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  background: var(--bg-raised);
  color: var(--text-muted);
  padding: 40px 0;
}

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

.footer-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.7;
}

.footer-inner p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 0; }
  .info-item { grid-template-columns: 1fr; gap: 6px; }
  .hero-mark { opacity: 0.05; }
}

@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
