:root {
  color-scheme: dark;
  --bg: #080a10;
  --bg-soft: #0e111a;
  --surface: rgba(18, 22, 34, 0.78);
  --surface-strong: rgba(24, 29, 43, 0.92);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f6f4ff;
  --muted: #b9c0d3;
  --soft: #818aa3;
  --accent: #9d8cff;
  --accent-2: #61d7cf;
  --accent-3: #ffcf7a;
  --accent-4: #ff8ea9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --glow: 0 0 34px rgba(97, 215, 207, 0.16);
  --max-width: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.92), rgba(8, 10, 16, 1) 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 110px),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

main section[id] {
  scroll-margin-top: 88px;
}

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

a:hover {
  color: var(--accent-2);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.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: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-140%);
  background: var(--accent-2);
  color: #051113;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 12, 0.94);
  backdrop-filter: blur(14px);
  transition: border-color 160ms ease, background 160ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 7, 12, 0.98);
}

.header-inner {
  width: min(100% - clamp(24px, 4vw, 48px), var(--max-width));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.header-actions {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.2vw, 16px);
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  line-height: 1;
}

.brand img {
  width: 62px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  font-size: 1rem;
}

.site-nav {
  order: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.site-nav .nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(97, 215, 207, 0.46);
  color: #eaffff;
  background: rgba(97, 215, 207, 0.1);
  box-shadow: var(--glow);
}

.social-strip {
  order: 2;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  background: transparent;
}

.social-strip a {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.social-strip a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.social-strip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  order: 3;
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(520px, 72svh, 760px);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0.82;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.86), rgba(8, 10, 16, 0.62) 42%, rgba(8, 10, 16, 0.18)),
    linear-gradient(180deg, rgba(8, 10, 16, 0.18), rgba(8, 10, 16, 0.8));
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 90px 0 76px;
}

.hero-logo {
  width: min(48vw, 520px);
  min-width: 260px;
  filter: drop-shadow(0 0 34px rgba(245, 248, 255, 0.16));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-kicker {
  margin: 18px 0 0;
  color: var(--accent-3);
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-weight: 850;
  line-height: 1.1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(255, 207, 122, 0.62);
  color: #17120a;
  background: linear-gradient(135deg, #ffe08d, #ffb36d);
  box-shadow: 0 18px 42px rgba(255, 184, 108, 0.2);
}

.button-primary:hover {
  color: #17120a;
}

.button-secondary {
  border-color: rgba(157, 140, 255, 0.44);
  color: var(--text);
  background: rgba(157, 140, 255, 0.12);
}

.section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}

.project-layout-simple {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

.project-summary,
.feature-card,
.team-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-summary {
  padding: 24px;
}

.project-layout-simple .project-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.game-showcase {
  position: relative;
  min-height: clamp(480px, 52vw, 660px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1018;
  box-shadow: var(--shadow);
}

.game-showcase-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
}

.game-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.93), rgba(8, 10, 16, 0.58) 44%, rgba(8, 10, 16, 0.1)),
    linear-gradient(180deg, rgba(8, 10, 16, 0.12), rgba(8, 10, 16, 0.72));
}

.game-showcase-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 48px));
  min-height: clamp(480px, 52vw, 660px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: 34px;
  padding: 34px 0;
}

.game-showcase-panel .game-logo {
  width: min(100%, 390px);
  margin: 0 0 20px;
}

.game-showcase-panel p {
  margin: 0 0 8px;
  color: #eef2ff;
  font-size: 1.02rem;
  font-weight: 750;
}

.game-showcase-panel .button {
  margin-top: 20px;
}

.game-logo {
  width: min(100%, 420px);
  margin: 0 0 18px;
  filter: drop-shadow(0 0 22px rgba(157, 140, 255, 0.22));
}

.project-type {
  margin: 0 0 12px;
  color: var(--accent-3);
  font-weight: 850;
}

.project-description {
  margin: 0 0 12px;
  color: var(--muted);
}

.project-description.ko {
  color: #d4d8e8;
}

.project-showcase {
  display: grid;
  gap: 16px;
}

.art-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.art-frame {
  position: relative;
}

.art-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.art-frame figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  max-width: 520px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #f5f8ff;
  background: rgba(8, 10, 16, 0.68);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
}

.team-section {
  border-top: 1px solid var(--line);
}

.feature-grid,
.team-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.philosophy-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 34px;
}

