/*
  VISIM Portfolio Globe Lock
  ------------------------------------------------------------
  This file intentionally freezes the current portfolio sphere.
  Keep general website redesign work in style.css. Change this file
  only when the portfolio globe/carousel itself is explicitly requested.
*/

#portfolio.portfolio-block {
  padding: clamp(180px, 24vh, 340px) 0 clamp(180px, 22vh, 320px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 14, 30, 0.42) 0%, rgba(3, 6, 16, 0.62) 18%, rgba(5, 8, 20, 0.48) 72%, rgba(8, 14, 30, 0.56) 100%),
    radial-gradient(ellipse 90% 65% at 50% 44%, rgba(78, 168, 255, 0.18), transparent 72%);
}

#portfolio.portfolio-block::before {
  top: -170px;
  bottom: auto;
  opacity: 0.26;
}

#portfolio-cinema {
  scroll-margin-top: 0;
}

.portfolio-cinema {
  --cinema-panel-count: 18;
  --cinema-sphere-size: clamp(980px, 142vw, 1780px);
  --cinema-panel-width: min(92vw, calc(var(--cinema-sphere-size) * 0.7));
  --cinema-sphere-drift-x: 0px;
  --cinema-sphere-drift-y: 0px;
  --cinema-screen-drift-x: 0px;
  --cinema-screen-drift-y: 0px;
  --cinema-holo-earth-drift-x: 0px;
  --cinema-holo-earth-drift-x-reverse: 0px;
  --cinema-enter-from: var(--cinema-slide-direction);
  --cinema-exit-to: calc(var(--cinema-slide-direction) * -1);
  --cinema-screen-radius: clamp(14px, 1.8vw, 24px);
  --cinema-slide-direction: 1;
  --cinema-slide-distance: min(118vw, calc(var(--cinema-panel-width) * 1.18));
  --cinema-tilt: 0deg;
  position: relative;
  min-height: calc(var(--cinema-sphere-size) + clamp(120px, 16vh, 240px));
  margin-top: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(78, 168, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(3, 6, 16, 0) 0%, rgba(5, 8, 20, 0.08) 48%, rgba(8, 14, 30, 0.12) 100%);
}

.portfolio-cinema--reduced {
  min-height: calc(var(--cinema-sphere-size) + 120px);
}

.portfolio-cinema__sticky {
  position: relative;
  min-height: calc(var(--cinema-sphere-size) + clamp(120px, 16vh, 240px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0 20px;
}

.portfolio-cinema__stage {
  position: relative;
  width: 100%;
  height: var(--cinema-sphere-size);
  margin-top: 0;
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

.portfolio-cinema__stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: calc(var(--cinema-sphere-size) * 0.9);
  height: 80px;
  transform: translateX(-50%) rotateX(72deg);
  background: radial-gradient(ellipse at center, rgba(78, 168, 255, 0.35), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.portfolio-cinema__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--cinema-sphere-size) * 1.48);
  height: calc(var(--cinema-sphere-size) * 0.44);
  z-index: 3;
  pointer-events: none;
  border-top: 1px solid rgba(147, 197, 253, 0.18);
  border-bottom: 1px solid rgba(78, 168, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(66deg);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
  box-shadow:
    0 -18px 48px rgba(78, 168, 255, 0.12),
    0 18px 48px rgba(78, 168, 255, 0.08),
    inset 0 0 60px rgba(78, 168, 255, 0.08);
  opacity: 0.5;
}

.portfolio-cinema__globe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cinema-sphere-size);
  height: var(--cinema-sphere-size);
  transform: translate(-50%, -50%) rotateX(var(--cinema-tilt));
  pointer-events: none;
  z-index: 0;
}

.portfolio-cinema__sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(78, 168, 255, 0.35);
  box-shadow:
    inset 0 0 160px rgba(78, 168, 255, 0.14),
    inset 0 -70px 120px rgba(0, 0, 0, 0.62),
    inset 0 70px 130px rgba(147, 197, 253, 0.08),
    0 0 110px rgba(78, 168, 255, 0.18),
    0 0 220px rgba(37, 99, 235, 0.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(120, 200, 255, 0.18), transparent 36%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.55), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(8, 14, 32, 0.18), rgba(3, 6, 16, 0.86) 68%, rgba(1, 3, 10, 0.98) 100%);
}

