﻿:root {
  --cream: #fffdf5;
  --ink: #000000;
  --red: #ff6b6b;
  --yellow: #ffd93d;
  --violet: #3a3a3a;
  --white: #ffffff;
  --shadow-sm: 4px 4px 0 0 var(--ink);
  --shadow-md: 8px 8px 0 0 var(--ink);
  --shadow-lg: 14px 14px 0 0 var(--ink);
}

/* Securify reference hero */
html,
body {
  height: 100%;
}

body.securify-home {
  min-height: 100%;
  background: #000;
  background-image: none;
  color: #fff;
  font-family: "Readex Pro", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.securify-home .securify-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.securify-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-ribbons {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.hero-ribbons canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.2));
}

.securify-nav-wrap {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 24px 24px 0;
}

.securify-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.securify-brand,
.securify-links,
.securify-cta {
  background: rgba(23, 23, 23, 0.9);
  backdrop-filter: blur(18px);
}

.securify-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 12px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.securify-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.securify-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
}

.securify-links a {
  padding: 8px 20px;
  border-radius: 999px;
  color: rgba(212, 212, 212, 1);
  font-size: 14px;
  font-weight: 400;
  transition: color 160ms ease;
}

.securify-links a:hover,
.securify-links a:focus-visible {
  color: #fff;
  outline: none;
}

.securify-cta {
  padding: 12px 24px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 160ms ease;
}

.securify-cta:hover,
.securify-cta:focus-visible {
  background: #e5e5e5;
  outline: none;
}

.securify-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.hero-title {
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.securify-content .hero-title {
  position: absolute;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 14vw;
  font-weight: 500;
  text-transform: lowercase;
}

.word-protect {
  top: 18%;
  left: 16px;
}

.word-your {
  top: 38%;
  right: 16px;
}

.word-data {
  top: 58%;
  left: 18%;
}

.securify-description {
  position: absolute;
  top: 46%;
  left: 24px;
  max-width: 240px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: lowercase;
}

.securify-stat {
  position: absolute;
  color: #fff;
  text-transform: lowercase;
}

.stat-top {
  top: 14%;
  right: 24px;
}

.stat-bottom-left {
  bottom: 80px;
  left: 24px;
}

.stat-bottom-right {
  right: 24px;
  bottom: 64px;
  text-align: right;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-row-right {
  justify-content: flex-end;
}

.stat-row strong {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-divider {
  display: none;
  width: 96px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.divider-rise {
  transform: rotate(20deg);
}

.divider-fall {
  transform: rotate(-20deg);
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.stat-top .stat-label,
.stat-bottom-right .stat-label {
  text-align: right;
}

.securify-bottom-gradient {
  pointer-events: none;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  height: 192px;
  background: linear-gradient(to bottom, transparent, #000);
}

@media (min-width: 768px) {
  .securify-nav-wrap {
    padding-right: 40px;
    padding-left: 40px;
  }

  .securify-content .hero-title {
    font-size: 13vw;
  }

  .word-protect {
    left: 40px;
  }

  .word-your {
    right: 40px;
  }

  .word-data {
    left: 28%;
  }

  .securify-description {
    left: 40px;
  }

  .stat-top {
    right: 96px;
  }

  .stat-bottom-left {
    bottom: 96px;
    left: 80px;
  }

  .stat-bottom-right {
    right: 80px;
    bottom: 80px;
  }

  .stat-row strong {
    font-size: 48px;
  }

  .stat-label {
    font-size: 14px;
  }

  .stat-divider {
    display: block;
  }
}

@media (max-width: 767px) {
  .securify-links {
    display: none;
  }

  .securify-brand {
    padding-right: 20px;
  }

  .securify-cta {
    padding-right: 20px;
    padding-left: 20px;
  }

  .securify-description {
    top: 49%;
  }

  .stat-top {
    top: 13%;
  }

  .stat-row strong {
    font-size: 34px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  background-color: var(--cream);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  overflow-wrap: anywhere;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 4px solid var(--ink);
  background: var(--cream);
}

.logo,
.site-nav a,
.menu-button,
.btn {
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms linear, box-shadow 120ms linear, background 120ms linear;
}

.logo {
  padding: 10px 14px;
  background: var(--red);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  padding: 10px 12px;
  background: var(--white);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
  outline: none;
}

.menu-button {
  display: none;
  width: 52px;
  height: 52px;
  padding: 9px;
  background: var(--yellow);
}

.menu-button span {
  display: block;
  height: 4px;
  margin: 5px 0;
  background: var(--ink);
}

.page-close {
  position: fixed;
  top: 112px;
  right: clamp(18px, 4vw, 48px);
  z-index: 30;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 4px solid var(--ink);
  background: var(--red);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 120ms linear, box-shadow 120ms linear, background 120ms linear, color 120ms linear;
}

.collection-page .page-close {
  top: 108px;
  min-height: 48px;
  padding: 12px 18px;
  border-width: 3px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
}

.page-close:hover,
.page-close:focus-visible {
  background: var(--ink);
  color: var(--white);
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 0 var(--ink);
  outline: none;
}

.page-close:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(54px, 10vw, 132px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: inline-block;
  padding: 4px 12px 10px;
  border: 5px solid var(--ink);
  background: var(--red);
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 28px;
  padding: 18px;
  border: 4px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn.primary {
  background: var(--red);
}

.btn.secondary {
  background: var(--yellow);
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 0 var(--ink);
  outline: none;
}

.btn:active,
.logo:active,
.menu-button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.hero-board {
  position: relative;
  min-height: 620px;
}

.hero-img {
  position: absolute;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.img-one {
  top: 0;
  right: 2%;
  width: 68%;
  aspect-ratio: 0.8;
  transform: rotate(3deg);
}

.img-two {
  left: 0;
  bottom: 80px;
  width: 70%;
  aspect-ratio: 1.35;
  transform: rotate(-4deg);
}

.img-three {
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1.05;
  transform: rotate(5deg);
}

.sticker {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 76px;
  min-height: 76px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}

.sticker-red {
  top: 38px;
  left: 6%;
  background: var(--red);
  transform: rotate(-12deg);
}

.sticker-yellow {
  top: 48%;
  right: 4%;
  background: var(--yellow);
  transform: rotate(12deg);
}

.sticker-violet {
  bottom: 38px;
  left: 34%;
  background: var(--violet);
  transform: rotate(-4deg);
}

.marquee {
  overflow: hidden;
  border-block: 5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.marquee div {
  width: max-content;
  padding: 16px 0;
  animation: marquee 26s linear infinite;
  font-size: clamp(24px, 4vw, 48px);
  white-space: nowrap;
  text-transform: uppercase;
}

.works-section,
.waterfall-section,
.process-section,
.about-section,
.contact-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.works-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(7, 15, 27, 0.78)),
    image-set(url("./assets/ai-video.png") type("image/png"));
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.works-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 44%, rgba(196, 181, 253, 0.24), transparent 30%),
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, 120px 120px, 120px 120px;
  mix-blend-mode: screen;
}

.works-heading,
.direction-list {
  position: relative;
  z-index: 1;
}

.works-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.works-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 8vw, 108px);
}

.direction-list {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.direction-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1.18fr) minmax(150px, 0.38fr) 130px 72px;
  gap: clamp(12px, 2.4vw, 32px);
  align-items: center;
  min-height: clamp(104px, 12vw, 150px);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  isolation: isolate;
  overflow: hidden;
  transition: min-height 280ms ease-out, color 180ms linear, padding 280ms ease-out;
}

.direction-row > span {
  position: relative;
  z-index: 3;
}

.direction-row::before {
  content: "";
  position: absolute;
  inset: 0 -72px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.24), rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.1));
  opacity: 0;
  transition: opacity 180ms linear;
}

.direction-row:hover,
.direction-row:focus-visible,
.direction-row.is-previewing {
  min-height: clamp(280px, 32vw, 420px);
  padding-bottom: clamp(190px, 22vw, 300px);
  color: var(--white);
  outline: none;
}

.direction-row:hover::before,
.direction-row:focus-visible::before,
.direction-row.is-previewing::before {
  opacity: 1;
}

.direction-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(15px, 1.25vw, 19px);
  color: rgba(255, 255, 255, 0.48);
}

