/* Tumbleforge Games
   ------------------------------------------------------------------
   The whole look hangs off the variables below. Change --accent and
   --accent-2 to recolour the site (the 3D orb picks them up too).
*/
:root {
  --bg: #e8e7e3;
  --paper: #ffffff;
  --soft: #f1f0ec;
  --ink: #141414;
  --ink-2: #55544f;
  --ink-3: #8b8a84;
  --line: rgba(20, 20, 20, 0.13);

  --panel: #151515;
  --panel-2: #1f1f1e;
  --panel-line: rgba(255, 255, 255, 0.09);
  --on-dark: #f4f3ef;
  --on-dark-2: #a5a49e;

  --accent: #ffb224;      /* molten amber */
  --accent-2: #f2601a;    /* ember */
  --accent-ink: #1b1305;

  /* Wordmark heat ramp: cold iron at the T, glowing at the full stop */
  --heat-0: #141414;
  --heat-1: #151414;
  --heat-2: #1a1413;
  --heat-3: #261411;
  --heat-4: #38150f;
  --heat-5: #50170c;
  --heat-6: #6d1a0a;
  --heat-7: #912209;
  --heat-8: #ba300b;
  --heat-9: #df4811;
  --heat-10: #f36d18;
  --heat-11: #fb9620;
  --heat-12: #ffb224;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
  --gutter: clamp(16px, 2.2vw, 32px);

  --font-display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id],
article[id],
footer[id] { scroll-margin-top: 88px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.frame {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 12px 12px;
}

/* Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--r-md);
  font: 500 14px/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translate(2px, 0); }
.btn-lg { padding: 16px 22px; font-size: 16px; border-radius: 14px; }

.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: var(--ink); color: #fff; }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #fff; color: var(--ink); }

.btn-outline { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--on-dark); background: transparent; }
.btn-outline:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gutter);
  background: var(--paper);
  transition: border-radius 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.45);
}

.brand {
  justify-self: start;
  padding: 2px 0.06em 2px 0;
  font: 800 21px/1 var(--font-display);
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* Same heat ramp as the big wordmark, in one sweep */
  .brand {
    background: linear-gradient(90deg, var(--heat-0) 0%, var(--heat-3) 30%, var(--heat-6) 50%, var(--heat-8) 66%, var(--heat-10) 84%, var(--heat-12) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
}
.js .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.js .show-brand .brand { opacity: 1; transform: none; pointer-events: auto; }

.nav {
  display: flex;
  gap: 2px;
  padding: 5px;
  background: var(--soft);
  border-radius: var(--r-md);
}
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.nav a:hover { background: var(--paper); }
.nav .nav-cta { display: none; }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}
.text-link {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle {
  display: none;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font: 500 14px/1.2 var(--font-body);
  cursor: pointer;
}

/* Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }

.hero-top {
  background: var(--paper);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: clamp(8px, 1.3vw, 22px) var(--gutter) clamp(14px, 1.8vw, 30px);
  overflow: hidden;
}

/* The wordmark: a bar of iron in the forge.
   TUMBLE is cold and still tumbling, each letter caught at its own angle.
   FORGE stands straight and heats up letter by letter, from dark iron at
   the F to a glowing tip at the full stop. Colours come from --heat-0..12. */
.wordmark {
  width: max-content;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.6vw;           /* JS fits this to the exact width */
  line-height: 0.84;
  white-space: nowrap;
  text-transform: uppercase;
}
.wm-l {
  display: inline-block;
  margin: -0.06em -0.052em;
  padding: 0.06em 0.03em;
  color: var(--b);
  transform-origin: 50% 78%;
  transform: translateY(var(--y, 0em)) rotate(var(--r, 0deg));
  transition: transform 0.55s var(--ease);
}
.wm-tumble .wm-l { margin-inline: -0.038em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wm-l {
    background: linear-gradient(90deg, var(--a), var(--b));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
}

.wm-tumble .wm-l:nth-child(1) { --a: var(--heat-0); --b: var(--heat-1); --r: -5deg;  --y: 0.012em;  --i: 0; }
.wm-tumble .wm-l:nth-child(2) { --a: var(--heat-1); --b: var(--heat-2); --r: 4deg;   --y: -0.034em; --i: 1; }
.wm-tumble .wm-l:nth-child(3) { --a: var(--heat-2); --b: var(--heat-3); --r: -3deg;  --y: 0.02em;   --i: 2; }
.wm-tumble .wm-l:nth-child(4) { --a: var(--heat-3); --b: var(--heat-4); --r: 6deg;   --y: -0.022em; --i: 3; }
.wm-tumble .wm-l:nth-child(5) { --a: var(--heat-4); --b: var(--heat-5); --r: -8deg;  --y: 0.028em;  --i: 4; }
.wm-tumble .wm-l:nth-child(6) { --a: var(--heat-5); --b: var(--heat-6); --r: 10deg;  --y: -0.014em; --i: 5; }
.wm-forge .wm-l:nth-child(1)  { --a: var(--heat-6);  --b: var(--heat-7);  --i: 5; }
.wm-forge .wm-l:nth-child(2)  { --a: var(--heat-7);  --b: var(--heat-8);  --i: 4; }
.wm-forge .wm-l:nth-child(3)  { --a: var(--heat-8);  --b: var(--heat-9);  --i: 3; }
.wm-forge .wm-l:nth-child(4)  { --a: var(--heat-9);  --b: var(--heat-10); --i: 2; }
.wm-forge .wm-l:nth-child(5)  { --a: var(--heat-10); --b: var(--heat-11); --i: 1; }
.wm-forge .wm-l:nth-child(6)  { --a: var(--heat-11); --b: var(--heat-12); --i: 0; }

/* Nudge a letter and it hops */
.wm-l:hover { transform: translateY(calc(var(--y, 0em) - 0.05em)) rotate(calc(var(--r, 0deg) * -1.3)); }

/* On load: TUMBLE drops in and settles, then the heat creeps up FORGE */
.js .wm-tumble .wm-l {
  animation:
    wm-drop 0.95s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--i) * 70ms + 120ms) backwards,
    wm-heat 1.2s ease-out calc(var(--i) * -90ms + 1900ms) backwards;
}
.js .wm-forge .wm-l { animation: wm-heat 1.2s ease-out calc(var(--i) * 110ms + 800ms) backwards; }
@keyframes wm-drop {
  0%   { opacity: 0; transform: translateY(-1.1em) rotate(calc(var(--r) - 38deg)); }
  20%  { opacity: 1; }
  62%  { transform: translateY(calc(var(--y) + 0.03em)) rotate(calc(var(--r) + 7deg)); }
  82%  { transform: translateY(calc(var(--y) - 0.012em)) rotate(calc(var(--r) - 2deg)); }
  100% { transform: translateY(var(--y)) rotate(var(--r)); }
}
@keyframes wm-heat {
  from { color: var(--heat-0); }
}
@media (forced-colors: active) {
  .wm-l { background: none; color: CanvasText; }
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(360px, 37vw, 620px);
  padding: clamp(20px, 2.2vw, 36px) var(--gutter) clamp(24px, 2.6vw, 44px);
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 80% at 16% 28%, rgba(255, 255, 255, 0.8), transparent 62%),
    radial-gradient(42% 62% at 86% 78%, rgba(255, 178, 36, 0.2), transparent 66%),
    radial-gradient(46% 70% at 62% 6%, rgba(255, 255, 255, 0.55), transparent 62%);
}
.hero-stage > * { position: relative; z-index: 6; }

