.top-nav.limelight-nav {
  position: relative;
  display: grid;
  flex: 0 1 292px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 292px;
  max-width: calc(100% - 166px);
  min-width: 0;
  gap: 2px;
  padding: 4px;
  overflow: visible;
  border: 1px solid #d7dce4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.08);
}

.top-nav.limelight-nav .limelight-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: color 180ms ease;
}

.top-nav.limelight-nav .limelight-item:hover,
.top-nav.limelight-nav .limelight-item.active {
  color: var(--ink);
}

.top-nav.limelight-nav .limelight-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: 0;
  height: calc(100% - 8px);
  border-radius: 10px;
  background: var(--accent-soft);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.18);
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), width 260ms cubic-bezier(.2, .8, .2, 1);
}

.interactive-work-section .section-heading {
  margin-bottom: 32px;
}

.interactive-work-section .section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.interactive-work-section .section-heading p {
  max-width: 600px;
  line-height: 1.7;
}

.interactive-work-gallery {
  position: relative;
  min-height: 600px;
  margin-bottom: 34px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #2c3444;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 48%, rgba(73, 115, 222, 0.16), transparent 28rem), #101827;
  color: #f6f7fb;
  box-shadow: 0 24px 60px rgba(9, 9, 11, 0.18);
}

.interactive-work-gallery::before,
.interactive-work-gallery::after {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  pointer-events: none;
}

.interactive-work-gallery::after {
  inset: 35px;
  border-radius: 50%;
  border-color: rgba(77, 227, 208, 0.11);
}

.interactive-work-gallery .gallery-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.interactive-work-gallery .gallery-stage::before {
  position: absolute;
  top: 35%;
  left: 24%;
  width: 52%;
  height: 30%;
  content: "";
  border: 1px dashed rgba(121, 167, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.interactive-work-gallery .gallery-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 176px;
  height: 214px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  opacity: var(--opacity);
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(var(--scale)) rotate(var(--tilt));
  transition: transform 420ms cubic-bezier(.2, .82, .2, 1), opacity 320ms ease, filter 320ms ease;
  cursor: pointer;
  filter: saturate(0.8);
}

.interactive-work-gallery .gallery-item:hover {
  filter: saturate(1.12);
}

.interactive-work-gallery .gallery-item.active {
  border-color: rgba(77, 227, 208, 0.65);
  box-shadow: 0 0 0 1px rgba(77, 227, 208, 0.18), 0 22px 50px rgba(0, 0, 0, 0.4);
  filter: saturate(1);
}

.interactive-work-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #182139;
}

.interactive-work-gallery .gallery-center-card {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  width: min(500px, calc(100% - 48px));
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(13, 19, 34, 0.88);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.interactive-work-gallery .gallery-center-media {
  width: 100px;
  height: 122px;
  overflow: hidden;
  border-radius: 11px;
  background: #1c2943;
}

.interactive-work-gallery .gallery-center-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interactive-work-gallery .gallery-center-media.is-screen img {
  object-position: left center;
}

.interactive-work-gallery .gallery-center-copy {
  min-width: 0;
  align-self: center;
  text-align: left;
}

.interactive-work-gallery .gallery-kicker {
  color: #4de3d0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.interactive-work-gallery .gallery-center-copy h3 {
  overflow: hidden;
  margin: 6px 0 5px;
  color: #fff;
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: 23px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interactive-work-gallery .gallery-center-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #a8afc2;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.interactive-work-gallery .gallery-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.interactive-work-gallery .gallery-open:hover {
  color: #4de3d0;
}

.interactive-work-gallery .gallery-controls {
  position: absolute;
  z-index: 8;
  bottom: 26px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #a8afc2;
  font-size: 12px;
  transform: translateX(-50%);
}

.interactive-work-gallery .gallery-controls b {
  color: #fff;
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.interactive-work-gallery .gallery-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.interactive-work-gallery .gallery-controls button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.interactive-work-gallery .icon {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.interactive-work-gallery .gallery-hint {
  position: absolute;
  z-index: 8;
  right: 28px;
  bottom: 31px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #a8afc2;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interactive-work-gallery .hint-icon {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #4de3d0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (max-width: 900px) {
  .site-header .top-nav.limelight-nav {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    gap: 2px;
    overflow: visible;
  }
}

@media (max-width: 800px) {
  .interactive-work-gallery {
    min-height: 560px;
  }

  .interactive-work-gallery .gallery-item {
    width: 108px;
    height: 138px;
  }

  .interactive-work-gallery .gallery-center-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 32px);
    padding: 11px;
  }

  .interactive-work-gallery .gallery-center-media {
    width: 68px;
    height: 84px;
  }

  .interactive-work-gallery .gallery-center-copy h3 {
    font-size: 17px;
  }

  .interactive-work-gallery .gallery-center-copy p {
    font-size: 10px;
  }

  .interactive-work-gallery .gallery-open {
    margin-top: 8px;
    font-size: 10px;
  }

  .interactive-work-gallery .gallery-controls {
    bottom: 50px;
  }

  .interactive-work-gallery .gallery-hint {
    right: 50%;
    bottom: 17px;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-nav.limelight-nav .limelight-item,
  .top-nav.limelight-nav .limelight-indicator,
  .interactive-work-gallery .gallery-item {
    transition-duration: 0.01ms;
  }
}
