:root {
  --page-pad: clamp(18px, 4vw, 56px);
  --black: #080808;
  --muted: rgba(8, 8, 8, 0.62);
  --faint: rgba(8, 8, 8, 0.14);
  --bg: #f1eee8;
  --ink-soft: rgba(8, 8, 8, 0.72);
  --blob-blue: #526fb4;
  --blob-coral: #c88a77;
  --blob-green: #8fc4a7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--black);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
  touch-action: pan-y;
}

#textCanvas,
#blobCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#textCanvas {
  z-index: 1;
  opacity: 0.72;
}

#blobCanvas {
  z-index: 2;
  opacity: 0.88;
  mix-blend-mode: multiply;
}

.site-shell {
  position: relative;
  z-index: 2;
}

.home-mark {
  position: fixed;
  top: clamp(18px, 2.6vw, 30px);
  left: var(--page-pad);
  z-index: 10;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 180ms ease;
}

.home-mark span {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--black) 0 18%, transparent 19%),
    repeating-conic-gradient(from 0deg, var(--black) 0 3deg, transparent 3deg 10deg);
  opacity: 0.82;
}

.home-mark:hover,
.home-mark:focus-visible {
  transform: scale(1.22);
}

.home-mark.is-clicked {
  animation: markClick 260ms ease-out;
}

.sticky-inquiry {
  position: fixed;
  right: var(--page-pad);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 10;
  display: grid;
  width: clamp(56px, 7.3vw, 80px);
  height: clamp(38px, 4.65vw, 52px);
  place-items: center;
  border-radius: 48% 52% 44% 56% / 55% 45% 52% 48%;
  color: var(--black);
  text-decoration: none;
  isolation: isolate;
  overflow: visible;
  background: transparent;
  translate: 0 0;
  transform: translateZ(0);
  transition: transform 220ms ease;
  animation: inquiryFloat 36s ease-in-out infinite alternate;
  will-change: translate, transform;
}

.sticky-inquiry::before {
  position: absolute;
  inset: -72%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 20%, rgba(80, 235, 130, 1) 0 8%, rgba(80, 235, 130, 0.62) 17%, transparent 31%),
    radial-gradient(circle at 38% 36%, rgba(52, 100, 245, 1) 0 10%, rgba(52, 100, 245, 0.62) 20%, transparent 35%),
    radial-gradient(circle at 70% 25%, rgba(238, 63, 122, 0.98) 0 10%, rgba(238, 63, 122, 0.56) 21%, transparent 36%),
    radial-gradient(circle at 84% 62%, rgba(255, 156, 55, 0.98) 0 8%, rgba(255, 156, 55, 0.52) 19%, transparent 33%),
    radial-gradient(circle at 28% 82%, rgba(246, 229, 48, 0.96) 0 9%, rgba(246, 229, 48, 0.48) 20%, transparent 35%),
    radial-gradient(circle at 60% 78%, rgba(39, 220, 210, 0.98) 0 9%, rgba(39, 220, 210, 0.52) 20%, transparent 35%);
  background-size:
    118% 118%,
    124% 124%,
    120% 120%,
    116% 116%,
    122% 122%,
    118% 118%;
  filter: blur(30px) saturate(1.9);
  content: "";
  transform: scale(0.96);
  animation: inquiryBlob 4.8s ease-in-out infinite alternate;
  will-change: transform, background-position, filter;
}

.sticky-inquiry::after {
  position: absolute;
  inset: -58%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 50%, rgba(140, 84, 255, 0.86) 0 10%, transparent 31%),
    radial-gradient(circle at 72% 54%, rgba(38, 190, 255, 0.86) 0 11%, transparent 31%),
    radial-gradient(circle at 52% 34%, rgba(255, 112, 96, 0.8) 0 9%, transparent 29%);
  filter: blur(34px) saturate(1.75);
  content: "";
  animation: inquiryBlobSecondary 5.6s ease-in-out infinite alternate-reverse;
  will-change: transform, background-position, filter;
}

