:root {
  --tilt-perspective: 1000px;
  --tilt-return: 1000ms;
  --tilt-return-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-follow: 400ms;
  --tilt-follow-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-glare-opacity: 0.32;
  --tilt-glare-fade: 300ms;
  --tilt-glare-ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* The outer wrapper is the flat hit area; touch-action:none
   lets a finger drag tilt the card instead of scrolling the
   page, so tap-hold-drag works on mobile. */
.t-tilt { touch-action: none; }
/* The card tilts toward the pointer via rotateX/rotateY fed
   from JS; on leave it eases back to flat. A separate
   .is-tilting class swaps in a short linear follow while the
   pointer moves so the tilt tracks the cursor 1:1. */
.t-tilt-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform:
    perspective(var(--tilt-perspective))
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform var(--tilt-return) var(--tilt-return-ease);
  will-change: transform;
}
.t-tilt-card.is-tilting {
  transition: transform var(--tilt-follow) var(--tilt-follow-ease);
}
/* Cursor-tracked glare: layered soft circles that add like
   light (screen blend) at the pointer position. */
.t-tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle 95px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.48), rgba(255,255,255,0.06) 52%, rgba(255,255,255,0) 84%),
    radial-gradient(circle 200px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.22), rgba(255,255,255,0.04) 58%, rgba(255,255,255,0) 78%),
    radial-gradient(circle 360px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.10), rgba(255,255,255,0) 88%);
  transition: opacity var(--tilt-glare-fade) var(--tilt-glare-ease);
}
.t-tilt.is-hover .t-tilt-glare { opacity: var(--tilt-glare-opacity); }

@media (prefers-reduced-motion: reduce) {
  .t-tilt-card { transform: none !important; transition: none !important; }
}

