.hero-orbit {
  animation: hero-float 8s ease-in-out infinite;
  transform-origin: center;
}

.orbit-one {
  animation: orbit-breathe 7s ease-in-out infinite;
}

.orbit-two {
  animation: orbit-breathe 7s ease-in-out -2.4s infinite reverse;
}

.orbit-core {
  animation: core-glow 6s ease-in-out infinite;
}

.project-visual > div {
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project:hover .project-visual > div {
  transform: scale(1.025);
}

.live-samples {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-top: 1.5rem;
}

.live-samples > span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-samples > div {
  display: flex;
  gap: clamp(1.2rem, 3vw, 3rem);
}

.live-samples a {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: inline-flex;
  font-family: var(--serif);
  gap: 0.7rem;
  padding-bottom: 0.35rem;
}

.live-samples a span {
  color: var(--gold);
  transition: transform 200ms ease;
}

.live-samples a:hover span {
  transform: translate(3px, -3px);
}

.motion-lab {
  background: #0b0b09;
  color: var(--white);
  display: grid;
  gap: clamp(4rem, 8vw, 9rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  overflow: hidden;
  position: relative;
}

.motion-lab::before {
  background: radial-gradient(circle, rgba(181, 138, 76, 0.13), transparent 68%);
  content: "";
  height: 70vw;
  left: -34vw;
  pointer-events: none;
  position: absolute;
  top: -30vw;
  width: 70vw;
}

.motion-copy {
  align-self: center;
  position: relative;
  z-index: 2;
}

.motion-copy .section-kicker {
  color: rgba(255, 253, 248, 0.46);
  margin-bottom: 4rem;
}

.motion-copy h2 {
  font-size: clamp(3.5rem, 6vw, 6.5rem);
}

.motion-copy h2 em {
  color: var(--gold-light);
}

.motion-intro {
  color: rgba(255, 253, 248, 0.58);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  margin: 2.3rem 0;
  max-width: 38rem;
}

.motion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.motion-tags span {
  border: 1px solid rgba(255, 253, 248, 0.17);
  color: rgba(255, 253, 248, 0.58);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  padding: 0.7rem 0.9rem;
  text-transform: uppercase;
}

.studio-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  aspect-ratio: 1 / 1.08;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(212, 180, 122, 0.2), transparent 36%),
    linear-gradient(145deg, #171611, #0d0d0a 68%);
  border: 1px solid rgba(212, 180, 122, 0.22);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42), 0 40px 100px rgba(0, 0, 0, 0.35);
  cursor: crosshair;
  max-width: 760px;
  overflow: hidden;
  perspective: 1200px;
  position: relative;
  transition: background 500ms ease;
}

.studio-scene {
  inset: 8% 4% 10%;
  position: absolute;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
  z-index: 2;
}

.studio-light-beam {
  background: linear-gradient(150deg, rgba(244, 209, 140, 0.34), rgba(212, 180, 122, 0.04) 70%, transparent);
  clip-path: polygon(72% 0, 100% 7%, 72% 100%, 0 88%);
  filter: blur(3px);
  height: 70%;
  opacity: 0.75;
  pointer-events: none;
  position: absolute;
  right: 1%;
  top: 9%;
  transition: opacity 420ms ease;
  width: 55%;
  z-index: 1;
}

.studio-monitor {
  animation: monitor-float 7s ease-in-out infinite;
  height: 68%;
  left: 16%;
  position: absolute;
  top: 12%;
  transform: rotateY(-8deg) translateZ(45px);
  transform-style: preserve-3d;
  width: 62%;
  z-index: 5;
}

