@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #101214;
  --bg-2: #171a1d;
  --card: rgb(255 255 255 / 0.035);
  --fg: #eef0ec;
  --text: #a7aea9;
  --mute: #858d88;
  --rule: rgb(255 255 255 / 0.09);
  --hot: #ff6b5e;
  --hot-soft: rgb(255 107 94 / 0.12);
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #33383c var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 100;
}
::selection { background: var(--hot); color: #160806; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--fg); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 4px; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--pad); top: -100px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }
.fine { font-size: 0.8125rem; color: var(--mute); }

/* ---------- home: fixed intro on the left, the record scrolls on the right ---------- */
.split { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
.side { position: sticky; top: 0; height: 100vh; max-height: 100svh; padding: clamp(64px, 11vh, 112px) 0 56px; display: flex; flex-direction: column; justify-content: space-between; }
.me { width: clamp(88px, 8vw, 112px); height: auto; aspect-ratio: 1; border-radius: 50%; margin-bottom: 28px; border: 1px solid var(--rule); }
.side-name { margin: 0; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; }
.side-role { margin: 14px 0 0; color: var(--fg); font-size: 1.25rem; font-weight: 500; }
.side-line { margin: 14px 0 0; max-width: 22rem; }
.toc { display: flex; flex-direction: column; gap: 4px; margin-top: 56px; }
.toc a { display: inline-flex; align-items: center; gap: 16px; width: fit-content; padding: 8px 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); transition: color 0.2s; }
.toc a span { display: block; width: 32px; height: 1px; background: currentColor; transition: width 0.35s var(--ease); }
.toc a:hover, .toc a.on { color: var(--fg); }
.toc a:hover span, .toc a.on span { width: 64px; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.socials a { display: grid; place-items: center; color: var(--text); font-size: 1.5rem; transition: color 0.2s, transform 0.3s var(--ease); }
.socials a:hover { color: var(--fg); transform: translateY(-2px); }

.flow { padding: clamp(64px, 11vh, 112px) 0 64px; }
.block { scroll-margin-top: 80px; margin-bottom: clamp(80px, 12vh, 140px); }
.block-h { display: none; }
.block > p { margin: 0 0 18px; max-width: 40rem; }
#about p:first-of-type { color: var(--fg); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 28px; text-wrap: balance; }

.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card {
  position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 24px;
  margin: 0 -24px; padding: 22px 24px; border-radius: 10px; transition: background 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.cards:hover .card { opacity: 0.5; }
.cards:hover .card:hover, .cards .card:focus-within { opacity: 1; background: var(--card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 10px 30px -12px rgb(0 0 0 / 0.6); }
.card-when { margin: 3px 0 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.card-title { margin: 0; font-size: 1.0625rem; line-height: 1.35; font-weight: 650; color: var(--fg); }
.card-title a { display: inline-flex; align-items: baseline; gap: 6px; transition: color 0.2s; }
.card-title a svg { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.card:hover .card-title a { color: var(--hot); }
.card:hover .card-title a svg { transform: translate(2px, -2px); }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.card-sub { margin: 14px 0 4px; font-size: 0.9375rem; color: var(--fg); }
.card-sub a { color: var(--fg); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 3px; position: relative; z-index: 1; }
.card-sub a:hover { color: var(--hot); }
.card-sub .num { color: var(--mute); margin-left: 6px; font-size: 0.8125rem; }
.card-points { margin: 6px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.card-points li { position: relative; padding-left: 16px; margin: 4px 0; }
.card-points li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 1px; background: var(--mute); }
.card-points a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 3px; position: relative; z-index: 1; }
.card-points a:hover { color: var(--hot); }
.card-text { margin: 8px 0 0; font-size: 0.9375rem; }
.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.75rem; font-weight: 600; line-height: 1; padding: 7px 12px; border-radius: 999px; color: var(--hot); background: var(--hot-soft); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; color: var(--fg); font-weight: 600; }
.more svg { transition: transform 0.3s var(--ease); }
.more:hover { color: var(--hot); }
.more:hover svg { transform: translateX(4px); }

.game-card { grid-template-columns: 9.5rem minmax(0, 1fr); }
.thumb { display: block; align-self: start; margin-top: 4px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .thumb img { transform: scale(1.05); }
.thumb.icon { width: 64%; aspect-ratio: 1; border-radius: 22%; }
.secret .thumb { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #15181b 0 8px, #1a1d21 8px 16px); }
.redact { display: block; width: 62%; height: 14px; background: #000; border-radius: 2px; }

/* what I do: four areas from the CV */
.does { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.does li { padding: 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; }
.does svg { font-size: 1.5rem; color: var(--hot); margin-bottom: 6px; }
.does b { color: var(--fg); font-weight: 650; font-size: 1rem; }

/* the game in progress */
.now-card { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 24px; padding: 22px 24px; margin: 0 -24px 28px; border-radius: 12px; border: 1px solid rgb(255 107 94 / 0.25); background: linear-gradient(135deg, rgb(255 107 94 / 0.1), rgb(255 107 94 / 0.02)); }
.now-art { aspect-ratio: 16 / 10; border-radius: 6px; margin-top: 4px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 14px; background: repeating-linear-gradient(135deg, #15181b 0 8px, #1a1d21 8px 16px); border: 1px solid var(--rule); }
.now-art .redact { width: 80%; } .now-art .redact.short { width: 46%; height: 10px; }
.now-status { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hot); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgb(255 107 94 / 0.18); }

/* three games with their art at full size */
.features { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.feature a { display: block; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); transition: border-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.feature a:hover, .feature a:focus-visible { border-color: rgb(255 107 94 / 0.45); transform: translateY(-3px); box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.8); }
.feature-art { display: block; position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
.feature-art .alt { opacity: 0; }
.feature a:hover .feature-art .alt { opacity: 1; }
.feature a:hover .feature-art img { transform: scale(1.04); }
.feature-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.feature-meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.feature-title { display: inline-flex; align-items: baseline; gap: 8px; margin: 0; color: var(--fg); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; line-height: 1.15; }
.feature-title svg { font-size: 0.7em; transition: transform 0.3s var(--ease); }
.feature a:hover .feature-title { color: var(--hot); }
.feature a:hover .feature-title svg { transform: translate(3px, -3px); }
.feature-text { margin: 0; }
.feature-role { font-size: 0.875rem; color: var(--mute); }
.feature-role::before { content: "My part: "; color: var(--text); font-weight: 600; }

.flow-foot { padding-top: 24px; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.flow-foot p { margin: 0 0 6px; }
.flow-foot a:hover { color: var(--hot); }

/* ---------- inner pages ---------- */
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--pad); background: rgb(16 18 20 / 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); font-size: 0.9375rem;
}
.wordmark { font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; }
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 28px); }
.bar nav a { color: var(--text); transition: color 0.2s; }
.bar nav a:hover { color: var(--fg); }
.foot { max-width: 1000px; margin: 96px auto 0; padding: 28px var(--pad) 48px; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.foot p { margin: 0 0 6px; }
.foot a:hover { color: var(--hot); }

.game { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad); }
.back { display: inline-flex; align-items: center; gap: 8px; margin: 32px 0 0; color: var(--text); font-size: 0.9375rem; transition: color 0.2s; }
.back:hover { color: var(--fg); }
.game-head { padding: 36px 0 32px; }
.game-head h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; color: var(--fg); text-wrap: balance; }
.tagline { margin: 14px 0 0; font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 36rem; text-wrap: balance; }
.game-head.with-icon { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.app-icon { margin: 0; width: clamp(110px, 13vw, 160px); flex: none; }
.app-icon img { width: 100%; border-radius: 22%; border: 1px solid var(--rule); }
.app-icon figcaption { margin-top: 10px; font-size: 0.75rem; color: var(--mute); line-height: 1.4; }
.cover { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); }
.cover img { width: 100%; max-height: 70vh; object-fit: cover; object-position: 50% 30%; }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 56px; padding: 56px 0; }
.facts { margin: 0; align-self: start; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts div:first-child { padding-top: 0; }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 4px 0 0; color: var(--fg); }
.copy { max-width: 42rem; }
.copy h2 { margin: 0 0 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); }
.copy p { margin: 0 0 14px; }
.copy .did + h2 { margin-top: 40px; }
.did { list-style: none; margin: 0; padding: 0; }
.did li { position: relative; padding: 6px 0 6px 22px; color: var(--fg); }
.did li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 2px; border-radius: 2px; background: var(--hot); }
.copy .did + h2, .copy .shipped + h2 { margin-top: 40px; }
.shipped { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.shipped li { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 4px 16px; padding: 10px 0 14px 20px; }
.shipped li::before { content: ""; position: absolute; left: -4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); }
.shipped li > span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 4px; }
.shipped b { color: var(--fg); font-weight: 650; }
.shipped p { margin: 2px 0 0; font-size: 0.9375rem; }
.out { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.out a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--hot-soft); color: var(--hot); font-weight: 600; font-size: 0.9375rem; transition: background 0.2s; }
.out a:hover { background: rgb(255 107 94 / 0.2); }

.trailer { margin: 0 0 16px; }
.yt {
  width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; padding: clamp(16px, 3vw, 32px); cursor: pointer;
  display: grid; place-items: end start; background: var(--bg-2) center / cover no-repeat; position: relative; color: #fff;
}
.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgb(0 0 0 / 0.55)); }
.yt-play { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--hot); color: #160806; font: 700 1rem "Archivo", sans-serif; transition: transform 0.3s var(--ease); }
.yt-play svg { fill: currentColor; stroke: none; }
.yt:hover .yt-play { transform: scale(1.05); }
.trailer iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot { display: block; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); }
.shot:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.credit { margin: 14px 0 0; font-size: 0.8125rem; color: var(--mute); }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; }
.next a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 10px; background: var(--card); border: 1px solid var(--rule); color: var(--fg); font-weight: 650; font-size: 1.125rem; transition: border-color 0.2s, color 0.2s; }
.next a span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.next a:hover { border-color: rgb(255 107 94 / 0.5); color: var(--hot); }
.next-next { text-align: right; align-items: flex-end; }
.next-next svg { display: none; }
.viewer { border: 0; padding: 0; max-width: min(96vw, 1800px); max-height: 92vh; background: transparent; overflow: visible; }
.viewer::backdrop { background: rgb(10 11 12 / 0.92); }
.viewer img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.viewer-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fg); color: var(--bg); cursor: pointer; font-size: 1.25rem; }

