/* ==========================================================================
   UNIQorn — Courses & Workshops Landing Page (Space 02) v6
   Scope: .workshops-landing only
   High-end Kinfolk editorial magazine aesthetics, generous whitespace,
   natural scrolling, zero scroll hijacking, zero footer overlap.
   ========================================================================== */

.workshops-landing {
  --navy-deep: var(--indigo-deep);
  --navy-85: rgba(30, 58, 95, 0.85);
  --navy-65: rgba(30, 58, 95, 0.65);
  --navy-42: rgba(30, 58, 95, 0.42);
  --navy-20: rgba(30, 58, 95, 0.20);
  --navy-15: rgba(30, 58, 95, 0.15);
  --navy-08: rgba(30, 58, 95, 0.08);
  --navy-04: rgba(30, 58, 95, 0.04);
  --gray: var(--meta);
  --rose-soft: var(--rose-tint);
  --font-serif: var(--font-display);
  --font-sans: var(--font-body);
  --shell: min(1180px, calc(100vw - 96px));
  --section-space: clamp(48px, 6vw, 84px);
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  overflow-x: clip; /* Strict requirement: overflow-x: clip; never overflow: clip */
  background: var(--white);
  color: var(--indigo);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enforce instant scroll coordinates for GSAP ScrollTrigger stability */
html:has(.workshops-landing),
body:has(.workshops-landing) {
  scroll-behavior: auto !important;
}

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

.workshops-landing img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshops-landing a {
  color: inherit;
  text-decoration: none;
}

/* GSAP Scroll Reveal Optimized Layers */
.js-reveal,
.js-reveal-card,
.js-reveal-ticket,
.js-reveal-gallery,
.js-reveal-step,
.js-reveal-cta {
  will-change: transform, opacity;
}

.workshops-landing p,
.workshops-landing h1,
.workshops-landing h2,
.workshops-landing h3,
.workshops-landing h4,
.workshops-landing ul,
.workshops-landing ol,
.workshops-landing li,
.workshops-landing dl,
.workshops-landing dt,
.workshops-landing dd,
.workshops-landing figure {
  margin: 0;
  padding: 0;
}

.workshops-landing ul,
.workshops-landing ol {
  list-style: none;
}

/* Common Section Typography ----------------------------------------------- */

.workshops-shell {
  width: var(--shell);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section {
  margin-top: var(--section-space);
}

.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kicker__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(197, 139, 142, 0.14);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: var(--space-5) 0 0;
  color: var(--indigo);
}

.section-lead {
  margin: var(--space-3) 0 0;
  color: var(--navy-85);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.8;
}

/* Common Button Styles --------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid rgba(30, 58, 95, 0.28);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--indigo);
  background: transparent;
  cursor: pointer;
  transition: background 0.24s, border-color 0.24s, color 0.24s, transform 0.24s;
}

.button:hover {
  background: #fbf8f8;
  border-color: var(--rose);
  color: var(--indigo);
}

.button--navy {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

.button--navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.button--outline {
  background: transparent;
  border-color: rgba(30, 58, 95, 0.32);
  color: var(--indigo);
}

.button--outline:hover {
  border-color: var(--rose);
  background: #fbf8f8;
}

.button--card {
  width: 100%;
}

.button__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(197, 139, 142, 0.15);
}

.button--navy .button__dot {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.button__arrow {
  font-size: var(--text-base);
  line-height: 1;
  transition: transform 0.2s;
}

.button:hover .button__arrow {
  transform: translateX(2px);
}

/* ==========================================================================
   Act 1: Hero Sticky Pin & Video Threshold (时空定格 · 视频与反色穿透)
   Preserved exactly from HEAD
   ========================================================================== */

.workshops-hero-track {
  position: relative;
  width: 100%;
}

.workshops-hero-pin {
  position: sticky;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

/* Background Video Atmosphere (Starts framed in center, expands on scroll) */
.workshops-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform-origin: center center;
  transform: scale(0.32);
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-15);
  box-shadow: none !important;
  will-change: transform, border-radius;
}

