.global-viewport-frame {
  pointer-events: none;
  z-index: 9999;
  box-shadow:
    0 0 0 100vmax var(--white),
    inset 0 0 0 1px #1a1a1a14;
  box-sizing: border-box;
  border-radius: 24px;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: fixed;
  inset: 16px;
}
body.scrolled .global-viewport-frame {
  opacity: 0;
}
.section-wrapper {
  box-sizing: border-box;
  width: 100%;
}
.section-wrapper.hero-wrapper {
  z-index: 1;
  height: 100vh;
  position: sticky;
  top: 0;
}
.section-wrapper.results-wrapper {
  z-index: 2;
  height: 100vh;
  position: relative;
}
.section-wrapper.dome-wrapper {
  z-index: 3;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sticky-container {
  box-sizing: border-box;
  height: 100vh;
  padding: 16px;
  transition: padding 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: sticky;
  top: 0;
  overflow: hidden;
}
body.scrolled .sticky-container {
  padding: 0;
}
.section-card {
  background-color: var(--white);
  backface-visibility: hidden;
  box-sizing: border-box;
  border-radius: 24px;
  width: 100%;
  height: 100%;
  transition: border-radius 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}
body.scrolled .section-card {
  border-radius: 0;
}
.results-section.section-card,
.results-section.white {
  background: 0 0 !important;
}
.capabilities-flow-wrapper {
  z-index: 4;
  background: var(--off-white);
  box-sizing: border-box;
  border-radius: 24px 24px 0 0;
  width: 100%;
  margin-top: 0;
  padding-bottom: 0;
  transition: border-radius 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  box-shadow: 0 -20px 40px #0000001a;
}
body.scrolled .capabilities-flow-wrapper {
  border-radius: 0;
}
.hero {
  background: 0 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 40px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.hero-bg-container,
.pixel-blast-bg-container {
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.hero-bg-container canvas,
.pixel-blast-bg-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-content {
  z-index: 10;
  color: var(--deep-red);
  text-align: center;
  perspective: 1000px;
  width: 100%;
  max-width: 900px;
  transform-style: preserve-3d;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}
.hero-mission {
  font-family: var(--sans-font);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  max-width: 900px;
  color: var(--charcoal);
  margin-top: 1rem;
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  display: block;
}
.hero-mission .highlight {
  color: var(--charcoal);
  display: inline-block;
}
.creativity-3d {
  color: var(--charcoal);
  font-family: var(--sans-font);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  z-index: 5;
  transform-style: preserve-3d;
  text-shadow:
    1px 1px #f36,
    2px 2px #f36,
    3px 3px #f36,
    4px 4px #f36,
    5px 5px #f93,
    6px 6px #f93,
    7px 7px #f93,
    8px 8px #f93,
    9px 9px #00f2fe,
    10px 10px #00f2fe,
    11px 11px 15px #0006;
  margin: 0 0.1em;
  padding: 0 5px;
  font-weight: 900;
  animation: 2.5s ease-in-out infinite alternate hey3d;
  display: inline-block;
  position: relative;
}
@keyframes hey3d {
  0% {
    text-shadow:
      1px 1px #f36,
      2px 2px #f36,
      3px 3px #f36,
      4px 4px #f36,
      5px 5px #f93,
      6px 6px #f93,
      7px 7px #f93,
      8px 8px #f93,
      9px 9px 15px #0006;
    transform: rotateX(12deg) rotateY(-18deg) scale(1) translateZ(0);
  }
  50% {
    text-shadow:
      0 2px #00f2fe,
      0 4px #00f2fe,
      0 6px #00f2fe,
      0 8px #f36,
      0 10px #f36,
      0 12px #f36,
      0 14px 20px #00000080;
    transform: rotateX(18deg) rotateY(0) scale(1.06) translateZ(25px);
  }
  to {
    text-shadow:
      -1px 1px #f93,
      -2px 2px #f93,
      -3px 3px #f93,
      -4px 4px #f93,
      -5px 5px #00f2fe,
      -6px 6px #00f2fe,
      -7px 7px #00f2fe,
      -8px 8px #00f2fe,
      -9px 9px 15px #0006;
    transform: rotateX(12deg) rotateY(18deg) scale(1) translateZ(0);
  }
}
.hero-divider {
  background: var(--white);
  opacity: 0.6;
  width: 60px;
  height: 2px;
  margin: 40px auto;
}
.hero-btns {
  justify-content: center;
  gap: 16px;
  display: flex;
}
.animated-button {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--sans-font), Arial, sans-serif;
  color: var(--charcoal);
  box-shadow: 0 0 0 2px var(--charcoal);
  cursor: pointer;
  z-index: 10;
  letter-spacing: 0.12em;
  white-space: nowrap;
  background-color: #0000;
  border: 4px solid #0000;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-flex;
  position: relative;
  overflow: hidden;
}
.animated-button.secondary {
  color: var(--deep-red);
  box-shadow: 0 0 0 2px var(--deep-red);
}
.animated-button svg {
  width: 18px;
  height: 18px;
  fill: var(--charcoal);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: absolute;
}
.animated-button.secondary svg {
  fill: var(--deep-red);
}
.animated-button .arr-1 {
  right: 20px;
}
.animated-button .arr-2 {
  left: -25%;
}
.animated-button .circle {
  background-color: var(--charcoal);
  opacity: 0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
}
.animated-button.secondary .circle {
  background-color: var(--charcoal);
}
.animated-button .text {
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  transform: translate(-10px);
}
.animated-button:hover {
  box-shadow: 0 0 0 2px var(--charcoal);
  color: #fff;
  border-radius: 12px;
}
.animated-button:hover .arr-1 {
  right: -25%;
}
.animated-button:hover .arr-2 {
  left: 20px;
}
.animated-button:hover .text {
  transform: translate(10px);
}
.animated-button:hover svg {
  fill: #fff;
}
.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #1a1a1a40;
}
.animated-button.secondary:active {
  box-shadow: 0 0 0 4px #1a1a1a40;
}
.animated-button:hover .circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(22);
}
@media (width<=600px) {
  .hero-btns {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .animated-button {
    box-sizing: border-box;
    letter-spacing: 0.08em;
    width: 100%;
    padding: 14px 24px;
    font-size: 13px;
  }
}
.results-wrapper {
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  position: relative;
}
.results-section.hero_scroller {
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100vh;
  padding: 15vh 6vw 8vh;
  display: flex;
  overflow: hidden;
  background: 0 0 !important;
}
.scroller_head {
  z-index: 10;
  pointer-events: none;
  width: 100%;
  margin-bottom: 4vh;
}
.scroller_label {
  font-family: var(--sans-font);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
}
.scroller_body {
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  display: flex;
  position: relative;
}
.scroller_progress {
  z-index: 10;
  background: #1a1a1a26;
  border-radius: 2px;
  width: 100%;
  height: 2px;
  margin-bottom: 6vh;
  position: relative;
  overflow: hidden;
}
.progress_bar {
  background: var(--charcoal);
  transform-origin: 0;
  width: 100%;
  height: 100%;
  transition: none;
  transform: scaleX(0);
}
.scroller_content {
  grid-template-columns: 1.2fr 1.1fr;
  align-items: center;
  gap: 4vw;
  width: 100%;
  display: grid;
  position: relative;
}
.scroller_cards {
  perspective: 1200px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 420px;
  display: flex;
  position: relative;
}
.work-card {
  transform-origin: 50%;
  width: 320px;
  height: 380px;
  transform-style: preserve-3d;
  box-sizing: border-box;
  z-index: 1;
  background: #fcfaf7;
  border: 1px solid #1a1a1a17;
  border-radius: 20px;
  padding: 32px;
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.6s;
  position: absolute;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px #00000005,
    0 10px 20px -5px #0000000a,
    0 25px 50px -12px #1a1a1a14;
}
.work-card .card-glow,
.work-card.card-1 .card-glow,
.work-card.card-2 .card-glow,
.work-card.card-3 .card-glow {
  display: none !important;
}
.work-card .card-content {
  z-index: 2;
  flex-direction: column;
  height: 100%;
  display: flex;
  position: relative;
}
.work-card .card-header-icon {
  color: var(--deep-red);
  opacity: 0.95;
  width: 26px;
  height: 26px;
  margin-bottom: 24px;
}
.work-card .card-header-icon svg {
  width: 100%;
  height: 100%;
}
.work-card .card-metric {
  font-family: var(--sans-font);
  color: var(--charcoal);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
}
.work-card .card-title {
  font-family: var(--sans-font);
  color: var(--charcoal);
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
}
.work-card .card-desc {
  font-family: var(--sans-font);
  color: #1a1a1aa6;
  margin-bottom: auto;
  font-size: 14px;
  line-height: 1.4;
}
.work-card .card-visual {
  background: #fff;
  border: 1px solid #1a1a1a0f;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 90px;
  margin-top: 20px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px #00000005;
}
.work-card .card-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fcfaf7;
  z-index: 2;
  pointer-events: none;
  background: #1a1a1ad9;
  border-radius: 4px;
  padding: 3px 6px;
  font-family: monospace;
  font-size: 8px;
  font-weight: 700;
  position: absolute;
  top: 8px;
  left: 10px;
}
.work-card .chart-visual {
  align-items: flex-end;
  gap: 8px;
  padding: 16px 24px;
}
.work-card .chart-bar {
  height: var(--height);
  background: #ffffff1a;
  border-radius: 4px;
  flex-grow: 1;
  transition: background 0.3s;
}
.work-card .chart-bar.active {
  background: var(--off-white);
  box-shadow: 0 0 15px #ffffff4d;
}
.work-card .gauge-visual svg {
  width: 90px;
  height: 45px;
  margin-top: 10px;
}
.work-card .gauge-fill {
  stroke-linecap: round;
  stroke-dasharray: 125;
  stroke-dashoffset: 25px;
  filter: drop-shadow(0 0 4px #fff6);
}
.work-card .ai-visual {
  position: relative;
}
.work-card .ai-visual .node {
  background: var(--off-white);
  z-index: 3;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  box-shadow: 0 0 8px #fff;
}
.work-card .ai-visual .node.n1 {
  top: 20px;
  left: 30px;
}
.work-card .ai-visual .node.n2 {
  top: 50px;
  left: 100px;
}
.work-card .ai-visual .node.n3 {
  top: 35px;
  left: 180px;
}
.work-card .ai-visual .node-connections {
  z-index: 2;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.work-card.card-1 {
  z-index: 3;
  transform: translateZ(0) rotateX(10deg) rotateY(-12deg) rotate(2deg);
}
.work-card.card-2 {
  z-index: 2;
  opacity: 0.85;
  transform: translateZ(-40px) translateY(-15px) rotateX(10deg) rotateY(-12deg)
    rotate(0);
}
.work-card.card-3 {
  z-index: 1;
  opacity: 0.7;
  transform: translateZ(-80px) translateY(-30px) rotateX(10deg) rotateY(-12deg)
    rotate(-2deg);
}
@media (width<=1024px) {
  .results-section.hero_scroller {
    padding: 11vh 6vw 5vh;
  }
  .scroller_content {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px 30px;
    display: grid;
  }
  .content_main {
    grid-area: 1/1;
  }
  .main_inner {
    min-height: 200px;
  }
  .main_item p {
    font-size: clamp(22px, 4vw, 27px);
    line-height: 1.35;
  }
  .scroller_cards {
    transform-origin: 50%;
    grid-area: 2/1;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 280px;
    margin: -10px auto 20px;
    display: flex;
    transform: scale(0.68);
  }
}
@media (width<=480px) {
  .results-section.hero_scroller {
    padding: 14vh 4vw 10vh;
  }
  .scroller_content {
    grid-template-columns: 1fr;
    gap: 15px 20px;
  }
  .main_inner {
    min-height: 250px;
  }
  .main_item p {
    font-size: 26px;
    line-height: 1.25;
  }
  .scroller_cards {
    height: 180px;
    margin: -38px auto 20px;
    transform: scale(0.48);
  }
}
.content_index {
  z-index: 10;
  align-self: start;
  margin-top: 6px;
}
.index_inner {
  font-family: var(--sans-font);
  color: var(--charcoal);
  letter-spacing: 0.05em;
  align-items: center;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1;
  display: flex;
}
.index_divider {
  opacity: 0.4;
  margin: 0 4px;
  font-size: 0.8em;
  font-weight: 400;
}
.index_total {
  opacity: 0.4;
  font-size: 0.8em;
}
.content_main {
  width: 100%;
  position: relative;
}
.main_inner {
  width: 100%;
  min-height: 45vh;
  position: relative;
}
.main_item {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.main_item p {
  font-family: var(--sans-font);
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-transform: none;
  margin: 0;
  font-size: clamp(18px, 2.4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
}
.main_item .slide-headline {
  font-family: var(--sans-font);
  color: var(--deep-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
}
.main_item .slide-subheadline {
  font-family: var(--sans-font);
  color: var(--charcoal);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}
.main_item .slide-body {
  font-family: var(--sans-font);
  color: #1a1a1ad9;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.4;
}
.metric-highlight {
  font-family: var(--serif-font);
  color: var(--charcoal);
  margin-right: 0.1em;
  font-style: italic;
  font-weight: 400;
}
.char {
  opacity: 0.2;
  will-change: opacity;
  transition: opacity 50ms;
  display: inline-block;
}
@keyframes ticker-scroll {
  0% {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-50%);
  }
}
.ticker-strip {
  z-index: 3;
  background: 0 0;
  border-top: 1px solid #ffffff0d;
  border-bottom: 1px solid #ffffff0d;
  width: 100%;
  padding: 35px 0;
  display: flex;
  position: relative;
  overflow: hidden;
}
.ticker-content {
  white-space: nowrap;
  gap: 60px;
  animation: 30s linear infinite ticker-scroll;
  display: flex;
}
.ticker-item {
  font-family: var(--sans-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--off-white);
  opacity: 0.85;
  align-items: center;
  gap: 60px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  display: flex;
}
.ticker-bullet {
  color: var(--deep-red);
  font-weight: 900;
}
.capabilities-luxury {
  padding: 15vh 0;
  position: relative;
  overflow: hidden;
}
.cap-header {
  margin-bottom: 60px;
  padding: 0 40px;
}
.caps-massive {
  font-family: var(--sans-font);
  color: var(--charcoal);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 800;
  line-height: 0.9;
}
.menu-wrap {
  width: 100%;
}
.menu {
  flex-direction: column;
  display: flex;
}
.menu__item {
  border-bottom: 1px solid #0000001a;
  position: relative;
  overflow: hidden;
}
.menu__item:first-child {
  border-top: 1px solid #0000001a;
}
.menu__item-link {
  font-family: var(--sans-font);
  text-transform: uppercase;
  color: var(--charcoal);
  z-index: 10;
  padding: 4vh 40px;
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  display: block;
  position: relative;
}
.marquee {
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(135deg, #d41e22 0%, #d41e40 50%, #801010 100%);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(101%);
}
.marquee__inner-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: translateY(-101%);
}
.marquee__inner {
  align-items: center;
  width: max-content;
  height: 100%;
  display: flex;
}
.marquee__part {
  font-family: var(--sans-font);
  text-transform: uppercase;
  color: var(--off-white);
  white-space: nowrap;
  align-items: center;
  padding: 0 2vw;
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 800;
  display: flex;
}
.marquee__part span {
  padding-right: 2vw;
  display: inline-block;
}
.review-section {
  background: var(--charcoal);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 100px 40px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.review-grid-bg {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 1600px;
  display: grid;
  position: relative;
}
.review-card {
  color: #ffffffe6;
  font-family: var(--serif-font);
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 40px;
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  transition:
    transform 0.3s,
    background 0.3s;
}
.review-card:hover {
  background: #ffffff14;
  transform: translateY(-5px);
}
.review-author {
  font-family: var(--sans-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-red);
  margin-top: 24px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  display: block;
}
.white {
  background: var(--off-white);
}
@media (width<=900px) {
  .hero {
    gap: 20px;
    height: auto;
    min-height: calc(100vh - 32px);
    padding: 100px 24px 40px;
  }
  .hero-content {
    border-radius: 24px;
    padding: 40px 24px;
  }
  .results-section {
    height: 100vh;
    overflow: hidden;
  }
  .results-layout {
    flex-direction: column;
    height: 100%;
    min-height: auto;
    display: flex;
  }
  .results-left {
    flex-shrink: 0;
    height: auto;
    padding: 120px 24px 20px;
    position: relative;
  }
  .results-right {
    flex-direction: row;
    flex-grow: 1;
    align-items: center;
    gap: 40px;
    width: max-content;
    padding: 0 24px;
    display: flex;
  }
  .result-item {
    width: 80vw;
    max-width: 320px;
  }
  .cap-header {
    padding: 0 24px;
  }
  .menu__item-link {
    padding: 3vh 24px;
  }
  .review-section {
    padding: 60px 24px;
  }
  .review-grid-bg {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .capabilities-luxury {
    padding: 80px 0;
  }
  .logo {
    width: 130px;
    padding: 8px 16px;
    top: 20px;
    left: 20px;
    transform: none;
  }
  .ticker-strip {
    padding: 60px 0;
  }
  .ticker-item {
    font-size: 42px;
  }
}
.dg-scroll-lock {
  overflow: hidden !important;
}
.sphere-root {
  background: var(--white, #fff);
  perspective: 1500px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}
.sphere-main {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  touch-action: none;
  cursor: grab;
  position: relative;
}
.sphere-main:active {
  cursor: grabbing;
}
.sphere {
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  position: absolute;
}
.item {
  width: calc(var(--item-size-x) * 110px);
  height: calc(var(--item-size-y) * 160px);
  margin-left: calc(var(--item-size-x) * -55px);
  margin-top: calc(var(--item-size-y) * -80px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}
.item__image {
  border-radius: var(--tile-radius, 30px);
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    opacity 0.3s,
    transform 0.3s;
  overflow: hidden;
}
.item__image:hover {
  transform: scale(1.05);
}
.item__image img {
  object-fit: cover;
  pointer-events: none;
  width: 100%;
  height: 100%;
  filter: var(--image-filter, grayscale(1));
  transition: filter 0.3s;
}
.item__image:hover img {
  filter: none !important;
}
.item__image--reference {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}
.overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.overlay--blur {
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  background: #fff6;
  transition: opacity 0.3s;
}
.sphere-root[data-enlarging="true"] .overlay--blur {
  opacity: 1;
}
.edge-fade {
  pointer-events: none;
  height: 20%;
  position: absolute;
  left: 0;
  right: 0;
}
.viewer {
  inset: var(--viewer-pad, 24px);
  pointer-events: none;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
}
.scrim {
  inset: calc(var(--viewer-pad) * -1);
  pointer-events: none;
  background: 0 0;
  position: absolute;
}
.sphere-root[data-enlarging="true"] .scrim {
  pointer-events: auto;
  cursor: zoom-out;
}
.frame {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: relative;
}
.enlarge {
  pointer-events: none;
  border-radius: var(--enlarge-radius, 30px);
  overflow: hidden;
  box-shadow: 0 20px 40px #00000080;
}
.sphere-root {
  background: var(--overlay-blur-color, #120f17);
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.sphere-main {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.stage {
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  position: absolute;
  top: 50%;
  left: 50%;
}
.sphere {
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
}
.item {
  transform-style: preserve-3d;
  --unit-y: calc(360deg / var(--segments-x) / 2);
  --unit-x: calc(360deg / var(--segments-y) / 2);
  --rot-y: calc(
    var(--unit-y) * (var(--offset-x) + (var(--item-size-x) - 1) / 2)
  );
  --rot-x: calc(
    var(--unit-x) * (var(--offset-y) - (var(--item-size-y) - 1) / 2)
  );
  transform: rotateY(var(--rot-y)) rotateX(var(--rot-x))
    translateZ(var(--radius));
  position: absolute;
  top: 0;
  left: 0;
}
.item__image {
  width: calc(var(--item-size-x) * var(--radius) * 3.14159 / var(--segments-x));
  height: calc(
    var(--item-size-y) * var(--radius) * 3.14159 / var(--segments-y)
  );
  border-radius: var(--tile-radius, 30px);
  cursor: pointer;
  filter: var(--image-filter, none);
  backface-visibility: hidden;
  transition:
    filter 0.3s,
    opacity 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}
.item__image:hover {
  filter: none;
}
.item__image img {
  object-fit: cover;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.overlay {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.overlay--blur {
  -webkit-backdrop-filter: blur(5px);
  -webkit-mask-image: radial-gradient(circle, #0000 30%, #000 100%);
  mask-image: radial-gradient(circle, #0000 30%, #000 100%);
}
.edge-fade {
  pointer-events: none;
  z-index: 10;
  width: 100%;
  height: 20%;
  position: absolute;
  left: 0;
}
.edge-fade--top {
  background: linear-gradient(
    to bottom,
    var(--overlay-blur-color, #120f17),
    transparent
  );
  top: 0;
}
.edge-fade--bottom {
  background: linear-gradient(
    to top,
    var(--overlay-blur-color, #120f17),
    transparent
  );
  bottom: 0;
}
.viewer {
  pointer-events: none;
  z-index: 20;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.scrim {
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  background: #0000004d;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s;
  position: absolute;
  top: 0;
  left: 0;
}
.sphere-root[data-enlarging="true"] .scrim {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}
.frame {
  pointer-events: none;
  width: 80vw;
  max-width: 500px;
  height: 80vh;
  max-height: 700px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.enlarge {
  pointer-events: auto;
  border-radius: var(--enlarge-radius, 30px);
  cursor: zoom-out;
  overflow: hidden;
  box-shadow: 0 10px 30px #00000080;
}
.enlarge img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
body.dg-scroll-lock {
  overflow: hidden;
}
.palette-container {
  z-index: 35;
  opacity: 0;
  pointer-events: auto;
  gap: 12px;
  transition:
    opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translate(-50%) translateY(20px);
}
.palette-container.visible {
  opacity: 1;
  transform: translate(-50%) translateY(0);
}
.color-swatch {
  cursor: crosshair;
  border: 2px solid #ffffff80;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 4px 12px #0000004d;
}
.color-swatch:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 16px #0006;
}
@media (width<=768px) {
  .palette-container {
    gap: 8px;
    bottom: 10vh;
  }
  .color-swatch {
    width: 32px;
    height: 32px;
  }
}