.monitor-shell {
  background: linear-gradient(145deg, #302e27, #13130f 70%);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  box-shadow: 18px 24px 45px rgba(0, 0, 0, 0.38), inset 0 0 18px rgba(255, 255, 255, 0.04);
  height: 72%;
  left: 0;
  padding: 3.2%;
  position: absolute;
  top: 0;
  width: 100%;
}

.monitor-camera {
  background: #050504;
  border-radius: 50%;
  height: 4px;
  left: calc(50% - 2px);
  position: absolute;
  top: 1.3%;
  width: 4px;
  z-index: 3;
}

.monitor-screen {
  background: #f4f0e7;
  border-radius: 3px;
  box-shadow: 0 0 45px rgba(235, 203, 142, 0.24);
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: filter 480ms ease, box-shadow 480ms ease;
  width: 100%;
}

.screen-browser {
  height: 100%;
  transition: opacity 420ms ease;
}

.screen-toolbar {
  align-items: center;
  background: #191915;
  display: flex;
  gap: 4px;
  height: 12%;
  padding: 0 5%;
}

.screen-toolbar > span {
  background: rgba(212, 180, 122, 0.55);
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.screen-toolbar i {
  color: rgba(255, 253, 248, 0.42);
  font-size: clamp(0.22rem, 0.52vw, 0.42rem);
  font-style: normal;
  letter-spacing: 0.11em;
  margin-left: auto;
  text-transform: uppercase;
}

.screen-page {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(18, 18, 15, 0.05) 50%, transparent 50.2%),
    #eee8dc;
  height: 88%;
  overflow: hidden;
  position: relative;
}

.screen-nav {
  align-items: center;
  display: flex;
  gap: 7%;
  left: 6%;
  position: absolute;
  right: 6%;
  top: 8%;
}

.screen-nav b {
  color: #171713;
  font-family: var(--serif);
  font-size: clamp(0.5rem, 1.2vw, 1.05rem);
  margin-right: auto;
}

.screen-nav span {
  background: rgba(18, 18, 15, 0.32);
  height: 1px;
  width: 10%;
}

.screen-copy {
  color: #171713;
  left: 7%;
  position: absolute;
  top: 30%;
  z-index: 2;
}

.screen-copy small {
  font-size: clamp(0.2rem, 0.45vw, 0.38rem);
  letter-spacing: 0.16em;
}

.screen-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(0.85rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-top: 8%;
}

.screen-copy strong em {
  color: #a57638;
  font-style: italic;
  font-weight: 400;
}

.screen-copy > i {
  background: #171713;
  display: block;
  height: 2px;
  margin-top: 18%;
  width: 45%;
}

.screen-art {
  border: 1px solid rgba(165, 118, 56, 0.42);
  border-radius: 50%;
  height: 62%;
  position: absolute;
  right: -2%;
  top: 24%;
  width: 42%;
}

.screen-art span {
  animation: screen-orbit 8s linear infinite;
  border: 1px solid rgba(165, 118, 56, 0.34);
  border-radius: 50%;
  inset: 12%;
  position: absolute;
}

.screen-art span:nth-child(2) {
  animation-direction: reverse;
  inset: 28%;
}

.screen-art span:nth-child(3) {
  background: radial-gradient(circle at 35% 30%, #e3c58e, #855725);
  border: 0;
  box-shadow: 0 0 18px rgba(181, 138, 76, 0.28);
  inset: 41%;
}

.screen-cursor {
  animation: cursor-design 6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #171713;
  border-top: 8px solid transparent;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.25));
  height: 0;
  left: 47%;
  position: absolute;
  top: 64%;
  transform: rotate(-42deg);
  width: 0;
  z-index: 4;
}

