/* ============================================================
   Adventure Studio — embed-safe styles
   All selectors scoped under .as-root (except body lock + modal).
   Custom cursor only active when cursor is inside .as-root.
   ============================================================ */

/* Scoped box-sizing — does not touch elements outside .as-root */
.as-root,
.as-root *,
.as-root *::before,
.as-root *::after {
  box-sizing: border-box;
}

/* Reset margins ONLY on elements we use inside .as-root */
.as-root h1,
.as-root h2,
.as-root h3,
.as-root h4,
.as-root h5,
.as-root h6,
.as-root p {
  margin: 0;
  padding: 0;
}

/* Scoped CSS variables — prefixed so they do not collide with Webflow */
.as-root {
  --as-bg: #E3EADC;
  --as-black: #1a1a18;
  --as-green: #9EFF65;
  --as-radius: 4px;
  --as-font: 'Bayon', Arial, sans-serif;
  --as-font-secondary: 'Inconsolata', Arial, sans-serif;

  position: relative;
  width: 100%;
  font-family: var(--as-font);
  color: var(--as-black);
  background: var(--as-bg);
  background-image: repeating-linear-gradient(
    to right,
    #C9DCFF 0,
    #C9DCFF 1px,
    transparent 1px,
    transparent 230px
  );
  overflow: hidden;
}

@media (max-width: 768px) {
  .as-root {
    background-image: repeating-linear-gradient(
      to right,
      #C9DCFF 0,
      #C9DCFF 1px,
      transparent 1px,
      transparent 90px
    );
  }
}

/* ===== Scene ===== */
.as-scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Body lock — applied only while modal is open, removed on close */
body.as-modal-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  width: 100%;
}

.as-studio-title {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.85;
  pointer-events: none;
  z-index: 5;
}

.as-studio-title span {
  font-size: 80px;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #222222;
  font-family: var(--as-font);
}

