:root {
  --pink: #ff2684;
  --navy: #000b30;
  --gray-bg: #eeeeee;
  --mid-gray: #999999;
  --soft-gray: #cccccc;
  --page-pad: clamp(24px, 7.8125vw, 150px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: "Inter", "Inter", sans-serif;
}

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

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

.site {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  padding-top: 0;
}

.hero {
  position: relative;
  width: 100%;
  height: 178vh;
  display: block;
  overflow: clip;
  background: var(--gray-bg);
  --orb-size: clamp(720px, 105vw, 2000px);
  --orb-y: 0px;
  --orb-pink-opacity: 1;
}

.hero__sticky {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  padding: 0 var(--page-pad);
  overflow: hidden;
  background: var(--gray-bg);
}

.hero.hero--released .hero__sticky {
  position: absolute;
  inset: auto 0 0;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("./re_img/히어로배경.png");
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__halo {
  display: none;
}

.hero__orb {
  position: absolute;
  top: calc(var(--orb-size) * -0.86);
  left: 50%;
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--pink);
  background-image: url("./re_img/샘플1.jpg");
  background-position: bottom center;
  background-size: 170% auto;
  background-repeat: no-repeat;
  transform: translateX(-50%) translateY(var(--orb-y));
  z-index: 1;
  will-change: transform;
}

.hero__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  opacity: var(--orb-pink-opacity);
  transition: opacity 80ms linear;
}

.hero__logo {
  position: absolute;
  inset: 0 var(--page-pad);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.hero__mark {
  width: clamp(112px, 10.2vw, 196px);
  height: clamp(112px, 10.2vw, 196px);
}

.hero h1 {
  margin: 0;
  color: var(--pink);
  font-size: clamp(56px, 5.2vw, 100px);
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.hero__marquee {
  position: absolute;
  left: -105px;
  bottom: -61px;
  width: 2104px;
  display: flex;
  gap: 10px;
  color: #f9f9f9;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.statement {
  min-height: 600px;
  padding: 150px var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--gray-bg);
  text-align: center;
  color: var(--pink);
}

.statement h2,
.statement p {
  margin: 0;
}

.statement h2 {
  font-size: clamp(40px, 4.17vw, 80px);
  font-weight: 900;
  line-height: 1.3;
}

.statement p {
  font-size: clamp(22px, 2.08vw, 32px);
  font-weight: 500;
  line-height: 1.3;
}

.word-strip {
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--gray-bg);
}

.word-strip p {
  width: 2800px;
  margin: 0;
  font-size: clamp(96px, 15.625vw, 300px);
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  animation: word-scan 4s ease-in-out infinite alternate;
  will-change: transform;
}

.word-strip--pink p {
  color: var(--pink);
}

.word-strip--gray {
  justify-content: flex-start;
  padding-bottom: 60px;
}

.word-strip--gray p {
  color: var(--soft-gray);
  text-align: right;
  animation-direction: alternate-reverse;
}

@keyframes word-scan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw - 100%));
  }
}

