/* V5 cinematic motion layer: flowing gold and the WETA feature. */

.ingredient-hero__gold-orbit {
  position: absolute;
  z-index: 1;
  top: 14.5%;
  left: 52.5%;
  width: 47.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .72;
  pointer-events: none;
  filter: drop-shadow(0 0 1.1rem rgb(231 170 44 / 22%));
}

.ingredient-hero__gold-orbit i {
  --orbit-inset: 0%;
  --orbit-stroke: 1rem;
  position: absolute;
  inset: var(--orbit-inset);
  border-radius: 50%;
  background: conic-gradient(from 214deg, transparent 0 6%, rgb(255 232 151 / 82%) 10%, rgb(154 73 5 / 68%) 17%, transparent 25% 48%, rgb(226 157 35 / 54%) 54%, rgb(255 239 177 / 86%) 60%, transparent 68% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--orbit-stroke)), #000 calc(100% - var(--orbit-stroke) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--orbit-stroke)), #000 calc(100% - var(--orbit-stroke) + 1px));
}

.ingredient-hero__gold-orbit i:nth-child(2) { --orbit-inset: 7%; --orbit-stroke: .22rem; opacity: .8; }
.ingredient-hero__gold-orbit i:nth-child(3) { --orbit-inset: 16%; --orbit-stroke: .13rem; opacity: .65; }

.signature-stage {
  --ferrari-yellow-orange: #ffb300;
}

.signature-stage::before,
.signature-stage::after {
  width: 34vw;
  height: 120%;
  left: 29%;
  top: -10%;
  transform: skewX(-12deg);
}

.signature-stage::before {
  z-index: 0;
  background: linear-gradient(132deg, #ffd200 0%, var(--ferrari-yellow-orange) 48%, #ff8a00 100%);
  box-shadow: inset 0 1px rgb(255 255 255 / 38%), inset 0 -1px rgb(118 45 0 / 28%);
  opacity: 1;
}

.signature-stage::after {
  --gold-edge: clamp(.65rem, .9vw, 1.05rem);
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-image: var(--foil-gold);
  background-size: 220% 100%, cover;
  background-position: 38% center, center;
  filter: saturate(1.2) contrast(1.06) drop-shadow(0 0 .5rem rgb(83 33 0 / 22%));
  -webkit-mask: linear-gradient(90deg, #000 0 var(--gold-edge), transparent var(--gold-edge) calc(100% - var(--gold-edge)), #000 calc(100% - var(--gold-edge)) 100%);
  mask: linear-gradient(90deg, #000 0 var(--gold-edge), transparent var(--gold-edge) calc(100% - var(--gold-edge)), #000 calc(100% - var(--gold-edge)) 100%);
}

:is(.dish-collage, .editorial-hero--saffron, .media-note, .origin-timeline, .bento-builder) {
  background-size: 100% 100%, 210% 120%, 115% 115%;
  background-position: center, 24% center, 44% center;
}

.footer-lead h2,
.footer-lead h2 i {
  background: none;
  color: var(--coral);
  -webkit-text-fill-color: currentColor;
  filter: none;
}

.page-experiences .site-header:not(.is-scrolled) {
  --header-color: var(--plum);
  text-shadow: 0 1px rgb(255 244 197 / 42%);
}

/* The red lockup disappears on red and warm photographic heroes; use a white knockout. */
:is(.page-menu, .page-find-your-yunnan, .page-gallery) .site-header:not(.is-scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}

/* Preserve the original Visit portrait and keep both guests' faces in frame. */
.visit-hero > .visit-hero__experience-image {
  object-fit: cover;
  object-position: center 42%;
}

/* Outcome-forward CTA system: generous targets, soft corners, depth, and tactile motion. */
.button {
  min-height: 3.75rem;
  padding: 1rem 1.3rem;
  border-radius: .65rem;
  isolation: isolate;
  box-shadow: 0 .85rem 2rem rgb(12 32 56 / 16%), inset 0 1px 0 rgb(255 255 255 / 20%);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease, color .24s ease, background .24s ease, background-position .55s cubic-bezier(.16, 1, .3, 1);
}

.button--sun,
.button--ember {
  box-shadow: 0 1rem 2.4rem rgb(168 92 0 / 28%), inset 0 1px 0 rgb(255 245 194 / 55%);
}

.button--ink { box-shadow: 0 1rem 2.35rem rgb(6 17 31 / 28%), inset 0 1px 0 rgb(255 255 255 / 12%); }
.button--glass { box-shadow: 0 .9rem 2.2rem rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 22%); }
.button--ghost { border-width: 2px; box-shadow: none; }

.button:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 1.15rem 2.6rem rgb(12 32 56 / 24%), inset 0 1px 0 rgb(255 255 255 / 28%);
}

.button:active { transform: translateY(0) scale(.985); }
.button > :last-child { transition: transform .24s cubic-bezier(.16, 1, .3, 1); }
.button:hover > :last-child { transform: translateX(.28rem); }

.header-order {
  min-height: 3.25rem;
  border-radius: .55rem;
  box-shadow: 0 .65rem 1.6rem rgb(0 0 0 / 14%);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), color .24s ease, border-color .24s ease, background-position .55s cubic-bezier(.16, 1, .3, 1);
}