.as-studio-description {
  margin-top: 16px;
  font-size: 17px;
  color: #111111;
  font-family: var(--as-font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  opacity: 1;
}

.as-orbit-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ===== Cards ===== */
.as-card {
  position: absolute;
  background: transparent;
  border-radius: var(--as-radius);
  overflow: visible;
  cursor: pointer;
  transform-origin: top left;
  will-change: transform, width;
}

.as-card:hover {
  z-index: 1000 !important;
  opacity: 1 !important;
}

.as-card-inner {
  border-radius: var(--as-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.as-card:hover .as-card-inner {
  background: var(--as-bg);
}

.as-card-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: #c8c4bc;
  flex-shrink: 0;
}

.as-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  flex-shrink: 0;
}

.as-card-info {
  display: none;
  pointer-events: none;
}

.as-card-info-inner {
  padding: 10px 12px 14px;
  text-align: center;
}

.as-card:hover .as-card-info {
  display: block;
  pointer-events: auto;
}

.as-card-title {
  font-size: 15px;
  font-family: var(--as-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 4px;
  color: #111111;
  text-align: center;
}

.as-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.as-card-tags .as-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-width: 1px;
}

.as-tag {
  font-size: 15px;
  font-family: var(--as-font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  border: 1px solid #222222;
  border-radius: 50px;
  padding: 2px 10px;
  white-space: nowrap;
  color: #3B3B3B;
}

/* ===== Mobile scene (relative, lives inside the section) ===== */
.as-mobile-scene {
  display: none;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent calc(100% / 6)
  );
}

.as-mobile-slides {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.as-mobile-slide {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 48px 96px;
  gap: 28px;
  cursor: pointer;
}

.as-mobile-slide.as-active {
  display: flex;
}

.as-mobile-slide .as-mobile-slide-art,
.as-mobile-slide .as-mobile-slide-title,
.as-mobile-slide .as-mobile-slide-tags {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.as-mobile-slide.as-animate .as-mobile-slide-art {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.as-mobile-slide.as-animate .as-mobile-slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.as-mobile-slide.as-animate .as-mobile-slide-tags {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.as-mobile-slide-art {
  width: 250px;
  height: 250px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.as-mobile-slide-art svg,
.as-mobile-slide-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.as-mobile-slide-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.as-mobile-slide-title {
  font-size: 31px;
  font-family: var(--as-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.15;
  color: #111111;
}

.as-mobile-slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.as-mobile-slide-tags .as-tag {
  font-size: 24px;
  color: #222222;
  border-color: #222222;
}

.as-mobile-controls {
  position: absolute;
  bottom: 40px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.as-mobile-controls button {
  background: none;
  border: none;
  font-size: 64px;
  font-family: 'Courier New', monospace;
  color: var(--as-black);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: opacity 0.2s;
}

/* ===== Modal (lives at body level, position: fixed) ===== */
.as-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  box-sizing: border-box;
  font-family: var(--as-font);
  color: var(--as-black);
  /* Local CSS vars so modal works even if it gets reparented to body */
  --as-bg: #E3EADC;
  --as-black: #1a1a18;
  --as-green: #9EFF65;
  --as-radius: 4px;
  --as-font: 'Bayon', Arial, sans-serif;
  --as-font-secondary: 'Inconsolata', Arial, sans-serif;
}

.as-modal-overlay.as-active {
  display: flex;
}

.as-modal-overlay.as-open {
  opacity: 1;
  pointer-events: auto;
}

.as-modal-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(227, 234, 220, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.as-modal-overlay.as-open::before {
  opacity: 1;
}

.as-modal-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.as-modal {
  position: relative;
  background: #E8E8E8;
  width: 100%;
  border: 2px solid #C8C8C8;
  border-radius: 5px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
}

.as-modal-content-wrap .as-modal-top,
.as-modal-content-wrap .as-modal-body,
.as-modal-content-wrap .as-modal-player,
.as-modal-content-wrap .as-modal-footer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.as-modal-content-wrap.as-visible .as-modal-top {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.as-modal-content-wrap.as-visible .as-modal-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.as-modal-content-wrap.as-visible .as-modal-player {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.as-modal-content-wrap.as-visible .as-modal-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.as-modal-content-wrap.as-switching .as-modal-top,
.as-modal-content-wrap.as-switching .as-modal-body,
.as-modal-content-wrap.as-switching .as-modal-player,
.as-modal-content-wrap.as-switching .as-modal-footer {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: 0s;
}

.as-modal-overlay.as-open .as-modal {
  transform: scale(1) translateY(0);
}

.as-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #000;
  z-index: 10;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
}

.as-modal-close:hover {
  opacity: 1;
}

.as-modal-top {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.as-modal-title {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-family: var(--as-font);
  font-weight: 500;
  text-transform: uppercase;
  padding-right: 24px;
  color: #1B1B1B;
  text-align: center;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .as-modal-title {
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }
}

.as-modal-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.as-modal-tags .as-tag {
  border-width: 1px;
}

.as-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 12px;
}

.as-modal-art {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.as-modal-track-label {
  margin: 16px 0 0 0;
  font-size: 18px;
  font-family: var(--as-font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  color: #222222;
}

.as-modal-player {
  background: #F0F0F0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 2px solid #C8C8C8;
  border-bottom: 2px solid #C8C8C8;
}

.as-player-progress {
  width: 80%;
  height: 10px;
  background: #A4A4A4;
  border-radius: 5px;
  margin-bottom: 14px;
  cursor: pointer;
  overflow: hidden;
}

.as-player-bar {
  height: 100%;
  width: 0%;
  background: var(--as-green);
  border-radius: 5px;
  transition: width 0.1s linear;
}

.as-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.as-ctrl-btn {
  background: #A4A4A4;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--as-black);
  transition: background 0.3s;
  padding: 0;
}

.as-ctrl-btn svg {
  display: block;
}

#as-prevTrack {
  clip-path: polygon(
    0 0, calc(100% - 5px) 0,
    calc(100% - 5px) 5px, 100% 5px,
    100% 100%, 0 100%
  );
}

#as-nextTrack {
  clip-path: polygon(
    5px 0, 100% 0,
    100% 100%, 0 100%,
    0 5px, 5px 5px
  );
}

.as-ctrl-btn:disabled:hover {
  background: #A4A4A4;
  color: var(--as-black);
  cursor: auto;
}

.as-ctrl-btn:hover {
  background: #1B1B1B;
  color: #FFF;
}

.as-play-btn {
  background: var(--as-green);
  width: 56px;
  height: 56px;
  border-radius: 0;
  clip-path: polygon(
    7px 0, calc(100% - 7px) 0,
    calc(100% - 7px) 7px, 100% 7px,
    100% calc(100% - 7px), calc(100% - 7px) calc(100% - 7px),
    calc(100% - 7px) 100%, 7px 100%,
    7px calc(100% - 7px), 0 calc(100% - 7px),
    0 7px, 7px 7px
  );
  color: #fff;
}

.as-play-btn svg {
  fill: #fff;
  width: 32px;
  height: 32px;
}

.as-play-btn:hover {
  background: var(--as-green);
  opacity: 0.75;
}

.as-modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
}

.as-modal-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.as-by-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-by-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--as-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.as-by-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.as-by-name {
  font-size: 16px;
  font-family: var(--as-font-secondary);
  font-weight: 500;
  text-transform: uppercase;
}

.as-by-divider {
  opacity: 0.5;
}

.as-project-nav {
  position: absolute;
  top: 50%;
  background: #fff;
  color: #000;
  width: 60px;
  height: 60px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.2s;
  pointer-events: auto;
  border: 2px solid #C8C8C8;
  border-radius: 5px;
  padding: 0;
}

.as-project-nav svg {
  width: 28px;
  height: 24px;
}

.as-project-nav:hover {
  opacity: 0.7;
}

.as-project-nav-prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.as-project-nav-next {
  right: 0;
  transform: translate(50%, -50%);
}

@media (max-width: 768px) {
  .as-scene {
    display: none;
  }

  .as-mobile-scene {
    display: block;
  }

  .as-modal-overlay {
    padding: 24px 16px;
    align-items: flex-start;
  }

  .as-project-nav {
    width: 40px;
    height: 40px;
  }

  .as-project-nav svg {
    width: 20px;
    height: 18px;
  }
}