/* The orb: a CSS sphere shows first, the WebGL one fades in over it */
.hero-stage > .orb {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 5;
  width: clamp(320px, 56vw, 880px);
  aspect-ratio: 1;
  transform: translate(-50%, -33%);
  pointer-events: none;
}
.orb::after {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: 8%;
  height: 7%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.3), transparent);
  filter: blur(8px);
}
.orb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s;
}
.orb-fallback {
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff6d6 0, #ffd166 15%, var(--accent) 40%, var(--accent-2) 70%, #8a2c06 100%);
  box-shadow: inset -18px -26px 60px rgba(90, 20, 0, 0.45);
  transition: opacity 0.9s;
}
.orb-fallback::before,
.orb-fallback::after {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  border: 2px solid rgba(120, 125, 135, 0.55);
  transform: rotateX(72deg) rotateZ(-18deg);
}
.orb-fallback::after {
  inset: -32%;
  border-color: rgba(242, 96, 26, 0.6);
  transform: rotateX(68deg) rotateY(24deg);
}
.orb.is-live canvas { opacity: 1; }
.orb.is-live .orb-fallback { opacity: 0; }

.hero-live {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: grid;
  gap: 8px;
  text-decoration: none;
}
.hero-live-row { display: flex; align-items: center; gap: 12px; }
.hero-live img { width: 40px; height: 40px; border-radius: 24%; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.4); }
.hero-live strong { font: 700 clamp(22px, 2vw, 30px)/1 var(--font-display); letter-spacing: -0.02em; }
.hero-live small { font-size: 13px; color: var(--ink-2); }
.hero-live:hover small { text-decoration: underline; text-underline-offset: 3px; }

