.page-section {
  position: relative;
  overflow-x: hidden;
}

.page-section .page {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  padding-left: max(clamp(1.25rem, 4.5vw, 5rem), calc((100vw - 1440px) / 2));
  padding-right: 0;
}

.page-section #main {
  position: relative;
  z-index: 3;
  width: min(58vw, 835px);
}

.page-section .category-intro {
  max-width: 720px;
}

.page-section .category-cards {
  position: relative;
  z-index: 3;
  width: calc(100% + clamp(26px, 3vw, 44px));
  gap: 22px;
  padding-right: 0;
}

.page-section .category-cards .card {
  position: relative;
  z-index: 2;
  padding: 25px 26px;
  border: 1px solid rgba(197, 210, 199, .96);
  background: rgba(248, 250, 246, .94);
  box-shadow: 0 14px 34px rgba(20, 35, 29, .045);
  backdrop-filter: blur(2px);
}

.page-section .cbd-footer {
  position: relative;
  z-index: 3;
  justify-content: flex-start;
  max-width: min(58vw, 835px);
  margin: 0;
  padding: 28px 0;
}

#science-microscope {
  position: absolute;
  z-index: 1;
  top: 55px;
  right: max(-2.5vw, -36px);
  bottom: 0;
  width: min(42vw, 640px);
  min-height: 700px;
  overflow: hidden;
  pointer-events: none;
  background: #f7f8f5;
}

#science-microscope::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #edf1ec 0%, rgba(237, 241, 236, .28) 12%, transparent 31%);
}

.science-scope-art {
  position: absolute;
  top: calc(80svh - 55px);
  right: 0;
  width: min(100%, 700px);
  aspect-ratio: 2 / 3;
  transform: translateY(-50%);
  isolation: isolate;
}

.science-scope-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.scope-light,
.scope-glint,
.scope-dust {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.scope-light-main {
  left: 47%; top: 65.8%; width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,214,.95) 0%, rgba(255,214,122,.55) 32%, rgba(255,176,60,.18) 58%, transparent 76%);
  filter: blur(6px); mix-blend-mode: screen;
  animation: scope-lamp-on 2.6s cubic-bezier(.4,0,.2,1) .25s forwards;
}

.scope-light-core {
  left: 47%; top: 65.8%; width: 20%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,236,180,.6) 45%, transparent 72%);
  filter: blur(2px);
  animation: scope-bloom 1.4s ease .45s forwards, scope-flicker 3.2s ease-in-out 1.9s 1 forwards;
}

.scope-light-cone {
  left: 47%; top: 57.5%; width: 34%; height: 11%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 90%, rgba(255,240,200,.75) 0%, rgba(255,226,150,.22) 45%, transparent 78%);
  filter: blur(4px); mix-blend-mode: screen;
  animation: scope-bloom 1.8s ease .9s forwards;
}

.scope-sweep-wrap {
  position: absolute; inset: 0; overflow: hidden;
  mix-blend-mode: soft-light; pointer-events: none;
}

.scope-sweep {
  position: absolute; top: -20%; left: 0; width: 42%; height: 140%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.85) 48%, transparent 100%);
  opacity: 0;
  animation: scope-sweep 2.8s cubic-bezier(.35,0,.25,1) 1.5s forwards;
}

.scope-glint { border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.5) 40%, transparent 72%); }
.scope-glint-one { left: 63.5%; top: 29.5%; width: 5%; aspect-ratio: 1; animation: scope-glint 1.1s ease-out 2.35s forwards; }
.scope-glint-two { left: 46%; top: 45.5%; width: 4%; aspect-ratio: 1; animation: scope-glint 1.1s ease-out 2.7s forwards; }
.scope-glint-three { left: 30%; top: 60%; width: 3%; aspect-ratio: 1; animation: scope-glint 1.3s ease-out 3.1s forwards; }

.scope-dust { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,244,214,.9); filter: blur(1px); }
.scope-dust-one { left: 41%; top: 62%; animation: scope-dust 4.2s linear 2.1s forwards; }
.scope-dust-two { left: 54%; top: 64%; width: 3px; height: 3px; animation: scope-dust 5s linear 2.6s forwards; }
.scope-dust-three { left: 49%; top: 60%; width: 3px; height: 3px; animation: scope-dust 4.6s linear 3.4s forwards; }

@keyframes scope-lamp-on {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  26% { opacity: .45; transform: translate(-50%, -50%) scale(.92); }
  34% { opacity: .95; transform: translate(-50%, -50%) scale(1.02); }
  42% { opacity: .62; transform: translate(-50%, -50%) scale(.98); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes scope-flicker { 0%,100% { opacity: 1; } 37% { opacity: .72; } 61% { opacity: .45; } 82% { opacity: .86; } }
@keyframes scope-bloom { to { opacity: 1; } }
@keyframes scope-sweep { 0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; } 12%,88% { opacity: 1; } 100% { transform: translateX(120%) skewX(-18deg); opacity: 0; } }
@keyframes scope-glint { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2); } 40% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(.35); } }
@keyframes scope-dust { 0% { opacity: 0; transform: translate(0,10px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(6px,-46px); } }

@media (max-width: 1080px) {
  .page-section #main { width: 70vw; }
  .page-section .cbd-footer { max-width: 70vw; }
  .page-section .category-cards { grid-template-columns: 1fr; width: 100%; }
  #science-microscope { width: 48vw; opacity: .78; }
}

@media (max-width: 720px) {
  .page-section .page { padding-right: 20px; }
  .page-section #main { width: 100%; }
  .page-section .cbd-footer { max-width: 100%; padding: 24px 0; }
  .page-section .category-cards .card { padding: 22px; }
  #science-microscope { top: 120px; right: 0; width: 62vw; opacity: .12; }
}

@media (prefers-reduced-motion: reduce) {
  .science-scope-art * { animation: none !important; }
  .scope-light-main, .scope-light-core, .scope-light-cone { opacity: 1 !important; }
}
