/* Per-section 3D silk & shape backgrounds */

.at-has-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.at-has-scene > .container,
.at-has-scene > .at-legacy-inner {
  position: relative;
  z-index: 3;
}

.at-has-scene.at-section-cream::before,
.at-has-scene.at-section-espresso::before {
  opacity: 0.18;
}

.at-has-scene.at-section-cream::after,
.at-has-scene.at-section-espresso::after {
  opacity: 0.14;
}

.at-section-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.at-scene-silk {
  position: absolute;
  inset: -22%;
  opacity: 0.62;
  background:
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.045) 12px,
      rgba(255, 255, 255, 0) 24px,
      rgba(255, 255, 255, 0.02) 36px,
      rgba(255, 255, 255, 0) 48px
    ),
    repeating-linear-gradient(
      -62deg,
      rgba(166, 124, 38, 0) 0,
      rgba(166, 124, 38, 0.055) 16px,
      rgba(166, 124, 38, 0) 32px
    ),
    repeating-linear-gradient(
      28deg,
      rgba(0, 44, 38, 0) 0,
      rgba(0, 44, 38, 0.025) 40px,
      rgba(0, 44, 38, 0) 80px
    );
  transform: rotate(-2deg) scale(1.1);
  mask-image: radial-gradient(ellipse 90% 74% at 50% 42%, #000 18%, transparent 82%);
  animation: atSilkDrift 22s ease-in-out infinite alternate;
}

@keyframes atSilkDrift {
  from { transform: rotate(-2deg) scale(1.1) translate3d(0, 0, 0); }
  to { transform: rotate(-1deg) scale(1.12) translate3d(-1.5%, 1%, 0); }
}

.at-scene-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

.at-scene-shape--a {
  animation: atShapeFloatA 16s ease-in-out infinite alternate;
}

.at-scene-shape--b {
  animation: atShapeFloatB 19s ease-in-out infinite alternate;
}

.at-scene-shape--c {
  animation: atShapeFloatC 14s ease-in-out infinite alternate;
}

@keyframes atShapeFloatA {
  from { translate: 0 0; }
  to { translate: 0 -12px; }
}

@keyframes atShapeFloatB {
  from { translate: 0 0; }
  to { translate: 8px 10px; }
}

@keyframes atShapeFloatC {
  from { translate: 0 0; }
  to { translate: -6px 8px; }
}

.at-scene-shape--a,
.at-scene-shape--b,
.at-scene-shape--c {
  filter: blur(0.2px);
}

/* --- About: flowing ribbon + orb --- */
.at-section-scene--silk-wave .at-scene-shape--a {
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), rgba(166, 124, 38, 0.18) 42%, rgba(166, 124, 38, 0) 68%);
  box-shadow:
    inset -18px -22px 40px rgba(0, 44, 38, 0.08),
    0 28px 60px rgba(166, 124, 38, 0.12);
  transform: perspective(800px) rotateX(58deg) rotateZ(-18deg);
}

.at-section-scene--silk-wave .at-scene-shape--b {
  bottom: 8%;
  left: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(166, 124, 38, 0.22);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(166, 124, 38, 0.08) 50%, transparent 70%);
  box-shadow: 0 20px 48px rgba(0, 44, 38, 0.06);
  transform: perspective(700px) rotateX(64deg) rotateZ(24deg);
}

.at-section-scene--silk-wave .at-scene-shape--c {
  top: 42%;
  left: 62%;
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, rgba(166, 124, 38, 0.16), rgba(255, 255, 255, 0.08));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  border-radius: 0;
  opacity: 0.7;
}

/* --- Brands: lattice orb --- */
.at-section-scene--lattice-orb .at-scene-silk {
  opacity: 0.42;
  background:
    linear-gradient(rgba(166, 124, 38, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 124, 38, 0.05) 1px, transparent 1px),
    repeating-linear-gradient(45deg, rgba(243, 247, 245, 0.02) 0 2px, transparent 2px 24px);
  background-size: 48px 48px, 48px 48px, auto;
}

.at-section-scene--lattice-orb .at-scene-shape--a {
  top: 10%;
  left: -70px;
  width: 240px;
  height: 240px;
  background:
    radial-gradient(circle at 30% 25%, rgba(196, 150, 58, 0.35), rgba(166, 124, 38, 0.12) 45%, rgba(0, 26, 24, 0) 72%);
  box-shadow:
    inset 0 -24px 36px rgba(0, 0, 0, 0.22),
    0 24px 50px rgba(0, 0, 0, 0.28);
}