.direction-title {
  color: var(--white);
  font-size: clamp(30px, 5.2vw, 74px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.direction-type,
.direction-year {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direction-arrow {
  display: grid;
  width: clamp(44px, 4.5vw, 62px);
  height: clamp(44px, 4.5vw, 62px);
  place-items: center;
  justify-self: end;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: clamp(22px, 2.4vw, 32px);
  transition: transform 200ms ease-out, background 160ms linear, color 160ms linear;
}

.direction-row:hover .direction-arrow,
.direction-row:focus-visible .direction-arrow,
.direction-row.is-previewing .direction-arrow {
  background: var(--white);
  color: var(--ink);
  transform: translate(-8px, 8px) rotate(45deg);
}

.direction-preview {
  position: absolute;
  right: clamp(110px, 11vw, 160px);
  bottom: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(220px, 520px) minmax(180px, 260px);
  gap: 18px;
  width: min(68vw, 820px);
  align-items: end;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(34px) scale(0.96);
  transition: opacity 260ms ease-out, transform 260ms ease-out, visibility 0ms linear 260ms;
}

.direction-row:hover .direction-preview,
.direction-row:focus-visible .direction-preview,
.direction-row.is-previewing .direction-preview {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0ms;
}

.direction-preview img {
  width: 100%;
  height: clamp(180px, 20vw, 310px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.direction-row:nth-child(2) .direction-preview img {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.72);
}

.direction-preview div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(5, 10, 18, 0.72);
}

.direction-preview strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 22px;
  text-transform: uppercase;
}

.direction-preview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.direction-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.direction-dialog.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.direction-dialog-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.1), transparent 34%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.direction-dialog-shell {
  position: relative;
  z-index: 1;
  width: min(96vw, 1380px);
  display: grid;
  place-items: center;
}

.direction-dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-height: min(84vh, 780px);
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34, 34, 34, 0.92), rgba(5, 5, 5, 0.94)),
    #080808;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
}

.direction-dialog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.72), transparent 76%);
}

.direction-dialog-close {
  position: absolute;
  top: -34px;
  right: -34px;
  z-index: 5;
  min-width: 72px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.direction-dialog-media,
.direction-dialog-copy {
  position: relative;
  z-index: 1;
}

.direction-dialog-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #050505;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.direction-dialog-browserbar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.direction-dialog-browserbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.direction-dialog-browserbar strong {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.direction-dialog-frame {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  background: #050505;
}

.direction-dialog-copy {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 42px) clamp(8px, 1.4vw, 18px);
}

.direction-dialog-no {
  margin-bottom: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.direction-dialog-copy h2 {
  max-width: 620px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 0.9;
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.2);
}

.direction-dialog-copy h3 {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.direction-dialog-text {
  max-width: 560px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}

.direction-dialog-link {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  font-size: 14px;
  font-weight: 800;
}

.direction-dialog-lock {
  overflow: hidden;
}

.collection-page.embedded-collection {
  min-height: 100vh;
  overflow: auto;
  background: #050505 !important;
}

.collection-page.embedded-collection .site-header,
.collection-page.embedded-collection .page-close,
.collection-page.embedded-collection .collection-hero {
  display: none !important;
}

.collection-page.embedded-collection main {
  min-height: auto;
  padding: 0 !important;
}

.collection-page.embedded-collection .placeholder-grid,
.collection-page.embedded-collection .game-gallery-inline,
.collection-page.embedded-collection .collection-block {
  width: 100%;
  margin: 0 !important;
  padding: clamp(18px, 3vw, 34px) !important;
}

.collection-page.embedded-collection .placeholder-grid {
  min-height: 100vh;
  align-content: center;
}

.collection-page.embedded-collection .direction-card,
.collection-page.embedded-collection .game-hero-card,
.collection-page.embedded-collection .game-column,
.collection-page.embedded-collection .game-piece {
  transform: none !important;
}

.waterfall-section {
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--ink);
  background:
    radial-gradient(#000 1.5px, transparent 1.5px),
    linear-gradient(135deg, var(--yellow) 0 32%, var(--cream) 32% 68%, var(--violet) 68% 100%);
  background-size: 22px 22px, auto;
}

.waterfall-section::before {
  content: "MEDIA WALL";
  position: absolute;
  top: 24px;
  right: -16px;
  color: rgba(0, 0, 0, 0.08);
  font-size: clamp(72px, 13vw, 190px);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.waterfall-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.waterfall-heading .eyebrow {
  width: max-content;
  margin-bottom: 18px;
  grid-column: 1 / -1;
}

.waterfall-heading h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
}

.waterfall-heading p:last-child {
  margin: 0;
  padding: 18px;
  border: 4px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.45;
}

.waterfall-grid {
  position: relative;
  z-index: 1;
  column-count: 4;
  column-gap: clamp(18px, 2.6vw, 34px);
}

.waterfall-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(18px, 2.6vw, 34px);
  break-inside: avoid;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transform: rotate(-0.7deg);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.waterfall-item:nth-child(2n) {
  transform: rotate(1deg);
}

.waterfall-item:nth-child(3n) {
  transform: rotate(-1.4deg);
}

.waterfall-item:hover,
.waterfall-item:focus-visible {
  z-index: 2;
  transform: translate(-5px, -7px) rotate(0deg);
  box-shadow: 14px 14px 0 0 var(--ink);
  outline: none;
}

.waterfall-item::after {
  content: "鏌ョ湅瀹屾暣";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 140ms linear, transform 140ms linear;
}

.waterfall-item:hover::after,
.waterfall-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.waterfall-item img,
.waterfall-item video {
  width: 100%;
  height: 320px;
  background: var(--ink);
  object-fit: cover;
}

.waterfall-item.tall img,
.waterfall-item.tall video {
  height: 460px;
}

.waterfall-item.short img,
.waterfall-item.short video {
  height: 230px;
}

.video-tile {
  background: var(--ink);
  color: var(--white);
}

.video-tile video {
  filter: saturate(1.12) contrast(1.08);
}

.play-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.open {
  display: flex;
}

.lightbox-frame {
  position: relative;
  display: flex;
  width: auto;
  max-width: 96vw;
  max-height: 94vh;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.lightbox-image {
  width: auto;
  max-width: 96vw;
  max-height: 94vh;
  background: transparent;
  object-fit: contain;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5001;
  pointer-events: auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 4px solid var(--ink);
  background: var(--red);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--yellow);
  outline: none;
  transform: translateY(-2px);
}

body.lightbox-lock {
  overflow: hidden;
}

body.lightbox-lock .securify-nav-wrap,
body.lightbox-lock .site-header {
  pointer-events: none;
}

.collection-hero {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 64px);
}

.collection-hero h1 {
  max-width: 1180px;
}

.collection-block,
.placeholder-grid {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px) clamp(64px, 8vw, 104px);
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 42px);
}

.character-section {
  margin-top: clamp(24px, 4vw, 42px);
}

.section-title {
  max-width: 980px;
  margin-bottom: 40px;
}

.framework-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.framework-menu {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 16px;
}

.framework-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: 0;
  text-align: left;
  transition: transform 140ms linear, box-shadow 140ms linear, background 140ms linear;
}

.framework-tab span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 18px;
}

.framework-tab:hover,
.framework-tab:focus-visible,
.framework-tab.active {
  background: var(--red);
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 0 var(--ink);
  outline: none;
}

.framework-tab:nth-child(3).active,
.framework-tab:nth-child(3):hover,
.framework-tab:nth-child(3):focus-visible {
  background: var(--violet);
}

.framework-tab:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.framework-stage,
.process-card,
.about-panel,
.contact-card {
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.framework-stage {
  overflow: hidden;
}

.framework-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-height: 560px;
}

