/* CrownWave Tech — foundations */

:root {
  --ink: #272331;
  --muted: #686273;
  --purple: #6c45db;
  --paper: #faf9f6;
  --line: #e4e0e9;
  --mint: #d5edce;
  --pink: #f0d6e0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a, input, textarea, select {
  touch-action: manipulation;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}

img, svg {
  display: block;
}

p, h1, h2, h3 {
  margin-top: 0;
}

p {
  line-height: 1.75;
}

h1, h2, h3 {
  letter-spacing: -.055em;
}

::selection {
  background: #d7c6ff;
  color: #271c41;
}

.section-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 6%;
  padding-right: 6%;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 88px;
  padding: 0 max(6%, calc((100vw - 1267px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: #faf9f6f2;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.1px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: var(--purple);
  color: white;
  border-radius: 13px;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-dot {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .19em;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  padding: 14px 0;
  font-size: 13px;
  color: #5b5565;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.desktop-nav a:hover {
  color: var(--purple);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 44px;
  padding: 12px 21px;
  border: 1px solid #d4cfdd;
  border-radius: 99px;
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}

.header-cta:hover {
  background: #eee7fa;
}

.header-cta span {
  font-size: 21px;
}

.menu-toggle, .mobile-nav {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  align-items: center;
  gap: 36px;
  min-height: 710px;
  padding-top: 52px;
  padding-bottom: 95px;
  overflow: clip;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  color: #5c5369;
  font-size: 9px;
  letter-spacing: .12em;
}

.status-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #ece5fa;
}

h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  font-size: clamp(64px,7.35vw,106px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.075em;
  margin-bottom: 29px;
}

h1 > span {
  color: var(--purple);
}

.title-spark {
  position: absolute;
  top: -17px;
  right: -24px;
  width: 31px;
  height: 36px;
  stroke: var(--purple);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.hero-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 29px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 54px;
  padding: 17px 23px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #3020491a;
}

.button span {
  font-size: 22px;
  line-height: .8;
}

.button-purple {
  background: var(--purple);
  color: white;
}

.button-purple:hover {
  background: #5934c1;
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  background: #41364e;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
}

.text-link span {
  font-size: 21px;
  transition: transform .2s;
}

.text-link:hover {
  color: var(--purple);
}

.text-link:hover span {
  transform: translateX(4px);
}

.platforms {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 34px;
  color: #554e60;
}

.platforms > span:first-child {
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-right: 4px;
}

.platform-name {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.platform-name svg {
  width: 17px;
  height: 18px;
  fill: currentColor;
}

.platform-divider {
  height: 16px;
  width: 1px;
  background: #d7d0e0;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  min-width: 0;
  background: #eee9f8;
  border-radius: 46% 46% 24px 24px;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 19px;
  border: 1px solid #ffffffa6;
  border-radius: inherit;
  z-index: -1;
}

.hero-image {
  position: relative;
  width: 112%;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse 66% 66% at 50% 52%, #000 50%, transparent 90%);
}

.art-orbit {
  position: absolute;
  width: 92%;
  height: 72%;
  border: 1px solid #d6cbed;
  border-radius: 50%;
  transform: rotate(-30deg);
}

.art-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 17%;
  left: 12%;
  border-radius: 50%;
  background: #a18bcf;
}

.floating-label {
  position: absolute;
  z-index: 2;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  padding: 14px 18px;
  white-space: nowrap;
}

.label-top {
  top: 35px;
  right: 25px;
  background: var(--ink);
  color: white;
  transform: rotate(7deg);
  box-shadow: 0 8px 20px #2d214019;
}

.label-top span {
  color: #d4ef9d;
  margin-right: 7px;
}

.label-bottom {
  bottom: 47px;
  left: -22px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0;
  background: #fffefb;
  box-shadow: 0 8px 24px #41324c13;
  transform: rotate(-6deg);
}

.green-dot {
  width: 8px;
  height: 8px;
  background: #65914d;
  border-radius: 50%;
}

.art-coordinate {
  position: absolute;
  bottom: 25px;
  right: 25px;
  color: #716082;
  font-size: 8px;
  letter-spacing: .15em;
}

.scroll-hint {
  position: absolute;
  left: 6%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--muted);
}

.scroll-hint span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d8d1df;
  border-radius: 50%;
  font-size: 16px;
}