.header-order:hover { transform: translateY(-2px) scale(1.01); }
.header-order:active { transform: translateY(0) scale(.985); }

@media (prefers-reduced-motion: reduce) {
  .button,
  .button > :last-child,
  .header-order { transition-duration: .01ms; }
  .button:hover,
  .button:active,
  .button:hover > :last-child,
  .header-order:hover,
  .header-order:active { transform: none; }
}

.dish-collage {
  position: relative;
  isolation: isolate;
}

.dish-collage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(98deg, transparent 0 8%, rgb(255 246 196 / 18%) 12%, rgb(84 31 0 / 13%) 17%, transparent 23% 31%);
  background-size: 190% 100%;
  mix-blend-mode: soft-light;
  opacity: .72;
}

.foil-fall {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

:is(.dish-collage, .episode-feature) > :not(.foil-fall) {
  position: relative;
  z-index: 2;
}

.foil-fall i {
  --drift: 3rem;
  --size: .72rem;
  --duration: 13s;
  --turn: 720deg;
  position: absolute;
  top: -12%;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * .62);
  border-radius: 16% 62% 20% 54%;
  background: linear-gradient(125deg, #fff1a8 0 22%, #d58e11 48%, #fff0a0 67%, #8b3b00 100%);
  box-shadow: inset .08rem .08rem .12rem rgb(255 255 255 / 55%);
  opacity: var(--opacity, .78);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 .18rem .24rem rgb(43 16 0 / 35%));
}

.foil-fall--gold i { mix-blend-mode: screen; }
.foil-fall--night i { filter: drop-shadow(0 0 .45rem rgb(255 205 77 / 38%)); }
.foil-fall i:nth-child(1) { --x: 6%; --size: .52rem; --duration: 12s; --drift: 4rem; --turn: 680deg; animation-delay: -8s; }
.foil-fall i:nth-child(2) { --x: 14%; --size: .86rem; --duration: 17s; --drift: -3rem; --turn: -540deg; animation-delay: -2s; }
.foil-fall i:nth-child(3) { --x: 24%; --size: .42rem; --duration: 14s; --drift: 6rem; --turn: 820deg; animation-delay: -11s; }
.foil-fall i:nth-child(4) { --x: 37%; --size: .68rem; --duration: 19s; --drift: -5rem; --turn: -760deg; animation-delay: -5s; }
.foil-fall i:nth-child(5) { --x: 48%; --size: .38rem; --duration: 13s; --drift: 3rem; --turn: 620deg; animation-delay: -9s; }
.foil-fall i:nth-child(6) { --x: 58%; --size: .92rem; --duration: 18s; --drift: 5rem; --turn: -840deg; animation-delay: -14s; }
.foil-fall i:nth-child(7) { --x: 66%; --size: .48rem; --duration: 15s; --drift: -4rem; --turn: 710deg; animation-delay: -4s; }
.foil-fall i:nth-child(8) { --x: 74%; --size: .74rem; --duration: 20s; --drift: 6rem; --turn: -620deg; animation-delay: -16s; }
.foil-fall i:nth-child(9) { --x: 82%; --size: .36rem; --duration: 13s; --drift: -2rem; --turn: 920deg; animation-delay: -6s; }
.foil-fall i:nth-child(10) { --x: 89%; --size: .82rem; --duration: 18s; --drift: -6rem; --turn: -780deg; animation-delay: -12s; }
.foil-fall i:nth-child(11) { --x: 94%; --size: .46rem; --duration: 15s; --drift: 2rem; --turn: 650deg; animation-delay: -1s; }
.foil-fall i:nth-child(12) { --x: 31%; --size: .32rem; --duration: 21s; --drift: 7rem; --turn: -880deg; animation-delay: -18s; }