.framework-panel[hidden] {
  display: none;
}

.framework-panel > img {
  height: 100%;
  min-height: 560px;
  border-right: 5px solid var(--ink);
  object-fit: cover;
}

.panel-intro > img {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: 5px solid var(--ink);
  background: var(--ink);
  object-fit: contain;
}

.panel-full {
  grid-column: 1 / -1;
  background: var(--cream);
}

.panel-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  border-bottom: 5px solid var(--ink);
}

.game-gallery-inline {
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    var(--red);
  background-size: 32px 32px;
}

.panel-full img,
.game-gallery-inline img {
  object-fit: contain;
}

.panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.18) 1.5px, transparent 2px),
    var(--cream);
  background-size: 22px 22px;
}

.panel-kicker {
  display: inline-block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-copy > p:not(.panel-kicker) {
  margin-bottom: 24px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.panel-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel-columns > div {
  padding: 18px;
  border: 4px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.panel-columns strong {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 3px solid var(--ink);
  background: var(--violet);
  font-size: 18px;
}

.panel-columns ul {
  margin: 0;
  padding-left: 20px;
}

.panel-columns li {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.45;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 46px);
}

.work-card {
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.placeholder-grid .direction-card {
  overflow: hidden;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.placeholder-grid .direction-card img {
  height: 360px;
  border-bottom: 5px solid var(--ink);
  object-fit: cover;
}

.work-card {
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.work-card:hover {
  transform: translate(-4px, -8px) rotate(0deg);
  box-shadow: 18px 18px 0 0 var(--ink);
  outline: none;
}

.work-card img {
  height: 360px;
  border-bottom: 5px solid var(--ink);
  object-fit: cover;
}

.card-body {
  position: relative;
  padding: 28px;
}

.card-body p,
.about-panel p,
.process-card p,
.contact-card p {
  font-size: 18px;
  line-height: 1.55;
}

.index {
  position: absolute;
  top: -34px;
  right: 24px;
  padding: 10px 14px;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  font-size: 22px;
}

.tags,
.tool-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span,
.tool-wall span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  background: var(--violet);
  box-shadow: 3px 3px 0 0 var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rotate-left {
  transform: rotate(-1deg);
}

.rotate-right {
  transform: rotate(1deg);
}

.game-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 0;
  margin-bottom: 32px;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: 18px 18px 0 0 var(--ink);
  transform: rotate(-1deg);
}

.game-hero-card::after {
  content: "LIVE OPS";
  position: absolute;
  top: -24px;
  right: 24px;
  padding: 10px 14px;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  transform: rotate(5deg);
}

.game-hero-card img {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: 5px solid var(--ink);
  background: var(--ink);
  object-fit: contain;
}

.game-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
  background: var(--cream);
}

.game-hero-copy span,
.game-label {
  display: inline-block;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 4px solid var(--ink);
  background: var(--violet);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-hero-copy p {
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.game-column {
  padding: clamp(18px, 3vw, 28px);
  border: 5px solid var(--ink);
  background: var(--cream);
  box-shadow: 14px 14px 0 0 var(--ink);
}

.game-piece {
  overflow: hidden;
  margin-bottom: 22px;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.game-piece:hover {
  transform: translate(-5px, -8px) rotate(-1deg);
  box-shadow: 16px 16px 0 0 var(--ink);
}

.game-piece img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 450ms ease-out;
}

.game-piece:hover img {
  transform: scale(1.04);
}

.game-piece.wide {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.character-grid .game-piece {
  margin-bottom: 0;
}

.game-piece.tall {
  aspect-ratio: 9 / 16;
  background: var(--ink);
}

.game-strip {
  margin-top: 42px;
  overflow: hidden;
  border-block: 5px solid var(--ink);
  background: var(--ink);
  transform: rotate(1deg);
}

.game-strip-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 22px;
  animation: game-scroll 32s linear infinite;
}

.game-strip:hover .game-strip-track {
  animation-play-state: paused;
}

.game-strip img {
  width: min(42vw, 420px);
  height: 240px;
  flex: 0 0 auto;
  border: 4px solid var(--ink);
  background: var(--cream);
  box-shadow: 8px 8px 0 0 var(--white);
  object-fit: contain;
}

.game-strip img:nth-child(4n),
.game-strip img:nth-child(5n) {
  width: min(26vw, 220px);
}

.reveal-card {
  animation: pop-in 600ms steps(5, end) both;
}

.process-section {
  border-block: 5px solid var(--ink);
  background:
    radial-gradient(circle, var(--ink) 2px, transparent 2.5px),
    var(--yellow);
  background-size: 26px 26px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.process-card {
  padding: 24px;
}

.process-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 32px;
}

.about-section {
  background: var(--violet);
  border-bottom: 5px solid var(--ink);
}

.about-panel {
  padding: clamp(24px, 4vw, 40px);
}

.tool-wall span:nth-child(3n + 1) {
  background: var(--red);
}

.tool-wall span:nth-child(3n + 2) {
  background: var(--yellow);
}

.contact-section {
  background: var(--ink);
}

.contact-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--cream);
  box-shadow: 18px 18px 0 0 var(--white);
  text-align: center;
}

.contact-card .eyebrow {
  transform: rotate(-1deg);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes game-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-2deg) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee div {
    animation: none;
  }

  .game-strip-track,
  .reveal-card {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .section-grid,
  .work-grid,
  .placeholder-grid,
  .process-grid,
  .framework-shell,
  .framework-panel,
  .panel-intro,
  .panel-columns,
  .game-hero-card,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .framework-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .framework-panel > img,
  .panel-intro > img {
    min-height: 0;
    border-right: 0;
    border-bottom: 5px solid var(--ink);
  }

  .game-hero-card img {
    border-right: 0;
    border-bottom: 5px solid var(--ink);
  }

  .hero {
    min-height: auto;
  }

  .hero-board {
    min-height: 520px;
  }

  .waterfall-heading {
    grid-template-columns: 1fr;
  }

  .waterfall-grid {
    column-count: 2;
  }

  .direction-row {
    grid-template-columns: 42px minmax(0, 1fr) 54px;
    min-height: auto;
    padding: 18px 0;
  }

  .direction-row:hover,
  .direction-row:focus-visible,
  .direction-row.is-previewing {
    min-height: auto;
    padding-bottom: 300px;
  }

  .direction-type,
  .direction-year {
    display: none;
  }

  .direction-arrow {
    grid-column: 3;
  }

  .direction-preview {
    right: 0;
    bottom: 20px;
    left: 42px;
    grid-template-columns: 1fr;
    width: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  .direction-preview div {
    display: block;
    padding: 14px;
    border-radius: 12px;
  }

  .direction-preview img {
    height: 170px;
    border-radius: 12px;
  }
}

@media (max-width: 760px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 4px solid var(--ink);
    background: var(--cream);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .direction-title {
    font-size: clamp(24px, 10vw, 42px);
    line-height: 0.95;
  }

  .direction-no {
    font-size: 14px;
  }

  .hero-board {
    min-height: 430px;
  }

  .img-one {
    width: 72%;
  }

  .img-two {
    bottom: 96px;
    width: 76%;
  }

  .img-three {
    width: 58%;
  }

  .work-card img {
    height: 260px;
  }

  .waterfall-grid {
    column-count: 1;
  }

  .waterfall-item,
  .waterfall-item:nth-child(2n),
  .waterfall-item:nth-child(3n) {
    transform: none;
  }

  .waterfall-item img,
  .waterfall-item video {
    height: 300px;
  }

  .waterfall-item.tall img,
  .waterfall-item.tall video {
    height: 380px;
  }

  .waterfall-item.short img,
  .waterfall-item.short video {
    height: 220px;
  }

  .works-heading {
    display: block;
  }

  .direction-row {
    grid-template-columns: 42px minmax(0, 1fr) 56px;
  }

  .direction-row:hover,
  .direction-row:focus-visible,
  .direction-row.is-previewing {
    padding-bottom: 350px;
  }

  .direction-title {
    font-size: clamp(34px, 13vw, 58px);
  }

  .direction-arrow {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .direction-preview {
    left: 0;
  }

  .direction-preview img {
    height: 170px;
  }

  .framework-menu {
    grid-template-columns: 1fr;
  }

  .framework-tab {
    min-height: 66px;
  }

  .framework-panel {
    min-height: auto;
  }

  .framework-panel > img {
    min-height: 320px;
  }

  .panel-intro > img {
    min-height: 0;
  }

  .page-close {
    top: auto;
    right: 18px;
    bottom: 18px;
    min-height: 50px;
    padding: 10px 14px;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .game-strip img {
    width: 78vw;
    height: 210px;
  }

  .game-strip img:nth-child(4n),
  .game-strip img:nth-child(5n) {
    width: 52vw;
  }
}

/* Dark premium edition inspired by the supplied reference screens. */
:root {
  --cream: #050505;
  --ink: #f5f5f5;
  --red: #1f1f1f;
  --yellow: #d8d8d8;
  --violet: #3a3a3a;
  --white: #111111;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(18, 18, 18, 0.72);
  --panel-strong: rgba(28, 28, 28, 0.82);
  --glow-blue: rgba(255, 255, 255, 0.1);
  --glow-violet: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 10px 32px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 58px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 32px 110px rgba(0, 0, 0, 0.55);
}

html {
  background: #030303;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.1), transparent 32rem),
    radial-gradient(circle at 86% 36%, rgba(180, 180, 180, 0.08), transparent 34rem),
    radial-gradient(circle at 76% 88%, rgba(255, 255, 255, 0.05), transparent 30rem),
    linear-gradient(180deg, #030303 0%, #080808 44%, #000000 100%);
  background-attachment: fixed;
  font-weight: 500;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 46%, transparent 58%),
    radial-gradient(circle at 52% 20%, rgba(255, 255, 255, 0.08), transparent 18rem);
  mix-blend-mode: screen;
}

.site-header {
  margin: 14px auto 0;
  width: min(calc(100% - 36px), 1180px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 8, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.98), rgba(5, 5, 5, 0.96));
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.42);
}

.site-nav a,
.menu-button,
.page-close,
.btn,
.eyebrow,
.panel-kicker,
.game-hero-copy span,
.game-label,
.tags span,
.tool-wall span,
.index {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 238, 238, 0.82);
  backdrop-filter: blur(16px);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.btn:hover,
.btn:focus-visible,
.page-close:hover,
.page-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 18px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.menu-button span {
  background: rgba(245, 248, 255, 0.86);
}

.page-close,
.collection-page .page-close {
  background: rgba(12, 12, 12, 0.82);
  color: rgba(245, 248, 255, 0.88);
}

.section-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(330px, 0.9fr);
}

.hero {
  position: relative;
  width: min(100%, 1220px);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) clamp(22px, 5vw, 58px) clamp(52px, 7vw, 86px);
}

.hero-copy {
  min-width: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 6% auto auto;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: #d7d7d7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  color: #f5f5f5;
  font-weight: 700;
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.1);
}

h1 {
  font-size: clamp(54px, 8.2vw, 122px);
  line-height: 0.88;
}

h1 span {
  color: #ffffff;
  background: linear-gradient(90deg, #bdbdbd 0%, #ffffff 46%, #cfcfcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.2), 0 0 48px rgba(255, 255, 255, 0.12);
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.9;
}

.hero-text,
.waterfall-heading p:last-child,
.process-card,
.about-panel,
.contact-card,
.card-body p,
.about-panel p,
.process-card p,
.contact-card p,
.panel-copy > p:not(.panel-kicker),
.game-hero-copy p {
  color: rgba(220, 220, 220, 0.72);
}

.hero-text {
  max-width: 620px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.98), rgba(8, 8, 8, 0.94));
  color: #ffffff;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 238, 238, 0.86);
}

