.introduction {
  box-sizing: border-box;
  margin: 0 calc(16 * 100vw / var(--page-width)) 0;
  padding: calc(130 * 100vw / var(--page-width)) 0
    calc(47 * 100vw / var(--page-width));
  position: relative;
}

@media only screen and (min-width: 768px) {
  .introduction {
    margin-left: calc(24 * 100vw / var(--page-width));
    margin-right: calc(24 * 100vw / var(--page-width));
    padding-bottom: calc(180 * 100vw / var(--page-width));
    padding-top: calc(220 * 100vw / var(--page-width));
  }
}

/* ── SEQUENCED HERO ENTRANCE (Phase 1: Text first, Phase 2: Artwork images after) ── */
@keyframes heroTextFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroArtworkReveal {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Phase 1: Text Elements (0.05s to 0.55s) */
.introduction-label {
  text-align: center;
  animation: heroTextFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}

.introduction-headline span {
  display: inline-block;
  animation: heroTextFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.introduction-headline span:nth-child(1) { animation-delay: 0.12s; }
.introduction-headline span:nth-child(2) { animation-delay: 0.18s; }
.introduction-headline span:nth-child(3) { animation-delay: 0.24s; }
.introduction-headline span:nth-child(4) { animation-delay: 0.30s; }
.introduction-headline span:nth-child(5) { animation-delay: 0.36s; }
.introduction-headline span:nth-child(6) { animation-delay: 0.42s; }

.introduction-description {
  animation: heroTextFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.48s;
}

/* Phase 2: Artwork Images & Badge (Opens smoothly after text has landed) */
.introduction-image {
  animation: heroArtworkReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.65s;
}

.introduction-image-2 {
  animation: heroArtworkReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.80s;
}

.introduction-decoration p {
  animation: heroTextFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.75s;
}

.introduction-headline {
  align-items: center;
  column-gap: calc(10 * 100vw / var(--page-width));
  display: flex;
  flex-wrap: wrap;
  font-size: calc(46 * 100vw / var(--page-width));
  justify-content: center;
  letter-spacing: calc(1 * 100vw / var(--page-width));
  line-height: 0.9;
  margin: calc(32 * 100vw / var(--page-width)) auto 0;
  text-transform: uppercase;
  width: calc(327 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .introduction-headline {
    column-gap: calc(36 * 100vw / var(--page-width));
    font-size: calc(116 * 100vw / var(--page-width));
    line-height: 0.945;
    margin-top: calc(30 * 100vw / var(--page-width));
    width: calc(770 * 100vw / var(--page-width));
  }
}

.introduction-headline-alternate {
  font-size: calc(24 * 100vw / var(--page-width));
  text-transform: lowercase;
}

@media only screen and (min-width: 768px) {
  .introduction-headline-alternate {
    font-size: calc(60 * 100vw / var(--page-width));
  }
}

.introduction-subtitle {
  margin-top: calc(20 * 100vw / var(--page-width));
  text-align: center;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .introduction-subtitle {
    align-self: flex-end;
    margin-bottom: calc(10 * 100vw / var(--page-width));
    margin-top: auto;
    text-align: left;
    width: auto;
  }
}

.introduction-description {
  font-size: calc(24 * 100vw / var(--page-width));
  letter-spacing: calc(0.5 * 100vw / var(--page-width));
  line-height: 1.17;
  margin: calc(82 * 100vw / var(--page-width)) auto 0;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .introduction-description {
    font-size: calc(32 * 100vw / var(--page-width));
    letter-spacing: 0;
    line-height: 1.25;
    margin-left: calc(450 * 100vw / var(--page-width));
    margin-top: calc(186 * 100vw / var(--page-width));
    text-align: left;
    width: calc(480 * 100vw / var(--page-width));
  }
}

.introduction-decoration {
  margin-top: calc(40 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .introduction-decoration {
    left: 0;
    margin-top: 0;
    position: absolute;
    top: calc(303 * 100vw / var(--page-width));
  }
}

.introduction-decoration p {
  display: none;
  line-height: 1;
  margin-left: calc(24 * 100vw / var(--page-width));
  width: calc(50 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .introduction-decoration p {
    display: block;
    margin-left: calc(20 * 100vw / var(--page-width));
    width: calc(70 * 100vw / var(--page-width));
  }
}

.decoration-introduction-2 {
  margin-top: calc(20 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .decoration-introduction-2 {
    display: block;
    left: auto;
    margin-top: 0;
    right: 0;
    top: calc(524 * 100vw / var(--page-width));
    width: calc(580 * 100vw / var(--page-width));
  }
}

.decoration-introduction-2 p {
  display: block;
  margin-bottom: 0;
  margin-left: calc(243 * 100vw / var(--page-width));
  width: calc(100 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .decoration-introduction-2 p {
    margin-left: calc(280 * 100vw / var(--page-width));
    width: calc(170 * 100vw / var(--page-width));
  }
}

.introduction-image {
  cursor: pointer;
  height: calc(266 * 100vw / var(--page-width));
  position: relative;
  width: calc(220 * 100vw / var(--page-width));
  border-radius: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  border-style: solid !important;
  border-width: clamp(14px, 2.2vw, 24px) clamp(12px, 1.8vw, 20px) !important;
  border-image-source: url('../assets/visualizer/frame_ornate_tight.png') !important;
  border-image-slice: 57 56 57 56 !important;
  border-image-repeat: stretch !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box;
  background: #000000 !important;
  margin: 0 auto;
}

@media only screen and (min-width: 768px) {
  .introduction-image {
    display: none;
  }
}

.introduction-image[data-media='large'] {
  display: none;
}

@media only screen and (min-width: 768px) {
  .introduction-image[data-media='large'] {
    display: block;
  }

  .introduction-image {
    height: calc(440 * 100vw / var(--page-width));
    left: 0;
    overflow: hidden;
    position: absolute;
    top: calc(252 * 100vw / var(--page-width));
    width: calc(360 * 100vw / var(--page-width));
    border-radius: 0 !important;
    padding: 0 !important;
    border-style: solid !important;
    border-width: clamp(18px, 2.8vw, 32px) clamp(16px, 2.4vw, 28px) !important;
    border-image-source: url('../assets/visualizer/frame_ornate_tight.png') !important;
    border-image-slice: 57 56 57 56 !important;
    border-image-repeat: stretch !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box;
    background: #000000 !important;
  }
}

.introduction-image-overlay {
  background-color: var(--color-dark);
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  transition: opacity 300ms ease;
}

.introduction-image:hover .introduction-image-overlay {
  opacity: 0.08;
}

.introduction-image img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  margin: 0 !important;
  transform: none;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.introduction-image:hover img {
  transform: scale(1.04);
}

@media only screen and (min-width: 768px) {
  .introduction-image-2 {
    height: calc(350 * 100vw / var(--page-width));
    left: auto;
    right: 0;
    top: calc(180 * 100vw / var(--page-width));
    width: calc(580 * 100vw / var(--page-width));
    border-radius: 0 !important;
    padding: 0 !important;
    border-style: solid !important;
    border-width: clamp(18px, 2.8vw, 32px) clamp(16px, 2.4vw, 28px) !important;
    border-image-source: url('../assets/visualizer/frame_ornate_tight.png') !important;
    border-image-slice: 57 56 57 56 !important;
    border-image-repeat: stretch !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box;
    background: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .introduction-image-2 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0 !important;
    transform: none;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .introduction-image-2:hover img {
    transform: scale(1.04);
  }
}

/* Mobile Hero Image: Show ONLY 1 single image (sm-1) */
@media only screen and (max-width: 767px) {
  .introduction-image[data-media='large'],
  .decoration-introduction-2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .introduction-image[data-media='small'] {
    display: block !important;
    width: min(240px, 80vw) !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    margin: 24px auto 0 auto !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-style: solid !important;
    border-width: clamp(14px, 3.5vw, 22px) clamp(12px, 3vw, 18px) !important;
    border-image-source: url('../assets/visualizer/frame_ornate_tight.png') !important;
    border-image-slice: 57 56 57 56 !important;
    border-image-repeat: stretch !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
    background: #000000 !important;
  }

  .introduction-image[data-media='small'] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    transform: none !important;
    transition: transform 0.4s ease !important;
  }
}
