:root {
  --background: #f7f6f2;
  --ink: #292e29;
  --muted: #6e736c;
  --line: #dadcd4;
  --accent: #53674a;
  --font: Manrope, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
  border: 0;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
button:focus-visible,
a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  color: var(--ink);
  background: #d9dfcf;
}
.container {
  width: min(1100px, calc(100% - 112px));
  margin-inline: auto;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px 18px;
}
.skip-link:focus {
  top: 10px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid #8e9885;
  font-size: 12px;
  font-weight: 600;
}
.text-link:hover {
  color: var(--accent);
}

.header {
  display: flex;
  align-items: center;
  min-height: 90px;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand {
  font-size: 15px;
  letter-spacing: -0.035em;
  font-weight: 700;
  white-space: nowrap;
}
.brand > span {
  font-weight: 400;
}
.navigation {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.navigation > a {
  font-size: 12px;
  color: var(--muted);
}
.navigation > a:hover {
  color: var(--ink);
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.language-switch a {
  background: none;
  font-size: 10px;
  color: #8b8e86;
  padding: 9px 3px;
}
.language-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.language-switch > span {
  color: #a0a398;
}
.menu-toggle {
  display: none;
  padding: 9px;
  background: none;
}
.menu-toggle > span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px 0;
  background: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 82px;
  padding: 48px 0 46px;
  align-items: start;
}
.intro h1 {
  font-size: clamp(45px, 5.3vw, 68px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.06;
}
.intro-copy {
  padding-top: 2px;
  max-width: 390px;
}
.intro-copy p {
  font-size: 15px;
  line-height: 1.8;
}
.intro-copy p + p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
}
.intro-copy > .text-link {
  margin-top: 24px;
}

.games {
  border-top: 1px solid var(--line);
  padding: 38px 0 63px;
}
.games-overview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.games-intro h2 {
  font-size: 32px;
}
.games-intro p {
  max-width: 280px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
}
.game-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
  min-width: 0;
}
.game-capsule {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  text-align: left;
  overflow: hidden;
  transition: border-color 150ms ease;
}
.game-capsule:hover,
.game-capsule[aria-expanded="true"] {
  border-color: var(--accent);
}
.capsule-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.capsule-content {
  display: block;
  padding: 18px 20px 16px;
}
.capsule-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}
.capsule-heading strong {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.capsule-status {
  color: var(--accent);
  font-size: 10px;
}
.capsule-genre {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.capsule-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.capsule-action svg {
  width: 17px;
  height: 17px;
}
.game-capsule[aria-expanded="true"] .capsule-action {
  color: var(--accent);
}
.game-details {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 28px;
}
.game-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 25px;
  margin-bottom: 28px;
}
.game-permalink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}
.game-permalink:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page-game .game-details {
  border-top: 0;
  margin-top: 0;
  padding: 32px 0 63px;
}
.game-details-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.game-details-close:hover {
  color: var(--ink);
}
.game-details-close:hover > span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.section-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 11px;
}
.game-title {
  font-size: 38px;
  letter-spacing: -0.045em;
}
.project-meta {
  text-align: right;
  padding-bottom: 2px;
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--accent);
}
.project-status > span:first-child {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #799064;
}
.project-meta p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.project-description {
  max-width: 800px;
  font-size: 15px;
  line-height: 1.85;
  color: #63695e;
  margin-top: 23px;
}
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 25px;
}
.game-tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 28px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #bcc3b3 transparent;
}
.game-tab {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 0 11px;
  min-height: 43px;
  background: none;
  border-bottom: 1.5px solid transparent;
  font-size: 11px;
  color: #84887e;
}
.game-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.game-tab:hover {
  color: var(--ink);
}
.gallery-count {
  flex-shrink: 0;
  font-size: 9px;
  color: #8d9387;
  letter-spacing: 0.08em;
}
.scene-panel {
  margin-top: 13px;
  min-width: 0;
}
.scene-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: #dedfd7;
  text-align: initial;
}
.scene-image > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2px;
}
.image-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #f7f6f2e8;
  border-radius: 2px;
}
.image-zoom svg {
  width: 18px;
  height: 18px;
}
.scene-image:hover .image-zoom {
  background: #fff;
}
.scene-caption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  margin-top: 12px;
  color: #808579;
  font-size: 11px;
  line-height: 1.7;
}
.scene-caption > span:last-child {
  text-align: right;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 34px;
  padding-top: 29px;
  border-top: 1px solid var(--line);
}
.project-details h2,
.project-details h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
.project-details p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.divided-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  border-top: 1px solid var(--line);
  padding: 59px 0;
}
.divided-section h2 {
  font-size: 27px;
  letter-spacing: -0.035em;
}
.section-copy > p {
  max-width: 240px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 18px;
}
.team-photo-placeholder {
  min-height: 245px;
  border: 1px solid #d8dcd1;
  background: #eeeee8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.team-photo-placeholder > svg {
  height: 36px;
  width: 36px;
  color: #929a88;
  margin-bottom: 9px;
}
.team-photo-placeholder > p {
  font-size: 12px;
  color: #7a8271;
}
.team-photo-placeholder > span {
  font-size: 10px;
  color: #8d9484;
  margin-top: 4px;
}
.contact {
  padding-bottom: 66px;
}
.contact-copy p {
  color: var(--muted);
  font-size: 13px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #b8beaf;
  padding-bottom: 7px;
  margin-top: 16px;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.contact-email > svg {
  width: 19px;
  height: 19px;
}
.contact-email:hover {
  color: var(--accent);
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-block: 22px 26px;
  color: #84897d;
  font-size: 10px;
}
.privacy-trigger {
  background: none;
  font-size: 10px;
  padding: 3px 0;
  color: inherit;
}
.privacy-trigger:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: #1b211be8;
}
.lightbox {
  width: min(1250px, 92vw);
  max-width: 92vw;
  max-height: 92dvh;
  background: transparent;
  color: #f6f6f0;
  overflow: visible;
}
.lightbox > img {
  width: 100%;
  max-height: 78dvh;
  object-fit: contain;
  background: #1b211b;
}
.lightbox > p {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  max-width: 90%;
}
.dialog-close {
  position: absolute;
  right: 0;
  top: -47px;
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  background: var(--background);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.privacy-dialog {
  width: min(540px, calc(100% - 40px));
  max-height: 85dvh;
  padding: 38px;
  background: var(--background);
  overflow: auto;
}
.privacy-dialog > .dialog-close {
  top: 10px;
  right: 10px;
}
.privacy-dialog h2 {
  font-size: 26px;
  padding-right: 18px;
}
.privacy-dialog h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-top: 28px;
}
.privacy-dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 13px;
}
.privacy-dialog .text-link {
  margin-top: 25px;
}