/* ---------- small screens: the intro stacks on top ---------- */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; height: auto; max-height: none; padding: 64px 0 40px; gap: 32px; }
  .toc { display: none; }
  .flow { padding-top: 16px; }
  .block { margin-bottom: 72px; }
  .block-h {
    display: block; position: sticky; top: 0; z-index: 2; margin: 0 calc(var(--pad) * -1) 16px; padding: 16px var(--pad);
    background: rgb(16 18 20 / 0.88); backdrop-filter: blur(12px); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg);
  }
  .cards:hover .card { opacity: 1; }
  .card { grid-template-columns: 1fr; margin: 0; padding: 18px 0; }
  .game-card { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; }
  .now-card { margin: 0 0 24px; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; padding: 18px; }
  .game-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .game-card { grid-template-columns: 1fr; }
  .now-card { grid-template-columns: 1fr; }
  .now-art { max-width: 200px; }
  .does { grid-template-columns: 1fr; }
  .feature-art { aspect-ratio: 16 / 10; }
  .game-card .thumb { width: 100%; max-width: 360px; }
  .game-card .thumb.icon { width: 96px; }
  .gallery { grid-template-columns: 1fr; }
  .game-head.with-icon { flex-direction: column; align-items: flex-start; }
  .next { grid-template-columns: 1fr; }
  .next-next { text-align: left; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* the first game, set apart at the end of the list */
.origin { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 24px; align-items: center; margin: 32px -24px 0; padding: 22px 24px; border-radius: 12px; border: 1px dashed rgb(255 255 255 / 0.16); transition: border-color 0.3s, background 0.3s; }
.origin:hover { border-color: rgb(255 107 94 / 0.5); background: var(--card); }
.origin img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; filter: sepia(0.35) saturate(0.85); transition: filter 0.4s; }
.origin:hover img { filter: none; }
.origin > span { display: flex; flex-direction: column; gap: 4px; }
.origin-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.origin-t { display: inline-flex; align-items: baseline; gap: 6px; color: var(--fg); font-weight: 650; font-size: 1.0625rem; }
.origin-t svg { font-size: 0.85em; }
.origin:hover .origin-t { color: var(--hot); }
.origin-d { font-size: 0.9375rem; }
@media (max-width: 1000px) { .origin { margin: 32px 0 0; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; padding: 18px; } }
@media (max-width: 560px) { .origin { grid-template-columns: 1fr; } .origin img { max-width: 360px; } }
