:root {
  --white: #ffffff;
  --black: #242424;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Fustat", "Asta Sans", "Jost", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.navigation {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  background: var(--white);
}

.logo {
  font-family: "Jost", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.inline-logo {
  font-family: "Jost", sans-serif;
  font-weight: 500;
}

.mobile-break {
  display: none;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

nav a {
  color: var(--black);
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6.8rem 1.4rem 1.5rem;
  text-align: center;
}

.page > * {
  width: min(100%, 72rem);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2,
.contact-link {
  font-size: clamp(3.7rem, 8.8vw, 9rem);
  font-weight: 600;
  line-height: 0.9;
}

.bottom-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.statement,
.description {
  max-width: 42rem;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  text-align: center;
}

.bottom-copy .description {
  margin-top: 0.5rem;
}

.bottom-copy .about-text {
  max-width: 88rem;
  margin-top: 0;
}

.about .bottom-copy {
  width: min(100%, 88rem);
}

.about {
  position: relative;
  overflow: hidden;
}

.about > :not(.about-logo) {
  position: relative;
  z-index: 1;
}

.about-logo {
  position: absolute;
  z-index: 0;
  top: 60%;
  left: 18%;
  width: 120vw;
  max-width: none;
  opacity: 0.12;
  pointer-events: none;
  transform: translate(-50%, -50%);
  user-select: none;
}

.services {
  position: relative;
  overflow: hidden;
}

.services > :not(.services-logo, .services-stickers) {
  position: relative;
  z-index: 1;
}

.services-logo {
  position: absolute;
  z-index: 0;
  top: 57%;
  left: 82%;
  width: 52vw;
  max-width: none;
  opacity: 0.18;
  pointer-events: none;
  transform: translate(-50%, -50%);
  user-select: none;
}

.has-visual-motion .page-visual {
  opacity: 0;
  transition: opacity 900ms ease;
}

.has-visual-motion .about-logo.is-visible {
  opacity: 0.12;
}

.has-visual-motion .services-logo.is-visible {
  opacity: 0.18;
}

.services-stickers {
  position: absolute;
  z-index: 2;
  top: 51%;
  right: 1.5rem;
  width: min(36vw, 38rem);
  height: min(66vh, 42rem);
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
}

.services-stickers .sticker {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(var(--sticker-rotation));
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
}

.services-stickers .sticker img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.services-stickers .sticker:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 0.35rem;
}

.services-stickers .sticker:nth-child(1) {
  --sticker-rotation: -15deg;
  top: 26%;
  left: -5%;
  width: 43%;
}

.services-stickers .sticker:nth-child(2) {
  --sticker-rotation: 3deg;
  top: 48%;
  left: 48%;
  width: 37%;
}

.services-stickers .sticker:nth-child(3) {
  --sticker-rotation: 5deg;
  top: 17%;
  left: 63%;
  width: 27%;
}

.services-stickers .sticker:nth-child(4) {
  --sticker-rotation: -3deg;
  top: 58%;
  left: 10%;
  width: 29%;
}

.services-stickers .sticker:nth-child(5) {
  --sticker-rotation: 4deg;
  top: 70%;
  left: 54%;
  width: 30%;
}

.services-stickers .sticker.is-moving {
  animation: sticker-bounce 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sticker-bounce {
  0%,
  100% {
    transform: rotate(var(--sticker-rotation)) translateY(0) scale(1);
  }

  38% {
    transform: rotate(var(--sticker-rotation)) translateY(-18%) scale(1.08);
  }

  68% {
    transform: rotate(var(--sticker-rotation)) translateY(4%) scale(0.98);
  }
}

.has-visual-motion .services-stickers.is-visible {
  opacity: 1;
  transition-delay: 120ms;
}

.services-copy {
  width: min(100%, 68rem);
  align-items: flex-start;
  text-align: left;
}

.service-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.page .service-name {
  font-family: "Bagel Fat One", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.services-text {
  max-width: 42rem;
  text-align: left;
}

.contact-link {
  display: block;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--black);
}

.footer-meta {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page .footer-meta span {
  font-size: 0.78rem;
}

/* 콘텐츠 작성 전 임시 본문 스타일 */
.page :is(h1, h2, p, a, span) {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  text-transform: none;
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .navigation {
    padding: 0.9rem 1rem;
  }

  .navigation .logo {
    font-size: 1.18rem;
  }

  nav {
    gap: clamp(0.45rem, 2.3vw, 0.75rem);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .page {
    padding: 5.25rem 1rem 2rem;
  }

  .page :is(h1, h2, p, a, span) {
    font-size: clamp(0.95rem, 4.2vw, 1.05rem);
    line-height: 1.65;
  }

  .bottom-copy {
    gap: 1rem;
  }

  .about .bottom-copy {
    width: calc(100% - 2rem);
    gap: 1.35rem;
  }

  .about-text,
  .services-text {
    width: 100%;
    max-width: 34rem;
    text-wrap: pretty;
  }

  .about-text br,
  .services-text br {
    display: none;
  }

  .about-text .responsive-break,
  .about-text .mobile-break,
  .services-text .responsive-break {
    display: block;
  }

  .page .about-text,
  .page .services-text {
    font-size: clamp(0.88rem, 3.8vw, 0.98rem);
  }

  .about-logo {
    top: 57%;
    left: 20%;
    width: 185vw;
  }

  .services {
    min-height: 100svh;
    justify-content: flex-start;
    gap: 0.9rem;
    padding-top: 6.25rem;
  }

  .services-copy {
    display: contents;
  }

  .services-logo {
    top: 35%;
    bottom: auto;
    left: 80%;
    width: 95vw;
    transform: translate(-50%, -50%);
  }

  .service-heading {
    position: relative;
    z-index: 1;
    order: 1;
    align-self: center;
    width: calc(100% - 2rem);
    gap: 0.55rem;
    white-space: nowrap;
  }

  .page .service-name {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }

  .page .service-tagline {
    font-size: clamp(0.7rem, 3.1vw, 0.86rem);
    line-height: 1.35;
  }

  .services-stickers {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    flex: 0 0 auto;
    width: min(82vw, 22rem);
    height: 17rem;
    margin: 1.5rem auto 0;
    transform: none;
  }

  .services-stickers .sticker {
    cursor: default;
    pointer-events: none;
  }

  .has-visual-motion .services-stickers .sticker {
    opacity: 0;
    transition: opacity 750ms ease;
  }

  .has-visual-motion .services-stickers.is-visible .sticker {
    opacity: 1;
  }

  .services-stickers .sticker:nth-child(1) {
    top: 6%;
    left: 0;
    width: 43%;
  }

  .services-stickers .sticker:nth-child(2) {
    top: 31%;
    left: 49%;
    width: 36%;
  }

  .services-stickers .sticker:nth-child(3) {
    top: 2%;
    left: 66%;
    width: 24%;
  }

  .services-stickers .sticker:nth-child(4) {
    top: 49%;
    left: 12%;
    width: 27%;
  }

  .services-stickers .sticker:nth-child(5) {
    top: 68%;
    left: 57%;
    width: 28%;
  }

  .has-visual-motion .services-stickers.is-visible .sticker:nth-child(1) {
    transition-delay: 180ms;
  }

  .has-visual-motion .services-stickers.is-visible .sticker:nth-child(3) {
    transition-delay: 360ms;
  }

  .has-visual-motion .services-stickers.is-visible .sticker:nth-child(2) {
    transition-delay: 540ms;
  }

  .has-visual-motion .services-stickers.is-visible .sticker:nth-child(4) {
    transition-delay: 720ms;
  }

  .has-visual-motion .services-stickers.is-visible .sticker:nth-child(5) {
    transition-delay: 900ms;
  }

  .services-text {
    position: relative;
    z-index: 1;
    order: 3;
    align-self: center;
    width: calc(100% - 2rem);
  }

  .contact-link {
    padding-bottom: 0.75rem;
    border-bottom-width: 1px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.75rem;
    text-transform: none;
  }

  .page .footer-meta span {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  .navigation .logo {
    font-size: 1.08rem;
  }

  nav {
    gap: 0.4rem;
    font-size: 0.66rem;
  }

  .service-heading {
    flex-wrap: wrap;
    white-space: normal;
  }

  .page .service-tagline {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .has-visual-motion .page-visual {
    transition: none;
  }

  .services-stickers .sticker.is-moving {
    animation: none;
  }

  .has-visual-motion .services-stickers .sticker {
    opacity: 1;
    transition: none;
  }
}