.monitor-neck {
  background: linear-gradient(90deg, #181712, #5a554a 48%, #161510);
  height: 18%;
  left: 46%;
  position: absolute;
  top: 70%;
  transform: translateZ(-8px);
  width: 9%;
}

.monitor-base {
  background: linear-gradient(145deg, #70695b, #24221d 70%);
  border-radius: 50%;
  box-shadow: 12px 10px 20px rgba(0, 0, 0, 0.32);
  height: 7%;
  left: 31%;
  position: absolute;
  top: 85%;
  transform: rotateX(62deg) translateZ(4px);
  width: 40%;
}

.studio-lamp {
  height: 58%;
  position: absolute;
  right: 0;
  top: 14%;
  transform: translateZ(70px);
  width: 27%;
  z-index: 7;
}

.lamp-shade {
  background: linear-gradient(135deg, #d5b87e, #795029 80%);
  clip-path: polygon(20% 0, 82% 0, 100% 100%, 0 100%);
  height: 17%;
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(18deg);
  width: 48%;
}

.lamp-bulb {
  animation: lamp-glow 3.5s ease-in-out infinite;
  background: #ffe1a6;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 222, 158, 0.8);
  height: 8px;
  position: absolute;
  right: 16%;
  top: 17%;
  transition: background 420ms ease, box-shadow 420ms ease;
  width: 8px;
}

.lamp-arm {
  background: #706450;
  height: 3px;
  position: absolute;
  transform-origin: right center;
}

.arm-top {
  right: 22%;
  top: 25%;
  transform: rotate(-58deg);
  width: 52%;
}

.lamp-joint {
  background: #b38a4c;
  border-radius: 50%;
  height: 10px;
  left: 20%;
  position: absolute;
  top: 49%;
  width: 10px;
}

.arm-bottom {
  left: 22%;
  top: 51%;
  transform: rotate(72deg);
  transform-origin: left center;
  width: 43%;
}

.lamp-base {
  background: linear-gradient(145deg, #8d7a59, #2d2921);
  border-radius: 50%;
  bottom: 0;
  height: 9%;
  left: 0;
  position: absolute;
  transform: rotateX(55deg);
  width: 44%;
}

.studio-desk {
  background: linear-gradient(100deg, #6f4b2e, #3d2a1d 62%, #241912);
  bottom: 12%;
  box-shadow: 0 22px 35px rgba(0, 0, 0, 0.38);
  height: 14%;
  left: 3%;
  position: absolute;
  transform: rotateX(62deg) translateZ(-30px);
  transform-style: preserve-3d;
  width: 94%;
  z-index: 3;
}

.desk-front {
  background: linear-gradient(90deg, #2a1c14, #533823, #251912);
  height: 42%;
  left: 0;
  position: absolute;
  top: 92%;
  transform: rotateX(-90deg);
  transform-origin: top;
  width: 100%;
}

.studio-keyboard {
  background:
    repeating-linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.13) 8.4% 9.2%),
    repeating-linear-gradient(0deg, #26241e 0 22%, #4f4a3e 23% 28%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  bottom: 18%;
  height: 7%;
  left: 28%;
  position: absolute;
  transform: rotateX(64deg) translateZ(50px);
  width: 39%;
  z-index: 8;
}

.studio-toggle {
  align-items: center;
  background: rgba(10, 10, 8, 0.75);
  border: 1px solid rgba(212, 180, 122, 0.35);
  bottom: 3.7rem;
  color: rgba(255, 253, 248, 0.7);
  cursor: pointer;
  display: flex;
  font-size: 0.52rem;
  gap: 0.6rem;
  left: 1.5rem;
  letter-spacing: 0.13em;
  min-height: 36px;
  padding: 0.55rem 0.75rem;
  position: absolute;
  text-transform: uppercase;
  z-index: 12;
}

.toggle-dot {
  background: #f1cf8f;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(241, 207, 143, 0.7);
  height: 7px;
  transition: background 350ms ease, box-shadow 350ms ease;
  width: 7px;
}

.studio-stage.light-off {
  background: radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.025), transparent 34%), #0b0b09;
}

.studio-stage.light-off .studio-light-beam {
  opacity: 0;
}

.studio-stage.light-off .monitor-screen {
  box-shadow: none;
  filter: brightness(0.08) saturate(0.2);
}

.studio-stage.light-off .lamp-bulb {
  animation: none;
  background: #403629;
  box-shadow: none;
}

.studio-stage.light-off .toggle-dot {
  background: #665f54;
  box-shadow: none;
}

.studio-stage.light-off .screen-cursor,
.studio-stage.light-off .screen-art span {
  animation-play-state: paused;
}

.model-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  aspect-ratio: 1 / 1.08;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(212, 180, 122, 0.18), transparent 35%),
    linear-gradient(145deg, #171611, #0d0d0a 65%);
  border: 1px solid rgba(212, 180, 122, 0.22);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42), 0 40px 100px rgba(0, 0, 0, 0.35);
  cursor: crosshair;
  max-width: 760px;
  overflow: hidden;
  perspective: 1100px;
  position: relative;
}

.stage-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  inset: 0;
  mask-image: radial-gradient(circle, black 25%, transparent 78%);
  position: absolute;
}

