/* ===== Subculture — temporary portfolio site =====
   Reference: walkround.co.kr (minimal nav, video-first hero, generous whitespace)
   Identity: Subculture brand guide (Pretendard only, brand purple, consistent section rhythm) */

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --dark-1: #1F1B24;
  --dark-2: #221E27;
  --dark-3: #1B1720;
  --ink: #1D1D1F;
  --muted: #6B6B70;
  --canvas: #FFFFFF;
  --parchment: #F6F5F8;
  --hairline: #E4E2E7;
  --accent: #AE31F6;
  --accent-bright: #CB80FF;
  --accent-soft: #F3E7FC;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9C6CE;

  --section-x: clamp(24px, 6vw, 80px);
  --content-max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- shared section rhythm ---------- */
/* every major section shares the same internal order & alignment:
   kicker pill -> title -> subtitle -> body, so the page reads as one system */
.section {
  padding: clamp(64px, 10vw, 120px) var(--section-x);
}
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.section.on-dark .kicker {
  background: rgba(255,255,255,0.08);
  color: var(--accent-bright);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.section-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 48px;
}
.section.on-dark .section-subtitle { color: var(--on-dark-muted); }

.bg-canvas { background: var(--canvas); color: var(--ink); }
.bg-parchment { background: var(--parchment); color: var(--ink); }
.bg-dark-1 { background: var(--dark-1); color: var(--on-dark); }
.bg-dark-2 { background: var(--dark-2); color: var(--on-dark); }
.bg-dark-3 { background: var(--dark-3); color: var(--on-dark); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--section-x);
  background: rgba(31,27,36,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo {
  display: flex;
  align-items: center;
}
.logo img { height: 20px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a { color: var(--on-dark); opacity: 0.72; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--on-dark); margin: 5px 0; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(174,49,246,0.28), transparent 60%),
    radial-gradient(45% 45% at 10% 90%, rgba(203,128,255,0.14), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--section-x);
}
.hero-title {
  font-size: clamp(34px, 6.2vw, 68px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 880px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-bright);
}
.hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--on-dark-muted);
  max-width: 560px;
  line-height: 1.7;
  margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.28);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}
.hero-stat {
  background: rgba(255,255,255,0.03);
  padding: 20px 18px;
}
.hero-stat b {
  display: block;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  margin-bottom: 4px;
}
.hero-stat span {
  font-size: 12px;
  color: var(--on-dark-muted);
  letter-spacing: 0.02em;
}

/* ---------- work / category tiles ---------- */
.work-category {
  padding: clamp(56px, 8vw, 96px) var(--section-x);
  border-bottom: 1px solid var(--hairline);
}
.bg-dark-1.work-category,
.bg-dark-2.work-category,
.bg-dark-3.work-category { border-bottom-color: rgba(255,255,255,0.08); }

.work-head {
  max-width: var(--content-max);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.work-head-text { max-width: 620px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.on-dark .tag { border-color: rgba(255,255,255,0.16); color: var(--on-dark-muted); }

.work-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* two items side by side, centered */
.work-grid--pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  align-items: start;
}

/* masonry-style packing for a set of videos with mixed aspect ratios */
.work-grid--masonry {
  display: block;
  column-count: 3;
  column-gap: 20px;
}
.work-grid--masonry .video-card {
  break-inside: avoid;
  margin-bottom: 20px;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.bg-canvas .video-card, .bg-parchment .video-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.video-embed {
  position: relative;
  width: 100%;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* branded reels: single featured video + supporting copy, so the section stays dense */
.branded-feature {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.branded-feature-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark-muted);
  margin: 0;
}
.branded-feature .equipment-row { border-bottom-color: rgba(255,255,255,0.1); color: var(--on-dark-muted); }
.branded-feature .equipment-row span:last-child { color: var(--on-dark); }
.branded-feature-video { width: 100%; }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid--masonry { column-count: 2; }
  .branded-feature { grid-template-columns: 1fr; }
  .branded-feature-video { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-grid--masonry { column-count: 1; }
  .work-grid--pair { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about-copy p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; }
.equipment-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
}
.equipment-card h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.equipment-list { display: flex; flex-direction: column; gap: 12px; }
.equipment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.equipment-row:last-child { border-bottom: none; padding-bottom: 0; }
.equipment-row span:first-child { color: var(--muted); }
.equipment-row span:last-child { font-weight: 600; text-align: right; }

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

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px;
}
.process-card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 14px;
  display: block;
}
.process-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.process-card p { font-size: 14px; line-height: 1.7; color: var(--on-dark-muted); margin: 0; }

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

/* ---------- contact ---------- */
.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-box .label { font-size: 13px; color: var(--on-dark-muted); margin-bottom: 8px; }
.contact-box .value { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  padding: 32px var(--section-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--on-dark-muted);
}
/* ---------- mobile nav ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .work-head { align-items: flex-start; }
}
