:root {
  color-scheme: light;
  --muted-ink: #535851;
  --panel: #f1f2ed;
  --lavender: #e8e4f4;
  --button-ink: #fff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17181e;
  --ink: #f1eff6;
  --muted-ink: #c0bfcd;
  --line: #40404c;
  --purple: #c4b5fd;
  --panel: #20212a;
  --lavender: #252238;
  --button-ink: #201a31;
  --collection-bg: #29253a;
  --folio-icon-bg: #324e70;
  --collection-grid: #b9a4ed26;
  --collection-line: #4a405e;
  --collection-text: #e0d6f4;
  --collection-label: #3a314d;
  --collection-shadow: #1c1729;
  --collection-icon-shadow: 0 0 0 1px #f1e4ff29, 0 5px 10px #0d0c1759, 0 12px 24px #0d0c1740;
  --work-surface: linear-gradient(160deg, #232433, #1c1d26);
  --folio-card: #27394e;
  --snook-card: #3d2b4b;
  --imagetrim-card: #29403d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #17181e;
    --ink: #f1eff6;
    --muted-ink: #c0bfcd;
    --line: #40404c;
    --purple: #c4b5fd;
    --panel: #20212a;
    --lavender: #252238;
    --button-ink: #201a31;
    --collection-bg: #29253a;
    --folio-icon-bg: #324e70;
    --collection-grid: #b9a4ed26;
    --collection-line: #4a405e;
    --collection-text: #e0d6f4;
    --collection-label: #3a314d;
    --collection-shadow: #1c1729;
    --collection-icon-shadow: 0 0 0 1px #f1e4ff29, 0 5px 10px #0d0c1759, 0 12px 24px #0d0c1740;
    --work-surface: linear-gradient(160deg, #232433, #1c1d26);
    --folio-card: #27394e;
    --snook-card: #3d2b4b;
    --imagetrim-card: #29403d;
  }
}
.nav {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto;
  gap: 22px;
}
nav { gap: clamp(14px, 2.4vw, 32px); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lead, .meta, .desc, .games p, .about p, .client-intro p, figcaption { color: var(--muted-ink); }
.board {
  background-color: var(--collection-bg, #e6e2f6);
  background-image:
    linear-gradient(var(--collection-grid, #7d6aa51c) 1px, transparent 1px),
    linear-gradient(90deg, var(--collection-grid, #7d6aa51c) 1px, transparent 1px);
  border-color: var(--collection-line, #cac4da);
  color: var(--collection-text, #524968);
}
.board .tile img {
  box-shadow: var(--collection-icon-shadow, 0 3px 0 #beb9cb, 0 6px 0 #aaa4b6, 2px 11px 8px #51456438, 6px 24px 18px #5145643b);
}
.board .folio-tile img { background-color: var(--folio-icon-bg, #dceafb); }
.tile small {
  background: var(--collection-label, #f8f7ff);
  border-color: var(--collection-line, #bcb5ce);
  color: var(--collection-text, #302843);
  box-shadow: 1px 2px 0 var(--collection-shadow, #b7b1c5);
}
.work { background: var(--work-surface, var(--panel)); }
.work .art.folio { background: var(--folio-card, #c6d9e9); }
.work .art.snook { background: var(--snook-card, #e5d5ee); }
.work .art.imagetrim { background: var(--imagetrim-card, #ccddc5); }
.about { background: var(--lavender); }
.skip:focus { background: var(--paper); }
.button, .actions a:first-child, .button:hover, .actions a:first-child:hover { color: var(--button-ink); }
.button:hover, .actions a:first-child:hover { background: color-mix(in srgb, var(--ink) 75%, var(--purple)); }
.product { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.card { height: auto; flex: 1; }
.download-link { display: flex; align-items: center; min-height: 40px; padding: 10px 0; margin-top: 10px; }
.games .download-link { margin-top: auto; padding-top: 15px; }
.store-badge { display: inline-block; }
.store-badge img, .games .store-badge img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 0;
}
.client-work { padding-block: 58px; border-top: 1px solid var(--line); }
.client-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; }
.client-intro .button { margin-top: 18px; }
.client-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.client-showcase figure { margin: 0; }
.client-showcase figure a { display: block; }
.client-showcase figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.client-showcase figcaption { padding-top: 8px; font-size: 14px; }
@media (max-width: 840px) {
  .nav { grid-template-columns: 1fr; padding-block: 12px; row-gap: 12px; }
  nav { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; width: auto; }
}
@media (max-width: 620px) {
  nav { flex-wrap: wrap; justify-content: start; }
  .client-work { padding-block: 34px; }
  .client-intro, .client-screens { grid-template-columns: 1fr; gap: 16px; }
  .brand { width: auto; gap: 8px; }
}
.monogram { color: var(--paper); }
.monogram span { color: var(--purple); }
@media (max-width: 390px) {
  .nav { column-gap: 10px; }
  .brand { font-size: 19px; }
  .monogram { width: 36px; line-height: 36px; }
  .hero h1 { font-size: clamp(54px, 16vw, 66px); }
}

a.card {
  color: inherit;
  text-decoration: none;
}
.product-feature {
  padding-block: clamp(36px, 5.5vw, 78px);
  border-bottom: 1px solid var(--line);
}
#imagetrim { background: var(--panel); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.feature-grid-reversed { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature-grid-reversed .feature-image { grid-area: 1 / 1; }
.feature-description { margin-top: 18px; color: var(--muted-ink); }
.feature-list { padding-left: 1.15em; margin-block: 16px; color: var(--muted-ink); }
.feature-list li + li { margin-top: 5px; }
.feature-price { font-weight: 600; }
.feature-links, .upcoming-store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 20px;
}
.upcoming-store {
  color: var(--muted-ink);
  font-size: 15px;
}
.feature-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
}
@media (max-width: 720px) {
  .feature-grid, .feature-grid-reversed { grid-template-columns: 1fr; }
  .feature-grid-reversed .feature-image { grid-area: auto; }
}

.about-copy p + p { margin-top: 1em; }

.store-soon {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  gap: 6px;
}
.store-note {
  color: var(--muted-ink);
  font-size: 14px;
}

:root {
  --heading-gradient: linear-gradient(112deg, #51388f, #5841a7 47%, #206778);
}
:root[data-theme="dark"] {
  --heading-gradient: linear-gradient(112deg, #e0ccff, #bdaafa 47%, #86dbe5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --heading-gradient: linear-gradient(112deg, #e0ccff, #bdaafa 47%, #86dbe5);
  }
}
@supports (background-clip: text) {
  main h2 {
    width: fit-content;
    background-image: var(--heading-gradient);
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  main h2 {
    background: none;
    color: CanvasText;
  }
}

.product .download-link {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
#folio .feature-links { align-items: flex-start; }
#folio .feature-links > a:not(.store-badge) { padding-block: 8px; }

.client-carousel.is-ready .client-screens {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 0;
  aspect-ratio: 1.72;
  isolation: isolate;
}
.client-carousel.is-ready figure {
  width: 82%;
  grid-area: 1 / 1;
  transition: transform 250ms ease, opacity 250ms ease;
}
.client-carousel.is-ready figcaption { display: none; }
.client-carousel.is-ready img {
  box-shadow: 0 12px 30px #11152436;
}
.client-carousel figure[data-position="0"] { z-index: 2; }
.client-carousel figure[aria-hidden="true"] { pointer-events: none; opacity: 0.65; visibility: hidden; }
.client-carousel figure[data-position="1"] {
  visibility: visible;
  transform: translateX(8%) translateY(-4%) scale(0.95) rotate(4deg);
}
.client-carousel-controls:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}
.client-carousel-caption {
  margin-top: 8px;
  text-align: center;
  color: var(--muted-ink);
  font-size: 14px;
}
.carousel-navigation, .carousel-dots { display: flex; align-items: center; }
.carousel-navigation { gap: 9px; }
.carousel-arrow, .carousel-dots button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.carousel-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.carousel-arrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateX(-1px) rotate(-45deg);
}
.carousel-arrow-previous::before { transform: translateX(1px) rotate(135deg); }
.carousel-dots button { width: 24px; height: 32px; border-radius: 5px; }
.carousel-dots button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-ink);
  opacity: 0.55;
}
.carousel-dots button[aria-current="true"]::before {
  width: 13px;
  background: var(--purple);
  opacity: 1;
}
.carousel-arrow:hover, .carousel-dots button:hover { background: var(--lavender); }

.snook-feature {
  padding-block: clamp(28px, 4vw, 48px);
  background: var(--lavender);
  border-bottom: 1px solid var(--line);
}
.snook-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
}
.snook-feature-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.snook-feature-title img {
  border-radius: 14px;
  object-fit: cover;
}
.snook-feature-title .eyebrow { margin: 0 0 4px; }
.snook-feature-copy {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--muted-ink);
}
.snook-feature-screens {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.65;
}
.snook-feature-screens .image-preview {
  position: absolute;
  display: block;
  box-shadow: 0 10px 28px #21133844;
}
.snook-website-screen {
  width: 83%;
  left: 0;
  top: 7%;
  border: 1px solid #bcb1c9;
  border-radius: 8px;
}
.snook-tablet-screen, .snook-phone-screen {
  border: clamp(3px, 0.55vw, 8px) solid #25212f;
  border-radius: clamp(8px, 1.5vw, 18px);
  background: #25212f;
}
.snook-tablet-screen {
  width: 31%;
  right: 8%;
  bottom: 6%;
  transform: rotate(-5deg);
}
.snook-phone-screen {
  width: 17%;
  right: 1%;
  bottom: 1%;
  transform: rotate(6deg);
}
@media (max-width: 620px) {
  .snook-feature-grid { grid-template-columns: 1fr; }
}

.client-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(18px, 3vw, 38px);
  margin-top: 30px;
}
.client-showcase > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 24px);
}
.client-showcase h3 {
  font-size: 22px;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.website-comparison-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.website-comparison-heading h3 { margin: 0; }
.website-comparison-controls:not([hidden]) {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}
.website-comparison-controls button {
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 5px 11px;
  font-size: 14px;
  line-height: 20px;
}
.website-comparison-controls button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--button-ink);
}
.website-preview-scroll {
  height: clamp(280px, 35vw, 455px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}
.client-showcase .website-preview-scroll img {
  border: 0;
  border-radius: 0;
}
.website-comparison figcaption { color: var(--muted-ink); }
.client-carousel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.client-carousel-media { align-self: center; }
@media (max-width: 740px) {
  .client-showcase { grid-template-columns: 1fr; }
  .website-preview-scroll { height: clamp(225px, 67vw, 390px); }
}

.snook-gallery {
  border-top: 1px solid var(--line);
  margin-top: clamp(22px, 3.5vw, 36px);
  padding-top: 20px;
}
.snook-gallery h3 {
  font-size: 20px;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.snook-gallery-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 156px));
  gap: clamp(10px, 3vw, 32px);
  justify-content: center;
}
.snook-gallery figure { margin: 0; text-align: center; }
.snook-gallery a { display: block; border-radius: 12px; }
.snook-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 1388;
  height: auto;
  object-fit: contain;
  background: #51247d;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.snook-gallery figcaption {
  color: var(--muted-ink);
  font-size: 14px;
  margin-top: 8px;
}

.client-carousel { grid-template-rows: auto 1fr; }
.client-carousel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-bottom: 12px;
}
.client-carousel-heading h3 { margin-bottom: 0; }
.client-carousel-heading .client-carousel-controls {
  align-items: flex-end;
  gap: 3px;
  margin: 0 0 0 auto;
}
.client-carousel-heading .carousel-navigation { gap: 5px; }
.client-carousel-heading .carousel-dots button { width: 21px; }

.hero h1 em {
  display: block;
  font-size: 0.73em;
  margin-top: 0.12em;
}

.image-preview { cursor: zoom-in; }
.feature-image img, .snook-feature-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.art .image-preview { display: block; width: 81%; }
.art .image-preview img { display: block; width: 100%; }
.art .image-preview:hover img { transform: translateY(-5px); }
.art.snook .image-preview { width: 32%; }
.art.snook .image-preview + .image-preview {
  margin-top: 8%;
  transform: rotate(9deg);
}
.image-viewer {
  width: min(1200px, calc(100% - 24px));
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
}
.image-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.image-viewer::backdrop { background: #13111cbd; }
.image-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.image-viewer-bar h2 {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.image-viewer-bar button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 24px;
}
.image-viewer-content {
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(8px, 2vw, 22px);
  background: var(--panel);
}
.image-viewer-content img {
  display: block;
  max-width: 100%;
  max-height: 76dvh;
  width: auto;
  height: auto;
  margin-inline: auto;
}
.image-viewer-page .image-viewer-content img {
  width: 100%;
  max-height: none;
}
body:has(.image-viewer[open]) { overflow: hidden; }

.theme-switcher {
  position: fixed;
  z-index: 5;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  color: var(--ink);
}
.theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 8px #10121e20;
  opacity: 0.66;
  transition: opacity 160ms ease;
}
.theme-toggle::-webkit-details-marker { display: none; }
.theme-toggle:hover, .theme-toggle:focus-visible, .theme-switcher[open] .theme-toggle { opacity: 1; }
.theme-symbol {
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.theme-options {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 124px;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 4px 16px #10121e2b;
}
.theme-switcher:not([open]) .theme-options { display: none; }
.theme-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.theme-options label:hover { background: var(--panel); }
.theme-options input { margin: 0; accent-color: var(--purple); }
