:root {
  --ink: #191821;
  --muted: #5c5968;
  --paper: #f8f7f3;
  --line: #dedbe1;
  --accent: #5d42ce;
  --lime: #d8f76d;
  --max: 1250px;
  color-scheme: light;
  font-family:
    Inter, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
p {
  line-height: 1.66;
}
section[id] {
  scroll-margin-top: 36px;
}
.wrap {
  max-width: var(--max);
  width: calc(100% - 96px);
  margin-inline: auto;
}
.skip {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  background: white;
  padding: 12px;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner,
.footer-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.055em;
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.5vw, 43px);
  font-size: 14px;
  font-weight: 750;
}
.site-header nav a,
.site-footer a {
  padding-block: 12px;
}
.site-header nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}
.studio-intro {
  padding-block: clamp(62px, 7.1vw, 104px) clamp(48px, 6vw, 82px);
  display: grid;
  grid-template-columns: 1.36fr 0.64fr;
  align-items: end;
  gap: 36px;
}
.studio-intro h1 {
  font-size: clamp(60px, 8.8vw, 128px);
  font-weight: 940;
  line-height: 0.99;
  letter-spacing: -0.065em;
  word-break: keep-all;
}
.studio-intro h1 span {
  color: var(--accent);
}
.studio-intro p {
  max-width: 330px;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 630;
  color: var(--muted);
  padding-bottom: 4px;
  word-break: keep-all;
}
.section-heading {
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-top: 18px;
}
.section-heading h2,
.company-end h2,
.game-support h2 {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 880;
  letter-spacing: -0.065em;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 18px;
}
.game-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #25213217;
}
.cover {
  height: clamp(248px, 38vw, 470px);
  position: relative;
  overflow: hidden;
  background: #f7b65e;
}
.cover img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transition: transform 0.35s ease;
}
.game-card:hover img {
  transform: scale(1.035);
}
.game-card--superyut .cover {
  background: #fff;
}
.game-card--superyut .cover img {
  object-fit: contain;
  object-position: center;
}
.card-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 24px;
  font-weight: 700;
}
.game-info {
  padding: clamp(20px, 3vw, 32px);
}
.game-info h3,
.service-info h3 {
  font-size: clamp(34px, 4.5vw, 63px);
  font-weight: 900;
  letter-spacing: -0.08em;
  margin-block: 6px;
}
.tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.03em;
}
.game-info p,
.company-end p,
.game-support p {
  color: var(--muted);
  word-break: keep-all;
}
#services,
.company-end {
  margin-top: clamp(64px, 10vw, 128px);
}
.service-card {
  background: #20202b;
  color: white;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  min-height: 340px;
  overflow: hidden;
  border-radius: 18px;
}
.service-info {
  padding: clamp(26px, 5vw, 70px);
}
.service-info p {
  max-width: 490px;
  color: #e6e2f3;
  word-break: keep-all;
}
.service-info h3 span {
  font-size: 0.42em;
  color: #d6cbff;
  letter-spacing: -0.025em;
  margin-left: 5px;
}
.service-info .tag {
  color: #dbceff;
}
.scene-art {
  display: grid;
  place-items: center;
  align-self: stretch;
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: #4c31b0;
  isolation: isolate;
}
.scene-art span {
  position: absolute;
  width: 54%;
  aspect-ratio: 1.2;
  border: clamp(10px, 1.4vw, 21px) solid #d7c9ff;
  border-radius: 22%;
  transform: translate(-18%, 8%) rotate(-17deg);
}
.scene-art span + span {
  border-color: var(--lime);
  transform: translate(19%, -9%) rotate(15deg);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.pill:hover {
  background: var(--accent);
  color: #fff;
}
.service-card .pill {
  background: var(--lime);
  color: var(--ink);
}
.service-card .pill:hover {
  background: #fff;
}
.company-end {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  padding: 36px 0 clamp(60px, 9vw, 110px);
}
.company-end p {
  margin-top: 12px;
}
.company-end section:last-child a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.game-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin: clamp(32px, 6vw, 80px) 0 clamp(32px, 6vw, 80px);
  overflow: hidden;
  border-radius: 24px;
  background: #ffdfb2;
}
.superyut .game-hero {
  background: #ded9ff;
}
.game-hero-copy {
  align-self: center;
  padding: clamp(32px, 5.5vw, 80px);
}
.game-hero h1 {
  font-size: clamp(46px, 7vw, 106px);
  font-weight: 940;
  letter-spacing: -0.085em;
  line-height: 1.04;
  margin: 8px 0 16px;
}
.game-headline {
  font-size: clamp(25px, 3.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.13;
  margin-bottom: 18px;
}
.game-hero-copy p:not(.game-headline) {
  color: #403a43;
  word-break: keep-all;
}
.game-hero-copy .pill {
  margin-top: 24px;
}
.game-art {
  min-height: 415px;
  background: #fff;
}
.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.superyut .game-art img {
  object-fit: contain;
  object-position: center;
}
.game-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: clamp(45px, 8vw, 100px);
}
.game-features article {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.game-features h2 {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.05em;
  margin-bottom: 6px;
}
.game-features p,
.gallery figcaption {
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 18px;
}
.gallery figure {
  min-width: 0;
}
.gallery a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
}
.gallery img {
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #28232e;
}
.superyut .gallery img {
  background: #fff;
}
.gallery figcaption {
  padding: 10px 2px;
  font-size: 14px;
}
.game-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  gap: 20px;
  padding: 28px 0 65px;
  margin-top: 50px;
}
.game-support .actions {
  margin-top: 0;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .studio-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .studio-intro p {
    max-width: 430px;
  }
  .game-hero-copy {
    padding: 32px;
  }
  .game-art {
    min-height: 375px;
  }
}
@media (max-width: 590px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 12px;
    padding-bottom: 6px;
    min-height: 0;
  }
  .header-inner nav {
    gap: 20px;
    font-size: 13px;
  }
  .header-inner .brand {
    margin-right: 18px;
  }
  .studio-intro {
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .studio-intro h1 {
    font-size: clamp(49px, 12vw, 68px);
  }
  .projects-grid,
  .service-card,
  .company-end,
  .game-hero,
  .game-features,
  .gallery {
    grid-template-columns: 1fr;
  }
  .cover {
    height: 270px;
  }
  .scene-art {
    min-height: 180px;
  }
  .scene-art span {
    width: 36%;
  }
  .company-end {
    gap: 27px;
  }
  .footer-inner {
    gap: 12px;
    min-height: 64px;
  }
  .footer-inner .brand {
    font-size: 14px;
  }
  .footer-inner .brand img {
    width: 24px;
    height: 24px;
  }
  .game-hero-copy {
    padding: 26px;
  }
  .game-art {
    min-height: 0;
    height: 340px;
  }
  .superyut .game-art {
    height: 240px;
  }
  .game-support {
    flex-direction: column;
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