.portfolio-cinema__sphere::before,
.portfolio-cinema__sphere::after {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
}

.portfolio-cinema__sphere::before {
  border-left: 1px solid rgba(147, 197, 253, 0.24);
  border-right: 1px solid rgba(78, 168, 255, 0.14);
  transform: scaleX(0.34);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 50px rgba(78, 168, 255, 0.1);
}

.portfolio-cinema__sphere::after {
  border-top: 1px solid rgba(147, 197, 253, 0.24);
  border-bottom: 1px solid rgba(78, 168, 255, 0.12);
  transform: scaleY(0.28);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-cinema__continent-hologram {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.16;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 6, 16, 0.64), transparent 18%, transparent 82%, rgba(3, 6, 16, 0.64)),
    url("assets/portfolio/hologram-earth.png");
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 100%, 112% auto;
  background-position: 0 0, var(--cinema-sphere-drift-x) 51%;
  mix-blend-mode: screen;
  filter:
    saturate(1.28)
    contrast(1.12)
    brightness(1.12)
    drop-shadow(0 0 11px rgba(0, 252, 252, 0.18));
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
  will-change: background-position, opacity;
  -webkit-mask-image: radial-gradient(circle, transparent 0 24%, rgba(0, 0, 0, 0.28) 34%, black 46%, rgba(0, 0, 0, 0.62) 62%, transparent 76%);
  mask-image: radial-gradient(circle, transparent 0 24%, rgba(0, 0, 0, 0.28) 34%, black 46%, rgba(0, 0, 0, 0.62) 62%, transparent 76%);
  transition:
    background-position 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.22s ease;
}

.portfolio-cinema__continent-hologram::before,
.portfolio-cinema__continent-hologram::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.portfolio-cinema__continent-hologram::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(191, 247, 255, 0.075) 13px 14px),
    radial-gradient(circle at 32% 22%, rgba(226, 242, 255, 0.12), transparent 26%);
  opacity: 0.6;
}

.portfolio-cinema__continent-hologram::after {
  box-shadow:
    inset 0 -20px 50px 10px rgba(0, 252, 252, 0.18),
    0 0 30px 6px rgba(0, 252, 252, 0.12);
}

.portfolio-cinema__sphere-grid {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  opacity: 0.68;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(78, 168, 255, 0.03), transparent 62%);
  -webkit-mask-image: radial-gradient(circle, black 36%, rgba(0, 0, 0, 0.72) 58%, transparent 76%);
  mask-image: radial-gradient(circle, black 36%, rgba(0, 0, 0, 0.72) 58%, transparent 76%);
  transform: none;
  transition: opacity 0.22s ease;
}

.portfolio-cinema__sphere-grid::before,
.portfolio-cinema__sphere-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(191, 219, 254, 0.58);
  box-shadow: 0 0 18px rgba(78, 168, 255, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
}

.portfolio-cinema__sphere-grid::before {
  top: 0;
}

.portfolio-cinema__sphere-grid::after {
  bottom: 0;
}

.portfolio-cinema__longitude,
.portfolio-cinema__latitude {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(78, 168, 255, 0.12));
}

.portfolio-cinema__longitude {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(78, 168, 255, 0.065);
  border-left-color: rgba(147, 197, 253, 0.18);
  border-right-color: rgba(78, 168, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) scaleX(var(--longitude-width));
}

.portfolio-cinema__longitude--axis {
  --longitude-width: 0.02;
  opacity: 0.8;
}

.portfolio-cinema__longitude--narrow {
  --longitude-width: 0.24;
  opacity: 0.64;
}

.portfolio-cinema__longitude--mid {
  --longitude-width: 0.48;
  opacity: 0.58;
}

.portfolio-cinema__longitude--wide {
  --longitude-width: 0.74;
  opacity: 0.48;
}