.hero-board {
  min-height: clamp(460px, 46vw, 620px);
  border-radius: 18px;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 8% 8% 12%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(12, 12, 12, 0.62);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.hero-img {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 18, 0.74);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.48), 0 0 54px rgba(255, 255, 255, 0.06);
  filter: saturate(0.82) contrast(1.08) brightness(0.72);
}

.hero-img:hover {
  filter: saturate(1.02) contrast(1.08) brightness(0.92);
}

.sticker {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 255, 255, 0.08);
}

.sticker-red,
.sticker-yellow,
.sticker-violet {
  background: rgba(36, 36, 36, 0.78);
}

.marquee {
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 3, 3, 0.78);
}

.marquee div {
  color: rgba(215, 215, 215, 0.42);
}

.works-section,
.waterfall-section,
.process-section,
.about-section,
.contact-section,
.panel-full,
.panel-copy,
.game-hero-copy,
.game-gallery-inline {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.07), transparent 28rem),
    radial-gradient(circle at 94% 24%, rgba(255, 255, 255, 0.05), transparent 32rem),
    linear-gradient(180deg, rgba(4, 4, 4, 0.98), rgba(0, 0, 0, 0.98));
}

.works-section,
.waterfall-section,
.process-section,
.about-section,
.contact-section,
.collection-block,
.placeholder-grid {
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
}

.works-section {
  position: relative;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.works-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.52), rgba(5, 7, 13, 0.9)),
    image-set(url("./assets/generated/works-section-bg.png") type("image/png"));
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.works-heading,
.direction-list,
.waterfall-heading,
.waterfall-grid,
.process-grid,
.about-section > *,
.contact-card {
  position: relative;
  z-index: 1;
}

.works-heading {
  margin-bottom: 28px;
}

.works-heading h2,
.waterfall-heading h2,
.section-title h2 {
  font-size: clamp(34px, 5vw, 64px);
}

.direction-list {
  gap: 14px;
  border: 0;
}

.direction-row {
  display: grid;
  min-height: 132px;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.84), rgba(8, 8, 8, 0.76));
  color: rgba(235, 235, 235, 0.78);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.direction-row::before {
  content: none;
}

.direction-row:hover,
.direction-row:focus-visible,
.direction-row.is-previewing {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.84), rgba(16, 16, 16, 0.82));
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.46), 0 0 46px rgba(255, 255, 255, 0.07);
}

.direction-no {
  color: #bdbdbd;
}

.direction-title {
  color: #ffffff;
  font-size: clamp(25px, 3vw, 44px);
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.14);
}

.direction-type,
.direction-year {
  color: rgba(200, 200, 200, 0.66);
}

.direction-arrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.direction-preview {
  right: 22px;
}

.direction-preview img,
.direction-preview div {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 8, 0.86);
  box-shadow: var(--shadow-md);
}

.direction-preview img {
  filter: brightness(0.78) saturate(0.9);
}

.direction-preview p {
  color: rgba(213, 223, 244, 0.64);
}

.waterfall-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.waterfall-section::before {
  color: rgba(255, 255, 255, 0.05);
}

.waterfall-heading {
  max-width: 720px;
}

.waterfall-grid {
  gap: 18px;
}

.waterfall-item,
.work-card,
.placeholder-grid .direction-card,
.framework-stage,
.process-card,
.about-panel,
.contact-card,
.game-hero-card,
.game-column,
.game-piece,
.panel-columns > div {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(24, 24, 24, 0.8), rgba(7, 7, 7, 0.72));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.waterfall-item img,
.waterfall-item video,
.work-card img,
.placeholder-grid .direction-card img,
.framework-panel > img,
.panel-intro > img,
.game-hero-card img,
.game-piece img,
.panel-full img,
.game-gallery-inline img {
  filter: brightness(0.72) saturate(0.88) contrast(1.06);
  transition: filter 220ms ease, transform 220ms ease;
}