.feature-card {
  min-height: 190px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.feature-card h3 {
  color: #fff;
}

.feature-card p,
.team-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.team-card {
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #f4f2ee;
}

.team-card div {
  padding: 18px;
}

.team-card .role {
  margin: 0 0 6px;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.team-card h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: clamp(76px, 8vw, 108px) 0;
}

.contact-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(97, 215, 207, 0.08), rgba(157, 140, 255, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #0d1018;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 104px;
}

.contact-intro h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4.1rem);
  line-height: 1;
}

.contact-intro p:not(.eyebrow) {
  max-width: 420px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 650;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(157, 140, 255, 0.12), rgba(97, 215, 207, 0.08)),
    var(--surface-strong);
}

.contact-panel h2 {
  max-width: 700px;
}

.email-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--accent-3);
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  justify-content: flex-end;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.social-links a:hover {
  border-color: rgba(97, 215, 207, 0.4);
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: none;
  padding-left: clamp(24px, 4vw, 42px);
  border-left: 1px solid var(--line);
}

.contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form legend,
.contact-form label > span {
  display: block;
  margin: 0 0 7px;
  color: #f5f7ff;
  font-weight: 800;
}

.contact-form small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(5, 7, 12, 0.68);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 52px;
  padding: 11px 13px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 154px;
  padding: 13px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-2);
  background: rgba(8, 10, 16, 0.92);
  box-shadow: 0 0 0 3px rgba(97, 215, 207, 0.16);
  outline: 0;
}

.button-submit {
  width: max-content;
  min-width: 150px;
  min-height: 52px;
  border-color: rgba(255, 207, 122, 0.62);
  border-radius: var(--radius);
  color: #17120a;
  background: linear-gradient(135deg, #ffe08d, #ffb36d);
  box-shadow: 0 18px 42px rgba(255, 184, 108, 0.16);
  text-transform: uppercase;
}

.button-submit:hover {
  color: #17120a;
  background: linear-gradient(135deg, #ffe49b, #ffc07f);
}

.form-status {
  min-height: 1.4em;
  margin: -8px 0 0;
  color: var(--accent-2);
  font-weight: 750;
}

.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  color: var(--soft);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .project-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    position: static;
  }

  .contact-form {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .game-showcase,
  .game-showcase-panel {
    min-height: clamp(460px, 62vw, 560px);
  }

  .feature-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 102;
  }

  .nav-toggle span {
    margin: 0 auto;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12, 15, 24, 0.97);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 11px 12px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .section,
  .contact-section,
  .hero-content,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .brand img {
    width: 58px;
    height: 40px;
  }

  .header-actions {
    gap: 8px;
  }

  .social-strip {
    gap: 6px;
  }

  .social-strip a {
    width: 28px;
    height: 28px;
  }

  .social-strip svg {
    width: 14px;
    height: 14px;
  }

  .brand span {
    font-size: 0.96rem;
  }

  .hero {
    min-height: 64svh;
    align-items: end;
  }

  .hero-bg {
    object-position: 64% center;
    opacity: 0.66;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 10, 16, 0.88), rgba(8, 10, 16, 0.68)),
      linear-gradient(180deg, rgba(8, 10, 16, 0.12), rgba(8, 10, 16, 0.86));
  }

  .hero-content {
    padding: 76px 0 50px;
  }

  .hero-logo {
    width: min(82vw, 380px);
    min-width: 0;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .section {
    padding: 68px 0;
  }

  .feature-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .art-frame figcaption {
    position: static;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(8, 10, 16, 0.72);
  }

  .game-showcase {
    min-height: 520px;
  }

  .game-showcase-art {
    object-position: 62% center;
  }

  .game-showcase::after {
    background:
      linear-gradient(180deg, rgba(8, 10, 16, 0.24), rgba(8, 10, 16, 0.9)),
      linear-gradient(90deg, rgba(8, 10, 16, 0.82), rgba(8, 10, 16, 0.44));
  }

  .game-showcase-panel {
    width: calc(100% - 36px);
    min-height: 520px;
    margin: 0 auto;
    justify-content: flex-end;
    padding: 28px 0;
  }

  .game-showcase-panel .game-logo {
    width: min(100%, 310px);
  }

  .project-summary,
  .feature-card,
  .contact-panel {
    padding: 18px;
  }

  .contact-panel {
    gap: 22px;
  }

  .contact-section {
    padding: 68px 0;
  }

  .contact-shell {
    padding: 24px 18px;
  }

  .contact-intro h2 {
    font-size: 2.24rem;
  }

  .contact-intro p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-submit {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