.genre-strip {
  background: #eae3f6;
  border-block: 1px solid #e0d6ed;
  overflow: hidden;
}

.genre-strip > div {
  max-width: 1440px;
  margin: auto;
  padding: 28px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.genre-strip span {
  font-size: clamp(16px,2vw,26px);
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.genre-strip i {
  color: var(--purple);
  font-size: 29px;
  line-height: 1;
  font-style: normal;
}

/* The collection */

.games-section, .approach-section {
  padding-top: 108px;
  padding-bottom: 100px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-heading .eyebrow {
  color: #746080;
  margin-bottom: 23px;
}

h2 {
  font-size: clamp(42px,4.8vw,66px);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 0;
}

.serif-accent {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--purple);
}

.section-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 0 2% 5px 0;
}

.catalogue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 5px;
  background: #eeebf1;
  border-radius: 99px;
}

.filter {
  min-height: 42px;
  padding: 11px 19px;
  border-radius: 99px;
  font-size: 12px;
  color: #5f556c;
  transition: color .2s, background .2s, box-shadow .2s;
}

.filter:hover {
  background: #e0d5ef;
}

.filter.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 3px 7px #2b1d3d14;
}

.filter span {
  margin-left: 7px;
  font-size: 9px;
  opacity: .75;
}

.concept-note {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .1em;
  white-space: nowrap;
}

.concept-note span {
  font-size: 20px;
  margin-left: 10px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}

.game-card {
  min-width: 0;
}

.game-card[hidden] {
  display: none;
}

.game-art {
  position: relative;
  display: block;
  width: 100%;
  height: 335px;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  isolation: isolate;
  transition: transform .3s;
}

.game-art:hover {
  transform: translateY(-5px);
}

.art-tag {
  position: absolute;
  top: 22px;
  left: 23px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
  z-index: 3;
}

.chess-art {
  background: #c9b8e9;
  color: #493170;
}

