@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@main/packages/wanted-sans/fonts/webfonts/variable/complete/WantedSansVariable.css");
@import url("https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@700&display=swap");

@font-face {
  font-family: "Paperlogy";
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-6SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --ink: #1d1d1d;
  --paper: #f7f7f3;
  --muted: #5f6770;
  --line: rgba(29, 29, 29, 0.14);
  --accent: #0a0d0f;
  --motion-paper: #f5f0e7;
  --motion-ink: #090b0d;
  --display: "Libre Bodoni", Didot, Georgia, serif;
  --sans: "Wanted Sans Variable", "Wanted Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: #050505;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

body.template-preview-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

.background-wordmark {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 0;
  pointer-events: none;
  color: rgba(0, 0, 0, 0.045);
  font-size: clamp(7rem, 21vw, 22rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

button,
a {
  font: inherit;
}

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

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #202020;
  padding: 0 1rem;
}

.mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.mark span {
  width: 16px;
  height: 16px;
  display: block;
  background: #f5f5f2;
  clip-path: polygon(0 100%, 0 38%, 46% 0, 46% 100%);
}

.menu-button {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 240, 231, 0.28);
  border-radius: 999px;
  background: rgba(9, 11, 13, 0.44);
  color: var(--motion-paper);
  padding: 0;
  cursor: pointer;
}

.menu-button span {
  grid-area: 1 / 1;
  width: 1.2rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 420ms cubic-bezier(0.76, 0, 0.24, 1), opacity 260ms ease;
}

.menu-button span:nth-child(1) {
  transform: translateY(-5px);
}

.menu-button span:nth-child(3) {
  transform: translateY(5px);
}

.menu-button em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.menu-open .menu-button span:nth-child(1) {
  transform: rotate(45deg);
}

body.menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-button span:nth-child(3) {
  transform: rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  padding: 7rem clamp(1.5rem, 5vw, 5rem) 3rem;
  background: rgba(9, 11, 13, 0.97);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 760ms cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

body.menu-open .menu-overlay {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

.menu-overlay__inner {
  display: grid;
  gap: 0.8rem;
}

.menu-kicker {
  margin: 0 0 0.4rem;
  color: rgba(245, 240, 231, 0.42);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-overlay__inner > .menu-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(245, 240, 231, 0.18);
  background: transparent;
  color: var(--motion-paper);
  padding: 0 0 0.24em;
  font-size: clamp(3.8rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: padding-inline 260ms ease, color 260ms ease;
}

.menu-overlay__inner > .menu-link:hover,
.menu-overlay__inner > .menu-link:focus-visible {
  color: #ffffff;
  padding-inline: 0.24em;
}

.menu-overlay__inner > .menu-link span {
  color: rgba(245, 240, 231, 0.42);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}

.menu-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  color: rgba(245, 240, 231, 0.6);
  font-size: 0.95rem;
}

.prototype-views {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  overflow: hidden;
}

.circle-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: 48px;
}

.view-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  transform: scale(0.94);
  transform-origin: center;
  transition:
    opacity 430ms ease,
    transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.view-panel.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  animation: view-zoom-in 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.circle-stage {
  position: relative;
  width: min(100vw, 980px);
  height: min(100svh, 980px);
  min-height: 680px;
  display: grid;
  place-items: center;
}

.circle-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 980px);
  display: grid;
  gap: 0.45rem;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  margin: 0;
  font-family: "Paperlogy", "Pretendard", sans-serif;
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  color: #161a22;
  text-align: center;
  max-width: 980px;
  margin-inline: auto;
  white-space: nowrap;
}

.hero-title .mobile-break {
  display: none;
}

.circle-copy span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.circle-card {
  --angle: 0deg;
  --radius-x: min(42vw, 430px);
  --radius-y: min(35vw, 350px);
  --card-rotate: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(62px, 8.5vw, 86px);
  aspect-ratio: 0.78 / 1;
  border: 0;
  border-radius: 5px;
  background: #ddd;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transform:
    translate(-50%, -50%)
    translate(calc(cos(var(--angle)) * var(--radius-x)), calc(sin(var(--angle)) * var(--radius-y)))
    rotate(var(--card-rotate))
    scale(1);
  transition:
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 520ms ease,
    filter 520ms ease;
  will-change: transform;
}