.workshops-hero-media__video,
.workshops-hero-media__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.workshops-hero-media__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 42, 69, 0.45) 0%,
    rgba(22, 42, 69, 0.20) 40%,
    rgba(22, 42, 69, 0.65) 100%
  );
  z-index: 2;
}

.workshops-hero-media__grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  z-index: 3;
}

/* Foreground Typography Layer (Clean Editorial Navy on White Canvas) */
.workshops-hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-top: max(28px, calc((100dvh - var(--header-h)) * .34 - 154px));
  color: var(--navy-deep);
  pointer-events: none;
  will-change: transform, opacity;
}

.workshops-hero-content__inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.workshops-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin-bottom: var(--space-2);
}

.workshops-hero-en {
  position: absolute;
  top: calc(66% - 0.55em);
  left: 0;
  right: 0;
  z-index: 0;
  padding-inline: 18px;
  font-family: var(--font-sans);
  font-size: clamp(32px, 6.4vw, 88px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--navy-42);
  filter: blur(2.5px);
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
}

/* Spatial Mission Statement (Transitions in mid-runway over full-bleed video) */
.workshops-hero-intro {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-6);
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.workshops-hero-intro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.workshops-hero-intro__inner {
  background: rgba(14, 28, 44, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: var(--space-5) 40px;
  border-radius: var(--radius-pill);
  display: inline-block;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.workshops-hero-intro__whisper {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 20px);
  color: var(--white);
  letter-spacing: 0.08em;
}

/* Bottom Scroll Cue */
.workshops-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--navy-42);
  pointer-events: none;
}

.workshops-scroll-cue__line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--navy-deep), transparent);
  animation: cueBounce 2.2s infinite ease-in-out;
}

.workshops-scroll-cue__text {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--navy-65);
}

@keyframes cueBounce {
  0%, 100% {
    transform: scaleY(0.7);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

/* Invisible Scroll Runway Driving the Hero Video Progression */
.workshops-hero-spacer {
  position: relative;
  height: 120vh;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

/* ==========================================================================
   Section 2: 在这里，你可以学什么 (WHAT WE OFFER)
   Polish 2 & 3: Spec Cards with Status Capsule, dl metadata, icons, bullets
   ========================================================================== */

.offer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(36px, 4vw, 56px);
}

.spec-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.13);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.26s, box-shadow 0.26s, transform 0.26s;
}

.spec-card:hover {
  border-color: rgba(197, 139, 142, 0.55);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.spec-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.spec-card__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  color: var(--indigo);
  margin: 0;
  letter-spacing: 0.02em;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(30, 58, 95, 0.06);
  color: var(--gray);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.spec-badge--open {
  background: rgba(197, 139, 142, 0.14);
  color: #a45a5e;
  font-weight: 500;
}

.spec-card__meta {
  margin: var(--space-6) 0 var(--space-5);
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(30, 58, 95, 0.09);
  border-bottom: 1px solid rgba(30, 58, 95, 0.09);
  padding: var(--space-5) 0;
}

.spec-meta-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  font-size: 14px;
  line-height: 1.6;
}

.spec-meta-item dt {
  color: var(--gray);
  font-weight: 500;
}

.spec-meta-item dd {
  color: var(--navy-85);
  margin: 0;
}

.spec-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 10px;
  margin-bottom: 6px;
}

.spec-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--indigo);
  font-size: var(--text-sm);
  background: rgba(30, 58, 95, 0.04);
  padding: var(--space-1) 9px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.spec-icon {
  width: 13px;
  height: 13px;
  stroke: var(--indigo);
  flex: none;
}

.spec-desc-note {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  color: var(--gray);
}

.spec-card__benefit {
  margin-bottom: var(--space-7);
  flex: 1;
}

.spec-benefit-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.spec-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.spec-bullet-list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: 14px;
  line-height: 1.65;
  color: var(--navy-85);
}

.spec-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}

.spec-card__action {
  margin-top: auto;
  padding-top: 6px;
}