.sticky-inquiry span {
  position: relative;
  z-index: 2;
  max-width: 44px;
  text-align: center;
  font-size: clamp(10px, 0.9vw, 13px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-shadow:
    0 0 7px rgba(241, 238, 232, 0.42),
    0 1px 0 rgba(241, 238, 232, 0.28);
}

.sticky-inquiry:hover,
.sticky-inquiry:focus-visible {
  animation-play-state: paused;
  transform: scale(1.16) rotate(-2deg);
}

.sticky-inquiry.is-clicked {
  animation: inquiryClick 320ms ease-out;
}

body.is-form-active .sticky-inquiry,
body.is-form-active .sticky-inquiry::before,
body.is-form-active .sticky-inquiry::after {
  animation-play-state: paused;
}

.interaction-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(86px, 12vh, 142px);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 11px;
  border: 1.5px solid rgba(8, 8, 8, 0.22);
  border-radius: 999px;
  background: rgba(241, 238, 232, 0.62);
  color: var(--black);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  backdrop-filter: blur(12px);
  animation: hintIn 700ms ease 900ms forwards, hintFloat 1800ms ease-in-out 1600ms infinite alternate;
  transition: opacity 300ms ease, transform 300ms ease;
}

.interaction-hint__icon {
  position: relative;
  width: 18px;
  height: 24px;
  border: 2px solid var(--black);
  border-radius: 10px 10px 8px 8px;
}

.interaction-hint__icon::before {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: var(--black);
  border-radius: 2px;
  content: "";
  transform: translateX(-50%);
}

.interaction-hint__icon::after {
  position: absolute;
  right: -7px;
  bottom: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  border-radius: 0 0 8px 0;
  content: "";
  transform: rotate(-16deg);
}

.interaction-hint__copy--mobile {
  display: none;
}

body.has-interacted .interaction-hint,
body.is-hint-dismissed .interaction-hint {
  opacity: 0;
  transform: translate(-50%, 18px);
  animation: none;
}

@keyframes inquiryBlob {
  0% {
    filter: blur(30px) saturate(1.55);
    background-position:
      0% 4%,
      18% 12%,
      74% 8%,
      96% 58%,
      20% 90%,
      58% 82%;
    transform: rotate(0deg) scale(0.98);
  }

  50% {
    filter: blur(36px) saturate(1.7);
    background-position:
      12% 18%,
      32% 4%,
      64% 26%,
      86% 44%,
      28% 76%,
      48% 92%;
    transform: rotate(-10deg) scale(1.08);
  }

  100% {
    filter: blur(32px) saturate(1.62);
    background-position:
      20% 6%,
      10% 28%,
      78% 20%,
      72% 70%,
      8% 72%,
      64% 66%;
    transform: rotate(12deg) scale(1.02);
  }
}

@keyframes inquiryFloat {
  0% {
    translate: 0 0;
  }

  12% {
    translate: calc(-1 * min(7vw, 82px)) calc(-1 * min(16vh, 150px));
  }

  27% {
    translate: calc(-1 * min(23vw, 250px)) calc(-1 * min(8vh, 78px));
  }

  43% {
    translate: calc(-1 * min(13vw, 140px)) calc(-1 * min(26vh, 250px));
  }

  61% {
    translate: calc(-1 * min(30vw, 330px)) calc(-1 * min(20vh, 190px));
  }

  78% {
    translate: calc(-1 * min(9vw, 96px)) calc(-1 * min(10vh, 96px));
  }

  100% {
    translate: calc(-1 * min(20vw, 220px)) calc(-1 * min(30vh, 280px));
  }
}

@keyframes inquiryFloatMobile {
  0% {
    translate: 0 0;
  }

  14% {
    translate: -28px -92px;
  }

  31% {
    translate: calc(-1 * min(42vw, 150px)) -38px;
  }

  49% {
    translate: -16px calc(-1 * min(30vh, 210px));
  }

  68% {
    translate: calc(-1 * min(34vw, 128px)) calc(-1 * min(20vh, 150px));
  }

  84% {
    translate: -58px -24px;
  }

  100% {
    translate: calc(-1 * min(46vw, 166px)) calc(-1 * min(28vh, 190px));
  }
}