.at-section-scene--lattice-orb .at-scene-shape--b {
  bottom: -50px;
  right: 8%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(166, 124, 38, 0.14);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(243, 247, 245, 0.04);
  transform: perspective(900px) rotateX(72deg);
}

.at-section-scene--lattice-orb .at-scene-shape--c {
  top: 18%;
  right: 12%;
  width: 90px;
  height: 90px;
  background: linear-gradient(160deg, rgba(196, 150, 58, 0.5), rgba(139, 104, 25, 0.2));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* --- Clients: satin grid --- */
.at-section-scene--satin-grid .at-scene-shape--a {
  top: -40px;
  left: 10%;
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.5), rgba(166, 124, 38, 0.12) 55%, transparent 75%);
  transform: perspective(600px) rotateX(55deg);
}

.at-section-scene--satin-grid .at-scene-shape--b {
  bottom: 12%;
  right: -30px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(166, 124, 38, 0.2);
  background:
    radial-gradient(circle at 50% 50%, rgba(166, 124, 38, 0.08), transparent 62%);
}

.at-section-scene--satin-grid .at-scene-shape--c {
  top: 55%;
  left: 4%;
  width: 64px;
  height: 64px;
  background: rgba(166, 124, 38, 0.12);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border-radius: 0;
}

/* --- Awards: laurel glow --- */
.at-section-scene--laurel-glow .at-scene-silk {
  opacity: 0.48;
}

.at-section-scene--laurel-glow .at-scene-shape--a {
  top: 50%;
  left: 50%;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  transform: translate(-50%, -48%);
  border: 1px solid rgba(166, 124, 38, 0.1);
  box-shadow:
    0 0 0 40px rgba(166, 124, 38, 0.025),
    0 0 0 80px rgba(166, 124, 38, 0.015),
    inset 0 0 80px rgba(0, 26, 24, 0.35);
  background: radial-gradient(circle, rgba(166, 124, 38, 0.06), transparent 68%);
}

.at-section-scene--laurel-glow .at-scene-shape--b {
  top: 8%;
  right: 6%;
  width: 140px;
  height: 140px;
  background:
    radial-gradient(circle at 35% 30%, rgba(196, 150, 58, 0.45), rgba(166, 124, 38, 0.1) 50%, transparent 72%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.at-section-scene--laurel-glow .at-scene-shape--c {
  bottom: 10%;
  left: 8%;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(196, 150, 58, 0.35);
  background: linear-gradient(145deg, rgba(196, 150, 58, 0.22), rgba(0, 26, 24, 0.1));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border-radius: 0;
}

/* --- Legacy: halo rings --- */
.at-section-scene--halo-rings .at-scene-shape--a {
  top: 50%;
  left: 50%;
  width: min(760px, 95vw);
  height: min(760px, 95vw);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(166, 124, 38, 0.14);
  box-shadow:
    0 0 0 55px rgba(166, 124, 38, 0.02),
    0 0 0 110px rgba(166, 124, 38, 0.012);
}

.at-section-scene--halo-rings .at-scene-shape--b {
  top: 12%;
  left: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 40% 35%, rgba(196, 150, 58, 0.28), transparent 68%);
}

.at-section-scene--halo-rings .at-scene-shape--c {
  bottom: 8%;
  right: 5%;
  width: 120px;
  height: 120px;
  transform: perspective(700px) rotateX(68deg);
  border: 1px solid rgba(166, 124, 38, 0.18);
  background: radial-gradient(circle at 50% 40%, rgba(166, 124, 38, 0.1), transparent 65%);
}

/* --- Service: diamond facets --- */
.at-section-scene--facet-diamond .at-scene-shape--a {
  top: -30px;
  right: 14%;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(166, 124, 38, 0.14));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 44, 38, 0.08);
}

.at-section-scene--facet-diamond .at-scene-shape--b {
  bottom: 6%;
  left: 6%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(166, 124, 38, 0.16);
  transform: perspective(750px) rotateX(62deg) rotateZ(12deg);
  background: radial-gradient(circle at 50% 40%, rgba(166, 124, 38, 0.07), transparent 70%);
}

.at-section-scene--facet-diamond .at-scene-shape--c {
  top: 40%;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(166, 124, 38, 0.1);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  border-radius: 0;
}

/* --- Team: depth frames --- */
.at-section-scene--frame-depth .at-scene-shape--a {
  top: 6%;
  left: 4%;
  width: 140px;
  height: 180px;
  border: 1px solid rgba(166, 124, 38, 0.24);
  border-radius: 0;
  background: linear-gradient(160deg, rgba(243, 247, 245, 0.06), rgba(0, 26, 24, 0.15));
  box-shadow: 16px 16px 0 rgba(166, 124, 38, 0.06);
  transform: perspective(800px) rotateY(18deg);
}