.waterfall-item:hover img,
.waterfall-item:focus-visible img,
.work-card:hover img,
.game-piece:hover img {
  filter: brightness(0.9) saturate(1) contrast(1.08);
}

.waterfall-item::after {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.78);
  color: #eeeeee;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

.play-badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(32, 32, 32, 0.86);
  color: #ffffff;
}

.lightbox {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.08), transparent 34rem),
    rgba(3, 3, 3, 0.94);
}

.lightbox-frame,
.lightbox-close {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 14, 0.88);
  color: #ffffff;
}

.collection-hero {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(82px, 10vw, 132px) clamp(24px, 5vw, 44px) clamp(48px, 7vw, 78px);
}

.collection-hero h1 {
  max-width: 980px;
}

.collection-hero .hero-text {
  max-width: 760px;
}

.framework-tab {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 18, 0.76);
  color: rgba(229, 229, 229, 0.74);
}

.framework-tab span,
.tags span,
.tool-wall span,
.panel-columns strong {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 235, 235, 0.86);
}

.framework-tab:hover,
.framework-tab:focus-visible,
.framework-tab.active,
.framework-tab:nth-child(3).active,
.framework-tab:nth-child(3):hover,
.framework-tab:nth-child(3):focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.panel-kicker,
.game-hero-copy span,
.game-label {
  color: #d7d7d7;
}

.panel-columns strong,
.process-card strong {
  color: #ffffff;
}

.game-gallery-inline,
.process-section,
.about-section {
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.game-hero-card::after {
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.18));
}

.game-hero-copy {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.86), transparent);
}

.contact-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 32rem),
    #030303;
}

.contact-card {
  background:
    linear-gradient(145deg, rgba(34, 34, 34, 0.84), rgba(6, 6, 6, 0.8));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.5), 0 0 70px rgba(255, 255, 255, 0.06);
}

.tool-wall span:nth-child(3n + 1),
.tool-wall span:nth-child(3n + 2) {
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 980px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    width: calc(100% - 24px);
    margin: 10px auto 0;
  }

  .site-nav {
    background: rgba(8, 8, 8, 0.96);
  }

  h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .hero {
    padding: 50px 22px 42px;
  }

  .hero-text {
    color: rgba(220, 220, 220, 0.72);
  }

  .hero-board {
    min-height: 390px;
  }

  .direction-row {
    min-height: 118px;
    padding: 18px;
  }

  .direction-row:hover,
  .direction-row:focus-visible,
  .direction-row.is-previewing {
    padding-bottom: 330px;
  }

  .waterfall-grid {
    gap: 14px;
  }

  .collection-hero {
    padding-top: 72px;
  }
}

/* Gallery style edition: a quieter, editorial portfolio skin for the copied site. */
:root {
  --cream: #f6f1e8;
  --ink: #191715;
  --red: #e85d45;
  --yellow: #d4ef4a;
  --violet: #59b8ad;
  --white: #fffaf0;
  --muted: #797168;
  --line: rgba(25, 23, 21, 0.16);
  --panel: rgba(255, 250, 240, 0.86);
  --shadow-sm: 0 8px 20px rgba(25, 23, 21, 0.08);
  --shadow-md: 0 18px 42px rgba(25, 23, 21, 0.12);
  --shadow-lg: 0 28px 80px rgba(25, 23, 21, 0.16);
}

body {
  color: var(--ink);
  font-family: "Space Grotesk", "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(to right, rgba(25, 23, 21, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 23, 21, 0.055) 1px, transparent 1px),
    var(--cream);
  background-size: 72px 72px;
  font-weight: 500;
}

