/* MartinMariezcuDev: 16-bit to UE5. Plain CSS, no build step. */

:root {
  --bg: #0c0d1e;
  --bg-raise: #15172e;
  --bg-deep: #08091a;
  --line: #2b2e5a;
  --ink: #eef0fa;
  --ink-2: #b4b9d6;
  --ink-3: #8b91b5;
  --cyan: #4fe6dc;
  --teal: #17b3a3;
  --green: #2e7d5b;
  --lime: #a8e05f;
  --violet: #5b3fd6;
  --violet-hi: #7a5cff;
  --lilac: #b59cff;
  --pink: #ff5cc8;
  --holo: linear-gradient(100deg, #5ef0e6 0%, #8fd0ff 28%, #b59cff 55%, #ff7ad1 100%);
  --paper: #dfe6f6;
  --paper-ink: #12142c;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-pixel: "Pixelify Sans", ui-monospace, "Courier New", monospace;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Yellowtail", "Brush Script MT", cursive;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);

  --gutter: 16px;
  --wrap: 1180px;
  --radius: 4px;
  --tile: 32px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; --tile: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9ff6ef; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--bg); padding: 8px 14px;
  font-family: var(--f-pixel); text-decoration: none;
}
.skip:focus { top: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; position: relative; }

/* ---------- decorative layer ---------- */
.doodles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.doodle {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s, 40px); height: var(--s, 40px);
  color: var(--c, var(--violet-hi)); opacity: var(--o, .75);
  transform: rotate(var(--r, 0deg));
}
.glow {
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 420px); aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(closest-side, var(--c, rgba(91,63,214,.35)), transparent);
  filter: blur(10px); pointer-events: none;
}
@media (max-width: 719px) { .doodle.wide-only { display: none; } }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 20; padding-top: 18px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; image-rendering: pixelated; }
.brand span { font-family: var(--f-pixel); font-size: 1.02rem; letter-spacing: .02em; }
@media (max-width: 560px) { .brand span { display: none; } }
.nav-links { position: relative; padding-bottom: 12px; }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 14px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px;
  font-family: var(--f-pixel); font-size: .98rem; color: var(--cyan); text-decoration: none;
}
.nav-links a:hover { color: var(--pink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links svg.ic { width: 16px; height: 16px; shape-rendering: crispEdges; }
.nav-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; width: 100%; }
@media (max-width: 600px) {
  .nav-links .hide-sm { display: none; }
  .nav-links ul { gap: 2px 12px; flex-wrap: nowrap; }
  .nav-links a, .menu summary { padding: 10px 2px; }
  .nav-links svg.ic { display: none; }
  .hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--cyan);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 12px; min-height: 48px;
  font-family: var(--f-pixel); font-size: 1.06rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; color: var(--bg); background: var(--b);
  border: 2px solid var(--b); border-radius: 0;
  box-shadow: 5px 5px 0 0 var(--violet);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.btn:hover { color: var(--bg); background: #9ff6ef; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 var(--violet); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 0 var(--violet); }
.btn.ghost { color: var(--ink); background: transparent; border-color: var(--lilac); box-shadow: 5px 5px 0 0 rgba(181,156,255,.28); }
.btn.ghost:hover { color: var(--ink); background: rgba(181,156,255,.12); }
.btn svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 84px) 0 0; }
.hero .wrap { z-index: 1; }
.stage { position: relative; display: grid; justify-items: center; }
.frame {
  position: relative; z-index: 2;
  width: min(100%, 1000px);
  padding: clamp(30px, 4.4vw, 56px) clamp(16px, 4vw, 52px) clamp(28px, 3.6vw, 46px);
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--holo) border-box;
  text-align: center;
}
.frame::after { /* offset ghost frame */
  content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); z-index: -1;
  border: 1.5px solid rgba(122, 92, 255, .45); pointer-events: none;
}
.frame .squares { position: absolute; top: -12px; left: 10px; display: flex; gap: 4px; background: var(--bg); padding: 0 6px; }
.squares i { width: 11px; height: 11px; border: 2px solid var(--cyan); display: block; }
.squares i:nth-child(2) { border-color: var(--lilac); }
.squares i:nth-child(3) { border-color: var(--pink); }
.frame .tag {
  position: absolute; top: -12px; right: 14px; background: var(--bg); padding: 0 8px;
  font-family: var(--f-pixel); font-size: .86rem; color: var(--ink-3); line-height: 22px;
}
.title-holo {
  font-family: var(--f-display); font-weight: 900; letter-spacing: -.01em;
  font-size: clamp(2.3rem, 0.9rem + 4.6vw, 3.5rem); line-height: 1.02;
  background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #3b2aa6);
  display: inline-block; transform: skewX(-7deg);
  white-space: nowrap;
}
.title-holo .seg { display: inline; }
@media (max-width: 980px) { .title-holo { white-space: normal; } .title-holo .seg { display: block; } }
.script {
  font-family: var(--f-script); font-weight: 400; color: var(--ink);
  font-size: clamp(1.55rem, 1rem + 2vw, 2.5rem); line-height: 1.2; margin: .35em 0 0;
  transform: rotate(-2deg);
}
.hero-lede { max-width: 52ch; margin: 44px auto 0; text-align: center; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--f-pixel); font-size: .9rem; color: var(--ink-2);
  border: 1.5px solid var(--line); padding: 3px 10px; background: rgba(21,23,46,.7);
}
.mark { width: 56px; height: 56px; margin: 0 auto 14px; }

/* node wire from the frame into the reel */
.wire { position: relative; z-index: 1; width: 64px; height: clamp(84px, 9vw, 120px); margin: 0 auto; color: var(--lilac); }
.wire path.flow { stroke-dasharray: 7 7; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .wire path.flow { animation: none; } }

/* ---------- window component ---------- */
.win { position: relative; display: block; color: inherit; text-decoration: none; }
.win-frame { /* offset frame behind */
  position: absolute; inset: 0; transform: translate(12px, 12px);
  border: 2px solid rgba(122, 92, 255, .55); pointer-events: none;
}
.win-body {
  position: relative; background: var(--bg-deep);
  border: 2px solid var(--violet); transition: transform .18s cubic-bezier(.3,.7,.2,1);
}
.win-bar {
  display: flex; align-items: center; gap: 10px; min-height: 26px; padding: 3px 6px 3px 6px;
  background: var(--violet); color: #fff; transition: background-color .18s ease;
  font-family: var(--f-pixel); font-size: .88rem; line-height: 1.2;
}
.win-bar .squares { display: flex; gap: 3px; }
.win-bar .squares i { width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.9); }
.win-bar .squares i:nth-child(2), .win-bar .squares i:nth-child(3) { border-color: rgba(255,255,255,.9); }
.win-bar .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bar button {
  font: inherit; color: #fff; background: rgba(0,0,0,.25); border: 1.5px solid rgba(255,255,255,.7);
  padding: 1px 8px; cursor: pointer; min-height: 22px;
}
.win-bar button:hover { background: rgba(0,0,0,.45); }
.win-media { position: relative; overflow: hidden; background: #000; }
.win-media img, .win-media video { width: 100%; height: 100%; object-fit: cover; }
a.win:hover .win-body, a.win:focus-visible .win-body, .win.live:hover .win-body { transform: translate(12px, 12px); }
a.win:hover .win-bar, a.win:focus-visible .win-bar, .win.live:hover .win-bar { background: var(--violet-hi); }
a.win:focus-visible { outline: none; }
a.win:focus-visible .win-body { outline: 3px solid var(--pink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .win-body { transition: none; } }

/* pins on node windows */
.pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--cyan); z-index: 2;
}
.pin.in { top: -8px; left: 50%; margin-left: -7px; }
.pin.out { bottom: -8px; left: 50%; margin-left: -7px; border-color: var(--pink); }

