/* Product display and its recessed base share one perspective. */
.hero__grid .stage, .showcase { perspective: 1100px; }
.hero__grid .stage { width: min(100%, 38rem); justify-self: center; padding: 1rem .5rem 2rem; }
.stage .app, .showcase .panel {
  transform: rotateY(-10deg) rotateX(5deg) rotateZ(-1deg);
  box-shadow: 1px 2px #407e70, 2px 4px #316759, 3px 6px #275749,
              4px 8px #18493d, 0 24px 32px -16px #092c29a6;
}
.hero .hero__orb {
  width: min(47vw, 36rem);
  background: radial-gradient(circle at 31% 26%, #c3f6cf, #4ec59d 27%, #118678 57%, #164936 85%);
}
.stage::before, .showcase::before {
  content: ""; pointer-events: none; position: absolute; inset: 17% 0 0;
  background: repeating-linear-gradient(0deg, transparent 0 25px, #58af942b 26px 27px),
              repeating-linear-gradient(90deg, transparent 0 25px, #58af942b 26px 27px);
  transform: rotateX(66deg) translateY(40%); border-radius: 30%;
}
main section { --sculpture: url("../img/spatial-layers.webp"); }
main section:nth-of-type(3n), main #work, main #plans { --sculpture: url("../img/spatial-steps.webp"); }
main section:nth-of-type(3n + 1), main #services, main #contact { --sculpture: url("../img/spatial-cluster.webp"); }
.head__title::before, #handover-title::before {
  content: ""; display: block; width: clamp(3rem, 4.8vw, 4.8rem); aspect-ratio: 1;
  background: var(--sculpture) center / contain no-repeat; margin-bottom: .55rem;
  filter: drop-shadow(0 5px 3px #0a45301f);
}
.head--center .head__title::before { margin-inline: auto; }
main :is(.svc, .card, .plan, .proof-panel, .acc, .panel--bleed) {
  box-shadow: inset 0 1px #ffffff45, 0 3px #31635475, 0 6px #214b4140, 0 15px 25px -18px #092c2990;
}
.svc__photo, .work__thumb { transform: perspective(700px) rotateY(-7deg) rotateZ(1deg); box-shadow: 3px 5px 0 #12393059; }
.footer__sub { box-shadow: inset 0 1px #ffffff22, 0 4px 0 #051f1b; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  main :is(.svc, .plan, .card).is-revealed:hover { transform: perspective(1000px) translateY(-4px) rotateX(2deg) rotateY(-2deg); }
  .stage:hover .app, .showcase:hover .panel { transform: rotateY(-3deg) rotateX(2deg); }
}
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .stage .app, .showcase .panel, .svc__photo, .work__thumb { transform: none; }
}

/* A small collection of studio objects anchors the major chapters. */
.studio-object { pointer-events:none; position:relative; aspect-ratio:62/41; }
.studio-object img,.studio-object canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.studio-object canvas,.studio-object.rendered img { visibility:hidden; }
.studio-object.rendered canvas { visibility:visible; }
.gallery-intro {
  position:relative; isolation:isolate; display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); align-items:center;
  margin-bottom:clamp(1.5rem,4vw,3rem); overflow:hidden;
  border-radius:clamp(1.3rem,3vw,2.8rem);
  border:1px solid #749d8b68;
  background:radial-gradient(ellipse at 82% 62%, #c4dccc, transparent 45%),linear-gradient(115deg,#fcfaf3,#ecece1);
}
.gallery-dark .gallery-intro {
  background:radial-gradient(ellipse at 82% 62%,#294739,transparent 48%),linear-gradient(115deg,#131c20,#172521);
}
.gallery-intro > .head { grid-area:1/1; display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:1rem; padding:clamp(1.25rem,3.5vw,3.5rem); margin:0; }
.gallery-intro > .studio-object { grid-area:1/2; width:100%; max-width:29rem; justify-self:center; }
.gallery-intro .head__title::before { display:none; }
.gallery-intro .head__title { margin:0; }
.gallery-intro .studio-object::before,.contact-object::before {
  content:"";position:absolute;inset:69% 14% 6%;border-radius:50%;
  background:radial-gradient(ellipse, #12392c47,transparent 65%);transform:scaleY(.65);
}
.hero-object { position:absolute; top:-4%; right:-4%; width:min(38vw,34rem); z-index:0; }
.hero .hero__orb { opacity:.18; }
.gallery-dark .hero-object {right:0;top:4%;width:min(28vw,27rem);}
.contact-object {width:min(21rem,60vw);margin:auto;}
@media(max-width:700px) {
  .gallery-intro {grid-template-columns:minmax(0,1fr); }
  .gallery-intro > .studio-object {grid-area:1/1;width:min(65%,15rem); }
  .gallery-intro > .head {grid-area:2/1;padding-top:0;}
  .hero-object {width:35vw;top:-1%;right:-6%;opacity:.75;}
  .gallery-dark .hero-object {top:0;right:-9%;}
}