.site-header {
  margin: 14px clamp(14px, 3vw, 34px) 0;
  padding: 12px clamp(12px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 241, 232, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.logo,
.site-nav a,
.menu-button,
.btn,
.page-close,
.eyebrow,
.panel-kicker,
.game-hero-copy span,
.game-label,
.tags span,
.tool-wall span,
.index {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.logo {
  padding: 10px 13px;
  background: var(--ink);
  color: var(--cream);
  letter-spacing: 0.04em;
}

.site-nav a {
  background: transparent;
  color: rgba(25, 23, 21, 0.7);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.btn:hover,
.btn:focus-visible,
.page-close:hover,
.page-close:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.menu-button {
  background: var(--white);
}

.menu-button span {
  height: 2px;
  background: var(--ink);
}

.page-close,
.collection-page .page-close {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.hero {
  min-height: auto;
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  padding: 8px 10px;
  background: rgba(212, 239, 74, 0.58);
  color: #464035;
  font-size: 12px;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  font-weight: 700;
}

h1 {
  max-width: 920px;
  font-size: clamp(52px, 8.5vw, 116px);
  line-height: 0.86;
  overflow-wrap: normal;
  word-break: normal;
}

h1 span {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--red);
  transform: none;
}

h2 {
  line-height: 0.94;
}

.hero-text {
  max-width: 690px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #3e3932;
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 500;
}

.hero-actions {
  gap: 12px;
}

.btn {
  min-height: 50px;
  padding: 13px 19px;
  font-size: 13px;
  font-weight: 700;
}

.btn.primary {
  background: var(--ink);
  color: var(--cream);
}

.btn.secondary {
  background: var(--white);
}

.hero-board {
  min-height: clamp(430px, 45vw, 560px);
}

.hero-img {
  border: 1px solid rgba(25, 23, 21, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  filter: saturate(0.96) contrast(1.03);
}

.img-one {
  right: 8%;
  transform: rotate(1.2deg);
}

.img-two {
  transform: rotate(-1.6deg);
}

.img-three {
  transform: rotate(1deg);
}

.sticker {
  border: 1px solid rgba(25, 23, 21, 0.18);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  font-weight: 700;
}

.sticker-red {
  background: var(--red);
  color: var(--white);
}

.sticker-yellow {
  background: var(--yellow);
}

.sticker-violet {
  background: var(--violet);
  color: var(--white);
}

.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
}

.marquee div {
  padding: 12px 0;
  font-size: clamp(19px, 2.8vw, 34px);
  font-weight: 700;
}

.works-section {
  border-block: 0;
  background:
    linear-gradient(90deg, rgba(12, 15, 17, 0.92), rgba(12, 15, 17, 0.72) 52%, rgba(12, 15, 17, 0.48)),
    image-set(url("./assets/generated/works-section-bg.png") type("image/png"));
  background-position: center;
  background-size: cover;
}

.works-section::before {
  background:
    linear-gradient(to right, rgba(255, 250, 240, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 250, 240, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mix-blend-mode: normal;
}

.works-heading h2,
.direction-title {
  font-weight: 700;
}

.direction-list,
.direction-row {
  border-color: rgba(255, 250, 240, 0.22);
}

.direction-row {
  color: rgba(255, 250, 240, 0.7);
}

.direction-row::before {
  inset: 10px -20px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  backdrop-filter: blur(8px);
}

.direction-arrow {
  border: 1px solid rgba(255, 250, 240, 0.28);
  background: rgba(255, 250, 240, 0.08);
}

.direction-preview img,
.direction-preview div {
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
}

.direction-preview div {
  background: rgba(25, 23, 21, 0.72);
  box-shadow: var(--shadow-md);
}

.waterfall-section {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(25, 23, 21, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 23, 21, 0.055) 1px, transparent 1px),
    #f2eadf;
  background-size: 72px 72px;
}

.waterfall-section::before {
  color: rgba(25, 23, 21, 0.045);
  font-weight: 700;
  transform: none;
}

.waterfall-heading p:last-child {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #514b43;
  font-weight: 500;
}

.waterfall-item,
.work-card,
.placeholder-grid .direction-card,
.framework-stage,
.process-card,
.about-panel,
.contact-card,
.game-hero-card,
.game-column,
.game-piece,
.panel-columns > div {
  border: 1px solid rgba(25, 23, 21, 0.14);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.waterfall-item {
  overflow: hidden;
}

.waterfall-item,
.waterfall-item:nth-child(2n),
.waterfall-item:nth-child(3n),
.game-hero-card,
.game-strip {
  transform: none;
}

.waterfall-item:hover,
.waterfall-item:focus-visible,
.work-card:hover,
.game-piece:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.waterfall-item::after {
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(25, 23, 21, 0.14);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.waterfall-item img,
.waterfall-item video,
.work-card img,
.placeholder-grid .direction-card img,
.framework-panel > img,
.panel-intro > img,
.game-hero-card img {
  border: 0;
}

.play-badge {
  border: 1px solid rgba(25, 23, 21, 0.16);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.lightbox {
  background: rgba(25, 23, 21, 0.94);
}

.lightbox-close {
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.collection-hero {
  padding-top: clamp(72px, 9vw, 112px);
}

.framework-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.76);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.framework-tab span {
  border: 1px solid var(--line);
  background: var(--yellow);
}

.framework-tab:hover,
.framework-tab:focus-visible,
.framework-tab.active,
.framework-tab:nth-child(3).active,
.framework-tab:nth-child(3):hover,
.framework-tab:nth-child(3):focus-visible {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.panel-full,
.panel-copy,
.game-hero-copy,
.game-gallery-inline,
.process-section,
.about-section,
.contact-section {
  background:
    linear-gradient(to right, rgba(25, 23, 21, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 23, 21, 0.045) 1px, transparent 1px),
    var(--cream);
  background-size: 64px 64px;
}

.game-gallery-inline,
.process-section,
.about-section {
  border-block: 1px solid var(--line);
}

.process-card,
.about-panel,
.contact-card,
.card-body p,
.about-panel p,
.process-card p,
.contact-card p,
.panel-copy > p:not(.panel-kicker),
.game-hero-copy p {
  color: #4b463f;
  font-weight: 500;
}

.process-card strong {
  color: var(--ink);
  font-size: 26px;
}

.contact-section {
  background: var(--ink);
}

.contact-card {
  background: #fff7e9;
  box-shadow: 0 26px 80px rgba(255, 250, 240, 0.16);
}

.tags span,
.tool-wall span,
.panel-columns strong {
  background: rgba(89, 184, 173, 0.22);
}

.tool-wall span:nth-child(3n + 1) {
  background: rgba(232, 93, 69, 0.18);
}

.tool-wall span:nth-child(3n + 2) {
  background: rgba(212, 239, 74, 0.34);
}

.game-strip {
  border-block: 1px solid var(--line);
}

.game-strip img {
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    margin: 10px 12px 0;
    padding: 10px 12px;
  }

  .logo {
    padding: 9px 12px;
    font-size: 16px;
  }

  .menu-button {
    width: 46px;
    height: 46px;
  }

  .site-nav {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(246, 241, 232, 0.94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
  }

  h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(40px, 11.2vw, 50px);
    line-height: 0.95;
  }

  h1 span {
    display: block;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 26px;
    padding: 52px 24px 46px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .hero-text {
    display: block;
    max-width: 100%;
    margin-bottom: 22px;
    color: #4d463e;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: break-all;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn {
    min-height: 50px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
  }

  .btn.primary {
    color: var(--cream);
  }

  .btn.secondary {
    background: rgba(255, 250, 240, 0.92);
    color: var(--ink);
  }

  .hero-board {
    width: 100%;
    max-width: 100%;
    min-height: 380px;
    margin-top: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .hero-img {
    max-width: 100%;
    box-shadow: 0 18px 52px rgba(25, 23, 21, 0.16);
  }

  .img-one {
    top: 0;
    right: 0;
    width: 72%;
    aspect-ratio: 0.95;
    transform: rotate(1deg);
  }

  .img-two {
    bottom: 54px;
    left: 0;
    width: 80%;
    aspect-ratio: 1.35;
    transform: rotate(-1.2deg);
  }

  .img-three {
    right: 0;
    bottom: 0;
    width: 50%;
    aspect-ratio: 0.9;
    transform: rotate(1.2deg);
  }

  .sticker {
    min-width: 46px;
    min-height: 46px;
    font-size: 12px;
  }

  .sticker-red {
    top: 42px;
    left: 8px;
  }

  .sticker-yellow {
    top: 48%;
    right: 8px;
  }

  .sticker-violet {
    bottom: 26px;
    left: 38%;
  }

  .marquee div {
    padding: 10px 0;
    font-size: 19px;
  }

  .works-section,
  .waterfall-section,
  .process-section,
  .about-section,
  .contact-section,
  .collection-block,
  .placeholder-grid {
    padding-right: 24px;
    padding-left: 24px;
  }

  .direction-row:hover,
  .direction-row:focus-visible,
  .direction-row.is-previewing {
    padding-bottom: 330px;
  }
}

/* Final dark lock: keep this block last so older skins cannot override it. */
:root {
  --cream: #050505;
  --ink: #f6f6f6;
  --red: #d9d9d9;
  --yellow: #f1f1f1;
  --violet: #8a8a8a;
  --white: #11100e;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(18, 18, 18, 0.72);
  --shadow-sm: 0 10px 32px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 58px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 32px 110px rgba(0, 0, 0, 0.55);
}

html,
body {
  background: #030303 !important;
}

body {
  color: var(--ink) !important;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.11), transparent 32rem),
    radial-gradient(circle at 88% 32%, rgba(255, 255, 255, 0.07), transparent 34rem),
    radial-gradient(circle at 76% 88%, rgba(255, 255, 255, 0.06), transparent 30rem),
    linear-gradient(180deg, #030303 0%, #070707 44%, #020202 100%) !important;
  background-attachment: fixed;
  font-weight: 500;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.055) 46%, transparent 58%),
    radial-gradient(circle at 52% 20%, rgba(255, 255, 255, 0.08), transparent 18rem);
  mix-blend-mode: screen;
}

.site-header {
  width: min(calc(100% - 36px), 1180px);
  margin: 14px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(8, 8, 8, 0.78) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px);
}

.logo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(44, 44, 44, 0.94)) !important;
  color: #ffffff !important;
}

.site-nav a,
.menu-button,
.page-close,
.btn,
.eyebrow,
.panel-kicker,
.game-hero-copy span,
.game-label,
.tags span,
.tool-wall span,
.index {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: rgba(232, 232, 232, 0.8) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.btn:hover,
.btn:focus-visible,
.page-close:hover,
.page-close:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 18px 48px rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-2px);
}

.menu-button span {
  background: rgba(245, 248, 255, 0.86) !important;
}

.hero {
  position: relative;
  width: min(100%, 1220px);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) clamp(22px, 5vw, 58px) clamp(52px, 7vw, 86px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 6% auto auto;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.eyebrow {
  color: #dcdcdc !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  color: #f6f6f6 !important;
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.11);
}

h1 span {
  color: #ffffff !important;
  background: linear-gradient(90deg, #d9d9d9 0%, #ffffff 46%, #f1f1f1 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.18), 0 0 48px rgba(255, 255, 255, 0.1);
  -webkit-text-fill-color: transparent;
}

.hero-text,
.waterfall-heading p:last-child,
.card-body p,
.about-panel p,
.process-card p,
.contact-card p,
.panel-copy > p:not(.panel-kicker),
.game-hero-copy p {
  color: rgba(225, 225, 225, 0.72) !important;
}

.hero-text {
  max-width: 620px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(22, 22, 22, 0.92)) !important;
  color: #ffffff !important;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.055) !important;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 8% 8% 12%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(11, 14, 24, 0.5);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.hero-img {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(20, 20, 18, 0.74) !important;
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.48), 0 0 54px rgba(255, 255, 255, 0.1) !important;
  filter: saturate(0.88) contrast(1.08) brightness(0.78);
}

.sticker-red,
.sticker-yellow,
.sticker-violet {
  background: rgba(48, 48, 48, 0.68) !important;
  color: #ffffff !important;
}

.marquee {
  border-block: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: rgba(3, 3, 3, 0.78) !important;
}

.marquee div {
  color: rgba(255, 255, 255, 0.28) !important;
}

.works-section,
.waterfall-section,
.process-section,
.about-section,
.contact-section,
.panel-full,
.panel-copy,
.game-hero-copy,
.game-gallery-inline {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.07), transparent 28rem),
    radial-gradient(circle at 94% 24%, rgba(255, 255, 255, 0.05), transparent 32rem),
    linear-gradient(180deg, rgba(4, 4, 4, 0.98), rgba(0, 0, 0, 0.98)) !important;
}