@media (max-width: 1100px) {
  .container {
    width: calc(100% - 80px);
  }
  .header {
    gap: 26px;
  }
  .navigation {
    gap: 20px;
  }
  .intro {
    gap: 50px;
    padding-block: 53px;
  }
  .intro h1 {
    font-size: 5.6vw;
  }
  .intro-copy p {
    font-size: 14px;
  }
  .divided-section {
    gap: 70px;
  }
  .contact-email {
    font-size: 16px;
  }
}
@media (max-width: 820px) {
  .container {
    width: calc(100% - 48px);
  }
  .header {
    min-height: 82px;
  }
  .navigation {
    display: none;
    position: absolute;
    top: 81px;
    left: -24px;
    right: -24px;
    padding: 24px;
    background: var(--background);
    border-bottom: 1px solid var(--line);
  }
  .navigation.is-open {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 22px;
  }
  .navigation > a {
    font-size: 14px;
    color: var(--ink);
  }
  .header-actions {
    margin-left: auto;
    gap: 13px;
  }
  .menu-toggle {
    display: block;
    margin-right: -9px;
  }
  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] > span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .intro {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    padding-block: 48px;
  }
  .intro h1 {
    font-size: 5.5vw;
  }
  .intro-copy p {
    font-size: 13px;
  }
  .intro-copy p + p {
    font-size: 12px;
  }
  .intro-copy .text-link {
    margin-top: 18px;
    font-size: 11px;
  }
  .games {
    padding-top: 31px;
  }
  .games-overview {
    gap: 40px;
    grid-template-columns: 0.7fr 1.3fr;
  }
  .game-title {
    font-size: 34px;
  }
  .project-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 35px;
  }
  .divided-section {
    gap: 40px;
  }
  .team-photo-placeholder {
    min-height: 220px;
  }
  .contact-email {
    font-size: 14px;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 40px);
  }
  .header {
    min-height: 74px;
    gap: 15px;
  }
  .brand {
    font-size: 13px;
  }
  .navigation {
    top: 73px;
    left: -20px;
    right: -20px;
    padding-inline: 20px;
  }
  .header-actions {
    gap: 7px;
  }
  .language-switch {
    gap: 2px;
  }
  .language-switch a {
    font-size: 9px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 0 36px;
  }
  .intro h1 {
    font-size: clamp(40px, 10.8vw, 58px);
    line-height: 1.08;
  }
  .intro-copy {
    padding-top: 0;
    max-width: 360px;
  }
  .intro-copy p {
    font-size: 14px;
    line-height: 1.8;
  }
  .intro-copy p + p {
    font-size: 12px;
    margin-top: 12px;
  }
  .intro-copy .text-link {
    font-size: 12px;
    margin-top: 18px;
  }
  .games {
    padding: 28px 0 36px;
  }
  .games-overview {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .games-intro h2 {
    font-size: 28px;
  }
  .games-intro p {
    margin-top: 12px;
  }
  .capsule-content {
    padding: 15px 16px 13px;
  }
  .capsule-heading strong {
    font-size: 21px;
  }
  .game-details {
    margin-top: 30px;
    padding-top: 15px;
  }
  .game-detail-toolbar {
    margin-bottom: 20px;
  }
  .project-heading {
    gap: 15px;
    align-items: center;
  }
  .section-label {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .game-title {
    font-size: 31px;
  }
  .project-meta {
    padding-top: 13px;
  }
  .project-status {
    font-size: 8px;
    gap: 5px;
    white-space: nowrap;
  }
  .project-meta p {
    display: none;
  }
  .project-description {
    font-size: 13px;
    line-height: 1.85;
    margin-top: 19px;
  }
  .gallery-controls {
    gap: 10px;
    margin-top: 20px;
  }
  .game-tabs {
    gap: 23px;
  }
  .game-tab {
    font-size: 11px;
    min-height: 42px;
    padding-block: 9px;
  }
  .gallery-count {
    font-size: 7px;
    white-space: nowrap;
  }
  .scene-panel {
    margin-top: 9px;
  }
  .image-zoom {
    width: 27px;
    height: 27px;
    right: 10px;
    bottom: 10px;
  }
  .image-zoom svg {
    width: 15px;
    height: 15px;
  }
  .scene-caption {
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
    margin-top: 11px;
  }
  .scene-caption > span:last-child {
    text-align: left;
  }
  .project-details {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 26px;
    padding-top: 24px;
  }
  .project-details p {
    margin-top: 6px;
    font-size: 13px;
  }
  .divided-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 33px;
  }
  .divided-section h2 {
    font-size: 25px;
  }
  .section-copy > p {
    max-width: none;
    font-size: 12px;
    margin-top: 13px;
  }
  .team-photo-placeholder {
    min-height: 210px;
  }
  .contact {
    padding-block: 35px 40px;
    gap: 18px;
  }
  .contact-copy p {
    font-size: 12px;
  }
  .contact-email {
    font-size: 14px;
    gap: 14px;
    margin-top: 13px;
    max-width: 100%;
  }
  .contact-email svg {
    width: 17px;
    height: 17px;
  }
  .footer {
    font-size: 8px;
    padding-block: 18px 22px;
    gap: 15px;
  }
  .privacy-trigger {
    font-size: 8px;
  }
  .privacy-dialog {
    padding: 36px 25px;
  }
  .privacy-dialog h2 {
    font-size: 24px;
  }
  .lightbox > p {
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  .brand {
    font-size: 11px;
  }
  .header {
    gap: 10px;
  }
  .header-actions {
    gap: 3px;
  }
  .language-switch a {
    font-size: 8px;
    padding-inline: 2px;
  }
  .game-tabs {
    gap: 17px;
  }
  .game-tab {
    font-size: 10px;
  }
  .gallery-count {
    font-size: 6px;
  }
  .contact-email {
    font-size: 12px;
    gap: 12px;
  }
  .contact-email svg {
    width: 15px;
    height: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
