:root {
  color-scheme: dark;
  --ink: #0b1111;
  --ink-soft: #121a19;
  --panel: #17201e;
  --paper: #eee6d4;
  --paper-dim: #b7ad99;
  --line: rgba(238, 230, 212, 0.16);
  --amber: #d39a56;
  --amber-pale: #edc789;
  --teal: #7b9c91;
  --stamp: #a84c3e;
  --max-width: 1200px;
  --header-height: 84px;
  font-family:
    Inter, Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber-pale);
  outline-offset: 5px;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 17, 17, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

/* 심볼 마크는 세로형이라 높이를 기준으로 잡는다(구 v1 로크업은 가로 폭 기준이었다). */
.brand-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

/* 워드마크 이미지가 아직 없어 텍스트로 대체한다. */
.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
}

.brand-name span {
  color: var(--amber);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 42px);
}

.site-nav a {
  position: relative;
  color: rgba(238, 230, 212, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  padding: 10px 17px;
  border: 1px solid rgba(238, 230, 212, 0.35);
  color: var(--paper);
}

.site-nav .nav-contact::after {
  display: none;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  isolation: isolate;
  overflow: hidden;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.84) contrast(1.02);
  transform: scale(1.015);
  animation: hero-settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 12, 12, 0.98) 0%, rgba(7, 12, 12, 0.84) 33%, rgba(7, 12, 12, 0.28) 65%, rgba(7, 12, 12, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 12, 12, 0.26) 0%, transparent 45%, rgba(7, 12, 12, 0.78) 100%);
}

.hero-content {
  align-self: center;
  width: min(720px, calc(100% - 44px));
  margin: 60px 0 60px max(22px, calc((100vw - var(--max-width)) / 2));
  padding-top: var(--header-height);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 24px;
  color: var(--amber-pale);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4rem, 8.2vw, 8.2rem);
}

.hero h1 em {
  color: var(--amber-pale);
  font-weight: 400;
}

.hero-copy {
  max-width: 640px;
  margin: 33px 0 0;
  color: rgba(238, 230, 212, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    transform 170ms ease,
    background-color 170ms ease;
}

.button-primary {
  background: var(--paper);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--amber-pale);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(238, 230, 212, 0.72);
  font-size: 0.83rem;
  transition: color 160ms ease;
}

.text-link:hover {
  color: var(--paper);
}

.project-status {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: 42px;
  display: grid;
  min-width: 250px;
  padding: 18px 21px;
  border: 1px solid rgba(238, 230, 212, 0.24);
  background: rgba(10, 16, 15, 0.58);
  backdrop-filter: blur(12px);
}

