@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0d0c13;
  --ink-2: #14131c;
  --ink-3: #1c1a27;
  --line: rgba(244, 241, 234, 0.09);
  --line-2: rgba(244, 241, 234, 0.16);
  --fg: #f4f1ea;
  --fg-2: #b4b0c2;
  --fg-3: #8a8699;

  --coral: #ff6b57;
  --sun: #ffc53d;
  --mint: #36d69a;
  --sky: #4fa3ff;
  --violet: #9a7cff;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 85% -10%, rgba(154, 124, 255, 0.16), transparent 60%),
    radial-gradient(50vmax 35vmax at -10% 20%, rgba(255, 107, 87, 0.11), transparent 60%),
    radial-gradient(40vmax 30vmax at 50% 110%, rgba(54, 214, 154, 0.08), transparent 60%),
    var(--ink);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.55;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 12, 19, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-mark rect {
  transition: transform 0.5s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.brand:hover .brand-mark rect:nth-child(2) {
  transform: translateY(-2px);
}
.brand:hover .brand-mark rect:nth-child(4) {
  transform: rotate(8deg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--fg);
  background: rgba(244, 241, 234, 0.06);
}
.nav-links .nav-cta {
  color: var(--ink);
  background: var(--fg);
  margin-left: 6px;
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  background: var(--sun);
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-primary {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(255, 197, 61, 0.55);
}
.btn-primary:hover {
  background: #ffd36a;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(255, 197, 61, 0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--fg-2);
  background: rgba(244, 241, 234, 0.04);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 8vw, 96px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  background: rgba(20, 19, 28, 0.6);
}
.eyebrow .dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(54, 214, 154, 0.15);
}
.eyebrow .dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(54, 214, 154, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(54, 214, 154, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(54, 214, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 214, 154, 0); }
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  font-weight: 700;
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 800;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
.hero h1 .accent {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(100deg, var(--coral) 0%, var(--sun) 45%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 26px 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--fg-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg-3);
  font-size: 14px;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--fg-2);
}

/* ---------- Playable card ---------- */

.play {
  position: relative;
  border-radius: 28px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.05), rgba(244, 241, 234, 0.015)),
    var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -40px rgba(0, 0, 0, 0.8),
    0 0 0 8px rgba(244, 241, 234, 0.02);
}
.play::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 197, 61, 0.5), transparent 35%, transparent 65%, rgba(154, 124, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.play-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.play-title small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--fg-3);
  margin-top: 2px;
}
.play-stats {
  display: flex;
  gap: 8px;
}
.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.06);
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.board {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 2.4vw, 18px);
  margin: 22px 0 18px;
  padding: 34px 8px 24px;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(79, 163, 255, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.25);
  min-height: 260px;
}
.tube {
  --h: 46px;
  position: relative;
  width: clamp(46px, 11vw, 58px);
  height: calc(var(--h) * 4 + 18px);
  padding: 0 6px 6px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  border: 2px solid rgba(244, 241, 234, 0.28);
  border-top: none;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 40%, rgba(255, 255, 255, 0.05));
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.25s;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.tube::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -5px;
  right: -5px;
  height: 6px;
  border-radius: 6px;
  background: rgba(244, 241, 234, 0.28);
  transition: background 0.25s;
}
.tube:hover {
  border-color: rgba(244, 241, 234, 0.45);
}
.tube:hover::before {
  background: rgba(244, 241, 234, 0.45);
}
.tube.selected {
  transform: translateY(-18px);
  border-color: var(--sun);
  box-shadow: 0 18px 30px -18px rgba(255, 197, 61, 0.6);
}
.tube.selected::before {
  background: var(--sun);
}
.tube.shake {
  animation: shake 0.35s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.tube.done {
  border-color: rgba(54, 214, 154, 0.6);
}
.tube.done::before {
  background: var(--mint);
}
.seg {
  height: var(--h);
  flex: none;
  border-radius: 8px;
  background: var(--c);
  box-shadow:
    inset 0 -6px 10px rgba(0, 0, 0, 0.18),
    inset 0 4px 6px rgba(255, 255, 255, 0.25);
  animation: drop 0.4s var(--ease) both;
}
.seg:first-child {
  border-radius: 8px 8px 16px 16px;
}
@keyframes drop {
  from { transform: translateY(-24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.play-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-3);
}
.play-foot p {
  margin: 0;
  min-height: 1.6em;
}
.play-foot .win {
  color: var(--mint);
  font-weight: 600;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  font: 600 14px/1 var(--body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.link-btn:hover {
  background: rgba(244, 241, 234, 0.06);
  border-color: var(--fg-3);
}
.link-btn svg {
  width: 15px;
  height: 15px;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.confetti i {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--c);
  animation: burst 1.1s var(--ease) forwards;
}
@keyframes burst {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: rgba(20, 19, 28, 0.5);
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--fg-2);
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--c, var(--coral));
  transform: rotate(12deg);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

section {
  scroll-margin-top: 80px;
}
.section {
  padding: clamp(80px, 11vw, 140px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
}
.section-head p {
  margin: 0;
  color: var(--fg-2);
  font-size: 18px;
  max-width: 32em;
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.04), rgba(244, 241, 234, 0.01)), var(--ink-2);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.card h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.03em;
}
.card p {
  margin: 12px 0 0;
  color: var(--fg-2);
  max-width: 30em;
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
}
.card .icon svg {
  width: 24px;
  height: 24px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
}

.card-games {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 107, 87, 0.16), transparent 55%),
    radial-gradient(70% 100% at 80% 100%, rgba(154, 124, 255, 0.16), transparent 60%),
    var(--ink-2);
}
.card-games h3 {
  font-size: clamp(32px, 4vw, 52px);
}
.card-games .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--coral);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.card-games p {
  font-size: 18px;
}
.card-games:hover {
  transform: none;
}
.card-span-2 {
  grid-column: span 2;
}
.card-span-3 {
  grid-column: span 3;
}

