:root {
  --bg: #050506;
  --panel: #151516;
  --panel-strong: #1f2022;
  --text: #f1eee8;
  --muted: #a6a19a;
  --line: #343133;
  --red: #c32d2d;
  --red-bright: #ee4444;
  --shadow: rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(195, 45, 45, 0.18), transparent 32rem),
    linear-gradient(180deg, #070707 0%, var(--bg) 38%, #0a0a0a 100%);
  color: var(--text);
  font-family: "Inter", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 6, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 12px;
  height: 34px;
  background: var(--red);
  box-shadow: 0 0 24px rgba(195, 45, 45, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav-link {
  position: relative;
  padding: 27px 0 24px;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 118px 0 84px;
  scroll-margin-top: 72px;
}

.hero-section {
  display: flex;
  align-items: center;
  padding-top: 102px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  width: 100%;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  text-wrap: pretty;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(64px, 14vw, 164px);
  line-height: 0.88;
  font-weight: 950;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
  font-weight: 900;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  text-wrap: balance;
}

h4 {
  margin: 28px 0 14px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.hero-subtitle {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
}

.hero-statement {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(25px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 800;
}

.hero-intro,
.section-lead,
.about-copy p,
.contact-card p,
.project-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.76;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-intro {
  max-width: 680px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ghost-button,
.small-button.secondary {
  background: transparent;
  border-color: var(--line);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
  border-color: var(--red-bright);
  background: var(--red-bright);
}

.hero-panel,
.contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(31, 32, 34, 0.96), rgba(12, 12, 13, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px var(--shadow);
}

.hero-panel {
  min-height: 520px;
  padding: 28px;
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px);
  opacity: 0.42;
}

.panel-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 58px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.featured-list {
  position: relative;
  display: grid;
  gap: 14px;
}

.featured-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 18px;
  min-height: 112px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.featured-item:hover {
  transform: translateX(6px);
  border-color: rgba(238, 68, 68, 0.62);
  background: rgba(195, 45, 45, 0.12);
}

.featured-item span {
  grid-row: span 2;
  color: var(--red-bright);
  font-size: 13px;
  font-weight: 900;
}

.featured-item strong {
  font-size: 22px;
}

.featured-item small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.section-lead {
  max-width: 940px;
  margin-bottom: 36px;
}

.project-showcase,
.card-grid,
.about-grid {
  display: grid;
  gap: 22px;
}

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

.project-card,
.level-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover,
.level-card:hover {
  transform: translateY(-6px);
  border-color: rgba(238, 68, 68, 0.55);
  background: var(--panel-strong);
}

.coming-soon-card {
  border-style: dashed;
}

.coming-soon-card .project-media {
  opacity: 0.72;
}

.coming-soon-card .media-placeholder::after {
  content: "COMING SOON";
}

.coming-soon-card .level-design-panel {
  opacity: 0.86;
}

.level-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.level-visual {
  display: grid;
  align-content: start;
  gap: 0;
  background: #0d0d0e;
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d0d0e;
  box-shadow: inset 0 0 0 1px rgba(241, 238, 232, 0.08);
}

.level-card .project-media {
  aspect-ratio: 16 / 9;
}

.project-media img,
.project-media video,
.project-media iframe,
.media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media video {
  display: block;
  background: #050506;
  object-fit: contain;
}

.project-media iframe {
  display: block;
  border: 0;
  background: #050506;
  filter: saturate(0.96) contrast(1.04);
}

.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(195, 45, 45, 0.18), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 54px),
    #111112;
  color: var(--muted);
}

.media-placeholder::before {
  position: absolute;
  inset: 9%;
  content: "";
  border: 1px solid rgba(241, 238, 232, 0.16);
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(195, 45, 45, 0.18) 24% 28%, transparent 28% 100%),
    linear-gradient(180deg, transparent 0 42%, rgba(241, 238, 232, 0.08) 42% 45%, transparent 45% 100%);
  clip-path: polygon(0 12%, 76% 0, 100% 32%, 86% 100%, 18% 88%);
}

.media-placeholder::after {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 9px;
  content: "MEDIA SLOT";
  color: rgba(241, 238, 232, 0.72);
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(241, 238, 232, 0.12);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.project-media[data-project-id="n-mart"] .media-placeholder {
  background:
    linear-gradient(135deg, rgba(195, 45, 45, 0.24), transparent 32%),
    radial-gradient(circle at 70% 30%, rgba(241, 238, 232, 0.08), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 44px),
    #101011;
}

.project-media[data-project-id="n-mart"] .media-placeholder::before {
  inset: 11% 8% 18%;
  border-color: rgba(238, 68, 68, 0.34);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(241, 238, 232, 0.12) 18% 21%, transparent 21% 48%, rgba(195, 45, 45, 0.22) 48% 53%, transparent 53% 100%),
    linear-gradient(180deg, transparent 0 28%, rgba(241, 238, 232, 0.1) 28% 31%, transparent 31% 62%, rgba(241, 238, 232, 0.08) 62% 65%, transparent 65% 100%);
  clip-path: polygon(5% 8%, 72% 3%, 94% 22%, 88% 80%, 62% 96%, 12% 84%);
}

.project-media[data-project-id="n-mart"] .media-placeholder::after {
  content: "UE5 BLOCKOUT";
}

.media-placeholder span {
  position: relative;
  margin-bottom: 8px;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.media-placeholder strong {
  position: relative;
  color: var(--text);
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.04;
  text-wrap: balance;
}

.level-design-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(195, 45, 45, 0.1), transparent 42%),
    #101011;
}

.panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  min-height: 72px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.flow-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.focus-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid rgba(238, 68, 68, 0.24);
  background: rgba(195, 45, 45, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.project-body,
.level-content {
  padding: 26px;
}

.level-content {
  padding: clamp(28px, 4vw, 50px);
}

.project-type,
.project-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.project-subtitle {
  margin-bottom: 18px;
  color: var(--red-bright);
  line-height: 1.45;
}

.project-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.project-meta.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-meta div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-meta dt {
  margin-bottom: 6px;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 900;
}

.project-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  word-break: keep-all;
  text-wrap: pretty;
}

.no-break {
  white-space: nowrap;
}

.highlight-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.highlight-list.large li {
  font-size: 15px;
}

.highlight-list li::before {
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 2px;
  content: "";
  background: var(--red-bright);
}

.project-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.about-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: start;
}

.about-copy {
  padding-right: clamp(0px, 4vw, 58px);
}

.tag-cloud {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skill-tag {
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
}

.document-groups {
  display: grid;
  gap: 44px;
}

.document-group h3 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.document-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  min-height: 214px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.document-card:hover {
  transform: translateY(-5px);
  border-color: rgba(238, 68, 68, 0.52);
  background:
    linear-gradient(145deg, rgba(195, 45, 45, 0.1), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
}

.document-icon {
  position: relative;
  width: 70px;
  height: 92px;
  margin-top: 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 14%, transparent 14%),
    linear-gradient(135deg, #3f4652, #15181e 64%);
  border: 1px solid rgba(241, 238, 232, 0.18);
  border-radius: 5px 8px 8px 5px;
  box-shadow: 10px 12px 28px rgba(0, 0, 0, 0.35);
  transform: rotate(-8deg);
}

.document-icon::before {
  position: absolute;
  inset: 15px 16px;
  content: "";
  border: 1px solid rgba(238, 68, 68, 0.58);
  background:
    linear-gradient(45deg, transparent 0 45%, rgba(238, 68, 68, 0.42) 45% 55%, transparent 55% 100%);
}

.document-icon::after {
  position: absolute;
  left: 9px;
  top: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: rgba(238, 68, 68, 0.68);
}

.document-body {
  min-width: 0;
}

.document-body h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.34;
  text-wrap: balance;
}

.document-body p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
  word-break: keep-all;
}

.document-body .project-tags {
  margin-bottom: 16px;
}

.small-button.disabled {
  width: fit-content;
  color: rgba(241, 238, 232, 0.48);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.contact-section {
  display: flex;
  align-items: center;
  min-height: 82vh;
}

.contact-card {
  width: 100%;
  padding: clamp(30px, 6vw, 70px);
}

.contact-card h2 {
  margin-bottom: 4px;
}

.contact-role {
  color: var(--red-bright);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.contact-lines a {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.notice {
  margin-top: 28px;
  color: #d3c7bd;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid,
  .level-card,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

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

  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 740px) {
  .site-header {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    display: none;
    width: 100%;
    padding: 12px 20px 20px;
    background: rgba(5, 5, 6, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: grid;
    gap: 0;
  }

  .nav-link {
    padding: 16px 0;
  }

  .nav-link::after {
    bottom: 10px;
  }

  .section {
    width: min(100% - 28px, var(--max));
    min-height: auto;
    padding: 90px 0 56px;
    scroll-margin-top: 64px;
  }

  .hero-section {
    min-height: 100vh;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-meta.split {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .card-actions,
  .contact-lines {
    display: grid;
  }

  .primary-button,
  .ghost-button,
  .small-button,
  .contact-lines a {
    width: 100%;
  }

  .project-body,
  .level-content {
    padding: 22px;
  }

  .level-design-panel {
    padding: 18px;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  .document-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 18px;
  }

  .document-icon {
    width: 56px;
    height: 74px;
  }
}