/* ==========================================================================
   Section 3: 来临课程与活动 (UPCOMING SESSIONS)
   Polish 4: Large Serif Date Badge, Clean Middle Details, Right Action
   ========================================================================== */

.showing__head {
  margin-bottom: var(--space-6);
}

.ticket-list {
  display: grid;
  gap: var(--space-4);
  margin-top: clamp(28px, 3.5vw, 44px);
}

.ticket {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: clamp(18px, 3.5vw, 36px);
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.26s, transform 0.26s, box-shadow 0.26s;
}

.ticket:hover {
  border-color: rgba(197, 139, 142, 0.65);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ticket__date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid rgba(30, 58, 95, 0.1);
  padding-right: clamp(14px, 2vw, 24px);
  min-width: 90px;
}

.ticket__day {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  line-height: 1;
  color: var(--indigo);
  letter-spacing: -0.02em;
}

.ticket__date-badge--pending .ticket__day {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--gray);
}

.ticket__month {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
  margin-top: 5px;
}

.ticket__weekday {
  font-size: var(--text-xs);
  color: var(--gray);
  margin-top: 2px;
}

.ticket__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.ticket__meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
}

.ticket__type-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  background: rgba(30, 58, 95, 0.07);
  color: var(--indigo);
}

.ticket__type-tag--course {
  background: rgba(197, 139, 142, 0.14);
  color: #9c5c60;
}

.ticket__date-text {
  color: var(--gray);
  font-size: var(--text-sm);
}

.ticket__title {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 400;
  margin: 0;
  color: var(--indigo);
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.ticket__brief {
  margin: 0;
  color: var(--navy-85);
  font-size: 14px;
  line-height: 1.6;
}

.ticket__tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--gray);
}

.ticket__tag-item {
  background: rgba(30, 58, 95, 0.04);
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 58, 95, 0.07);
}

.ticket__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.ticket__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray);
}

.ticket__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8adb4;
}

.ticket__status.status--open {
  color: var(--indigo);
}

.ticket__status.status--open::before {
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(197, 139, 142, 0.18);
}

.ticket__status.status--full::before {
  background: var(--danger);
}

.ticket__status.status--planned::before {
  background: #a9bccd;
}

.ticket__status.status--limited::before {
  background: var(--warn);
}

.button--ticket {
  min-height: 42px;
  padding: var(--space-2) var(--space-5);
  font-size: 13px;
  white-space: nowrap;
}

.showing__more {
  margin-top: var(--space-8);
  text-align: center;
}

/* ==========================================================================
   Section 4: 落牌过场 (INTERLUDE)
   v5 Tarot Drop, Helix Orbit, Ripples, Bloom, and leftEdgeX Title Wipe
   ========================================================================== */

.interlude-section {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 520px;
  margin: 0 auto;
  padding: var(--space-8) 0 0;
  background: var(--white);
  overflow: hidden;
}

.interlude-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.interlude-world {
  position: absolute;
  width: 700px;
  height: 620px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  perspective: 1300px;
  pointer-events: none;
}

.interlude-art-layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: opacity, transform;
}

.interlude-svg {
  position: absolute;
  inset: 0;
  width: 700px;
  height: 620px;
  overflow: visible;
  pointer-events: none;
}

.ribbon-back {
  z-index: 10;
}

.wash-layer {
  z-index: 14;
}

.interlude-contact {
  position: absolute;
  left: 326px;
  top: 497px;
  width: 128px;
  height: 16px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(30, 58, 95, 0.5) 0%, rgba(30, 58, 95, 0.12) 45%, rgba(30, 58, 95, 0) 70%);
  z-index: 15;
}

/* Title block revealed by leftmost card edge, underneath the deck */
.interlude-title-layer {
  position: absolute;
  left: 190px;
  top: 350px;
  width: 440px;
  z-index: 22;
  opacity: 0;
  pointer-events: auto;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3));
}

.interlude-heading {
  font-family: var(--font-serif);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin: 10px 0 6px;
  color: var(--indigo);
}

.interlude-heading span {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(-12px, 13px, 0);
  will-change: opacity, transform, filter;
}