/* ---------- reel ---------- */
.reel { width: min(100%, 900px); margin: 0 auto; }
.reel .win-media { aspect-ratio: 16 / 9; }
.reel .play {
  position: absolute; inset: 0; display: grid; place-items: end; border: 0; padding: clamp(12px, 3vw, 28px); cursor: pointer;
  background: linear-gradient(180deg, rgba(12,13,30,0) 45%, rgba(12,13,30,.6));
  color: var(--ink);
}
.reel .play > span {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--pink); color: var(--bg); font-family: var(--f-pixel); font-size: 1.1rem; font-weight: 600;
  box-shadow: 5px 5px 0 var(--violet);
}
.reel .play:hover > span { background: #ff8fd9; }
.reel .play svg { width: 18px; height: 18px; shape-rendering: crispEdges; }
.reel.playing .play { display: none; }
.reel-cap { text-align: center; margin-top: 26px; color: var(--ink-3); font-family: var(--f-pixel); font-size: .92rem; }

/* ---------- section dividers ---------- */
.divider { position: relative; height: 56px; margin: clamp(56px, 8vw, 104px) 0 0; }
.divider svg { position: absolute; left: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(44px, 6vw, 80px) 0 0; }
.sec-title {
  font-family: var(--f-display); font-weight: 700; color: var(--cyan);
  font-size: var(--step-3); text-align: center; letter-spacing: -.01em;
}
.sec-lede { text-align: center; color: var(--ink-2); max-width: 60ch; margin: 14px auto 0; }

/* features (product) */
.features { position: relative; margin-top: 64px; }
.feature-wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.feature {
  position: relative; z-index: 1;
  display: grid; gap: 28px 56px; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-bottom: clamp(70px, 9vw, 130px);
}
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.feature:nth-of-type(even) .feature-media { order: 2; }
.feature-media { padding-right: 12px; }
.feature .win-media { aspect-ratio: 16 / 9; }
.feature .win-media.square { aspect-ratio: 16 / 11; }
.feature .win-media.square video { object-position: 50% 30%; }
.feature h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.15; }
.feature .kicker { font-family: var(--f-pixel); color: var(--lime); font-size: 1rem; margin-bottom: 10px; display: block; }
.feature p { color: var(--ink-2); margin-top: 14px; max-width: 54ch; }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; max-width: 56ch; }
.feature li { position: relative; padding-left: 22px; margin: 7px 0; color: var(--ink); }
.feature li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--cyan); }
.feature li:nth-child(2)::before { background: var(--lilac); }
.feature li:nth-child(3)::before { background: var(--pink); }
.feature li:nth-child(4)::before { background: var(--lime); }
@media (max-width: 860px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .feature-wire { display: none; }
}

.extras { display: grid; gap: 44px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding-right: 12px; }
.extras .win-media { aspect-ratio: 16 / 9; }
.extras h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); margin-top: 22px; }
.extras p { color: var(--ink-2); margin: 8px 0 0; }

/* gallery */
.gallery { display: grid; gap: 50px 36px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 48px; padding-right: 12px; }
.gallery .win-media { aspect-ratio: 4 / 3; }
.gallery figcaption { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; margin-top: 22px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide .win-media { aspect-ratio: 1440 / 810; }
.gallery .wide figcaption span { display: block; font-family: var(--f-body); font-weight: 400; color: var(--ink-2); font-size: var(--step-0); margin-top: 4px; }
.gallery figure { margin: 0; }
.note { color: var(--ink-3); font-size: var(--step--1); text-align: center; margin-top: 40px; }

/* pixel resolve */
.px { position: relative; }
.px > picture, .px > img { display: block; width: 100%; height: 100%; }
.px img { width: 100%; height: 100%; object-fit: cover; }
.px canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; opacity: 0; pointer-events: none;
}
.px.px-on canvas { opacity: 1; }
.px.px-on > picture, .px.px-on > img { visibility: hidden; }

/* specs */
.specs { margin: 48px auto 0; max-width: 940px; padding-right: 12px; }
.specs .win-body { padding: 0; }
.specs dl { margin: 0; display: grid; grid-template-columns: minmax(130px, 210px) 1fr; }
.specs dt, .specs dd { margin: 0; padding: 16px 20px; border-top: 1.5px solid var(--line); }
.specs dl > :nth-child(1), .specs dl > :nth-child(2) { border-top: 0; }
.specs dt { font-family: var(--f-pixel); color: var(--cyan); font-size: 1rem; }
.specs dd { color: var(--ink); }
.specs dd small { display: block; color: var(--ink-2); font-size: var(--step--1); margin-top: 4px; }
@media (max-width: 600px) {
  .specs dl { grid-template-columns: 1fr; }
  .specs dd { border-top: 0; padding-top: 0; }
  .specs dt { padding-bottom: 6px; }
  .specs dl > :nth-child(1) { border-top: 0; }
}

/* FAQ */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border: 2px solid var(--line); background: var(--bg-raise); margin-bottom: 14px; }
.faq details[open] { border-color: var(--violet); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-pixel); font-size: 1.5rem; color: var(--cyan);
}
.faq details[open] summary::after { content: "-"; color: var(--pink); }
.faq summary:hover { background: rgba(122,92,255,.12); }
.faq .ans { padding: 0 20px 18px; color: var(--ink-2); max-width: 70ch; }
.faq .ans p:last-child { margin-bottom: 0; }

