@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/kalam-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/kalam-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --ink: #24231f;
  --orange: #e86d3b;
  --paper: #f4eee1;
  --muted: #777268;
  --line: #d3ccbf;
  --surface: #faf7ef;
  --green-screen: #c4e2ad;
  --content: 1240px;
  --font-display: "Kalam", "Comic Sans MS", cursive;
  --font-body: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--orange); }
img, svg, picture { max-width: 100%; }
img { display: block; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { color: var(--ink); background: #f4c1a7; }

.wrap { width: min(calc(100% - 3rem), var(--content)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: .25rem;
}
.skip-link:focus { transform: translateY(0); color: var(--paper); }
.accent, .cursor { color: var(--orange); }
.eyebrow {
  margin: 0;
  color: #5f5a51;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header and compact, keyboard-operable mobile navigation */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.8vw, 2.8rem);
}
.brand-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(.2rem, .45vw, .45rem);
  min-width: 0;
  text-decoration: none;
}
.brand-lockup:hover { color: inherit; }
.brand-accent { display: block; flex: 0 0 auto; width: clamp(12px, 1.2vw, 18px); height: auto; object-fit: contain; }
.brand-wordmark { display: inline-flex; flex: 0 0 auto; align-items: flex-end; }
.brand-wordmark picture { display: block; width: clamp(158px, 16vw, 204px); }
.brand-logo { width: 100%; height: auto; }
.brand-dash {
  flex: 0 0 auto;
  width: clamp(12px, 1.25vw, 17px);
  height: 4px;
  margin: 0 0 .33rem -1px;
  border-radius: 3px;
  background: var(--orange);
  transform: rotate(-2deg);
}
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3.1vw, 3rem); }
.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .45rem 0 .7rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link::after {
  position: absolute;
  right: 0;
  bottom: .8rem;
  left: 0;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--orange) 0 5px, transparent 5px 10px);
  opacity: 0;
}
.nav-link[aria-current="page"]::after { opacity: 1; }
.header-note { display: flex; flex: 0 0 auto; align-items: center; gap: .8rem; }
.terminal-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 36px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}
.header-note__text { font-family: var(--font-mono); font-size: .72rem; line-height: 1.25; }
.terminal-mark__cursor { animation: console-cursor 1s steps(1, end) infinite; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 88px;
  min-height: 44px;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: transparent;
  font-family: var(--font-mono);
  font-size: .78rem;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--orange); }
.menu-toggle__icon { display: block; width: 17px; }
.menu-toggle__icon-img { display: block; width: 100%; height: auto; }

