: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: 90px;
  padding: 24px clamp(24px, 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;
}

.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 {
  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;
}

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

.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;
}

@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;
  }

  .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;
  }
}
