:root {
  --pink: #ff2684;
  --navy: #000b30;
  --soft-gray: #eeeeee;
  --mid-gray: #999999;
  --dark-gray: #666666;
  --page-pad: clamp(24px, 5.208vw, 100px);
}

* {
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  a,
  button,
  input,
  textarea,
  select,
  [contenteditable="true"],
  * {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  width: 60px;
  height: 60px;
  background: url('re_img/커스텀커서.png') no-repeat center / contain;
  pointer-events: none;
  z-index: 99999;
  top: 0;
  left: 0;
  transform: translate(-15%, -10%);
  transition: transform 80ms ease-out;
}

@media (max-width: 1024px) {
  * { cursor: auto; }
  .custom-cursor { display: none; }
}

.custom-cursor {
  --cursor-size: 30px;
  width: var(--cursor-size);
  height: var(--cursor-size);
  margin-top: calc(var(--cursor-size) / -2);
  margin-left: calc(var(--cursor-size) / -2);
  border-radius: 50%;
  background: var(--pink);
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0) scale(1);
  transition: opacity 60ms linear;
  will-change: transform;
}

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  * {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.header {
  width: 100%;
  min-height: 70px;
  padding: 10px clamp(10px, 7.8125vw, 150px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255, 255, 255, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.site,
.about-page,
.work-page,
.contact-page {
  padding-top: 90px;
}

.work-page {
  --work-banner-height: 40px;
  padding-top: calc(70px + var(--work-banner-height));
}

.work-top-banner {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: var(--work-banner-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.work-page .header {
  top: var(--work-banner-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand__name {
  color: var(--pink);
  font-size: clamp(18px, 1.46vw, 24px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.site-nav,
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 40px);
}

.site-nav a,
.nav a {
  position: relative;
  display: inline-block;
  color: var(--navy);
  font-size: clamp(15px, 1.04vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.05em;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav a::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: var(--pink);
  line-height: inherit;
  letter-spacing: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.nav a.is-active {
  color: var(--pink);
}

.nav a:hover {
  color: transparent;
}

.nav a:hover::after {
  opacity: 1;
}

.nav .nav__cta {
  padding: 8px 16px;
  background: var(--pink);
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.nav .nav__cta::after {
  content: none;
}

.nav .nav__cta:hover {
  background: var(--navy);
  color: #fff;
}

.site-footer,
.footer {
  padding: 120px clamp(24px, 7.8125vw, 150px) 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--navy);
}

.site-footer p,
.footer p {
  margin: 0;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer strong,
.footer strong {
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.floating-kakao {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 50%;
  background: #fee500;
  color: #3a1d1d;
  text-decoration: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

.floating-kakao__icon {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  background-image: url("https://cdn.imweb.me/upload/S2026040130027df76b3c0/78f63d4c811e0.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.floating-kakao__label {
  max-width: 0;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0;
  color: #3a1d1d;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .floating-kakao {
    transition: width 300ms ease, border-radius 300ms ease, filter 220ms ease;
  }

  .floating-kakao__label {
    transition: opacity 150ms ease 120ms, max-width 300ms ease, padding 300ms ease;
  }

  .floating-kakao:hover {
    width: 128px;
    border-radius: 999px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
  }

  .floating-kakao:hover .floating-kakao__label {
    max-width: 70px;
    padding-left: 14px;
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  :root {
    --page-pad: 32px;
  }

  .site-header,
  .header {
    padding-right: 32px;
    padding-left: 32px;
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
  }

  .brand__mark {
    width: 24px;
    height: 24px;
  }

  .brand__name {
    font-size: 24px;
  }

  .site-footer,
  .footer {
    padding: 60px 150px 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 24px;
  }

  .nav .nav__cta {
    display: none;
  }

  .floating-kakao {
    right: 16px;
    bottom: 50px;
    width: 50px;
    height: 50px;
  }

  .floating-kakao__icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .work-page {
    padding-top: calc(100px + var(--work-banner-height));
  }

  .site-header,
  .header {
    min-height: 100px;
    padding: 14px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: rgba(255, 255, 255, 1);
  }

  .brand {
    justify-content: center;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .brand__name {
    display: none;
  }

  .site-nav,
  .nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }

  .site-nav a,
  .nav a {
    color: var(--navy);
  font-size: clamp(15px, 1.04vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.05em;
  }

  .site-footer,
  .footer {
    padding: 30px 24px 10px;
  }

  .site-footer p,
  .footer p {
    font-size: 10px;
  }
}