.hero-index {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}
.hero-index i { margin-left: 8px; color: var(--ink-3); }

.hero-tagline {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: 19em;
  padding-bottom: 14px;
  border-bottom: 2px dotted var(--ink);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-cta {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: clamp(124px, 11vw, 172px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background 0.25s;
}
.hero-cta svg { width: 14px; height: 14px; flex: none; }
.hero-cta:hover { transform: scale(1.07); background: var(--ink); color: #fff; }

/* Dark panel: games ------------------------------------------------ */
.panel-dark {
  background: var(--panel);
  color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: clamp(24px, 2.6vw, 40px) clamp(16px, 3.4vw, 56px) clamp(16px, 3.4vw, 56px);
}

.kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--on-dark-2);
}
.kicker-light { color: var(--ink-2); }

.headline {
  max-width: 15em;
  margin: clamp(48px, 6vw, 104px) auto clamp(40px, 5vw, 80px);
  font: 600 clamp(34px, 5.2vw, 78px)/1.05 var(--font-display);
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}
.hl {
  display: inline-block;
  padding: 0 0.2em 0.06em;
  border-radius: 0.28em;
  color: var(--accent-ink);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 100% 100%;
  transition: background-size 0.9s var(--ease) 0.35s, color 0.35s 0.55s;
}
.js .reveal:not(.in) .hl { background-size: 0% 100%; color: inherit; }

.game + .game { margin-top: clamp(40px, 5vw, 80px); }

.game-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.25fr;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(20px, 2.4vw, 40px);
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  overflow: hidden;
}
.game-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}
.game-id { display: flex; align-items: center; gap: 18px; }
.game-icon { width: 84px; height: 84px; border-radius: 22%; flex: none; }
.game-genre { font-size: 13px; color: var(--on-dark-2); margin-bottom: 6px; }
.game-name {
  font: 700 clamp(34px, 3.6vw, 54px)/0.95 var(--font-display);
  letter-spacing: -0.035em;
}
.game-tagline { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -0.01em; }
.game-desc { max-width: 34em; font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--on-dark-2);
}
.game-actions { margin-top: auto; padding-top: 8px; }