.circle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--hover-x, 50%) var(--hover-y, 50%), rgba(255, 255, 255, 0.38), transparent 38%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.circle-card:hover,
.circle-card:focus-visible {
  z-index: 4;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.24);
  filter: saturate(1.08) contrast(1.03);
  transform:
    translate(-50%, -50%)
    translate(calc(cos(var(--angle)) * var(--radius-x)), calc(sin(var(--angle)) * var(--radius-y)))
    rotate(0deg)
    scale(1.42);
}

.circle-card:hover::after,
.circle-card:focus-visible::after {
  opacity: 1;
}

.circle-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.circle-card--1 {
  --angle: -90deg;
  --card-rotate: 0deg;
}

.circle-card--2 {
  --angle: -38deg;
  --card-rotate: 18deg;
}

.circle-card--3 {
  --angle: 14deg;
  --card-rotate: -13deg;
}

.circle-card--4 {
  --angle: 66deg;
  --card-rotate: 14deg;
}

.circle-card--5 {
  --angle: 118deg;
  --card-rotate: -7deg;
}

.circle-card--6 {
  --angle: 170deg;
  --card-rotate: 13deg;
}

.circle-card--7 {
  --angle: 222deg;
  --card-rotate: -18deg;
}

.section-shell {
  width: min(100% - 3rem, 1120px);
  margin: 0 auto;
}

.process-section {
  min-height: 100svh;
  background: var(--motion-ink);
  color: var(--motion-paper);
  padding: clamp(6rem, 10vw, 10rem) 0 clamp(5rem, 8vw, 8rem);
}