.works-section,
.waterfall-section,
.process-section,
.about-section,
.contact-section,
.collection-block,
.placeholder-grid {
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
}

.works-section {
  position: relative;
  border-block: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden;
}

.works-heading,
.direction-list,
.waterfall-heading,
.waterfall-grid,
.process-grid,
.about-section > *,
.contact-card {
  position: relative;
  z-index: 1;
}

.direction-list {
  gap: 14px;
  border: 0 !important;
}

.direction-row {
  min-height: 132px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.8), rgba(10, 10, 10, 0.76)) !important;
  color: rgba(232, 232, 232, 0.78) !important;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px);
}

.direction-row::before {
  content: none !important;
}

.direction-row:hover,
.direction-row:focus-visible,
.direction-row.is-previewing {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.84), rgba(16, 16, 16, 0.82)) !important;
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.46), 0 0 46px rgba(255, 255, 255, 0.12) !important;
}

.direction-no {
  color: #d9d9d9 !important;
}

.direction-title {
  color: #ffffff !important;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.22);
}

.direction-type,
.direction-year {
  color: rgba(198, 198, 198, 0.66) !important;
}

.direction-arrow {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.direction-preview img,
.direction-preview div {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(10, 10, 10, 0.84) !important;
  box-shadow: var(--shadow-md) !important;
}

.waterfall-item,
.work-card,
.placeholder-grid .direction-card,
.framework-stage,
.process-card,
.about-panel,
.contact-card,
.game-hero-card,
.game-column,
.game-piece,
.panel-columns > div {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: linear-gradient(145deg, rgba(24, 24, 24, 0.8), rgba(9, 9, 9, 0.72)) !important;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  color: rgba(230, 230, 230, 0.82);
  backdrop-filter: blur(18px);
}

.waterfall-item img,
.waterfall-item video,
.work-card img,
.placeholder-grid .direction-card img,
.framework-panel > img,
.panel-intro > img,
.game-hero-card img,
.game-piece img,
.panel-full img,
.game-gallery-inline img {
  filter: brightness(0.72) saturate(0.88) contrast(1.06);
  transition: filter 220ms ease, transform 220ms ease;
}

.waterfall-item:hover img,
.waterfall-item:focus-visible img,
.work-card:hover img,
.game-piece:hover img {
  filter: brightness(0.9) saturate(1) contrast(1.08);
}

.waterfall-item::after {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(10, 10, 10, 0.78) !important;
  color: #f1f1f1 !important;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.16) !important;
}

.waterfall-item::after,
.waterfall-item:hover::after,
.waterfall-item:focus-visible::after {
  content: none !important;
  display: none !important;
}

.play-badge {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(54, 54, 54, 0.88) !important;
  color: #ffffff !important;
}

.lightbox {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.1), transparent 34rem),
    rgba(3, 3, 3, 0.94) !important;
}

.lightbox-frame,
.lightbox-close {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(14, 14, 14, 0.88) !important;
  color: #ffffff !important;
}

.collection-hero {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.framework-tab {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(18, 18, 18, 0.74) !important;
  color: rgba(224, 224, 224, 0.74) !important;
}

.framework-tab span,
.tags span,
.tool-wall span,
.panel-columns strong {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(236, 236, 236, 0.86) !important;
}

.framework-tab:hover,
.framework-tab:focus-visible,
.framework-tab.active,
.framework-tab:nth-child(3).active,
.framework-tab:nth-child(3):hover,
.framework-tab:nth-child(3):focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.panel-kicker,
.game-hero-copy span,
.game-label {
  color: #dcdcdc !important;
}

.panel-columns strong,
.process-card strong {
  color: #ffffff !important;
}

.game-hero-card::after {
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.18)) !important;
}

.game-hero-copy {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.86), transparent) !important;
}

.contact-card {
  background: linear-gradient(145deg, rgba(34, 34, 34, 0.84), rgba(8, 8, 8, 0.8)) !important;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.5), 0 0 70px rgba(255, 255, 255, 0.1) !important;
}

.collection-page main,
.collection-page .collection-hero,
.collection-page .collection-block,
.collection-page .placeholder-grid,
.collection-page .game-gallery-inline,
.collection-page .framework-shell,
.collection-page .framework-stage,
.collection-page .framework-panel,
.collection-page .work-grid {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

.collection-page .placeholder-grid,
.collection-page .work-grid,
.collection-page .framework-shell,
.collection-page .framework-panel,
.collection-page .game-layout,
.collection-page .character-grid {
  display: grid;
}

.collection-page .reveal-card,
.collection-page .direction-card,
.collection-page .work-card,
.collection-page .game-hero-card,
.collection-page .game-column,
.collection-page .game-piece,
.collection-page .panel-full,
.collection-page .panel-copy {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.collection-page .reveal-card {
  animation: none !important;
}

.collection-page .framework-panel[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    width: calc(100% - 24px);
    margin: 10px auto 0;
  }

  .site-nav {
    background: rgba(8, 8, 8, 0.95) !important;
  }

  h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .hero {
    padding: 50px 22px 42px;
  }

  .hero-board {
    min-height: 390px;
  }

  .direction-row {
    min-height: 118px;
    padding: 18px;
  }
}

.auto-showcase {
  position: relative;
  isolation: isolate;
  min-height: 108vh;
  padding: 0;
  overflow: hidden;
  --flow-progress: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.055), transparent 34%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.045), transparent 28rem),
    radial-gradient(circle at 80% 72%, rgba(255, 255, 255, 0.035), transparent 34rem),
    linear-gradient(180deg, rgba(3, 3, 3, 1), rgba(7, 7, 7, 0.98) 54%, rgba(2, 2, 2, 1));
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.auto-showcase::before,
.auto-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.auto-showcase::before {
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 38%, rgba(0, 0, 0, 0.56) 72%, rgba(0, 0, 0, 0.99) 100%),
    linear-gradient(90deg, rgba(3, 3, 3, 1) 0%, rgba(3, 3, 3, 0.92) 9%, rgba(3, 3, 3, 0.08) 34%, rgba(3, 3, 3, 0.08) 66%, rgba(3, 3, 3, 0.92) 91%, rgba(3, 3, 3, 1) 100%),
    linear-gradient(180deg, rgba(3, 3, 3, 1) 0%, rgba(3, 3, 3, 0.14) 20%, rgba(3, 3, 3, 0.1) 78%, rgba(3, 3, 3, 1) 100%);
}

.auto-showcase::after {
  z-index: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 78%);
}

.auto-showcase-copy {
  position: relative;
  z-index: 5;
  width: min(100% - 48px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: clamp(96px, 12vh, 140px);
  pointer-events: none;
}

.auto-showcase-copy h2 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 0.92;
}

.auto-showcase-copy p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(220, 220, 220, 0.68);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.7;
}

.showcase-wall {
  --wall-tilt: 0deg;
  --wall-depth: 0px;
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: clamp(20px, 3.2vh, 34px);
  width: 100%;
  height: 100vh;
  margin-top: 0;
  perspective: 760px;
  perspective-origin: 50% 50%;
  transform: translateZ(var(--wall-depth)) rotateY(var(--wall-tilt)) rotateX(0deg) scale(1.035);
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.showcase-wall.is-dragging {
  cursor: grabbing;
}

.showcase-wall.is-dome-gallery {
  --dome-radius: 720px;
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  place-items: center;
  overflow: hidden;
  perspective: calc(var(--dome-radius) * 2);
  perspective-origin: 50% 50%;
  transform: none;
  contain: layout paint size;
}

.showcase-wall.is-dome-gallery::before,
.showcase-wall.is-dome-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.showcase-wall.is-dome-gallery::before {
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.62) 76%, rgba(0, 0, 0, 0.98) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.98), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.98)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.98), transparent 20%, transparent 78%, rgba(0, 0, 0, 0.98));
}