.motion-chapter {
  min-height: auto;
  padding: clamp(6.5rem, 8vw, 8rem) var(--pad) clamp(4.5rem, 6vw, 6rem);
  grid-template-columns: minmax(20rem, .78fr) minmax(30rem, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(3rem, 5vw, 5rem) clamp(3rem, 5vw, 5rem);
  background: #07090d;
}

.motion-chapter::before {
  background: radial-gradient(circle at 2% 18%, rgb(255 40 0 / 27%), transparent 30%), radial-gradient(circle at 96% 78%, rgb(23 53 85 / 38%), transparent 40%), linear-gradient(112deg, #080709 0 40%, #0a0d13 68%, #0d1620 100%);
}

.episode-feature__media {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 52rem);
  margin: 0;
  justify-self: end;
}

.episode-feature__frame {
  border-color: rgb(255 250 244 / 18%);
  border-radius: 1rem;
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 54%), 0 0 0 .35rem rgb(255 250 244 / 3%);
}

.episode-feature__frame::before {
  display: none;
}

.episode-feature__source {
  color: rgb(255 250 244 / 58%);
  font-size: clamp(.7rem, .67rem + .12vw, .8rem);
  letter-spacing: .05em;
}

.episode-feature__source span,
.episode-feature__meta span {
  margin-inline: .45em;
  color: var(--coral);
}

.episode-feature__copy {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
  padding: 1.3rem 0 1.3rem 1.35rem;
  border-left: .32rem solid var(--coral);
  background: none;
  box-shadow: none;
}

