/* ============================================================
   Exploration 2 â€” cinematic layer: hero, intro, stories,
   project cards, story links & library.
   Loads AFTER exploration.css so overrides win.
   ============================================================ */

/* --- buttons usable as links/controls --- */
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 12px 24px; font-family: inherit; font-size: 15px; font-weight: 800; text-decoration: none; border-radius: 999px; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button-primary { color: #fff; background: linear-gradient(115deg, var(--purple), var(--purple-deep)); border: none; box-shadow: 0 10px 24px rgba(122, 90, 194, .35); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(122, 90, 194, .45); }
.button-secondary { color: var(--ink); background: rgba(255, 255, 255, .8); border: 1.5px solid var(--line); }
.button-secondary:hover { background: #fff; transform: translateY(-2px); }
.project-action, .story-read { font-family: inherit; cursor: pointer; text-decoration: none; }
.project-action { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 10px 18px; font-size: 14px; font-weight: 800; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; background: rgba(245, 239, 255, .6); transition: background 180ms ease, transform 180ms ease; }
.project-card:hover .project-action, .project-action:hover { background: #fff; transform: translateX(2px); }
.project-body h3 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.6px; line-height: 1.15; }

/* --- cinematic hero --- */
.exp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.exp-hero h1 { margin: 10px 0 14px; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -1.6px; }
.exp-hero h1 .accent, .exp-heading h2 .accent { background: linear-gradient(100deg, #9b7de0 8%, #7651b7 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.exp-hero-sub { margin: 0 0 24px; max-width: 540px; color: var(--muted); font-size: clamp(15.5px, 1.7vw, 19px); font-weight: 600; line-height: 1.65; }
.exp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.exp-hero-stats { display: flex; gap: clamp(18px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.exp-hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.exp-hero-stats strong { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--purple-deep); line-height: 1; }
.exp-hero-stats span { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.exp-hero-art { position: relative; margin: 0; }
.exp-hero-art img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 28px; border: 3px solid #fff; box-shadow: 0 24px 60px var(--shadow-strong); object-fit: cover; aspect-ratio: 16 / 9; }
.exp-hero-glow { position: absolute; inset: -8% -6%; z-index: 0; background: radial-gradient(closest-side, rgba(155, 125, 224, .4), transparent 70%), radial-gradient(closest-side at 70% 80%, rgba(248, 181, 90, .35), transparent 70%); filter: blur(18px); }
.exp-hero-art figcaption { position: relative; z-index: 1; margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
@keyframes exp-hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.exp-hero-art img { animation: exp-hero-float 7s ease-in-out infinite; }

/* --- intro band with solo characters --- */
.exp-intro { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 40px); margin-bottom: clamp(28px, 4vw, 44px); }
.exp-intro .exp-heading { text-align: center; }
/* The friends wrapper dissolves (display:contents) so one friend flanks each
   side of the heading; .exp-heading's existing margin:0 auto keeps the text
   dead-centre while the images sit left and right of it. */
.exp-intro-friends { display: contents; }
.exp-intro-friends img:first-child { order: -1; }
.exp-intro-friends img:last-child { order: 1; }
.exp-intro-friends img { width: clamp(74px, 9vw, 120px); height: auto; filter: drop-shadow(0 10px 18px var(--shadow-soft)); }
.exp-intro-friends img:first-child { animation: exp-float 5s ease-in-out infinite; }
.exp-intro-friends img:last-child { animation: exp-float 5s ease-in-out infinite 1.2s; }

/* --- friend button: solo ↔ gadget image swap on hover/click --- */
.exp-intro-friend { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; background: none; cursor: pointer; }

.exp-intro-friend .character-image-solo,
.exp-intro-friend .character-image-gadget { position: absolute; top: 0; left: 0; width: clamp(74px, 9vw, 120px); height: auto; transition: opacity 0.3s ease, visibility 0.3s ease; }

.exp-intro-friend .character-image-solo { opacity: 1; visibility: visible; }
.exp-intro-friend .character-image-gadget { opacity: 0; visibility: hidden; }

.exp-intro-friend.is-gadget-visible .character-image-solo,
.exp-intro-friend:hover .character-image-solo { opacity: 0; visibility: hidden; }
.exp-intro-friend.is-gadget-visible .character-image-gadget,
.exp-intro-friend:hover .character-image-gadget { opacity: 1; visibility: visible; }

/* --- photo treatment for real artwork: full-bleed cover --- */
.project-photo {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.project-visual {
  aspect-ratio: 16 / 9;
  padding: 0;
}
.project-visual .project-image {
  max-width: 76%;
  max-height: 88%;
  object-fit: contain;
}
.project-visual .project-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  filter: none;
}

/* --- Stories section --- */
.exp-stories { margin-top: clamp(56px, 8vw, 96px); }
.exp-heading h2 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -1.2px; }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 14px 34px var(--shadow-soft); transition: transform 220ms ease, box-shadow 220ms ease; }
.story-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px var(--shadow-strong); }
.story-lantern { border-top: 6px solid #e79a4b; }
.story-dream { border-top: 6px solid var(--purple); }
.story-ghost { border-top: 6px solid #6fb3e0; }
.story-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.story-lantern .story-art { background: radial-gradient(circle at 30% 25%, #ffe9c9, #ffd2a1 55%, #f6b477); }
.story-dream .story-art { background: radial-gradient(circle at 30% 25%, #efe6ff, #d9c8ff 55%, #bda4f2); }
.story-ghost .story-art { background: radial-gradient(circle at 30% 25%, #e8f5ff, #c9e6fb 55%, #a5d0ef); }
.story-art > img:first-child { width: clamp(90px, 12vw, 150px); height: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(40, 27, 61, .25)); transition: transform 260ms ease; }
.story-card:hover .story-art > img:first-child { transform: translateY(-6px) scale(1.05); }
.story-sparkle { position: absolute; top: 16px; right: 18px; animation: exp-twinkle 2.6s ease-in-out infinite; }

/* --- story card artwork: full-bleed cover --- */
.story-art > img.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.story-card:hover .story-art > img.story-photo {
  transform: scale(1.06);
}
.story-sparkle { z-index: 2; }
.story-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.story-no { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--purple-deep); background: var(--paper-mist); padding: 6px 12px; border-radius: 999px; width: fit-content; }
.story-body h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.5px; line-height: 1.18; }
.story-body p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.65; }
.story-read { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 10px 18px; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(115deg, var(--purple), var(--purple-deep)); border: none; border-radius: 999px; box-shadow: 0 8px 20px rgba(122, 90, 194, .3); transition: transform 180ms ease, box-shadow 180ms ease; }
.story-read:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(122, 90, 194, .42); }
/* --- View All Stories action --- */
.stories-all { display: flex; justify-content: center; margin-top: 28px; }

/* --- scroll reveal for new blocks --- */
@supports (animation-timeline: view()) { .story-card, .exp-hero-copy, .exp-hero-art { animation: exp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; } }

/* --- responsive --- */
@media (max-width: 960px) {
  .exp-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .exp-hero-sub { margin-inline: auto; }
  .exp-hero-actions, .exp-hero-stats { justify-content: center; }
  .exp-hero-art { order: -1; max-width: 640px; margin-inline: auto; width: 100%; }
  .stories-grid { grid-template-columns: minmax(0, 560px); justify-content: center; }
}
@media (max-width: 560px) {
  .exp-intro { flex-direction: column; }
  .exp-intro-friends { display: flex; order: 2; gap: 10px; }
  .exp-hero-stats { gap: 16px; }
  .exp-hero-actions .button { width: 100%; justify-content: center; }
  .project-body h3 { font-size: 21px; }
  .project-body > p { font-size: 14.5px; }
}

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .exploration-page * { animation: none !important; transition: none !important; }
  .project-card:hover, .story-card:hover, .exp-hero-art img, .exp-intro-friend img, .story-sparkle { transform: none !important; translate: none !important; }
  .story-read:hover, .button:hover, .project-action:hover { transform: none !important; }
}

/* ===== Shared ORBIT-X closing footer (orbit-footer) =====
   Ported verbatim from css/about.css so Exploration.html renders this footer
   without loading about.css. Keep in sync with css/about.css. */

/* Magical closing footer */
.orbit-footer {
  --footer-ink: var(--about-text, #39364F);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 24px 18px;
  color: var(--footer-ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(180deg, #FAF8FC 0%, #F0EDF6 55%, #F4F2F8 100%);
  border-top: 1px solid rgba(147, 131, 195, 0.32);
}
.orbit-footer::before,
.orbit-footer::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.orbit-footer::before {
  top: 18%;
  left: -12%;
  width: 54%;
  height: 36%;
  border-radius: 50%;
  background: rgba(255, 220, 232, 0.42);
  filter: blur(72px);
  animation: footer-mist-drift 18s ease-in-out infinite alternate;
}

.orbit-footer::after {
  right: -14%;
  bottom: 4%;
  width: 56%;
  height: 36%;
  border-radius: 50%;
  background: rgba(207, 226, 255, 0.62);
  filter: blur(82px);
  animation: footer-mist-drift 22s ease-in-out -8s infinite alternate-reverse;
}

.orbit-footer__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  margin-inline: auto;
}

.orbit-footer__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orbit-footer__decor span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.orbit-footer__decor img {
  display: block;
  width: 100%;
  height: auto;
}

.orbit-footer__bat {
  width: clamp(38px, 5vw, 62px);
  opacity: 0.5;
}

.orbit-footer__bat--one {
  top: 13%;
  left: 5%;
  animation: footer-bat-glide 15s ease-in-out infinite;
}

.orbit-footer__bat--two {
  top: 42%;
  right: 7%;
  width: clamp(30px, 4vw, 48px);
  animation: footer-bat-glide 19s ease-in-out -7s infinite reverse;
}

.orbit-footer__ghost {
  width: clamp(42px, 5vw, 60px);
  opacity: 0.66;
  filter: drop-shadow(0 0 12px rgba(168, 138, 230, 0.48));
  animation: footer-ghost-float 8s ease-in-out infinite;
}

.orbit-footer__ghost--one {
  top: 38%;
  left: 2.5%;
}

.orbit-footer__ghost--two {
  top: 19%;
  right: 3%;
  width: clamp(36px, 4.4vw, 52px);
  animation-delay: -4s;
  animation-direction: alternate-reverse;
}

.orbit-footer__pumpkin {
  bottom: 7%;
  width: clamp(74px, 10vw, 120px);
  filter: drop-shadow(0 0 12px rgba(255, 176, 75, 0.35));
  animation: footer-pumpkin-glow 5.5s ease-in-out infinite;
}

.orbit-footer__pumpkin--left {
  left: max(12px, calc((100% - 1320px) / 2));
}

.orbit-footer__pumpkin--right {
  right: max(12px, calc((100% - 1320px) / 2));
}

.orbit-footer__spark {
  width: clamp(20px, 3vw, 34px);
  opacity: 0.7;
  animation: footer-spark-drift 6s ease-in-out infinite;
}

.orbit-footer__spark--one {
  top: 12%;
  left: 14%;
  animation-delay: -2s;
}

.orbit-footer__spark--two {
  top: 34%;
  right: 11%;
  animation-delay: -5s;
}

.orbit-footer__cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 42px 24px 34px;
  border-radius: 30px;
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(147, 131, 195, 0.28);
  box-shadow: 0 14px 40px rgba(89, 77, 129, 0.08);
}

.orbit-footer__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: #8164B4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.orbit-footer__cta h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: #39364F;
}

.orbit-footer__cta p {
  margin: 0 0 22px;
  color: #625A75;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
  max-width: 620px;
  margin-inline: auto;
}

.orbit-footer__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(115deg, #7651b7, #5b3aa8);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(118, 81, 183, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.orbit-footer__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(118, 81, 183, 0.45);
  background: linear-gradient(115deg, #8365c6, #6b48c0);
}

.orbit-footer__cta-button:focus-visible {
  outline: 3px solid rgba(101, 72, 163, 0.58);
  outline-offset: 4px;
}
.orbit-footer__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
  align-items: start;
}

.orbit-footer__brand {
  min-width: 0;
}

.orbit-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.orbit-footer__logo-img {
  display: block;
  width: clamp(30px, 4vw, 42px);
  height: auto;
}

.orbit-footer__tagline {
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #39364F;
  letter-spacing: -0.4px;
}

.orbit-footer__description {
  margin: 0 0 18px;
  color: #625A75;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.75;
}

.orbit-footer__friends {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.orbit-footer__friends img {
  width: clamp(30px, 6vw, 72px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.orbit-footer__nav h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  color: #39364F;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.orbit-footer__nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  color: #625A75;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, translate 180ms ease;
}

.orbit-footer__nav a:hover {
  color: #6548A3;
  translate: 4px 0;
}

.orbit-footer__nav a:focus-visible,
.orbit-footer__logo:focus-visible,
.orbit-footer__cta-button:focus-visible {
  outline: 3px solid rgba(101, 72, 163, 0.58);
  outline-offset: 4px;
}

.orbit-footer__connect p {
  max-width: 190px;
  margin-top: 2px;
  color: #625A75;
  font-size: 13.5px;
  line-height: 1.6;
}
.orbit-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid rgba(147, 131, 195, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.orbit-footer__bottom p {
  margin: 0;
  color: #756C87;
  font-size: 12.5px;
}

.orbit-footer__bottom-star {
  color: #A88AE6;
  font-size: 14px;
}

.orbit-footer.has-reveal .footer-reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 20px;
}

.orbit-footer .footer-reveal {
  transition: opacity 700ms ease, translate 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.orbit-footer .orbit-footer__main > :nth-child(2) {
  transition-delay: 90ms;
}

.orbit-footer .orbit-footer__main > :nth-child(3) {
  transition-delay: 170ms;
}

.orbit-footer .orbit-footer__main > :nth-child(4) {
  transition-delay: 250ms;
}

@keyframes footer-mist-drift {
  0% { translate: 0 0; opacity: 0.7; }
  100% { translate: 40px 30px; opacity: 0.95; }
}

@keyframes footer-bat-glide {
  0%, 100% { translate: 0 0; rotate: -5deg; }
  35% { translate: 18px -10px; rotate: 4deg; }
  70% { translate: -8px 8px; rotate: -2deg; }
}

@keyframes footer-ghost-float {
  0%, 100% { translate: 0 0; rotate: -4deg; opacity: 0.56; }
  50% { translate: 9px -15px; rotate: 5deg; opacity: 0.82; }
}

@keyframes footer-pumpkin-glow {
  0%, 100% { translate: 0 0; filter: drop-shadow(0 0 9px rgba(255, 176, 75, 0.28)); }
  50% { translate: 0 -7px; filter: drop-shadow(0 0 17px rgba(255, 186, 86, 0.58)); }
}

@keyframes footer-spark-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; opacity: 0.48; scale: 0.86; }
  50% { translate: 5px -11px; rotate: 14deg; opacity: 0.95; scale: 1.12; }
}

@media (max-width: 900px) {
  .orbit-footer__main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }

  .orbit-footer__brand {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .orbit-footer {
    padding: 54px 18px 16px;
  }

  .orbit-footer__cta {
    margin-bottom: 40px;
    padding: 30px 18px;
    border-radius: 24px;
  }

  .orbit-footer__cta h2 {
    font-size: clamp(25px, 7vw, 33px);
    letter-spacing: -0.6px;
  }

  .orbit-footer__cta p {
    margin-block: 12px 18px;
    font-size: 13px;
  }

  .orbit-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
    padding-inline: 0;
  }

  .orbit-footer__brand,
  .orbit-footer__connect {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .orbit-footer__brand {
    max-width: 390px;
    margin-inline: auto;
    text-align: center;
  }

  .orbit-footer__logo {
    justify-content: center;
  }

  .orbit-footer__friends {
    justify-content: center;
  }

  .orbit-footer__nav {
    gap: 4px;
    padding-top: 0;
  }

  .orbit-footer__nav h3 {
    font-size: 12px;
  }

  .orbit-footer__nav a {
    min-height: 36px;
    font-size: 12px;
  }

  .orbit-footer__connect p {
    max-width: 260px;
  }

  .orbit-footer__bat {
    opacity: 0.34;
  }

  .orbit-footer__ghost {
    width: 34px;
  }

  .orbit-footer__ghost--one {
    top: 42%;
    left: 1%;
  }

  .orbit-footer__decor .orbit-footer__ghost--two {
    display: none;
  }

  .orbit-footer__pumpkin {
    bottom: 2%;
    width: 58px;
    opacity: 0.76;
  }

  .orbit-footer__spark--one {
    left: 4%;
  }

  .orbit-footer__spark--two {
    right: 4%;
  }

  .orbit-footer__bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding-inline: 0;
    text-align: center;
  }

  .orbit-footer__bottom p {
    font-size: 9px;
  }
}

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

  .orbit-footer .footer-reveal,
  .orbit-footer.has-reveal .footer-reveal:not(.is-visible) {
    opacity: 1;
    translate: none;
  }
}