.showcase-wall.is-dome-gallery::after {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mask-image: radial-gradient(ellipse at center, transparent 52%, #000 88%);
}

.showcase-sphere,
.showcase-dome-item,
.showcase-dome-media {
  transform-style: preserve-3d;
}

.showcase-sphere {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1px;
  height: 1px;
  will-change: transform;
  transform: rotateX(0deg) rotateY(0deg);
}

.showcase-dome-item {
  position: absolute;
  inset: -999px;
  width: clamp(300px, 25vw, 450px);
  height: clamp(171px, 14.1vw, 253px);
  margin: auto;
  backface-visibility: visible;
  transform:
    rotateY(var(--item-rot-y))
    rotateX(var(--item-rot-x))
    translateZ(var(--dome-radius));
}

.showcase-dome-media {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.82);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.72),
    inset 0 1px 26px rgba(255, 255, 255, 0.035);
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.showcase-dome-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translateZ(0.1px);
  filter: brightness(0.96) saturate(1) contrast(1.04);
  opacity: 1;
  image-rendering: auto;
}

.showcase-row {
  display: flex;
  width: max-content;
  gap: clamp(16px, 1.8vw, 24px);
  will-change: transform;
  transform:
    translate3d(var(--wall-x, 0px), var(--arc-y, 0px), var(--arc-z, 0px))
    rotateX(var(--arc-rotate, 0deg))
    scale(var(--arc-scale, 1));
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  animation: none !important;
}

.showcase-row.row-a {
  --arc-y: 0px;
  --arc-z: 0px;
  --arc-rotate: 0deg;
  --arc-scale: 1;
  --edge-bend: 0px;
  --row-tilt: 0deg;
  --row-curve: 0deg;
}

.showcase-row.row-b {
  margin-left: 0;
  --arc-y: 0px;
  --arc-z: 0px;
  --arc-rotate: 0deg;
  --arc-scale: 1;
  --edge-bend: 0px;
  --row-tilt: 0deg;
  --row-curve: 0deg;
}

.showcase-row.row-c {
  margin-left: 0;
  --arc-y: 0px;
  --arc-z: 0px;
  --arc-rotate: 0deg;
  --arc-scale: 1;
  --edge-bend: 0px;
  --row-tilt: 0deg;
  --row-curve: 0deg;
}

.showcase-row img {
  --focus: 0;
  --edge: 0;
  --side: 0;
  width: clamp(300px, 26vw, 450px);
  height: clamp(176px, 14.8vw, 252px);
  flex: 0 0 auto;
  object-fit: cover;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(4, 6, 10, 0.78);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(255, 255, 255, 0.025),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 1px 32px rgba(255, 255, 255, 0.035);
  filter:
    blur(calc((1 - var(--focus)) * 0.12px))
    brightness(calc(0.46 + var(--focus) * 0.4))
    saturate(calc(0.64 + var(--focus) * 0.42))
    contrast(1.08);
  opacity: calc(0.62 + var(--focus) * 0.38);
  transform:
    translateZ(calc(var(--focus) * 72px - var(--edge) * 110px))
    rotateY(calc(var(--side) * -9deg))
    scale(calc(1 - var(--edge) * 0.045));
  transform-style: preserve-3d;
  transition: border-color 220ms ease;
}

.showcase-row img:hover {
  position: relative;
  z-index: 4;
  border-color: rgba(255, 255, 255, 0.34);
  filter: brightness(0.9) saturate(1) contrast(1.08);
  opacity: 1;
}

.showcase-wall:hover .showcase-row {
  --flow-hover: 1;
}

@keyframes showcase-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - clamp(9px, 1.1vw, 15px)));
  }
}

@keyframes showcase-scroll-right {
  from {
    transform: translateX(calc(-50% - clamp(9px, 1.1vw, 15px)));
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-row {
    transform: none;
  }
}

@media (max-width: 760px) {
  .direction-dialog {
    padding: 16px;
  }

  .direction-dialog-close {
    top: 10px;
    right: 10px;
  }

  .direction-dialog-card {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }

  .direction-dialog-frame {
    min-height: 440px;
  }

  .direction-dialog-copy {
    padding: 8px 4px 10px;
  }

  .direction-dialog-copy h2 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .auto-showcase {
    min-height: 108vh;
    padding: 0;
  }

  .auto-showcase-copy {
    width: calc(100% - 44px);
    min-height: 100vh;
    padding-top: 78px;
  }

  .auto-showcase-copy h2 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .showcase-wall {
    gap: 14px;
    margin-top: 0;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    transform: translateZ(var(--wall-depth)) rotateY(var(--wall-tilt)) rotateX(0deg) scale(1.02);
  }

  .showcase-row.row-a {
    --arc-y: 0px;
    --arc-z: 0px;
    --arc-rotate: 0deg;
    --arc-scale: 1;
    --edge-bend: 0px;
    --row-tilt: 0deg;
    --row-curve: 0deg;
  }

  .showcase-row.row-b {
    --arc-y: 0px;
    --arc-z: 0px;
    --arc-rotate: 0deg;
    --arc-scale: 1;
    --edge-bend: 0px;
    --row-tilt: 0deg;
    --row-curve: 0deg;
  }

  .showcase-row.row-c {
    --arc-y: 0px;
    --arc-z: 0px;
    --arc-rotate: 0deg;
    --arc-scale: 1;
    --edge-bend: 0px;
    --row-tilt: 0deg;
    --row-curve: 0deg;
  }

  .showcase-row {
    gap: 14px;
  }

  .showcase-row img {
    width: 270px;
    height: 166px;
    border-radius: 18px;
  }
}

/* React Bits SpotlightCard effect adapted for the static direction cards. */
.direction-row.card-spotlight {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.12);
}

.direction-row.card-spotlight::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.direction-row.card-spotlight:hover::after,
.direction-row.card-spotlight:focus-within::after,
.direction-row.card-spotlight:focus-visible::after {
  opacity: 0.72;
}

/* React Bits SideRays-style background for the selected works section. */
.works-section {
  position: relative;
  isolation: isolate;
  background: #030303 !important;
}

.works-section::before,
.works-section::after {
  z-index: 0;
}

.side-rays-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.works-side-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
}

.works-side-rays canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.works-heading,
.direction-list {
  position: relative;
  z-index: 3;
}

.direction-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* Compact the selected works screen without changing card behavior. */
.works-section {
  min-height: auto !important;
  padding-top: clamp(34px, 5vw, 68px) !important;
  padding-bottom: clamp(34px, 5vw, 68px) !important;
  background: #030303 !important;
  background-image: none !important;
}

.works-section::before,
.works-section::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.works-heading {
  margin-bottom: clamp(18px, 3vw, 32px);
}

.works-heading h2 {
  font-size: clamp(42px, 6.5vw, 82px);
}

.direction-list {
  display: grid;
  gap: 8px;
}

.direction-row {
  min-height: clamp(88px, 9vw, 112px) !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.direction-row:hover,
.direction-row:focus-visible,
.direction-row.is-previewing {
  min-height: clamp(220px, 24vw, 310px) !important;
  padding-bottom: clamp(148px, 16vw, 220px) !important;
}

.direction-title {
  font-size: clamp(28px, 4.4vw, 58px);
}

.direction-preview {
  bottom: 18px;
}

.direction-preview img {
  height: clamp(140px, 15vw, 220px);
}

@media (max-width: 760px) {
  .works-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .direction-row:hover,
  .direction-row:focus-visible,
  .direction-row.is-previewing {
    padding-bottom: 260px !important;
  }
}