@keyframes inquiryBlobSecondary {
  0% {
    filter: blur(32px) saturate(1.45);
    background-position: 8% 46%, 80% 54%, 54% 26%;
    transform: rotate(0deg) scale(0.96);
  }

  100% {
    filter: blur(38px) saturate(1.62);
    background-position: 24% 62%, 62% 42%, 44% 46%;
    transform: rotate(-14deg) scale(1.08);
  }
}

@keyframes hintIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes hintFloat {
  to {
    transform: translate(-50%, -5px);
  }
}

@keyframes inquiryClick {
  0% {
    transform: scale(1);
  }

  55% {
    transform: scale(1.34) rotate(-3deg);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes markClick {
  0% {
    transform: scale(1);
  }

  55% {
    transform: scale(1.44);
  }

  100% {
    transform: scale(1);
  }
}

.landing {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(70px, 7vw, 96px) var(--page-pad) clamp(34px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-top {
  max-width: 980px;
}

.landing-bottom {
  width: min(100%, 920px);
}

.eyebrow,
.section-kicker,
.work-index,
.en-title {
  margin: 0;
  font-size: clamp(11px, 1.7vw, 13px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: clamp(8px, 1.5vw, 18px);
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero-main {
  max-width: 700px;
  margin-bottom: 12px;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero-sub,
.hero-intro p {
  max-width: 760px;
  font-size: clamp(15px, 1.7vw, 22px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-soft);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(8, 8, 8, 0.38);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: rgba(241, 238, 232, 0.52);
  backdrop-filter: blur(8px);
}

.hero-intro {
  width: min(100% - var(--page-pad) * 2, 920px);
  margin: clamp(24px, 4vw, 64px) auto clamp(92px, 12vw, 170px);
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

.content-section {
  width: min(100% - var(--page-pad) * 2, 1120px);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 190px) 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 850;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.service-grid,
.type-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.service-item,
.studio-list article,
.type-columns article {
  border-top: 2px solid var(--black);
  padding-top: 16px;
}

.service-item span {
  display: block;
  margin-bottom: 46px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

.service-item p,
.work-copy p,
.studio-list p,
.type-columns li,
.contact-section p {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.48;
  font-weight: 650;
}

.small-copy {
  color: var(--muted);
}

.work-list {
  display: grid;
  gap: clamp(34px, 5vw, 64px);
}

.work-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
}

.work-media {
  margin: 0;
  min-height: clamp(260px, 36vw, 520px);
  border: 2px solid rgba(8, 8, 8, 0.72);
  background: var(--bg);
  overflow: hidden;
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.work-copy {
  max-width: 650px;
}

.work-copy h3 {
  font-size: clamp(22px, 2.8vw, 34px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.studio-list {
  display: grid;
  gap: 34px;
}

.type-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.type-columns li {
  padding: 10px 0;
  border-bottom: 1px solid var(--faint);
}

.contact-section {
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-section h2 {
  max-width: 980px;
}

.contact-section p {
  max-width: 760px;
}

.contact-form {
  display: grid;
  width: min(100%, 820px);
  gap: 18px;
  margin-top: clamp(54px, 8vw, 110px);
}

.contact-form label,
.custom-select {
  display: grid;
  gap: 8px;
}

.contact-form span,
.custom-select > span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.custom-select-trigger {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--black);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 750;
  outline: 0;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  min-height: 62px;
  text-align: left;
  cursor: pointer;
}

.custom-select-trigger::after {
  float: right;
  color: var(--muted);
  font-size: 16px;
  content: "＋";
}

.custom-select.is-open .custom-select-trigger::after {
  content: "－";
}

.custom-select.has-value .custom-select-trigger {
  color: var(--black);
}

.custom-select-options {
  display: none;
  position: static;
  z-index: 12;
  width: 100%;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.custom-select.is-open .custom-select-options {
  display: grid;
}

.custom-select-options button {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--black);
  text-align: left;
  font: inherit;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 850;
  cursor: pointer;
}

.custom-select-options button:last-child {
  border-bottom: 0;
}

.custom-select-options button:hover,
.custom-select-options button:focus-visible,
.custom-select-options button[aria-selected="true"] {
  background: linear-gradient(90deg, #526fb4, #c88a77, #8fc4a7);
  background-clip: text;
  color: transparent;
  outline: 0;
  -webkit-background-clip: text;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  min-height: 52px;
  margin-top: 10px;
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--black);
  color: var(--bg);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.contact-form .custom-select-trigger {
  appearance: none;
  display: block;
  min-height: 62px;
  margin: 0;
  border: 0;
  border-bottom: 2px solid var(--black);
  border-radius: 0 !important;
  padding: 14px 0;
  background: transparent !important;
  color: var(--black) !important;
  text-align: left;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 750;
  box-shadow: none !important;
  -webkit-appearance: none;
}

.contact-form .custom-select-trigger:hover,
.contact-form .custom-select-trigger:focus-visible {
  background: transparent;
  color: var(--black);
}

footer {
  margin-top: 90px;
  padding-top: 18px;
  border-top: 2px solid var(--black);
}

footer p {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .service-grid,
  .type-columns,
  .work-item,
  .split-section {
    grid-template-columns: 1fr;
  }

  .landing {
    padding-top: 70px;
    padding-bottom: 26px;
  }

  h1 {
    font-size: clamp(52px, 18vw, 86px);
  }

  .hero-main {
    font-size: clamp(22px, 7.6vw, 34px);
  }

  h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .work-copy h3 {
    font-size: clamp(24px, 9vw, 36px);
  }

  .service-item span {
    margin-bottom: 28px;
  }

  .work-media {
    min-height: 62vw;
  }

  .home-mark {
    top: 18px;
    width: 46px;
    height: 46px;
  }

  .home-mark span {
    width: 36px;
    height: 36px;
  }

  .sticky-inquiry {
    right: 16px;
    bottom: 18px;
    width: 54px !important;
    height: 42px !important;
    animation: inquiryFloatMobile 32s ease-in-out infinite alternate;
  }

  .sticky-inquiry span {
    max-width: 52px;
    font-size: 13px;
  }

  .sticky-inquiry::before {
    inset: -42%;
    filter: blur(18px) saturate(1.95);
    background:
      radial-gradient(circle at 25% 30%, rgba(80, 235, 130, 1) 0 12%, rgba(80, 235, 130, 0.78) 25%, transparent 47%),
      radial-gradient(circle at 62% 34%, rgba(52, 100, 245, 1) 0 14%, rgba(52, 100, 245, 0.78) 28%, transparent 51%),
      radial-gradient(circle at 48% 72%, rgba(238, 63, 122, 1) 0 13%, rgba(238, 63, 122, 0.72) 27%, transparent 49%);
  }

  .sticky-inquiry::after {
    display: none;
  }

  .content-section {
    padding: clamp(190px, 58vw, 380px) 0;
  }

  .interaction-hint {
    bottom: 86px;
    font-size: 13px;
  }

  .interaction-hint__copy--desktop {
    display: none;
  }

  .interaction-hint__copy--mobile {
    display: inline;
  }

  .service-item:last-child,
  .studio-list article:last-child,
  .type-columns article:last-child {
    border-bottom: 2px solid var(--black);
    padding-bottom: 18px;
  }

  .contact-section {
    min-height: 100svh;
    padding-bottom: 22px;
    justify-content: flex-start;
  }

  .contact-section footer {
    margin-top: auto;
  }

  .contact-section .contact-actions {
    gap: 16px;
    margin-bottom: clamp(96px, 24vh, 220px);
  }

  .contact-section .contact-actions a {
    min-height: auto;
    padding: 12px 0;
    border: 0;
    border-bottom: 2px solid var(--black);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #textCanvas,
  #blobCanvas {
    opacity: 0.5;
  }
}