.episode-feature__wordmark {
  margin-bottom: .45rem;
  color: var(--white);
  font-size: clamp(.78rem, .72rem + .28vw, 1rem);
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.motion-chapter__copy h2 {
  max-width: 8ch;
  margin-bottom: 1.15rem;
  font-size: clamp(3.2rem, 4.6vw, 5.6rem);
  line-height: .91;
  letter-spacing: -.045em;
}

.motion-chapter__copy h2 i {
  margin-top: .12em;
  padding-bottom: .12em;
}

.episode-feature__meta {
  margin-bottom: 1.2rem;
  color: rgb(255 250 244 / 72%);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.episode-feature__copy > p:not(.kicker, .episode-feature__wordmark, .episode-feature__meta) {
  max-width: 34rem;
  color: rgb(255 250 244 / 82%);
}

.episode-feature__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}

.episode-feature__actions .button { width: min(100%, 19rem); }
.episode-feature__actions .kinetic-link { max-width: 22rem; gap: 1.6rem; }

.episode-feature__shelf {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: clamp(1.6rem, 2.5vw, 2.35rem);
  display: grid;
  grid-template-columns: minmax(12rem, .34fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  border: 1px solid rgb(255 250 244 / 14%);
  border-radius: 1.15rem;
  background: linear-gradient(120deg, rgb(255 250 244 / 5%), rgb(255 250 244 / 1.5%));
  box-shadow: inset 0 1px rgb(255 255 255 / 4%), 0 1.5rem 4rem rgb(0 0 0 / 20%);
}

.episode-feature__shelf-heading p {
  margin-bottom: .35rem;
  color: var(--white);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 900;
}

.episode-feature__shelf-heading span {
  color: rgb(255 250 244 / 54%);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.episode-feature__points {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.episode-feature__points li {
  grid-template-columns: 2.3rem 1fr;
  gap: .85rem;
  padding: 0;
  border: 0;
}

.episode-feature__points li:last-child { border: 0; }
.episode-feature__points p { color: rgb(255 250 244 / 68%); font-size: clamp(.78rem, .75rem + .1vw, .88rem); line-height: 1.5; }

.episode-feature__credit {
  grid-column: 2;
  margin: -.4rem 0 0;
  color: rgb(255 250 244 / 44%);
  font-size: clamp(.68rem, .65rem + .1vw, .76rem);
}

/* Preserve the original Yunnan AI result language; only reduce scale and strengthen legibility. */
.result-primary,
.result-alternatives { width: min(100%, 60rem); margin-inline: auto; }

.result-card--hero {
  grid-template-columns: 18rem minmax(0, 1fr);
  border: .2rem solid #c48a17;
  background-color: var(--saffron);
  background-image: linear-gradient(115deg, rgb(239 187 51 / 94%), rgb(202 119 6 / 92%)), var(--foil-gold);
  background-size: 100% 100%, 190% 100%, cover;
  box-shadow: 0 1.25rem 3rem rgb(34 18 37 / 16%);
}

.result-card--hero .result-card__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  aspect-ratio: auto;
  align-self: stretch;
  border-radius: 0;
  box-shadow: none;
}

.result-card--hero .result-card__body { padding: 1.25rem; gap: .65rem .9rem; background: transparent; color: var(--plum); }
.result-card--hero .result-card__eyebrow { width: max-content; padding: 0; border-radius: 0; background: transparent; color: var(--plum); -webkit-text-fill-color: currentColor; }
.result-card--hero h3 { color: var(--plum); font-size: clamp(2rem, 2.2vw, 2.45rem); letter-spacing: -.045em; }
.result-card--hero .result-flavor-chips span { background: transparent; border-color: rgb(12 32 56 / 48%); }
.result-card--hero .result-plain { color: var(--plum); font-size: clamp(1.05rem, 1.25vw, 1.3rem); }
.result-card--hero .why-box { padding: .8rem .9rem; border: 1px solid rgb(12 32 56 / 16%); border-radius: .7rem; background: rgb(255 250 244 / 72%); }
.result-card--hero .result-order { margin-top: .1rem; padding: .25rem 0 0; border: 0; border-radius: 0; background: transparent; }
.result-card--hero .result-order h4 { margin-bottom: .35rem; align-items: center; }
.result-card--hero .result-sequence li { min-height: 2.65rem; grid-template-columns: 1.85rem minmax(0, 1fr) auto; gap: .7rem; padding: .35rem 0; align-items: center; }
.result-card--hero .result-sequence li > span { width: 1.85rem; height: 1.85rem; display: grid; place-items: center; background: var(--plum); background-image: none; background-clip: border-box; color: var(--white); -webkit-text-fill-color: currentColor; filter: none; }
.result-card--hero .result-sequence li div { justify-content: center; min-width: 0; }
.result-card--hero .result-sequence li div small { color: var(--coral-dark); font-size: .72rem; font-weight: 800; }
.result-card--hero .result-sequence li div b { font-size: .95rem; line-height: 1.3; }
.result-card--hero .result-total { padding: .65rem 0 0; border: 0; border-top: 1px solid rgb(12 32 56 / 34%); border-radius: 0; background: transparent; color: var(--plum); }
.result-card--hero .result-total > span small { color: rgb(12 32 56 / 72%); }
.result-card--hero .result-total strong { color: var(--plum); }
.result-card--hero .button--ember { background: var(--saffron); color: var(--plum); border-color: var(--plum); }
.result-card--hero .button--ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.result-card--hero .button { min-height: 3rem; padding-block: .65rem; }
.result-card--hero .microcopy { padding: .15rem 0 0; border-radius: 0; background: transparent; color: rgb(12 32 56 / 82%); line-height: 1.4; }

.result-alternatives__grid { gap: 1rem; align-items: start; }
.result-card--alternative { align-self: start; }
.result-card--alternative .result-card__image { height: clamp(9.5rem, 14vw, 12rem); }
.result-card--alternative .result-card__body { height: auto; padding: 1.15rem; }
.result-card--alternative .result-card__eyebrow { font-size: .72rem !important; }
.result-card--alternative h3 { margin: .35rem 0 .55rem; font-size: clamp(1.65rem, 2.15vw, 2rem); line-height: 1; }
.result-card--alternative .result-card__body > p { font-size: .95rem; line-height: 1.5; }
.result-card--alternative .result-flavor-chips { margin: .45rem 0 .2rem; }
.result-card--alternative .why-box { margin: .55rem 0 0; padding: .7rem 0; border-block: 1px solid rgb(12 32 56 / 20%); border-radius: 0; background: transparent; }
.result-card--alternative .result-total { margin: .7rem 0 0; padding-top: .7rem; }
.result-card--alternative .result-total strong { font-size: 1.7rem; }
.result-card--alternative .button { min-height: 3rem; margin-top: .8rem; padding: .7rem .9rem; font-size: .8rem; }

@media (prefers-reduced-motion: no-preference) {
  .signature-stage::after { animation: signature-gold-edge-flow 16s ease-in-out infinite alternate; }
  .ingredient-hero__gold-orbit i { animation: hero-gold-orbit 84s linear infinite; will-change: transform; }
  .ingredient-hero__gold-orbit i:nth-child(2) { animation-duration: 112s; animation-direction: reverse; }
  .ingredient-hero__gold-orbit i:nth-child(3) { animation-duration: 138s; }
  :is(.dish-collage, .editorial-hero--saffron, .media-note, .origin-timeline, .bento-builder) { animation: luxury-curtain-flow 18s ease-in-out infinite alternate; }
  .dish-collage::before { animation: curtain-light 13s ease-in-out infinite alternate; }
  .foil-fall i { animation: foil-snow var(--duration) linear infinite; }
}

@keyframes hero-gold-orbit { to { transform: rotate(1turn); } }

@keyframes signature-gold-edge-flow {
  from { background-position: 22% center, center; }
  to { background-position: 78% center, center; }
}

@keyframes luxury-curtain-flow {
  from { background-position: center, 20% center, 42% center; }
  to { background-position: center, 80% center, 58% center; }
}

@keyframes curtain-light {
  from { background-position: 0 0; transform: skewX(-1deg) scaleX(1.02); }
  to { background-position: 100% 0; transform: skewX(1deg) scaleX(1.06); }
}

@keyframes foil-snow {
  0% { transform: translate3d(0, -14vh, 0) rotate(0deg) skew(-8deg); }
  46% { transform: translate3d(calc(var(--drift) * -.35), 66vh, 0) rotate(calc(var(--turn) * .46)) skew(10deg); }
  100% { transform: translate3d(var(--drift), 152vh, 0) rotate(var(--turn)) skew(-6deg); }
}

@media (max-width: 900px) {
  .ingredient-hero__gold-orbit { top: 14.5%; left: -2%; width: 214%; }

  .signature-stage::before,
  .signature-stage::after {
    width: 55vw;
    left: 50%;
  }

  .result-card--hero { grid-template-columns: 1fr; }
  .result-card--hero .result-card__image { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9; justify-self: center; }
  .result-card--hero .result-card__body { display: flex; padding: 1.2rem; gap: .75rem; }

  .motion-chapter {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2.5rem;
  }

  .episode-feature__copy {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 1.5rem 0 0 1.4rem;
    background: none;
  }

  .episode-feature__media { grid-column: 1; grid-row: 2; width: min(100%, 46rem); margin: 0; justify-self: start; }
  .episode-feature__frame::before { display: none; }
  .episode-feature__shelf { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
  .episode-feature__points { grid-template-columns: 1fr; }
  .episode-feature__credit { grid-column: 1; margin-top: 0; }
}

@media (max-width: 560px) {
  .motion-chapter { padding-inline: 1.15rem; }
  .motion-chapter__copy h2 { font-size: clamp(3.5rem, 16vw, 5.2rem); }
  .episode-feature__shelf { padding: 1.35rem; }
  .episode-feature__actions { align-items: stretch; }
  .episode-feature__actions .button, .episode-feature__actions .kinetic-link { width: 100%; max-width: none; }
  .episode-feature__source { line-height: 1.55; }
  .foil-fall i:nth-child(n + 8) { display: none; }
  .result-card--hero .result-card__image { aspect-ratio: 4 / 3; }
  .result-card--alternative h3 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .foil-fall { display: none; }
}
