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

:root {
  --content-max-width: 1180px;
  --side-padding: 36px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #1d1d1f;
  background: #f6f6f6;
}

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

.header {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 36px max(var(--side-padding), calc((100% - var(--content-max-width)) / 2 + var(--side-padding)));
  z-index: 10;
}

.header nav {
  display: flex;
  justify-content: flex-end;
  gap: 80px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 780px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-desc {
  position: absolute;
  top: 116px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #666;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  z-index: 3;
}

.hero h1 {
  position: absolute;
  top: 178px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(78px, 12vw, 170px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  font-weight: 900;
  color: #8d35ff;
  z-index: 1;
  -webkit-text-stroke: 1px #8d35ff;
  paint-order: stroke fill;
}

.hero-person {
  position: relative;
  width: min(34vw, 430px);
  margin-top: 140px;
  z-index: 2;
  filter: drop-shadow(0 42px 24px rgba(0, 0, 0, 0.18));
  transition: transform 0.6s ease-out;
}

.hero-person:hover {
  animation: heroFloatPerson 2s ease-in-out infinite;
}

.hero-click {
  position: absolute;
  width: 90px;
  right: 30%;
  top: 36%;
  z-index: 2;
  transition: transform 0.6s ease-out;
}

.hero-click:hover {
  animation: heroFloatClick 2s ease-in-out infinite;
}

@keyframes heroFloatPerson {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-11px);
  }
}

@keyframes heroFloatClick {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

.tag {
  position: absolute;
  left: 37%;
  top: 48%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #8d35ff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  padding: 12px 42px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.28),
    0 8px 32px rgba(31, 38, 135, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  z-index: 4;
}

.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.portfolio-year {
  position: absolute;
  left: max(var(--side-padding), calc((100% - var(--content-max-width)) / 2 + var(--side-padding)));
  bottom: 48px;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 52px var(--side-padding) 44px;
}

.intro h2 {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin-bottom: 24px;
}

.intro h2 strong {
  font-weight: 900;
}

.about-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 64px;
  background: #1f1f1f;
  color: #fff;
  border-radius: 26px;
  padding: 44px;
  overflow: hidden;
}

.profile-wrap {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
}

.profile-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, #1f1f1f 100%);
}

.profile-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  padding: 36px 0;
}

.about-text h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.info-block h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.info-block p {
  display: flex;
  gap: 40px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.info-block span {
  width: 44px;
  flex-shrink: 0;
  color: #999;
  font-weight: 500;
  line-height: 1.75;
}

.line {
  height: 1px;
  background: #555;
  margin: 22px 0 36px;
}

.project {
  margin-top: 48px;
}

.project > h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  height: 240px;
  background: #fff;
  border-radius: 28px;
  padding: 54px 34px;
  overflow: hidden;
  transition: 0.35s ease;
  cursor: pointer;
}

.project-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
  font-weight: 800;
  transition: 0.35s ease;
}

.project-card p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  transition: 0.35s ease;
}

.project-card img {
  position: absolute;
  width: 190px;
  left: 90px;
  bottom: -35px;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: 0.4s ease;
}

.project-card button {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: #1f1f1f;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  transition: 0.35s ease;
}

.project-card button::before,
.project-card button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.project-card button::before {
  width: 18px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transform: translate(-58%, -50%);
}

.project-card button::after {
  width: 8px;
  height: 8px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  border-radius: 1px;
  transform: translate(18%, -50%) rotate(45deg);
}

.project-card:hover {
  background: #8d35ff;
  color: #fff;
}

.project-card:hover img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover button {
  background: #fff;
  color: #1f1f1f;
}

.project-card:hover button::before {
  background: #1f1f1f;
}

.project-card:hover button::after {
  border-top-color: #1f1f1f;
  border-right-color: #1f1f1f;
}

.footer {
  background: #1f1f1f;
  color: #fff;
  padding: 36px max(var(--side-padding), calc((100% - var(--content-max-width)) / 2 + var(--side-padding))) 48px;
}

.footer h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 200px 200px 1fr;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.contact-grid span {
  display: inline-block;
  min-width: 88px;
  color: #888;
  font-weight: 500;
}

@media (max-width: 900px) {
  .header nav {
    gap: 32px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-person {
    width: 70vw;
  }

  .hero-click {
    right: 12%;
  }

  .tag {
    left: 20%;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  :root {
    --side-padding: 18px;
  }

  .header {
    padding: 24px var(--side-padding);
  }

  .header nav {
    gap: 20px;
    font-size: 13px;
  }

  main {
    padding: 40px var(--side-padding);
  }

  .hero h1 {
    top: 200px;
    font-size: 64px;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 0.5px #8d35ff;
  }

  .hero-person {
    width: 92vw;
  }

  .hero-click {
    width: 60px;
  }

  .tag {
    top: 52%;
    left: 10%;
  }

  .portfolio-year {
    left: var(--side-padding);
  }

  .intro h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .about-card {
    padding: 24px;
    border-radius: 20px;
  }

  .profile-wrap {
    height: 360px;
  }

  .about-text h3 {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .info-block p {
    gap: 20px;
    font-size: 13px;
    line-height: 1.7;
  }

  .project-card {
    height: 220px;
    padding: 38px 26px;
  }

  .project-card h3 {
    font-size: 20px;
  }

  .project-card p {
    font-size: 13px;
  }

  .project-card img {
    width: 160px;
    left: 48px;
    bottom: -30px;
  }

  .footer {
    padding: 32px var(--side-padding) 40px;
  }

  .footer h2 {
    font-size: 18px;
    margin-bottom: 22px;
  }

  .contact-grid {
    font-size: 13px;
    gap: 10px;
  }
}