/* Homepage hero */
.hero { padding-block: clamp(2.8rem, 5.2vw, 4.6rem) clamp(3rem, 5vw, 4.25rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1.3rem, 4.2vw, 4.75rem); }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 1.05rem; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; }
h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3.2rem, 5.7vw, 5.25rem);
  line-height: 1.02;
}
.headline-line { position: relative; display: block; width: fit-content; max-width: 100%; margin-top: .04em; }
.headline-underline {
  position: absolute;
  left: 39%;
  bottom: -.24em;
  width: clamp(6rem, 11vw, 10.5rem);
  height: clamp(1.05rem, 1.6vw, 1.4rem);
  object-fit: fill;
  pointer-events: none;
}
.lede { max-width: 430px; margin: 1.6rem 0 1.65rem; color: #57534b; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.55; }
/* Hand-drawn ink button: the shape is an inline SVG mask (wobbly rounded rect,
   preserveAspectRatio="none" so it stretches to any width), the texture strokes are
   baked into the same SVG. Color is plain CSS via --btn-ink. */
.button-link {
  --btn-ink: var(--ink);
  --btn-ink-text: var(--paper);
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .55rem 1.6rem;
  border: 0;
  background: none;
  color: var(--btn-ink-text);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 130ms ease;
}
.button-link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-color: var(--btn-ink);
  -webkit-mask-image: url("/assets/ui/button/ink/button-shape.svg");
  mask-image: url("/assets/ui/button/ink/button-shape.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.button-link:hover { transform: translateY(-2px) rotate(-.4deg); color: var(--ink); }
.button-link:hover::before { background-color: var(--orange); }
.button-link__arrow { font-size: 1.05rem; line-height: 1; }
.hero-art { position: relative; min-width: 0; align-self: center; }
.hero-art picture, .hero-art img { display: block; width: 100%; }
.project-media picture { display: block; width: 100%; height: 100%; }
.hero-art img { height: auto; }
.screen-terminal {
  position: absolute;
  top: 33%;
  left: 41%;
  width: 29%;
  height: 19%;
  overflow: hidden;
  padding: .15em .25em;
  color: var(--green-screen);
  font-family: var(--font-mono);
  font-size: clamp(.5rem, .78vw, .67rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .01em;
  text-transform: lowercase;
  pointer-events: none;
}
.screen-terminal__log { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100%; }
.screen-terminal__line { overflow: hidden; margin: 0; white-space: nowrap; }
.screen-terminal__line::before { margin-right: .55em; content: ">"; color: #d4e4b5; }
.screen-terminal__line--typing::after { display: inline-block; width: .5em; height: 1.05em; margin-left: .24em; content: ""; vertical-align: -.17em; background: var(--green-screen); animation: console-cursor 1s steps(1, end) infinite; }
@keyframes console-cursor { 50% { opacity: 0; } }

/* Work section */
.section { padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(3.75rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.45rem; }
.section-head .eyebrow { margin-bottom: .45rem; }
h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
.section-title { position: relative; display: inline-block; }
.section-title::after { display: block; width: 5rem; height: 11px; margin-top: .2rem; content: ""; background: center / 100% 100% no-repeat url("/assets/illustrations/doodles/orange-double-stroke.webp"); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: .5rem; padding-block: .3rem; font-family: var(--font-mono); font-size: .75rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link span { transition: transform 130ms ease; }
.text-link:hover span { transform: translateX(3px); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: stretch; gap: clamp(1.1rem, 2.5vw, 1.7rem); }
.project-card {
  --card-radius: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(36, 35, 31, .05), 0 10px 24px -12px rgba(36, 35, 31, .18);
  transition: transform 220ms cubic-bezier(.22, .68, .34, 1), box-shadow 220ms cubic-bezier(.22, .68, .34, 1), border-color 220ms ease;
}
.project-card:hover {
  border-color: rgba(36, 35, 31, .24);
  box-shadow: 0 2px 4px rgba(36, 35, 31, .06), 0 22px 40px -16px rgba(36, 35, 31, .28);
  transform: translateY(-5px);
}
.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.43;
  border: 1px solid rgba(36, 35, 31, .12);
  border-radius: calc(var(--card-radius) - .45rem);
  background: #e9dfce;
}
.project-media picture, .project-media img { width: 100%; height: 100%; }
.project-image { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; transition: transform 420ms cubic-bezier(.22, .68, .34, 1); }
.project-media:hover .project-image, .project-card:focus-within .project-image { transform: scale(1.045); }
.project-image--empty { background: #e9dfce center / 42% no-repeat url("/assets/illustrations/decorative/cat-head.webp"); }
.project-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  max-width: calc(100% - 1.3rem);
  padding: .34rem .62rem;
  border: 1px solid rgba(36,35,31,.16);
  border-radius: 999px;
  background: rgba(250,247,239,.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .59rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .015em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(36, 35, 31, .1);
}
.project-badge__dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232, 109, 59, .45); animation: badge-pulse 2.4s ease-out infinite; }
@keyframes badge-pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 109, 59, .45); } 70% { box-shadow: 0 0 0 6px rgba(232, 109, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 109, 59, 0); } }
.project-copy { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; padding: .95rem .45rem .45rem; }
.project-kicker { margin: 0 0 .4rem; color: var(--muted); font-family: var(--font-mono); font-size: .64rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .015em; }
.project-copy h3 { margin: 0 0 .42rem; font-size: 1.42rem; }
.project-copy h3 a { text-decoration: none; }
.project-copy h3 a:hover { color: var(--orange); }
.project-summary { max-width: 40ch; margin: 0 0 1rem; color: #615c53; font-size: .88rem; line-height: 1.55; }
.project-foot { display: flex; flex: 1 1 auto; align-items: flex-end; justify-content: space-between; gap: .75rem; width: 100%; margin-top: auto; padding-top: .35rem; }
.project-platforms { display: flex; align-items: center; gap: .45rem; }
.project-platform { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(36,35,31,.15); border-radius: .35rem; background: var(--paper); transition: transform 160ms ease, border-color 160ms ease; }
.project-platform img { width: 21px; height: 21px; object-fit: contain; }
.project-platform:hover, .project-platform:focus-visible { transform: translateY(-2px); border-color: rgba(36,35,31,.35); }
.project-platform:active { transform: translateY(0); }
.project-more { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.project-more span { color: var(--orange); transition: transform 130ms ease; }
.project-more:hover span { transform: translateX(3px); }

/* Detail and about pages */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.3rem) 2.5rem; }
.page-hero .eyebrow, .project-detail__copy .eyebrow { margin-bottom: 1.05rem; }
.page-hero h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.page-hero .lede { margin-bottom: 0; }
.project-detail { padding-block: 1rem clamp(4rem, 7vw, 6rem); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: .5rem; margin-bottom: 1.2rem; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; text-decoration: none; }
.project-detail__grid { display: grid; grid-template-columns: minmax(0, .8fr) auto; align-items: stretch; gap: clamp(1.6rem, 5vw, 4.5rem); }
.project-detail__copy h1 { margin: .3rem 0 1rem; font-size: clamp(2.1rem, 3.4vw, 3rem); }
.project-detail__copy .lede { margin-block: 0 1.25rem; }
.status-line { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: .69rem; line-height: 1.35; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--orange); }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.1rem 0 0; }
.store-link {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem .85rem .45rem .55rem;
  border: 1px solid var(--line); border-radius: .35rem; background: var(--paper);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease;
}
.store-link img { width: 22px; height: 22px; object-fit: contain; }
.store-link span[aria-hidden] { color: var(--orange); }
.store-link:hover, .store-link:focus-visible { transform: translateY(-2px); border-color: rgba(36,35,31,.35); }
.store-link:active { transform: translateY(0); }
.detail-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; height: 0; min-height: 100%; }
.detail-image-wrap picture { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 0; max-width: 100%; }
.detail-image { display: block; width: auto; max-width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: .45rem; background: #eadfcd; box-shadow: 0 1px 2px rgba(36, 35, 31, .06), 0 6px 18px rgba(36, 35, 31, .1); }
.detail-notes { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.detail-notes h2 { font-size: 1.35rem; }
.detail-notes p { max-width: 46ch; margin: .6rem 0 0; color: #615c53; font-size: .91rem; }
.detail-privacy a { color: var(--ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.detail-privacy a:hover { color: var(--orange); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr); align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.about-copy { max-width: 720px; }
.about-copy > p:not(.eyebrow) { color: #57534b; font-size: clamp(1.05rem, 1.7vw, 1.22rem); }
.about-doodle { width: min(100%, 440px); justify-self: center; }
.empty-state { max-width: 46ch; padding-block: 1.25rem; color: #615c53; }

/* Game one-pager */
.game-hero { padding-block: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.9rem, 3.2vw, 2.6rem); }
.game-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.game-hero__copy { min-width: 0; }
.game-hero__titleblock { display: flex; align-items: center; gap: .9rem; margin: .3rem 0 .9rem; }
.game-hero__icon { width: clamp(54px, 6vw, 74px); height: auto; border: 1px solid rgba(36, 35, 31, .14); border-radius: 22%; box-shadow: 0 2px 4px rgba(36, 35, 31, .08), 0 10px 22px -10px rgba(36, 35, 31, .25); }
.game-hero h1 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.3rem); line-height: 1.02; }
.game-hero__tagline { max-width: 46ch; margin: 0 0 1.35rem; color: #57534b; font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.55; }
.game-hero__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.game-chip { padding: .3rem .68rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #5f5a51; font-family: var(--font-mono); font-size: .64rem; line-height: 1.4; letter-spacing: .02em; text-transform: uppercase; }
.game-chip--accent { border-color: rgba(232, 109, 59, .4); background: rgba(232, 109, 59, .09); color: #b3502a; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.game-store-note { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: .66rem; line-height: 1.5; }
.game-hero__art { position: relative; min-width: 0; }
.game-hero__frame-wrap { position: relative; width: min(100%, 400px); margin-inline: auto; }
/* offset hand-drawn echo frame behind the screenshot */
.game-hero__frame-wrap::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(36, 35, 31, .26); border-radius: 1.25rem; background: rgba(250, 247, 239, .55); transform: rotate(2.2deg); }
.game-hero__frame { position: relative; z-index: 1; display: block; overflow: hidden; width: 100%; margin: 0; aspect-ratio: 9 / 16; border: 1px solid rgba(36, 35, 31, .16); border-radius: 1.15rem; background: #e9dfce; box-shadow: 0 2px 4px rgba(36, 35, 31, .06), 0 22px 44px -20px rgba(36, 35, 31, .32); }
.game-hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.game-hero__doodle { position: absolute; top: -1.3rem; right: clamp(.1rem, 2vw, 1.5rem); z-index: 2; width: clamp(42px, 4.5vw, 56px); height: auto; transform: rotate(10deg); }
/* compact fact plate in the hero: frameless white table, hairline dividers via 1px grid gap */
.hero-facts { display: grid; grid-template-columns: 1.2fr 1.3fr .95fr 1.15fr .65fr; gap: 1px; max-width: 640px; margin: 0 0 1.35rem; background: var(--line); box-shadow: 0 1px 2px rgba(36, 35, 31, .05); }
.hero-fact { display: grid; gap: .1rem; align-content: center; padding: .55rem .9rem; background: var(--surface); transition: background 160ms ease; }
.hero-fact:hover { background: #f5efe2; }
.hero-fact dt { color: var(--muted); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.hero-fact dd { margin: 0; color: var(--ink); font-family: var(--font-mono); font-size: .73rem; font-weight: 600; line-height: 1.35; }
/* compact feature list inside the hero copy column */
.hero-features-block { margin-top: 1.5rem; }
.hero-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.4rem; margin: .8rem 0 0; padding: 0; list-style: none; max-width: 640px; }
.hero-feature { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .55rem; align-items: start; }
.hero-feature__icon { display: block; width: 34px; height: 34px; margin-top: .1rem; filter: drop-shadow(0 0 5px rgba(232, 109, 59, .25)) drop-shadow(0 0 12px rgba(244, 193, 167, .3)); transition: filter 220ms ease, transform 220ms cubic-bezier(.22, .68, .34, 1); }
.hero-feature:hover .hero-feature__icon { filter: drop-shadow(0 0 8px rgba(232, 109, 59, .45)) drop-shadow(0 0 18px rgba(244, 193, 167, .5)); transform: translateY(-2px) rotate(-3deg); }
.hero-feature h3 { margin: 0 0 .15rem; font-size: .95rem; }
.hero-feature p { margin: 0; color: #615c53; font-size: .76rem; line-height: 1.5; }
.game-section { padding-block: clamp(2.25rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.game-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.35rem; }
.game-section__head .eyebrow { margin-bottom: .45rem; }
.game-section h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.game-about__text p { margin: .8rem 0 0; color: #57534b; font-size: .95rem; line-height: 1.75; }
.game-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(.9rem, 2vw, 1.25rem); }
.game-feature { padding: 1.15rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 1px 2px rgba(36, 35, 31, .05); transition: transform 200ms cubic-bezier(.22, .68, .34, 1), box-shadow 200ms ease, border-color 200ms ease; }
.game-feature:hover { transform: translateY(-3px); border-color: rgba(36, 35, 31, .24); box-shadow: 0 2px 4px rgba(36, 35, 31, .06), 0 16px 30px -14px rgba(36, 35, 31, .25); }
/* borderless icon with a soft warm glow aura baked around it */
.game-feature__icon { display: block; width: 52px; height: 52px; margin: -6px 0 .35rem -6px; filter: drop-shadow(0 0 7px rgba(232, 109, 59, .28)) drop-shadow(0 0 18px rgba(244, 193, 167, .35)); transition: filter 220ms ease, transform 220ms cubic-bezier(.22, .68, .34, 1); }
.game-feature:hover .game-feature__icon { filter: drop-shadow(0 0 10px rgba(232, 109, 59, .45)) drop-shadow(0 0 24px rgba(244, 193, 167, .5)); transform: translateY(-2px) rotate(-3deg); }
.game-feature h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.game-feature p { margin: 0; color: #615c53; font-size: .84rem; line-height: 1.6; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: clamp(.8rem, 1.8vw, 1.15rem); }
.gallery-item {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(36, 35, 31, .14);
  border-radius: .9rem;
  background: #e9dfce;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(36, 35, 31, .06), 0 8px 20px -10px rgba(36, 35, 31, .2);
  transition: transform 200ms cubic-bezier(.22, .68, .34, 1), box-shadow 200ms ease;
}
.gallery-item:hover, .gallery-item:focus-visible { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(36, 35, 31, .08), 0 18px 34px -14px rgba(36, 35, 31, .3); }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: center top; transition: transform 380ms cubic-bezier(.22, .68, .34, 1); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { display: block; padding: .55rem .3rem .65rem; color: var(--muted); font-family: var(--font-mono); font-size: .62rem; line-height: 1.4; text-align: center; letter-spacing: .015em; }
/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(24, 23, 20, .82); }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(92vw, 560px); max-height: 86dvh; border-radius: 1rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__close {
  position: absolute; top: .9rem; right: .9rem;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(250, 247, 239, .35); border-radius: 50%;
  background: rgba(36, 35, 31, .55); color: var(--paper);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: var(--orange); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(250, 247, 239, .35); border-radius: 50%;
  background: rgba(36, 35, 31, .55); color: var(--paper);
  font-size: 1.15rem; cursor: pointer;
}
.lightbox__nav:hover { background: var(--orange); }
.lightbox__nav--prev { left: .9rem; }
.lightbox__nav--next { right: .9rem; }
.lightbox__counter { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); color: rgba(250, 247, 239, .85); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; }
/* Roadmap timeline */
.game-timeline { position: relative; display: grid; gap: .9rem; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.timeline-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.timeline-step__rail { position: relative; display: flex; justify-content: center; }
/* connecting line between nodes */
.timeline-step__rail::before { content: ""; position: absolute; top: -0.9rem; bottom: -0.9rem; width: 2px; background: var(--line); }
.timeline-step:first-child .timeline-step__rail::before { top: 0; }
.timeline-step:last-child .timeline-step__rail::before { bottom: auto; height: 1.7rem; }
.timeline-step__node { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin-top: .15rem; border: 1px solid rgba(36, 35, 31, .22); border-radius: 50%; background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.timeline-step__card { margin-left: .55rem; padding: .95rem 1.15rem 1.05rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); transition: transform 200ms cubic-bezier(.22, .68, .34, 1), box-shadow 200ms ease; }
.timeline-step__card:hover { transform: translateX(3px); box-shadow: 0 2px 4px rgba(36, 35, 31, .06), 0 12px 26px -14px rgba(36, 35, 31, .25); }
.timeline-step h3 { margin: 0; font-size: 1.08rem; }
.timeline-step p { margin: .3rem 0 0; color: #615c53; font-size: .86rem; line-height: 1.6; }
/* done: muted, filled node with a crisp checkmark */
.timeline-step--done .timeline-step__node { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.timeline-step--done .timeline-step__node::before { content: ""; width: 11px; height: 6px; margin-top: -2px; border-left: 2.5px solid var(--paper); border-bottom: 2.5px solid var(--paper); transform: rotate(-45deg); }
.timeline-step--done .timeline-step__card { background: transparent; border-style: dashed; }
.timeline-step--done .timeline-step__card h3 { color: #57534b; }
.timeline-step--done .timeline-step__rail::before { background: rgba(36, 35, 31, .3); }
/* now: bright accent + pulsing node */
.timeline-step--now .timeline-step__node { border-color: rgba(232, 109, 59, .55); background: var(--orange); color: var(--paper); box-shadow: 0 0 0 0 rgba(232, 109, 59, .4); animation: node-pulse 2.2s ease-out infinite; }
.timeline-step--now .timeline-step__card { border-color: rgba(232, 109, 59, .45); background: linear-gradient(0deg, rgba(232, 109, 59, .06), rgba(232, 109, 59, .06)), var(--surface); }
.timeline-step--now .timeline-step__rail::before { background: linear-gradient(180deg, rgba(36, 35, 31, .3), var(--orange)); }
@keyframes node-pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 109, 59, .4); } 70% { box-shadow: 0 0 0 9px rgba(232, 109, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 109, 59, 0); } }
/* next/later: plain upcoming steps */
.timeline-step--next .timeline-step__node, .timeline-step--later .timeline-step__node { color: var(--muted); border-style: dotted; }
.roadmap-tag { display: inline-block; margin-left: .55rem; padding: .16rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .04em; text-transform: uppercase; vertical-align: .12em; }
.timeline-step--now .roadmap-tag { border-color: rgba(232, 109, 59, .4); background: rgba(232, 109, 59, .09); color: #b3502a; }
.game-support { padding-block: clamp(2rem, 3.5vw, 3rem) clamp(3.75rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.game-support__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.game-support p { max-width: 52ch; margin: .5rem 0 0; color: #615c53; font-size: .88rem; line-height: 1.65; }
.game-legal-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.game-legal-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: .7rem; font-weight: 600; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease; }
.game-legal-link:hover, .game-legal-link:focus-visible { transform: translateY(-2px); border-color: rgba(36, 35, 31, .35); color: var(--ink); }
.game-legal-link span { color: var(--orange); }

/* Legal pages */
.legal-hero { padding-block: clamp(2.5rem, 5vw, 4.3rem) 2.5rem; }
.legal-hero .eyebrow { margin-bottom: 1.05rem; }
.legal-hero h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.legal-hero .lede { max-width: none; margin-block: 1.4rem 0; }
.legal { padding-block: .5rem clamp(4rem, 7vw, 6rem); }
.legal-body { max-width: none; }
.legal-body h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
.legal-body p, .legal-body ul { max-width: none; margin: .6rem 0 0; color: #57534b; font-size: .95rem; line-height: 1.65; }
.legal-body ul { padding-left: 1.1rem; }
.legal-body li { margin-top: .35rem; }
.legal-body a { font-weight: 600; }
.legal-updated { margin: 0 0 .4rem; color: var(--muted); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .015em; text-transform: uppercase; }
.legal-contact { margin-top: 2.4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 100px; }
.footer-brand .brand-accent { width: 10px; }
.footer-brand .brand-wordmark picture { width: 118px; }
.footer-brand .brand-dash { width: 10px; height: 3px; margin-bottom: .2rem; }
.footer-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 2.5vw, 2rem); }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; font-family: var(--font-mono); font-size: .65rem; text-decoration: none; white-space: nowrap; }
.footer-contact { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; font-family: var(--font-mono); font-size: .72rem; text-decoration: none; }
.footer-right { display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; }
.footer-contact img { width: 30px; height: auto; object-fit: contain; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .22rem 2.4rem; color: var(--muted); font-family: var(--font-mono); font-size: .62rem; line-height: 1.5; }
.footer-bottom p { margin: 0; }
.footer-social { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.footer-social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.footer-social__link img { width: 30px; height: auto; transition: transform 160ms ease; }
.footer-social__link:hover img, .footer-social__link:focus-visible img { transform: scale(1.22) rotate(-5deg); }
.footer-social__link:active img { transform: scale(1.05) rotate(-8deg); }
.footer-cat { width: 30px; height: 25px; object-fit: contain; }

@media (min-width: 761px) and (max-width: 1040px) {
  .wrap { width: min(calc(100% - 2.5rem), var(--content)); }
  .header-inner { gap: 1.2rem; }
  .brand-wordmark picture { width: 172px; }
  .nav { gap: 1.15rem; }
  .nav-link { font-size: .64rem; }
  .header-note { gap: .5rem; }
  .terminal-mark { width: 42px; height: 34px; }
  .header-note__text { font-size: .65rem; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.4rem; }
  h1 { font-size: clamp(3.15rem, 5.5vw, 4.1rem); }
  .screen-terminal { font-size: .58rem; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 2rem), var(--content)); }
  .header-inner { min-height: 76px; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding-block: .75rem; }
  .brand-wordmark picture { width: clamp(150px, 44vw, 188px); }
  .brand-dash { margin-bottom: .27rem; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; order: 3; flex: 0 0 100%; width: 100%; align-items: stretch; justify-content: flex-start; gap: 0; padding-block: .45rem .1rem; border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; flex-direction: column; }
  .nav-link { justify-content: flex-start; min-height: 46px; padding: .45rem .15rem; font-size: .75rem; }
  .nav-link::after { right: auto; bottom: .2rem; left: 0; width: 5.8rem; }
  .header-note { display: none; }
  .hero { padding-block: 2.1rem 2.8rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .hero-copy .eyebrow { margin-bottom: .9rem; }
  h1 { font-size: clamp(2.9rem, 11.6vw, 4.4rem); line-height: .99; }
  .headline-underline { bottom: -.22em; width: clamp(5.5rem, 28vw, 8rem); }
  .lede { max-width: 38ch; margin-block: 1.35rem 1.25rem; font-size: 1rem; }
  .hero-art { width: min(100%, 600px); margin-inline: auto; }
  .screen-terminal { top: 33%; left: 41%; width: 29%; height: 19%; font-size: clamp(.48rem, 1.8vw, .62rem); }
  .section { padding-block: 2.5rem 3.8rem; }
  .section-head { align-items: flex-start; margin-bottom: 1.15rem; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: 1rem; }
  .project-badge { top: .55rem; left: .55rem; }
  .game-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .game-hero__art { order: -1; }
  .game-hero__frame-wrap { width: min(100%, 300px); margin-inline: auto; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); max-width: 440px; }
  .hero-features { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .hero-fact:last-child { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .game-support__grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox__nav--prev { left: .35rem; }
  .lightbox__nav--next { right: .35rem; }
  .project-detail__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .detail-image-wrap { width: fit-content; max-width: 100%; margin-inline: auto; height: auto; min-height: 0; }
  .detail-image-wrap picture { height: auto; }
  .detail-image { width: min(100%, 420px); max-width: 100%; height: auto; min-height: 0; max-height: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .about-doodle { width: min(100%, 260px); justify-self: center; }
  .footer-main { grid-template-columns: 1fr auto; gap: .75rem 1rem; padding-block: 1.2rem .7rem; }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; gap: .3rem 1.2rem; }
  .footer-right { grid-column: 2; grid-row: 1; gap: .75rem; }
  .footer-bottom { align-items: flex-start; padding-top: .5rem; }
}

@media (max-width: 420px) {
  .wrap { width: min(calc(100% - 1.5rem), var(--content)); }
  .header-inner { gap: .25rem .5rem; }
  .brand-wordmark picture { width: clamp(136px, 43vw, 164px); }
  .brand-dash { width: 12px; height: 3px; margin-bottom: .23rem; }
  .menu-toggle { min-width: 78px; padding-inline: .55rem; }
  .hero { padding-top: 1.85rem; }
  .hero-copy .eyebrow { font-size: .64rem; }
  h1 { font-size: clamp(2.72rem, 12.1vw, 3.35rem); }
  .lede { max-width: 34ch; font-size: .95rem; }
  .button-link { width: 100%; max-width: 270px; }
  .section-head { flex-direction: column; gap: .5rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-media { aspect-ratio: 1.35; }
  .game-feature { padding: 1rem 1.05rem 1.05rem; }
  .timeline-step { grid-template-columns: 38px minmax(0, 1fr); }
  .timeline-step__node { width: 30px; height: 30px; font-size: .64rem; }
  .footer-bottom { font-size: .58rem; }
  .footer-cat { width: 25px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* unlisted publisher page + public trailer loop */
.pitch-hero { padding-block: clamp(2rem, 4vw, 3rem); }
.pitch-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; }
.pitch-video { margin: 0; }
.pitch-video video, .trailer-loop { display: block; width: 100%; aspect-ratio: 9 / 16; background: #24231f; border-radius: 14px; object-fit: cover; }
.pitch-video figcaption { display: grid; gap: .2rem; padding-top: .55rem; font-family: var(--font-mono); font-size: .68rem; line-height: 1.45; color: var(--muted); }
.pitch-video figcaption strong { color: var(--ink); }
.pitch-list { display: grid; gap: .7rem; max-width: 62ch; padding-left: 1.2rem; line-height: 1.6; }
.trailer-wrap { max-width: 260px; }
.pitch-facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; max-width: 70ch; margin: 1.2rem 0 0; font-size: .8rem; line-height: 1.5; }
.pitch-facts dt { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.pitch-facts dd { margin: 0; }
.pitch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .pitch-cols { grid-template-columns: 1fr; } }
.trailer-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(36, 35, 31, .08); cursor: pointer; }
.trailer-play span { width: 76px; height: 76px; border-radius: 50%; background: rgba(250, 247, 239, .94); box-shadow: 0 6px 20px rgba(36, 35, 31, .3); position: relative; transition: transform 160ms; }
.trailer-play span::after { content: ""; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--orange); }
.trailer-play:hover span, .trailer-play:focus-visible span { transform: scale(1.08); }
.trailer-video { width: 100%; height: 100%; object-fit: cover; background: #24231f; }

/* hero trailer poster: flat fill, no crop, soft shadow */
.game-hero__frame[data-trailer] { aspect-ratio: 2 / 3; background: #ffe2c6; border: 0; box-shadow: 0 3px 6px rgba(36, 35, 31, .08), 0 18px 36px -14px rgba(36, 35, 31, .28); }
.game-hero__frame[data-trailer] img { object-fit: contain; object-position: center; }
.game-hero__frame[data-trailer].is-playing { aspect-ratio: 9 / 16; background: #24231f; }
/* breathing room in hero headings */
.game-hero .eyebrow { margin-bottom: 1.1rem; }
.game-hero__titleblock { margin: 0 0 1.25rem; }
.game-hero__tagline { margin-top: 0; }
.hero-features-block { margin-top: 2rem; }
.pitch-hero h1 { margin: .15rem 0 1rem; }
.pitch-hero .game-hero__tagline { margin-bottom: 1.5rem; }
