@import "./figma-tokens.css";
@import "./figma-components.css";

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

html {
  background-color: var(--figma-page-bg);
  color: var(--figma-black);
  font-family: var(--font-display);
  font-feature-settings: "calt" 1, "liga" 1;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  background-color: var(--figma-page-bg);
}

/* Splash screen */
body.splash-active {
  overflow: hidden;
}

body.splash-active .custom-cursor-glow,
body.splash-active .custom-cursor-pointer__lens,
body.splash-active .custom-cursor-pointer__dot {
  visibility: hidden !important;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.splash.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.splash__logo {
  width: min(300px, 72vw);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.94) translateY(8px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.splash.is-logo-in .splash__logo {
  opacity: 1;
  transform: scale(1) translateY(0);
}

body.splash-active:not(.splash-done) .site-shell,
body.splash-active:not(.splash-done) .site-header {
  opacity: 0;
}

body.splash-done .site-shell,
body.splash-done .site-header {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .splash,
  .splash__logo {
    transition: none;
  }

  .splash {
    display: none;
  }
}

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

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--text-h1-ls);
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Layout */
.site-shell {
  position: relative;
  width: 100%;
  max-width: var(--figma-page-width);
  margin-inline: auto;
  overflow-x: clip;
  opacity: 1;
  transition: opacity 1s ease 0.15s;
  isolation: isolate;
}

/* Background image layer (below cursor glow + all content) */
.site-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8595px;
  z-index: 0;
  pointer-events: none;
  background-color: var(--figma-page-bg);
  background-image: url("../assets/HOME%20PAGE.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.site-shell > *:not(.custom-cursor-glow):not(.site-header-spacer) {
  position: relative;
  z-index: 2;
}

.site-shell .custom-cursor-glow {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-shell {
    opacity: 1;
    transition: none;
  }
}

.gradient-bg {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: transparent;
}

.gradient-cta-area {
  position: relative;
}

.footer-bg {
  background-color: var(--figma-black);
  color: var(--figma-white);
}

@media (min-width: 768px) {
  :root {
    --page-gutter: max(
      1rem,
      calc((min(100%, var(--figma-page-width)) - var(--figma-content-max)) / 2)
    );
  }
}

@media (min-width: 1440px) {
  :root {
    --page-gutter: var(--figma-side-margin);
  }
}

.page-container {
  width: 100%;
  max-width: var(--figma-page-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
}

.logo-header {
  display: block;
  height: 2.5rem;
  width: auto;
  max-height: 2.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logo-header {
    height: 3rem;
    max-height: 3rem;
  }
}

/* Nav — fixed; --nav-p (0–1) scrubs full bar → glass oval on scroll */
.site-header {
  --nav-p: 0;
  position: fixed;
  top: calc(var(--nav-p) * 12px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  padding-inline: calc(var(--nav-p) * 20px);
  background: rgba(255, 255, 255, calc(1 - var(--nav-p) * 0.96));
  transition: opacity 1s ease 0.15s;
}

.site-header-spacer {
  height: var(--site-header-height, 5.5rem);
  flex-shrink: 0;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1.5rem - var(--nav-p) * 0.15rem);
  width: calc(100% - var(--nav-p) * 8%);
  max-width: calc(var(--figma-page-width) - var(--nav-p) * 220px);
  margin-inline: auto;
  padding-block: calc(1.25rem - var(--nav-p) * 0.15rem);
  padding-inline: calc(var(--page-gutter) + var(--nav-p) * 0.65rem)
    calc(var(--page-gutter) + var(--nav-p) * 0.25rem);
  border-radius: calc(var(--nav-p) * 100vmax);
  background: rgba(255, 255, 255, calc(var(--nav-p) * 0.58));
  -webkit-backdrop-filter: blur(calc(var(--nav-p) * 20px))
    saturate(calc(1 + var(--nav-p) * 0.25));
  backdrop-filter: blur(calc(var(--nav-p) * 20px))
    saturate(calc(1 + var(--nav-p) * 0.25));
  border: 1px solid rgba(255, 255, 255, calc(var(--nav-p) * 0.72));
  box-shadow:
    0 calc(var(--nav-p) * 10px) calc(var(--nav-p) * 40px) rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, calc(var(--nav-p) * 0.85));
}

@media (min-width: 768px) {
  .site-header {
    padding-inline: calc(var(--nav-p) * 28px);
  }

  .site-header__inner {
    width: calc(100% - var(--nav-p) * 10%);
    max-width: calc(var(--figma-page-width) - var(--nav-p) * 260px);
    padding-inline: calc(var(--page-gutter) + var(--nav-p) * 0.75rem)
      calc(var(--page-gutter) + var(--nav-p) * 0.35rem);
    padding-block: calc(1.25rem - var(--nav-p) * 0.2rem);
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: calc(2rem - var(--nav-p) * 0.35rem);
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: calc(2rem - var(--nav-p) * 0.35rem);
  flex-shrink: 0;
  transform: translateX(calc(var(--nav-p) * 6px));
}

.lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.65rem 0 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 500px;
  background: var(--figma-white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--figma-black);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-dropdown__trigger:hover,
.lang-dropdown.is-open .lang-dropdown__trigger {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lang-dropdown__icon {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-dropdown.is-open .lang-dropdown__icon {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 400;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: var(--figma-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.lang-dropdown__menu[hidden] {
  display: none;
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--figma-black);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-dropdown__option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-dropdown__option.is-active {
  background: rgba(0, 113, 188, 0.08);
  color: var(--figma-blue-nav);
  font-weight: 600;
}

.lang-dropdown__option-code {
  min-width: 1.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 57px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: #010406;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
  .site-header__actions {
    gap: 2.5rem;
  }
  .site-header__tools {
    gap: 2.5rem;
  }
}

/* Hero */
.hero__layout {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hero__copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero__copy {
    width: 760px;
    min-height: 288px;
  }
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  max-width: 670px;
}

.hero__body p + p {
  margin-top: 0;
}

.hero__contact {
  display: none;
  position: absolute;
  z-index: 10;
  right: 12rem;
  top: 6rem;
  pointer-events: none;
}

.hero__contact > * {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero__contact {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero__contact {
    top: 7rem;
  }
}

.hero__image-wrap {
  margin-top: 5rem;
  overflow: hidden;
  border-radius: 30px;
  line-height: 0;
}

.hero__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-section .page-container {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* Contact badge spin */
.contact-badge {
  position: relative;
  width: 176px;
  height: 176px;
  animation: spin 18s linear infinite;
}

.contact-badge img {
  width: 100%;
  height: 100%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Section head */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }
  .section-head__title,
  .section-head__copy {
    flex: 1;
    max-width: 600px;
  }
}

.section-pad {
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 80px;
  }
}

/* Cards */
.card-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .card-row {
    flex-direction: row;
    gap: 5rem;
  }
}

.card-row__media {
  width: 100%;
  overflow: hidden;
  border-radius: 30px;
  min-width: 0;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .card-row__media {
    width: 552px;
    max-width: 50%;
  }
  .card-row__media img {
    height: 574px;
    object-fit: cover;
  }
}

.card-row__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

a.card-row__media--play,
button.card-row__media--play {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  text-align: left;
}

.card-row__media--play {
  position: relative;
}

a.card-row__media--play:hover .play-overlay img,
button.card-row__media--play:hover .play-overlay img {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Video popup modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.video-modal[hidden] {
  display: none;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.125rem;
}

.video-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--figma-white);
  margin: 0;
  letter-spacing: var(--text-h1-ls);
}

.video-modal__close {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--figma-white);
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.video-modal__frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body.video-modal-open {
  overflow: hidden;
}

.card-row__media--play .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-row__media--play .play-overlay img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .card-row__media--play .play-overlay img {
    width: 7rem;
    height: 7rem;
  }
}

.card-row__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .card-row__body {
    gap: 2.25rem;
  }
}

.card-row__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bullet-list li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.bullet-square {
  width: 8px;
  height: 8px;
  background: var(--figma-black);
  flex-shrink: 0;
}

/* Stats / marquee */
.stats-section {
  position: relative;
}

.marquee-track {
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  width: 100%;
}

.marquee-inner {
  display: flex;
  width: max-content;
  align-items: center;
  opacity: 0.7;
  animation: marquee-x 30s linear infinite;
}

.marquee-inner img {
  height: 140px;
  width: auto;
  padding-right: 4rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .marquee-inner img {
    height: 220px;
  }
}

@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stats-quote-wrap {
  position: relative;
  padding-top: 13rem;
}

@media (min-width: 768px) {
  .stats-quote-wrap {
    padding-top: 15rem;
  }
}

.stats-quote {
  display: flex;
  align-items: flex-start;
  gap: 73px;
  width: 100%;
  min-width: 0;
}

.stats-quote img {
  width: 210px;
  height: 184px;
  object-fit: contain;
  flex-shrink: 0;
}

.stats-quote p {
  min-width: 0;
  flex: 1;
  max-width: 921px;
}

/* Scroll-to-read quote (character by character, gray → black) */
.scroll-quote-reveal {
  white-space: normal;
  overflow-wrap: break-word;
}

.scroll-quote-reveal__word {
  display: inline;
  white-space: normal;
}

.scroll-quote-reveal__char {
  display: inline;
  color: rgba(0, 0, 0, 0.22);
}

.scroll-quote-reveal__char.is-read {
  color: var(--figma-black);
}

.kpi-list {
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 7rem;
  max-width: 1152px;
  margin-inline: auto;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.kpi-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.kpi-item__number .kpi-item__value {
  display: inline-block;
  min-width: 0.15em;
  transform-origin: right center;
}

.kpi-item__number .kpi-item__value:empty {
  visibility: hidden;
}

.kpi-item__value.is-done {
  animation: kpi-number-bump 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes kpi-number-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.045);
  }
  100% {
    transform: scale(1);
  }
}

.kpi-item__detail p {
  opacity: 0;
  transform: translate3d(-16px, 0, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.kpi-item.is-visible .kpi-item__detail p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.kpi-progress-row__fill {
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.kpi-item.is-visible .kpi-progress-row__fill {
  width: var(--kpi-fill, 75%);
}

@media (min-width: 768px) {
  .kpi-item {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
}

.kpi-item__number {
  width: 100%;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .kpi-item__number {
    width: 320px;
    text-align: right;
  }
}

.kpi-item__detail {
  flex: 1;
  max-width: 752px;
}

.kpi-item__detail > p.text-kpi-label {
  padding-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .kpi-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .kpi-item__detail p {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .kpi-progress-row__fill {
    width: var(--kpi-fill, 75%) !important;
    transition: none;
  }

  .kpi-progress-row__fill::after {
    animation: none !important;
  }

  .kpi-item__value.is-done {
    animation: none;
  }
}

/* Carousel */
.carousel-wrap {
  padding-top: 3rem;
  overflow-x: clip;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding-bottom: 5rem;
  animation: carousel-x 40s linear infinite;
}

.carousel-track img {
  border-radius: 30px;
  width: 602px;
  height: 439px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

@keyframes carousel-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-block: 7rem;
}

@media (min-width: 768px) {
  .cta-block {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.cta-block__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  max-width: 873px;
}

.btn-cta-primary {
  transition: opacity 0.2s;
}

.btn-cta-primary:hover {
  opacity: 0.95;
}

.btn-cta-primary__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 63px;
  height: 63px;
  border-radius: 10px;
  background: var(--figma-white);
  flex-shrink: 0;
}

.btn-cta-primary__icon img {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.btn-hero-outline {
  transition: background-color 0.2s;
}

.btn-hero-outline:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    gap: 78px;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

@media (min-width: 640px) {
  .footer__brand {
    flex-direction: row;
    gap: 45px;
  }
}

@media (min-width: 1024px) {
  .footer__brand {
    flex: 1;
    padding-right: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
  }
}

.footer__logo {
  height: 138px;
  width: 100%;
  max-width: 520px;
  object-fit: contain;
  object-position: left;
}

.footer__about {
  display: flex;
  flex-direction: column;
  gap: 23px;
  max-width: 360px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__social a {
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social img {
  width: 35px;
  height: 35px;
}

.footer__links {
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__links-title {
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer__links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.footer__links-row a:hover {
  color: var(--figma-white);
}

.footer__sep {
  color: rgba(255, 255, 255, 0.35);
  margin-inline: 1rem;
}

.footer__links-row + .footer__links-row {
  margin-top: 0;
}

.footer__bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .page-container {
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* Sticky card stack */
.stack-cards {
  position: relative;
}

.stack-cards__item {
  position: sticky;
  z-index: 10;
}

.figma-card {
  position: relative;
  z-index: 2;
  background: var(--figma-white);
}

.site-shell img,
.site-shell video,
.site-shell article,
.site-shell .marquee-track,
.site-shell .carousel-wrap {
  position: relative;
  z-index: 2;
}

.stack-cards__item--covered {
  visibility: hidden;
  pointer-events: none;
}

.stack-cards__spacer {
  height: 30vh;
  pointer-events: none;
}

/* Custom cursor — gradient glow + circle; native cursor stays visible */
.custom-cursor-glow {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: min(520px, 55vw);
  height: min(520px, 55vh);
  will-change: transform;
}

.custom-cursor-glow__mesh {
  position: absolute;
  inset: 5%;
  background:
    radial-gradient(
      circle at 38% 42%,
      rgba(157, 80, 255, 0.55) 0%,
      transparent 42%
    ),
    radial-gradient(
      circle at 62% 58%,
      rgba(77, 232, 244, 0.5) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(157, 80, 255, 0.35) 0%,
      rgba(77, 232, 244, 0.25) 35%,
      transparent 50%
    );
  background-repeat: no-repeat;
  filter: blur(56px);
  mix-blend-mode: multiply;
  opacity: 0.62;
  transition: opacity 0.4s ease;
}

.custom-cursor-glow.is-hover .custom-cursor-glow__mesh {
  opacity: 0.75;
}

/* Wrapper has no box — lens/dot stack over page for mix-blend-mode */
#custom-cursor-pointer {
  display: contents;
}

/* Default: small solid dot */
.custom-cursor-pointer__dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10001;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3832;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

/* X-ray lens — inverts page content inside the circle */
.custom-cursor-pointer__lens {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10002;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
  -webkit-backdrop-filter: invert(1);
  backdrop-filter: invert(1);
  transform: translate(-50%, -50%);
  visibility: hidden;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.4s;
}

#custom-cursor-pointer.is-lens-hover .custom-cursor-pointer__lens {
  width: 72px;
  height: 72px;
  visibility: visible;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

#custom-cursor-pointer.is-lens-hover .custom-cursor-pointer__dot {
  opacity: 0;
}

.site-nav a {
  position: relative;
}

/* Touch-only devices: hide custom cursor */
@media (hover: none) {
  .custom-cursor-glow,
  .custom-cursor-pointer {
    display: none !important;
  }
}
