:root {
  --red: #ff0033;
  --pink: #ff0080;
  --yellow: #ffe600;
  --ink: #000000;
  --paper: #fff8ec;
  --white: #ffffff;
  --line: 3px solid var(--ink);
  --shade: rgba(0, 0, 0, .2);
  --sx: 1;
  --sy: 1;
  --shadow: calc(var(--sx) * 6px) calc(var(--sy) * 6px) 0 var(--shade);
  --shadow-small: calc(var(--sx) * 4px) calc(var(--sy) * 4px) 0 var(--shade);
  --display: "Tilt Warp", Impact, sans-serif;
  --mono: var(--display);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-synthesis: none;
  line-height: 1.55;
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .75rem clamp(16px, 4vw, 48px);
  background: var(--ink);
  color: var(--white);
  border-bottom: var(--line);
}

.brand-logo {
  flex: none;
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

.top nav a {
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
}

.top nav a:hover { background: var(--yellow); color: var(--ink); }

.langs { display: flex; }

.langs button {
  padding: .25rem .6rem;
  border: var(--line);
  border-left-width: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.langs button:first-child { border-left-width: 3px; }
.langs button:hover { background: var(--yellow); }
.langs button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

.panel {
  position: sticky;
  top: var(--stick, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header, 64px));
  min-height: calc(100svh - var(--header, 64px));
  background: var(--paper);
  border-top: var(--line);
}

.panel[hidden] { display: none; }
.panel > * { width: 100%; }

.panel.fading > * { filter: blur(var(--blur)); }

.panel:nth-of-type(odd) { background: #f4f1ea; }
.panel:nth-of-type(even) { background: #eeeeec; }

.anchor { display: block; scroll-margin-top: 64px; }

.panel.hero {
  padding: clamp(32px, 6vw, 72px) 16px 88px;
  background: linear-gradient(var(--angle, 135deg), var(--yellow), #ffb000);
  border-top: 0;
}

.panel > .scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 36px;
  height: 48px;
  margin-left: -18px;
  pointer-events: none;
}

.scroll-hint svg { display: block; width: 100%; height: 100%; }

.scroll-hint path { animation: nudge 1.4s ease-in-out infinite; }
.scroll-hint path:nth-child(2) { animation-delay: .2s; }

@keyframes nudge {
  0%, 100% { opacity: .25; transform: translateY(-3px); }
  50% { opacity: 1; transform: translateY(3px); }
}

.hero-box {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 56px);
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: calc(var(--sx) * 10px) calc(var(--sy) * 10px) 0 var(--shade);
}

.hero-box h1 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 8.5vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-box p {
  display: inline-block;
  margin: 0;
  padding: .25rem .75rem;
  background: var(--yellow);
  border: var(--line);
  font-family: var(--mono);
  font-weight: 700;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 16px;
}

h2 {
  display: table;
  margin: 0 0 2rem;
  padding: .2rem .9rem;
  background: linear-gradient(var(--angle, 90deg), var(--pink), #ff0050);
  border: var(--line);
  box-shadow: var(--shadow-small);
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

h3 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
}

.lead {
  max-width: 62ch;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow);
}

.studio-row { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); }

.island {
  flex: none;
  width: 84px;
  height: auto;
  filter: drop-shadow(calc(var(--sx) * 4px) calc(var(--sy) * 4px) 0 var(--shade));
}

.featured {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow);
}

.capsule {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: var(--line);
}

.featured .body { padding: clamp(20px, 4vw, 40px); align-self: center; }
.featured h3 { font-size: clamp(2rem, 5vw, 3rem); }
.featured p { margin: 0 0 1rem; }

.tagline {
  display: inline;
  padding: .1rem .3rem;
  background: var(--yellow);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.tagline + p { margin-top: 1.25rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 1.5rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.fact {
  padding: .75rem 1.1rem 1rem;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow-small);
  font-weight: 700;
}

.fact b {
  display: block;
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

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

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--line);
  box-shadow: var(--shadow-small);
}

.video {
  display: block;
  width: min(100%, calc((100vh - var(--header, 64px) - 190px) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: var(--line);
  box-shadow: var(--shadow);
}

.mechs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.mech {
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow-small);
}

.mech p { margin: 0; }

.tag {
  display: inline-block;
  margin-bottom: .6rem;
  padding: 0 .4rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
}

.cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--yellow);
}

.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow);
}

.card h3 { margin: 1rem 1.1rem .4rem; }
.card p { margin: 0 1.1rem 1rem; }
.card .btn { margin: 0 1.1rem 1.25rem; }

.grid:not(:empty) { margin-bottom: 2rem; }

.platform { display: block; }
.platform:hover { opacity: .8; }
.platform img { display: block; width: auto; }
.platform.steam { margin-right: .75rem; }
.platform.steam img { height: 40px; }
.platform.apple img { height: 48px; }

.itch-link { flex: none; display: block; }
.itch-link img { display: block; }
.itch-link:hover { opacity: .8; }

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.member {
  display: flex;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow);
}

.photo {
  flex: none;
  width: 80px;
  aspect-ratio: 1;
  overflow: hidden;
  border-right: var(--line);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: .75rem 1rem;
}


.member h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
}

.member p { margin: 0; font-family: var(--mono); font-size: .9rem; font-weight: 700; }

.btn {
  display: inline-block;
  padding: .55rem 1rem;
  background: var(--red);
  border: var(--line);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}

a.btn:hover {
  transform: translate(calc(var(--sx) * 2px), calc(var(--sy) * 2px));
  box-shadow: calc(var(--sx) * 2px) calc(var(--sy) * 2px) 0 var(--shade);
}

a.btn:active {
  transform: translate(calc(var(--sx) * 4px), calc(var(--sy) * 4px));
  box-shadow: none;
}

.btn.off { background: var(--white); border-style: dashed; box-shadow: none; }

.mail {
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 3rem);
  overflow-wrap: anywhere;
}

.mail:hover { background: var(--yellow); }

.sun-pad {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: 104px;
  height: 104px;
  background: var(--white);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-small);
  cursor: grab;
  touch-action: none;
}

.sun-pad.dragging { cursor: grabbing; }

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: inherit;
}

.sun svg { display: block; width: 100%; height: 100%; }

.bottom {
  margin-top: 2rem;
  padding: 1.5rem clamp(16px, 4vw, 48px);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.bottom small {
  display: block;
  margin-top: .5rem;
  font-size: .75rem;
  font-weight: 400;
}

@media (max-width: 800px) {
  .mechs { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .featured, .shots, .shots.four { grid-template-columns: 1fr; }
  .capsule { height: auto; border-right: 0; border-bottom: var(--line); }
  .top { flex-wrap: wrap; gap: .5rem 1rem; }
  .hero-box { box-shadow: var(--shadow); }
}

@media (max-width: 520px) {
  .facts, .mechs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .panel { position: static; }
  .hero { position: relative; }
  .scroll-hint path { animation: none; }
}