.portfolio-cinema__latitude {
  width: var(--latitude-width);
  height: var(--latitude-height);
  border-top: 1px solid rgba(147, 197, 253, 0.16);
  border-bottom: 1px solid rgba(78, 168, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: var(--latitude-opacity);
}

.portfolio-cinema__latitude--north-cap,
.portfolio-cinema__latitude--south-cap {
  --latitude-width: 34%;
  --latitude-height: 7%;
  --latitude-opacity: 0.42;
}

.portfolio-cinema__latitude--north-mid,
.portfolio-cinema__latitude--south-mid {
  --latitude-width: 62%;
  --latitude-height: 15%;
  --latitude-opacity: 0.5;
}

.portfolio-cinema__latitude--north-low,
.portfolio-cinema__latitude--south-low {
  --latitude-width: 84%;
  --latitude-height: 25%;
  --latitude-opacity: 0.56;
}

.portfolio-cinema__latitude--equator {
  --latitude-width: 96%;
  --latitude-height: 34%;
  --latitude-opacity: 0.68;
}

.portfolio-cinema__latitude--north-cap {
  top: 18%;
}

.portfolio-cinema__latitude--north-mid {
  top: 30%;
}

.portfolio-cinema__latitude--north-low {
  top: 40.5%;
}

.portfolio-cinema__latitude--south-low {
  top: 59.5%;
}

.portfolio-cinema__latitude--south-mid {
  top: 70%;
}

.portfolio-cinema__latitude--south-cap {
  top: 82%;
}

.portfolio-cinema.is-rotating .portfolio-cinema__sphere-grid {
  opacity: 0.74;
}

.portfolio-cinema.is-rotating .portfolio-cinema__continent-hologram {
  opacity: 0.16;
  filter:
    saturate(1.28)
    contrast(1.12)
    brightness(1.12)
    drop-shadow(0 0 11px rgba(0, 252, 252, 0.18));
}

.portfolio-cinema.is-rotating .portfolio-cinema__sphere-glow {
  opacity: 0.22;
}

.portfolio-cinema__sphere-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 168, 255, 0.2), transparent 58%);
  filter: blur(18px);
  animation: spherePulse 4s ease-in-out infinite;
}

@keyframes spherePulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.portfolio-cinema__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(0);
  will-change: transform;
  z-index: 5;
}

.portfolio-cinema__panel {
  --panel-shift: var(--cinema-slide-direction);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cinema-panel-width);
  margin-left: calc(var(--cinema-panel-width) / -2);
  margin-top: calc((var(--cinema-panel-width) * 9 / 16) / -2);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  pointer-events: none;
  opacity: 0;
  filter: none;
  transform: translate3d(calc(var(--panel-shift) * var(--cinema-slide-distance)), 0, 0);
  transition:
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.28s ease;
  will-change: transform, opacity;
}

.portfolio-cinema__panel.is-motionless {
  transition: none;
}

.portfolio-cinema__panel:nth-child(n+10) .portfolio-cinema__label {
  display: none;
}

.portfolio-cinema__panel.is-visible,
.portfolio-cinema__panel.is-active {
  --panel-shift: 0;
  opacity: 1;
  filter: none;
}

.portfolio-cinema__panel.is-active {
  pointer-events: auto;
}

.portfolio-cinema__panel.is-leaving {
  --panel-shift: var(--cinema-exit-to);
  opacity: 1;
  pointer-events: none;
}

.portfolio-cinema__panel.is-entering-ready {
  --panel-shift: var(--cinema-enter-from);
  opacity: 1;
  pointer-events: none;
  transition: none;
}

.portfolio-cinema__panel.is-entering {
  --panel-shift: 0;
  opacity: 1;
}

.portfolio-cinema__panel.is-side {
  --panel-shift: var(--cinema-slide-direction);
  opacity: 0;
}