.project-status > span:first-child {
  color: var(--paper-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-status strong {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.status-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--teal);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(123, 156, 145, 0.13);
}

.scroll-cue {
  position: absolute;
  bottom: 49px;
  left: max(22px, calc((100vw - var(--max-width)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(238, 230, 212, 0.42);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 33px;
  overflow: hidden;
  background: rgba(238, 230, 212, 0.25);
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber-pale);
  transform: translateY(-100%);
  animation: scroll-pulse 2s ease-in-out infinite;
}

.section {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(110px, 13vw, 190px) 0;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px 10vw;
}

.section h2 {
  font-size: clamp(3rem, 5.8vw, 6.6rem);
}

.studio-copy {
  align-self: end;
  max-width: 580px;
  padding-bottom: 6px;
  color: var(--paper-dim);
}

.studio-copy .lead {
  margin: 0 0 24px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(1.32rem, 2vw, 1.82rem);
  line-height: 1.6;
}

.studio-copy > p:last-child {
  margin: 0;
}

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 45px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.principles li {
  min-height: 230px;
  padding: 27px 30px 25px 0;
  border-bottom: 1px solid var(--line);
}

.principles li + li {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.principles span,
.member-index,
.loop-label {
  color: var(--amber);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principles strong {
  display: block;
  margin-top: 52px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
}

.principles p {
  margin: 11px 0 0;
  color: var(--paper-dim);
  font-size: 0.9rem;
}

.project-section {
  width: 100%;
  max-width: none;
  padding-right: max(22px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(22px, calc((100vw - var(--max-width)) / 2));
  background:
    radial-gradient(circle at 95% 12%, rgba(123, 156, 145, 0.12), transparent 31%),
    var(--ink-soft);
}

.project-kicker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.project-kicker .eyebrow {
  margin: 0;
}

.project-kicker > span {
  color: var(--paper-dim);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 80px;
  align-items: end;
  padding: clamp(65px, 8vw, 105px) 0 95px;
}

.project-intro > div:first-child {
  position: relative;
}

.project-number {
  position: absolute;
  top: -46px;
  right: 7%;
  margin: 0;
  color: rgba(238, 230, 212, 0.06);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8rem, 19vw, 16rem);
  line-height: 0.8;
}

.project-intro h2 {
  position: relative;
  font-size: clamp(5.1rem, 11vw, 10.8rem);
  text-transform: uppercase;
}

.project-summary {
  position: relative;
  padding: 0 0 8px 32px;
  border-left: 1px solid var(--amber);
  color: var(--paper-dim);
}

.project-tagline {
  margin: 0 0 23px;
  color: var(--amber-pale);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.35;
}

.project-summary > p:last-child {
  margin: 0;
}

.game-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.game-loop article {
  position: relative;
  min-height: 280px;
  padding: 35px clamp(24px, 3.2vw, 48px) 35px 0;
}

.game-loop article + article {
  padding-left: clamp(24px, 3.2vw, 48px);
  border-left: 1px solid var(--line);
}

.game-loop h3 {
  margin: 62px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.game-loop p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.project-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 44px;
}

.note-stamp {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(168, 76, 62, 0.7);
  border-radius: 50%;
  color: var(--stamp);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  transform: rotate(-7deg);
}

.project-note p {
  margin: 0;
  color: rgba(183, 173, 153, 0.65);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.team-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 8vw;
}

.team-list {
  align-self: end;
  border-top: 1px solid var(--line);
}

.team-member {
  display: grid;
  grid-template-columns: 40px 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 124px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.member-avatar {
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 230, 212, 0.24);
  background: var(--panel);
  object-fit: cover;
}

.team-member strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 400;
}

.team-member p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-section {
  padding: clamp(110px, 15vw, 200px) 22px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(11, 17, 17, 0.82), rgba(11, 17, 17, 0.94)),
    radial-gradient(circle at 75% 45%, rgba(211, 154, 86, 0.19), transparent 35%);
}

.contact-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.contact-section h2 {
  max-width: 880px;
  font-size: clamp(4.5rem, 10vw, 10rem);
}

.contact-section p:not(.eyebrow) {
  margin: 42px 0 25px;
  color: var(--paper-dim);
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  padding: 26px 0;
  border-top: 1px solid rgba(238, 230, 212, 0.35);
  border-bottom: 1px solid rgba(238, 230, 212, 0.35);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 2.65rem);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.contact-email:hover {
  border-color: var(--amber);
  color: var(--amber-pale);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 130px;
  padding: 32px max(22px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  background: #080d0d;
}

/* 브랜드 로고 링크를 제외한 모든 푸터 링크가 같은 캡션 스타일을 쓴다.
   (구 셀렉터는 :last-child였는데, Privacy 링크가 붙으면서 Contact만 스타일을 받았다) */
.site-footer p,
.site-footer > a:not(.brand) {
  margin: 0;
  color: rgba(183, 173, 153, 0.62);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer > a:not(.brand):hover {
  color: var(--paper);
}

.footer-brand-logo {
  width: auto;
  height: 62px;
  max-height: none;
}

.footer-brand .brand-name {
  font-size: 1.6rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: scale(1.055);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes scroll-pulse {
  0% {
    transform: translateY(-100%);
  }
  45%,
  55% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .menu-button {
    display: grid;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 13px 9px;
    border: 0;
    background: transparent;
  }

  .menu-button > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--paper);
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: grid;
    align-content: center;
    gap: 0;
    padding: 30px;
    background: rgba(11, 17, 17, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-contact {
    margin-top: 18px;
    border: 1px solid var(--line);
    text-align: center;
  }

  .hero {
    min-height: 850px;
  }

  .hero-art img {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 12, 12, 0.96) 0%, rgba(7, 12, 12, 0.75) 55%, rgba(7, 12, 12, 0.3) 100%),
      linear-gradient(180deg, rgba(7, 12, 12, 0.16) 0%, transparent 38%, rgba(7, 12, 12, 0.9) 100%);
  }

  .hero-content {
    align-self: center;
    margin-top: 0;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 13vw, 6.5rem);
  }

  .project-status {
    right: 22px;
    bottom: 36px;
  }

  .scroll-cue {
    display: none;
  }

  .studio-section,
  .team-section {
    grid-template-columns: 1fr;
  }

  .studio-copy {
    max-width: 680px;
  }

  .principles {
    margin-top: 20px;
  }

  .project-intro {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .project-summary {
    max-width: 650px;
  }

  .game-loop {
    grid-template-columns: 1fr;
  }

  .game-loop article {
    min-height: 230px;
    padding-right: 0;
  }

  .game-loop article + article {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .team-list {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 36px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .footer-brand-logo {
    height: 52px;
  }

  .footer-brand .brand-name {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero-art img {
    object-position: 70% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 12, 12, 0.92) 0%, rgba(7, 12, 12, 0.65) 70%, rgba(7, 12, 12, 0.35) 100%),
      linear-gradient(180deg, rgba(7, 12, 12, 0.3) 0%, rgba(7, 12, 12, 0.26) 30%, rgba(7, 12, 12, 0.94) 100%);
  }

  .hero-content {
    align-self: start;
    margin-top: 140px;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 5.1rem);
  }

  .hero-copy {
    max-width: 310px;
    margin-top: 25px;
    font-size: 0.92rem;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
  }

  .text-link {
    font-size: 0.75rem;
  }

  .project-status {
    right: 22px;
    bottom: 26px;
    left: 22px;
    min-width: 0;
  }

  .section {
    width: min(100% - 38px, var(--max-width));
    padding: 100px 0;
  }

  .section h2 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles li {
    min-height: 205px;
    padding-right: 0;
  }

  .principles li + li {
    padding-left: 0;
    border-left: 0;
  }

  .project-section {
    width: 100%;
    padding-right: 19px;
    padding-left: 19px;
  }

  .project-kicker > span {
    display: none;
  }

  .project-intro {
    padding-bottom: 72px;
  }

  .project-intro h2 {
    font-size: clamp(4.35rem, 22vw, 7rem);
  }

  .project-number {
    top: -28px;
    right: 0;
  }

  .project-summary {
    padding-left: 21px;
  }

  .project-note {
    justify-content: flex-start;
  }

  .team-member {
    grid-template-columns: 30px 64px minmax(0, 1fr);
    gap: 0 13px;
    min-height: 112px;
    padding: 24px 0;
  }

  .member-index,
  .member-avatar {
    grid-row: 1 / span 2;
  }

  .member-avatar {
    width: 64px;
  }

  .team-member strong {
    grid-column: 3;
  }

  .team-member p {
    grid-column: 3;
    margin-top: -10px;
  }

  .contact-section {
    padding: 100px 19px;
  }

  .contact-section h2 {
    font-size: clamp(4rem, 20vw, 6.5rem);
  }

  .contact-email {
    gap: 16px;
    overflow-wrap: anywhere;
    font-size: clamp(1rem, 5vw, 1.5rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 42px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