.kun-coming-next.kun-creation-preview {
  --tilt-glare-opacity: .13;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 100px auto;
  padding: clamp(28px, 4.5vw, 60px);
  border: 1px solid #c9ff4c26;
  border-radius: 40px;
  background: radial-gradient(ellipse at 85% 40%, #31452035, transparent 56%), linear-gradient(135deg, #0d1208, #040603 70%);
  isolation: isolate;
}
.kun-next-copy { position: relative; z-index: 2; min-width: 0; }
.kun-creation-preview .kun-next-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: #c9ff4c; font-size: 11px; font-weight: 750; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.kun-next-eyebrow > span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #c9ff4c; box-shadow: 0 0 14px #c9ff4c80; }
.kun-creation-preview h2 { margin: 0 0 24px; color: #f2f3ed; font-size: clamp(42px, 5vw, 68px); line-height: .99; letter-spacing: -.055em; font-weight: 780; }
.kun-creation-preview h2 em { color: #c9ff4c; font-style: normal; }
.kun-creation-preview .kun-next-description { max-width: 390px; margin: 0 0 30px; color: #a1a598; font-size: 17px; line-height: 1.65; }
.kun-creation-preview .kun-next-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; margin: 0; min-height: 58px; padding: 8px 9px 8px 24px; border: 1px solid #d1ff77; background: #c9ff4c; color: #101506; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 0 0 #c9ff4c00; transition: transform 280ms cubic-bezier(.22,1,.36,1), box-shadow 280ms cubic-bezier(.22,1,.36,1); }
.kun-next-arrow { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #152105; color: #d1ff77; font-size: 25px; font-weight: 400; transition: transform 280ms cubic-bezier(.22,1,.36,1); }
.kun-creation-preview .kun-next-cta:hover { transform: translateY(-2px); box-shadow: 0 0 32px #c9ff4c25; }
.kun-next-cta:hover .kun-next-arrow { transform: rotate(45deg); }
.kun-creation-preview .kun-next-cta:active { transform: translateY(0) scale(.98); }
.kun-creation-preview .kun-next-cta:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.kun-next-roadmap { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 32px 0 10px; }
.kun-next-roadmap li { display: flex; align-items: center; gap: 6px; color: #9da493; font-size: 11px; white-space: nowrap; }
.kun-next-roadmap li:first-child { color: #e0ebd2; }
.kun-next-roadmap span { color: #c9ff4c; font-size: 9px; font-variant-numeric: tabular-nums; }
.kun-creation-preview .kun-next-sharing { margin: 0; color: #707b65; font-size: 11px; line-height: 1.5; }
.kun-next-figure { position: relative; min-width: 0; margin: 0 -12px 0 0; }
.kun-next-art.t-tilt { touch-action: pan-y; }
.kun-next-orbits.t-tilt-card { width: 100%; aspect-ratio: 1; overflow: visible; border-radius: 50%; background: transparent; }
.kun-next-figure figcaption { max-width: 100%; margin: 10px 0 0; color: #67725d; text-align: center; font-size: 10px; line-height: 1.5; }
.kun-next-orb { position: absolute; border-radius: 50%; background: #13201a; box-shadow: 0 20px 30px -15px #000b, inset 0 0 0 1px #ffffff50; isolation: isolate; }
.kun-next-orb img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 35%; }
.kun-next-orb::before { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 34% 25%, #fff0 38%, #09201335 68%, #00150caa 93%), linear-gradient(135deg, #eaffff20, #fff0 45%, #a5d7b828); box-shadow: inset 3px 3px 7px #eaffff70, inset -8px -10px 14px #020c08a6, 0 0 0 1px #d0eed12e; }
.kun-next-orb::after { content: ""; position: absolute; z-index: 2; left: 17%; top: 9%; width: 44%; height: 20%; border-radius: 50%; background: linear-gradient(180deg, #fff8, #fff0); transform: rotate(-35deg); filter: blur(2px); opacity: .65; pointer-events: none; }
.kun-next-orb--hero { width: 58%; height: 58%; left: 34%; top: 24%; z-index: 4; --float-y: -7px; --float-duration: 8s; }
.kun-next-orb--hero img { object-position: 52% 30%; }
.kun-next-orb--portrait { width: 29%; height: 29%; left: 5%; top: 31%; z-index: 3; --float-y: 6px; --float-duration: 7s; }
.kun-next-orb--fantasy { width: 22%; height: 22%; left: 27%; top: 1%; z-index: 2; --float-y: -5px; --float-duration: 9s; }
.kun-next-orb--scene { width: 25%; height: 25%; left: 11%; top: 65%; z-index: 5; --float-y: -5px; --float-duration: 8s; }
.kun-next-orb--scene img { object-position: 35% 50%; }
.kun-next-orb--moment { width: 12%; height: 12%; left: 64%; top: 5%; z-index: 2; --float-y: 7px; --float-duration: 7s; }
.kun-next-orb--plus { display: grid; place-items: center; width: 24%; height: 24%; left: 49%; top: 83%; z-index: 5; background: radial-gradient(circle at 30% 20%, #efffc8, #aacb69 54%, #2b4812); color: #142207; --float-y: -4px; --float-duration: 9s; }
.kun-next-orb--plus span { position: relative; z-index: 3; font: 300 clamp(44px, 6vw, 78px)/1 Arial,sans-serif; }
.kun-next-orb--plus::after { opacity: .35; }
.kun-next-art .t-tilt-glare { z-index: 6; border-radius: 50%; }
.kun-creation-preview.is-in-view .kun-next-orb { animation: kun-orb-float var(--float-duration) ease-in-out infinite alternate; }
@keyframes kun-orb-float { from { transform: translateY(0); } to { transform: translateY(var(--float-y)); } }
@media (max-width: 900px) {
  .kun-coming-next.kun-creation-preview { gap: 12px; padding: 36px; }
  .kun-creation-preview h2 { font-size: 48px; }
  .kun-creation-preview .kun-next-description { font-size: 15px; }
  .kun-next-roadmap { gap: 10px; }
}
@media (max-width: 700px) {
  .kun-coming-next.kun-creation-preview { grid-template-columns: 1fr; gap: 24px; margin: 64px auto; padding: 28px 24px; border-radius: 30px; }
  .kun-next-figure { grid-row: 1; width: min(100%, 340px); justify-self: center; margin: -4px 0 0; }
  .kun-next-orbits.t-tilt-card { aspect-ratio: 1.08; }
  .kun-next-orb--plus { top: 78%; }
  .kun-next-figure figcaption { position: relative; margin-top: 20px; font-size: 9px; }
  .kun-creation-preview h2 { font-size: clamp(38px, 10.5vw, 54px); }
  .kun-creation-preview .kun-next-eyebrow { margin-bottom: 20px; font-size: 10px; }
  .kun-creation-preview .kun-next-description { margin-bottom: 24px; }
  .kun-creation-preview .kun-next-cta { min-height: 56px; font-size: 14px; }
  .kun-next-roadmap { margin-top: 26px; gap: 16px; }
  .kun-next-figure .t-tilt-card { will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .kun-creation-preview .kun-next-orb { animation: none !important; }
  .kun-next-cta, .kun-next-arrow { transition: none !important; }
  .kun-creation-preview .kun-next-cta:hover, .kun-creation-preview .kun-next-cta:active { transform: none; }
}
/* Keep the artwork caption below the lowest floating sphere. */
.kun-next-figure figcaption { margin-top: 48px; }
@media (max-width: 700px) {
  .kun-next-figure { width: min(100%, 320px); }
  .kun-next-orbits.t-tilt-card { aspect-ratio: 1; }
  .kun-next-figure figcaption { margin-top: 28px; }
}