.portfolio-cinema__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--cinema-screen-radius);
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.16);
  box-shadow:
    0 30px 92px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(78, 168, 255, 0.1),
    inset 0 0 0 1px rgba(226, 242, 255, 0.05),
    inset 0 0 46px rgba(2, 5, 20, 0.18);
  background: rgba(3, 6, 16, 0.34);
  transform: translateZ(0);
  isolation: isolate;
}

.portfolio-cinema__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 34px,
      rgba(115, 190, 255, 0.13) 34px,
      rgba(115, 190, 255, 0.13) 35px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 34px,
      rgba(115, 190, 255, 0.1) 34px,
      rgba(115, 190, 255, 0.1) 35px
    ),
    linear-gradient(90deg, rgba(3, 6, 16, 0.74) 0%, rgba(3, 6, 16, 0.24) 10%, transparent 21%, transparent 79%, rgba(3, 6, 16, 0.24) 90%, rgba(3, 6, 16, 0.74) 100%),
    linear-gradient(180deg, rgba(3, 6, 16, 0.64) 0%, rgba(3, 6, 16, 0.22) 10%, transparent 21%, transparent 79%, rgba(3, 6, 16, 0.22) 90%, rgba(3, 6, 16, 0.64) 100%);
  background-position:
    var(--cinema-screen-drift-x) 0,
    0 var(--cinema-screen-drift-y),
    0 0,
    0 0;
  opacity: 0.58;
  transition: background-position 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease;
  -webkit-mask-image:
    linear-gradient(180deg, #000 0%, #000 11%, transparent 22%, transparent 78%, #000 89%, #000 100%),
    linear-gradient(90deg, #000 0%, #000 9%, transparent 19%, transparent 81%, #000 91%, #000 100%);
  mask-image:
    linear-gradient(180deg, #000 0%, #000 11%, transparent 22%, transparent 78%, #000 89%, #000 100%),
    linear-gradient(90deg, #000 0%, #000 9%, transparent 19%, transparent 81%, #000 91%, #000 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
  box-shadow: none;
}

.portfolio-cinema.is-rotating .portfolio-cinema__screen::before {
  opacity: 0.52;
}

.portfolio-cinema__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(3, 6, 16, 0.34) 0%, rgba(3, 6, 16, 0.08) 10%, transparent 24%, transparent 76%, rgba(3, 6, 16, 0.08) 90%, rgba(3, 6, 16, 0.34) 100%),
    linear-gradient(90deg, rgba(3, 6, 16, 0.38) 0%, rgba(3, 6, 16, 0.1) 9%, transparent 23%, transparent 77%, rgba(3, 6, 16, 0.1) 91%, rgba(3, 6, 16, 0.38) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(226, 242, 255, 0.1),
    inset 0 0 42px rgba(255, 255, 255, 0.025),
    inset 0 0 90px rgba(0, 0, 0, 0.16);
}

.portfolio-cinema__holo-earth {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 26%, rgba(226, 242, 255, 0.34), transparent 6%),
    radial-gradient(ellipse at 45% 42%, rgba(102, 225, 255, 0.18), transparent 18%),
    radial-gradient(ellipse at 62% 60%, rgba(102, 225, 255, 0.14), transparent 16%),
    radial-gradient(ellipse at 36% 70%, rgba(191, 219, 254, 0.12), transparent 14%),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(191, 247, 255, 0.16) 27px 28px),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(102, 225, 255, 0.11) 23px 24px),
    radial-gradient(circle, rgba(102, 225, 255, 0.14), rgba(3, 6, 16, 0.04) 54%, transparent 70%);
  background-size:
    100% 100%,
    160% 100%,
    140% 100%,
    150% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  background-position:
    0 0,
    var(--cinema-screen-drift-x) 0,
    var(--cinema-holo-earth-drift-x-reverse) 0,
    var(--cinema-holo-earth-drift-x) 0,
    var(--cinema-holo-earth-drift-x) 0,
    0 var(--cinema-screen-drift-y),
    0 0;
  box-shadow:
    inset 0 -18px 42px rgba(102, 225, 255, 0.15),
    inset 0 0 34px rgba(226, 242, 255, 0.06),
    0 0 34px rgba(102, 225, 255, 0.14);
  filter: blur(0.2px) saturate(1.12);
  backface-visibility: hidden;
  contain: paint;
  will-change: background-position, opacity;
  -webkit-mask-image: radial-gradient(circle, black 0 42%, rgba(0, 0, 0, 0.62) 58%, transparent 72%);
  mask-image: radial-gradient(circle, black 0 42%, rgba(0, 0, 0, 0.62) 58%, transparent 72%);
  transition:
    background-position 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.22s ease;
}