.stage-topline,
.stage-caption {
  color: rgba(255, 253, 248, 0.38);
  display: flex;
  font-size: 0.54rem;
  justify-content: space-between;
  left: 1.5rem;
  letter-spacing: 0.16em;
  position: absolute;
  right: 1.5rem;
  text-transform: uppercase;
  z-index: 5;
}

.stage-topline {
  top: 1.4rem;
}

.stage-caption {
  bottom: 1.4rem;
}

.stage-caption i {
  color: var(--gold-light);
  font-style: normal;
}

.model-cluster {
  height: 72%;
  left: 14%;
  position: absolute;
  top: 14%;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
  width: 72%;
}

.model-ring {
  border: 1px solid rgba(212, 180, 122, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(181, 138, 76, 0.08);
  inset: 7%;
  position: absolute;
  transform-style: preserve-3d;
}

.ring-alpha {
  animation: ring-alpha 10s linear infinite;
}

.ring-beta {
  animation: ring-beta 13s linear infinite reverse;
  inset: 13%;
}

.ring-gamma {
  animation: ring-gamma 15s linear infinite;
  border-color: rgba(255, 253, 248, 0.2);
  inset: 20%;
}

.prism {
  animation: prism-spin 14s linear infinite;
  height: 120px;
  left: calc(50% - 60px);
  position: absolute;
  top: calc(50% - 60px);
  transform-style: preserve-3d;
  width: 120px;
}

.prism-face {
  background: linear-gradient(135deg, rgba(238, 210, 158, 0.88), rgba(121, 79, 35, 0.68));
  border: 1px solid rgba(255, 245, 221, 0.5);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.08);
  height: 120px;
  position: absolute;
  width: 120px;
}

.prism-front { transform: rotateY(0deg) translateZ(60px); }
.prism-back { transform: rotateY(180deg) translateZ(60px); }
.prism-right { transform: rotateY(90deg) translateZ(60px); }
.prism-left { transform: rotateY(-90deg) translateZ(60px); }
.prism-top { transform: rotateX(90deg) translateZ(60px); }
.prism-bottom { transform: rotateX(-90deg) translateZ(60px); }

.model-satellite {
  background: radial-gradient(circle at 32% 28%, #f0d59c, #9e6b31 62%, #3b2613);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(212, 180, 122, 0.2);
  height: 22px;
  position: absolute;
  width: 22px;
}

.satellite-one {
  animation: satellite-one 9s linear infinite;
  left: 13%;
  top: 25%;
}

.satellite-two {
  animation: satellite-two 12s linear infinite reverse;
  bottom: 19%;
  right: 13%;
  transform: scale(0.65);
}

.motion-marquee {
  border-bottom: 1px solid rgba(255, 253, 248, 0.09);
  border-top: 1px solid rgba(255, 253, 248, 0.09);
  bottom: 0;
  color: rgba(255, 253, 248, 0.18);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 2rem);
  grid-column: 1 / -1;
  left: 0;
  overflow: hidden;
  padding: 1rem 0;
  position: absolute;
  right: 0;
  white-space: nowrap;
}

.motion-marquee div {
  animation: marquee 28s linear infinite;
  width: max-content;
}

.motion-enabled .motion-reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 850ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay, 0ms),
    transform 850ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay, 0ms);
}