.at-section-scene--frame-depth .at-scene-shape--b {
  bottom: 10%;
  right: 5%;
  width: 200px;
  height: 200px;
  background:
    radial-gradient(circle at 35% 30%, rgba(196, 150, 58, 0.32), rgba(166, 124, 38, 0.08) 52%, transparent 72%);
}

.at-section-scene--frame-depth .at-scene-shape--c {
  top: 45%;
  right: 18%;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(166, 124, 38, 0.2);
  transform: perspective(700px) rotateX(70deg);
}

/* --- Banner / breadcrumb: gold arch --- */
.at-section-scene--arch-gold .at-scene-shape--a {
  top: -120px;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  border: 1px solid rgba(166, 124, 38, 0.16);
  box-shadow: inset 0 0 60px rgba(166, 124, 38, 0.06);
}

.at-section-scene--arch-gold .at-scene-shape--b {
  bottom: -80px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 40% 35%, rgba(196, 150, 58, 0.25), transparent 68%);
}

/* --- Contact: flow lines --- */
.at-section-scene--flow-lines .at-scene-shape--a {
  top: 15%;
  right: -40px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(166, 124, 38, 0.14);
  transform: perspective(800px) rotateX(65deg);
}

.at-section-scene--flow-lines .at-scene-shape--b {
  bottom: 8%;
  left: 5%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.45), rgba(166, 124, 38, 0.1) 55%, transparent 75%);
}

/* --- Footer: weave --- */
.at-section-scene--footer-weave .at-scene-silk {
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 100%);
}

.at-section-scene--footer-weave .at-scene-shape--a {
  top: -60px;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translateX(-50%);
  border: 1px solid rgba(166, 124, 38, 0.1);
}

.at-section-scene--footer-weave .at-scene-shape--b {
  bottom: 20%;
  right: 8%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 40% 35%, rgba(196, 150, 58, 0.2), transparent 68%);
}

/* --- Values / listing / invite / detail variants --- */
.at-section-scene--pillars .at-scene-shape--a {
  top: 10%;
  left: 8%;
  width: 60px;
  height: 200px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(166, 124, 38, 0.14), rgba(166, 124, 38, 0.02));
  box-shadow: 8px 0 24px rgba(0, 44, 38, 0.04);
}

.at-section-scene--pillars .at-scene-shape--b {
  top: 10%;
  right: 10%;
  width: 60px;
  height: 200px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(166, 124, 38, 0.12), rgba(166, 124, 38, 0.02));
}

.at-section-scene--spotlight .at-scene-shape--a {
  top: -100px;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(166, 124, 38, 0.14), transparent 62%);
}

.at-section-scene--spotlight .at-scene-shape--b {
  bottom: -40px;
  right: 10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 40% 35%, rgba(196, 150, 58, 0.28), transparent 68%);
}

.at-section-scene--listing-grid .at-scene-shape--a {
  top: 5%;
  right: 5%;
  width: 180px;
  height: 180px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(166, 124, 38, 0.1));
}

.at-section-scene--detail-silk .at-scene-shape--a {
  top: 20%;
  left: -50px;
  width: 220px;
  height: 220px;
  transform: perspective(700px) rotateX(60deg);
  border: 1px solid rgba(166, 124, 38, 0.16);
}

@media (max-width: 991px) {
  .at-scene-shape--a,
  .at-scene-shape--b,
  .at-scene-shape--c {
    transform: none !important;
    opacity: 0.65;
  }

  .at-section-scene--laurel-glow .at-scene-shape--a,
  .at-section-scene--halo-rings .at-scene-shape--a {
    width: min(520px, 120vw);
    height: min(520px, 120vw);
    transform: translate(-50%, -48%) !important;
  }
}

@media (max-width: 575px) {
  .at-scene-shape--c {
    display: none;
  }

  .at-scene-silk {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-scene-silk,
  .at-scene-shape {
    animation: none !important;
  }
}

/* Hide diamond decorative shapes from section scenes */
.at-scene-shape--c,
.at-section-scene--silk-wave .at-scene-shape--c,
.at-section-scene--lattice-orb .at-scene-shape--c,
.at-section-scene--satin-grid .at-scene-shape--c,
.at-section-scene--facet-diamond .at-scene-shape--a,
.at-section-scene--facet-diamond .at-scene-shape--c,
.at-section-scene--listing-grid .at-scene-shape--a {
  display: none !important;
}