.portfolio-cinema__panel.is-active .portfolio-cinema__holo-earth {
  opacity: 0.15;
}

.portfolio-cinema.is-rotating .portfolio-cinema__holo-earth {
  opacity: 0.12;
}

.portfolio-cinema__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: none;
  transform: translateZ(0);
  will-change: auto;
}

.portfolio-cinema__sound-toggle {
  position: absolute;
  right: clamp(10px, 1.2vw, 16px);
  bottom: clamp(10px, 1.2vw, 16px);
  z-index: 7;
  width: clamp(36px, 3.8vw, 48px);
  height: clamp(36px, 3.8vw, 48px);
  padding: 0;
  border: 1px solid rgba(226, 242, 255, 0.34);
  border-radius: 999px;
  background: rgba(3, 6, 16, 0.68);
  box-shadow:
    0 0 18px rgba(78, 168, 255, 0.18),
    inset 0 0 14px rgba(147, 197, 253, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-cinema__panel.is-active .portfolio-cinema__sound-toggle {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-cinema__sound-toggle:hover,
.portfolio-cinema__sound-toggle:focus-visible,
.portfolio-cinema__sound-toggle.is-sound-on {
  border-color: rgba(226, 242, 255, 0.62);
  background: rgba(10, 18, 34, 0.82);
  transform: translateY(-1px);
}

.portfolio-cinema__sound-toggle:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.78);
  outline-offset: 3px;
}

.portfolio-cinema__sound-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.portfolio-cinema__sound-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 12px;
  height: 8px;
  background: #e2f2ff;
  clip-path: polygon(0 22%, 38% 22%, 100% 0, 100% 100%, 38% 78%, 0 78%);
}

.portfolio-cinema__sound-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 7px;
  height: 14px;
  border-right: 2px solid #e2f2ff;
  border-radius: 0 12px 12px 0;
  opacity: 0;
}

.portfolio-cinema__sound-toggle.is-sound-on .portfolio-cinema__sound-icon::after {
  opacity: 1;
}

.portfolio-cinema__sound-toggle:not(.is-sound-on) .portfolio-cinema__sound-icon::after {
  right: 2px;
  top: 1px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(45deg, transparent 44%, #e2f2ff 44% 56%, transparent 56%);
  opacity: 1;
}

.portfolio-cinema__label,
.portfolio-cinema__hint {
  display: none;
}

.portfolio-cinema__panel.is-active .portfolio-cinema__label {
  color: #93c5fd;
}

.portfolio-cinema__arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: clamp(54px, 5.5vw, 86px);
  height: clamp(42px, 5vw, 70px);
  padding: 0;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(78, 168, 255, 0.04), rgba(147, 197, 253, 0.12), rgba(78, 168, 255, 0.04));
  box-shadow:
    inset 0 0 18px rgba(78, 168, 255, 0.08),
    0 0 28px rgba(78, 168, 255, 0.1);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-cinema.is-rotating .portfolio-cinema__arrow,
.portfolio-cinema__arrow:disabled {
  cursor: default;
  opacity: 0.55;
}

.portfolio-cinema__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(18px, 2vw, 30px);
  height: 2px;
  background: rgba(226, 242, 255, 0.92);
  box-shadow:
    0 -7px 0 rgba(147, 197, 253, 0.26),
    0 7px 0 rgba(147, 197, 253, 0.26),
    0 0 14px rgba(78, 168, 255, 0.78);
  filter: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-cinema__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(226, 242, 255, 0.9);
  border-left: 2px solid rgba(226, 242, 255, 0.9);
  filter: drop-shadow(0 0 10px rgba(78, 168, 255, 0.75));
}