.game-shots {
  display: flex;
  gap: 14px;
  min-width: 0;
  margin-right: calc(-1 * clamp(20px, 2.4vw, 40px));
  padding-right: clamp(20px, 2.4vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
          mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.game-shots::-webkit-scrollbar { display: none; }
.game-shots.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.game-shots img {
  flex: none;
  width: auto;
  height: clamp(340px, 31vw, 500px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  background: #2a2a29;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.feature {
  display: flex;
  flex-direction: column;
  min-height: clamp(250px, 23vw, 340px);
  padding: 22px;
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.feature-icons { display: flex; gap: 6px; }
.feature-icons span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--accent);
  transition: background 0.3s, color 0.3s;
}
.feature-icons svg { width: 20px; height: 20px; }
.feature h4 {
  max-width: 8.5em;
  margin-top: auto;
  padding-top: 32px;
  font: 400 clamp(21px, 1.9vw, 28px)/1.12 var(--font-body);
  letter-spacing: -0.02em;
}
.feature p {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--on-dark-2);
}
.feature:hover { transform: translateY(-6px); border-color: rgba(255, 178, 36, 0.55); background: #232322; }
.feature:hover .feature-icons span { background: var(--accent); color: var(--accent-ink); }

.soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
}
.soon-kicker { margin-bottom: 6px; font-size: 13px; color: var(--accent); }
.soon-text { max-width: 30em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; letter-spacing: -0.01em; }

.noscript-note { padding: 24px; text-align: center; }

/* Studio ----------------------------------------------------------- */
.studio { padding: clamp(28px, 3vw, 44px) clamp(16px, 3.4vw, 56px) clamp(72px, 8vw, 128px); }
.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
  margin-top: clamp(44px, 6vw, 96px);
}
.studio h2 {
  font: 700 clamp(38px, 5.6vw, 88px)/0.96 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede {
  max-width: 30em;
  margin-bottom: clamp(28px, 3vw, 44px);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.principles { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.principles i { padding-top: 3px; font-size: 13px; color: var(--ink-3); }
.principles h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.principles p { max-width: 36em; font-size: 15px; color: var(--ink-2); }

/* Call to action --------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(52px, 7vw, 112px) clamp(16px, 4vw, 64px);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-xl);
  text-align: center;
  overflow: hidden;
}
.tiles {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 0.9vw, 12px);
  margin-bottom: clamp(24px, 3vw, 44px);
}
.tiles span {
  display: grid;
  place-items: center;
  width: clamp(42px, 5.4vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: 700 clamp(18px, 2.3vw, 32px)/1 var(--font-display);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.14);
  animation: bob 3.4s ease-in-out infinite;
}
.tiles span:nth-child(even) { background: var(--ink); color: #fff; }
.tiles span:nth-child(2) { animation-delay: -0.5s; }
.tiles span:nth-child(3) { animation-delay: -1s; }
.tiles span:nth-child(4) { animation-delay: -1.5s; }
.tiles span:nth-child(5) { animation-delay: -2s; }
.tiles span:nth-child(6) { animation-delay: -2.5s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}
.cta h2 {
  font: 800 clamp(40px, 7.4vw, 120px)/0.92 var(--font-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.cta p {
  max-width: 28em;
  margin: clamp(16px, 1.8vw, 28px) auto clamp(24px, 2.6vw, 40px);
  font-size: clamp(17px, 1.45vw, 21px);
}

/* Footer ----------------------------------------------------------- */
.site-footer {
  margin-top: 12px;
  padding: clamp(40px, 5vw, 80px) clamp(16px, 3.4vw, 56px) 24px;
  background: var(--panel);
  color: var(--on-dark);
  border-radius: var(--r-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}
.footer-contact h2 { font: 600 clamp(15px, 1.2vw, 17px)/1.3 var(--font-body); color: var(--accent); }
.footer-contact p { max-width: 24em; margin: 8px 0 20px; color: var(--on-dark-2); }
.contact-mail {
  font: 600 clamp(19px, 2.3vw, 36px)/1.15 var(--font-display);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}
.contact-mail:hover { color: var(--accent); }
.footer-col h3 { margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--on-dark-2); }
.footer-col a { display: block; width: max-content; padding: 4px 0; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--panel-line);
  font-size: 12.5px;
  color: var(--on-dark-2);
}

/* Scroll reveal ---------------------------------------------------- */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise 0.8s var(--ease) var(--d, 0s) backwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
}

/* Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .game-card { grid-template-columns: 1fr; }
  .game-actions { margin-top: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { min-height: 230px; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-block; }
  .text-link { display: none; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    padding: 8px;
    background: var(--paper);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.5);
  }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .nav a:hover { background: var(--soft); }
  .nav-open .nav { display: flex; }
  .nav-open.site-header { border-radius: 0; }

  .studio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .contact-mail { font-size: clamp(19px, 5.4vw, 36px); }
  .soon { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --r-xl: 22px; }
  .frame { padding: 0 8px 8px; }

  /* Phone header: logo and Menu only; the store link moves into the menu */
  .header-actions .btn-soft { display: none; }
  .nav .nav-cta {
    display: block;
    margin-top: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    text-align: center;
  }
  .nav .nav-cta:hover { background: var(--ink); color: #fff; }

  .wordmark { font-size: 26vw; line-height: 0.82; }
  .wm-line { display: block; }

  .hero-stage {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 0;
    padding-top: 0;
  }
  .hero-stage > .orb {
    position: relative;
    left: auto;
    order: 0;
    width: 116%;
    margin: -24% -8% -12%;
    transform: none;
  }
  .hero-tagline { order: 1; max-width: none; font-size: 20px; }
  .hero-live { order: 2; }
  .hero-index {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    text-align: left;
  }
  .hero-index i { margin-left: 4px; }
  .hero-cta {
    order: 4;
    width: 100%;
    aspect-ratio: auto;
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
  }
  .hero-cta:hover { transform: none; }

  .kicker { flex-direction: column; gap: 2px; }
  .game-id { gap: 12px; }
  .game-id > div { min-width: 0; }
  .game-icon { width: 60px; height: 60px; }
  .game-name { font-size: clamp(24px, 8vw, 40px); overflow-wrap: anywhere; }
  .game-shots img { height: 380px; }
  .game-actions, .game-actions .btn, .cta .btn { width: 100%; justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature h4 { padding-top: 40px; max-width: none; }
  .soon .btn { width: 100%; justify-content: center; white-space: normal; }
  .principles li { grid-template-columns: 44px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal.in { opacity: 1; animation: none; }
  .tiles span { animation: none; }
  .js .wm-tumble .wm-l,
  .js .wm-forge .wm-l { animation: none; }
  .wm-l { transition: none; }
  .hl,
  .feature,
  .hero-cta,
  .btn,
  .btn svg { transition: none; }
  .js .reveal:not(.in) .hl { background-size: 100% 100%; color: var(--accent-ink); }
}