.chess-board {
  position: absolute;
  width: 320px;
  height: 240px;
  background: repeating-conic-gradient(#e5d9f6 0% 25%,#ad94d3 0% 50%) 50%/80px 80px;
  transform: perspective(500px) rotateX(55deg) rotateZ(-30deg);
  top: 135px;
  left: -15px;
  box-shadow: 0 15px 0 #a88ccf,0 25px 25px #73559e33;
}

.chess-piece {
  position: absolute;
  font-family: Georgia,"Segoe UI Symbol",serif;
  font-size: 210px;
  line-height: 1;
  filter: drop-shadow(7px 12px 2px #4c326533);
  z-index: 1;
}

.piece-white {
  color: #fcf6ec;
  top: 49px;
  left: 85px;
  transform: rotate(7deg);
  text-shadow: 1px 2px #cebdde,3px 4px #cebdde,5px 6px #cebdde;
}

.piece-black {
  color: #79539c;
  top: 65px;
  left: 26px;
  font-size: 145px;
  transform: rotate(-9deg);
  text-shadow: 3px 3px #533670;
}

.game-art-word {
  position: absolute;
  bottom: 25px;
  left: 23px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.055em;
  z-index: 2;
}

.round-link {
  position: absolute;
  right: 20px;
  bottom: 19px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #ffffffb0;
  display: grid;
  place-items: center;
  font-size: 21px;
  z-index: 3;
  transition: transform .2s;
}

.game-art:hover .round-link {
  transform: rotate(45deg);
}

.puzzle-art {
  background: #e9cbd8;
  color: #5f384d;
}

.puzzle-cluster {
  position: absolute;
  top: 74px;
  left: 50%;
  width: 195px;
  height: 195px;
  transform: translateX(-50%) rotate(-17deg);
  filter: drop-shadow(8px 15px 9px #79455a35);
}

.puzzle-tile {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 17px;
  box-shadow: inset 3px 3px 4px #ffffff80,6px 7px 0 #00000018;
}

.puzzle-tile:after {
  content: "";
  position: absolute;
  width: 35px;
  height: 35px;
  background: inherit;
  border-radius: 50%;
  box-shadow: inset 2px 2px 3px #ffffff50;
  z-index: 1;
}

.tile-a {
  left: 0;
  top: 0;
  background: #a889c5;
}

.tile-a:after {
  right: -20px;
  top: 28px;
}

.tile-b {
  right: 0;
  top: 0;
  background: #f9f2d9;
  transform: translate(14px,-15px) rotate(6deg);
}

.tile-b:after {
  bottom: -20px;
  left: 29px;
}

.tile-c {
  left: 0;
  bottom: 0;
  background: #b1d7bc;
}

.tile-c:after {
  top: -20px;
  left: 29px;
}

.tile-d {
  right: 0;
  bottom: 0;
  background: #ce7ba6;
  transform: translate(9px,8px) rotate(-2deg);
}

.tile-d:after {
  left: -20px;
  top: 29px;
}

.cards-art {
  background: #c5e3d4;
  color: #305846;
}

.playing-card {
  position: absolute;
  width: 117px;
  height: 173px;
  border-radius: 11px;
  background: #fffaf2;
  box-shadow: 2px 4px 0 #d3cebc,7px 13px 18px #34534329;
  top: 83px;
  left: calc(50% - 58px);
  color: #334b40;
  font-family: Georgia,serif;
  transform-origin: bottom center;
}

.playing-card>span {
  position: absolute;
  left: 11px;
  top: 10px;
  font-size: 21px;
  line-height: 1.1;
}

.playing-card small {
  display: block;
  font-size: 20px;
  text-align: center;
}

.playing-card b {
  font-size: 64px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  font-weight: 400;
}

.playing-card>span.card-corner-bottom {
  left: auto;
  top: auto;
  right: 11px;
  bottom: 10px;
  transform: rotate(180deg);
}

.card-back {
  background: repeating-linear-gradient(45deg,#478a6c 0 2px,#39765c 2px 8px);
  border: 7px solid #f5f2e3;
  transform: rotate(-26deg) translateX(-30px);
}

.card-spade {
  transform: rotate(-7deg) translateX(-9px);
}

.card-heart {
  color: #b74f68;
  transform: rotate(18deg) translateX(31px);
}

/* Keep the illustrations tactile and let each genre own its color. */

.game-art {
  height: 350px;
  border-radius: 20px;
  transition: transform .25s, box-shadow .25s;
}

.game-art:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 25px #30203813;
}

.game-art:focus-visible {
  outline-offset: 5px;
}

.chess-art {
  background: #cfbdec;
}

.puzzle-art {
  background: #f0d2dc;
}

.cards-art {
  background: #cde5d5;
}

.art-tag {
  font-size: 8px;
  top: 24px;
  left: 24px;
  letter-spacing: .11em;
}

.game-art-word {
  font-size: 24px;
  bottom: 27px;
}

.round-link {
  width: 42px;
  height: 42px;
  right: 20px;
  bottom: 20px;
  background: #ffffffcf;
}

.game-art:hover .round-link {
  transform: translate(2px,-2px);
}

.chess-board {
  left: calc(50% - 160px);
}

.piece-white {
  left: calc(50% - 70px);
}

.piece-black {
  left: calc(50% - 125px);
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 23px 0 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  color: #756681;
}

.game-meta span:first-child {
  border: 1px solid #e0d7e9;
  padding: 6px 10px;
  border-radius: 99px;
}

.game-meta span:last-child {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.game-title-button {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.game-title-button h3 {
  font-size: 29px;
  font-weight: 600;
  margin: 0;
}

.game-title-button > span {
  font-size: 24px;
  color: var(--purple);
}

.game-title-button:hover {
  color: var(--purple);
}

.game-card > p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.catalogue-footnote {
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

/* Studio: a darker interval between the collection and principles. */

.studio-section {
  margin: 0 24px;
  padding: 84px 0;
  border-radius: 32px;
  background: #2c2438;
  color: #faf7ff;
}

.studio-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 9%;
  align-items: center;
}

.studio-art {
  height: 390px;
  position: relative;
  background: #ddd4ef;
  border-radius: 11px;
  overflow: hidden;
}

.studio-art-caption {
  position: absolute;
  top: 25px;
  left: 28px;
  font-size: 8px;
  letter-spacing: .18em;
  color: #695d79;
}

.smile-circle {
  position: absolute;
  width: 220px;
  height: 220px;
  top: 76px;
  left: calc(50% - 110px);
  background: #cbed7e;
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: inset -13px -12px 20px #95bf4a44,8px 13px 0 #adc96f,19px 25px 22px #6e50722e;
}

.smile-eye {
  position: absolute;
  width: 10px;
  height: 31px;
  border-radius: 50%;
  background: #514363;
  top: 62px;
}

.eye-one {
  left: 72px;
}

.eye-two {
  right: 72px;
}

.smile-mouth {
  position: absolute;
  width: 90px;
  height: 47px;
  border: 7px solid #514363;
  border-top: 0;
  border-radius: 0 0 100px 100px;
  top: 116px;
  left: 65px;
}

.studio-spark {
  position: absolute;
  right: 38px;
  top: 66px;
  font-size: 100px;
  color: #8b65cc;
  line-height: 1;
  transform: rotate(10deg);
}

.studio-note {
  position: absolute;
  left: 25px;
  bottom: 69px;
  background: #fffdf7;
  padding: 16px 23px;
  font-size: 18px;
  line-height: 1.05;
  transform: rotate(-10deg);
  box-shadow: 3px 7px 0 #70559d13;
}

.studio-note i {
  font-family: Georgia,serif;
  font-size: 24px;
  color: var(--purple);
}

.studio-art-bottom {
  position: absolute;
  bottom: 23px;
  right: 22px;
  font-size: 8px;
  letter-spacing: .13em;
  color: #695d79;
}

.studio-art {
  height: 440px;
  border-radius: 24px;
  background: #41344f;
  border: 1px solid #665174;
}

.studio-art-caption, .studio-art-bottom {
  color: #c9b9d8;
  font-size: 9px;
}

.smile-circle {
  top: 103px;
}

.studio-spark {
  top: 75px;
  right: 26px;
  color: #b190e1;
}

.studio-note {
  bottom: 66px;
  border-radius: 4px;
  color: #30223f;
}

.studio-copy .eyebrow {
  color: #c2b2d7;
  font-size: 9px;
  margin-bottom: 26px;
}

.studio-copy h2 {
  font-size: clamp(38px,3.8vw,53px);
  line-height: 1.12;
  margin-bottom: 27px;
}

.studio-copy .serif-accent {
  color: #d0b4fd;
}

.studio-copy .studio-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #eee5f5;
}

.studio-copy > p:not(.eyebrow):not(.studio-lead) {
  font-size: 14px;
  color: #c4b8d0;
  line-height: 1.85;
  margin-bottom: 22px;
}

.studio-copy .text-link {
  color: #e1c9ff;
  border-bottom: 1px solid #7d6596;
}

.studio-copy .text-link:hover {
  color: white;
}

.studio-copy a:focus-visible {
  outline-color: #d0b4fd;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 44px;
  margin-top: 52px;
}

.principles article {
  border-top: 1px solid #d5cedf;
  padding-top: 26px;
}

.principle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 29px;
}

.principle-top > span:last-child {
  font-family: Georgia,serif;
  font-size: 28px;
  font-style: italic;
  color: #aea1bb;
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 32px;
  border-radius: 16px;
}

.icon-play {
  background: #e8def8;
  color: #7044b5;
}

.icon-star {
  background: #f5dfe8;
  color: #a9557a;
}

.icon-heart {
  background: #dfeecf;
  color: #537e3a;
}

.principles h3 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.04em;
  margin-bottom: 13px;
}

.principles p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* Invitation and footer */

.contact-section {
  padding-bottom: 90px;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 62px 64px;
  background: #dfd2f4;
  border-radius: 28px;
  overflow: hidden;
}

.contact-panel .eyebrow {
  color: #685178;
  margin-bottom: 26px;
}

.contact-panel h2 {
  font-size: clamp(40px,4.8vw,64px);
  margin-bottom: 24px;
}

.contact-panel p:not(.eyebrow) {
  color: #65536f;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 27px;
}

.contact-panel .button {
  background: #2c2438;
}

.contact-panel .button:hover {
  background: #443353;
}

.contact-doodle {
  width: 32%;
  min-height: 320px;
  position: relative;
}

.doodle-star {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 166px;
  line-height: 1;
  color: #9270bf;
  transform: rotate(12deg);
}

.doodle-arrow {
  position: absolute;
  top: 100px;
  right: -2px;
  font-size: 130px;
  line-height: 1;
  color: #f9f5ff;
  transform: rotate(13deg);
}

.doodle-caption {
  position: absolute;
  bottom: 26px;
  right: 18%;
  font-family: Georgia,serif;
  font-style: italic;
  font-size: 42px;
  line-height: .95;
  color: #5f4279;
  transform: rotate(-12deg);
}

.site-footer {
  padding-bottom: 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 42px;
}

.footer-top > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.footer-top > a:last-child {
  font-size: 13px;
  font-weight: 600;
  padding: 15px 0;
}

.footer-top > a:last-child span {
  margin-left: 14px;
  color: var(--purple);
  font-size: 21px;
}

.footer-legal {
  padding-bottom: 26px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer-legal p {
  margin: 0;
  line-height: 1.8;
}

.footer-legal .footer-legal-label {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-legal .footer-legal-name {
  font-size: 12px;
  font-weight: 600;
  color: #554763;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--muted);
  font-size: 10px;
}

.footer-bottom > span {
  margin-right: auto;
}

.privacy-link, .footer-bottom > a {
  font-size: 11px;
  padding: 14px 0;
}

.footer-bottom a:hover, .privacy-link:hover {
  color: var(--purple);
}

/* Dialogs and playable demos */

dialog {
  border: 0;
  border-radius: 17px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(590px,calc(100% - 32px));
  max-height: 90vh;
  max-height: 90dvh;
  box-shadow: 0 30px 100px #17112340;
}

dialog::backdrop {
  background: #201a31a6;
  backdrop-filter: blur(7px);
}

.dialog-content {
  padding: 42px;
}

.dialog-close {
  position: absolute;
  right: 15px;
  top: 13px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eae6f0;
  font-size: 25px;
  line-height: 1;
  z-index: 2;
}

.dialog-close:hover {
  background: #ded5ed;
}

.dialog-content>.eyebrow {
  color: var(--purple);
  margin-bottom: 20px;
}

.dialog-content>h2 {
  font-size: 37px;
  margin-bottom: 18px;
}

.dialog-content>p {
  font-size: 13px;
  color: var(--muted);
}

.game-detail-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
}

.game-detail-tags span {
  border-radius: 4px;
  background: #eae5f4;
  font-size: 10px;
  padding: 7px 10px;
  color: #736183;
}

.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-heading h3 {
  font-size: 20px;
  letter-spacing: -.03em;
  margin: 0;
}

.demo-badge {
  font-size: 7px;
  letter-spacing: .1em;
  color: #796b89;
  padding: 6px 8px;
  border: 1px solid #ddd3e8;
  border-radius: 4px;
}

.demo-instructions {
  font-size: 12px !important;
  margin-top: 10px;
}

.demo-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.demo-status-row p {
  font-size: 12px;
  color: var(--purple);
  line-height: 1.4;
  margin: 0;
}

.reset-button {
  padding: 8px;
  border: 1px solid #d7d0e3;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}

.reset-button:hover {
  background: #eae4f3;
}

.demo-note {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin: 20px 0 0;
  font-size: 10px !important;
  line-height: 1.7;
}

.demo-board {
  display: grid;
  gap: 7px;
  max-width: 330px;
  margin: 20px auto 0;
}

.sliding-board {
  grid-template-columns: repeat(3,1fr);
  aspect-ratio: 1;
  padding: 9px;
  background: #e6dfef;
  border-radius: 12px;
}

.slide-tile {
  border-radius: 8px;
  background: #b8a2df;
  color: #3e2b60;
  font-size: 28px;
  font-weight: 600;
  box-shadow: 0 3px 0 #9c83c3;
  transition: background .2s;
}

.slide-tile:hover:not(:disabled) {
  background: #cabae7;
}

.slide-tile.empty {
  background: #d8cce7;
  box-shadow: none;
}

.slide-tile:disabled:not(.empty) {
  opacity: .75;
}

.knight-board {
  grid-template-columns: repeat(5,1fr);
  gap: 0;
  border: 7px solid #9e86ba;
  border-radius: 7px;
  aspect-ratio: 1;
}

.knight-cell {
  aspect-ratio: 1;
  background: #f4eaf9;
  font-size: 38px;
  position: relative;
  padding: 0;
  display: grid;
  place-items: center;
}

.knight-cell.dark {
  background: #bea4d6;
}

.knight-cell.visited:after {
  content: "";
  width: 8px;
  height: 8px;
  background: #836495;
  border-radius: 50%;
  position: absolute;
}

.knight-cell.current:after {
  display: none;
}

.knight-cell.target {
  background: #d0e8b4;
}

.knight-cell.legal:before {
  content: "";
  position: absolute;
  width: 35%;
  height: 35%;
  border: 2px solid #73519388;
  border-radius: 50%;
}

.memory-board {
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}

.memory-card {
  height: 88px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg,#8cae9c 0 2px,#7d9e8e 2px 8px);
  border: 5px solid #f6f1e7;
  font-size: 34px;
  color: #f6f1e7;
  box-shadow: 0 2px 4px #263c2f20;
}

.memory-card.flipped,.memory-card.matched {
  background: #fff9ed;
  color: #6d4888;
}

.memory-card.matched {
  background: #d9eac9;
  border-color: #c8dfb8;
}

.memory-card.red {
  color: #b45e7e;
}

.contact-dialog form {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
}

.contact-dialog label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-dialog input,.contact-dialog select,.contact-dialog textarea {
  padding: 12px;
  border: 1px solid #dcd6e4;
  border-radius: 6px;
  background: white;
  font-size: 13px;
  margin-bottom: 19px;
  width: 100%;
  color: var(--ink);
}

.contact-dialog textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-dialog input:focus,.contact-dialog textarea:focus,.contact-dialog select:focus {
  outline: 2px solid #b9a0e7;
  border-color: transparent;
}

.contact-dialog .button {
  margin-top: 4px;
}

.form-note {
  font-size: 10px;
  color: var(--muted);
  margin: 13px 0 0;
  line-height: 1.6;
}

#form-status {
  font-size: 12px;
  color: var(--purple);
  margin: 12px 0 0;
}

.privacy-dialog .dialog-content>p {
  line-height: 1.8;
}

dialog {
  border: 1px solid #ece4f3;
  border-radius: 24px;
}

.dialog-close {
  width: 40px;
  height: 40px;
}

.dialog-content {
  padding: 48px 40px 36px;
}

.dialog-content > p {
  font-size: 14px;
}

.dialog-content > .eyebrow {
  padding-right: 26px;
  font-size: 9px;
}

.contact-dialog label {
  font-size: 12px;
}

.contact-dialog input, .contact-dialog select, .contact-dialog textarea {
  font-size: 16px;
  padding: 13px;
  border-radius: 10px;
}

.form-note, .demo-note {
  color: #6b6077;
}

.reset-button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 11px;
  border-radius: 99px;
}

.game-detail-tags span {
  border-radius: 99px;
  color: #685476;
}

.demo-badge {
  color: #685476;
}

@media (min-width:1440px) {
  .section-wrap {
    padding-inline: 86px;
  }

  .hero {
    gap: 48px;
  }
}

@media (max-width:1100px) and (min-width:901px) {
  .hero {
    gap: 25px;
    min-height: 650px;
  }

  .hero-art {
    height: 450px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    font-size: 12px;
    padding-inline: 18px;
    gap: 20px;
  }

  .hero-actions .text-link {
    font-size: 12px;
  }

  .hero .eyebrow {
    font-size: 8px;
  }

  .game-art {
    height: 310px;
  }

  .game-art-word {
    font-size: 20px;
  }

  .art-tag {
    font-size: 7px;
    left: 19px;
  }

  .chess-piece {
    scale: .9;
  }

  .puzzle-cluster {
    scale: .88;
    transform-origin: 0 50%;
    top: 55px;
  }

  .playing-card {
    top: 62px;
    scale: .9;
  }

  .studio-grid {
    gap: 6%;
  }

  .contact-panel {
    padding: 48px;
  }
}

@media (max-width:900px) {
  .section-wrap {
    padding-inline: 6%;
  }

  .site-header {
    padding-inline: 6%;
    gap: 18px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 12px;
  }

  .header-cta {
    font-size: 12px;
    gap: 15px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 23px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 50px;
    padding-bottom: 80px;
    min-height: 0;
  }

  .hero-copy {
    max-width: 600px;
  }

  h1 {
    font-size: clamp(72px,11.5vw,100px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-art {
    height: 460px;
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
    border-radius: 240px 240px 24px 24px;
  }

  .hero-image {
    width: 100%;
    max-height: 490px;
    object-fit: contain;
  }

  .label-bottom {
    left: 15px;
    bottom: 35px;
  }

  .genre-strip > div {
    gap: 15px;
    padding-block: 24px;
  }

  .genre-strip span {
    font-size: 18px;
  }

  .genre-strip i {
    font-size: 24px;
  }

  .genre-strip span:last-of-type, .genre-strip i:last-child {
    display: none;
  }

  .games-section, .approach-section {
    padding-top: 74px;
    padding-bottom: 74px;
  }

  h2 {
    font-size: 48px;
  }

  .section-heading {
    gap: 28px;
  }

  .section-intro {
    font-size: 13px;
  }

  .game-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 35px 24px;
  }

  .game-art {
    height: 330px;
  }

  .game-title-button h3 {
    font-size: 27px;
  }

  .studio-section {
    margin-inline: 16px;
    padding-block: 64px;
  }

  .studio-grid {
    gap: 36px;
    grid-template-columns: 1fr;
  }

  .studio-copy {
    max-width: 650px;
  }

  .studio-copy h2 {
    font-size: 48px;
  }

  .studio-art {
    grid-row: 2;
    width: 100%;
    height: 380px;
  }

  .smile-circle {
    top: 77px;
  }

  .studio-spark {
    right: 17%;
  }

  .studio-note {
    left: 12%;
  }

  .principles {
    gap: 25px;
  }

  .principles h3 {
    font-size: 22px;
  }

  .principles p {
    font-size: 13px;
  }

  .contact-panel {
    padding: 42px;
  }

  .contact-panel h2 {
    font-size: 48px;
  }

  .contact-panel p br {
    display: none;
  }

  .contact-doodle {
    width: 27%;
  }

  .doodle-star {
    font-size: 115px;
  }

  .doodle-arrow {
    font-size: 95px;
    right: -15px;
  }

  .doodle-caption {
    font-size: 30px;
    right: 2%;
  }

  .footer-top {
    flex-wrap: wrap;
  }
}

@media (max-width:760px) {
  html {
    scroll-padding-top: 88px;
  }

  .site-header {
    height: 76px;
  }

  .desktop-nav, .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid #d8d0e0;
    border-radius: 50%;
  }

  .menu-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .2s;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 6%;
    right: 6%;
    background: #fffefa;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px #30203f21;
  }

  .mobile-nav a, .mobile-nav button {
    min-height: 46px;
    padding: 14px;
    text-align: left;
    font-size: 14px;
    border-radius: 9px;
  }

  .mobile-nav a:hover, .mobile-nav button:hover {
    background: #f0e9f8;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-intro {
    max-width: 420px;
    margin: 21px 0 0;
  }

  .section-intro br {
    display: none;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 36px;
  }

  .principle-top {
    margin-bottom: 19px;
  }

  .principles h3 {
    font-size: 25px;
  }

  .principles p {
    font-size: 14px;
    max-width: 460px;
  }

  .contact-doodle {
    display: none;
  }

  .footer-top > p {
    font-size: 12px;
  }
}

@media (max-width:620px) {
  .section-wrap, .site-header {
    padding-inline: 6%;
  }

  .brand {
    font-size: 23px;
    gap: 9px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
    border-radius: 12px;
  }

  .brand-dot {
    font-size: 7px;
  }

  .hero {
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 74px;
  }

  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: .09em;
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(56px,16vw,88px);
    margin-bottom: 22px;
  }

  .title-spark {
    width: 26px;
    right: -20px;
    top: -16px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-actions .button {
    font-size: 12px;
    padding: 16px 19px;
    gap: 19px;
    min-height: 51px;
  }

  .hero-actions .text-link {
    font-size: 11px;
    gap: 7px;
  }

  .platforms {
    margin-top: 27px;
  }

  .hero-art {
    height: 340px;
  }

  .hero-image {
    width: 112%;
    max-height: 370px;
  }

  .label-top {
    top: 22px;
    right: 10px;
    font-size: 7px;
    padding: 12px 14px;
  }

  .label-bottom {
    bottom: 36px;
    left: -6px;
    font-size: 10px;
    padding: 12px 15px;
  }

  .art-coordinate {
    bottom: 18px;
    right: 17px;
    font-size: 7px;
  }

  .genre-strip > div {
    gap: 12px;
    padding-block: 21px;
  }

  .genre-strip span {
    font-size: 15px;
  }

  .genre-strip i {
    font-size: 22px;
  }

  .genre-strip i:nth-last-child(3) {
    display: none;
  }

  .games-section, .approach-section {
    padding-top: 61px;
    padding-bottom: 60px;
  }

  h2 {
    font-size: clamp(38px,10.3vw,52px);
  }

  .section-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 19px;
  }

  .section-intro {
    font-size: 13px;
    line-height: 1.8;
  }

  .catalogue-toolbar {
    display: block;
    margin-bottom: 25px;
  }

  .filters {
    display: inline-flex;
    padding: 4px;
    gap: 1px;
    max-width: 100%;
  }

  .filter {
    padding: 10px 12px;
    font-size: 11px;
    min-height: 42px;
  }

  .filter span {
    margin-left: 4px;
    font-size: 8px;
  }

  .concept-note {
    display: none;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 39px;
  }

  .game-art {
    height: 345px;
    border-radius: 20px;
  }

  .game-title-button h3 {
    font-size: 29px;
  }

  .game-meta {
    margin-top: 19px;
  }

  .game-card > p {
    margin-top: 11px;
    font-size: 14px;
  }

  .game-art-word {
    font-size: 25px;
  }

  .catalogue-footnote {
    margin-top: 30px;
    font-size: 10px;
    line-height: 1.8;
  }

  .studio-section {
    margin-inline: 12px;
    border-radius: 24px;
    padding-block: 46px;
  }

  .studio-grid {
    padding-inline: 22px;
    gap: 28px;
  }

  .studio-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 20px;
  }

  .studio-copy h2 {
    font-size: clamp(34px,9.3vw,46px);
    margin-bottom: 24px;
  }

  .studio-copy .studio-lead {
    font-size: 16px;
  }

  .studio-copy > p:not(.eyebrow):not(.studio-lead) {
    font-size: 13px;
  }

  .studio-art {
    height: 340px;
  }

  .smile-circle {
    top: 63px;
    scale: .88;
  }

  .studio-spark {
    right: 14px;
    top: 56px;
    font-size: 80px;
  }

  .studio-note {
    left: 18px;
    bottom: 52px;
    padding: 13px 17px;
    font-size: 17px;
  }

  .studio-art-caption {
    top: 20px;
    left: 20px;
    font-size: 7px;
  }

  .studio-art-bottom {
    font-size: 7px;
  }

  .contact-section {
    padding-bottom: 54px;
  }

  .contact-panel {
    padding: 34px 25px;
    border-radius: 22px;
  }

  .contact-panel .eyebrow {
    font-size: 9px;
    margin-bottom: 22px;
  }

  .contact-panel h2 {
    font-size: clamp(32px,8.8vw,48px);
  }

  .contact-panel p:not(.eyebrow) {
    font-size: 13px;
  }

  .footer-top {
    gap: 21px;
    padding-bottom: 30px;
  }

  .footer-top .brand {
    width: 100%;
  }

  .footer-top > p {
    font-size: 11px;
  }

  .footer-top > a:last-child {
    font-size: 11px;
    margin-left: auto;
  }

  .footer-top > a:last-child span {
    margin-left: 7px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 0 20px;
  }

  .footer-bottom > span {
    width: 100%;
    font-size: 9px;
    line-height: 1.7;
  }

  .footer-bottom > a {
    margin-left: auto;
  }

  .dialog-content {
    padding: 49px 22px 28px;
  }

  .dialog-content > h2 {
    font-size: 34px;
  }

  .dialog-content > p {
    font-size: 13px;
  }

  .demo-heading {
    flex-wrap: wrap;
    gap: 9px;
  }

  .demo-heading h3 {
    font-size: 19px;
  }

  .demo-badge {
    font-size: 7px;
  }

  .memory-card {
    height: 72px;
  }

  .knight-cell {
    font-size: 31px;
  }
}

@media (max-width:360px) {
  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    padding-inline: 15px;
  }

  .title-spark {
    right: -7px;
    width: 22px;
  }

  .filter {
    padding-inline: 9px;
    font-size: 10px;
  }

  .game-art {
    height: 320px;
  }

  .game-art-word {
    font-size: 22px;
  }

  .game-card > p {
    font-size: 13px;
  }

  .studio-copy h2 {
    font-size: 31px;
  }

  .contact-panel {
    padding-inline: 21px;
  }

  .contact-panel h2 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