.process-shell h2 {
  margin: 0;
  color: var(--motion-paper);
  font-family: var(--sans);
  font-size: clamp(4.6rem, 10vw, 9rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.process-list {
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 6rem auto 0;
  padding: 0;
  border-top: 1px solid rgba(245, 240, 231, 0.18);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: 0.65rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid rgba(245, 240, 231, 0.18);
}

.process-list span {
  grid-row: 1 / span 2;
  color: var(--motion-paper);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.8;
}

.process-list h3 {
  grid-column: 2;
  margin: 0;
  color: var(--motion-paper);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  letter-spacing: 0;
  line-height: 1.12;
}

.process-list p {
  grid-column: 2;
  max-width: 600px;
  margin: 0;
  color: rgba(245, 240, 231, 0.58);
  line-height: 1.68;
}

.contact-section {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #f4f0e8;
  color: var(--motion-ink);
  padding: 7rem 1.5rem 5rem;
}

.contact-watermark {
  position: absolute;
  left: 50%;
  bottom: clamp(-2.8rem, -4vw, -1rem);
  z-index: 0;
  width: max-content;
  color: rgba(9, 11, 13, 0.045);
  font-family: var(--display);
  font-size: clamp(8.5rem, 25vw, 28rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.8;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.contact-shell {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-shell h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 13rem);
  letter-spacing: 0;
  line-height: 0.8;
  text-transform: uppercase;
}

.contact-shell > p {
  display: grid;
  gap: 0.2rem;
  max-width: 720px;
  margin: 1.5rem auto 0;
  color: rgba(9, 11, 13, 0.7);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.72;
}

.contact-links {
  max-width: 900px;
  display: grid;
  margin: 4rem auto 0;
  border-top: 1px solid rgba(9, 11, 13, 0.18);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(9, 11, 13, 0.18);
  text-align: left;
  transition: padding 240ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  padding-inline: 1.2rem;
}

.contact-links span {
  color: rgba(9, 11, 13, 0.54);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-links strong {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
}

.template-expanded-view {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 0s linear 640ms;
}

.template-expanded-view.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 420ms ease;
}

.template-expanded-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(247, 247, 243, 0.74);
  backdrop-filter: blur(18px);
}

.template-expanded-card {
  position: relative;
  width: min(86vw, 980px);
  height: min(82svh, 760px);
  overflow: hidden;
  border: 1px solid rgba(5, 5, 5, 0.16);
  border-radius: 10px;
  background: #111;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform:
    translate3d(
      calc(var(--template-origin-x, 50vw) - 50vw),
      calc(var(--template-origin-y, 50vh) - 50vh),
      0
    )
    scale(var(--template-origin-scale, 0.22));
  transform-origin: center;
  transition:
    opacity 260ms ease,
    transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}

.template-expanded-view.is-open .template-expanded-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.template-expanded-visual {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.template-expanded-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.48)),
    radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.template-expanded-reel,
.template-expanded-reel-track {
  width: 100%;
  height: 100%;
}

.template-expanded-reel-track {
  height: 400%;
  display: flex;
  flex-direction: column;
  animation: preview-scroll 15s ease-in-out infinite;
}

.template-expanded-reel-track img {
  width: 100%;
  height: 25%;
  flex: 0 0 25%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.template-expanded-visual figcaption {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 13, 15, 0.58);
  color: #fff;
  padding: 0.65rem 0.95rem;
  backdrop-filter: blur(14px);
}

.template-expanded-visual figcaption span {
  color: #f2b84b;
  font-weight: 950;
}

.template-expanded-visual figcaption strong {
  font-weight: 900;
}

.template-expanded-actions {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  gap: 0.85rem;
  place-content: center;
  justify-items: center;
  pointer-events: none;
}

.template-site-link,
.template-back-button {
  min-width: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 900;
  text-align: center;
  pointer-events: auto;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.template-site-link {
  background: #fff;
  color: #111;
}

.template-back-button {
  background: rgba(10, 13, 15, 0.62);
  color: #fff;
  cursor: pointer;
}

.template-site-link:hover,
.template-site-link:focus-visible,
.template-back-button:hover,
.template-back-button:focus-visible {
  transform: translateY(-2px);
}

@keyframes view-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preview-scroll {
  0%,
  16% {
    transform: translateY(0);
  }

  34%,
  48% {
    transform: translateY(-25%);
  }

  66%,
  80% {
    transform: translateY(-50%);
  }

  96%,
  100% {
    transform: translateY(-75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-expanded-reel-track {
    animation: none;
  }

  .circle-card,
  .template-expanded-card,
  .menu-button span,
  .menu-overlay,
  .view-panel {
    transition: none;
  }

  .view-panel.is-active {
    animation: none;
  }
}

@media (max-width: 760px) {
  .menu-overlay {
    padding: 6rem 1.25rem 2rem;
  }

  .menu-overlay__inner > .menu-link {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .circle-stage {
    width: 100vw;
    min-height: 620px;
  }

  .circle-card {
    --radius-x: 42vw;
    --radius-y: 36vw;
    width: clamp(54px, 14vw, 72px);
  }

  .circle-copy {
    width: 100%;
    max-width: 360px;
  }

  .hero-title {
    max-width: 360px;
    padding-inline: 24px;
    font-size: clamp(28px, 7.4vw, 32px);
    white-space: normal;
  }

  .hero-title .mobile-break {
    display: block;
  }

  .background-wordmark {
    font-size: clamp(5.4rem, 26vw, 10rem);
  }

  .template-expanded-view {
    padding: 0.75rem;
  }

  .template-expanded-card {
    width: 100%;
    height: min(78svh, 620px);
  }

  .process-list {
    margin-top: 3.5rem;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .process-list span,
  .process-list h3,
  .process-list p {
    grid-column: 1;
  }

  .process-list span {
    grid-row: auto;
    font-size: clamp(2.6rem, 16vw, 4.6rem);
  }

  .contact-links a {
    display: grid;
    gap: 0.7rem;
  }
}