/* about band (light) */
.about {
  position: relative; margin-top: clamp(60px, 8vw, 110px);
  background-color: var(--paper); color: var(--paper-ink);
  padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.about::before { /* dither field */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/dither.svg"); background-size: 64px 64px; image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 100%);
}
.about .top-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 48px; }
.about .wrap { display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }
.hey { font-family: var(--f-script); font-weight: 400; font-size: clamp(3.6rem, 2rem + 6vw, 6.4rem); line-height: 1; color: var(--paper-ink); transform: rotate(-4deg); margin: 0 0 .45em -.05em; }
.about p { font-size: var(--step-1); line-height: 1.55; max-width: 56ch; color: #23264a; }
.about a { color: #4b2fc0; font-weight: 700; }
.about a:hover { color: #b0127f; }
.about .sign { font-family: var(--f-pixel); font-size: 1rem; color: #4a4f7c; margin-top: 18px; }

/* contact */
.contact { text-align: center; }
.contact .big { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); max-width: 30ch; margin: 18px auto 0; line-height: 1.3; }
.contact .big a { color: var(--pink); overflow-wrap: anywhere; }
.links-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* footer */
.foot { margin-top: clamp(60px, 8vw, 100px); padding: 36px 0 44px; border-top: 1.5px solid var(--line); color: var(--ink-3); font-size: var(--step--1); position: relative; }
.foot .wrap { display: flex; gap: 18px 40px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.foot .brand span { display: inline; }
.foot nav ul { list-style: none; display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 0; padding: 0; }
.foot nav a { font-family: var(--f-pixel); font-size: .95rem; }
.foot p { margin: 10px 0 0; max-width: 60ch; }

/* cta band */
.cta { text-align: center; }
.cta .script { margin-top: 0; }

/* career, teaching, credits (about band) */
.career-title { font-family: var(--f-pixel); font-weight: 600; font-size: 1.1rem; color: #3b2aa6; margin: 0 0 14px; }
.career { margin-top: 24px; align-self: start; }
.side-notes { margin-top: 24px; align-self: start; padding-top: 4px; }
.side-notes .career-title + .small { margin-bottom: 26px; }
.about .small { font-size: var(--step-0); color: #2a2d52; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { /* stepped track: pixel at the start, smooth at the end */
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 4px;
  background: linear-gradient(0deg, #5ef0e6, #b59cff 55%, #ff7ad1);
}
.timeline li { position: relative; margin: 0 0 16px; display: grid; gap: 1px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 18px; height: 18px;
  background: var(--paper); border: 3px solid #3b2aa6;
}
.timeline li:nth-last-child(n+3)::before { border-radius: 3px; }
.timeline li:nth-last-child(n+5)::before { border-radius: 6px; }
.timeline li.now::before { border-radius: 50%; background: #ff5cc8; border-color: #12142c; }
.timeline .yr { font-family: var(--f-pixel); font-size: .95rem; color: #4b2fc0; }
.timeline b { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; color: var(--paper-ink); line-height: 1.3; }
.timeline .at { color: #2a2d52; }
.timeline .did { color: #3d4170; font-size: var(--step--1); max-width: 52ch; }
.credits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.credits li {
  font-family: var(--f-body); font-weight: 700; font-size: .98rem; color: var(--paper-ink);
  background: rgba(255,255,255,.7); border: 2px solid #12142c; padding: 6px 12px;
  box-shadow: 3px 3px 0 #b59cff;
}
.credits li.more { background: transparent; border-style: dashed; box-shadow: none; font-weight: 400; color: #2a2d52; }

/* product page bits */
.title-holo.big { font-size: clamp(2.3rem, 1rem + 7.2vw, 5.8rem); white-space: nowrap; }
@media (max-width: 980px) { .title-holo.big { white-space: nowrap; } }
.sec-title.sub { font-size: var(--step-2); margin: 20px 0 40px; }
.feature:first-of-type .pin.in, .feature:last-of-type .pin.out { display: none; }
.extras .win-body .pin, .gallery .pin { display: none; }
.extras article { min-width: 0; }

/* ---------- products menu (nav) ---------- */
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px;
  font-family: var(--f-pixel); font-size: .98rem; color: var(--cyan);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--pink); }
.menu .caret { width: 10px; height: 10px; shape-rendering: crispEdges; transition: transform .15s steps(2); }
.menu[open] .caret { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
}
.menu-item { display: flex; align-items: center; gap: 10px; }
.nav-links .menu-main {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 30px; color: var(--paper-ink); text-decoration: none;
}
.nav-links .menu-main:hover, .nav-links .menu-main:focus-visible { color: var(--paper-ink); background: rgba(181,156,255,.18); }
.menu-main::before { /* our pixel cursor */
  content: ""; position: absolute; left: 9px; top: 50%; width: 14px; height: 11px; margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff5cc8' d='M0 0h2v1h1v1h1v1h1v1h-1v1h-1v1h-1v1H0V6h1V5h1V4h1V3H2V2H1V1H0zM4 0h2v1h1v1h1v1h1v1H8v1H7v1H6v1H4V6h1V5h1V4h1V3H6V2H5V1H4z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  opacity: 0; image-rendering: pixelated;
}
.menu-main:hover::before, .menu-main:focus-visible::before { opacity: 1; }
.menu-main img { width: 40px; height: 40px; flex: none; }
.menu-main b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--paper-ink); }
.menu-main small { display: block; font-family: var(--f-body); font-size: .9rem; line-height: 1.35; color: #3d4170; margin-top: 2px; }
.nav-links .menu-sub {
  flex: none; align-self: center; margin-right: 6px;
  font-family: var(--f-pixel); font-size: .92rem; color: #4b2fc0; text-decoration: none;
  border: 2px solid currentColor; padding: 5px 10px; min-height: 36px; display: inline-flex; align-items: center;
}
.nav-links .menu-sub:hover, .nav-links .menu-sub:focus-visible { color: #fff; background: #4b2fc0; border-color: #4b2fc0; }

/* ---------- our RPG box: white panel, navy rim, lilac inner line, pink corner studs ---------- */
.pxbox {
  background-color: #fffdf6; color: var(--paper-ink);
  border: 3px solid var(--paper-ink);
  box-shadow: inset 0 0 0 3px #fffdf6, inset 0 0 0 5px var(--lilac), 6px 6px 0 0 var(--violet);
  background-image:
    linear-gradient(var(--pink), var(--pink)), linear-gradient(var(--pink), var(--pink)),
    linear-gradient(var(--pink), var(--pink)), linear-gradient(var(--pink), var(--pink));
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: left 8px top 8px, right 8px top 8px, left 8px bottom 8px, right 8px bottom 8px;
}

/* ---------- studio product ---------- */
.product-card {
  display: grid; gap: 40px 56px; align-items: center; margin-top: 52px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.product-media { margin-right: 12px; }
.product-card .win-media { aspect-ratio: 16 / 9; }
.product-icon { width: 52px; height: 52px; margin-bottom: 16px; }
.product-card h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); }
.product-text p { color: var(--ink-2); margin: 12px 0 0; max-width: 46ch; }
.product-text .meta { font-family: var(--f-pixel); color: var(--lime); font-size: .95rem; }
.product-card .links-row { justify-content: flex-start; margin-top: 28px; }
@media (max-width: 860px) { .product-card { grid-template-columns: 1fr; } }

/* ---------- overworld tiles ---------- */
.overworld { position: relative; z-index: 1; margin-top: 30px; overflow: hidden; }
.tile-strip { position: relative; overflow: hidden; margin-top: clamp(56px, 8vw, 104px); }
.overworld canvas, .tile-strip canvas {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.road-tiles canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.overworld:not(.tiles-on) { display: none; }
.tiles-ready .no-tiles { display: none; }
.overworld + .wire, .overworld + .wire + .reel { margin-top: 0; }

/* ---------- product page hero: the key art in the title frame ---------- */
.frame.banner { padding: 12px; width: min(100%, 1060px); }
.frame.banner .px { aspect-ratio: 16 / 9; }
.frame.banner .px img { object-fit: cover; }
.tagline { text-align: center; margin-top: 34px; }

/* ---------- about: dialogue box ---------- */
.intro { min-width: 0; }
.dialog { position: relative; padding: 34px 28px 26px; margin-top: 10px; }
.about .dialog p { font-size: var(--step-1); line-height: 1.55; color: #23264a; max-width: 56ch; }
.about .dialog p:last-of-type { margin-bottom: 0; }
.dialog-name {
  position: absolute; top: -17px; left: 22px; padding: 2px 12px 3px;
  background: var(--paper-ink); color: var(--cyan); font-family: var(--f-pixel); font-size: .98rem; line-height: 1.4;
  box-shadow: 3px 3px 0 var(--violet);
}
.dialog-more {
  position: absolute; right: 18px; bottom: 12px; width: 14px; height: 11px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff5cc8' d='M0 0h7v1H6v1H5v1H4v1H3V3H2V2H1V1H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.dialog.done .dialog-more { opacity: 1; animation: blink 1.1s steps(1) infinite; }
.dialog.typing { cursor: pointer; }
.tw-off { color: transparent; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dialog.done .dialog-more { animation: none; } }

/* ---------- handheld console (our own design) ---------- */
.handheld { margin: 0 auto; width: min(100%, 340px); }
.hh-body {
  position: relative; padding: 14px 20px 30px; border-radius: 14px 14px 26px 26px;
  background: linear-gradient(180deg, #e9e7e1 0%, #dcd9d1 55%, #ccc9c0 100%);
  box-shadow: 0 0 0 2px var(--paper-ink), 12px 14px 0 0 rgba(18,20,44,.26),
    inset 3px 3px 0 rgba(255,255,255,.8), inset -4px -6px 0 rgba(0,0,0,.08);
  transform: rotate(-2.5deg);
}
.hh-ridge { position: relative; height: 10px; margin: -2px -8px 14px; border-bottom: 2px solid rgba(18,20,44,.13); }
.hh-ridge::before, .hh-ridge::after { content: ""; position: absolute; bottom: -2px; width: 2px; height: 12px; background: rgba(18,20,44,.13); }
.hh-ridge::before { left: 24px; } .hh-ridge::after { right: 24px; }
.hh-bezel {
  position: relative; padding: 24px 30px 10px; border-radius: 10px;
  background: #34365a; box-shadow: inset 0 2px 0 rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.25);
}
.hh-stripes {
  position: absolute; left: 12px; right: 12px; top: 10px; height: 5px;
  background:
    linear-gradient(90deg, #5ef0e6, #b59cff 55%, #ff7ad1) 0 0 / 100% 2px no-repeat,
    linear-gradient(90deg, #5ef0e6, #b59cff 55%, #ff7ad1) 0 4px / 100% 1px no-repeat;
  opacity: .85;
}
.hh-led { position: absolute; left: 11px; top: 44%; }
.hh-led i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.hh-screen {
  position: relative; display: block; width: 100%; aspect-ratio: 10 / 9; padding: 0; border: 0; margin: 0;
  overflow: hidden; cursor: pointer; background: #0f380f; border-radius: 2px;
  box-shadow: 0 0 0 2px #1b1c33;
}
.hh-screen picture, .hh-screen img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hh-screen img { object-fit: cover; }
.hh-screen .l-px { opacity: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
.hh-screen[data-stage="gb"] .l-gb, .hh-screen[data-stage="c80"] .l-c80, .hh-screen[data-stage="c160"] .l-c160 { opacity: 1; }
.hh-screen::after { /* glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%), radial-gradient(closest-side, transparent 78%, rgba(0,0,0,.25));
}
.hh-screen[data-stage="gb"]::after { background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0) 38%); box-shadow: inset 0 0 18px rgba(15,56,15,.55); }
.hh-screen:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.hh-label {
  display: block; margin-top: 8px; text-align: center;
  font-family: var(--f-pixel); font-weight: 600; font-size: .92rem; letter-spacing: .16em; color: #dfe2fa;
}
.hh-controls { display: flex; justify-content: space-between; align-items: center; margin: 26px 2px 0 4px; }
.hh-dpad { position: relative; width: 76px; height: 76px; }
.hh-dpad::before, .hh-dpad::after {
  content: ""; position: absolute; background: #2a2c46; border-radius: 3px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 3px 0 rgba(0,0,0,.2);
}
.hh-dpad::before { left: 26px; top: 0; width: 24px; height: 76px; }
.hh-dpad::after { left: 0; top: 26px; width: 76px; height: 24px; }
.hh-dpad i { position: absolute; z-index: 1; left: 32px; top: 32px; width: 12px; height: 12px; border-radius: 50%; background: #22243a; box-shadow: inset 0 2px 2px rgba(0,0,0,.45); }
.hh-ab { display: flex; gap: 14px; transform: rotate(-24deg); margin-right: 4px; }
.hh-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-pixel); font-weight: 600; font-size: .82rem; color: #34365a; }
.hh-btn i {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffb3e3, #ff5cc8 46%, #c42b93);
  box-shadow: 0 3px 0 #7d1c60, 0 0 0 2px rgba(18,20,44,.22);
  transition: transform .06s, box-shadow .06s;
}
.hh-btn.b { margin-top: 24px; }
.hh-btn.b i { background: radial-gradient(circle at 34% 30%, #d8c8ff, #9a7cff 46%, #5b3fd6); box-shadow: 0 3px 0 #3b2aa6, 0 0 0 2px rgba(18,20,44,.22); }
.hh-btn.a { cursor: pointer; }
.hh-btn.pressed i, .hh-btn.a:active i { transform: translateY(2px); box-shadow: 0 1px 0 #7d1c60, 0 0 0 2px rgba(18,20,44,.22); }
.hh-pills { display: flex; gap: 16px; justify-content: center; margin: 20px 40px 0 0; }
.hh-pills span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: var(--f-pixel); font-size: .72rem; line-height: 1; color: #555a86; }
.hh-pills i { width: 34px; height: 9px; border-radius: 6px; background: #8c899d; transform: rotate(-24deg); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.hh-speaker { position: absolute; right: 24px; bottom: 20px; display: flex; gap: 6px; transform: rotate(-24deg); }
.hh-speaker i { width: 5px; height: 38px; border-radius: 3px; background: rgba(18,20,44,.2); box-shadow: inset 0 2px 1px rgba(0,0,0,.25); }
.hh-cap { text-align: center; margin-top: 26px; font-family: var(--f-pixel); font-size: .9rem; color: #4a4f7c; }
@media (prefers-reduced-motion: reduce) { .hh-btn i { transition: none; } }

/* ---------- career road: climbing up ---------- */
.road-arrow { display: none; width: 24px; height: 24px; color: var(--pink); shape-rendering: crispEdges; margin: 0 0 8px calc(var(--tile) * 1.5 - 12px); }
.road-body { position: relative; }
.road-tiles { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--tile) * 3); overflow: hidden; }
.tiles-ready .road-arrow { display: block; }
.tiles-ready .timeline { padding-left: calc(var(--tile) * 3 + 18px); }
.tiles-ready .timeline::before, .tiles-ready .timeline li::before { display: none; }
.tiles-ready .timeline li { margin: 0; align-content: start; padding-top: 2px; }
.timeline .lv {
  justify-self: start; font-family: var(--f-pixel); font-weight: 600; font-size: .82rem; line-height: 1.6;
  color: var(--lime); background: var(--paper-ink); padding: 0 7px; margin-bottom: 3px;
}
.timeline li.now .lv { background: var(--pink); color: var(--paper-ink); }

/* ---------- studio hero map: one overworld around the trailer ---------- */
.map-zone { position: relative; margin-top: 30px; overflow: hidden; }
.map-zone > .tiles-canvas {
  position: absolute; left: 50%; top: 0; z-index: 0; transform: translateX(-50%);
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.map-inner { position: relative; z-index: 1; }
.map-top { height: calc(var(--tile) * 8); }
.map-bottom { height: calc(var(--tile) * 3); }
html:not(.tiles-ready) .map-top, html:not(.tiles-ready) .map-bottom { display: none; }
.island { display: block; width: min(100%, 980px); margin: 0 auto; }
.tiles-ready .map-zone .island { width: min(100% - 2 * var(--tile), 980px); }
@media (min-width: 720px) { .tiles-ready .map-zone .island { width: min(100vw - var(--tile) * 6, 980px); } }
.island .win-body { background: var(--bg); }
.island-content { padding: clamp(26px, 4vw, 46px) clamp(16px, 3.6vw, 46px) clamp(30px, 4vw, 50px); }
.island .product-card { margin-top: clamp(28px, 4vw, 44px); gap: 32px 48px; }
@media (min-width: 861px) { .island .product-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 40px; } }
html:not(.tiles-ready) .map-zone { margin-top: clamp(44px, 6vw, 80px); }

/* =====================================================================
   Pixel world: the GBC-era RPG look. Scoped to <body class="px-world">.
   Every UI colour comes from the tile palettes in assets/js/tiles.js.
   ===================================================================== */
.px-world {
  --pk: #3a3a39;                       /* ink outline (from the tileset) */
  --pk-2: #33352f;                     /* body text on the pale panels */
  --cream: #ebf5e8;
  --tan: #bc9866; --tan-d: #826217; --tan-l: #e2cfa4;
  --grass: #b2fc4f; --grass-d: #6dc612; --grass-l: #e2ffbc; --grass-dd: #2f6e0c;
  --wtr: #6a63fb; --wtr-d: #3f37b3; --wtr-l: #c9c6ff;
  --teal: #2f6e0c; --teal-l: #b2fc4f; --teal-d: #1a3d06;
  --wood: #826217; --wood-d: #463824; --wood-l: #bc9866;
  --red: #d16c53;
  --sky-0: #141238; --sky-1: #1b1a4c; --sky-2: #242261; --sky-3: #2f2c78;
  --f-px: "Press Start 2P", "Pixelify Sans", ui-monospace, monospace;
  --bw: 12px;                          /* pixel border: 3 screen px per art px */
  background: var(--sky-0) url("../img/stars.svg") 0 0 / 192px 192px;
  color: var(--cream);
}
@media (max-width: 719px) { .px-world { --bw: 8px; } }
.px-world a { color: var(--teal-l); }
.px-world a:hover { color: var(--tan-l); }
.px-world :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 0; }
.px-world .skip { background: var(--cream); color: var(--pk); border: 3px solid var(--pk); }

/* the box: cream panel, ink rim with stepped corners, tan inner line, hard pixel shadow */
.px-world .gbbox, .px-world .pxbox {
  position: relative; background: none; box-shadow: none; color: var(--pk);
  border: var(--bw) solid transparent;
  border-image: url("../img/box-cream.svg") 4 fill / var(--bw) / 0 stretch;
  filter: drop-shadow(5px 5px 0 var(--pk));
}
.px-world .ribbon {
  position: absolute; left: 50%; top: calc(-1 * var(--bw)); transform: translate(-50%, -58%);
  margin: 0; white-space: nowrap; z-index: 2;
  font-family: var(--f-px); font-weight: 400; font-size: 16px; line-height: 1;
  color: var(--cream); background: var(--teal); border: 3px solid var(--pk);
  padding: 12px 18px 10px; text-shadow: 2px 2px 0 var(--teal-d);
  box-shadow: inset 0 3px 0 #66ba37, inset 0 -3px 0 var(--teal-d), 4px 4px 0 var(--pk);
}
@media (min-width: 720px) { .px-world .ribbon { font-size: 24px; padding: 14px 24px 12px; } }

/* pixel buttons: bevelled, press down 2px, cursor on hover and focus */
.px-world .links-row { gap: 18px 30px; }
.px-world .btn {
  --b: var(--grass); --bd: var(--grass-d); --bl: var(--grass-l);
  position: relative; min-height: 48px; padding: 12px 18px 14px;
  font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--pk); background: var(--b); border: 3px solid var(--pk); border-radius: 0;
  box-shadow: inset 0 -4px 0 var(--bd), inset 0 3px 0 var(--bl), 0 4px 0 var(--pk);
  transform: none; transition: none;
}
.px-world .btn:hover { color: var(--pk); background: var(--bl); box-shadow: inset 0 -4px 0 var(--bd), inset 0 3px 0 #fff, 0 4px 0 var(--pk); transform: none; }
.px-world .btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--bd), inset 0 3px 0 var(--bl), 0 2px 0 var(--pk); }
.px-world .btn.ghost { --b: var(--tan); --bd: var(--tan-d); --bl: var(--tan-l); color: var(--pk); }
.px-world .btn.water { --b: var(--wtr-l); --bd: var(--wtr); --bl: #c8f2ff; }
.px-world .btn::before {
  content: ""; position: absolute; left: -20px; top: 50%; width: 9px; height: 15px; margin-top: -8px;
  background: url("../img/cursor.svg") 0 0 / 100% 100% no-repeat; opacity: 0;
}
.px-world .btn:hover::before, .px-world .btn:focus-visible::before { opacity: 1; }
.px-world .btn:focus-visible { outline-offset: 4px; }
.px-world .btn svg { width: 16px; height: 16px; }

/* nav: a GBC menu box with a ▶ cursor */
.px-world .nav { padding-top: 16px; }
.px-world .brand img { width: 44px; height: 44px; image-rendering: pixelated; }
.px-world .brand span { color: var(--cream); text-shadow: 2px 2px 0 var(--pk); font-weight: 600; }
.px-world .nav-wave { display: none; }
.px-world .nav-links {
  padding: 0 4px; border: 8px solid transparent;
  border-image: url("../img/box-cream.svg") 4 fill / 8px / 0 stretch;
  filter: drop-shadow(4px 4px 0 var(--pk));
}
.px-world .nav-links ul { gap: 0 4px; }
.px-world .nav-links svg.ic { display: none; }
.px-world .nav-links > ul > li > a, .px-world .menu summary {
  position: relative; padding: 6px 8px 6px 18px; color: var(--pk); font-weight: 600; font-size: 1rem;
}
.px-world .nav-links > ul > li > a:hover, .px-world .menu summary:hover, .px-world .menu[open] summary { color: var(--wtr-d); }
.px-world .nav-links > ul > li > a::before, .px-world .menu summary::before {
  content: ""; position: absolute; left: 5px; top: 50%; width: 6px; height: 11px; margin-top: -6px;
  background: url("../img/cursor.svg") 0 0 / 100% 100% no-repeat; opacity: 0;
}
.px-world .nav-links > ul > li > a:hover::before, .px-world .nav-links > ul > li > a:focus-visible::before,
.px-world .menu summary:hover::before, .px-world .menu summary:focus-visible::before, .px-world .menu[open] summary::before { opacity: 1; }
.px-world .nav-links a[aria-current="page"] { color: var(--grass-dd); }
.px-world .menu-panel { position: absolute; top: calc(100% + 14px); right: -8px; padding: 6px; } /* floats over the page; .pxbox would make it relative */
.px-world .nav-links .menu-main:hover, .px-world .nav-links .menu-main:focus-visible { background: rgba(188,152,102,.3); }
.px-world .menu-main::before { background-image: url("../img/cursor.svg"); width: 8px; height: 13px; margin-top: -7px; left: 10px; }
.px-world .menu-main small { color: var(--pk-2); }
.px-world .nav-links .menu-sub { color: var(--wtr-d); border-width: 3px; }
.px-world .nav-links .menu-sub:hover, .px-world .nav-links .menu-sub:focus-visible { background: var(--wtr-d); border-color: var(--wtr-d); color: var(--cream); }
@media (max-width: 600px) {
  .px-world .nav-links > ul > li > a, .px-world .menu summary { padding: 8px 4px 8px 14px; font-size: .95rem; }
  .px-world .nav-links > ul > li > a::before, .px-world .menu summary::before { left: 3px; }
}

/* studio hero: a night sky with a title sign, banding down into the overworld */
.px-world .hero {
  padding: clamp(30px, 5vw, 60px) 0 clamp(34px, 5vw, 56px);
  background:
    url("../img/stars.svg") 96px 40px / 192px 192px,
    linear-gradient(180deg, transparent 0 42%, var(--sky-1) 42% 60%, var(--sky-2) 60% 80%, var(--sky-3) 80% 100%);
}
.px-world .moon { position: absolute; right: 9%; top: 6px; width: 48px; height: 48px; image-rendering: pixelated; pointer-events: none; }
@media (max-width: 719px) { .px-world .moon { width: 36px; height: 36px; right: 6%; top: 0; } }
.title-sign {
  position: relative; width: fit-content; max-width: 100%; margin: 0 auto; text-align: center;
  padding: 22px clamp(16px, 4vw, 44px) 20px;
  border: var(--bw) solid transparent;
  border-image: url("../img/box-wood.svg") 4 / var(--bw) / 0 stretch;
  background: repeating-linear-gradient(180deg, var(--wood) 0 21px, var(--wood-d) 21px 24px) padding-box;
  filter: drop-shadow(6px 6px 0 var(--pk));
}
.title-sign::before, .title-sign::after { /* posts */
  content: ""; position: absolute; top: 100%; width: 18px; height: 26px; margin-top: var(--bw);
  background: var(--wood); border: 3px solid var(--pk); border-top: 0; box-shadow: inset 4px 0 0 var(--wood-l);
}
.title-sign::before { left: 16%; } .title-sign::after { right: 16%; }
.sign-title {
  margin: 0; font-family: var(--f-px); font-weight: 400; color: var(--cream);
  font-size: 24px; line-height: 1.3; text-shadow: 3px 3px 0 var(--pk);
}
.sign-title .seg { display: block; }
@media (min-width: 600px) { .sign-title .seg { display: inline; } }
@media (min-width: 720px) { .sign-title { font-size: 32px; } }
@media (min-width: 1100px) { .sign-title { font-size: 40px; text-shadow: 4px 4px 0 var(--pk); } }
.sign-sub {
  display: inline-block; margin: 16px 0 0; padding: 5px 12px 6px;
  font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  color: var(--pk); background: var(--cream); border: 3px solid var(--pk); box-shadow: inset 0 -3px 0 var(--tan), 3px 3px 0 var(--wood-d);
}
@media (min-width: 720px) { .sign-sub { font-size: 1.25rem; } }
.px-world .hero-lede.gbbox {
  max-width: 34rem; margin: 52px auto 0; padding: 10px 18px 12px;
  color: var(--pk-2); font-size: var(--step-0); line-height: 1.5; text-align: center;
}
.px-world .map-zone { margin-top: 0; background: linear-gradient(var(--sky-3) 0 var(--tile), transparent var(--tile)); }

/* products panel on the lake */
.px-world .island.gbbox { padding: clamp(40px, 5vw, 54px) clamp(14px, 3.4vw, 40px) clamp(26px, 4vw, 40px); }
.px-world .island .sec-lede { margin-top: 0; color: var(--pk-2); }
.px-world .island .product-card { margin-top: clamp(24px, 3.6vw, 36px); }
.pic-frame {
  display: block; position: relative; padding: 10px; background: var(--wood); border: 3px solid var(--pk);
  box-shadow: inset 3px 3px 0 var(--wood-l), inset -3px -3px 0 var(--wood-d), 5px 5px 0 var(--pk);
}
.pic-frame .px { aspect-ratio: 16 / 9; outline: 3px solid var(--wood-d); }
.px-world .product-media { margin-right: 0; }
.px-world .product-icon { image-rendering: pixelated; }
.px-world .product-card h3 { font-family: var(--f-px); font-weight: 400; font-size: 20px; color: var(--pk); text-shadow: 2px 2px 0 var(--tan); line-height: 1.3; }
@media (min-width: 720px) { .px-world .product-card h3 { font-size: 24px; } }
.px-world .product-text p { color: var(--pk-2); }
.px-world .product-text .meta { font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; color: var(--grass-dd); }

/* about band: parchment with a dither */
.px-world .about { margin-top: 0; background-color: #e9f3df; color: var(--pk); border-top: 6px solid var(--pk); }
.px-world .about::before {
  background-image: repeating-conic-gradient(rgba(109,198,18,.13) 0 25%, transparent 0 50%);
  background-size: 6px 6px;
}
.px-world .about .top-wave { display: none; }
.px-world .hey {
  font-family: var(--f-px); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--pk);
  transform: none; margin: 0 0 34px; text-shadow: 3px 3px 0 var(--tan);
}
@media (min-width: 720px) { .px-world .hey { font-size: 32px; text-shadow: 4px 4px 0 var(--tan); } }
.px-world .about p, .px-world .about .dialog p { color: var(--pk-2); }
.px-world .about a { color: var(--wtr-d); }
.px-world .about a:hover { color: var(--teal-d); }
.px-world .about .sign { color: #4c4f44; }
.px-world .dialog { padding: 30px 24px 26px; }
.px-world .dialog-name { background: var(--pk); color: var(--grass); box-shadow: 3px 3px 0 var(--tan-d); left: 10px; top: -30px; }
.px-world .career-title { color: var(--grass-dd); }
.px-world .about .small { color: var(--pk-2); }
.px-world .timeline .yr { color: var(--wtr-d); }
.px-world .timeline b { font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: 1.12rem; color: var(--pk); }
.px-world .timeline .at { color: var(--pk-2); }
.px-world .timeline .did { color: #4c4f44; }
.px-world .timeline .lv { color: var(--grass-l); }
.px-world .road-arrow { color: var(--red); }
.px-world .timeline li.now .lv { background: var(--red); color: var(--cream); }
.px-world .credits li { background: var(--cream); color: var(--pk); border: 3px solid var(--pk); box-shadow: 3px 3px 0 var(--tan-d); }
.px-world .credits li.more { background: transparent; box-shadow: none; color: var(--pk-2); }
.px-world .hh-cap { color: #4c4f44; }

/* contact */
.px-world .contact { padding-top: clamp(80px, 9vw, 120px); }
.contact-box { max-width: 780px; margin: 0 auto; padding: 50px clamp(16px, 4vw, 44px) 36px; text-align: center; }
.px-world .contact .big { font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); color: var(--pk); max-width: 34ch; margin: 0 auto; }
.px-world .contact .big a { color: var(--wtr-d); }
.px-world .contact .sec-lede { color: var(--pk-2); }

/* footer */
.px-world .foot { border-top: 6px solid var(--pk); box-shadow: inset 0 3px 0 var(--sky-3); color: #b4b2dc; }
.px-world .foot nav a { color: var(--cream); }
.px-world .foot nav a:hover { color: var(--grass); }
.px-world .foot .brand img { image-rendering: pixelated; }

.px-world .dialog-more { filter: hue-rotate(-40deg); }
.px-world .contact .big a:hover, .px-world .island a:not(.btn):hover { color: var(--grass-dd); }
.px-world .foot .credit { margin-top: 6px; font-family: "Pixelify Sans", var(--f-pixel); }

/* ---------- pixel world: shared boxes for the product page ---------- */
.px-world .feature-text, .px-world .extras article, .px-world .faq details, .px-world .specs.gbbox {
  position: relative; color: var(--pk);
  border: var(--bw) solid transparent;
  border-image: url("../img/box-cream.svg") 4 fill / var(--bw) / 0 stretch;
  filter: drop-shadow(5px 5px 0 var(--pk));
}

/* windows become wood-framed pictures with a plank header; no title bars in purple */
.px-world .win-frame { display: none; }
.px-world .win-body {
  background: var(--wood); border: 3px solid var(--pk); padding: 0 8px 8px;
  box-shadow: inset 3px 3px 0 var(--wood-l), inset -3px -3px 0 var(--wood-d), 5px 5px 0 var(--pk);
  transition: none; transform: none !important;
}
.px-world .win-bar {
  background: transparent; color: var(--cream); min-height: 32px; padding: 5px 2px 5px;
  font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: .95rem; text-shadow: 2px 2px 0 var(--wood-d);
}
.px-world a.win:hover .win-bar, .px-world .win.live:hover .win-bar { background: transparent; }
.px-world .win-bar .squares { display: none; }
.px-world .win-bar button {
  min-height: 24px; padding: 1px 10px 3px; font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; color: var(--pk);
  background: var(--cream); border: 2px solid var(--pk); box-shadow: inset 0 -2px 0 var(--tan), 0 2px 0 var(--pk); text-shadow: none;
}
.px-world .win-bar button:hover { background: #fff; }
.px-world .win-bar button:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--tan); }
.px-world .win-media { outline: 3px solid var(--wood-d); }
.px-world .pin { border-radius: 0; background: var(--cream); border: 3px solid var(--pk); width: 16px; height: 16px; }
.px-world .pin.in { top: -10px; margin-left: -8px; } .px-world .pin.out { bottom: -10px; margin-left: -8px; border-color: var(--pk); background: var(--grass); }

/* section headings on the night sky */
.px-world .sec-title {
  font-family: var(--f-px); font-weight: 400; font-size: 22px; line-height: 1.3; color: var(--grass);
  text-shadow: 3px 3px 0 var(--teal-d); letter-spacing: 0;
}
@media (min-width: 720px) { .px-world .sec-title { font-size: 32px; text-shadow: 4px 4px 0 var(--teal-d); } }
.px-world .sec-title.sub { font-size: 20px; }
@media (min-width: 720px) { .px-world .sec-title.sub { font-size: 24px; } }
.px-world .sec-lede { color: #d4d2f0; }
.px-world .gbbox .sec-lede, .px-world .contact-box .sec-lede { color: var(--pk-2); }
.px-world .contact-box .sec-lede a { color: var(--wtr-d); }

/* product hero: chips, the billboard on the grass, the trailer on the lake */
.px-world .hero-actions { gap: 18px 34px; margin-top: 30px; }
.px-world .chips { margin-top: 26px; gap: 10px; }
.px-world .chips li {
  font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: .92rem; color: var(--pk);
  background: var(--cream); border: 3px solid var(--pk); padding: 3px 10px 5px; box-shadow: inset 0 -3px 0 var(--tan), 3px 3px 0 var(--pk);
}
.map-top.short { height: var(--tile); }
.billboard { position: relative; width: min(100% - 2 * var(--tile), 780px); margin: 0 auto calc(var(--tile) * 4); }
.billboard .pic-frame { padding: 12px; }
.billboard::before, .billboard::after { /* posts */
  content: ""; position: absolute; top: 100%; width: 18px; height: calc(var(--tile) * 0.9);
  background: var(--wood); border: 3px solid var(--pk); border-top: 0; box-shadow: inset 4px 0 0 var(--wood-l);
}
.billboard::before { left: 18%; } .billboard::after { right: 18%; }
.px-world .trailer-box { padding: clamp(40px, 5vw, 52px) clamp(12px, 3vw, 32px) clamp(18px, 3vw, 28px); }
.px-world .trailer-box .reel { width: 100%; }
.px-world .trailer-box .reel-cap { margin: 14px 0 0; color: var(--pk-2); font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; }
.px-world .reel .play > span { background: var(--grass); color: var(--pk); border: 3px solid var(--pk); box-shadow: inset 0 -4px 0 var(--grass-d), inset 0 3px 0 var(--grass-l), 0 4px 0 var(--pk); }
.px-world .reel .play:hover > span { background: var(--grass-l); }
.px-world .reel .play { background: linear-gradient(180deg, transparent 55%, rgba(20,18,56,.55)); }

/* features */
.px-world .feature-text { padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 28px); }
.px-world .feature h3 { font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); color: var(--pk); line-height: 1.2; }
.px-world .feature p { color: var(--pk-2); }
.px-world .feature li { color: var(--pk); }
.px-world .feature li::before { background: var(--grass-d); outline: 2px solid var(--pk); }
.px-world .feature li:nth-child(2)::before { background: var(--wtr); }
.px-world .feature li:nth-child(3)::before { background: var(--red); }
.px-world .feature li:nth-child(4)::before { background: var(--tan); }
.px-world .extras article { padding: 18px; }
.px-world .extras h3 { font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: 1.35rem; color: var(--pk); }
.px-world .extras p { color: var(--pk-2); }

/* gallery: framed renders with a plaque */
.px-world .gallery figcaption {
  display: table; margin: 22px auto 0; padding: 4px 12px 6px; text-align: center;
  font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: 1rem; color: var(--pk);
  background: var(--cream); border: 3px solid var(--pk); box-shadow: inset 0 -3px 0 var(--tan), 3px 3px 0 var(--pk);
}
.px-world .gallery .wide figcaption span { color: var(--pk-2); font-family: var(--f-body); font-weight: 400; font-size: var(--step--1); }

/* specs */
.px-world .specs.gbbox { padding: 6px 4px; }
.px-world .specs dt { font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; color: var(--grass-dd); }
.px-world .specs dd { color: var(--pk); }
.px-world .specs dd small { color: var(--pk-2); }
.px-world .specs dt, .px-world .specs dd { border-top-color: rgba(58,58,57,.18); border-top-width: 2px; border-top-style: dashed; }
.px-world .specs a { color: var(--wtr-d); }

/* FAQ: dialogue boxes with a ▶ cursor that turns down when open */
.px-world .faq details { background: none; margin-bottom: 22px; }
.px-world .faq details[open] { border-color: transparent; }
.px-world .faq summary {
  padding: 12px 16px 12px 34px; font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: 1.12rem; color: var(--pk);
}
.px-world .faq summary::after { content: none; }
.px-world .faq summary::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 14px; margin-top: -7px;
  background: url("../img/cursor.svg") 0 0 / 100% 100% no-repeat;
}
.px-world .faq details[open] summary::before { transform: rotate(90deg); }
.px-world .faq summary:hover { background: rgba(188,152,102,.22); }
.px-world .faq .ans { color: var(--pk-2); padding: 0 16px 14px 34px; }

/* call to action on the product page */
.px-world .cta .hero-actions { margin-top: 26px; }
.px-world .cta .contact-box .sec-lede { margin-top: 0; }
.px-world .feature-wire path.glow { opacity: .9; }
.px-world .brand { flex: none; }
.px-world .brand img { flex: none; min-width: 36px; }
@media (max-width: 600px) {
  .px-world .nav .wrap { gap: 10px; }
  .px-world .brand img { width: 36px; height: 36px; }
  .px-world .nav-links ul { gap: 0 2px; }
  .px-world .nav-links > ul > li > a, .px-world .menu summary { padding: 8px 3px 8px 12px; font-size: .9rem; }
  .px-world .reel .play > span { font-size: .95rem; padding: 10px 14px; }
}

/* DunHeon card: a small live village drawn with the tile engine */
.dun-scene { position: relative; overflow: hidden; height: 192px; background: #6dc612; outline: 3px solid var(--wood-d); }
@media (min-width: 720px) { .dun-scene { height: 288px; } }
.dun-scene canvas { position: absolute; left: 50%; top: 0; transform: translateX(-50%); image-rendering: pixelated; image-rendering: crisp-edges; }
.game-card { padding-top: clamp(24px, 3.6vw, 36px); border-top: 3px dashed var(--wood-d, #826217); }
.wip-tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: .85rem;
  color: #fff8e0; background: #d16c53; border: 2px solid #463824; box-shadow: 2px 2px 0 #463824; }
/* the first project sits close under the ribbon (no lede line any more) */
.px-world .island > .product-card:first-of-type { margin-top: 8px; }
.px-world .island.gbbox { padding-top: clamp(34px, 4vw, 44px); }

/* ---------- handheld, pixel art: the shell is an SVG drawn pixel by pixel (86 x 140 art pixels) ---------- */
.handheld { width: min(100%, 344px); }
.hh-px { position: relative; width: 100%; aspect-ratio: 86 / 140; }
.hh-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hh-px .hh-screen {
  position: absolute; left: calc(17 / 86 * 100%); top: calc(20 / 140 * 100%); width: calc(50 / 86 * 100%); height: calc(45 / 140 * 100%);
  aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #0f380f;
}
.hh-px .hh-screen::after { background: linear-gradient(135deg, rgba(255,255,255,.10) 0 30%, transparent 30%); box-shadow: none; }
.hh-px .hh-screen[data-stage="gb"]::after { background: linear-gradient(135deg, rgba(255,255,255,.08) 0 30%, transparent 30%); box-shadow: none; }
.hh-px .hh-label {
  position: absolute; left: 0; right: 4.65%; top: calc(67 / 140 * 100%); margin: 0;
  font-family: "Pixelify Sans", var(--f-pixel); font-weight: 600; font-size: clamp(11px, 3.4vw, 15px); letter-spacing: .2em; color: #e9e6da;
}
.hh-px .hh-btn.a {
  position: absolute; left: calc(64 / 86 * 100%); top: calc(83 / 140 * 100%); width: calc(13 / 86 * 100%); height: calc(13 / 140 * 100%);
  display: block; cursor: pointer; padding: 0;
}
.hh-art .hhA, .hh-art .hhB { transition: transform .06s; }
.hh-px:has(.hh-btn.a.pressed) .hhA, .hh-px:has(.hh-btn.a:active) .hhA { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .hh-art .hhA { transition: none; } }
/* chimney smoke rising out of the map, over the sign's legs, up to the subtitle */
.smoke-plume { position: absolute; z-index: 2; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; }
/* tile canvases keep their exact integer scale: they overhang their box instead of being squeezed */
.tiles-canvas { max-width: none; }
/* not on sale yet: looks like the button, does nothing */
.btn.soon { cursor: default; opacity: .75; filter: saturate(.6); pointer-events: none; }
/* version numbers and quick facts: Pixelify's 5 reads as an S at this size, so these use the readable body face */
.px-world .product-text .meta, .px-world .chips li { font-family: var(--f-body); font-weight: 700; letter-spacing: .01em; }
/* the first screen is a colour pixel portrait now, not Game Boy green */
.hh-px .hh-screen { background: #121212; }
.px-world .timeline .yr { font-family: var(--f-body); font-weight: 700; letter-spacing: .01em; }