.interlude-tagline {
  margin: 0;
  color: rgba(30, 58, 95, 0.72);
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(7px);
}

.interlude-deck {
  position: absolute;
  left: 338px;
  top: 337px;
  width: 104px;
  height: 168px;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  z-index: 31;
}

.tarot-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  height: 168px;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.card-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(30, 58, 95, 0.46);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FCFAF5;
  box-shadow: var(--shadow-sm);
}

.card-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 42%, rgba(30, 58, 95, 0.035) 100%);
}

.card-side::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.card-side.back {
  opacity: 0;
  background: linear-gradient(140deg, var(--paper), var(--water));
}

.card-side svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
}

.card-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(112deg, transparent 15%, rgba(255, 255, 255, 0.6) 50%, rgba(30, 58, 95, 0.07) 84%);
}

.ribbon-front {
  z-index: 39;
}

.interlude-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  z-index: 48;
  pointer-events: none;
}

.interlude-dot-halo {
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(197, 139, 142, 0.25);
  box-shadow: 0 0 14px rgba(197, 139, 142, 0.2);
}

.interlude-dot-core {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px rgba(197, 139, 142, 0.5);
  will-change: transform, opacity;
}

/* ==========================================================================
   Section 5: 活动印记相册 (PAST SESSIONS)
   Polish 5 & 6: Infinite drift, hover pause, feather-edge mask
   ========================================================================== */

.moments {
  margin-top: clamp(20px, 4vw, 40px);
}

.moments__groups {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
  min-width: 0;
}

.gallery-group {
  min-width: 0;
}

.gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  /* Progressive, multi-stop feather mask across left and right edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.04) 2%,
    rgba(0, 0, 0, 0.22) 4.5%,
    rgba(0, 0, 0, 0.6) 8%,
    rgba(0, 0, 0, 0.9) 12%,
    #000000 16%,
    #000000 84%,
    rgba(0, 0, 0, 0.9) 88%,
    rgba(0, 0, 0, 0.6) 92%,
    rgba(0, 0, 0, 0.22) 95.5%,
    rgba(0, 0, 0, 0.04) 98%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.04) 2%,
    rgba(0, 0, 0, 0.22) 4.5%,
    rgba(0, 0, 0, 0.6) 8%,
    rgba(0, 0, 0, 0.9) 12%,
    #000000 16%,
    #000000 84%,
    rgba(0, 0, 0, 0.9) 88%,
    rgba(0, 0, 0, 0.6) 92%,
    rgba(0, 0, 0, 0.22) 95.5%,
    rgba(0, 0, 0, 0.04) 98%,
    transparent 100%
  );
}

/* Soft white paper-color edge vignettes to guarantee 100% seamless feathering without clipping */
.gallery::before,
.gallery::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(32px, 8vw, 96px);
  z-index: 4;
  pointer-events: none;
}

.gallery::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
}

.gallery::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
}

.gallery__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: galleryDrift 76s linear infinite;
  will-change: transform;
}

.gallery:hover .gallery__track,
.gallery:focus-within .gallery__track {
  animation-play-state: paused;
}

.gallery__track img {
  display: block;
  width: clamp(210px, 26vw, 340px);
  height: clamp(150px, 20vw, 240px);
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.gallery--early .gallery__track {
  animation-duration: 88s;
  animation-direction: reverse;
}

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

/* ==========================================================================
   Section 6: 报名方式 (HOW TO JOIN)
   Polish 7: 3 Steps Connected by Line with Rose Nodes
   ========================================================================== */

.join-guide {
  margin-top: var(--section-space);
}

.steps-flow {
  position: relative;
  margin: clamp(36px, 5vw, 60px) 0 clamp(32px, 4vw, 48px);
}

.steps-flow__line {
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(30, 58, 95, 0.16);
  z-index: 1;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-item__node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.step-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(197, 139, 142, 0.15);
}

.step-item__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--indigo);
  margin: 0 0 6px;
}