.portfolio-cinema__arrow--prev {
  left: clamp(8px, 3vw, 48px);
}

.portfolio-cinema__arrow--prev::before {
  left: 50%;
  transform: translate(-40%, -50%);
}

.portfolio-cinema__arrow--next {
  right: clamp(8px, 3vw, 48px);
}

.portfolio-cinema__arrow--next::before {
  right: 50%;
  transform: translate(40%, -50%);
}

.portfolio-cinema__arrow--prev::after {
  left: 20px;
  transform: translateY(-50%) rotate(-45deg);
}

.portfolio-cinema__arrow--next::after {
  right: 20px;
  transform: translateY(-50%) rotate(135deg);
}

.portfolio-cinema__arrow:hover::before,
.portfolio-cinema__arrow:focus-visible::before {
  background: #ffffff;
  box-shadow:
    0 -7px 0 rgba(191, 219, 254, 0.42),
    0 7px 0 rgba(191, 219, 254, 0.42),
    0 0 18px rgba(147, 197, 253, 0.9);
}

.portfolio-cinema__arrow:hover,
.portfolio-cinema__arrow:focus-visible {
  border-color: rgba(191, 219, 254, 0.46);
  background:
    linear-gradient(90deg, rgba(78, 168, 255, 0.08), rgba(147, 197, 253, 0.18), rgba(78, 168, 255, 0.08));
  box-shadow:
    inset 0 0 24px rgba(78, 168, 255, 0.12),
    0 0 36px rgba(78, 168, 255, 0.18);
}

.portfolio-cinema__arrow--prev:hover::before,
.portfolio-cinema__arrow--prev:focus-visible::before {
  transform: translate(-54%, -50%);
}

.portfolio-cinema__arrow--next:hover::before,
.portfolio-cinema__arrow--next:focus-visible::before {
  transform: translate(54%, -50%);
}

.portfolio-cinema__arrow:focus-visible {
  outline: 1px solid rgba(147, 197, 253, 0.75);
  outline-offset: 6px;
}

@media (max-width: 768px) {
  .portfolio-cinema {
    min-height: calc(var(--cinema-sphere-size) + 160px);
    --cinema-sphere-size: clamp(620px, 168vw, 1040px);
    --cinema-panel-width: min(92vw, calc(var(--cinema-sphere-size) * 0.62));
  }

  .portfolio-cinema__stage {
    height: var(--cinema-sphere-size);
    margin-top: 0;
    perspective: 1100px;
  }

  .portfolio-cinema__globe {
    width: var(--cinema-sphere-size);
    height: var(--cinema-sphere-size);
  }

  .portfolio-cinema__stage::after {
    width: calc(var(--cinema-sphere-size) * 1.42);
    height: calc(var(--cinema-sphere-size) * 0.5);
  }

  .portfolio-cinema__arrow {
    width: 48px;
    height: 42px;
  }
}

@media (max-width: 520px) {
  .portfolio-cinema {
    --cinema-sphere-size: clamp(620px, 176vw, 920px);
    --cinema-panel-width: min(92vw, calc(var(--cinema-sphere-size) * 0.58));
  }

  .portfolio-cinema__arrow--prev {
    left: 4px;
  }

  .portfolio-cinema__arrow--next {
    right: 4px;
  }
}

@media (max-height: 620px) and (min-width: 769px) {
  .portfolio-cinema {
    --cinema-sphere-size: clamp(820px, 132vw, 1480px);
    --cinema-panel-width: min(88vw, calc(var(--cinema-sphere-size) * 0.68));
  }
}

@media (min-width: 1440px) and (min-height: 820px) {
  .portfolio-cinema {
    --cinema-sphere-size: clamp(1280px, 132vw, 2100px);
    --cinema-panel-width: min(88vw, calc(var(--cinema-sphere-size) * 0.68));
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-cinema__sphere-glow {
    animation: none;
  }

  .portfolio-cinema__panel {
    transition: none;
  }
}