.section-heading {
  padding: 120px var(--page-pad) 50px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(34px, 2.3vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.section-heading p {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.portfolio-grid {
  width: min(1620px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  align-items: end;
}

.portfolio-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
  will-change: transform;
}

.portfolio-column img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
}

.center-action {
  padding: 80px var(--page-pad);
  display: flex;
  justify-content: center;
}

.outline-button {
  min-width: 158px;
  min-height: 46px;
  padding: 10px 29px 10px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.3;
  transition: background 800ms ease, color 800ms ease;
}

.outline-button:hover {
  background: var(--navy);
  color: #fff;
}

.why {
  min-height: 625px;
  padding: 80px var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.why h2,
.why h3,
.why p {
  margin: 0;
}

.why h2 {
  font-size: clamp(44px, 4.17vw, 80px);
  font-weight: 900;
  line-height: 1.4;
}

.why__question,
.why__answer {
  width: min(884px, 100%);
  text-align: left;
}

.why h3 {
  width: min(884px, 100%);
  font-size: clamp(26px, 3.9vw, 60px);
  font-weight: 700;
  line-height: 1.4;
  text-align: ceter;
}

.why p {
  width: min(884px, 100%);
  padding: 12px 0px;
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.why__question {
  color: #666666;
}

.why__answer {
  color: var(--navy);
}

.card-rail {
  padding: 80px 0;
  overflow: hidden;
}

.card-rail__track {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.card-rail__track div {
  width: 350px;
  height: 450px;
  flex: 0 0 350px;
  background: var(--soft-gray);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.consulting {
  padding: 80px var(--page-pad);
  text-align: center;
}

.consulting p,
.consulting h2 {
  margin: 0;
}

.consulting p {
  font-size: clamp(22px, 1.875vw, 28px);
  font-weight: 500;
  line-height: 1.45;
}

.consulting h2 {
  font-size: clamp(38px, 3.125vw, 60px);
  font-weight: 700;
  line-height: 1.4;
}

.consulting strong {
  font-weight: 900;
}

.services {
  position: relative;
  padding: 0 var(--page-pad) 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 529px));
  justify-content: center;
  gap: 16px;
}

.service-card {
  height: 529px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 24px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.29) 35%,
    rgba(255, 255, 255, 0.4) 71%
  );
}

.service-card h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(24px, 1.875vw, 32px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-transform: capitalize;
}

.tags {
  padding: 80px var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.tag-row--mobile {
  display: none;
}

.tag-row--offset {
  padding-left: 120px;
}

.tag-row span {
  padding: 6px 20px;
  border: 1px solid var(--navy);
  border-radius: 500px;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: clamp(16px, 1.875vw, 24px);
  font-weight: 500;
  line-height: 1.45;
}

.tag-row .is-active {
  background: var(--navy);
  color: #ffffff;
  transition: transform 250ms ease;
}

.tag-row .is-active:hover {
  transform: scale(1.15);
}

.cta-links {
  min-height: 480px;
  padding: 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6.25vw, 80px);
}

.cta-links a {
  position: relative;
  display: block;
  min-width: min(511px, 100%);
  color: var(--mid-gray);
  font-family: "Inter", sans-serif;
  font-size: clamp(30px, 3.125vw, 60px);
  font-weight: 700;
  line-height: 1.45;
  text-transform: capitalize;
  transition: color 400ms ease;
}

.cta-links a:hover {
  color: var(--pink);
}

.cta-links i {
  display: inline-block;
  font-style: normal;
  transition: transform 400ms ease;
}

.cta-links i::after {
  content: "↘";
}

.cta-links a:hover i::after {
  content: "→";
}

.cta-links a:hover i {
  transform: translateX(4px);
}

.home-contact {
  padding: 120px var(--page-pad);
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 810px);
  gap: clamp(72px, 8vw, 154px);
  align-items: flex-start;
  background: #ffffff;
}

.home-contact__intro {
  display: flex;
  flex-direction: column;
  gap: 81px;
}

.home-contact h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: clamp(36px, 2.3vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.home-contact__intro p {
  margin: 0;
  color: var(--navy);
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(20px, 1.25vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  text-transform: capitalize;
}

.home-contact__info {
  margin: 0;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.home-contact__info div {
  padding: 0 10px;
  border-left: 2px solid var(--pink);
}

.home-contact__info dt,
.home-contact__info dd {
  margin: 0;
  color: var(--navy);
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.45;
}

.home-contact__info dt {
  font-weight: 700;
}

.home-contact__info dd,
.home-contact__info a {
  font-weight: 500;
}

.home-contact__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.home-contact__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-contact__field span,
.home-contact__projects legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.home-contact__field b,
.home-contact__projects b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff0900;
}

.home-contact__field input,
.home-contact__field textarea {
  width: 100%;
  min-height: 32px;
  padding: 2px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
  color: var(--navy);
  background: transparent;
  font: 500 20px/1.45 "Inter", "Noto Sans KR", sans-serif;
  outline: none;
  resize: vertical;
}

.home-contact__field input:focus,
.home-contact__field textarea:focus {
  border-bottom-color: var(--pink);
}

.home-contact__projects {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-contact__projects legend {
  margin-bottom: 15px;
  padding: 0;
}

.home-contact__projects label {
  width: fit-content;
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--navy);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
  cursor: pointer;
}

.home-contact__projects input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--pink);
}

.home-contact__submit {
  width: fit-content;
  align-self: flex-end;
  margin-top: 20px;
  padding: 10px 30px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.home-contact__submit:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #ffffff;
}

.home-contact__submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.home-contact__status {
  min-height: 23px;
  margin: -8px 0 0;
  color: var(--pink);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
}

.footer {
  padding: 120px var(--page-pad) 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--navy);
}

.footer p {
  margin: 0;
  color: var(--mid-gray);
  font-family: "Source Serif 4", serif;
  font-size: 13px;
  line-height: 1.45;
}

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

@media (max-width: 1024px) {
  .hero__logo,
  .cta-links {
    flex-direction: column;
  }

  .hero {
    height: 172vh;
    --orb-size: clamp(620px, 120vw, 960px);
  }

  .hero__logo {
    text-align: center;
  }

  .hero h1 {
    text-align: center;
  }

  .portfolio-grid,
  .services {
    grid-template-columns: 1fr;
  }

  .portfolio-column img {
    height: auto;
    aspect-ratio: 522 / 500;
  }

  .tag-row--offset {
    padding-left: 0;
  }

  .home-contact {
    grid-template-columns: 1fr;
  }

  .cta-links {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .statement,
  .section-heading,
  .center-action,
  .why,
  .card-rail,
  .consulting,
  .tags,
  .cta-links {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero {
    height: 166vh;
    --orb-size: 620px;
  }

  .hero__sticky {
    top: 0;
    height: 100vh;
  }

  .hero__marquee {
    bottom: -28px;
    font-size: 22px;
  }

  .why p {
    text-align: center;
  }

  .service-card {
    height: 360px;
  }

  .portfolio-column {
    transform: none !important;
  }

  .tags {
    align-items: center;
  }

  .tag-row {
    justify-content: center;
  }

  .tag-row--offset {
    padding-left: 0;
  }

  .tag-row span {
    font-size: 18px;
  }

  .home-contact {
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 48px;
  }

  .home-contact__intro {
    gap: 36px;
  }

  .home-contact__intro p,
  .home-contact__info dt,
  .home-contact__info dd {
    font-size: 18px;
  }

  .home-contact__info {
    padding: 0;
    gap: 24px;
  }

  .home-contact__field span,
  .home-contact__projects legend,
  .home-contact__field input,
  .home-contact__field textarea {
    font-size: 16px;
  }

  .home-contact__projects label {
    margin-left: 0;
    font-size: 16px;
  }

  .home-contact__submit {
    width: 100%;
  }

  .cta-links {
    align-items: center;
  }

  .cta-links a {
    min-width: auto;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .tags {
    padding: 30px 24px;
    align-items: flex-start;
    gap: 10px;
  }

  .tags > .tag-row:not(.tag-row--mobile) {
    display: none;
  }

  .tags > .tag-row--mobile {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
  }

  .tag-row--mobile span {
    padding: 5px 8px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
  }
}