.step-item__desc {
  font-size: 14px;
  color: rgba(30, 58, 95, 0.72);
  line-height: 1.6;
  margin: 0;
  max-width: 240px;
}

.join-faq {
  margin-top: 36px;
  padding-top: var(--space-7);
  border-top: 1px solid rgba(30, 58, 95, 0.1);
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.faq-item__q {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--indigo);
  margin: 0 0 6px;
}

.faq-item__a {
  font-size: 14px;
  color: rgba(30, 58, 95, 0.75);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Section 7: 底部 CTA (JOIN)
   Polish 8: Mist Blue Box (var(--paper)), Clean Separation from Footer
   ========================================================================== */

.closing-cta {
  margin-top: var(--section-space);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.closing-cta__box {
  background: var(--paper);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 76px) clamp(20px, 5vw, 60px);
  text-align: center;
}

.closing-cta__box .kicker {
  justify-content: center;
}

.closing-cta__desc {
  margin: var(--space-3) 0 var(--space-8);
  color: rgba(30, 58, 95, 0.75);
  font-size: var(--text-base);
}

.closing-cta__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Adaptations (768px, 640px, 390px, 360px)
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .workshops-hero-media {
    transform: scale(0.52);
    border-radius: var(--radius-lg);
  }

  .workshops-hero-content {
    padding-top: max(20px, calc((100dvh - var(--header-h)) * .32 - 130px));
  }

  .offer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .ticket {
    grid-template-columns: 88px 1fr;
    gap: 18px;
    padding: var(--space-4);
  }

  .ticket__action {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(30, 58, 95, 0.08);
    padding-top: var(--space-3);
    margin-top: var(--space-1);
  }
}

@media (max-width: 768px) {
  .interlude-section {
    height: auto;
    min-height: 480px;
  }

  .interlude-viewport {
    position: relative;
    height: 520px;
  }

  .steps-flow__line {
    display: none;
  }

  .steps-list {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: left;
  }

  .step-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
  }

  .step-item__node {
    flex: none;
    margin-bottom: 0;
  }

  .gallery__track img {
    width: 68vw;
    height: 46vw;
  }
}

@media (max-width: 480px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .workshops-hero-title {
    font-size: clamp(32px, 8.8vw, 48px);
  }

  .workshops-hero-intro__inner {
    padding: 14px var(--space-5);
    border-radius: var(--radius-pill);
  }

  .ticket {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: 14px;
  }

  .ticket__date-badge {
    border-right: none;
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    padding-right: 0;
    padding-bottom: 10px;
    flex-direction: row;
    gap: var(--space-2);
    align-items: baseline;
    justify-content: flex-start;
  }

  .ticket__day {
    font-size: 26px;
  }

  .ticket__month,
  .ticket__weekday {
    margin: 0;
  }

  .ticket__action {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .button--ticket {
    width: 100%;
  }

  .closing-cta__actions .button {
    width: 100%;
  }
}

/* ==========================================================================
   Prefers Reduced Motion & Fallbacks
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .workshops-hero-media {
    transform: scale(1) !important;
    border-radius: 0 !important;
    opacity: 0.8 !important;
  }

  .workshops-hero-content {
    opacity: 1 !important;
  }

  .workshops-hero-intro {
    opacity: 1 !important;
    transform: none !important;
  }

  .interlude-section {
    height: auto !important;
    min-height: 400px !important;
  }

  .interlude-viewport {
    position: relative !important;
    height: auto !important;
    padding: 40px 0 !important;
  }

  .interlude-world {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .interlude-title-layer {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    opacity: 1 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .interlude-heading span {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .interlude-tagline {
    opacity: 1 !important;
    transform: none !important;
  }

  .interlude-deck,
  .interlude-contact,
  .interlude-dot,
  .ribbon-front,
  .ribbon-back,
  .wash-layer {
    display: none !important;
  }

  .gallery {
    overflow: hidden;
  }

  .gallery__track {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    animation: none !important;
    gap: var(--space-3) !important;
  }

  .gallery__track img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3;
  }

  .gallery__track img[aria-hidden="true"] {
    display: none !important;
  }
}
