/* Continuous 2D composition and simple carousel controls. */
body {
  background-color: #eae5ff;
  background-image: linear-gradient(#f7efff70,#f7efff70),url('../assets/fantasy/sky-world.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero, .intro, .gallery-section, .experience, .team-section, .project-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero { overflow: visible; }
.hero::before { background: linear-gradient(90deg,transparent 3%,#faf3ffbc 16%,#faf3ff9c 42%,transparent 72%); }
.hero-inner {
  max-width: 1440px;
  min-height: 680px;
  padding: 140px 6% 80px 14%;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.12fr);
  gap: 44px;
}
.hero-copy { padding: 0; min-width: 0; }
.hero h1 { font-size: clamp(44px,4.15vw,60px); line-height: 1.08; letter-spacing: -2.7px; text-wrap: initial; margin-bottom: 26px; }
.hero-copy > p { font-size: 14px; line-height: 1.8; max-width: 415px; margin-bottom: 26px; }
.hero-actions { gap: 13px; flex-wrap: wrap; }
.hero-visual { margin: 0; padding: 0; min-width: 0; }
.cover-art { margin: 0; width: 100%; overflow: hidden; border: 5px solid #fff; border-radius: 54px 95px 54px 85px / 48px 58px 48px 58px; background: #fff; box-shadow: 0 8px 25px #8b64c82b; }
.cover-art img { width: 100%; height: auto; display: block; aspect-ratio: 1.79; object-fit: contain; }
.hero-bottom { display: none; }
.section { padding-top: 75px; padding-bottom: 75px; }
.intro, .experience, .project-section { padding-inline: max(7%,calc((100% - 1140px)/2)); }
.intro .section-heading { align-items: center; }
.section-heading > p { max-width: 310px; font-size: 13px; line-height: 1.8; }
.world-grid { gap: 27px; }
.world-card {
  position: relative;
  padding: 30px;
  isolation: isolate;
  border: 2px solid #fff;
  border-radius: 30px;
  background: #fff7e8f2;
  box-shadow: 0 6px 16px #8e6ec721;
  overflow: hidden;
}
.theater-world { background: #eee6fff2; }
.world-card::before { content: ''; position: absolute; z-index: -1; width: 210px; height: 210px; border-radius: 50%; background: #f4cf7933; right: -80px; bottom: -105px; }
.theater-world::before { background: #bba0e837; }
.world-card > :not(.world-cover) { margin-left: 0; margin-right: 0; }
.world-card .world-illustration { position: absolute; width: 165px; height: 185px; object-fit: contain; right: 12px; top: 120px; margin: 0; pointer-events: none; z-index: -1; }
.world-card-top { margin-top: 0; gap: 13px; }
.world-card-top > span:nth-child(2) { font-size: 8px; letter-spacing: 1.2px; }
.world-card h3 { max-width: calc(100% - 125px); min-height: 100px; font-size: 29px; line-height: 1.25; margin: 25px 0 12px; letter-spacing: -.9px; }
.world-card p { max-width: calc(100% - 135px); font-size: 12px; line-height: 1.85; min-height: 110px; margin-bottom: 0; }
.world-card .chips { margin-top: 23px; margin-bottom: 21px; gap: 7px; }
.world-card .chips span { border-width: 1px; background: #fff9; box-shadow: none; padding: 6px 10px; }
.world-card .world-link { min-height: 44px; border-color: #dfb552; background: #fff9; padding: 11px 15px; box-shadow: none; border-radius: 13px; }
.theater-world .world-link { border-color: #b798dc; }
.world-icon { box-shadow: none; border: 0; background: #ffdea1; }
.theater-world .world-icon { background: #bd95e9; }
.gallery-section { overflow: visible; }
.gallery-section .section { max-width: 1280px; }
.showcase-carousel { margin-top: 10px; }
.showcase-carousel .carousel-stage { position: relative; border-radius: 24px; border: 4px solid white; overflow: hidden; background: #dceaff; box-shadow: 0 5px 16px #7b5dae28; }
.showcase-carousel .carousel-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1.79; object-fit: contain; }
.carousel-enlarge { display: none; }
.carousel-image-button { cursor: zoom-in; }
.showcase-carousel .carousel-control-prev, .showcase-carousel .carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  min-width: 42px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  box-shadow: none;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .8;
  z-index: 2;
}
.showcase-carousel .carousel-control-prev { left: 0; }
.showcase-carousel .carousel-control-next { right: 0; }
.carousel-control-prev::after, .carousel-control-next::after { content: ''; width: 17px; height: 17px; border-top: 3px solid white; border-right: 3px solid white; filter: drop-shadow(0 1px 3px #0009); }
.carousel-control-prev::after { transform: rotate(-135deg); }
.carousel-control-next::after { transform: rotate(45deg); }
.showcase-carousel .carousel-control-prev:hover, .showcase-carousel .carousel-control-next:hover { background: #18214b14; opacity: 1; }
.carousel-indicators { position: absolute; bottom: 14px; left: 14%; right: 14%; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 5px; }
.carousel-indicator { padding: 10px 0; width: 25px; max-width: 7%; flex-shrink: 1; height: 24px; background: transparent; border: 0; }
.carousel-indicator::before { content: ''; display: block; height: 3px; width: 100%; background: #fff8; box-shadow: 0 1px 3px #0003; }
.carousel-indicator[aria-pressed=true]::before { background: white; }
.carousel-indicator:hover::before { background: #fff; }
.showcase-carousel .carousel-footer { display: flex; flex-wrap: nowrap; align-items: center; gap: 25px; margin-top: 14px; padding: 17px 21px; border: 1px solid #fff; border-radius: 16px; box-shadow: none; background: #ffffffe3; }
.carousel-copy { flex: 1; min-width: 0; }
.showcase-carousel .carousel-title { font-size: 23px; }
.carousel-description { font-size: 12px; }
.carousel-pagination { display: none; }
.carousel-playback { flex-shrink: 0; }
.autoplay-toggle { background: transparent; border: 1px solid #cdb6e5; border-radius: 20px; font-size: 10px; color: #6e4a91; padding: 10px 14px; box-shadow: none; }
.gallery-hint { font-size: 10px; padding-inline: 3px; }
.experience-list { background: #fffffff0; box-shadow: 0 5px 16px #8a65bd1a; }
.team-section .section { padding-top: 70px; padding-bottom: 70px; }
.team-card { backdrop-filter: none; }
.adventure-finale, .learning-outcomes { box-shadow: 0 5px 15px #8758b51a; }
.save-section { border: 0; border-radius: 0; background: #f5effbd9; }
.site-footer { background: #f6f1fbe8; border: 0; box-shadow: none; }
#world-dialog { max-width: 790px; padding: 30px; background: #fffcff; border-radius: 26px; }
#world-dialog .dialog-header { margin-bottom: 16px; }
#world-dialog .eyebrow { font-size: 8px; padding: 7px 0; border: 0; box-shadow: none; background: transparent; }
.world-dialog-content { display: grid; grid-template-columns: 145px 1fr; gap: 25px; align-items: start; }
#world-dialog-art { width: 100%; height: auto; }
#world-title { font-size: 30px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.9px; }
#world-intro { font-size: 13px; margin-bottom: 20px; }
#world-lessons { padding: 0; margin: 0; list-style: none; }
#world-lessons li { padding: 12px 0; border-top: 1px solid #e9dff3; }
#world-lessons strong { display: block; font-size: 13px; color: #66448c; margin-bottom: 5px; }
#world-lessons li > span { display: block; font-size: 12px; line-height: 1.75; color: #675c78; }
.world-age { font-size: 10px; color: #8d7c9e; margin: 24px 0 18px; text-align: center; }
#world-dialog > .button { display: flex; width: fit-content; margin: auto; }
@media(min-width:1500px) { .hero-inner { min-height: 720px; } }
@media(max-width:1100px) {
 .hero-inner { padding: 135px 5% 70px 11%; gap: 30px; }
 .hero h1 { font-size: 48px; }
 .hero-copy > p { font-size: 13px; }
 .world-card { padding: 26px; }
 .world-card h3 { font-size: 26px; max-width: calc(100% - 100px); }
 .world-card p { max-width: calc(100% - 110px); }
 .world-card .world-illustration { width: 140px; right: 1px; top: 130px; }
 .world-card-top > span:nth-child(2) { font-size: 7px; }
}
@media(max-width:800px) {
 body { background-image: linear-gradient(140deg,#eff1ff,#e7dcfc 45%,#e5ecff); background-attachment: scroll; }
 .header { background: #ffffff95; border: 0; }
 .hero-inner { grid-template-columns: 1fr; padding: 40px 35px 55px; max-width: 660px; gap: 35px; min-height: 0; }
 .hero-copy { padding: 0; max-width: 520px; }
 .hero h1 { font-size: 56px; }
 .hero h1 br:nth-of-type(2) { display: block; }
 .hero-copy > p { max-width: 490px; }
 .cover-art { border-radius: 45px 75px 45px 75px / 40px 48px 40px 48px; }
 .intro, .experience, .project-section { padding-inline: 30px; }
 .world-grid { grid-template-columns: 1fr; }
 .world-card { padding: 30px; }
 .world-card h3 { max-width: calc(100% - 150px); min-height: 0; font-size: 31px; }
 .world-card p { max-width: calc(100% - 160px); min-height: 0; }
 .world-card .world-illustration { width: 185px; height: 205px; right: 12px; top: 95px; }
 .world-card-top > span:nth-child(2) { font-size: 8px; }
 .showcase-carousel .carousel-footer { gap: 15px; }
 .showcase-carousel .carousel-title { font-size: 21px; }
 .carousel-playback { align-self: flex-end; }
}
@media(max-width:560px) {
 .hero-inner { padding: 30px 23px 45px; gap: 28px; }
 .hero h1 { font-size: clamp(40px,11.6vw,49px); line-height: 1.1; letter-spacing: -2px; }
 .hero-copy > p { font-size: 13px; line-height: 1.85; }
 .hero .button, .hero .link-button { font-size: 10px; }
 .cover-art { border-width: 3px; border-radius: 33px 58px 33px 58px / 30px 38px 30px 38px; }
 .section { padding-top: 50px; padding-bottom: 50px; }
 .intro, .experience, .project-section { padding-inline: 23px; }
 .section-heading > p { font-size: 12px; }
 .world-card { padding: 25px 23px; border-radius: 27px; }
 .world-card h3 { font-size: 27px; max-width: 100%; margin-top: 22px; padding-right: 18px; }
 .world-card p { font-size: 12px; max-width: 100%; padding-right: 0; }
 .world-card .world-illustration { top: auto; right: 7px; bottom: 12px; width: 100px; height: 115px; }
 .world-card .chips { padding-right: 60px; gap: 6px; margin-top: 20px; }
 .world-card .chips span { font-size: 8px; padding: 5px 8px; }
 .world-card .world-link { font-size: 10px; gap: 15px; padding: 10px 12px; }
 .world-card-top > span:nth-child(2) { font-size: 6px; letter-spacing: 1px; }
 .world-icon { width: 35px; height: 35px; font-size: 25px; }
 .showcase-carousel .carousel-stage { border-width: 3px; border-radius: 17px; }
 .carousel-control-prev::after, .carousel-control-next::after { width: 12px; height: 12px; border-width: 2px; }
 .carousel-indicators { bottom: 4px; gap: 4px; }
 .carousel-indicator { width: 15px; }
 .carousel-indicator::before { height: 2px; }
 .showcase-carousel .carousel-footer { display: block; padding: 16px; }
 .showcase-carousel .carousel-title { font-size: 20px; }
 .carousel-description { font-size: 11px; }
 .carousel-playback { margin-top: 13px; }
 .autoplay-toggle { font-size: 9px; padding: 8px 12px; }
 #world-dialog { padding: 23px; }
 .world-dialog-content { grid-template-columns: 1fr; gap: 15px; }
 #world-dialog-art { width: 90px; margin: 0 auto; }
 #world-title { font-size: 26px; }
 #world-intro { font-size: 12px; }
 #world-lessons strong { font-size: 12px; }
 #world-lessons li > span { font-size: 11px; }
 #world-dialog .eyebrow { font-size: 6px; letter-spacing: 1px; }
}
@media(prefers-reduced-motion:reduce) { .carousel-slide.is-entering { animation: none; } }
/* Cards keep their full natural height: no internal scrolling or clipped text. */
.world-card { display: block; overflow: clip; }
.world-card h3 { min-height: 74px; }
.world-card p { flex: none; min-height: 90px; }
body {
  background-color: #eae5ff;
  background-image: linear-gradient(180deg, #f8f0ff35 0%, #eee6ff55 55%, #eae5ff 100%), url('../assets/fantasy/sky-world.jpg');
  background-size: 100% 1200px, 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: scroll;
}
@media(max-width:800px) {
  .world-card h3, .world-card p { min-height: 0; }
  body { background-image: linear-gradient(155deg,#f0eaff,#e5e9ff 60%,#eae5ff); background-size: 100% 100%; }
}
/* Fade the scenery before the bitmap ends; avoid visible section edges. */
body {
  background-image: linear-gradient(180deg,#f8f0ff26 0%,#eee6ff55 45%,#eae5ff 90%,#eae5ff 100%),url('../assets/fantasy/sky-world.jpg');
  background-size: 100% 850px,100% auto;
}
.hero::before { mask-image: linear-gradient(#000 0%,#000 65%,transparent 100%); }
@media(max-width:800px) {
 body { background-image: linear-gradient(155deg,#f0eaff,#e5e9ff 60%,#eae5ff); background-size:100% 100%; }
}
/* Compact gallery and a balanced, attention-catching introduction. */
.gallery-section .section { max-width: 1080px; padding-top: 55px; padding-bottom: 55px; }
.gallery-section .section-heading { margin-bottom: 25px; }
.showcase-carousel { max-width: 780px; margin: 0 auto; }
.showcase-carousel .carousel-stage { border-radius: 20px; }
.showcase-carousel .carousel-footer { padding: 14px 18px; margin-top: 12px; }
.showcase-carousel .carousel-title { font-size: 21px; margin-bottom: 6px; }
.carousel-description { font-size: 11px; }
.gallery-hint { max-width: 780px; margin: 13px auto 0; }
.hero-inner { min-height: 620px; padding: 120px 4% 55px 12%; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr); gap: 36px; }
.hero h1 { font-size: clamp(44px,3.9vw,55px); line-height: 1.07; margin-bottom: 22px; }
.hero-copy > p { font-size: 13px; margin-bottom: 23px; }
.hero-actions { display: flex; gap: 13px; align-items: stretch; }
.hero-actions .button, .hero-actions .link-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 20px; min-height: 51px; border-radius: 18px; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.hero-actions .primary { box-shadow: inset 0 1px 3px #ffffffa8,0 5px 17px #8e4be94d; }
.hero-actions .link-button { background: #fffdf8de; box-shadow: 0 4px 12px #8c65bf21; border-color: white; }
.hero-actions .button > span,.hero-actions .link-button > span { font-size: 19px; line-height: 1; }
.hero { overflow: clip; }
.cover-art { animation: cover-spin-2d 1.6s cubic-bezier(.2,.65,.25,1) both; transform-origin: center; }
@keyframes cover-spin-2d { from { transform: rotate(-360deg) scale(.65); opacity: .25; } to { transform: rotate(0deg) scale(1); opacity: 1; } }
@media(min-width:1500px) { .hero-inner { min-height: 660px; } }
@media(max-width:1100px) { .hero-inner { padding: 120px 4% 50px 9%; gap: 25px; } .hero h1 { font-size: 47px; } .hero-actions .button,.hero-actions .link-button { font-size: 10px; padding: 14px 16px; gap: 13px; min-height: 47px; } }
@media(max-width:800px) { .hero-inner { grid-template-columns:1fr; padding: 35px 35px 45px; max-width: 680px; gap:30px; min-height:0; } .hero h1 { font-size:55px; } .hero-actions .button,.hero-actions .link-button { font-size:12px; padding:15px 20px; } .gallery-section .section { padding-top:45px; padding-bottom:45px; } .showcase-carousel { max-width:680px; } }
@media(max-width:560px) { .hero-inner { padding:30px 23px 40px; gap:28px; } .hero h1 { font-size:clamp(40px,11.5vw,49px); } .hero-actions { display:grid; grid-template-columns:1.15fr 1fr; gap:10px; } .hero-actions .button,.hero-actions .link-button { width:100%; padding:14px 12px; min-height:49px; font-size:10px; gap:10px; border-radius:15px; } .hero-actions .button > span,.hero-actions .link-button > span { font-size:16px; } .gallery-section .section-heading > p { font-size:11px; } .showcase-carousel .carousel-footer { padding:13px 14px; } .showcase-carousel .carousel-title { font-size:19px; } }
@media(prefers-reduced-motion:reduce) { .cover-art { animation:none; } }
/* Section scenery and useful discovery actions. */
.section-scene { position: relative; isolation: isolate; background: transparent; }
.section-scene::before {
  content: '';
  position: absolute;
  inset: -35px 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#f6efff24,#f6efff24),var(--scene-image);
  background-size: cover;
  background-position: var(--scene-position,center);
  background-repeat: no-repeat;
  mask-image: linear-gradient(180deg,transparent 0%,#000 12%,#000 85%,transparent 100%);
}
.intro { --scene-image: url('../assets/fantasy/creative-world.jpg'); --scene-position: center 55%; }
.gallery-section { --scene-image: url('../assets/fantasy/sky-world.jpg'); --scene-position: center 52%; }
.experience { --scene-image: url('../assets/fantasy/creative-world.jpg'); --scene-position: center bottom; }
.team-section { --scene-image: url('../assets/fantasy/team-world.jpg'); --scene-position: center bottom; }
.project-section { --scene-image: url('../assets/fantasy/creative-world.jpg'); --scene-position: center 55%; }
.save-section { --scene-image: url('../assets/fantasy/sky-world.jpg'); --scene-position: center bottom; }
.section-scene .section-heading > p, .experience-heading > p { color: #333154; text-shadow: 0 1px 6px white,0 0 14px white; }
.section-scene h2 { text-shadow: 0 1px 8px #fff9; }
.world-card { background: #fff7e8f5; }
.theater-world { background: #eee6fff5; }
.info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 25px; }
.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 21px;
  min-height: 43px;
  padding: 12px 16px;
  border: 1px solid #c3a0e4;
  border-radius: 13px;
  background: #f7effff2;
  color: #5b2b8a;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 3px 10px #80629a12;
  transition: background .2s,transform .2s;
}
.info-button:hover { background: #e7d4ff; transform: translateY(-2px); }
.info-button > span { font-size: 17px; }
.info-button.light { color: #514669; background: #ffffffdb; border-color: #dfcce9; }
.gallery-discover { max-width: 780px; margin: 27px auto 0; padding: 21px; background: #ffffffdb; border: 1px solid white; border-radius: 17px; }
.gallery-discover > span { display: block; font-size: 8px; letter-spacing: 1.4px; color: #8f72a8; margin-bottom: 15px; }
.gallery-discover > div { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-discover .info-button { flex: 1; white-space: nowrap; }
.team-section .info-button { font-size: 10px; }
.learning-grid article { display: flex; flex-direction: column; }
.learning-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 16px; padding: 10px 0 0; border-top: 1px solid #bea3d840; background: transparent; color: #714c91; font-size: 10px; text-align: left; }
.learning-more:hover { color: #9e31db; }
.learning-grid p { flex: 1; }
.text-info { display: inline-flex; align-items: center; gap: 12px; margin-top: 17px; padding: 5px 0; background: transparent; border-bottom: 1px solid #bb9ed0; color: #6e4389; font-size: 11px; }
.keepsake-copy { background: #fffcffed; padding: 29px; border: 1px solid white; border-radius: 21px; }
.keepsake-art img { background: white; }
.site-footer { position: relative; isolation: isolate; background: #f8f3ffe8; }
.site-footer::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(#f9f5ffcf,#f5efffb3),url('../assets/fantasy/team-world.jpg') center bottom/cover; mask-image: linear-gradient(transparent,#000 20%); pointer-events: none; }
#information-dialog { max-width: 940px; padding: 28px; background: #fffafd; }
#information-dialog .dialog-header { margin-bottom: 20px; }
#information-label { margin: 0; font-size: 8px; background: transparent; border: 0; box-shadow: none; padding: 0; }
.information-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 27px; align-items: start; }
#information-image { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 13px; border: 1px solid #e4d5ee; background: #eee3fa; }
#information-title { font-size: 29px; letter-spacing: -.9px; line-height: 1.2; margin: 0 0 16px; }
#information-intro { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
#information-list { list-style: none; margin: 0; padding: 0; }
#information-list li { padding: 12px 0; border-top: 1px solid #eadff1; }
#information-list strong { display: block; font-size: 12px; color: #775493; margin-bottom: 5px; }
#information-list li > span { display: block; font-size: 12px; color: #6c6178; line-height: 1.8; }
#information-dialog > .button { margin: 23px 0 0 auto; display: flex; width: fit-content; font-size: 11px; }
@media(max-width:1100px) { .gallery-discover .info-button { font-size:10px; gap:12px; padding-inline:12px; } }
@media(max-width:800px) {
  .section-scene::before { inset:-20px 0; background-size:auto 100%; }
  .team-section::before { opacity:.7; }
  .project-section::before { opacity:.65; }
  .information-layout { grid-template-columns:1fr; gap:20px; }
  #information-image { max-width:460px; margin:auto; }
  .keepsake-copy { padding:24px; }
}
@media(max-width:560px) {
  .section-scene::before { opacity:.58; background-size:auto 100%; }
  .gallery-section::before { opacity:.45; }
  .intro::before { background-position:60% center; }
  .team-section::before { background-position:center bottom; opacity:.55; }
  .save-section { padding-top:40px; padding-bottom:40px; }
  .info-actions { gap:10px; margin-top:21px; }
  .info-button { font-size:10px; min-height:42px; padding:11px 13px; gap:15px; }
  .experience-heading .info-actions { flex-direction:column; align-items:stretch; }
  .gallery-discover { padding:17px 15px; margin-top:23px; }
  .gallery-discover > span { font-size:6px; letter-spacing:1.1px; line-height:1.8; }
  .gallery-discover > div { flex-direction:column; gap:8px; }
  .gallery-discover .info-button { width:100%; font-size:10px; }
  .keepsake-copy { padding:23px 20px; }
  .keepsake-copy h3 { font-size:29px; }
  .keepsake-copy .text-info { font-size:10px; text-align:left; line-height:1.7; }
  #information-dialog { padding:22px; }
  #information-label { font-size:6px; letter-spacing:.9px; }
  #information-title { font-size:26px; }
  #information-intro { font-size:12px; }
  #information-list li > span { font-size:11px; }
}
.section-scene::before { display: block; }
.experience-heading { padding: 26px; background: #fffcffe8; border: 1px solid white; border-radius: 21px; }
.experience-heading h2 { font-size: 40px; }
@media(max-width:560px) { .experience-heading { padding: 23px 20px; } .experience-heading h2 { font-size: 31px; } }
/* Edge-to-edge coverflow: one featured scene with angled neighbours. */
.gallery-section .section { max-width: none; padding-left: 0; padding-right: 0; }
.gallery-section .section-heading { max-width: 1140px; margin: 0 auto 22px; padding-inline: 28px; }
.showcase-carousel { max-width: none; width: 100%; margin: 0; }
.showcase-carousel .carousel-stage {
  width: 100%;
  height: clamp(310px,36vw,520px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1400px;
  overflow: clip;
}
.showcase-carousel .carousel-slide, .coverflow-side {
  position: absolute;
  top: 47%;
  left: 50%;
  width: min(56vw,800px);
  margin: 0;
  border: 3px solid #fff;
  border-radius: 17px;
  background: #e6dcf4;
  overflow: hidden;
  box-shadow: 0 12px 25px #43246e38;
  transition: transform .65s ease,opacity .65s ease;
}
.showcase-carousel .carousel-slide { transform: translate(-50%,-50%); z-index: 4; }
.showcase-carousel .carousel-slide.is-entering { animation: coverflow-focus .6s ease both; }
@keyframes coverflow-focus { from { opacity: .65; transform: translate(-50%,-50%) scale(.97); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.coverflow-side { display: block; padding: 0; cursor: pointer; transform: translate(-50%,-50%) translateX(var(--side-x)) rotateY(var(--side-angle)) scale(var(--side-scale)); z-index: var(--side-depth); opacity: var(--side-opacity); }
.coverflow-side img { display: block; width: 100%; height: auto; aspect-ratio: 1.79; object-fit: contain; pointer-events: none; }
.coverflow-side:hover { opacity: 1; }
.coverflow-side-left-1 { --side-x: -33vw; --side-angle: 40deg; --side-scale: .86; --side-depth: 3; --side-opacity: .91; }
.coverflow-side-right-1 { --side-x: 33vw; --side-angle: -40deg; --side-scale: .86; --side-depth: 3; --side-opacity: .91; }
.coverflow-side-left-2 { --side-x: -56vw; --side-angle: 48deg; --side-scale: .72; --side-depth: 2; --side-opacity: .64; }
.coverflow-side-right-2 { --side-x: 56vw; --side-angle: -48deg; --side-scale: .72; --side-depth: 2; --side-opacity: .64; }
.showcase-carousel .carousel-control-prev, .showcase-carousel .carousel-control-next { top: 47%; bottom: auto; transform: translateY(-50%); width: 45px; height: 55px; min-width: 0; background: #38215a8c; backdrop-filter: blur(5px); border: 1px solid #ffffff80; border-radius: 14px; z-index: 6; opacity: 1; }
.showcase-carousel .carousel-control-prev { left: 18px; }
.showcase-carousel .carousel-control-next { right: 18px; }
.showcase-carousel .carousel-control-prev:hover, .showcase-carousel .carousel-control-next:hover { background: #593586db; }
.carousel-indicators { bottom: 8px; left: 20%; right: 20%; }
.carousel-indicator::before { background: #a88cc2; box-shadow: none; }
.carousel-indicator[aria-pressed=true]::before { background: #7440a2; }
.showcase-carousel .carousel-footer { max-width: 850px; margin: 3px auto 0; width: calc(100% - 48px); }
.gallery-hint, .gallery-discover { max-width: 850px; width: calc(100% - 48px); }
@media(min-width:1600px) { .coverflow-side-left-1 { --side-x:-29vw; } .coverflow-side-right-1 { --side-x:29vw; } .coverflow-side-left-2 { --side-x:-48vw; } .coverflow-side-right-2 { --side-x:48vw; } }
@media(max-width:800px) {
  .showcase-carousel .carousel-stage { height: clamp(245px,44vw,355px); }
  .showcase-carousel .carousel-slide,.coverflow-side { width: 64vw; border-width: 2px; border-radius: 13px; }
  .coverflow-side-left-1 { --side-x:-41vw; --side-angle:35deg; --side-scale:.83; }
  .coverflow-side-right-1 { --side-x:41vw; --side-angle:-35deg; --side-scale:.83; }
  .showcase-carousel .carousel-control-prev,.showcase-carousel .carousel-control-next { width:35px; height:45px; border-radius:11px; }
  .showcase-carousel .carousel-control-prev { left:10px; }
  .showcase-carousel .carousel-control-next { right:10px; }
}
@media(max-width:560px) {
  .gallery-section .section-heading { padding-inline:23px; margin-bottom:20px; }
  .showcase-carousel .carousel-stage { height: clamp(220px,58vw,300px); perspective:850px; }
  .showcase-carousel .carousel-slide,.coverflow-side { width: 75vw; border-radius:12px; }
  .coverflow-side-left-1 { --side-x:-49vw; --side-angle:38deg; --side-scale:.83; }
  .coverflow-side-right-1 { --side-x:49vw; --side-angle:-38deg; --side-scale:.83; }
  .coverflow-side-left-2,.coverflow-side-right-2 { visibility:hidden; }
  .showcase-carousel .carousel-control-prev,.showcase-carousel .carousel-control-next { width:29px; height:38px; border-radius:9px; }
  .showcase-carousel .carousel-control-prev { left:5px; }
  .showcase-carousel .carousel-control-next { right:5px; }
  .carousel-indicators { left:14%;right:14%;bottom:6px; }
  .showcase-carousel .carousel-footer,.gallery-hint,.gallery-discover { width:calc(100% - 40px); }
}
@media(prefers-reduced-motion:reduce) { .coverflow-side,.showcase-carousel .carousel-slide { transition:none; } .showcase-carousel .carousel-slide.is-entering { animation:none; } }
/* Keep the caption close to the coverflow, with no indicator strip. */
.showcase-carousel .carousel-stage { height: clamp(300px,34vw,485px); }
.showcase-carousel .carousel-slide,.coverflow-side { top:50%; }
.showcase-carousel .carousel-control-prev,.showcase-carousel .carousel-control-next { top:50%; }
.showcase-carousel .carousel-footer { margin-top:8px; }
.gallery-hint { margin-top:11px; }
.gallery-discover { margin-top:20px; }
@media(max-width:800px) { .showcase-carousel .carousel-stage { height:clamp(225px,42vw,340px); } }
@media(max-width:560px) { .showcase-carousel .carousel-stage { height:clamp(180px,50vw,275px); } .showcase-carousel .carousel-footer { margin-top:10px; } .gallery-discover { margin-top:18px; } }
/* Mobile scenery keeps the illustrated edges visible instead of cropping the empty centre. */
@media(max-width:800px) {
  body { background-color:#e9e1fc; background-image:linear-gradient(155deg,#e5eaff,#eedbff 50%,#e1e7ff); background-size:100% 100%; }
  .hero {
    background-image:linear-gradient(#faf3ff38,#f6edff55),url('../assets/fantasy/sky-world.jpg'),url('../assets/fantasy/sky-world.jpg');
    background-size:100% 100%,auto 480px,auto 440px;
    background-position:center,left top,right bottom;
    background-repeat:no-repeat;
  }
  .hero::before { background:linear-gradient(90deg,#fcf6ff85,#faf4ff77 70%,#f7efff22); mask-image:linear-gradient(#000,#000 75%,transparent); }
  .section-scene::before {
    inset:-20px 0;
    background-image:linear-gradient(#f6efff25,#f6efff25),var(--scene-image),var(--scene-image);
    background-size:100% 100%,auto 440px,auto 440px;
    background-position:center,left top,right bottom;
    background-repeat:no-repeat;
    opacity:1;
    mask-image:linear-gradient(transparent,#000 7%,#000 93%,transparent);
  }
  .team-section::before,.project-section::before,.gallery-section::before { opacity:1; }
  .section-scene .section-heading > p,.hero-copy > p { text-shadow:0 1px 5px white,0 0 12px #fff; }
  .section-scene h2,.hero h1 { text-shadow:0 1px 10px #ffffffb3; }
}
@media(max-width:560px) {
  .hero { background-size:100% 100%,auto 410px,auto 330px; }
  .section-scene::before { background-size:100% 100%,auto 360px,auto 360px; }
  .intro::before,.team-section::before { background-position:center,left top,right bottom; }
  .site-footer::before { background-position:center,right bottom; background-size:100% 100%,auto 330px; }
}

#equipo .team-art {
  height: auto;
  min-height: 0;
  padding: 18px 10px 14px;
}

#equipo .avatar-photo {
  display: block;
  width: min(100%, clamp(112px, 11vw, 152px));
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 30%;
}

#equipo .member-two .avatar-photo {
  object-position: 47% 20%;
}

@media (max-width: 560px) {
  #equipo .team-card {
    grid-template-columns: clamp(112px, 35vw, 148px) minmax(0, 1fr);
  }
}