.motion-enabled .motion-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes monitor-float {
  0%, 100% { transform: rotateY(-8deg) translate3d(0, 0, 45px); }
  50% { transform: rotateY(-6deg) translate3d(0, -7px, 52px); }
}

@keyframes screen-orbit {
  from { transform: rotate(0deg) scaleX(0.82); }
  to { transform: rotate(360deg) scaleX(0.82); }
}

@keyframes cursor-design {
  0%, 12%, 100% { left: 47%; top: 64%; }
  32% { left: 72%; top: 34%; }
  48%, 58% { left: 74%; top: 54%; }
  78% { left: 29%; top: 76%; }
}

@keyframes lamp-glow {
  0%, 100% { opacity: 0.85; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes orbit-breathe {
  0%, 100% { opacity: 0.55; transform: rotate(0deg) scale(1); }
  50% { opacity: 1; transform: rotate(22deg) scale(1.04); }
}

@keyframes core-glow {
  0%, 100% { box-shadow: 0 0 60px rgba(181, 138, 76, 0.16); }
  50% { box-shadow: 0 0 105px rgba(212, 180, 122, 0.3); }
}

@keyframes ring-alpha {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

@keyframes ring-beta {
  from { transform: rotateY(72deg) rotateZ(0deg); }
  to { transform: rotateY(72deg) rotateZ(360deg); }
}

@keyframes ring-gamma {
  from { transform: rotateX(56deg) rotateY(45deg) rotateZ(0deg); }
  to { transform: rotateX(56deg) rotateY(45deg) rotateZ(360deg); }
}

@keyframes prism-spin {
  from { transform: rotateX(-18deg) rotateY(0deg) rotateZ(8deg); }
  to { transform: rotateX(342deg) rotateY(360deg) rotateZ(8deg); }
}

@keyframes satellite-one {
  0% { transform: translate3d(0, 0, 60px) scale(0.8); }
  50% { transform: translate3d(250px, 190px, -30px) scale(1.1); }
  100% { transform: translate3d(0, 0, 60px) scale(0.8); }
}

@keyframes satellite-two {
  0% { transform: translate3d(0, 0, -40px) scale(0.6); }
  50% { transform: translate3d(-230px, -180px, 60px) scale(0.9); }
  100% { transform: translate3d(0, 0, -40px) scale(0.6); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .motion-lab {
    grid-template-columns: 1fr;
  }

  .model-stage,
  .studio-stage {
    margin: 0 auto 4rem;
    width: min(100%, 700px);
  }
}

@media (max-width: 580px) {
  .live-samples {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .live-samples > div {
    flex-direction: column;
    gap: 1rem;
  }

  .model-stage,
  .studio-stage {
    min-height: 420px;
  }

  .studio-scene {
    inset: 10% 1% 11%;
  }

  .studio-monitor {
    left: 10%;
    width: 68%;
  }

  .studio-lamp {
    right: -2%;
    width: 31%;
  }

  .studio-toggle {
    bottom: 3.55rem;
    left: 1rem;
  }

  .prism,
  .prism-face {
    height: 84px;
    width: 84px;
  }

  .prism {
    left: calc(50% - 42px);
    top: calc(50% - 42px);
  }

  .prism-front { transform: rotateY(0deg) translateZ(42px); }
  .prism-back { transform: rotateY(180deg) translateZ(42px); }
  .prism-right { transform: rotateY(90deg) translateZ(42px); }
  .prism-left { transform: rotateY(-90deg) translateZ(42px); }
  .prism-top { transform: rotateX(90deg) translateZ(42px); }
  .prism-bottom { transform: rotateX(-90deg) translateZ(42px); }

  .stage-topline span:last-child,
  .stage-caption span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .orbit-one,
  .orbit-two,
  .orbit-core,
  .ring-alpha,
  .ring-beta,
  .ring-gamma,
  .prism,
  .model-satellite,
  .studio-monitor,
  .screen-art span,
  .screen-cursor,
  .lamp-bulb,
  .motion-marquee div {
    animation: none !important;
  }

  .motion-enabled .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