/* Block field (decorative) */
.field {
  position: relative;
  aspect-ratio: 5 / 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 8px;
}
.field b {
  border-radius: 12px;
  background: var(--c);
  box-shadow:
    inset 0 -8px 14px rgba(0, 0, 0, 0.2),
    inset 0 6px 10px rgba(255, 255, 255, 0.22);
  transform: translateY(var(--o, 0));
  animation: bob 6s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
.field b.e {
  background: rgba(244, 241, 234, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: none;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.principle {
  padding: 36px 32px 8px 0;
}
.principle + .principle {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.principle .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.principle h3 {
  margin-top: 40px;
  font-size: clamp(24px, 2.4vw, 30px);
}
.principle p {
  margin: 14px 0 0;
  color: var(--fg-2);
}

/* Studio facts */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.fact {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 26px 24px;
}
.fact dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.fact dd {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.fact dd small {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--fg-2);
}

.studio-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  margin-bottom: 48px;
}
.studio-copy p {
  margin: 0;
  color: var(--fg-2);
  font-size: 18px;
}
.studio-copy p strong {
  color: var(--fg);
  font-weight: 600;
}

/* Contact */

.contact {
  padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(36px, 7vw, 96px) clamp(24px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(255, 197, 61, 0.2), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(255, 107, 87, 0.18), transparent 60%),
    radial-gradient(50% 80% at 100% 100%, rgba(79, 163, 255, 0.18), transparent 60%),
    var(--ink-3);
  border: 1px solid var(--line-2);
}
.contact-card h2 {
  font-size: clamp(40px, 6.6vw, 84px);
  font-weight: 800;
  max-width: 12em;
  margin: 0 auto;
}
.contact-card p {
  color: var(--fg-2);
  font-size: 19px;
  max-width: 34em;
  margin: 22px auto 0;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding: 10px 10px 10px 28px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease), background 0.3s;
  max-width: 100%;
}
.mail span {
  overflow-wrap: anywhere;
}
.mail:hover {
  background: var(--sun);
  transform: translateY(-2px);
}
.mail i {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--fg);
}
.mail i svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}
.mail:hover i svg {
  transform: rotate(-45deg);
}
.contact-note {
  margin-top: 20px !important;
  font-size: 15px !important;
  color: var(--fg-3) !important;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  color: var(--fg-3);
  font-size: 14px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.foot .brand {
  font-size: 18px;
  color: var(--fg);
}
.foot .brand-mark {
  width: 24px;
  height: 24px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot a {
  color: var(--fg-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--fg);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px);
}
.legal .wrap {
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
}
.legal .updated {
  color: var(--fg-3);
  margin: 16px 0 48px;
}
.legal h2 {
  font-size: 24px;
  margin: 44px 0 12px;
  letter-spacing: -0.02em;
}
.legal p,
.legal li {
  color: var(--fg-2);
}
.legal a {
  color: var(--sun);
}

.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.notfound h1 {
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 800;
}
.notfound p {
  color: var(--fg-2);
  font-size: 19px;
  margin: 12px 0 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .play {
    max-width: 520px;
    width: 100%;
  }
  .section-head,
  .studio-copy {
    grid-template-columns: 1fr;
  }
  .card-games {
    grid-template-columns: 1fr;
  }
  .card-span-2 {
    grid-column: span 3;
  }
  .card-span-2:last-child {
    grid-column: span 6;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .principle,
  .principle + .principle {
    padding: 32px 0;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .principle h3 {
    margin-top: 16px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav-links li:not(:last-child) {
    display: none;
  }
  .card-span-2,
  .card-span-2:last-child,
  .card-span-3 {
    grid-column: span 6;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .play {
    padding: 16px;
  }
  .play-head {
    flex-wrap: wrap;
  }
  .tube {
    --h: 40px;
  }
  .board {
    min-height: 230px;
  }
  .mail {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .ticker-track {
    animation: none;
  }
}
